Table of Contents

Class SecretRotation

Namespace
Amazon.CDK.AWS.SecretsManager
Assembly
Amazon.CDK.AWS.SecretsManager.dll

Secret rotation for a service or database.

public class SecretRotation : Construct
Inheritance
SecretRotation

Examples

Secret mySecret;
            IConnectable myDatabase;
            Vpc myVpc;


            new SecretRotation(this, "SecretRotation", new SecretRotationProps {
                Application = SecretRotationApplication.MYSQL_ROTATION_SINGLE_USER,  // MySQL single user scheme
                Secret = mySecret,
                Target = myDatabase,  // a Connectable
                Vpc = myVpc,  // The VPC where the secret rotation application will be deployed
                ExcludeCharacters = " %+:;{}"
            });

Remarks

ExampleMetadata: infused

Constructors

SecretRotation(Construct, string, ISecretRotationProps)

public SecretRotation(Construct scope, string id, ISecretRotationProps props)

Parameters

scope Construct
id string
props ISecretRotationProps