Class CfnSecretTargetAttachment.Builder
java.lang.Object
software.amazon.awscdk.services.secretsmanager.CfnSecretTargetAttachment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecretTargetAttachment>
- Enclosing class:
CfnSecretTargetAttachment
@Stability(Stable)
public static final class CfnSecretTargetAttachment.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecretTargetAttachment>
A fluent builder for
CfnSecretTargetAttachment
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
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 CfnSecretTargetAttachment.Builder create(Construct scope, String id) - Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnSecretTargetAttachment.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.
- Parameters:
secretId
- The ARN or name of the secret. This parameter is required.- Returns:
this
-
targetId
The ID of the database or cluster.- Parameters:
targetId
- The ID of the database or cluster. This parameter is required.- Returns:
this
-
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::DocDB::DBInstance
- AWS::DocDB::DBCluster
- Parameters:
targetType
- A string that defines the type of service or database associated with the secret. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSecretTargetAttachment>
- Returns:
- a newly built instance of
CfnSecretTargetAttachment
.
-