UNPKG

@scloud/cdk-patterns

Version:

Serverless CDK patterns for common infrastructure needs

14 lines (13 loc) 765 B
import { Stack } from 'aws-cdk-lib'; import { Secret } from 'aws-cdk-lib/aws-secretsmanager'; /** * @deprecated Use SecretValue or SecretObject instead * * Generates a secret value. * see: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_secretsmanager-readme.html * @param stack The stack is used as the parent Construct and the stack name is used as a prefix in the secret name * @param name The name for the secret, which will also populate the description for readability * @returns A simple secret. The value can be accessed as */ export declare function secretValue(stack: Stack, name: string): Secret; export declare function secretObject(stack: Stack, name: string, template?: Record<string, string>, generateStringKey?: string): Secret;