Class SecretRotation
Secret rotation for a service or database.
Namespace: Amazon.CDK.AWS.SecretsManager
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SecretRotation : Construct
Syntax (vb)
Public Class SecretRotation Inherits Construct
Remarks
ExampleMetadata: infused
Examples
Secret myUserSecret;
Secret myMasterSecret;
IConnectable myDatabase;
Vpc myVpc;
new SecretRotation(this, "SecretRotation", new SecretRotationProps {
Application = SecretRotationApplication.MYSQL_ROTATION_MULTI_USER,
Secret = myUserSecret, // The secret that will be rotated
MasterSecret = myMasterSecret, // The secret used for the rotation
Target = myDatabase,
Vpc = myVpc
});
Synopsis
Constructors
| SecretRotation(Construct, string, ISecretRotationProps) | Secret rotation for a service or database. |
Constructors
SecretRotation(Construct, string, ISecretRotationProps)
Secret rotation for a service or database.
public SecretRotation(Construct scope, string id, ISecretRotationProps props)
Parameters
- scope Construct
- id string
- props ISecretRotationProps
Remarks
ExampleMetadata: infused
Examples
Secret myUserSecret;
Secret myMasterSecret;
IConnectable myDatabase;
Vpc myVpc;
new SecretRotation(this, "SecretRotation", new SecretRotationProps {
Application = SecretRotationApplication.MYSQL_ROTATION_MULTI_USER,
Secret = myUserSecret, // The secret that will be rotated
MasterSecret = myMasterSecret, // The secret used for the rotation
Target = myDatabase,
Vpc = myVpc
});