Skip to content
v2.278.0

MasterUserSecretProperty Struct ​

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 in the Amazon RDS User Guide and Password management with AWS Secrets Manager in the Amazon Aurora User Guide.

Example ​

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
# 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
// 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();
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"
};
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 ​

kmsKeyIdoptionalstringkms_key_idoptionalstrkmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptional*string #
The AWS KMS key identifier that is used to encrypt the secret.
secretArnoptionalstringsecret_arnoptionalstrsecretArnoptionalStringSecretArnoptionalstringSecretArnoptional*string #
The Amazon Resource Name (ARN) of the secret.
notes

This parameter is a return value that you can retrieve using the Fn::GetAtt intrinsic function. For more information, see Return values .