Class CfnSecretTargetAttachmentPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.secretsmanager.CfnSecretTargetAttachmentPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecretTargetAttachmentPropsMixin>
- Enclosing class:
CfnSecretTargetAttachmentPropsMixin
@Stability(Stable)
public static final class CfnSecretTargetAttachmentPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecretTargetAttachmentPropsMixin>
A fluent builder for
CfnSecretTargetAttachmentPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) The ARN or name of the secret.The ID of the database or cluster.targetType(String targetType) A string that defines the type of service or database associated with the secret.
-
Method Details
-
create
@Stability(Stable) public static CfnSecretTargetAttachmentPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnSecretTargetAttachmentPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnSecretTargetAttachmentPropsMixin.Builder.
-
secretId
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.
- Parameters:
secretId- The ARN or name of the secret. This parameter is required.- Returns:
this- See Also:
-
targetId
The ID of the database or cluster.- Parameters:
targetId- The ID of the database or cluster. This parameter is required.- Returns:
this- See Also:
-
targetType
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
- Parameters:
targetType- A string that defines the type of service or database associated with the secret. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSecretTargetAttachmentPropsMixin>- Returns:
- a newly built instance of
CfnSecretTargetAttachmentPropsMixin.
-