# CustomSecretConfigProperty

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: Generated at build time
- Type last changed: v2.242.0 · 10 Mar 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `secretAccessRoleArn`: string (required) — Specifies the ARN for the AWS Identity and Access Management role that DataSync uses to access the secret specified for SecretArn.

- `secretArn`: string (required) — Specifies the ARN for a customer created AWS Secrets Manager secret.
