AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the PutScheduledUpdateGroupAction operation. Creates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling action, if you leave a parameter unspecified, the corresponding value remains unchanged.

For more information, see Scheduled Scaling in the Auto Scaling User Guide.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.AutoScaling.AmazonAutoScalingRequest
      Amazon.AutoScaling.Model.PutScheduledUpdateGroupActionRequest

Namespace: Amazon.AutoScaling.Model
Assembly: AWSSDK.AutoScaling.dll
Version: 3.x.y.z

Syntax

C#
public class PutScheduledUpdateGroupActionRequest : AmazonAutoScalingRequest
         IAmazonWebServiceRequest

The PutScheduledUpdateGroupActionRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property AutoScalingGroupName System.String

Gets and sets the property AutoScalingGroupName.

The name or Amazon Resource Name (ARN) of the Auto Scaling group.

Public Property DesiredCapacity System.Int32

Gets and sets the property DesiredCapacity.

The number of EC2 instances that should be running in the group.

Public Property EndTime System.DateTime

Gets and sets the property EndTime.

The time for the recurring schedule to end. Auto Scaling does not perform the action after this time.

Public Property MaxSize System.Int32

Gets and sets the property MaxSize.

The maximum size for the Auto Scaling group.

Public Property MinSize System.Int32

Gets and sets the property MinSize.

The minimum size for the Auto Scaling group.

Public Property Recurrence System.String

Gets and sets the property Recurrence.

The recurring schedule for this action, in Unix cron syntax format. For more information, see Cron in Wikipedia.

Public Property ScheduledActionName System.String

Gets and sets the property ScheduledActionName.

The name of this scaling action.

Public Property StartTime System.DateTime

Gets and sets the property StartTime.

The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in UTC/GMT only (for example, 2014-06-01T00:00:00Z).

If you specify Recurrence and StartTime, Auto Scaling performs the action at this time, and then performs the action based on the specified recurrence.

If you try to schedule your action in the past, Auto Scaling returns an error message.

Public Property Time System.DateTime

Gets and sets the property Time.

This parameter is deprecated.

Examples

This example adds the specified scheduled action to the specified Auto Scaling group.

To add a scheduled action to an Auto Scaling group


var response = client.PutScheduledUpdateGroupAction(new PutScheduledUpdateGroupActionRequest 
{
    AutoScalingGroupName = "my-auto-scaling-group",
    DesiredCapacity = 4,
    EndTime = new DateTime(2014, 5, 12, 1, 0, 0),
    MaxSize = 6,
    MinSize = 2,
    ScheduledActionName = "my-scheduled-action",
    StartTime = new DateTime(2014, 5, 12, 1, 0, 0)
});


            

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms