CustomSecretConfigProperty Struct
Specifies configuration information for a customer-managed Secrets Manager secret where a storage location credentials is stored in Secrets Manager as plain text (for authentication token, secret key, or password) or as binary (for Kerberos keytab).
This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret.
You can use either
CmkSecretConfigorCustomSecretConfigto provide credentials for aCreateLocationrequest. Do not provide both parameters for the same request.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_datasync as datasync } from 'aws-cdk-lib';
const customSecretConfigProperty: datasync.CfnLocationObjectStorage.CustomSecretConfigProperty = {
secretAccessRoleArn: 'secretAccessRoleArn',
secretArn: 'secretArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_datasync as datasync
custom_secret_config_property = datasync.CfnLocationObjectStorage.CustomSecretConfigProperty(
secret_access_role_arn="secretAccessRoleArn",
secret_arn="secretArn"
)
java
// 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.*;
CustomSecretConfigProperty customSecretConfigProperty = CustomSecretConfigProperty.builder()
.secretAccessRoleArn("secretAccessRoleArn")
.secretArn("secretArn")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DataSync;
var customSecretConfigProperty = new CustomSecretConfigProperty {
SecretAccessRoleArn = "secretAccessRoleArn",
SecretArn = "secretArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
customSecretConfigProperty := &CustomSecretConfigProperty{
SecretAccessRoleArn: jsii.String("secretAccessRoleArn"),
SecretArn: jsii.String("secretArn"),
}
Properties
secretAccessRoleArnstringsecret_access_role_arnstrsecretAccessRoleArnStringSecretAccessRoleArnstringSecretAccessRoleArn*string required #Specifies the ARN for the AWS Identity and Access Management role that DataSync uses to access the secret specified for `SecretArn` .
Specifies the ARN for an AWS Secrets Manager secret.