AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

SecretTargetAttachment

An attached secret.

Import

import { SecretTargetAttachment } from 'aws-cdk-lib/aws-secretsmanager';

Or use the module namespace:

import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';
// secretsmanager.SecretTargetAttachment

Properties

Configuration passed to the constructor as SecretTargetAttachmentProps.

secretRequired
ISecret

The secret to attach to the target.

1 property inherited from AttachedSecretOptions
targetRequiredinherited from AttachedSecretOptions
ISecretAttachmentTarget

The target to attach the secret to.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter