public static final class CfnSecretTargetAttachment.Builder
extends java.lang.Object
CfnSecretTargetAttachment
.Modifier and Type | Method and Description |
---|---|
CfnSecretTargetAttachment |
build() |
static CfnSecretTargetAttachment.Builder |
create(Construct scope,
java.lang.String id) |
CfnSecretTargetAttachment.Builder |
secretId(java.lang.String secretId)
The ARN or name of the secret.
|
CfnSecretTargetAttachment.Builder |
targetId(java.lang.String targetId)
The ID of the database or cluster.
|
CfnSecretTargetAttachment.Builder |
targetType(java.lang.String targetType)
A string that defines the type of service or database associated with the secret.
|
public static CfnSecretTargetAttachment.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnSecretTargetAttachment.Builder
.public CfnSecretTargetAttachment.Builder secretId(java.lang.String secretId)
To reference a secret also created in this template, use the see Ref function with the secret's logical ID.
secretId
- The ARN or name of the secret. This parameter is required.this
public CfnSecretTargetAttachment.Builder targetId(java.lang.String targetId)
targetId
- The ID of the database or cluster. This parameter is required.this
public CfnSecretTargetAttachment.Builder targetType(java.lang.String targetType)
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:
targetType
- A string that defines the type of service or database associated with the secret. This parameter is required.this
public CfnSecretTargetAttachment build()