aws-cdk-lib.aws_secretsmanager.SecretTargetAttachmentProps

interface SecretTargetAttachmentProps

LanguageType name
.NETAmazon.CDK.AWS.SecretsManager.SecretTargetAttachmentProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssecretsmanager#SecretTargetAttachmentProps
Javasoftware.amazon.awscdk.services.secretsmanager.SecretTargetAttachmentProps
Pythonaws_cdk.aws_secretsmanager.SecretTargetAttachmentProps
TypeScript (source)aws-cdk-lib » aws_secretsmanager » SecretTargetAttachmentProps

Construction properties for an AttachedSecret.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_secretsmanager as secretsmanager } from 'aws-cdk-lib';

declare const secret: secretsmanager.Secret;
declare const secretAttachmentTarget: secretsmanager.ISecretAttachmentTarget;
const secretTargetAttachmentProps: secretsmanager.SecretTargetAttachmentProps = {
  secret: secret,
  target: secretAttachmentTarget,
};

Properties

NameTypeDescription
secretISecretThe secret to attach to the target.
targetISecretAttachmentTargetThe target to attach the secret to.

secret

Type: ISecret

The secret to attach to the target.


target

Type: ISecretAttachmentTarget

The target to attach the secret to.