Class SecretTargetAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.secretsmanager.SecretTargetAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretTargetAttachmentProps>
- Enclosing interface:
SecretTargetAttachmentProps
@Stability(Stable)
public static final class SecretTargetAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<SecretTargetAttachmentProps>
A builder for
SecretTargetAttachmentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofSecretTargetAttachmentProps.getSecret()
target
(ISecretAttachmentTarget target) Sets the value ofAttachedSecretOptions.getTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
secret
Sets the value ofSecretTargetAttachmentProps.getSecret()
- Parameters:
secret
- The secret to attach to the target. This parameter is required.- Returns:
this
-
target
@Stability(Stable) public SecretTargetAttachmentProps.Builder target(ISecretAttachmentTarget target) Sets the value ofAttachedSecretOptions.getTarget()
- Parameters:
target
- The target to attach the secret to. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SecretTargetAttachmentProps>
- Returns:
- a new instance of
SecretTargetAttachmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-