# ManagedSecretConfigProperty

Specifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location.

DataSync uses the default AWS -managed KMS key to encrypt this secret in AWS Secrets Manager .

- Source: Generated at build time
- Type last changed: v2.198.0 · 23 May 2025

## 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 managedSecretConfigProperty: datasync.CfnLocationObjectStorage.ManagedSecretConfigProperty = {
  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

managed_secret_config_property = datasync.CfnLocationObjectStorage.ManagedSecretConfigProperty(
    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.*;

ManagedSecretConfigProperty managedSecretConfigProperty = ManagedSecretConfigProperty.builder()
        .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 managedSecretConfigProperty = new ManagedSecretConfigProperty {
    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"

managedSecretConfigProperty := &ManagedSecretConfigProperty{
	SecretArn: jsii.String("secretArn"),
}
```

## Properties

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