Class CfnSecretTargetAttachmentPropsMixin
The AWS::SecretsManager::SecretTargetAttachment resource completes the final link between a Secrets Manager secret and the associated database by adding the database connection information to the secret JSON.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.SecretsManager
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnSecretTargetAttachmentPropsMixin : Mixin, IMixin
Syntax (vb)
Public Class CfnSecretTargetAttachmentPropsMixin Inherits Mixin Implements IMixin
Remarks
If you want to turn on automatic rotation for a database credential secret, the secret must contain the database connection information. For more information, see JSON structure of Secrets Manager database credential secrets .
A single secret resource can only have one target attached to it.
When you remove a SecretTargetAttachment from a stack, Secrets Manager removes the database connection information from the secret with a PutSecretValue call.
For Amazon RDS master user credentials, see AWS::RDS::DBCluster MasterUserSecret .
For Amazon Redshift admin user credentials, see AWS::Redshift::Cluster .
CloudformationResource: AWS::SecretsManager::SecretTargetAttachment
Mixin: true
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.SecretsManager;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnSecretTargetAttachmentPropsMixin = new CfnSecretTargetAttachmentPropsMixin(new CfnSecretTargetAttachmentMixinProps {
SecretId = "secretId",
TargetId = "targetId",
TargetType = "targetType"
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Synopsis
Constructors
| CfnSecretTargetAttachmentPropsMixin(ICfnSecretTargetAttachmentMixinProps, ICfnPropertyMixinOptions?) | Create a mixin to apply properties to |
Properties
| CFN_PROPERTY_KEYS | The |
| Props | The |
| Strategy | The |
Methods
| ApplyTo(IConstruct) | Apply the mixin properties to the construct. |
| Supports(IConstruct) | Check if this mixin supports the given construct. |
Constructors
CfnSecretTargetAttachmentPropsMixin(ICfnSecretTargetAttachmentMixinProps, ICfnPropertyMixinOptions?)
Create a mixin to apply properties to AWS::SecretsManager::SecretTargetAttachment.
public CfnSecretTargetAttachmentPropsMixin(ICfnSecretTargetAttachmentMixinProps props, ICfnPropertyMixinOptions? options = null)
Parameters
- props ICfnSecretTargetAttachmentMixinProps
L1 properties to apply.
- options ICfnPropertyMixinOptions
Mixin options.
Remarks
If you want to turn on automatic rotation for a database credential secret, the secret must contain the database connection information. For more information, see JSON structure of Secrets Manager database credential secrets .
A single secret resource can only have one target attached to it.
When you remove a SecretTargetAttachment from a stack, Secrets Manager removes the database connection information from the secret with a PutSecretValue call.
For Amazon RDS master user credentials, see AWS::RDS::DBCluster MasterUserSecret .
For Amazon Redshift admin user credentials, see AWS::Redshift::Cluster .
CloudformationResource: AWS::SecretsManager::SecretTargetAttachment
Mixin: true
ExampleMetadata: fixture=_generated
Properties
CFN_PROPERTY_KEYS
The AWS::SecretsManager::SecretTargetAttachment resource completes the final link between a Secrets Manager secret and the associated database by adding the database connection information to the secret JSON.
protected static string[] CFN_PROPERTY_KEYS { get; }
Property Value
string[]
Remarks
If you want to turn on automatic rotation for a database credential secret, the secret must contain the database connection information. For more information, see JSON structure of Secrets Manager database credential secrets .
A single secret resource can only have one target attached to it.
When you remove a SecretTargetAttachment from a stack, Secrets Manager removes the database connection information from the secret with a PutSecretValue call.
For Amazon RDS master user credentials, see AWS::RDS::DBCluster MasterUserSecret .
For Amazon Redshift admin user credentials, see AWS::Redshift::Cluster .
CloudformationResource: AWS::SecretsManager::SecretTargetAttachment
Mixin: true
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.SecretsManager;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnSecretTargetAttachmentPropsMixin = new CfnSecretTargetAttachmentPropsMixin(new CfnSecretTargetAttachmentMixinProps {
SecretId = "secretId",
TargetId = "targetId",
TargetType = "targetType"
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Props
The AWS::SecretsManager::SecretTargetAttachment resource completes the final link between a Secrets Manager secret and the associated database by adding the database connection information to the secret JSON.
protected virtual ICfnSecretTargetAttachmentMixinProps Props { get; }
Property Value
ICfnSecretTargetAttachmentMixinProps
Remarks
If you want to turn on automatic rotation for a database credential secret, the secret must contain the database connection information. For more information, see JSON structure of Secrets Manager database credential secrets .
A single secret resource can only have one target attached to it.
When you remove a SecretTargetAttachment from a stack, Secrets Manager removes the database connection information from the secret with a PutSecretValue call.
For Amazon RDS master user credentials, see AWS::RDS::DBCluster MasterUserSecret .
For Amazon Redshift admin user credentials, see AWS::Redshift::Cluster .
CloudformationResource: AWS::SecretsManager::SecretTargetAttachment
Mixin: true
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.SecretsManager;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnSecretTargetAttachmentPropsMixin = new CfnSecretTargetAttachmentPropsMixin(new CfnSecretTargetAttachmentMixinProps {
SecretId = "secretId",
TargetId = "targetId",
TargetType = "targetType"
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Strategy
The AWS::SecretsManager::SecretTargetAttachment resource completes the final link between a Secrets Manager secret and the associated database by adding the database connection information to the secret JSON.
protected virtual IMergeStrategy Strategy { get; }
Property Value
Remarks
If you want to turn on automatic rotation for a database credential secret, the secret must contain the database connection information. For more information, see JSON structure of Secrets Manager database credential secrets .
A single secret resource can only have one target attached to it.
When you remove a SecretTargetAttachment from a stack, Secrets Manager removes the database connection information from the secret with a PutSecretValue call.
For Amazon RDS master user credentials, see AWS::RDS::DBCluster MasterUserSecret .
For Amazon Redshift admin user credentials, see AWS::Redshift::Cluster .
CloudformationResource: AWS::SecretsManager::SecretTargetAttachment
Mixin: true
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.SecretsManager;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnSecretTargetAttachmentPropsMixin = new CfnSecretTargetAttachmentPropsMixin(new CfnSecretTargetAttachmentMixinProps {
SecretId = "secretId",
TargetId = "targetId",
TargetType = "targetType"
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Methods
ApplyTo(IConstruct)
Apply the mixin properties to the construct.
public override void ApplyTo(IConstruct construct)
Parameters
- construct IConstruct
Overrides
Remarks
If you want to turn on automatic rotation for a database credential secret, the secret must contain the database connection information. For more information, see JSON structure of Secrets Manager database credential secrets .
A single secret resource can only have one target attached to it.
When you remove a SecretTargetAttachment from a stack, Secrets Manager removes the database connection information from the secret with a PutSecretValue call.
For Amazon RDS master user credentials, see AWS::RDS::DBCluster MasterUserSecret .
For Amazon Redshift admin user credentials, see AWS::Redshift::Cluster .
CloudformationResource: AWS::SecretsManager::SecretTargetAttachment
Mixin: true
ExampleMetadata: fixture=_generated
Supports(IConstruct)
Check if this mixin supports the given construct.
public override bool Supports(IConstruct construct)
Parameters
- construct IConstruct
Returns
Overrides
Remarks
If you want to turn on automatic rotation for a database credential secret, the secret must contain the database connection information. For more information, see JSON structure of Secrets Manager database credential secrets .
A single secret resource can only have one target attached to it.
When you remove a SecretTargetAttachment from a stack, Secrets Manager removes the database connection information from the secret with a PutSecretValue call.
For Amazon RDS master user credentials, see AWS::RDS::DBCluster MasterUserSecret .
For Amazon Redshift admin user credentials, see AWS::Redshift::Cluster .
CloudformationResource: AWS::SecretsManager::SecretTargetAttachment
Mixin: true
ExampleMetadata: fixture=_generated