CustomSecretConfigProperty Struct
Specifies configuration information for a customer-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and an IAM role that DataSync can assume and access the customer-managed secret.
| 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.CfnLocationFSxWindows.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.CfnLocationFSxWindows.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 a customer created AWS Secrets Manager secret.