Class ScheduledAction
Define a scheduled scaling action.
Inherited Members
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ScheduledAction : Resource, IResource, IConstruct, IDependable
Syntax (vb)
Public Class ScheduledAction Inherits Resource Implements IResource, IConstruct, IDependable
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.AWS.AutoScaling;
AutoScalingGroup autoScalingGroup;
Schedule schedule;
var scheduledAction = new ScheduledAction(this, "MyScheduledAction", new ScheduledActionProps {
AutoScalingGroup = autoScalingGroup,
Schedule = schedule,
// the properties below are optional
DesiredCapacity = 123,
EndTime = new Date(),
MaxCapacity = 123,
MinCapacity = 123,
StartTime = new Date(),
TimeZone = "timeZone"
});
Synopsis
Constructors
ScheduledAction(Construct, string, IScheduledActionProps) | Define a scheduled scaling action. |
Properties
PROPERTY_INJECTION_ID | Uniquely identifies this class. |
ScheduledActionName | The name of the scheduled action. |
Constructors
ScheduledAction(Construct, string, IScheduledActionProps)
Define a scheduled scaling action.
public ScheduledAction(Construct scope, string id, IScheduledActionProps props)
Parameters
- scope Construct
- id string
- props IScheduledActionProps
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.AWS.AutoScaling;
AutoScalingGroup autoScalingGroup;
Schedule schedule;
var scheduledAction = new ScheduledAction(this, "MyScheduledAction", new ScheduledActionProps {
AutoScalingGroup = autoScalingGroup,
Schedule = schedule,
// the properties below are optional
DesiredCapacity = 123,
EndTime = new Date(),
MaxCapacity = 123,
MinCapacity = 123,
StartTime = new Date(),
TimeZone = "timeZone"
});
Properties
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
ScheduledActionName
The name of the scheduled action.
public virtual string ScheduledActionName { get; }
Property Value
Remarks
Attribute: true
Implements
Constructs.IConstruct
Constructs.IDependable