Provides operations on AWS Secrets Manager.
import { CommonConstruct } from '@gradientedge/cdk-utils'class CustomConstruct extends CommonConstruct { constructor(parent: Construct, id: string, props: common.CommonStackProps) { super(parent, id, props) this.props = props this.loadSecret('MySecretName', 'eu-west-1') }} Copy
import { CommonConstruct } from '@gradientedge/cdk-utils'class CustomConstruct extends CommonConstruct { constructor(parent: Construct, id: string, props: common.CommonStackProps) { super(parent, id, props) this.props = props this.loadSecret('MySecretName', 'eu-west-1') }}
[CDK Secrets Manager Module]https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_secretsmanager-readme.html
scoped id of the resource
scope in which this resource is defined
the secret properties
the region in which the secret is defined
the secret name/ARN
the secret key to resolve the value for
Provides operations on AWS Secrets Manager.
Example
See
[CDK Secrets Manager Module]https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_secretsmanager-readme.html