Class CfnSecretTargetAttachmentPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.secretsmanager.CfnSecretTargetAttachmentPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:20:05.315Z")
@Stability(Stable)
public class CfnSecretTargetAttachmentPropsMixin
extends Mixin
implements software.constructs.IMixin
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.
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 .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.secretsmanager.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnSecretTargetAttachmentPropsMixin cfnSecretTargetAttachmentPropsMixin = CfnSecretTargetAttachmentPropsMixin.Builder.create(CfnSecretTargetAttachmentMixinProps.builder()
.secretId("secretId")
.targetId("targetId")
.targetType("targetType")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnSecretTargetAttachmentPropsMixin.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::SecretsManager::SecretTargetAttachment.CfnSecretTargetAttachmentPropsMixin(CfnSecretTargetAttachmentMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::SecretsManager::SecretTargetAttachment.protectedCfnSecretTargetAttachmentPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSecretTargetAttachmentPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnSecretTargetAttachmentMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnSecretTargetAttachmentPropsMixin
protected CfnSecretTargetAttachmentPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSecretTargetAttachmentPropsMixin
protected CfnSecretTargetAttachmentPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSecretTargetAttachmentPropsMixin
@Stability(Stable) public CfnSecretTargetAttachmentPropsMixin(@NotNull CfnSecretTargetAttachmentMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::SecretsManager::SecretTargetAttachment.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnSecretTargetAttachmentPropsMixin
@Stability(Stable) public CfnSecretTargetAttachmentPropsMixin(@NotNull CfnSecretTargetAttachmentMixinProps props) Create a mixin to apply properties toAWS::SecretsManager::SecretTargetAttachment.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-