Interface CfnLocationSMB.CmkSecretConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLocationSMB.CmkSecretConfigProperty.Jsii$Proxy
- Enclosing class:
CfnLocationSMB
@Stability(Stable)
public static interface CfnLocationSMB.CmkSecretConfigProperty
extends software.amazon.jsii.JsiiSerializable
Specifies configuration information for a DataSync-managed secret, such as an authentication token or secret key that DataSync uses to access a specific storage location, with a customer-managed AWS KMS key .
You can use either
CmkSecretConfigorCustomSecretConfigto provide credentials for aCreateLocationrequest. Do not provide both parameters for the same request.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.datasync.*;
CmkSecretConfigProperty cmkSecretConfigProperty = CmkSecretConfigProperty.builder()
.kmsKeyArn("kmsKeyArn")
.secretArn("secretArn")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLocationSMB.CmkSecretConfigPropertystatic final classAn implementation forCfnLocationSMB.CmkSecretConfigProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringSpecifies the ARN for the customer-managed AWS KMS key that DataSync uses to encrypt the DataSync-managed secret stored forSecretArn.default StringSpecifies the ARN for the DataSync-managed AWS Secrets Manager secret that that is used to access a specific storage location.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getKmsKeyArn
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 .
- See Also:
-
getSecretArn
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 for
KmsKeyArn.- See Also:
-
builder
-