GradientEdge CDK Utils
    Preparing search index...

    Provides operations on AWS Secrets Manager.

    • A new instance of this class is injected into CommonConstruct constructor.
    • If a custom construct extends CommonConstruct, an instance is available within the context.
    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')
    }
    }
    Index

    Constructors

    Methods

    • Parameters

      • region: string

        the region in which the secret is defined

      • secretId: string

        the secret name/ARN

      • secretKey: string

        the secret key to resolve the value for

      Returns Promise<any>