Skip to content
v2.273.0

SecretAttachmentTargetProps Struct ​

Attachment target specifications.

Example ​

ts
// 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';
const secretAttachmentTargetProps: secretsmanager.SecretAttachmentTargetProps = {
  targetId: 'targetId',
  targetType: secretsmanager.AttachmentTargetType.RDS_DB_INSTANCE,
};

Properties ​

targetIdstringtarget_idstrtargetIdStringTargetIdstringTargetId*stringrequired#
The id of the target to attach the secret to.
The type of the target to attach the secret to.