Class SecretRotation
Secret rotation for a service or database.
Inheritance
System.Object
SecretRotation
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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
SecretRotation(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
SecretRotation(Construct, String, ISecretRotationProps) |
Constructors
SecretRotation(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected SecretRotation(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
SecretRotation(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected SecretRotation(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
SecretRotation(Construct, String, ISecretRotationProps)
public SecretRotation(Construct scope, string id, ISecretRotationProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props ISecretRotationProps