Class CfnLocationSMB.CustomSecretConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.datasync.CfnLocationSMB.CustomSecretConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationSMB.CustomSecretConfigProperty>
- Enclosing interface:
CfnLocationSMB.CustomSecretConfigProperty
@Stability(Stable)
public static final class CfnLocationSMB.CustomSecretConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocationSMB.CustomSecretConfigProperty>
A builder for
CfnLocationSMB.CustomSecretConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.secretAccessRoleArn(String secretAccessRoleArn) Sets the value ofCfnLocationSMB.CustomSecretConfigProperty.getSecretAccessRoleArn()Sets the value ofCfnLocationSMB.CustomSecretConfigProperty.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
secretAccessRoleArn
@Stability(Stable) public CfnLocationSMB.CustomSecretConfigProperty.Builder secretAccessRoleArn(String secretAccessRoleArn) Sets the value ofCfnLocationSMB.CustomSecretConfigProperty.getSecretAccessRoleArn()- Parameters:
secretAccessRoleArn- Specifies the ARN for the AWS Identity and Access Management role that DataSync uses to access the secret specified forSecretArn. This parameter is required.- Returns:
this
-
secretArn
@Stability(Stable) public CfnLocationSMB.CustomSecretConfigProperty.Builder secretArn(String secretArn) Sets the value ofCfnLocationSMB.CustomSecretConfigProperty.getSecretArn()- Parameters:
secretArn- Specifies the ARN for an AWS Secrets Manager secret. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLocationSMB.CustomSecretConfigProperty>- Returns:
- a new instance of
CfnLocationSMB.CustomSecretConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-