interface CfnSecretTargetAttachmentProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.SecretsManager.CfnSecretTargetAttachmentProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awssecretsmanager#CfnSecretTargetAttachmentProps |
![]() | software.amazon.awscdk.services.secretsmanager.CfnSecretTargetAttachmentProps |
![]() | aws_cdk.aws_secretsmanager.CfnSecretTargetAttachmentProps |
![]() | 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
Name | Type | Description |
---|---|---|
secret | string | The ARN or name of the secret. |
target | string | The ID of the database or cluster. |
target | string | A 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. This field is unique for each target attachment definition.
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::RedshiftServerless::Namespace
- AWS::DocDB::DBInstance
- AWS::DocDB::DBCluster
- AWS::DocDBElastic::Cluster