Class RotationSchedule
A rotation schedule.
Inherited Members
Namespace: Amazon.CDK.AWS.SecretsManager
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RotationSchedule : Resource, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class RotationSchedule Inherits Resource Implements IResource, IConstruct, IDependable, IEnvironmentAware
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.Lambda;
using Amazon.CDK.AWS.SecretsManager;
Function function_;
HostedRotation hostedRotation;
Secret secret;
var rotationSchedule = new RotationSchedule(this, "MyRotationSchedule", new RotationScheduleProps {
Secret = secret,
// the properties below are optional
AutomaticallyAfter = Duration.Minutes(30),
HostedRotation = hostedRotation,
RotateImmediatelyOnUpdate = false,
RotationLambda = function_
});
Synopsis
Constructors
| RotationSchedule(Construct, string, IRotationScheduleProps) | A rotation schedule. |
Properties
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
Constructors
RotationSchedule(Construct, string, IRotationScheduleProps)
A rotation schedule.
public RotationSchedule(Construct scope, string id, IRotationScheduleProps props)
Parameters
- scope Construct
- id string
- props IRotationScheduleProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.Lambda;
using Amazon.CDK.AWS.SecretsManager;
Function function_;
HostedRotation hostedRotation;
Secret secret;
var rotationSchedule = new RotationSchedule(this, "MyRotationSchedule", new RotationScheduleProps {
Secret = secret,
// the properties below are optional
AutomaticallyAfter = Duration.Minutes(30),
HostedRotation = hostedRotation,
RotateImmediatelyOnUpdate = false,
RotationLambda = function_
});
Properties
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
Implements
Constructs.IConstruct
Constructs.IDependable