Class SecretTargetAttachment.Builder
java.lang.Object
software.amazon.awscdk.services.secretsmanager.SecretTargetAttachment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretTargetAttachment>
- Enclosing class:
- SecretTargetAttachment
@Stability(Stable)
public static final class SecretTargetAttachment.Builder
extends Object
implements software.amazon.jsii.Builder<SecretTargetAttachment>
A fluent builder for
SecretTargetAttachment
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The secret to attach to the target.target
(ISecretAttachmentTarget target) The target to attach the secret to.
-
Method Details
-
create
@Stability(Stable) public static SecretTargetAttachment.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
SecretTargetAttachment.Builder
.
-
target
The target to attach the secret to.- Parameters:
target
- The target to attach the secret to. This parameter is required.- Returns:
this
-
secret
The secret to attach to the target.- Parameters:
secret
- The secret to attach to the target. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SecretTargetAttachment>
- Returns:
- a newly built instance of
SecretTargetAttachment
.
-