interface CfnSecretTargetAttachmentMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.SecretsManager.Mixins.CfnSecretTargetAttachmentMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awssecretsmanager/mixins#CfnSecretTargetAttachmentMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.secretsmanager.mixins.CfnSecretTargetAttachmentMixinProps |
Python | aws_cdk.mixins_preview.aws_secretsmanager.mixins.CfnSecretTargetAttachmentMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_secretsmanager » mixins » CfnSecretTargetAttachmentMixinProps |
Properties for CfnSecretTargetAttachmentPropsMixin.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as secretsmanager_mixins } from '@aws-cdk/mixins-preview/aws-secretsmanager';
const cfnSecretTargetAttachmentMixinProps: secretsmanager_mixins.CfnSecretTargetAttachmentMixinProps = {
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
(optional)
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
(optional)
The ID of the database or cluster.
targetType?
Type:
string
(optional)
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

.NET
Go
Java
Python
TypeScript