Show / Hide Table of Contents

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.

Inheritance
object
Mixin
CfnSecretTargetAttachmentPropsMixin
Implements
IMixin
Inherited Members
Mixin.IsMixin(object)
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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html

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 AWS::SecretsManager::SecretTargetAttachment.

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.

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.

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.

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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html

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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html

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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html

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

IMergeStrategy

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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html

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
Mixin.ApplyTo(IConstruct)
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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html

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

bool

Overrides
Mixin.Supports(IConstruct)
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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html

CloudformationResource: AWS::SecretsManager::SecretTargetAttachment

Mixin: true

ExampleMetadata: fixture=_generated

Implements

Constructs.IMixin
Back to top Generated by DocFX