Class CfnSecretTargetAttachmentMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.secretsmanager.CfnSecretTargetAttachmentMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecretTargetAttachmentMixinProps>
- Enclosing interface:
CfnSecretTargetAttachmentMixinProps
@Stability(Stable)
public static final class CfnSecretTargetAttachmentMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecretTargetAttachmentMixinProps>
A builder for
CfnSecretTargetAttachmentMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSecretTargetAttachmentMixinProps.getSecretId()Sets the value ofCfnSecretTargetAttachmentMixinProps.getTargetId()targetType(String targetType) Sets the value ofCfnSecretTargetAttachmentMixinProps.getTargetType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
secretId
Sets the value ofCfnSecretTargetAttachmentMixinProps.getSecretId()- Parameters:
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.- Returns:
this
-
targetId
Sets the value ofCfnSecretTargetAttachmentMixinProps.getTargetId()- Parameters:
targetId- The ID of the database or cluster.- Returns:
this
-
targetType
Sets the value ofCfnSecretTargetAttachmentMixinProps.getTargetType()- Parameters:
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
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSecretTargetAttachmentMixinProps>- Returns:
- a new instance of
CfnSecretTargetAttachmentMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-