Class CfnLocationSMB.CmkSecretConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.datasync.CfnLocationSMB.CmkSecretConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationSMB.CmkSecretConfigProperty>
- Enclosing interface:
CfnLocationSMB.CmkSecretConfigProperty
@Stability(Stable)
public static final class CfnLocationSMB.CmkSecretConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocationSMB.CmkSecretConfigProperty>
A builder for
CfnLocationSMB.CmkSecretConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnLocationSMB.CmkSecretConfigProperty.getKmsKeyArn()Sets the value ofCfnLocationSMB.CmkSecretConfigProperty.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kmsKeyArn
@Stability(Stable) public CfnLocationSMB.CmkSecretConfigProperty.Builder kmsKeyArn(String kmsKeyArn) Sets the value ofCfnLocationSMB.CmkSecretConfigProperty.getKmsKeyArn()- Parameters:
kmsKeyArn- Specifies the ARN for the customer-managed AWS KMS key that DataSync uses to encrypt the DataSync-managed secret stored forSecretArn. DataSync provides this key to AWS Secrets Manager .- Returns:
this
-
secretArn
@Stability(Stable) public CfnLocationSMB.CmkSecretConfigProperty.Builder secretArn(String secretArn) Sets the value ofCfnLocationSMB.CmkSecretConfigProperty.getSecretArn()- Parameters:
secretArn- Specifies the ARN for the DataSync-managed AWS Secrets Manager secret that that is used to access a specific storage location. This property is generated by DataSync and is read-only. DataSync encrypts this secret with the KMS key that you specify forKmsKeyArn.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLocationSMB.CmkSecretConfigProperty>- Returns:
- a new instance of
CfnLocationSMB.CmkSecretConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-