aws-cdk-lib.aws_secretsmanager.CfnSecretTargetAttachmentProps

interface CfnSecretTargetAttachmentProps

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

Properties for defining a CfnSecretTargetAttachment.

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 cfnSecretTargetAttachmentProps: secretsmanager.CfnSecretTargetAttachmentProps = {
  secretId: 'secretId',
  targetId: 'targetId',
  targetType: 'targetType',
};

Properties

NameTypeDescription
secretIdstringThe ARN or name of the secret.
targetIdstringThe ID of the database or cluster.
targetTypestringA string that defines the type of service or database associated with the secret.

secretId

Type: string

The ARN or name of the secret.

To reference a secret also created in this template, use the see Ref function with the secret's logical ID.


targetId

Type: string

The ID of the database or cluster.


targetType

Type: string

A string that defines the type of service or database associated with the secret.

This value instructs Secrets Manager how to update the secret with the details of the service or database. This value must be one of the following:

  • AWS::RDS::DBInstance
  • AWS::RDS::DBCluster
  • AWS::Redshift::Cluster
  • AWS::DocDB::DBInstance
  • AWS::DocDB::DBCluster