aws-cdk-lib.aws_secretsmanager.SecretAttachmentTargetProps

interface SecretAttachmentTargetProps

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

Obtainable from DatabaseCluster.asSecretAttachmentTarget(), DatabaseClusterBase.asSecretAttachmentTarget(), DatabaseInstanceBase.asSecretAttachmentTarget(), DatabaseProxy.asSecretAttachmentTarget(), ServerlessCluster.asSecretAttachmentTarget(), ServerlessClusterFromSnapshot.asSecretAttachmentTarget(), Cluster.asSecretAttachmentTarget()

Attachment target specifications.

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

Properties

NameTypeDescription
targetIdstringThe id of the target to attach the secret to.
targetTypeAttachmentTargetTypeThe type of the target to attach the secret to.

targetId

Type: string

The id of the target to attach the secret to.


targetType

Type: AttachmentTargetType

The type of the target to attach the secret to.