Show / Hide Table of Contents

Class ScheduledAction

Define a scheduled scaling action.

Inheritance
object
Resource
ScheduledAction
Implements
IResource
IConstruct
IDependable
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
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

string

Remarks

ExampleMetadata: fixture=_generated

ScheduledActionName

The name of the scheduled action.

public virtual string ScheduledActionName { get; }
Property Value

string

Remarks

Attribute: true

Implements

IResource
Constructs.IConstruct
Constructs.IDependable
Back to top Generated by DocFX