# MasterUserSecretProperty

The `MasterUserSecret` return value specifies the secret managed by RDS in AWS Secrets Manager for the master user password.

For more information, see [Password management with AWS Secrets Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) in the *Amazon RDS User Guide* and [Password management with AWS Secrets Manager](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html) in the *Amazon Aurora User Guide.*

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rds as rds } from 'aws-cdk-lib';
const masterUserSecretProperty: rds.CfnDBInstance.MasterUserSecretProperty = {
  kmsKeyId: 'kmsKeyId',
  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_rds as rds

master_user_secret_property = rds.CfnDBInstance.MasterUserSecretProperty(
    kms_key_id="kmsKeyId",
    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.rds.*;

MasterUserSecretProperty masterUserSecretProperty = MasterUserSecretProperty.builder()
        .kmsKeyId("kmsKeyId")
        .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.RDS;

var masterUserSecretProperty = new MasterUserSecretProperty {
    KmsKeyId = "kmsKeyId",
    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"

masterUserSecretProperty := &MasterUserSecretProperty{
	KmsKeyId: jsii.String("kmsKeyId"),
	SecretArn: jsii.String("secretArn"),
}
```

## Properties

- `kmsKeyId`: string — The AWS KMS key identifier that is used to encrypt the secret.

- `secretArn`: string — The Amazon Resource Name (ARN) of the secret.

  This parameter is a return value that you can retrieve using the `Fn::GetAtt` intrinsic function. For more information, see [Return values](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#aws-resource-rds-dbinstance-return-values) .
