Documentation ¶
Overview ¶
Package autoscaling provides the client and types for making API requests to Auto Scaling.
Amazon EC2 Auto Scaling is designed to automatically launch or terminate EC2 instances based on user-defined scaling policies, scheduled actions, and health checks. Use this service with AWS Auto Scaling, Amazon CloudWatch, and Elastic Load Balancing.
For more information, including information about granting IAM users required permissions for Amazon EC2 Auto Scaling actions, see the Amazon EC2 Auto Scaling User Guide (https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html).
See https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01 for more information on this service.
See autoscaling package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/autoscaling/
Using the Client ¶
To use Auto Scaling with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the Auto Scaling client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/autoscaling/#New
Index ¶
- Constants
- type Activity
- type AdjustmentType
- type Alarm
- type AttachInstancesInput
- type AttachInstancesOutput
- type AttachInstancesRequest
- type AttachInstancesResponse
- type AttachLoadBalancerTargetGroupsInput
- type AttachLoadBalancerTargetGroupsOutput
- type AttachLoadBalancerTargetGroupsRequest
- type AttachLoadBalancerTargetGroupsResponse
- type AttachLoadBalancersInput
- type AttachLoadBalancersOutput
- type AttachLoadBalancersRequest
- type AttachLoadBalancersResponse
- type AutoScalingGroup
- type AutoScalingInstanceDetails
- type BatchDeleteScheduledActionInput
- type BatchDeleteScheduledActionOutput
- type BatchDeleteScheduledActionRequest
- type BatchDeleteScheduledActionResponse
- type BatchPutScheduledUpdateGroupActionInput
- type BatchPutScheduledUpdateGroupActionOutput
- type BatchPutScheduledUpdateGroupActionRequest
- type BatchPutScheduledUpdateGroupActionResponse
- type BlockDeviceMapping
- type Client
- func (c *Client) AttachInstancesRequest(input *AttachInstancesInput) AttachInstancesRequest
- func (c *Client) AttachLoadBalancerTargetGroupsRequest(input *AttachLoadBalancerTargetGroupsInput) AttachLoadBalancerTargetGroupsRequest
- func (c *Client) AttachLoadBalancersRequest(input *AttachLoadBalancersInput) AttachLoadBalancersRequest
- func (c *Client) BatchDeleteScheduledActionRequest(input *BatchDeleteScheduledActionInput) BatchDeleteScheduledActionRequest
- func (c *Client) BatchPutScheduledUpdateGroupActionRequest(input *BatchPutScheduledUpdateGroupActionInput) BatchPutScheduledUpdateGroupActionRequest
- func (c *Client) CompleteLifecycleActionRequest(input *CompleteLifecycleActionInput) CompleteLifecycleActionRequest
- func (c *Client) CreateAutoScalingGroupRequest(input *CreateAutoScalingGroupInput) CreateAutoScalingGroupRequest
- func (c *Client) CreateLaunchConfigurationRequest(input *CreateLaunchConfigurationInput) CreateLaunchConfigurationRequest
- func (c *Client) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) CreateOrUpdateTagsRequest
- func (c *Client) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGroupInput) DeleteAutoScalingGroupRequest
- func (c *Client) DeleteLaunchConfigurationRequest(input *DeleteLaunchConfigurationInput) DeleteLaunchConfigurationRequest
- func (c *Client) DeleteLifecycleHookRequest(input *DeleteLifecycleHookInput) DeleteLifecycleHookRequest
- func (c *Client) DeleteNotificationConfigurationRequest(input *DeleteNotificationConfigurationInput) DeleteNotificationConfigurationRequest
- func (c *Client) DeletePolicyRequest(input *DeletePolicyInput) DeletePolicyRequest
- func (c *Client) DeleteScheduledActionRequest(input *DeleteScheduledActionInput) DeleteScheduledActionRequest
- func (c *Client) DeleteTagsRequest(input *DeleteTagsInput) DeleteTagsRequest
- func (c *Client) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) DescribeAccountLimitsRequest
- func (c *Client) DescribeAdjustmentTypesRequest(input *DescribeAdjustmentTypesInput) DescribeAdjustmentTypesRequest
- func (c *Client) DescribeAutoScalingGroupsRequest(input *DescribeAutoScalingGroupsInput) DescribeAutoScalingGroupsRequest
- func (c *Client) DescribeAutoScalingInstancesRequest(input *DescribeAutoScalingInstancesInput) DescribeAutoScalingInstancesRequest
- func (c *Client) DescribeAutoScalingNotificationTypesRequest(input *DescribeAutoScalingNotificationTypesInput) DescribeAutoScalingNotificationTypesRequest
- func (c *Client) DescribeLaunchConfigurationsRequest(input *DescribeLaunchConfigurationsInput) DescribeLaunchConfigurationsRequest
- func (c *Client) DescribeLifecycleHookTypesRequest(input *DescribeLifecycleHookTypesInput) DescribeLifecycleHookTypesRequest
- func (c *Client) DescribeLifecycleHooksRequest(input *DescribeLifecycleHooksInput) DescribeLifecycleHooksRequest
- func (c *Client) DescribeLoadBalancerTargetGroupsRequest(input *DescribeLoadBalancerTargetGroupsInput) DescribeLoadBalancerTargetGroupsRequest
- func (c *Client) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) DescribeLoadBalancersRequest
- func (c *Client) DescribeMetricCollectionTypesRequest(input *DescribeMetricCollectionTypesInput) DescribeMetricCollectionTypesRequest
- func (c *Client) DescribeNotificationConfigurationsRequest(input *DescribeNotificationConfigurationsInput) DescribeNotificationConfigurationsRequest
- func (c *Client) DescribePoliciesRequest(input *DescribePoliciesInput) DescribePoliciesRequest
- func (c *Client) DescribeScalingActivitiesRequest(input *DescribeScalingActivitiesInput) DescribeScalingActivitiesRequest
- func (c *Client) DescribeScalingProcessTypesRequest(input *DescribeScalingProcessTypesInput) DescribeScalingProcessTypesRequest
- func (c *Client) DescribeScheduledActionsRequest(input *DescribeScheduledActionsInput) DescribeScheduledActionsRequest
- func (c *Client) DescribeTagsRequest(input *DescribeTagsInput) DescribeTagsRequest
- func (c *Client) DescribeTerminationPolicyTypesRequest(input *DescribeTerminationPolicyTypesInput) DescribeTerminationPolicyTypesRequest
- func (c *Client) DetachInstancesRequest(input *DetachInstancesInput) DetachInstancesRequest
- func (c *Client) DetachLoadBalancerTargetGroupsRequest(input *DetachLoadBalancerTargetGroupsInput) DetachLoadBalancerTargetGroupsRequest
- func (c *Client) DetachLoadBalancersRequest(input *DetachLoadBalancersInput) DetachLoadBalancersRequest
- func (c *Client) DisableMetricsCollectionRequest(input *DisableMetricsCollectionInput) DisableMetricsCollectionRequest
- func (c *Client) EnableMetricsCollectionRequest(input *EnableMetricsCollectionInput) EnableMetricsCollectionRequest
- func (c *Client) EnterStandbyRequest(input *EnterStandbyInput) EnterStandbyRequest
- func (c *Client) ExecutePolicyRequest(input *ExecutePolicyInput) ExecutePolicyRequest
- func (c *Client) ExitStandbyRequest(input *ExitStandbyInput) ExitStandbyRequest
- func (c *Client) PutLifecycleHookRequest(input *PutLifecycleHookInput) PutLifecycleHookRequest
- func (c *Client) PutNotificationConfigurationRequest(input *PutNotificationConfigurationInput) PutNotificationConfigurationRequest
- func (c *Client) PutScalingPolicyRequest(input *PutScalingPolicyInput) PutScalingPolicyRequest
- func (c *Client) PutScheduledUpdateGroupActionRequest(input *PutScheduledUpdateGroupActionInput) PutScheduledUpdateGroupActionRequest
- func (c *Client) RecordLifecycleActionHeartbeatRequest(input *RecordLifecycleActionHeartbeatInput) RecordLifecycleActionHeartbeatRequest
- func (c *Client) ResumeProcessesRequest(input *ResumeProcessesInput) ResumeProcessesRequest
- func (c *Client) SetDesiredCapacityRequest(input *SetDesiredCapacityInput) SetDesiredCapacityRequest
- func (c *Client) SetInstanceHealthRequest(input *SetInstanceHealthInput) SetInstanceHealthRequest
- func (c *Client) SetInstanceProtectionRequest(input *SetInstanceProtectionInput) SetInstanceProtectionRequest
- func (c *Client) SuspendProcessesRequest(input *SuspendProcessesInput) SuspendProcessesRequest
- func (c *Client) TerminateInstanceInAutoScalingGroupRequest(input *TerminateInstanceInAutoScalingGroupInput) TerminateInstanceInAutoScalingGroupRequest
- func (c *Client) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGroupInput) UpdateAutoScalingGroupRequest
- func (c *Client) WaitUntilGroupExists(ctx context.Context, input *DescribeAutoScalingGroupsInput, ...) error
- func (c *Client) WaitUntilGroupInService(ctx context.Context, input *DescribeAutoScalingGroupsInput, ...) error
- func (c *Client) WaitUntilGroupNotExists(ctx context.Context, input *DescribeAutoScalingGroupsInput, ...) error
- type CompleteLifecycleActionInput
- type CompleteLifecycleActionOutput
- type CompleteLifecycleActionRequest
- type CompleteLifecycleActionResponse
- type CreateAutoScalingGroupInput
- type CreateAutoScalingGroupOutput
- type CreateAutoScalingGroupRequest
- type CreateAutoScalingGroupResponse
- type CreateLaunchConfigurationInput
- type CreateLaunchConfigurationOutput
- type CreateLaunchConfigurationRequest
- type CreateLaunchConfigurationResponse
- type CreateOrUpdateTagsInput
- type CreateOrUpdateTagsOutput
- type CreateOrUpdateTagsRequest
- type CreateOrUpdateTagsResponse
- type CustomizedMetricSpecification
- type DeleteAutoScalingGroupInput
- type DeleteAutoScalingGroupOutput
- type DeleteAutoScalingGroupRequest
- type DeleteAutoScalingGroupResponse
- type DeleteLaunchConfigurationInput
- type DeleteLaunchConfigurationOutput
- type DeleteLaunchConfigurationRequest
- type DeleteLaunchConfigurationResponse
- type DeleteLifecycleHookInput
- type DeleteLifecycleHookOutput
- type DeleteLifecycleHookRequest
- type DeleteLifecycleHookResponse
- type DeleteNotificationConfigurationInput
- type DeleteNotificationConfigurationOutput
- type DeleteNotificationConfigurationRequest
- type DeleteNotificationConfigurationResponse
- type DeletePolicyInput
- type DeletePolicyOutput
- type DeletePolicyRequest
- type DeletePolicyResponse
- type DeleteScheduledActionInput
- type DeleteScheduledActionOutput
- type DeleteScheduledActionRequest
- type DeleteScheduledActionResponse
- type DeleteTagsInput
- type DeleteTagsOutput
- type DeleteTagsRequest
- type DeleteTagsResponse
- type DescribeAccountLimitsInput
- type DescribeAccountLimitsOutput
- type DescribeAccountLimitsRequest
- type DescribeAccountLimitsResponse
- type DescribeAdjustmentTypesInput
- type DescribeAdjustmentTypesOutput
- type DescribeAdjustmentTypesRequest
- type DescribeAdjustmentTypesResponse
- type DescribeAutoScalingGroupsInput
- type DescribeAutoScalingGroupsOutput
- type DescribeAutoScalingGroupsPaginator
- type DescribeAutoScalingGroupsRequest
- type DescribeAutoScalingGroupsResponse
- type DescribeAutoScalingInstancesInput
- type DescribeAutoScalingInstancesOutput
- type DescribeAutoScalingInstancesPaginator
- type DescribeAutoScalingInstancesRequest
- type DescribeAutoScalingInstancesResponse
- type DescribeAutoScalingNotificationTypesInput
- type DescribeAutoScalingNotificationTypesOutput
- type DescribeAutoScalingNotificationTypesRequest
- type DescribeAutoScalingNotificationTypesResponse
- type DescribeLaunchConfigurationsInput
- type DescribeLaunchConfigurationsOutput
- type DescribeLaunchConfigurationsPaginator
- type DescribeLaunchConfigurationsRequest
- type DescribeLaunchConfigurationsResponse
- type DescribeLifecycleHookTypesInput
- type DescribeLifecycleHookTypesOutput
- type DescribeLifecycleHookTypesRequest
- type DescribeLifecycleHookTypesResponse
- type DescribeLifecycleHooksInput
- type DescribeLifecycleHooksOutput
- type DescribeLifecycleHooksRequest
- type DescribeLifecycleHooksResponse
- type DescribeLoadBalancerTargetGroupsInput
- type DescribeLoadBalancerTargetGroupsOutput
- type DescribeLoadBalancerTargetGroupsRequest
- type DescribeLoadBalancerTargetGroupsResponse
- type DescribeLoadBalancersInput
- type DescribeLoadBalancersOutput
- type DescribeLoadBalancersRequest
- type DescribeLoadBalancersResponse
- type DescribeMetricCollectionTypesInput
- type DescribeMetricCollectionTypesOutput
- type DescribeMetricCollectionTypesRequest
- type DescribeMetricCollectionTypesResponse
- type DescribeNotificationConfigurationsInput
- type DescribeNotificationConfigurationsOutput
- type DescribeNotificationConfigurationsPaginator
- type DescribeNotificationConfigurationsRequest
- type DescribeNotificationConfigurationsResponse
- type DescribePoliciesInput
- type DescribePoliciesOutput
- type DescribePoliciesPaginator
- type DescribePoliciesRequest
- type DescribePoliciesResponse
- type DescribeScalingActivitiesInput
- type DescribeScalingActivitiesOutput
- type DescribeScalingActivitiesPaginator
- type DescribeScalingActivitiesRequest
- type DescribeScalingActivitiesResponse
- type DescribeScalingProcessTypesInput
- type DescribeScalingProcessTypesOutput
- type DescribeScalingProcessTypesRequest
- type DescribeScalingProcessTypesResponse
- type DescribeScheduledActionsInput
- type DescribeScheduledActionsOutput
- type DescribeScheduledActionsPaginator
- type DescribeScheduledActionsRequest
- type DescribeScheduledActionsResponse
- type DescribeTagsInput
- type DescribeTagsOutput
- type DescribeTagsPaginator
- type DescribeTagsRequest
- type DescribeTagsResponse
- type DescribeTerminationPolicyTypesInput
- type DescribeTerminationPolicyTypesOutput
- type DescribeTerminationPolicyTypesRequest
- type DescribeTerminationPolicyTypesResponse
- type DetachInstancesInput
- type DetachInstancesOutput
- type DetachInstancesRequest
- type DetachInstancesResponse
- type DetachLoadBalancerTargetGroupsInput
- type DetachLoadBalancerTargetGroupsOutput
- type DetachLoadBalancerTargetGroupsRequest
- type DetachLoadBalancerTargetGroupsResponse
- type DetachLoadBalancersInput
- type DetachLoadBalancersOutput
- type DetachLoadBalancersRequest
- type DetachLoadBalancersResponse
- type DisableMetricsCollectionInput
- type DisableMetricsCollectionOutput
- type DisableMetricsCollectionRequest
- type DisableMetricsCollectionResponse
- type Ebs
- type EnableMetricsCollectionInput
- type EnableMetricsCollectionOutput
- type EnableMetricsCollectionRequest
- type EnableMetricsCollectionResponse
- type EnabledMetric
- type EnterStandbyInput
- type EnterStandbyOutput
- type EnterStandbyRequest
- type EnterStandbyResponse
- type ExecutePolicyInput
- type ExecutePolicyOutput
- type ExecutePolicyRequest
- type ExecutePolicyResponse
- type ExitStandbyInput
- type ExitStandbyOutput
- type ExitStandbyRequest
- type ExitStandbyResponse
- type FailedScheduledUpdateGroupActionRequest
- type Filter
- type Instance
- type InstanceMonitoring
- type InstancesDistribution
- type LaunchConfiguration
- type LaunchTemplate
- type LaunchTemplateOverrides
- type LaunchTemplateSpecification
- type LifecycleHook
- type LifecycleHookSpecification
- type LifecycleState
- type LoadBalancerState
- type LoadBalancerTargetGroupState
- type MetricCollectionType
- type MetricDimension
- type MetricGranularityType
- type MetricStatistic
- type MetricType
- type MixedInstancesPolicy
- type NotificationConfiguration
- type PredefinedMetricSpecification
- type ProcessType
- type PutLifecycleHookInput
- type PutLifecycleHookOutput
- type PutLifecycleHookRequest
- type PutLifecycleHookResponse
- type PutNotificationConfigurationInput
- type PutNotificationConfigurationOutput
- type PutNotificationConfigurationRequest
- type PutNotificationConfigurationResponse
- type PutScalingPolicyInput
- type PutScalingPolicyOutput
- type PutScalingPolicyRequest
- type PutScalingPolicyResponse
- type PutScheduledUpdateGroupActionInput
- type PutScheduledUpdateGroupActionOutput
- type PutScheduledUpdateGroupActionRequest
- type PutScheduledUpdateGroupActionResponse
- type RecordLifecycleActionHeartbeatInput
- type RecordLifecycleActionHeartbeatOutput
- type RecordLifecycleActionHeartbeatRequest
- type RecordLifecycleActionHeartbeatResponse
- type ResumeProcessesInput
- type ResumeProcessesOutput
- type ResumeProcessesRequest
- type ResumeProcessesResponse
- type ScalingActivityStatusCode
- type ScalingPolicy
- type ScheduledUpdateGroupAction
- type ScheduledUpdateGroupActionRequest
- type SetDesiredCapacityInput
- type SetDesiredCapacityOutput
- type SetDesiredCapacityRequest
- type SetDesiredCapacityResponse
- type SetInstanceHealthInput
- type SetInstanceHealthOutput
- type SetInstanceHealthRequest
- type SetInstanceHealthResponse
- type SetInstanceProtectionInput
- type SetInstanceProtectionOutput
- type SetInstanceProtectionRequest
- type SetInstanceProtectionResponse
- type StepAdjustment
- type SuspendProcessesInput
- type SuspendProcessesOutput
- type SuspendProcessesRequest
- type SuspendProcessesResponse
- type SuspendedProcess
- type Tag
- type TagDescription
- type TargetTrackingConfiguration
- type TerminateInstanceInAutoScalingGroupInput
- type TerminateInstanceInAutoScalingGroupOutput
- type TerminateInstanceInAutoScalingGroupRequest
- type TerminateInstanceInAutoScalingGroupResponse
- type UpdateAutoScalingGroupInput
- type UpdateAutoScalingGroupOutput
- type UpdateAutoScalingGroupRequest
- type UpdateAutoScalingGroupResponse
Examples ¶
- Client.AttachInstancesRequest (Shared00)
- Client.AttachLoadBalancerTargetGroupsRequest (Shared00)
- Client.AttachLoadBalancersRequest (Shared00)
- Client.CompleteLifecycleActionRequest (Shared00)
- Client.CreateAutoScalingGroupRequest (Shared00)
- Client.CreateAutoScalingGroupRequest (Shared01)
- Client.CreateAutoScalingGroupRequest (Shared02)
- Client.CreateLaunchConfigurationRequest (Shared00)
- Client.CreateOrUpdateTagsRequest (Shared00)
- Client.DeleteAutoScalingGroupRequest (Shared00)
- Client.DeleteAutoScalingGroupRequest (Shared01)
- Client.DeleteLaunchConfigurationRequest (Shared00)
- Client.DeleteLifecycleHookRequest (Shared00)
- Client.DeleteNotificationConfigurationRequest (Shared00)
- Client.DeletePolicyRequest (Shared00)
- Client.DeleteScheduledActionRequest (Shared00)
- Client.DeleteTagsRequest (Shared00)
- Client.DescribeAccountLimitsRequest (Shared00)
- Client.DescribeAdjustmentTypesRequest (Shared00)
- Client.DescribeAutoScalingGroupsRequest (Shared00)
- Client.DescribeAutoScalingInstancesRequest (Shared00)
- Client.DescribeAutoScalingNotificationTypesRequest (Shared00)
- Client.DescribeLaunchConfigurationsRequest (Shared00)
- Client.DescribeLifecycleHookTypesRequest (Shared00)
- Client.DescribeLifecycleHooksRequest (Shared00)
- Client.DescribeLoadBalancerTargetGroupsRequest (Shared00)
- Client.DescribeLoadBalancersRequest (Shared00)
- Client.DescribeMetricCollectionTypesRequest (Shared00)
- Client.DescribeNotificationConfigurationsRequest (Shared00)
- Client.DescribePoliciesRequest (Shared00)
- Client.DescribeScalingActivitiesRequest (Shared00)
- Client.DescribeScalingProcessTypesRequest (Shared00)
- Client.DescribeScheduledActionsRequest (Shared00)
- Client.DescribeTagsRequest (Shared00)
- Client.DescribeTerminationPolicyTypesRequest (Shared00)
- Client.DetachInstancesRequest (Shared00)
- Client.DetachLoadBalancerTargetGroupsRequest (Shared00)
- Client.DetachLoadBalancersRequest (Shared00)
- Client.DisableMetricsCollectionRequest (Shared00)
- Client.EnableMetricsCollectionRequest (Shared00)
- Client.EnterStandbyRequest (Shared00)
- Client.ExecutePolicyRequest (Shared00)
- Client.ExitStandbyRequest (Shared00)
- Client.PutLifecycleHookRequest (Shared00)
- Client.PutNotificationConfigurationRequest (Shared00)
- Client.PutScalingPolicyRequest (Shared00)
- Client.PutScheduledUpdateGroupActionRequest (Shared00)
- Client.RecordLifecycleActionHeartbeatRequest (Shared00)
- Client.ResumeProcessesRequest (Shared00)
- Client.SetDesiredCapacityRequest (Shared00)
- Client.SetInstanceHealthRequest (Shared00)
- Client.SetInstanceProtectionRequest (Shared00)
- Client.SetInstanceProtectionRequest (Shared01)
- Client.SuspendProcessesRequest (Shared00)
- Client.TerminateInstanceInAutoScalingGroupRequest (Shared00)
- Client.UpdateAutoScalingGroupRequest (Shared00)
- Client.UpdateAutoScalingGroupRequest (Shared01)
- Client.UpdateAutoScalingGroupRequest (Shared02)
Constants ¶
const ( ServiceName = "Auto Scaling" // Service's name ServiceID = "AutoScaling" // Service's identifier EndpointsID = "autoscaling" // Service's Endpoint identifier )
const ( // ErrCodeAlreadyExistsFault for service response error code // "AlreadyExists". // // You already have an Auto Scaling group or launch configuration with this // name. ErrCodeAlreadyExistsFault = "AlreadyExists" // ErrCodeInvalidNextToken for service response error code // "InvalidNextToken". // // The NextToken value is not valid. ErrCodeInvalidNextToken = "InvalidNextToken" // ErrCodeLimitExceededFault for service response error code // "LimitExceeded". // // You have already reached a limit for your Amazon EC2 Auto Scaling resources // (for example, Auto Scaling groups, launch configurations, or lifecycle hooks). // For more information, see DescribeAccountLimits. ErrCodeLimitExceededFault = "LimitExceeded" // ErrCodeResourceContentionFault for service response error code // "ResourceContention". // // You already have a pending update to an Amazon EC2 Auto Scaling resource // (for example, an Auto Scaling group, instance, or load balancer). ErrCodeResourceContentionFault = "ResourceContention" // ErrCodeResourceInUseFault for service response error code // "ResourceInUse". // // The operation can't be performed because the resource is in use. ErrCodeResourceInUseFault = "ResourceInUse" // ErrCodeScalingActivityInProgressFault for service response error code // "ScalingActivityInProgress". // // The operation can't be performed because there are scaling activities in // progress. ErrCodeScalingActivityInProgressFault = "ScalingActivityInProgress" // ErrCodeServiceLinkedRoleFailure for service response error code // "ServiceLinkedRoleFailure". // // The service-linked role is not yet ready for use. ErrCodeServiceLinkedRoleFailure = "ServiceLinkedRoleFailure" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct { // The ID of the activity. // // ActivityId is a required field ActivityId *string `type:"string" required:"true"` // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The reason the activity began. // // Cause is a required field Cause *string `min:"1" type:"string" required:"true"` // A friendly, more verbose description of the activity. Description *string `type:"string"` // The details about the activity. Details *string `type:"string"` // The end time of the activity. EndTime *time.Time `type:"timestamp"` // A value between 0 and 100 that indicates the progress of the activity. Progress *int64 `type:"integer"` // The start time of the activity. // // StartTime is a required field StartTime *time.Time `type:"timestamp" required:"true"` // The current status of the activity. // // StatusCode is a required field StatusCode ScalingActivityStatusCode `type:"string" required:"true" enum:"true"` // A friendly, more verbose description of the activity status. StatusMessage *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes scaling activity, which is a long-running process that represents a change to your Auto Scaling group, such as changing its size or replacing an instance.
type AdjustmentType ¶
type AdjustmentType struct { // The policy adjustment type. The valid values are ChangeInCapacity, ExactCapacity, // and PercentChangeInCapacity. AdjustmentType *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes a policy adjustment type.
func (AdjustmentType) String ¶
func (s AdjustmentType) String() string
String returns the string representation
type Alarm ¶
type Alarm struct { // The Amazon Resource Name (ARN) of the alarm. AlarmARN *string `min:"1" type:"string"` // The name of the alarm. AlarmName *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes an alarm.
type AttachInstancesInput ¶
type AttachInstancesInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The IDs of the instances. You can specify up to 20 instances. InstanceIds []string `type:"list"` // contains filtered or unexported fields }
func (AttachInstancesInput) String ¶
func (s AttachInstancesInput) String() string
String returns the string representation
func (*AttachInstancesInput) Validate ¶
func (s *AttachInstancesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AttachInstancesOutput ¶
type AttachInstancesOutput struct {
// contains filtered or unexported fields
}
func (AttachInstancesOutput) String ¶
func (s AttachInstancesOutput) String() string
String returns the string representation
type AttachInstancesRequest ¶
type AttachInstancesRequest struct { *aws.Request Input *AttachInstancesInput Copy func(*AttachInstancesInput) AttachInstancesRequest }
AttachInstancesRequest is the request type for the AttachInstances API operation.
func (AttachInstancesRequest) Send ¶
func (r AttachInstancesRequest) Send(ctx context.Context) (*AttachInstancesResponse, error)
Send marshals and sends the AttachInstances API request.
type AttachInstancesResponse ¶ added in v0.9.0
type AttachInstancesResponse struct { *AttachInstancesOutput // contains filtered or unexported fields }
AttachInstancesResponse is the response type for the AttachInstances API operation.
func (*AttachInstancesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *AttachInstancesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the AttachInstances request.
type AttachLoadBalancerTargetGroupsInput ¶
type AttachLoadBalancerTargetGroupsInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The Amazon Resource Names (ARN) of the target groups. You can specify up // to 10 target groups. // // TargetGroupARNs is a required field TargetGroupARNs []string `type:"list" required:"true"` // contains filtered or unexported fields }
func (AttachLoadBalancerTargetGroupsInput) String ¶
func (s AttachLoadBalancerTargetGroupsInput) String() string
String returns the string representation
func (*AttachLoadBalancerTargetGroupsInput) Validate ¶
func (s *AttachLoadBalancerTargetGroupsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AttachLoadBalancerTargetGroupsOutput ¶
type AttachLoadBalancerTargetGroupsOutput struct {
// contains filtered or unexported fields
}
func (AttachLoadBalancerTargetGroupsOutput) String ¶
func (s AttachLoadBalancerTargetGroupsOutput) String() string
String returns the string representation
type AttachLoadBalancerTargetGroupsRequest ¶
type AttachLoadBalancerTargetGroupsRequest struct { *aws.Request Input *AttachLoadBalancerTargetGroupsInput Copy func(*AttachLoadBalancerTargetGroupsInput) AttachLoadBalancerTargetGroupsRequest }
AttachLoadBalancerTargetGroupsRequest is the request type for the AttachLoadBalancerTargetGroups API operation.
func (AttachLoadBalancerTargetGroupsRequest) Send ¶
func (r AttachLoadBalancerTargetGroupsRequest) Send(ctx context.Context) (*AttachLoadBalancerTargetGroupsResponse, error)
Send marshals and sends the AttachLoadBalancerTargetGroups API request.
type AttachLoadBalancerTargetGroupsResponse ¶ added in v0.9.0
type AttachLoadBalancerTargetGroupsResponse struct { *AttachLoadBalancerTargetGroupsOutput // contains filtered or unexported fields }
AttachLoadBalancerTargetGroupsResponse is the response type for the AttachLoadBalancerTargetGroups API operation.
func (*AttachLoadBalancerTargetGroupsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *AttachLoadBalancerTargetGroupsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the AttachLoadBalancerTargetGroups request.
type AttachLoadBalancersInput ¶
type AttachLoadBalancersInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The names of the load balancers. You can specify up to 10 load balancers. // // LoadBalancerNames is a required field LoadBalancerNames []string `type:"list" required:"true"` // contains filtered or unexported fields }
func (AttachLoadBalancersInput) String ¶
func (s AttachLoadBalancersInput) String() string
String returns the string representation
func (*AttachLoadBalancersInput) Validate ¶
func (s *AttachLoadBalancersInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AttachLoadBalancersOutput ¶
type AttachLoadBalancersOutput struct {
// contains filtered or unexported fields
}
func (AttachLoadBalancersOutput) String ¶
func (s AttachLoadBalancersOutput) String() string
String returns the string representation
type AttachLoadBalancersRequest ¶
type AttachLoadBalancersRequest struct { *aws.Request Input *AttachLoadBalancersInput Copy func(*AttachLoadBalancersInput) AttachLoadBalancersRequest }
AttachLoadBalancersRequest is the request type for the AttachLoadBalancers API operation.
func (AttachLoadBalancersRequest) Send ¶
func (r AttachLoadBalancersRequest) Send(ctx context.Context) (*AttachLoadBalancersResponse, error)
Send marshals and sends the AttachLoadBalancers API request.
type AttachLoadBalancersResponse ¶ added in v0.9.0
type AttachLoadBalancersResponse struct { *AttachLoadBalancersOutput // contains filtered or unexported fields }
AttachLoadBalancersResponse is the response type for the AttachLoadBalancers API operation.
func (*AttachLoadBalancersResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *AttachLoadBalancersResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the AttachLoadBalancers request.
type AutoScalingGroup ¶ added in v0.9.0
type AutoScalingGroup struct { // The Amazon Resource Name (ARN) of the Auto Scaling group. AutoScalingGroupARN *string `min:"1" type:"string"` // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // One or more Availability Zones for the group. // // AvailabilityZones is a required field AvailabilityZones []string `min:"1" type:"list" required:"true"` // The date and time the group was created. // // CreatedTime is a required field CreatedTime *time.Time `type:"timestamp" required:"true"` // The amount of time, in seconds, after a scaling activity completes before // another scaling activity can start. // // DefaultCooldown is a required field DefaultCooldown *int64 `type:"integer" required:"true"` // The desired size of the group. // // DesiredCapacity is a required field DesiredCapacity *int64 `type:"integer" required:"true"` // The metrics enabled for the group. EnabledMetrics []EnabledMetric `type:"list"` // The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before // checking the health status of an EC2 instance that has come into service. HealthCheckGracePeriod *int64 `type:"integer"` // The service to use for the health checks. The valid values are EC2 and ELB. // If you configure an Auto Scaling group to use ELB health checks, it considers // the instance unhealthy if it fails either the EC2 status checks or the load // balancer health checks. // // HealthCheckType is a required field HealthCheckType *string `min:"1" type:"string" required:"true"` // The EC2 instances associated with the group. Instances []Instance `type:"list"` // The name of the associated launch configuration. LaunchConfigurationName *string `min:"1" type:"string"` // The launch template for the group. LaunchTemplate *LaunchTemplateSpecification `type:"structure"` // One or more load balancers associated with the group. LoadBalancerNames []string `type:"list"` // The maximum size of the group. // // MaxSize is a required field MaxSize *int64 `type:"integer" required:"true"` // The minimum size of the group. // // MinSize is a required field MinSize *int64 `type:"integer" required:"true"` // The mixed instances policy for the group. MixedInstancesPolicy *MixedInstancesPolicy `type:"structure"` // Indicates whether newly launched instances are protected from termination // by Amazon EC2 Auto Scaling when scaling in. NewInstancesProtectedFromScaleIn *bool `type:"boolean"` // The name of the placement group into which to launch your instances, if any. PlacementGroup *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling // group uses to call other AWS services on your behalf. ServiceLinkedRoleARN *string `min:"1" type:"string"` // The current state of the group when DeleteAutoScalingGroup is in progress. Status *string `min:"1" type:"string"` // The suspended processes associated with the group. SuspendedProcesses []SuspendedProcess `type:"list"` // The tags for the group. Tags []TagDescription `type:"list"` // The Amazon Resource Names (ARN) of the target groups for your load balancer. TargetGroupARNs []string `type:"list"` // The termination policies for the group. TerminationPolicies []string `type:"list"` // One or more subnet IDs, if applicable, separated by commas. VPCZoneIdentifier *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes an Auto Scaling group.
func (AutoScalingGroup) String ¶ added in v0.9.0
func (s AutoScalingGroup) String() string
String returns the string representation
type AutoScalingInstanceDetails ¶ added in v0.9.0
type AutoScalingInstanceDetails struct { // The name of the Auto Scaling group for the instance. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The Availability Zone for the instance. // // AvailabilityZone is a required field AvailabilityZone *string `min:"1" type:"string" required:"true"` // The last reported health status of this instance. "Healthy" means that the // instance is healthy and should remain in service. "Unhealthy" means that // the instance is unhealthy and Amazon EC2 Auto Scaling should terminate and // replace it. // // HealthStatus is a required field HealthStatus *string `min:"1" type:"string" required:"true"` // The ID of the instance. // // InstanceId is a required field InstanceId *string `min:"1" type:"string" required:"true"` // The launch configuration used to launch the instance. This value is not available // if you attached the instance to the Auto Scaling group. LaunchConfigurationName *string `min:"1" type:"string"` // The launch template for the instance. LaunchTemplate *LaunchTemplateSpecification `type:"structure"` // The lifecycle state for the instance. // // LifecycleState is a required field LifecycleState *string `min:"1" type:"string" required:"true"` // Indicates whether the instance is protected from termination by Amazon EC2 // Auto Scaling when scaling in. // // ProtectedFromScaleIn is a required field ProtectedFromScaleIn *bool `type:"boolean" required:"true"` // contains filtered or unexported fields }
Describes an EC2 instance associated with an Auto Scaling group.
func (AutoScalingInstanceDetails) String ¶ added in v0.9.0
func (s AutoScalingInstanceDetails) String() string
String returns the string representation
type BatchDeleteScheduledActionInput ¶ added in v0.5.0
type BatchDeleteScheduledActionInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The names of the scheduled actions to delete. The maximum number allowed // is 50. // // ScheduledActionNames is a required field ScheduledActionNames []string `type:"list" required:"true"` // contains filtered or unexported fields }
func (BatchDeleteScheduledActionInput) String ¶ added in v0.5.0
func (s BatchDeleteScheduledActionInput) String() string
String returns the string representation
func (*BatchDeleteScheduledActionInput) Validate ¶ added in v0.5.0
func (s *BatchDeleteScheduledActionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type BatchDeleteScheduledActionOutput ¶ added in v0.5.0
type BatchDeleteScheduledActionOutput struct { // The names of the scheduled actions that could not be deleted, including an // error message. FailedScheduledActions []FailedScheduledUpdateGroupActionRequest `type:"list"` // contains filtered or unexported fields }
func (BatchDeleteScheduledActionOutput) String ¶ added in v0.5.0
func (s BatchDeleteScheduledActionOutput) String() string
String returns the string representation
type BatchDeleteScheduledActionRequest ¶ added in v0.5.0
type BatchDeleteScheduledActionRequest struct { *aws.Request Input *BatchDeleteScheduledActionInput Copy func(*BatchDeleteScheduledActionInput) BatchDeleteScheduledActionRequest }
BatchDeleteScheduledActionRequest is the request type for the BatchDeleteScheduledAction API operation.
func (BatchDeleteScheduledActionRequest) Send ¶ added in v0.5.0
func (r BatchDeleteScheduledActionRequest) Send(ctx context.Context) (*BatchDeleteScheduledActionResponse, error)
Send marshals and sends the BatchDeleteScheduledAction API request.
type BatchDeleteScheduledActionResponse ¶ added in v0.9.0
type BatchDeleteScheduledActionResponse struct { *BatchDeleteScheduledActionOutput // contains filtered or unexported fields }
BatchDeleteScheduledActionResponse is the response type for the BatchDeleteScheduledAction API operation.
func (*BatchDeleteScheduledActionResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *BatchDeleteScheduledActionResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the BatchDeleteScheduledAction request.
type BatchPutScheduledUpdateGroupActionInput ¶ added in v0.5.0
type BatchPutScheduledUpdateGroupActionInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // One or more scheduled actions. The maximum number allowed is 50. // // ScheduledUpdateGroupActions is a required field ScheduledUpdateGroupActions []ScheduledUpdateGroupActionRequest `type:"list" required:"true"` // contains filtered or unexported fields }
func (BatchPutScheduledUpdateGroupActionInput) String ¶ added in v0.5.0
func (s BatchPutScheduledUpdateGroupActionInput) String() string
String returns the string representation
func (*BatchPutScheduledUpdateGroupActionInput) Validate ¶ added in v0.5.0
func (s *BatchPutScheduledUpdateGroupActionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type BatchPutScheduledUpdateGroupActionOutput ¶ added in v0.5.0
type BatchPutScheduledUpdateGroupActionOutput struct { // The names of the scheduled actions that could not be created or updated, // including an error message. FailedScheduledUpdateGroupActions []FailedScheduledUpdateGroupActionRequest `type:"list"` // contains filtered or unexported fields }
func (BatchPutScheduledUpdateGroupActionOutput) String ¶ added in v0.5.0
func (s BatchPutScheduledUpdateGroupActionOutput) String() string
String returns the string representation
type BatchPutScheduledUpdateGroupActionRequest ¶ added in v0.5.0
type BatchPutScheduledUpdateGroupActionRequest struct { *aws.Request Input *BatchPutScheduledUpdateGroupActionInput Copy func(*BatchPutScheduledUpdateGroupActionInput) BatchPutScheduledUpdateGroupActionRequest }
BatchPutScheduledUpdateGroupActionRequest is the request type for the BatchPutScheduledUpdateGroupAction API operation.
func (BatchPutScheduledUpdateGroupActionRequest) Send ¶ added in v0.5.0
func (r BatchPutScheduledUpdateGroupActionRequest) Send(ctx context.Context) (*BatchPutScheduledUpdateGroupActionResponse, error)
Send marshals and sends the BatchPutScheduledUpdateGroupAction API request.
type BatchPutScheduledUpdateGroupActionResponse ¶ added in v0.9.0
type BatchPutScheduledUpdateGroupActionResponse struct { *BatchPutScheduledUpdateGroupActionOutput // contains filtered or unexported fields }
BatchPutScheduledUpdateGroupActionResponse is the response type for the BatchPutScheduledUpdateGroupAction API operation.
func (*BatchPutScheduledUpdateGroupActionResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *BatchPutScheduledUpdateGroupActionResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the BatchPutScheduledUpdateGroupAction request.
type BlockDeviceMapping ¶
type BlockDeviceMapping struct { // The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh). // For more information, see Device Naming on Linux Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html) // in the Amazon EC2 User Guide for Linux Instances. // // DeviceName is a required field DeviceName *string `min:"1" type:"string" required:"true"` // The information about the Amazon EBS volume. Ebs *Ebs `type:"structure"` // Suppresses a device mapping. // // If this parameter is true for the root device, the instance might fail the // EC2 health check. In that case, Amazon EC2 Auto Scaling launches a replacement // instance. NoDevice *bool `type:"boolean"` // The name of the virtual device (for example, ephemeral0). VirtualName *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes a block device mapping.
func (BlockDeviceMapping) String ¶
func (s BlockDeviceMapping) String() string
String returns the string representation
func (*BlockDeviceMapping) Validate ¶
func (s *BlockDeviceMapping) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type Client ¶ added in v0.9.0
Client provides the API operation methods for making requests to Auto Scaling. See this package's package overview docs for details on the service.
The client's methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
New creates a new instance of the client from the provided Config.
Example:
// Create a client from just a config. svc := autoscaling.New(myConfig)
func (*Client) AttachInstancesRequest ¶ added in v0.9.0
func (c *Client) AttachInstancesRequest(input *AttachInstancesInput) AttachInstancesRequest
AttachInstancesRequest returns a request value for making API operation for Auto Scaling.
Attaches one or more EC2 instances to the specified Auto Scaling group.
When you attach instances, Amazon EC2 Auto Scaling increases the desired capacity of the group by the number of instances being attached. If the number of instances being attached plus the desired capacity of the group exceeds the maximum size of the group, the operation fails.
If there is a Classic Load Balancer attached to your Auto Scaling group, the instances are also registered with the load balancer. If there are target groups attached to your Auto Scaling group, the instances are also registered with the target groups.
For more information, see Attach EC2 Instances to Your Auto Scaling Group (https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-instance-asg.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using AttachInstancesRequest. req := client.AttachInstancesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances
func (*Client) AttachLoadBalancerTargetGroupsRequest ¶ added in v0.9.0
func (c *Client) AttachLoadBalancerTargetGroupsRequest(input *AttachLoadBalancerTargetGroupsInput) AttachLoadBalancerTargetGroupsRequest
AttachLoadBalancerTargetGroupsRequest returns a request value for making API operation for Auto Scaling.
Attaches one or more target groups to the specified Auto Scaling group.
To describe the target groups for an Auto Scaling group, use DescribeLoadBalancerTargetGroups. To detach the target group from the Auto Scaling group, use DetachLoadBalancerTargetGroups.
With Application Load Balancers and Network Load Balancers, instances are registered as targets with a target group. With Classic Load Balancers, instances are registered with the load balancer. For more information, see Attaching a Load Balancer to Your Auto Scaling Group (https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-load-balancer-asg.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using AttachLoadBalancerTargetGroupsRequest. req := client.AttachLoadBalancerTargetGroupsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups
func (*Client) AttachLoadBalancersRequest ¶ added in v0.9.0
func (c *Client) AttachLoadBalancersRequest(input *AttachLoadBalancersInput) AttachLoadBalancersRequest
AttachLoadBalancersRequest returns a request value for making API operation for Auto Scaling.
Attaches one or more Classic Load Balancers to the specified Auto Scaling group.
To attach an Application Load Balancer or a Network Load Balancer instead, see AttachLoadBalancerTargetGroups.
To describe the load balancers for an Auto Scaling group, use DescribeLoadBalancers. To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers.
For more information, see Attaching a Load Balancer to Your Auto Scaling Group (https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-load-balancer-asg.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using AttachLoadBalancersRequest. req := client.AttachLoadBalancersRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers
func (*Client) BatchDeleteScheduledActionRequest ¶ added in v0.9.0
func (c *Client) BatchDeleteScheduledActionRequest(input *BatchDeleteScheduledActionInput) BatchDeleteScheduledActionRequest
BatchDeleteScheduledActionRequest returns a request value for making API operation for Auto Scaling.
Deletes one or more scheduled actions for the specified Auto Scaling group.
// Example sending a request using BatchDeleteScheduledActionRequest. req := client.BatchDeleteScheduledActionRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchDeleteScheduledAction
func (*Client) BatchPutScheduledUpdateGroupActionRequest ¶ added in v0.9.0
func (c *Client) BatchPutScheduledUpdateGroupActionRequest(input *BatchPutScheduledUpdateGroupActionInput) BatchPutScheduledUpdateGroupActionRequest
BatchPutScheduledUpdateGroupActionRequest returns a request value for making API operation for Auto Scaling.
Creates or updates one or more scheduled scaling actions for an Auto Scaling group. If you leave a parameter unspecified when updating a scheduled scaling action, the corresponding value remains unchanged.
// Example sending a request using BatchPutScheduledUpdateGroupActionRequest. req := client.BatchPutScheduledUpdateGroupActionRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchPutScheduledUpdateGroupAction
func (*Client) CompleteLifecycleActionRequest ¶ added in v0.9.0
func (c *Client) CompleteLifecycleActionRequest(input *CompleteLifecycleActionInput) CompleteLifecycleActionRequest
CompleteLifecycleActionRequest returns a request value for making API operation for Auto Scaling.
Completes the lifecycle action for the specified token or instance with the specified result.
This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:
(Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates instances.
(Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish lifecycle notifications to the target.
Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
If you finish before the timeout period ends, complete the lifecycle action.
For more information, see Amazon EC2 Auto Scaling Lifecycle Hooks (https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using CompleteLifecycleActionRequest. req := client.CompleteLifecycleActionRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction
func (*Client) CreateAutoScalingGroupRequest ¶ added in v0.9.0
func (c *Client) CreateAutoScalingGroupRequest(input *CreateAutoScalingGroupInput) CreateAutoScalingGroupRequest
CreateAutoScalingGroupRequest returns a request value for making API operation for Auto Scaling.
Creates an Auto Scaling group with the specified name and attributes.
If you exceed your maximum limit of Auto Scaling groups, the call fails. For information about viewing this limit, see DescribeAccountLimits. For information about updating this limit, see Amazon EC2 Auto Scaling Limits (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-account-limits.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using CreateAutoScalingGroupRequest. req := client.CreateAutoScalingGroupRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup
func (*Client) CreateLaunchConfigurationRequest ¶ added in v0.9.0
func (c *Client) CreateLaunchConfigurationRequest(input *CreateLaunchConfigurationInput) CreateLaunchConfigurationRequest
CreateLaunchConfigurationRequest returns a request value for making API operation for Auto Scaling.
Creates a launch configuration.
If you exceed your maximum limit of launch configurations, the call fails. For information about viewing this limit, see DescribeAccountLimits. For information about updating this limit, see Amazon EC2 Auto Scaling Limits (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-account-limits.html) in the Amazon EC2 Auto Scaling User Guide.
For more information, see Launch Configurations (https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using CreateLaunchConfigurationRequest. req := client.CreateLaunchConfigurationRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration
func (*Client) CreateOrUpdateTagsRequest ¶ added in v0.9.0
func (c *Client) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) CreateOrUpdateTagsRequest
CreateOrUpdateTagsRequest returns a request value for making API operation for Auto Scaling.
Creates or updates tags for the specified Auto Scaling group.
When you specify a tag with a key that already exists, the operation overwrites the previous tag definition, and you do not get an error message.
For more information, see Tagging Auto Scaling Groups and Instances (https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-tagging.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using CreateOrUpdateTagsRequest. req := client.CreateOrUpdateTagsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags
func (*Client) DeleteAutoScalingGroupRequest ¶ added in v0.9.0
func (c *Client) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGroupInput) DeleteAutoScalingGroupRequest
DeleteAutoScalingGroupRequest returns a request value for making API operation for Auto Scaling.
Deletes the specified Auto Scaling group.
If the group has instances or scaling activities in progress, you must specify the option to force the deletion in order for it to succeed.
If the group has policies, deleting the group deletes the policies, the underlying alarm actions, and any alarm that no longer has an associated action.
To remove instances from the Auto Scaling group before deleting it, call DetachInstances with the list of instances and the option to decrement the desired capacity. This ensures that Amazon EC2 Auto Scaling does not launch replacement instances.
To terminate all instances before deleting the Auto Scaling group, call UpdateAutoScalingGroup and set the minimum size and desired capacity of the Auto Scaling group to zero.
// Example sending a request using DeleteAutoScalingGroupRequest. req := client.DeleteAutoScalingGroupRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup
func (*Client) DeleteLaunchConfigurationRequest ¶ added in v0.9.0
func (c *Client) DeleteLaunchConfigurationRequest(input *DeleteLaunchConfigurationInput) DeleteLaunchConfigurationRequest
DeleteLaunchConfigurationRequest returns a request value for making API operation for Auto Scaling.
Deletes the specified launch configuration.
The launch configuration must not be attached to an Auto Scaling group. When this call completes, the launch configuration is no longer available for use.
// Example sending a request using DeleteLaunchConfigurationRequest. req := client.DeleteLaunchConfigurationRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration
func (*Client) DeleteLifecycleHookRequest ¶ added in v0.9.0
func (c *Client) DeleteLifecycleHookRequest(input *DeleteLifecycleHookInput) DeleteLifecycleHookRequest
DeleteLifecycleHookRequest returns a request value for making API operation for Auto Scaling.
Deletes the specified lifecycle hook.
If there are any outstanding lifecycle actions, they are completed first (ABANDON for launching instances, CONTINUE for terminating instances).
// Example sending a request using DeleteLifecycleHookRequest. req := client.DeleteLifecycleHookRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook
func (*Client) DeleteNotificationConfigurationRequest ¶ added in v0.9.0
func (c *Client) DeleteNotificationConfigurationRequest(input *DeleteNotificationConfigurationInput) DeleteNotificationConfigurationRequest
DeleteNotificationConfigurationRequest returns a request value for making API operation for Auto Scaling.
Deletes the specified notification.
// Example sending a request using DeleteNotificationConfigurationRequest. req := client.DeleteNotificationConfigurationRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration
func (*Client) DeletePolicyRequest ¶ added in v0.9.0
func (c *Client) DeletePolicyRequest(input *DeletePolicyInput) DeletePolicyRequest
DeletePolicyRequest returns a request value for making API operation for Auto Scaling.
Deletes the specified scaling policy.
Deleting either a step scaling policy or a simple scaling policy deletes the underlying alarm action, but does not delete the alarm, even if it no longer has an associated action.
For more information, see Deleting a Scaling Policy (https://docs.aws.amazon.com/autoscaling/ec2/userguide/deleting-scaling-policy.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using DeletePolicyRequest. req := client.DeletePolicyRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy
func (*Client) DeleteScheduledActionRequest ¶ added in v0.9.0
func (c *Client) DeleteScheduledActionRequest(input *DeleteScheduledActionInput) DeleteScheduledActionRequest
DeleteScheduledActionRequest returns a request value for making API operation for Auto Scaling.
Deletes the specified scheduled action.
// Example sending a request using DeleteScheduledActionRequest. req := client.DeleteScheduledActionRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction
func (*Client) DeleteTagsRequest ¶ added in v0.9.0
func (c *Client) DeleteTagsRequest(input *DeleteTagsInput) DeleteTagsRequest
DeleteTagsRequest returns a request value for making API operation for Auto Scaling.
Deletes the specified tags.
// Example sending a request using DeleteTagsRequest. req := client.DeleteTagsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags
func (*Client) DescribeAccountLimitsRequest ¶ added in v0.9.0
func (c *Client) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) DescribeAccountLimitsRequest
DescribeAccountLimitsRequest returns a request value for making API operation for Auto Scaling.
Describes the current Amazon EC2 Auto Scaling resource limits for your AWS account.
For information about requesting an increase in these limits, see Amazon EC2 Auto Scaling Limits (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-account-limits.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using DescribeAccountLimitsRequest. req := client.DescribeAccountLimitsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits
func (*Client) DescribeAdjustmentTypesRequest ¶ added in v0.9.0
func (c *Client) DescribeAdjustmentTypesRequest(input *DescribeAdjustmentTypesInput) DescribeAdjustmentTypesRequest
DescribeAdjustmentTypesRequest returns a request value for making API operation for Auto Scaling.
Describes the policy adjustment types for use with PutScalingPolicy.
// Example sending a request using DescribeAdjustmentTypesRequest. req := client.DescribeAdjustmentTypesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes
func (*Client) DescribeAutoScalingGroupsRequest ¶ added in v0.9.0
func (c *Client) DescribeAutoScalingGroupsRequest(input *DescribeAutoScalingGroupsInput) DescribeAutoScalingGroupsRequest
DescribeAutoScalingGroupsRequest returns a request value for making API operation for Auto Scaling.
Describes one or more Auto Scaling groups.
// Example sending a request using DescribeAutoScalingGroupsRequest. req := client.DescribeAutoScalingGroupsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups
func (*Client) DescribeAutoScalingInstancesRequest ¶ added in v0.9.0
func (c *Client) DescribeAutoScalingInstancesRequest(input *DescribeAutoScalingInstancesInput) DescribeAutoScalingInstancesRequest
DescribeAutoScalingInstancesRequest returns a request value for making API operation for Auto Scaling.
Describes one or more Auto Scaling instances.
// Example sending a request using DescribeAutoScalingInstancesRequest. req := client.DescribeAutoScalingInstancesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances
func (*Client) DescribeAutoScalingNotificationTypesRequest ¶ added in v0.9.0
func (c *Client) DescribeAutoScalingNotificationTypesRequest(input *DescribeAutoScalingNotificationTypesInput) DescribeAutoScalingNotificationTypesRequest
DescribeAutoScalingNotificationTypesRequest returns a request value for making API operation for Auto Scaling.
Describes the notification types that are supported by Amazon EC2 Auto Scaling.
// Example sending a request using DescribeAutoScalingNotificationTypesRequest. req := client.DescribeAutoScalingNotificationTypesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes
func (*Client) DescribeLaunchConfigurationsRequest ¶ added in v0.9.0
func (c *Client) DescribeLaunchConfigurationsRequest(input *DescribeLaunchConfigurationsInput) DescribeLaunchConfigurationsRequest
DescribeLaunchConfigurationsRequest returns a request value for making API operation for Auto Scaling.
Describes one or more launch configurations.
// Example sending a request using DescribeLaunchConfigurationsRequest. req := client.DescribeLaunchConfigurationsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations
func (*Client) DescribeLifecycleHookTypesRequest ¶ added in v0.9.0
func (c *Client) DescribeLifecycleHookTypesRequest(input *DescribeLifecycleHookTypesInput) DescribeLifecycleHookTypesRequest
DescribeLifecycleHookTypesRequest returns a request value for making API operation for Auto Scaling.
Describes the available types of lifecycle hooks.
The following hook types are supported:
autoscaling:EC2_INSTANCE_LAUNCHING
autoscaling:EC2_INSTANCE_TERMINATING
// Example sending a request using DescribeLifecycleHookTypesRequest. req := client.DescribeLifecycleHookTypesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes
func (*Client) DescribeLifecycleHooksRequest ¶ added in v0.9.0
func (c *Client) DescribeLifecycleHooksRequest(input *DescribeLifecycleHooksInput) DescribeLifecycleHooksRequest
DescribeLifecycleHooksRequest returns a request value for making API operation for Auto Scaling.
Describes the lifecycle hooks for the specified Auto Scaling group.
// Example sending a request using DescribeLifecycleHooksRequest. req := client.DescribeLifecycleHooksRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks
func (*Client) DescribeLoadBalancerTargetGroupsRequest ¶ added in v0.9.0
func (c *Client) DescribeLoadBalancerTargetGroupsRequest(input *DescribeLoadBalancerTargetGroupsInput) DescribeLoadBalancerTargetGroupsRequest
DescribeLoadBalancerTargetGroupsRequest returns a request value for making API operation for Auto Scaling.
Describes the target groups for the specified Auto Scaling group.
// Example sending a request using DescribeLoadBalancerTargetGroupsRequest. req := client.DescribeLoadBalancerTargetGroupsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups
func (*Client) DescribeLoadBalancersRequest ¶ added in v0.9.0
func (c *Client) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) DescribeLoadBalancersRequest
DescribeLoadBalancersRequest returns a request value for making API operation for Auto Scaling.
Describes the load balancers for the specified Auto Scaling group.
This operation describes only Classic Load Balancers. If you have Application Load Balancers or Network Load Balancers, use DescribeLoadBalancerTargetGroups instead.
// Example sending a request using DescribeLoadBalancersRequest. req := client.DescribeLoadBalancersRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers
func (*Client) DescribeMetricCollectionTypesRequest ¶ added in v0.9.0
func (c *Client) DescribeMetricCollectionTypesRequest(input *DescribeMetricCollectionTypesInput) DescribeMetricCollectionTypesRequest
DescribeMetricCollectionTypesRequest returns a request value for making API operation for Auto Scaling.
Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling.
The GroupStandbyInstances metric is not returned by default. You must explicitly request this metric when calling EnableMetricsCollection.
// Example sending a request using DescribeMetricCollectionTypesRequest. req := client.DescribeMetricCollectionTypesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes
func (*Client) DescribeNotificationConfigurationsRequest ¶ added in v0.9.0
func (c *Client) DescribeNotificationConfigurationsRequest(input *DescribeNotificationConfigurationsInput) DescribeNotificationConfigurationsRequest
DescribeNotificationConfigurationsRequest returns a request value for making API operation for Auto Scaling.
Describes the notification actions associated with the specified Auto Scaling group.
// Example sending a request using DescribeNotificationConfigurationsRequest. req := client.DescribeNotificationConfigurationsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations
func (*Client) DescribePoliciesRequest ¶ added in v0.9.0
func (c *Client) DescribePoliciesRequest(input *DescribePoliciesInput) DescribePoliciesRequest
DescribePoliciesRequest returns a request value for making API operation for Auto Scaling.
Describes the policies for the specified Auto Scaling group.
// Example sending a request using DescribePoliciesRequest. req := client.DescribePoliciesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies
func (*Client) DescribeScalingActivitiesRequest ¶ added in v0.9.0
func (c *Client) DescribeScalingActivitiesRequest(input *DescribeScalingActivitiesInput) DescribeScalingActivitiesRequest
DescribeScalingActivitiesRequest returns a request value for making API operation for Auto Scaling.
Describes one or more scaling activities for the specified Auto Scaling group.
// Example sending a request using DescribeScalingActivitiesRequest. req := client.DescribeScalingActivitiesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities
func (*Client) DescribeScalingProcessTypesRequest ¶ added in v0.9.0
func (c *Client) DescribeScalingProcessTypesRequest(input *DescribeScalingProcessTypesInput) DescribeScalingProcessTypesRequest
DescribeScalingProcessTypesRequest returns a request value for making API operation for Auto Scaling.
Describes the scaling process types for use with ResumeProcesses and SuspendProcesses.
// Example sending a request using DescribeScalingProcessTypesRequest. req := client.DescribeScalingProcessTypesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes
func (*Client) DescribeScheduledActionsRequest ¶ added in v0.9.0
func (c *Client) DescribeScheduledActionsRequest(input *DescribeScheduledActionsInput) DescribeScheduledActionsRequest
DescribeScheduledActionsRequest returns a request value for making API operation for Auto Scaling.
Describes the actions scheduled for your Auto Scaling group that haven't run or that have not reached their end time. To describe the actions that have already run, use DescribeScalingActivities.
// Example sending a request using DescribeScheduledActionsRequest. req := client.DescribeScheduledActionsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions
func (*Client) DescribeTagsRequest ¶ added in v0.9.0
func (c *Client) DescribeTagsRequest(input *DescribeTagsInput) DescribeTagsRequest
DescribeTagsRequest returns a request value for making API operation for Auto Scaling.
Describes the specified tags.
You can use filters to limit the results. For example, you can query for the tags for a specific Auto Scaling group. You can specify multiple values for a filter. A tag must match at least one of the specified values for it to be included in the results.
You can also specify multiple filters. The result includes information for a particular tag only if it matches all the filters. If there's no match, no special message is returned.
// Example sending a request using DescribeTagsRequest. req := client.DescribeTagsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags
func (*Client) DescribeTerminationPolicyTypesRequest ¶ added in v0.9.0
func (c *Client) DescribeTerminationPolicyTypesRequest(input *DescribeTerminationPolicyTypesInput) DescribeTerminationPolicyTypesRequest
DescribeTerminationPolicyTypesRequest returns a request value for making API operation for Auto Scaling.
Describes the termination policies supported by Amazon EC2 Auto Scaling.
For more information, see Controlling Which Auto Scaling Instances Terminate During Scale In (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using DescribeTerminationPolicyTypesRequest. req := client.DescribeTerminationPolicyTypesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes
func (*Client) DetachInstancesRequest ¶ added in v0.9.0
func (c *Client) DetachInstancesRequest(input *DetachInstancesInput) DetachInstancesRequest
DetachInstancesRequest returns a request value for making API operation for Auto Scaling.
Removes one or more instances from the specified Auto Scaling group.
After the instances are detached, you can manage them independent of the Auto Scaling group.
If you do not specify the option to decrement the desired capacity, Amazon EC2 Auto Scaling launches instances to replace the ones that are detached.
If there is a Classic Load Balancer attached to the Auto Scaling group, the instances are deregistered from the load balancer. If there are target groups attached to the Auto Scaling group, the instances are deregistered from the target groups.
For more information, see Detach EC2 Instances from Your Auto Scaling Group (https://docs.aws.amazon.com/autoscaling/ec2/userguide/detach-instance-asg.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using DetachInstancesRequest. req := client.DetachInstancesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances
func (*Client) DetachLoadBalancerTargetGroupsRequest ¶ added in v0.9.0
func (c *Client) DetachLoadBalancerTargetGroupsRequest(input *DetachLoadBalancerTargetGroupsInput) DetachLoadBalancerTargetGroupsRequest
DetachLoadBalancerTargetGroupsRequest returns a request value for making API operation for Auto Scaling.
Detaches one or more target groups from the specified Auto Scaling group.
// Example sending a request using DetachLoadBalancerTargetGroupsRequest. req := client.DetachLoadBalancerTargetGroupsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups
func (*Client) DetachLoadBalancersRequest ¶ added in v0.9.0
func (c *Client) DetachLoadBalancersRequest(input *DetachLoadBalancersInput) DetachLoadBalancersRequest
DetachLoadBalancersRequest returns a request value for making API operation for Auto Scaling.
Detaches one or more Classic Load Balancers from the specified Auto Scaling group.
This operation detaches only Classic Load Balancers. If you have Application Load Balancers or Network Load Balancers, use DetachLoadBalancerTargetGroups instead.
When you detach a load balancer, it enters the Removing state while deregistering the instances in the group. When all instances are deregistered, then you can no longer describe the load balancer using DescribeLoadBalancers. The instances remain running.
// Example sending a request using DetachLoadBalancersRequest. req := client.DetachLoadBalancersRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers
func (*Client) DisableMetricsCollectionRequest ¶ added in v0.9.0
func (c *Client) DisableMetricsCollectionRequest(input *DisableMetricsCollectionInput) DisableMetricsCollectionRequest
DisableMetricsCollectionRequest returns a request value for making API operation for Auto Scaling.
Disables group metrics for the specified Auto Scaling group.
// Example sending a request using DisableMetricsCollectionRequest. req := client.DisableMetricsCollectionRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection
func (*Client) EnableMetricsCollectionRequest ¶ added in v0.9.0
func (c *Client) EnableMetricsCollectionRequest(input *EnableMetricsCollectionInput) EnableMetricsCollectionRequest
EnableMetricsCollectionRequest returns a request value for making API operation for Auto Scaling.
Enables group metrics for the specified Auto Scaling group. For more information, see Monitoring Your Auto Scaling Groups and Instances (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-monitoring.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using EnableMetricsCollectionRequest. req := client.EnableMetricsCollectionRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection
func (*Client) EnterStandbyRequest ¶ added in v0.9.0
func (c *Client) EnterStandbyRequest(input *EnterStandbyInput) EnterStandbyRequest
EnterStandbyRequest returns a request value for making API operation for Auto Scaling.
Moves the specified instances into the standby state.
For more information, see Temporarily Removing Instances from Your Auto Scaling Group (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using EnterStandbyRequest. req := client.EnterStandbyRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby
func (*Client) ExecutePolicyRequest ¶ added in v0.9.0
func (c *Client) ExecutePolicyRequest(input *ExecutePolicyInput) ExecutePolicyRequest
ExecutePolicyRequest returns a request value for making API operation for Auto Scaling.
Executes the specified policy.
// Example sending a request using ExecutePolicyRequest. req := client.ExecutePolicyRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy
func (*Client) ExitStandbyRequest ¶ added in v0.9.0
func (c *Client) ExitStandbyRequest(input *ExitStandbyInput) ExitStandbyRequest
ExitStandbyRequest returns a request value for making API operation for Auto Scaling.
Moves the specified instances out of the standby state.
For more information, see Temporarily Removing Instances from Your Auto Scaling Group (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using ExitStandbyRequest. req := client.ExitStandbyRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby
func (*Client) PutLifecycleHookRequest ¶ added in v0.9.0
func (c *Client) PutLifecycleHookRequest(input *PutLifecycleHookInput) PutLifecycleHookRequest
PutLifecycleHookRequest returns a request value for making API operation for Auto Scaling.
Creates or updates a lifecycle hook for the specified Auto Scaling group.
A lifecycle hook tells Amazon EC2 Auto Scaling to perform an action on an instance when the instance launches (before it is put into service) or as the instance terminates (before it is fully terminated).
This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:
(Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates instances.
(Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish lifecycle notifications to the target.
Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state using RecordLifecycleActionHeartbeat.
If you finish before the timeout period ends, complete the lifecycle action using CompleteLifecycleAction.
For more information, see Amazon EC2 Auto Scaling Lifecycle Hooks (https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html) in the Amazon EC2 Auto Scaling User Guide.
If you exceed your maximum limit of lifecycle hooks, which by default is 50 per Auto Scaling group, the call fails.
You can view the lifecycle hooks for an Auto Scaling group using DescribeLifecycleHooks. If you are no longer using a lifecycle hook, you can delete it using DeleteLifecycleHook.
// Example sending a request using PutLifecycleHookRequest. req := client.PutLifecycleHookRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook
func (*Client) PutNotificationConfigurationRequest ¶ added in v0.9.0
func (c *Client) PutNotificationConfigurationRequest(input *PutNotificationConfigurationInput) PutNotificationConfigurationRequest
PutNotificationConfigurationRequest returns a request value for making API operation for Auto Scaling.
Configures an Auto Scaling group to send notifications when specified events take place. Subscribers to the specified topic can have messages delivered to an endpoint such as a web server or an email address.
This configuration overwrites any existing configuration.
For more information, see Getting Amazon SNS Notifications When Your Auto Scaling Group Scales (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using PutNotificationConfigurationRequest. req := client.PutNotificationConfigurationRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration
func (*Client) PutScalingPolicyRequest ¶ added in v0.9.0
func (c *Client) PutScalingPolicyRequest(input *PutScalingPolicyInput) PutScalingPolicyRequest
PutScalingPolicyRequest returns a request value for making API operation for Auto Scaling.
Creates or updates a scaling policy for an Auto Scaling group. To update an existing scaling policy, use the existing policy name and set the parameters to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.
For more information about using scaling policies to scale your Auto Scaling group automatically, see Dynamic Scaling (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scale-based-on-demand.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using PutScalingPolicyRequest. req := client.PutScalingPolicyRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy
func (*Client) PutScheduledUpdateGroupActionRequest ¶ added in v0.9.0
func (c *Client) PutScheduledUpdateGroupActionRequest(input *PutScheduledUpdateGroupActionInput) PutScheduledUpdateGroupActionRequest
PutScheduledUpdateGroupActionRequest returns a request value for making API operation for Auto Scaling.
Creates or updates a scheduled scaling action for an Auto Scaling group. If you leave a parameter unspecified when updating a scheduled scaling action, the corresponding value remains unchanged.
For more information, see Scheduled Scaling (https://docs.aws.amazon.com/autoscaling/ec2/userguide/schedule_time.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using PutScheduledUpdateGroupActionRequest. req := client.PutScheduledUpdateGroupActionRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction
func (*Client) RecordLifecycleActionHeartbeatRequest ¶ added in v0.9.0
func (c *Client) RecordLifecycleActionHeartbeatRequest(input *RecordLifecycleActionHeartbeatInput) RecordLifecycleActionHeartbeatRequest
RecordLifecycleActionHeartbeatRequest returns a request value for making API operation for Auto Scaling.
Records a heartbeat for the lifecycle action associated with the specified token or instance. This extends the timeout by the length of time defined using PutLifecycleHook.
This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:
(Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates instances.
(Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish lifecycle notifications to the target.
Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
If you finish before the timeout period ends, complete the lifecycle action.
For more information, see Auto Scaling Lifecycle (https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroupLifecycle.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using RecordLifecycleActionHeartbeatRequest. req := client.RecordLifecycleActionHeartbeatRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat
func (*Client) ResumeProcessesRequest ¶ added in v0.9.0
func (c *Client) ResumeProcessesRequest(input *ResumeProcessesInput) ResumeProcessesRequest
ResumeProcessesRequest returns a request value for making API operation for Auto Scaling.
Resumes the specified suspended automatic scaling processes, or all suspended process, for the specified Auto Scaling group.
For more information, see Suspending and Resuming Scaling Processes (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using ResumeProcessesRequest. req := client.ResumeProcessesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses
func (*Client) SetDesiredCapacityRequest ¶ added in v0.9.0
func (c *Client) SetDesiredCapacityRequest(input *SetDesiredCapacityInput) SetDesiredCapacityRequest
SetDesiredCapacityRequest returns a request value for making API operation for Auto Scaling.
Sets the size of the specified Auto Scaling group.
For more information about desired capacity, see What Is Amazon EC2 Auto Scaling? (https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using SetDesiredCapacityRequest. req := client.SetDesiredCapacityRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity
func (*Client) SetInstanceHealthRequest ¶ added in v0.9.0
func (c *Client) SetInstanceHealthRequest(input *SetInstanceHealthInput) SetInstanceHealthRequest
SetInstanceHealthRequest returns a request value for making API operation for Auto Scaling.
Sets the health status of the specified instance.
For more information, see Health Checks for Auto Scaling Instances (https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using SetInstanceHealthRequest. req := client.SetInstanceHealthRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth
func (*Client) SetInstanceProtectionRequest ¶ added in v0.9.0
func (c *Client) SetInstanceProtectionRequest(input *SetInstanceProtectionInput) SetInstanceProtectionRequest
SetInstanceProtectionRequest returns a request value for making API operation for Auto Scaling.
Updates the instance protection settings of the specified instances.
For more information about preventing instances that are part of an Auto Scaling group from terminating on scale in, see Instance Protection (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using SetInstanceProtectionRequest. req := client.SetInstanceProtectionRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection
func (*Client) SuspendProcessesRequest ¶ added in v0.9.0
func (c *Client) SuspendProcessesRequest(input *SuspendProcessesInput) SuspendProcessesRequest
SuspendProcessesRequest returns a request value for making API operation for Auto Scaling.
Suspends the specified automatic scaling processes, or all processes, for the specified Auto Scaling group.
If you suspend either the Launch or Terminate process types, it can prevent other process types from functioning properly.
To resume processes that have been suspended, use ResumeProcesses.
For more information, see Suspending and Resuming Scaling Processes (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html) in the Amazon EC2 Auto Scaling User Guide.
// Example sending a request using SuspendProcessesRequest. req := client.SuspendProcessesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses
func (*Client) TerminateInstanceInAutoScalingGroupRequest ¶ added in v0.9.0
func (c *Client) TerminateInstanceInAutoScalingGroupRequest(input *TerminateInstanceInAutoScalingGroupInput) TerminateInstanceInAutoScalingGroupRequest
TerminateInstanceInAutoScalingGroupRequest returns a request value for making API operation for Auto Scaling.
Terminates the specified instance and optionally adjusts the desired group size.
This call simply makes a termination request. The instance is not terminated immediately.
// Example sending a request using TerminateInstanceInAutoScalingGroupRequest. req := client.TerminateInstanceInAutoScalingGroupRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup
func (*Client) UpdateAutoScalingGroupRequest ¶ added in v0.9.0
func (c *Client) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGroupInput) UpdateAutoScalingGroupRequest
UpdateAutoScalingGroupRequest returns a request value for making API operation for Auto Scaling.
Updates the configuration for the specified Auto Scaling group.
To update an Auto Scaling group, specify the name of the group and the parameter that you want to change. Any parameters that you don't specify are not changed by this update request. The new settings take effect on any scaling activities after this call returns. Scaling activities that are currently in progress aren't affected.
If you associate a new launch configuration or template with an Auto Scaling group, all new instances will get the updated configuration. Existing instances continue to run with the configuration that they were originally launched with. When you update a group to specify a mixed instances policy instead of a launch configuration or template, existing instances may be replaced to match the new purchasing options that you specified in the policy. For example, if the group currently has 100% On-Demand capacity and the policy specifies 50% Spot capacity, this means that half of your instances will be gradually terminated and relaunched as Spot Instances. When replacing instances, Amazon EC2 Auto Scaling launches new instances before terminating the old ones, so that updating your group does not compromise the performance or availability of your application.
Note the following about changing DesiredCapacity, MaxSize, or MinSize:
If a scale-in event occurs as a result of a new DesiredCapacity value that is lower than the current size of the group, the Auto Scaling group uses its termination policy to determine which instances to terminate.
If you specify a new value for MinSize without specifying a value for DesiredCapacity, and the new MinSize is larger than the current size of the group, this sets the group's DesiredCapacity to the new MinSize value.
If you specify a new value for MaxSize without specifying a value for DesiredCapacity, and the new MaxSize is smaller than the current size of the group, this sets the group's DesiredCapacity to the new MaxSize value.
To see which parameters have been set, use DescribeAutoScalingGroups. You can also view the scaling policies for an Auto Scaling group using DescribePolicies. If the group has scaling policies, you can update them using PutScalingPolicy.
// Example sending a request using UpdateAutoScalingGroupRequest. req := client.UpdateAutoScalingGroupRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup
func (*Client) WaitUntilGroupExists ¶ added in v0.9.0
func (c *Client) WaitUntilGroupExists(ctx context.Context, input *DescribeAutoScalingGroupsInput, opts ...aws.WaiterOption) error
WaitUntilGroupExists uses the Auto Scaling API operation DescribeAutoScalingGroups to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Client) WaitUntilGroupInService ¶ added in v0.9.0
func (c *Client) WaitUntilGroupInService(ctx context.Context, input *DescribeAutoScalingGroupsInput, opts ...aws.WaiterOption) error
WaitUntilGroupInService uses the Auto Scaling API operation DescribeAutoScalingGroups to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Client) WaitUntilGroupNotExists ¶ added in v0.9.0
func (c *Client) WaitUntilGroupNotExists(ctx context.Context, input *DescribeAutoScalingGroupsInput, opts ...aws.WaiterOption) error
WaitUntilGroupNotExists uses the Auto Scaling API operation DescribeAutoScalingGroups to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
type CompleteLifecycleActionInput ¶
type CompleteLifecycleActionInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The ID of the instance. InstanceId *string `min:"1" type:"string"` // The action for the group to take. This parameter can be either CONTINUE or // ABANDON. // // LifecycleActionResult is a required field LifecycleActionResult *string `type:"string" required:"true"` // A universally unique identifier (UUID) that identifies a specific lifecycle // action associated with an instance. Amazon EC2 Auto Scaling sends this token // to the notification target you specified when you created the lifecycle hook. LifecycleActionToken *string `min:"36" type:"string"` // The name of the lifecycle hook. // // LifecycleHookName is a required field LifecycleHookName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (CompleteLifecycleActionInput) String ¶
func (s CompleteLifecycleActionInput) String() string
String returns the string representation
func (*CompleteLifecycleActionInput) Validate ¶
func (s *CompleteLifecycleActionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CompleteLifecycleActionOutput ¶
type CompleteLifecycleActionOutput struct {
// contains filtered or unexported fields
}
func (CompleteLifecycleActionOutput) String ¶
func (s CompleteLifecycleActionOutput) String() string
String returns the string representation
type CompleteLifecycleActionRequest ¶
type CompleteLifecycleActionRequest struct { *aws.Request Input *CompleteLifecycleActionInput Copy func(*CompleteLifecycleActionInput) CompleteLifecycleActionRequest }
CompleteLifecycleActionRequest is the request type for the CompleteLifecycleAction API operation.
func (CompleteLifecycleActionRequest) Send ¶
func (r CompleteLifecycleActionRequest) Send(ctx context.Context) (*CompleteLifecycleActionResponse, error)
Send marshals and sends the CompleteLifecycleAction API request.
type CompleteLifecycleActionResponse ¶ added in v0.9.0
type CompleteLifecycleActionResponse struct { *CompleteLifecycleActionOutput // contains filtered or unexported fields }
CompleteLifecycleActionResponse is the response type for the CompleteLifecycleAction API operation.
func (*CompleteLifecycleActionResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *CompleteLifecycleActionResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the CompleteLifecycleAction request.
type CreateAutoScalingGroupInput ¶
type CreateAutoScalingGroupInput struct { // The name of the Auto Scaling group. This name must be unique per Region per // account. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // One or more Availability Zones for the group. This parameter is optional // if you specify one or more subnets for VPCZoneIdentifier. // // Conditional: If your account supports EC2-Classic and VPC, this parameter // is required to launch instances into EC2-Classic. AvailabilityZones []string `min:"1" type:"list"` // The amount of time, in seconds, after a scaling activity completes before // another scaling activity can start. The default value is 300. // // For more information, see Scaling Cooldowns (https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html) // in the Amazon EC2 Auto Scaling User Guide. DefaultCooldown *int64 `type:"integer"` // The number of Amazon EC2 instances that the Auto Scaling group attempts to // maintain. This number must be greater than or equal to the minimum size of // the group and less than or equal to the maximum size of the group. If you // do not specify a desired capacity, the default is the minimum size of the // group. DesiredCapacity *int64 `type:"integer"` // The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before // checking the health status of an EC2 instance that has come into service. // During this time, any health check failures for the instance are ignored. // The default value is 0. // // For more information, see Health Check Grace Period (https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period) // in the Amazon EC2 Auto Scaling User Guide. // // Conditional: This parameter is required if you are adding an ELB health check. HealthCheckGracePeriod *int64 `type:"integer"` // The service to use for the health checks. The valid values are EC2 and ELB. // The default value is EC2. If you configure an Auto Scaling group to use ELB // health checks, it considers the instance unhealthy if it fails either the // EC2 status checks or the load balancer health checks. // // For more information, see Health Checks for Auto Scaling Instances (https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html) // in the Amazon EC2 Auto Scaling User Guide. HealthCheckType *string `min:"1" type:"string"` // The ID of the instance used to create a launch configuration for the group. // // When you specify an ID of an instance, Amazon EC2 Auto Scaling creates a // new launch configuration and associates it with the group. This launch configuration // derives its attributes from the specified instance, except for the block // device mapping. // // For more information, see Create an Auto Scaling Group Using an EC2 Instance // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html) // in the Amazon EC2 Auto Scaling User Guide. // // You must specify one of the following parameters in your request: LaunchConfigurationName, // LaunchTemplate, InstanceId, or MixedInstancesPolicy. InstanceId *string `min:"1" type:"string"` // The name of the launch configuration. // // If you do not specify LaunchConfigurationName, you must specify one of the // following parameters: InstanceId, LaunchTemplate, or MixedInstancesPolicy. LaunchConfigurationName *string `min:"1" type:"string"` // The launch template to use to launch instances. // // For more information, see LaunchTemplateSpecification (https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchTemplateSpecification.html) // in the Amazon EC2 Auto Scaling API Reference. // // If you do not specify LaunchTemplate, you must specify one of the following // parameters: InstanceId, LaunchConfigurationName, or MixedInstancesPolicy. LaunchTemplate *LaunchTemplateSpecification `type:"structure"` // One or more lifecycle hooks. LifecycleHookSpecificationList []LifecycleHookSpecification `type:"list"` // A list of Classic Load Balancers associated with this Auto Scaling group. // For Application Load Balancers and Network Load Balancers, specify a list // of target groups using the TargetGroupARNs property instead. // // For more information, see Using a Load Balancer with an Auto Scaling Group // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html) // in the Amazon EC2 Auto Scaling User Guide. LoadBalancerNames []string `type:"list"` // The maximum size of the group. // // MaxSize is a required field MaxSize *int64 `type:"integer" required:"true"` // The minimum size of the group. // // MinSize is a required field MinSize *int64 `type:"integer" required:"true"` // An embedded object that specifies a mixed instances policy. The required // parameters must be specified. If optional parameters are unspecified, their // default values are used. // // The policy includes parameters that not only define the distribution of On-Demand // Instances and Spot Instances, the maximum price to pay for Spot Instances, // and how the Auto Scaling group allocates instance types to fulfill On-Demand // and Spot capacity, but also the parameters that specify the instance configuration // information—the launch template and instance types. // // For more information, see MixedInstancesPolicy (https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_MixedInstancesPolicy.html) // in the Amazon EC2 Auto Scaling API Reference and Auto Scaling Groups with // Multiple Instance Types and Purchase Options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html) // in the Amazon EC2 Auto Scaling User Guide. // // You must specify one of the following parameters in your request: LaunchConfigurationName, // LaunchTemplate, InstanceId, or MixedInstancesPolicy. MixedInstancesPolicy *MixedInstancesPolicy `type:"structure"` // Indicates whether newly launched instances are protected from termination // by Amazon EC2 Auto Scaling when scaling in. // // For more information about preventing instances from terminating on scale // in, see Instance Protection (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection) // in the Amazon EC2 Auto Scaling User Guide. NewInstancesProtectedFromScaleIn *bool `type:"boolean"` // The name of the placement group into which to launch your instances, if any. // A placement group is a logical grouping of instances within a single Availability // Zone. You cannot specify multiple Availability Zones and a placement group. // For more information, see Placement Groups (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) // in the Amazon EC2 User Guide for Linux Instances. PlacementGroup *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling // group uses to call other AWS services on your behalf. By default, Amazon // EC2 Auto Scaling uses a service-linked role named AWSServiceRoleForAutoScaling, // which it creates if it does not exist. For more information, see Service-Linked // Roles (https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html) // in the Amazon EC2 Auto Scaling User Guide. ServiceLinkedRoleARN *string `min:"1" type:"string"` // One or more tags. // // For more information, see Tagging Auto Scaling Groups and Instances (https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-tagging.html) // in the Amazon EC2 Auto Scaling User Guide. Tags []Tag `type:"list"` // The Amazon Resource Names (ARN) of the target groups to associate with the // Auto Scaling group. Instances are registered as targets in a target group, // and traffic is routed to the target group. // // For more information, see Using a Load Balancer with an Auto Scaling Group // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html) // in the Amazon EC2 Auto Scaling User Guide. TargetGroupARNs []string `type:"list"` // One or more termination policies used to select the instance to terminate. // These policies are executed in the order that they are listed. // // For more information, see Controlling Which Instances Auto Scaling Terminates // During Scale In (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html) // in the Amazon EC2 Auto Scaling User Guide. TerminationPolicies []string `type:"list"` // A comma-separated list of subnet IDs for your virtual private cloud (VPC). // // If you specify VPCZoneIdentifier with AvailabilityZones, the subnets that // you specify for this parameter must reside in those Availability Zones. // // Conditional: If your account supports EC2-Classic and VPC, this parameter // is required to launch instances into a VPC. VPCZoneIdentifier *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (CreateAutoScalingGroupInput) String ¶
func (s CreateAutoScalingGroupInput) String() string
String returns the string representation
func (*CreateAutoScalingGroupInput) Validate ¶
func (s *CreateAutoScalingGroupInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateAutoScalingGroupOutput ¶
type CreateAutoScalingGroupOutput struct {
// contains filtered or unexported fields
}
func (CreateAutoScalingGroupOutput) String ¶
func (s CreateAutoScalingGroupOutput) String() string
String returns the string representation
type CreateAutoScalingGroupRequest ¶
type CreateAutoScalingGroupRequest struct { *aws.Request Input *CreateAutoScalingGroupInput Copy func(*CreateAutoScalingGroupInput) CreateAutoScalingGroupRequest }
CreateAutoScalingGroupRequest is the request type for the CreateAutoScalingGroup API operation.
func (CreateAutoScalingGroupRequest) Send ¶
func (r CreateAutoScalingGroupRequest) Send(ctx context.Context) (*CreateAutoScalingGroupResponse, error)
Send marshals and sends the CreateAutoScalingGroup API request.
type CreateAutoScalingGroupResponse ¶ added in v0.9.0
type CreateAutoScalingGroupResponse struct { *CreateAutoScalingGroupOutput // contains filtered or unexported fields }
CreateAutoScalingGroupResponse is the response type for the CreateAutoScalingGroup API operation.
func (*CreateAutoScalingGroupResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *CreateAutoScalingGroupResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the CreateAutoScalingGroup request.
type CreateLaunchConfigurationInput ¶
type CreateLaunchConfigurationInput struct { // For Auto Scaling groups that are running in a virtual private cloud (VPC), // specifies whether to assign a public IP address to the group's instances. // If you specify true, each instance in the Auto Scaling group receives a unique // public IP address. For more information, see Launching Auto Scaling Instances // in a VPC (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html) // in the Amazon EC2 Auto Scaling User Guide. // // If you specify this parameter, you must specify at least one subnet for VPCZoneIdentifier // when you create your group. // // If the instance is launched into a default subnet, the default is to assign // a public IP address, unless you disabled the option to assign a public IP // address on the subnet. If the instance is launched into a nondefault subnet, // the default is not to assign a public IP address, unless you enabled the // option to assign a public IP address on the subnet. AssociatePublicIpAddress *bool `type:"boolean"` // A block device mapping, which specifies the block devices for the instance. // You can specify virtual devices and EBS volumes. For more information, see // Block Device Mapping (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html) // in the Amazon EC2 User Guide for Linux Instances. BlockDeviceMappings []BlockDeviceMapping `type:"list"` // The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. // For more information, see ClassicLink (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) // in the Amazon EC2 User Guide for Linux Instances and Linking EC2-Classic // Instances to a VPC (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink) // in the Amazon EC2 Auto Scaling User Guide. // // This parameter can only be used if you are launching EC2-Classic instances. ClassicLinkVPCId *string `min:"1" type:"string"` // The IDs of one or more security groups for the specified ClassicLink-enabled // VPC. For more information, see ClassicLink (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) // in the Amazon EC2 User Guide for Linux Instances and Linking EC2-Classic // Instances to a VPC (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink) // in the Amazon EC2 Auto Scaling User Guide. // // If you specify the ClassicLinkVPCId parameter, you must specify this parameter. ClassicLinkVPCSecurityGroups []string `type:"list"` // Specifies whether the launch configuration is optimized for EBS I/O (true) // or not (false). The optimization provides dedicated throughput to Amazon // EBS and an optimized configuration stack to provide optimal I/O performance. // This optimization is not available with all instance types. Additional fees // are incurred when you enable EBS optimization for an instance type that is // not EBS-optimized by default. For more information, see Amazon EBS-Optimized // Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html) // in the Amazon EC2 User Guide for Linux Instances. // // The default value is false. EbsOptimized *bool `type:"boolean"` // The name or the Amazon Resource Name (ARN) of the instance profile associated // with the IAM role for the instance. The instance profile contains the IAM // role. // // For more information, see IAM Role for Applications That Run on Amazon EC2 // Instances (https://docs.aws.amazon.com/autoscaling/ec2/userguide/us-iam-role.html) // in the Amazon EC2 Auto Scaling User Guide. IamInstanceProfile *string `min:"1" type:"string"` // The ID of the Amazon Machine Image (AMI) that was assigned during registration. // For more information, see Finding an AMI (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html) // in the Amazon EC2 User Guide for Linux Instances. // // If you do not specify InstanceId, you must specify ImageId. ImageId *string `min:"1" type:"string"` // The ID of the instance to use to create the launch configuration. The new // launch configuration derives attributes from the instance, except for the // block device mapping. // // To create a launch configuration with a block device mapping or override // any other instance attributes, specify them as part of the same request. // // For more information, see Create a Launch Configuration Using an EC2 Instance // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-lc-with-instanceID.html) // in the Amazon EC2 Auto Scaling User Guide. // // If you do not specify InstanceId, you must specify both ImageId and InstanceType. InstanceId *string `min:"1" type:"string"` // Controls whether instances in this group are launched with detailed (true) // or basic (false) monitoring. // // The default value is true (enabled). // // When detailed monitoring is enabled, Amazon CloudWatch generates metrics // every minute and your account is charged a fee. When you disable detailed // monitoring, CloudWatch generates metrics every 5 minutes. For more information, // see Configure Monitoring for Auto Scaling Instances (https://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-monitoring.html#enable-as-instance-metrics) // in the Amazon EC2 Auto Scaling User Guide. InstanceMonitoring *InstanceMonitoring `type:"structure"` // Specifies the instance type of the EC2 instance. // // For information about available instance types, see Available Instance Types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes) // in the Amazon EC2 User Guide for Linux Instances. // // If you do not specify InstanceId, you must specify InstanceType. InstanceType *string `min:"1" type:"string"` // The ID of the kernel associated with the AMI. KernelId *string `min:"1" type:"string"` // The name of the key pair. For more information, see Amazon EC2 Key Pairs // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) // in the Amazon EC2 User Guide for Linux Instances. KeyName *string `min:"1" type:"string"` // The name of the launch configuration. This name must be unique per Region // per account. // // LaunchConfigurationName is a required field LaunchConfigurationName *string `min:"1" type:"string" required:"true"` // The tenancy of the instance. An instance with dedicated tenancy runs on isolated, // single-tenant hardware and can only be launched into a VPC. // // To launch dedicated instances into a shared tenancy VPC (a VPC with the instance // placement tenancy attribute set to default), you must set the value of this // parameter to dedicated. // // If you specify PlacementTenancy, you must specify at least one subnet for // VPCZoneIdentifier when you create your group. // // For more information, see Instance Placement Tenancy (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy) // in the Amazon EC2 Auto Scaling User Guide. // // Valid values: default | dedicated PlacementTenancy *string `min:"1" type:"string"` // The ID of the RAM disk to select. RamdiskId *string `min:"1" type:"string"` // A list that contains the security groups to assign to the instances in the // Auto Scaling group. // // [EC2-VPC] Specify the security group IDs. For more information, see Security // Groups for Your VPC (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) // in the Amazon Virtual Private Cloud User Guide. // // [EC2-Classic] Specify either the security group names or the security group // IDs. For more information, see Amazon EC2 Security Groups (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html) // in the Amazon EC2 User Guide for Linux Instances. SecurityGroups []string `type:"list"` // The maximum hourly price to be paid for any Spot Instance launched to fulfill // the request. Spot Instances are launched when the price you specify exceeds // the current Spot market price. For more information, see Launching Spot Instances // in Your Auto Scaling Group (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-launch-spot-instances.html) // in the Amazon EC2 Auto Scaling User Guide. // // If a Spot price is set, then the Auto Scaling group will only launch instances // when the Spot price has been met, regardless of the setting in the Auto Scaling // group's DesiredCapacity. // // When you change your Spot price by creating a new launch configuration, running // instances will continue to run as long as the Spot price for those running // instances is higher than the current Spot market price. SpotPrice *string `min:"1" type:"string"` // The Base64-encoded user data to make available to the launched EC2 instances. // For more information, see Instance Metadata and User Data (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) // in the Amazon EC2 User Guide for Linux Instances. UserData *string `type:"string"` // contains filtered or unexported fields }
func (CreateLaunchConfigurationInput) String ¶
func (s CreateLaunchConfigurationInput) String() string
String returns the string representation
func (*CreateLaunchConfigurationInput) Validate ¶
func (s *CreateLaunchConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateLaunchConfigurationOutput ¶
type CreateLaunchConfigurationOutput struct {
// contains filtered or unexported fields
}
func (CreateLaunchConfigurationOutput) String ¶
func (s CreateLaunchConfigurationOutput) String() string
String returns the string representation
type CreateLaunchConfigurationRequest ¶
type CreateLaunchConfigurationRequest struct { *aws.Request Input *CreateLaunchConfigurationInput Copy func(*CreateLaunchConfigurationInput) CreateLaunchConfigurationRequest }
CreateLaunchConfigurationRequest is the request type for the CreateLaunchConfiguration API operation.
func (CreateLaunchConfigurationRequest) Send ¶
func (r CreateLaunchConfigurationRequest) Send(ctx context.Context) (*CreateLaunchConfigurationResponse, error)
Send marshals and sends the CreateLaunchConfiguration API request.
type CreateLaunchConfigurationResponse ¶ added in v0.9.0
type CreateLaunchConfigurationResponse struct { *CreateLaunchConfigurationOutput // contains filtered or unexported fields }
CreateLaunchConfigurationResponse is the response type for the CreateLaunchConfiguration API operation.
func (*CreateLaunchConfigurationResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *CreateLaunchConfigurationResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the CreateLaunchConfiguration request.
type CreateOrUpdateTagsInput ¶
type CreateOrUpdateTagsInput struct { // One or more tags. // // Tags is a required field Tags []Tag `type:"list" required:"true"` // contains filtered or unexported fields }
func (CreateOrUpdateTagsInput) String ¶
func (s CreateOrUpdateTagsInput) String() string
String returns the string representation
func (*CreateOrUpdateTagsInput) Validate ¶
func (s *CreateOrUpdateTagsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateOrUpdateTagsOutput ¶
type CreateOrUpdateTagsOutput struct {
// contains filtered or unexported fields
}
func (CreateOrUpdateTagsOutput) String ¶
func (s CreateOrUpdateTagsOutput) String() string
String returns the string representation
type CreateOrUpdateTagsRequest ¶
type CreateOrUpdateTagsRequest struct { *aws.Request Input *CreateOrUpdateTagsInput Copy func(*CreateOrUpdateTagsInput) CreateOrUpdateTagsRequest }
CreateOrUpdateTagsRequest is the request type for the CreateOrUpdateTags API operation.
func (CreateOrUpdateTagsRequest) Send ¶
func (r CreateOrUpdateTagsRequest) Send(ctx context.Context) (*CreateOrUpdateTagsResponse, error)
Send marshals and sends the CreateOrUpdateTags API request.
type CreateOrUpdateTagsResponse ¶ added in v0.9.0
type CreateOrUpdateTagsResponse struct { *CreateOrUpdateTagsOutput // contains filtered or unexported fields }
CreateOrUpdateTagsResponse is the response type for the CreateOrUpdateTags API operation.
func (*CreateOrUpdateTagsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *CreateOrUpdateTagsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the CreateOrUpdateTags request.
type CustomizedMetricSpecification ¶
type CustomizedMetricSpecification struct { // The dimensions of the metric. // // Conditional: If you published your metric with dimensions, you must specify // the same dimensions in your scaling policy. Dimensions []MetricDimension `type:"list"` // The name of the metric. // // MetricName is a required field MetricName *string `type:"string" required:"true"` // The namespace of the metric. // // Namespace is a required field Namespace *string `type:"string" required:"true"` // The statistic of the metric. // // Statistic is a required field Statistic MetricStatistic `type:"string" required:"true" enum:"true"` // The unit of the metric. Unit *string `type:"string"` // contains filtered or unexported fields }
Represents a CloudWatch metric of your choosing for a target tracking scaling policy to use with Amazon EC2 Auto Scaling.
To create your customized metric specification:
Add values for each required parameter from CloudWatch. You can use an existing metric, or a new metric that you create. To use your own metric, you must first publish the metric to CloudWatch. For more information, see Publish Custom Metrics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html) in the Amazon CloudWatch User Guide.
Choose a metric that changes proportionally with capacity. The value of the metric should increase or decrease in inverse proportion to the number of capacity units. That is, the value of the metric should decrease when capacity increases.
For more information about CloudWatch, see Amazon CloudWatch Concepts (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html).
func (CustomizedMetricSpecification) String ¶
func (s CustomizedMetricSpecification) String() string
String returns the string representation
func (*CustomizedMetricSpecification) Validate ¶
func (s *CustomizedMetricSpecification) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteAutoScalingGroupInput ¶
type DeleteAutoScalingGroupInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // Specifies that the group is to be deleted along with all instances associated // with the group, without waiting for all instances to be terminated. This // parameter also deletes any lifecycle actions associated with the group. ForceDelete *bool `type:"boolean"` // contains filtered or unexported fields }
func (DeleteAutoScalingGroupInput) String ¶
func (s DeleteAutoScalingGroupInput) String() string
String returns the string representation
func (*DeleteAutoScalingGroupInput) Validate ¶
func (s *DeleteAutoScalingGroupInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteAutoScalingGroupOutput ¶
type DeleteAutoScalingGroupOutput struct {
// contains filtered or unexported fields
}
func (DeleteAutoScalingGroupOutput) String ¶
func (s DeleteAutoScalingGroupOutput) String() string
String returns the string representation
type DeleteAutoScalingGroupRequest ¶
type DeleteAutoScalingGroupRequest struct { *aws.Request Input *DeleteAutoScalingGroupInput Copy func(*DeleteAutoScalingGroupInput) DeleteAutoScalingGroupRequest }
DeleteAutoScalingGroupRequest is the request type for the DeleteAutoScalingGroup API operation.
func (DeleteAutoScalingGroupRequest) Send ¶
func (r DeleteAutoScalingGroupRequest) Send(ctx context.Context) (*DeleteAutoScalingGroupResponse, error)
Send marshals and sends the DeleteAutoScalingGroup API request.
type DeleteAutoScalingGroupResponse ¶ added in v0.9.0
type DeleteAutoScalingGroupResponse struct { *DeleteAutoScalingGroupOutput // contains filtered or unexported fields }
DeleteAutoScalingGroupResponse is the response type for the DeleteAutoScalingGroup API operation.
func (*DeleteAutoScalingGroupResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DeleteAutoScalingGroupResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DeleteAutoScalingGroup request.
type DeleteLaunchConfigurationInput ¶
type DeleteLaunchConfigurationInput struct { // The name of the launch configuration. // // LaunchConfigurationName is a required field LaunchConfigurationName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteLaunchConfigurationInput) String ¶
func (s DeleteLaunchConfigurationInput) String() string
String returns the string representation
func (*DeleteLaunchConfigurationInput) Validate ¶
func (s *DeleteLaunchConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteLaunchConfigurationOutput ¶
type DeleteLaunchConfigurationOutput struct {
// contains filtered or unexported fields
}
func (DeleteLaunchConfigurationOutput) String ¶
func (s DeleteLaunchConfigurationOutput) String() string
String returns the string representation
type DeleteLaunchConfigurationRequest ¶
type DeleteLaunchConfigurationRequest struct { *aws.Request Input *DeleteLaunchConfigurationInput Copy func(*DeleteLaunchConfigurationInput) DeleteLaunchConfigurationRequest }
DeleteLaunchConfigurationRequest is the request type for the DeleteLaunchConfiguration API operation.
func (DeleteLaunchConfigurationRequest) Send ¶
func (r DeleteLaunchConfigurationRequest) Send(ctx context.Context) (*DeleteLaunchConfigurationResponse, error)
Send marshals and sends the DeleteLaunchConfiguration API request.
type DeleteLaunchConfigurationResponse ¶ added in v0.9.0
type DeleteLaunchConfigurationResponse struct { *DeleteLaunchConfigurationOutput // contains filtered or unexported fields }
DeleteLaunchConfigurationResponse is the response type for the DeleteLaunchConfiguration API operation.
func (*DeleteLaunchConfigurationResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DeleteLaunchConfigurationResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DeleteLaunchConfiguration request.
type DeleteLifecycleHookInput ¶
type DeleteLifecycleHookInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The name of the lifecycle hook. // // LifecycleHookName is a required field LifecycleHookName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteLifecycleHookInput) String ¶
func (s DeleteLifecycleHookInput) String() string
String returns the string representation
func (*DeleteLifecycleHookInput) Validate ¶
func (s *DeleteLifecycleHookInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteLifecycleHookOutput ¶
type DeleteLifecycleHookOutput struct {
// contains filtered or unexported fields
}
func (DeleteLifecycleHookOutput) String ¶
func (s DeleteLifecycleHookOutput) String() string
String returns the string representation
type DeleteLifecycleHookRequest ¶
type DeleteLifecycleHookRequest struct { *aws.Request Input *DeleteLifecycleHookInput Copy func(*DeleteLifecycleHookInput) DeleteLifecycleHookRequest }
DeleteLifecycleHookRequest is the request type for the DeleteLifecycleHook API operation.
func (DeleteLifecycleHookRequest) Send ¶
func (r DeleteLifecycleHookRequest) Send(ctx context.Context) (*DeleteLifecycleHookResponse, error)
Send marshals and sends the DeleteLifecycleHook API request.
type DeleteLifecycleHookResponse ¶ added in v0.9.0
type DeleteLifecycleHookResponse struct { *DeleteLifecycleHookOutput // contains filtered or unexported fields }
DeleteLifecycleHookResponse is the response type for the DeleteLifecycleHook API operation.
func (*DeleteLifecycleHookResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DeleteLifecycleHookResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DeleteLifecycleHook request.
type DeleteNotificationConfigurationInput ¶
type DeleteNotificationConfigurationInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service // (Amazon SNS) topic. // // TopicARN is a required field TopicARN *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteNotificationConfigurationInput) String ¶
func (s DeleteNotificationConfigurationInput) String() string
String returns the string representation
func (*DeleteNotificationConfigurationInput) Validate ¶
func (s *DeleteNotificationConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteNotificationConfigurationOutput ¶
type DeleteNotificationConfigurationOutput struct {
// contains filtered or unexported fields
}
func (DeleteNotificationConfigurationOutput) String ¶
func (s DeleteNotificationConfigurationOutput) String() string
String returns the string representation
type DeleteNotificationConfigurationRequest ¶
type DeleteNotificationConfigurationRequest struct { *aws.Request Input *DeleteNotificationConfigurationInput Copy func(*DeleteNotificationConfigurationInput) DeleteNotificationConfigurationRequest }
DeleteNotificationConfigurationRequest is the request type for the DeleteNotificationConfiguration API operation.
func (DeleteNotificationConfigurationRequest) Send ¶
func (r DeleteNotificationConfigurationRequest) Send(ctx context.Context) (*DeleteNotificationConfigurationResponse, error)
Send marshals and sends the DeleteNotificationConfiguration API request.
type DeleteNotificationConfigurationResponse ¶ added in v0.9.0
type DeleteNotificationConfigurationResponse struct { *DeleteNotificationConfigurationOutput // contains filtered or unexported fields }
DeleteNotificationConfigurationResponse is the response type for the DeleteNotificationConfiguration API operation.
func (*DeleteNotificationConfigurationResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DeleteNotificationConfigurationResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DeleteNotificationConfiguration request.
type DeletePolicyInput ¶
type DeletePolicyInput struct { // The name of the Auto Scaling group. AutoScalingGroupName *string `min:"1" type:"string"` // The name or Amazon Resource Name (ARN) of the policy. // // PolicyName is a required field PolicyName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeletePolicyInput) String ¶
func (s DeletePolicyInput) String() string
String returns the string representation
func (*DeletePolicyInput) Validate ¶
func (s *DeletePolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeletePolicyOutput ¶
type DeletePolicyOutput struct {
// contains filtered or unexported fields
}
func (DeletePolicyOutput) String ¶
func (s DeletePolicyOutput) String() string
String returns the string representation
type DeletePolicyRequest ¶
type DeletePolicyRequest struct { *aws.Request Input *DeletePolicyInput Copy func(*DeletePolicyInput) DeletePolicyRequest }
DeletePolicyRequest is the request type for the DeletePolicy API operation.
func (DeletePolicyRequest) Send ¶
func (r DeletePolicyRequest) Send(ctx context.Context) (*DeletePolicyResponse, error)
Send marshals and sends the DeletePolicy API request.
type DeletePolicyResponse ¶ added in v0.9.0
type DeletePolicyResponse struct { *DeletePolicyOutput // contains filtered or unexported fields }
DeletePolicyResponse is the response type for the DeletePolicy API operation.
func (*DeletePolicyResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DeletePolicyResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DeletePolicy request.
type DeleteScheduledActionInput ¶
type DeleteScheduledActionInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The name of the action to delete. // // ScheduledActionName is a required field ScheduledActionName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteScheduledActionInput) String ¶
func (s DeleteScheduledActionInput) String() string
String returns the string representation
func (*DeleteScheduledActionInput) Validate ¶
func (s *DeleteScheduledActionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteScheduledActionOutput ¶
type DeleteScheduledActionOutput struct {
// contains filtered or unexported fields
}
func (DeleteScheduledActionOutput) String ¶
func (s DeleteScheduledActionOutput) String() string
String returns the string representation
type DeleteScheduledActionRequest ¶
type DeleteScheduledActionRequest struct { *aws.Request Input *DeleteScheduledActionInput Copy func(*DeleteScheduledActionInput) DeleteScheduledActionRequest }
DeleteScheduledActionRequest is the request type for the DeleteScheduledAction API operation.
func (DeleteScheduledActionRequest) Send ¶
func (r DeleteScheduledActionRequest) Send(ctx context.Context) (*DeleteScheduledActionResponse, error)
Send marshals and sends the DeleteScheduledAction API request.
type DeleteScheduledActionResponse ¶ added in v0.9.0
type DeleteScheduledActionResponse struct { *DeleteScheduledActionOutput // contains filtered or unexported fields }
DeleteScheduledActionResponse is the response type for the DeleteScheduledAction API operation.
func (*DeleteScheduledActionResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DeleteScheduledActionResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DeleteScheduledAction request.
type DeleteTagsInput ¶
type DeleteTagsInput struct { // One or more tags. // // Tags is a required field Tags []Tag `type:"list" required:"true"` // contains filtered or unexported fields }
func (DeleteTagsInput) String ¶
func (s DeleteTagsInput) String() string
String returns the string representation
func (*DeleteTagsInput) Validate ¶
func (s *DeleteTagsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteTagsOutput ¶
type DeleteTagsOutput struct {
// contains filtered or unexported fields
}
func (DeleteTagsOutput) String ¶
func (s DeleteTagsOutput) String() string
String returns the string representation
type DeleteTagsRequest ¶
type DeleteTagsRequest struct { *aws.Request Input *DeleteTagsInput Copy func(*DeleteTagsInput) DeleteTagsRequest }
DeleteTagsRequest is the request type for the DeleteTags API operation.
func (DeleteTagsRequest) Send ¶
func (r DeleteTagsRequest) Send(ctx context.Context) (*DeleteTagsResponse, error)
Send marshals and sends the DeleteTags API request.
type DeleteTagsResponse ¶ added in v0.9.0
type DeleteTagsResponse struct { *DeleteTagsOutput // contains filtered or unexported fields }
DeleteTagsResponse is the response type for the DeleteTags API operation.
func (*DeleteTagsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DeleteTagsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DeleteTags request.
type DescribeAccountLimitsInput ¶
type DescribeAccountLimitsInput struct {
// contains filtered or unexported fields
}
func (DescribeAccountLimitsInput) String ¶
func (s DescribeAccountLimitsInput) String() string
String returns the string representation
type DescribeAccountLimitsOutput ¶
type DescribeAccountLimitsOutput struct { // The maximum number of groups allowed for your AWS account. The default limit // is 200 per AWS Region. MaxNumberOfAutoScalingGroups *int64 `type:"integer"` // The maximum number of launch configurations allowed for your AWS account. // The default limit is 200 per AWS Region. MaxNumberOfLaunchConfigurations *int64 `type:"integer"` // The current number of groups for your AWS account. NumberOfAutoScalingGroups *int64 `type:"integer"` // The current number of launch configurations for your AWS account. NumberOfLaunchConfigurations *int64 `type:"integer"` // contains filtered or unexported fields }
func (DescribeAccountLimitsOutput) String ¶
func (s DescribeAccountLimitsOutput) String() string
String returns the string representation
type DescribeAccountLimitsRequest ¶
type DescribeAccountLimitsRequest struct { *aws.Request Input *DescribeAccountLimitsInput Copy func(*DescribeAccountLimitsInput) DescribeAccountLimitsRequest }
DescribeAccountLimitsRequest is the request type for the DescribeAccountLimits API operation.
func (DescribeAccountLimitsRequest) Send ¶
func (r DescribeAccountLimitsRequest) Send(ctx context.Context) (*DescribeAccountLimitsResponse, error)
Send marshals and sends the DescribeAccountLimits API request.
type DescribeAccountLimitsResponse ¶ added in v0.9.0
type DescribeAccountLimitsResponse struct { *DescribeAccountLimitsOutput // contains filtered or unexported fields }
DescribeAccountLimitsResponse is the response type for the DescribeAccountLimits API operation.
func (*DescribeAccountLimitsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeAccountLimitsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeAccountLimits request.
type DescribeAdjustmentTypesInput ¶
type DescribeAdjustmentTypesInput struct {
// contains filtered or unexported fields
}
func (DescribeAdjustmentTypesInput) String ¶
func (s DescribeAdjustmentTypesInput) String() string
String returns the string representation
type DescribeAdjustmentTypesOutput ¶
type DescribeAdjustmentTypesOutput struct { // The policy adjustment types. AdjustmentTypes []AdjustmentType `type:"list"` // contains filtered or unexported fields }
func (DescribeAdjustmentTypesOutput) String ¶
func (s DescribeAdjustmentTypesOutput) String() string
String returns the string representation
type DescribeAdjustmentTypesRequest ¶
type DescribeAdjustmentTypesRequest struct { *aws.Request Input *DescribeAdjustmentTypesInput Copy func(*DescribeAdjustmentTypesInput) DescribeAdjustmentTypesRequest }
DescribeAdjustmentTypesRequest is the request type for the DescribeAdjustmentTypes API operation.
func (DescribeAdjustmentTypesRequest) Send ¶
func (r DescribeAdjustmentTypesRequest) Send(ctx context.Context) (*DescribeAdjustmentTypesResponse, error)
Send marshals and sends the DescribeAdjustmentTypes API request.
type DescribeAdjustmentTypesResponse ¶ added in v0.9.0
type DescribeAdjustmentTypesResponse struct { *DescribeAdjustmentTypesOutput // contains filtered or unexported fields }
DescribeAdjustmentTypesResponse is the response type for the DescribeAdjustmentTypes API operation.
func (*DescribeAdjustmentTypesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeAdjustmentTypesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeAdjustmentTypes request.
type DescribeAutoScalingGroupsInput ¶
type DescribeAutoScalingGroupsInput struct { // The names of the Auto Scaling groups. Each name can be a maximum of 1600 // characters. By default, you can only specify up to 50 names. You can optionally // increase this limit using the MaxRecords parameter. // // If you omit this parameter, all Auto Scaling groups are described. AutoScalingGroupNames []string `type:"list"` // The maximum number of items to return with this call. The default value is // 50 and the maximum value is 100. MaxRecords *int64 `type:"integer"` // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` // contains filtered or unexported fields }
func (DescribeAutoScalingGroupsInput) String ¶
func (s DescribeAutoScalingGroupsInput) String() string
String returns the string representation
type DescribeAutoScalingGroupsOutput ¶
type DescribeAutoScalingGroupsOutput struct { // The groups. // // AutoScalingGroups is a required field AutoScalingGroups []AutoScalingGroup `type:"list" required:"true"` // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this // string for the NextToken value when requesting the next set of items. This // value is null when there are no more items to return. NextToken *string `type:"string"` // contains filtered or unexported fields }
func (DescribeAutoScalingGroupsOutput) String ¶
func (s DescribeAutoScalingGroupsOutput) String() string
String returns the string representation
type DescribeAutoScalingGroupsPaginator ¶ added in v0.9.0
DescribeAutoScalingGroupsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewDescribeAutoScalingGroupsPaginator ¶ added in v0.9.0
func NewDescribeAutoScalingGroupsPaginator(req DescribeAutoScalingGroupsRequest) DescribeAutoScalingGroupsPaginator
NewDescribeAutoScalingGroupsRequestPaginator returns a paginator for DescribeAutoScalingGroups. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.DescribeAutoScalingGroupsRequest(input) p := autoscaling.NewDescribeAutoScalingGroupsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*DescribeAutoScalingGroupsPaginator) CurrentPage ¶ added in v0.9.0
func (p *DescribeAutoScalingGroupsPaginator) CurrentPage() *DescribeAutoScalingGroupsOutput
type DescribeAutoScalingGroupsRequest ¶
type DescribeAutoScalingGroupsRequest struct { *aws.Request Input *DescribeAutoScalingGroupsInput Copy func(*DescribeAutoScalingGroupsInput) DescribeAutoScalingGroupsRequest }
DescribeAutoScalingGroupsRequest is the request type for the DescribeAutoScalingGroups API operation.
func (DescribeAutoScalingGroupsRequest) Send ¶
func (r DescribeAutoScalingGroupsRequest) Send(ctx context.Context) (*DescribeAutoScalingGroupsResponse, error)
Send marshals and sends the DescribeAutoScalingGroups API request.
type DescribeAutoScalingGroupsResponse ¶ added in v0.9.0
type DescribeAutoScalingGroupsResponse struct { *DescribeAutoScalingGroupsOutput // contains filtered or unexported fields }
DescribeAutoScalingGroupsResponse is the response type for the DescribeAutoScalingGroups API operation.
func (*DescribeAutoScalingGroupsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeAutoScalingGroupsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeAutoScalingGroups request.
type DescribeAutoScalingInstancesInput ¶
type DescribeAutoScalingInstancesInput struct { // The IDs of the instances. You can specify up to MaxRecords IDs. If you omit // this parameter, all Auto Scaling instances are described. If you specify // an ID that does not exist, it is ignored with no error. InstanceIds []string `type:"list"` // The maximum number of items to return with this call. The default value is // 50 and the maximum value is 50. MaxRecords *int64 `type:"integer"` // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` // contains filtered or unexported fields }
func (DescribeAutoScalingInstancesInput) String ¶
func (s DescribeAutoScalingInstancesInput) String() string
String returns the string representation
type DescribeAutoScalingInstancesOutput ¶
type DescribeAutoScalingInstancesOutput struct { // The instances. AutoScalingInstances []AutoScalingInstanceDetails `type:"list"` // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this // string for the NextToken value when requesting the next set of items. This // value is null when there are no more items to return. NextToken *string `type:"string"` // contains filtered or unexported fields }
func (DescribeAutoScalingInstancesOutput) String ¶
func (s DescribeAutoScalingInstancesOutput) String() string
String returns the string representation
type DescribeAutoScalingInstancesPaginator ¶ added in v0.9.0
DescribeAutoScalingInstancesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewDescribeAutoScalingInstancesPaginator ¶ added in v0.9.0
func NewDescribeAutoScalingInstancesPaginator(req DescribeAutoScalingInstancesRequest) DescribeAutoScalingInstancesPaginator
NewDescribeAutoScalingInstancesRequestPaginator returns a paginator for DescribeAutoScalingInstances. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.DescribeAutoScalingInstancesRequest(input) p := autoscaling.NewDescribeAutoScalingInstancesRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*DescribeAutoScalingInstancesPaginator) CurrentPage ¶ added in v0.9.0
func (p *DescribeAutoScalingInstancesPaginator) CurrentPage() *DescribeAutoScalingInstancesOutput
type DescribeAutoScalingInstancesRequest ¶
type DescribeAutoScalingInstancesRequest struct { *aws.Request Input *DescribeAutoScalingInstancesInput Copy func(*DescribeAutoScalingInstancesInput) DescribeAutoScalingInstancesRequest }
DescribeAutoScalingInstancesRequest is the request type for the DescribeAutoScalingInstances API operation.
func (DescribeAutoScalingInstancesRequest) Send ¶
func (r DescribeAutoScalingInstancesRequest) Send(ctx context.Context) (*DescribeAutoScalingInstancesResponse, error)
Send marshals and sends the DescribeAutoScalingInstances API request.
type DescribeAutoScalingInstancesResponse ¶ added in v0.9.0
type DescribeAutoScalingInstancesResponse struct { *DescribeAutoScalingInstancesOutput // contains filtered or unexported fields }
DescribeAutoScalingInstancesResponse is the response type for the DescribeAutoScalingInstances API operation.
func (*DescribeAutoScalingInstancesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeAutoScalingInstancesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeAutoScalingInstances request.
type DescribeAutoScalingNotificationTypesInput ¶
type DescribeAutoScalingNotificationTypesInput struct {
// contains filtered or unexported fields
}
func (DescribeAutoScalingNotificationTypesInput) String ¶
func (s DescribeAutoScalingNotificationTypesInput) String() string
String returns the string representation
type DescribeAutoScalingNotificationTypesOutput ¶
type DescribeAutoScalingNotificationTypesOutput struct { // The notification types. AutoScalingNotificationTypes []string `type:"list"` // contains filtered or unexported fields }
func (DescribeAutoScalingNotificationTypesOutput) String ¶
func (s DescribeAutoScalingNotificationTypesOutput) String() string
String returns the string representation
type DescribeAutoScalingNotificationTypesRequest ¶
type DescribeAutoScalingNotificationTypesRequest struct { *aws.Request Input *DescribeAutoScalingNotificationTypesInput Copy func(*DescribeAutoScalingNotificationTypesInput) DescribeAutoScalingNotificationTypesRequest }
DescribeAutoScalingNotificationTypesRequest is the request type for the DescribeAutoScalingNotificationTypes API operation.
func (DescribeAutoScalingNotificationTypesRequest) Send ¶
func (r DescribeAutoScalingNotificationTypesRequest) Send(ctx context.Context) (*DescribeAutoScalingNotificationTypesResponse, error)
Send marshals and sends the DescribeAutoScalingNotificationTypes API request.
type DescribeAutoScalingNotificationTypesResponse ¶ added in v0.9.0
type DescribeAutoScalingNotificationTypesResponse struct { *DescribeAutoScalingNotificationTypesOutput // contains filtered or unexported fields }
DescribeAutoScalingNotificationTypesResponse is the response type for the DescribeAutoScalingNotificationTypes API operation.
func (*DescribeAutoScalingNotificationTypesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeAutoScalingNotificationTypesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeAutoScalingNotificationTypes request.
type DescribeLaunchConfigurationsInput ¶
type DescribeLaunchConfigurationsInput struct { // The launch configuration names. If you omit this parameter, all launch configurations // are described. LaunchConfigurationNames []string `type:"list"` // The maximum number of items to return with this call. The default value is // 50 and the maximum value is 100. MaxRecords *int64 `type:"integer"` // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` // contains filtered or unexported fields }
func (DescribeLaunchConfigurationsInput) String ¶
func (s DescribeLaunchConfigurationsInput) String() string
String returns the string representation
type DescribeLaunchConfigurationsOutput ¶
type DescribeLaunchConfigurationsOutput struct { // The launch configurations. // // LaunchConfigurations is a required field LaunchConfigurations []LaunchConfiguration `type:"list" required:"true"` // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this // string for the NextToken value when requesting the next set of items. This // value is null when there are no more items to return. NextToken *string `type:"string"` // contains filtered or unexported fields }
func (DescribeLaunchConfigurationsOutput) String ¶
func (s DescribeLaunchConfigurationsOutput) String() string
String returns the string representation
type DescribeLaunchConfigurationsPaginator ¶ added in v0.9.0
DescribeLaunchConfigurationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewDescribeLaunchConfigurationsPaginator ¶ added in v0.9.0
func NewDescribeLaunchConfigurationsPaginator(req DescribeLaunchConfigurationsRequest) DescribeLaunchConfigurationsPaginator
NewDescribeLaunchConfigurationsRequestPaginator returns a paginator for DescribeLaunchConfigurations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.DescribeLaunchConfigurationsRequest(input) p := autoscaling.NewDescribeLaunchConfigurationsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*DescribeLaunchConfigurationsPaginator) CurrentPage ¶ added in v0.9.0
func (p *DescribeLaunchConfigurationsPaginator) CurrentPage() *DescribeLaunchConfigurationsOutput
type DescribeLaunchConfigurationsRequest ¶
type DescribeLaunchConfigurationsRequest struct { *aws.Request Input *DescribeLaunchConfigurationsInput Copy func(*DescribeLaunchConfigurationsInput) DescribeLaunchConfigurationsRequest }
DescribeLaunchConfigurationsRequest is the request type for the DescribeLaunchConfigurations API operation.
func (DescribeLaunchConfigurationsRequest) Send ¶
func (r DescribeLaunchConfigurationsRequest) Send(ctx context.Context) (*DescribeLaunchConfigurationsResponse, error)
Send marshals and sends the DescribeLaunchConfigurations API request.
type DescribeLaunchConfigurationsResponse ¶ added in v0.9.0
type DescribeLaunchConfigurationsResponse struct { *DescribeLaunchConfigurationsOutput // contains filtered or unexported fields }
DescribeLaunchConfigurationsResponse is the response type for the DescribeLaunchConfigurations API operation.
func (*DescribeLaunchConfigurationsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeLaunchConfigurationsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeLaunchConfigurations request.
type DescribeLifecycleHookTypesInput ¶
type DescribeLifecycleHookTypesInput struct {
// contains filtered or unexported fields
}
func (DescribeLifecycleHookTypesInput) String ¶
func (s DescribeLifecycleHookTypesInput) String() string
String returns the string representation
type DescribeLifecycleHookTypesOutput ¶
type DescribeLifecycleHookTypesOutput struct { // The lifecycle hook types. LifecycleHookTypes []string `type:"list"` // contains filtered or unexported fields }
func (DescribeLifecycleHookTypesOutput) String ¶
func (s DescribeLifecycleHookTypesOutput) String() string
String returns the string representation
type DescribeLifecycleHookTypesRequest ¶
type DescribeLifecycleHookTypesRequest struct { *aws.Request Input *DescribeLifecycleHookTypesInput Copy func(*DescribeLifecycleHookTypesInput) DescribeLifecycleHookTypesRequest }
DescribeLifecycleHookTypesRequest is the request type for the DescribeLifecycleHookTypes API operation.
func (DescribeLifecycleHookTypesRequest) Send ¶
func (r DescribeLifecycleHookTypesRequest) Send(ctx context.Context) (*DescribeLifecycleHookTypesResponse, error)
Send marshals and sends the DescribeLifecycleHookTypes API request.
type DescribeLifecycleHookTypesResponse ¶ added in v0.9.0
type DescribeLifecycleHookTypesResponse struct { *DescribeLifecycleHookTypesOutput // contains filtered or unexported fields }
DescribeLifecycleHookTypesResponse is the response type for the DescribeLifecycleHookTypes API operation.
func (*DescribeLifecycleHookTypesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeLifecycleHookTypesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeLifecycleHookTypes request.
type DescribeLifecycleHooksInput ¶
type DescribeLifecycleHooksInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The names of one or more lifecycle hooks. If you omit this parameter, all // lifecycle hooks are described. LifecycleHookNames []string `type:"list"` // contains filtered or unexported fields }
func (DescribeLifecycleHooksInput) String ¶
func (s DescribeLifecycleHooksInput) String() string
String returns the string representation
func (*DescribeLifecycleHooksInput) Validate ¶
func (s *DescribeLifecycleHooksInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeLifecycleHooksOutput ¶
type DescribeLifecycleHooksOutput struct { // The lifecycle hooks for the specified group. LifecycleHooks []LifecycleHook `type:"list"` // contains filtered or unexported fields }
func (DescribeLifecycleHooksOutput) String ¶
func (s DescribeLifecycleHooksOutput) String() string
String returns the string representation
type DescribeLifecycleHooksRequest ¶
type DescribeLifecycleHooksRequest struct { *aws.Request Input *DescribeLifecycleHooksInput Copy func(*DescribeLifecycleHooksInput) DescribeLifecycleHooksRequest }
DescribeLifecycleHooksRequest is the request type for the DescribeLifecycleHooks API operation.
func (DescribeLifecycleHooksRequest) Send ¶
func (r DescribeLifecycleHooksRequest) Send(ctx context.Context) (*DescribeLifecycleHooksResponse, error)
Send marshals and sends the DescribeLifecycleHooks API request.
type DescribeLifecycleHooksResponse ¶ added in v0.9.0
type DescribeLifecycleHooksResponse struct { *DescribeLifecycleHooksOutput // contains filtered or unexported fields }
DescribeLifecycleHooksResponse is the response type for the DescribeLifecycleHooks API operation.
func (*DescribeLifecycleHooksResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeLifecycleHooksResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeLifecycleHooks request.
type DescribeLoadBalancerTargetGroupsInput ¶
type DescribeLoadBalancerTargetGroupsInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The maximum number of items to return with this call. The default value is // 100 and the maximum value is 100. MaxRecords *int64 `type:"integer"` // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` // contains filtered or unexported fields }
func (DescribeLoadBalancerTargetGroupsInput) String ¶
func (s DescribeLoadBalancerTargetGroupsInput) String() string
String returns the string representation
func (*DescribeLoadBalancerTargetGroupsInput) Validate ¶
func (s *DescribeLoadBalancerTargetGroupsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeLoadBalancerTargetGroupsOutput ¶
type DescribeLoadBalancerTargetGroupsOutput struct { // Information about the target groups. LoadBalancerTargetGroups []LoadBalancerTargetGroupState `type:"list"` // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this // string for the NextToken value when requesting the next set of items. This // value is null when there are no more items to return. NextToken *string `type:"string"` // contains filtered or unexported fields }
func (DescribeLoadBalancerTargetGroupsOutput) String ¶
func (s DescribeLoadBalancerTargetGroupsOutput) String() string
String returns the string representation
type DescribeLoadBalancerTargetGroupsRequest ¶
type DescribeLoadBalancerTargetGroupsRequest struct { *aws.Request Input *DescribeLoadBalancerTargetGroupsInput Copy func(*DescribeLoadBalancerTargetGroupsInput) DescribeLoadBalancerTargetGroupsRequest }
DescribeLoadBalancerTargetGroupsRequest is the request type for the DescribeLoadBalancerTargetGroups API operation.
func (DescribeLoadBalancerTargetGroupsRequest) Send ¶
func (r DescribeLoadBalancerTargetGroupsRequest) Send(ctx context.Context) (*DescribeLoadBalancerTargetGroupsResponse, error)
Send marshals and sends the DescribeLoadBalancerTargetGroups API request.
type DescribeLoadBalancerTargetGroupsResponse ¶ added in v0.9.0
type DescribeLoadBalancerTargetGroupsResponse struct { *DescribeLoadBalancerTargetGroupsOutput // contains filtered or unexported fields }
DescribeLoadBalancerTargetGroupsResponse is the response type for the DescribeLoadBalancerTargetGroups API operation.
func (*DescribeLoadBalancerTargetGroupsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeLoadBalancerTargetGroupsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeLoadBalancerTargetGroups request.
type DescribeLoadBalancersInput ¶
type DescribeLoadBalancersInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The maximum number of items to return with this call. The default value is // 100 and the maximum value is 100. MaxRecords *int64 `type:"integer"` // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` // contains filtered or unexported fields }
func (DescribeLoadBalancersInput) String ¶
func (s DescribeLoadBalancersInput) String() string
String returns the string representation
func (*DescribeLoadBalancersInput) Validate ¶
func (s *DescribeLoadBalancersInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeLoadBalancersOutput ¶
type DescribeLoadBalancersOutput struct { // The load balancers. LoadBalancers []LoadBalancerState `type:"list"` // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this // string for the NextToken value when requesting the next set of items. This // value is null when there are no more items to return. NextToken *string `type:"string"` // contains filtered or unexported fields }
func (DescribeLoadBalancersOutput) String ¶
func (s DescribeLoadBalancersOutput) String() string
String returns the string representation
type DescribeLoadBalancersRequest ¶
type DescribeLoadBalancersRequest struct { *aws.Request Input *DescribeLoadBalancersInput Copy func(*DescribeLoadBalancersInput) DescribeLoadBalancersRequest }
DescribeLoadBalancersRequest is the request type for the DescribeLoadBalancers API operation.
func (DescribeLoadBalancersRequest) Send ¶
func (r DescribeLoadBalancersRequest) Send(ctx context.Context) (*DescribeLoadBalancersResponse, error)
Send marshals and sends the DescribeLoadBalancers API request.
type DescribeLoadBalancersResponse ¶ added in v0.9.0
type DescribeLoadBalancersResponse struct { *DescribeLoadBalancersOutput // contains filtered or unexported fields }
DescribeLoadBalancersResponse is the response type for the DescribeLoadBalancers API operation.
func (*DescribeLoadBalancersResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeLoadBalancersResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeLoadBalancers request.
type DescribeMetricCollectionTypesInput ¶
type DescribeMetricCollectionTypesInput struct {
// contains filtered or unexported fields
}
func (DescribeMetricCollectionTypesInput) String ¶
func (s DescribeMetricCollectionTypesInput) String() string
String returns the string representation
type DescribeMetricCollectionTypesOutput ¶
type DescribeMetricCollectionTypesOutput struct { // The granularities for the metrics. Granularities []MetricGranularityType `type:"list"` // One or more metrics. Metrics []MetricCollectionType `type:"list"` // contains filtered or unexported fields }
func (DescribeMetricCollectionTypesOutput) String ¶
func (s DescribeMetricCollectionTypesOutput) String() string
String returns the string representation
type DescribeMetricCollectionTypesRequest ¶
type DescribeMetricCollectionTypesRequest struct { *aws.Request Input *DescribeMetricCollectionTypesInput Copy func(*DescribeMetricCollectionTypesInput) DescribeMetricCollectionTypesRequest }
DescribeMetricCollectionTypesRequest is the request type for the DescribeMetricCollectionTypes API operation.
func (DescribeMetricCollectionTypesRequest) Send ¶
func (r DescribeMetricCollectionTypesRequest) Send(ctx context.Context) (*DescribeMetricCollectionTypesResponse, error)
Send marshals and sends the DescribeMetricCollectionTypes API request.
type DescribeMetricCollectionTypesResponse ¶ added in v0.9.0
type DescribeMetricCollectionTypesResponse struct { *DescribeMetricCollectionTypesOutput // contains filtered or unexported fields }
DescribeMetricCollectionTypesResponse is the response type for the DescribeMetricCollectionTypes API operation.
func (*DescribeMetricCollectionTypesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeMetricCollectionTypesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeMetricCollectionTypes request.
type DescribeNotificationConfigurationsInput ¶
type DescribeNotificationConfigurationsInput struct { // The name of the Auto Scaling group. AutoScalingGroupNames []string `type:"list"` // The maximum number of items to return with this call. The default value is // 50 and the maximum value is 100. MaxRecords *int64 `type:"integer"` // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` // contains filtered or unexported fields }
func (DescribeNotificationConfigurationsInput) String ¶
func (s DescribeNotificationConfigurationsInput) String() string
String returns the string representation
type DescribeNotificationConfigurationsOutput ¶
type DescribeNotificationConfigurationsOutput struct { // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this // string for the NextToken value when requesting the next set of items. This // value is null when there are no more items to return. NextToken *string `type:"string"` // The notification configurations. // // NotificationConfigurations is a required field NotificationConfigurations []NotificationConfiguration `type:"list" required:"true"` // contains filtered or unexported fields }
func (DescribeNotificationConfigurationsOutput) String ¶
func (s DescribeNotificationConfigurationsOutput) String() string
String returns the string representation
type DescribeNotificationConfigurationsPaginator ¶ added in v0.9.0
DescribeNotificationConfigurationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewDescribeNotificationConfigurationsPaginator ¶ added in v0.9.0
func NewDescribeNotificationConfigurationsPaginator(req DescribeNotificationConfigurationsRequest) DescribeNotificationConfigurationsPaginator
NewDescribeNotificationConfigurationsRequestPaginator returns a paginator for DescribeNotificationConfigurations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.DescribeNotificationConfigurationsRequest(input) p := autoscaling.NewDescribeNotificationConfigurationsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*DescribeNotificationConfigurationsPaginator) CurrentPage ¶ added in v0.9.0
func (p *DescribeNotificationConfigurationsPaginator) CurrentPage() *DescribeNotificationConfigurationsOutput
type DescribeNotificationConfigurationsRequest ¶
type DescribeNotificationConfigurationsRequest struct { *aws.Request Input *DescribeNotificationConfigurationsInput Copy func(*DescribeNotificationConfigurationsInput) DescribeNotificationConfigurationsRequest }
DescribeNotificationConfigurationsRequest is the request type for the DescribeNotificationConfigurations API operation.
func (DescribeNotificationConfigurationsRequest) Send ¶
func (r DescribeNotificationConfigurationsRequest) Send(ctx context.Context) (*DescribeNotificationConfigurationsResponse, error)
Send marshals and sends the DescribeNotificationConfigurations API request.
type DescribeNotificationConfigurationsResponse ¶ added in v0.9.0
type DescribeNotificationConfigurationsResponse struct { *DescribeNotificationConfigurationsOutput // contains filtered or unexported fields }
DescribeNotificationConfigurationsResponse is the response type for the DescribeNotificationConfigurations API operation.
func (*DescribeNotificationConfigurationsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeNotificationConfigurationsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeNotificationConfigurations request.
type DescribePoliciesInput ¶
type DescribePoliciesInput struct { // The name of the Auto Scaling group. AutoScalingGroupName *string `min:"1" type:"string"` // The maximum number of items to be returned with each call. The default value // is 50 and the maximum value is 100. MaxRecords *int64 `type:"integer"` // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` // The names of one or more policies. If you omit this parameter, all policies // are described. If a group name is provided, the results are limited to that // group. This list is limited to 50 items. If you specify an unknown policy // name, it is ignored with no error. PolicyNames []string `type:"list"` // One or more policy types. The valid values are SimpleScaling, StepScaling, // and TargetTrackingScaling. PolicyTypes []string `type:"list"` // contains filtered or unexported fields }
func (DescribePoliciesInput) String ¶
func (s DescribePoliciesInput) String() string
String returns the string representation
func (*DescribePoliciesInput) Validate ¶
func (s *DescribePoliciesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribePoliciesOutput ¶
type DescribePoliciesOutput struct { // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this // string for the NextToken value when requesting the next set of items. This // value is null when there are no more items to return. NextToken *string `type:"string"` // The scaling policies. ScalingPolicies []ScalingPolicy `type:"list"` // contains filtered or unexported fields }
func (DescribePoliciesOutput) String ¶
func (s DescribePoliciesOutput) String() string
String returns the string representation
type DescribePoliciesPaginator ¶ added in v0.9.0
DescribePoliciesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewDescribePoliciesPaginator ¶ added in v0.9.0
func NewDescribePoliciesPaginator(req DescribePoliciesRequest) DescribePoliciesPaginator
NewDescribePoliciesRequestPaginator returns a paginator for DescribePolicies. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.DescribePoliciesRequest(input) p := autoscaling.NewDescribePoliciesRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*DescribePoliciesPaginator) CurrentPage ¶ added in v0.9.0
func (p *DescribePoliciesPaginator) CurrentPage() *DescribePoliciesOutput
type DescribePoliciesRequest ¶
type DescribePoliciesRequest struct { *aws.Request Input *DescribePoliciesInput Copy func(*DescribePoliciesInput) DescribePoliciesRequest }
DescribePoliciesRequest is the request type for the DescribePolicies API operation.
func (DescribePoliciesRequest) Send ¶
func (r DescribePoliciesRequest) Send(ctx context.Context) (*DescribePoliciesResponse, error)
Send marshals and sends the DescribePolicies API request.
type DescribePoliciesResponse ¶ added in v0.9.0
type DescribePoliciesResponse struct { *DescribePoliciesOutput // contains filtered or unexported fields }
DescribePoliciesResponse is the response type for the DescribePolicies API operation.
func (*DescribePoliciesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribePoliciesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribePolicies request.
type DescribeScalingActivitiesInput ¶
type DescribeScalingActivitiesInput struct { // The activity IDs of the desired scaling activities. You can specify up to // 50 IDs. If you omit this parameter, all activities for the past six weeks // are described. If unknown activities are requested, they are ignored with // no error. If you specify an Auto Scaling group, the results are limited to // that group. ActivityIds []string `type:"list"` // The name of the Auto Scaling group. AutoScalingGroupName *string `min:"1" type:"string"` // The maximum number of items to return with this call. The default value is // 100 and the maximum value is 100. MaxRecords *int64 `type:"integer"` // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` // contains filtered or unexported fields }
func (DescribeScalingActivitiesInput) String ¶
func (s DescribeScalingActivitiesInput) String() string
String returns the string representation
func (*DescribeScalingActivitiesInput) Validate ¶
func (s *DescribeScalingActivitiesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeScalingActivitiesOutput ¶
type DescribeScalingActivitiesOutput struct { // The scaling activities. Activities are sorted by start time. Activities still // in progress are described first. // // Activities is a required field Activities []Activity `type:"list" required:"true"` // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this // string for the NextToken value when requesting the next set of items. This // value is null when there are no more items to return. NextToken *string `type:"string"` // contains filtered or unexported fields }
func (DescribeScalingActivitiesOutput) String ¶
func (s DescribeScalingActivitiesOutput) String() string
String returns the string representation
type DescribeScalingActivitiesPaginator ¶ added in v0.9.0
DescribeScalingActivitiesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewDescribeScalingActivitiesPaginator ¶ added in v0.9.0
func NewDescribeScalingActivitiesPaginator(req DescribeScalingActivitiesRequest) DescribeScalingActivitiesPaginator
NewDescribeScalingActivitiesRequestPaginator returns a paginator for DescribeScalingActivities. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.DescribeScalingActivitiesRequest(input) p := autoscaling.NewDescribeScalingActivitiesRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*DescribeScalingActivitiesPaginator) CurrentPage ¶ added in v0.9.0
func (p *DescribeScalingActivitiesPaginator) CurrentPage() *DescribeScalingActivitiesOutput
type DescribeScalingActivitiesRequest ¶
type DescribeScalingActivitiesRequest struct { *aws.Request Input *DescribeScalingActivitiesInput Copy func(*DescribeScalingActivitiesInput) DescribeScalingActivitiesRequest }
DescribeScalingActivitiesRequest is the request type for the DescribeScalingActivities API operation.
func (DescribeScalingActivitiesRequest) Send ¶
func (r DescribeScalingActivitiesRequest) Send(ctx context.Context) (*DescribeScalingActivitiesResponse, error)
Send marshals and sends the DescribeScalingActivities API request.
type DescribeScalingActivitiesResponse ¶ added in v0.9.0
type DescribeScalingActivitiesResponse struct { *DescribeScalingActivitiesOutput // contains filtered or unexported fields }
DescribeScalingActivitiesResponse is the response type for the DescribeScalingActivities API operation.
func (*DescribeScalingActivitiesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeScalingActivitiesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeScalingActivities request.
type DescribeScalingProcessTypesInput ¶
type DescribeScalingProcessTypesInput struct {
// contains filtered or unexported fields
}
func (DescribeScalingProcessTypesInput) String ¶
func (s DescribeScalingProcessTypesInput) String() string
String returns the string representation
type DescribeScalingProcessTypesOutput ¶
type DescribeScalingProcessTypesOutput struct { // The names of the process types. Processes []ProcessType `type:"list"` // contains filtered or unexported fields }
func (DescribeScalingProcessTypesOutput) String ¶
func (s DescribeScalingProcessTypesOutput) String() string
String returns the string representation
type DescribeScalingProcessTypesRequest ¶
type DescribeScalingProcessTypesRequest struct { *aws.Request Input *DescribeScalingProcessTypesInput Copy func(*DescribeScalingProcessTypesInput) DescribeScalingProcessTypesRequest }
DescribeScalingProcessTypesRequest is the request type for the DescribeScalingProcessTypes API operation.
func (DescribeScalingProcessTypesRequest) Send ¶
func (r DescribeScalingProcessTypesRequest) Send(ctx context.Context) (*DescribeScalingProcessTypesResponse, error)
Send marshals and sends the DescribeScalingProcessTypes API request.
type DescribeScalingProcessTypesResponse ¶ added in v0.9.0
type DescribeScalingProcessTypesResponse struct { *DescribeScalingProcessTypesOutput // contains filtered or unexported fields }
DescribeScalingProcessTypesResponse is the response type for the DescribeScalingProcessTypes API operation.
func (*DescribeScalingProcessTypesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeScalingProcessTypesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeScalingProcessTypes request.
type DescribeScheduledActionsInput ¶
type DescribeScheduledActionsInput struct { // The name of the Auto Scaling group. AutoScalingGroupName *string `min:"1" type:"string"` // The latest scheduled start time to return. If scheduled action names are // provided, this parameter is ignored. EndTime *time.Time `type:"timestamp"` // The maximum number of items to return with this call. The default value is // 50 and the maximum value is 100. MaxRecords *int64 `type:"integer"` // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` // The names of one or more scheduled actions. You can specify up to 50 actions. // If you omit this parameter, all scheduled actions are described. If you specify // an unknown scheduled action, it is ignored with no error. ScheduledActionNames []string `type:"list"` // The earliest scheduled start time to return. If scheduled action names are // provided, this parameter is ignored. StartTime *time.Time `type:"timestamp"` // contains filtered or unexported fields }
func (DescribeScheduledActionsInput) String ¶
func (s DescribeScheduledActionsInput) String() string
String returns the string representation
func (*DescribeScheduledActionsInput) Validate ¶
func (s *DescribeScheduledActionsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeScheduledActionsOutput ¶
type DescribeScheduledActionsOutput struct { // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this // string for the NextToken value when requesting the next set of items. This // value is null when there are no more items to return. NextToken *string `type:"string"` // The scheduled actions. ScheduledUpdateGroupActions []ScheduledUpdateGroupAction `type:"list"` // contains filtered or unexported fields }
func (DescribeScheduledActionsOutput) String ¶
func (s DescribeScheduledActionsOutput) String() string
String returns the string representation
type DescribeScheduledActionsPaginator ¶ added in v0.9.0
DescribeScheduledActionsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewDescribeScheduledActionsPaginator ¶ added in v0.9.0
func NewDescribeScheduledActionsPaginator(req DescribeScheduledActionsRequest) DescribeScheduledActionsPaginator
NewDescribeScheduledActionsRequestPaginator returns a paginator for DescribeScheduledActions. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.DescribeScheduledActionsRequest(input) p := autoscaling.NewDescribeScheduledActionsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*DescribeScheduledActionsPaginator) CurrentPage ¶ added in v0.9.0
func (p *DescribeScheduledActionsPaginator) CurrentPage() *DescribeScheduledActionsOutput
type DescribeScheduledActionsRequest ¶
type DescribeScheduledActionsRequest struct { *aws.Request Input *DescribeScheduledActionsInput Copy func(*DescribeScheduledActionsInput) DescribeScheduledActionsRequest }
DescribeScheduledActionsRequest is the request type for the DescribeScheduledActions API operation.
func (DescribeScheduledActionsRequest) Send ¶
func (r DescribeScheduledActionsRequest) Send(ctx context.Context) (*DescribeScheduledActionsResponse, error)
Send marshals and sends the DescribeScheduledActions API request.
type DescribeScheduledActionsResponse ¶ added in v0.9.0
type DescribeScheduledActionsResponse struct { *DescribeScheduledActionsOutput // contains filtered or unexported fields }
DescribeScheduledActionsResponse is the response type for the DescribeScheduledActions API operation.
func (*DescribeScheduledActionsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeScheduledActionsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeScheduledActions request.
type DescribeTagsInput ¶
type DescribeTagsInput struct { // One or more filters to scope the tags to return. The maximum number of filters // per filter type (for example, auto-scaling-group) is 1000. Filters []Filter `type:"list"` // The maximum number of items to return with this call. The default value is // 50 and the maximum value is 100. MaxRecords *int64 `type:"integer"` // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` // contains filtered or unexported fields }
func (DescribeTagsInput) String ¶
func (s DescribeTagsInput) String() string
String returns the string representation
type DescribeTagsOutput ¶
type DescribeTagsOutput struct { // A string that indicates that the response contains more items than can be // returned in a single response. To receive additional items, specify this // string for the NextToken value when requesting the next set of items. This // value is null when there are no more items to return. NextToken *string `type:"string"` // One or more tags. Tags []TagDescription `type:"list"` // contains filtered or unexported fields }
func (DescribeTagsOutput) String ¶
func (s DescribeTagsOutput) String() string
String returns the string representation
type DescribeTagsPaginator ¶ added in v0.9.0
DescribeTagsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewDescribeTagsPaginator ¶ added in v0.9.0
func NewDescribeTagsPaginator(req DescribeTagsRequest) DescribeTagsPaginator
NewDescribeTagsRequestPaginator returns a paginator for DescribeTags. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.DescribeTagsRequest(input) p := autoscaling.NewDescribeTagsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*DescribeTagsPaginator) CurrentPage ¶ added in v0.9.0
func (p *DescribeTagsPaginator) CurrentPage() *DescribeTagsOutput
type DescribeTagsRequest ¶
type DescribeTagsRequest struct { *aws.Request Input *DescribeTagsInput Copy func(*DescribeTagsInput) DescribeTagsRequest }
DescribeTagsRequest is the request type for the DescribeTags API operation.
func (DescribeTagsRequest) Send ¶
func (r DescribeTagsRequest) Send(ctx context.Context) (*DescribeTagsResponse, error)
Send marshals and sends the DescribeTags API request.
type DescribeTagsResponse ¶ added in v0.9.0
type DescribeTagsResponse struct { *DescribeTagsOutput // contains filtered or unexported fields }
DescribeTagsResponse is the response type for the DescribeTags API operation.
func (*DescribeTagsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeTagsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeTags request.
type DescribeTerminationPolicyTypesInput ¶
type DescribeTerminationPolicyTypesInput struct {
// contains filtered or unexported fields
}
func (DescribeTerminationPolicyTypesInput) String ¶
func (s DescribeTerminationPolicyTypesInput) String() string
String returns the string representation
type DescribeTerminationPolicyTypesOutput ¶
type DescribeTerminationPolicyTypesOutput struct { // The termination policies supported by Amazon EC2 Auto Scaling: OldestInstance, // OldestLaunchConfiguration, NewestInstance, ClosestToNextInstanceHour, Default, // OldestLaunchTemplate, and AllocationStrategy. TerminationPolicyTypes []string `type:"list"` // contains filtered or unexported fields }
func (DescribeTerminationPolicyTypesOutput) String ¶
func (s DescribeTerminationPolicyTypesOutput) String() string
String returns the string representation
type DescribeTerminationPolicyTypesRequest ¶
type DescribeTerminationPolicyTypesRequest struct { *aws.Request Input *DescribeTerminationPolicyTypesInput Copy func(*DescribeTerminationPolicyTypesInput) DescribeTerminationPolicyTypesRequest }
DescribeTerminationPolicyTypesRequest is the request type for the DescribeTerminationPolicyTypes API operation.
func (DescribeTerminationPolicyTypesRequest) Send ¶
func (r DescribeTerminationPolicyTypesRequest) Send(ctx context.Context) (*DescribeTerminationPolicyTypesResponse, error)
Send marshals and sends the DescribeTerminationPolicyTypes API request.
type DescribeTerminationPolicyTypesResponse ¶ added in v0.9.0
type DescribeTerminationPolicyTypesResponse struct { *DescribeTerminationPolicyTypesOutput // contains filtered or unexported fields }
DescribeTerminationPolicyTypesResponse is the response type for the DescribeTerminationPolicyTypes API operation.
func (*DescribeTerminationPolicyTypesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DescribeTerminationPolicyTypesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeTerminationPolicyTypes request.
type DetachInstancesInput ¶
type DetachInstancesInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The IDs of the instances. You can specify up to 20 instances. InstanceIds []string `type:"list"` // Indicates whether the Auto Scaling group decrements the desired capacity // value by the number of instances detached. // // ShouldDecrementDesiredCapacity is a required field ShouldDecrementDesiredCapacity *bool `type:"boolean" required:"true"` // contains filtered or unexported fields }
func (DetachInstancesInput) String ¶
func (s DetachInstancesInput) String() string
String returns the string representation
func (*DetachInstancesInput) Validate ¶
func (s *DetachInstancesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DetachInstancesOutput ¶
type DetachInstancesOutput struct { // The activities related to detaching the instances from the Auto Scaling group. Activities []Activity `type:"list"` // contains filtered or unexported fields }
func (DetachInstancesOutput) String ¶
func (s DetachInstancesOutput) String() string
String returns the string representation
type DetachInstancesRequest ¶
type DetachInstancesRequest struct { *aws.Request Input *DetachInstancesInput Copy func(*DetachInstancesInput) DetachInstancesRequest }
DetachInstancesRequest is the request type for the DetachInstances API operation.
func (DetachInstancesRequest) Send ¶
func (r DetachInstancesRequest) Send(ctx context.Context) (*DetachInstancesResponse, error)
Send marshals and sends the DetachInstances API request.
type DetachInstancesResponse ¶ added in v0.9.0
type DetachInstancesResponse struct { *DetachInstancesOutput // contains filtered or unexported fields }
DetachInstancesResponse is the response type for the DetachInstances API operation.
func (*DetachInstancesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DetachInstancesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DetachInstances request.
type DetachLoadBalancerTargetGroupsInput ¶
type DetachLoadBalancerTargetGroupsInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The Amazon Resource Names (ARN) of the target groups. You can specify up // to 10 target groups. // // TargetGroupARNs is a required field TargetGroupARNs []string `type:"list" required:"true"` // contains filtered or unexported fields }
func (DetachLoadBalancerTargetGroupsInput) String ¶
func (s DetachLoadBalancerTargetGroupsInput) String() string
String returns the string representation
func (*DetachLoadBalancerTargetGroupsInput) Validate ¶
func (s *DetachLoadBalancerTargetGroupsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DetachLoadBalancerTargetGroupsOutput ¶
type DetachLoadBalancerTargetGroupsOutput struct {
// contains filtered or unexported fields
}
func (DetachLoadBalancerTargetGroupsOutput) String ¶
func (s DetachLoadBalancerTargetGroupsOutput) String() string
String returns the string representation
type DetachLoadBalancerTargetGroupsRequest ¶
type DetachLoadBalancerTargetGroupsRequest struct { *aws.Request Input *DetachLoadBalancerTargetGroupsInput Copy func(*DetachLoadBalancerTargetGroupsInput) DetachLoadBalancerTargetGroupsRequest }
DetachLoadBalancerTargetGroupsRequest is the request type for the DetachLoadBalancerTargetGroups API operation.
func (DetachLoadBalancerTargetGroupsRequest) Send ¶
func (r DetachLoadBalancerTargetGroupsRequest) Send(ctx context.Context) (*DetachLoadBalancerTargetGroupsResponse, error)
Send marshals and sends the DetachLoadBalancerTargetGroups API request.
type DetachLoadBalancerTargetGroupsResponse ¶ added in v0.9.0
type DetachLoadBalancerTargetGroupsResponse struct { *DetachLoadBalancerTargetGroupsOutput // contains filtered or unexported fields }
DetachLoadBalancerTargetGroupsResponse is the response type for the DetachLoadBalancerTargetGroups API operation.
func (*DetachLoadBalancerTargetGroupsResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DetachLoadBalancerTargetGroupsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DetachLoadBalancerTargetGroups request.
type DetachLoadBalancersInput ¶
type DetachLoadBalancersInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The names of the load balancers. You can specify up to 10 load balancers. // // LoadBalancerNames is a required field LoadBalancerNames []string `type:"list" required:"true"` // contains filtered or unexported fields }
func (DetachLoadBalancersInput) String ¶
func (s DetachLoadBalancersInput) String() string
String returns the string representation
func (*DetachLoadBalancersInput) Validate ¶
func (s *DetachLoadBalancersInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DetachLoadBalancersOutput ¶
type DetachLoadBalancersOutput struct {
// contains filtered or unexported fields
}
func (DetachLoadBalancersOutput) String ¶
func (s DetachLoadBalancersOutput) String() string
String returns the string representation
type DetachLoadBalancersRequest ¶
type DetachLoadBalancersRequest struct { *aws.Request Input *DetachLoadBalancersInput Copy func(*DetachLoadBalancersInput) DetachLoadBalancersRequest }
DetachLoadBalancersRequest is the request type for the DetachLoadBalancers API operation.
func (DetachLoadBalancersRequest) Send ¶
func (r DetachLoadBalancersRequest) Send(ctx context.Context) (*DetachLoadBalancersResponse, error)
Send marshals and sends the DetachLoadBalancers API request.
type DetachLoadBalancersResponse ¶ added in v0.9.0
type DetachLoadBalancersResponse struct { *DetachLoadBalancersOutput // contains filtered or unexported fields }
DetachLoadBalancersResponse is the response type for the DetachLoadBalancers API operation.
func (*DetachLoadBalancersResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DetachLoadBalancersResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DetachLoadBalancers request.
type DisableMetricsCollectionInput ¶
type DisableMetricsCollectionInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // One or more of the following metrics. If you omit this parameter, all metrics // are disabled. // // * GroupMinSize // // * GroupMaxSize // // * GroupDesiredCapacity // // * GroupInServiceInstances // // * GroupPendingInstances // // * GroupStandbyInstances // // * GroupTerminatingInstances // // * GroupTotalInstances Metrics []string `type:"list"` // contains filtered or unexported fields }
func (DisableMetricsCollectionInput) String ¶
func (s DisableMetricsCollectionInput) String() string
String returns the string representation
func (*DisableMetricsCollectionInput) Validate ¶
func (s *DisableMetricsCollectionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DisableMetricsCollectionOutput ¶
type DisableMetricsCollectionOutput struct {
// contains filtered or unexported fields
}
func (DisableMetricsCollectionOutput) String ¶
func (s DisableMetricsCollectionOutput) String() string
String returns the string representation
type DisableMetricsCollectionRequest ¶
type DisableMetricsCollectionRequest struct { *aws.Request Input *DisableMetricsCollectionInput Copy func(*DisableMetricsCollectionInput) DisableMetricsCollectionRequest }
DisableMetricsCollectionRequest is the request type for the DisableMetricsCollection API operation.
func (DisableMetricsCollectionRequest) Send ¶
func (r DisableMetricsCollectionRequest) Send(ctx context.Context) (*DisableMetricsCollectionResponse, error)
Send marshals and sends the DisableMetricsCollection API request.
type DisableMetricsCollectionResponse ¶ added in v0.9.0
type DisableMetricsCollectionResponse struct { *DisableMetricsCollectionOutput // contains filtered or unexported fields }
DisableMetricsCollectionResponse is the response type for the DisableMetricsCollection API operation.
func (*DisableMetricsCollectionResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *DisableMetricsCollectionResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DisableMetricsCollection request.
type Ebs ¶
type Ebs struct { // Indicates whether the volume is deleted on instance termination. For Amazon // EC2 Auto Scaling, the default value is true. DeleteOnTermination *bool `type:"boolean"` // Specifies whether the volume should be encrypted. Encrypted EBS volumes can // only be attached to instances that support Amazon EBS encryption. For more // information, see Supported Instance Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#EBSEncryption_supported_instances). // If your AMI uses encrypted volumes, you can also only launch it on supported // instance types. // // If you are creating a volume from a snapshot, you cannot specify an encryption // value. Volumes that are created from encrypted snapshots are automatically // encrypted, and volumes that are created from unencrypted snapshots are automatically // unencrypted. By default, encrypted snapshots use the AWS managed CMK that // is used for EBS encryption, but you can specify a custom CMK when you create // the snapshot. The ability to encrypt a snapshot during copying also allows // you to apply a new CMK to an already-encrypted snapshot. Volumes restored // from the resulting copy are only accessible using the new CMK. // // Enabling encryption by default (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#encryption-by-default) // results in all EBS volumes being encrypted with the AWS managed CMK or a // customer managed CMK, whether or not the snapshot was encrypted. // // For more information, see Using Encryption with EBS-Backed AMIs (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html) // in the Amazon EC2 User Guide for Linux Instances and Required CMK Key Policy // for Use with Encrypted Volumes (https://docs.aws.amazon.com/autoscaling/ec2/userguide/key-policy-requirements-EBS-encryption.html) // in the Amazon EC2 Auto Scaling User Guide. Encrypted *bool `type:"boolean"` // The number of I/O operations per second (IOPS) to provision for the volume. // The maximum ratio of IOPS to volume size (in GiB) is 50:1. For more information, // see Amazon EBS Volume Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) // in the Amazon EC2 User Guide for Linux Instances. // // Conditional: This parameter is required when the volume type is io1. (Not // used with standard, gp2, st1, or sc1 volumes.) Iops *int64 `min:"100" type:"integer"` // The snapshot ID of the volume to use. // // Conditional: This parameter is optional if you specify a volume size. If // you specify both SnapshotId and VolumeSize, VolumeSize must be equal or greater // than the size of the snapshot. SnapshotId *string `min:"1" type:"string"` // The volume size, in Gibibytes (GiB). // // This can be a number from 1-1,024 for standard, 4-16,384 for io1, 1-16,384 // for gp2, and 500-16,384 for st1 and sc1. If you specify a snapshot, the volume // size must be equal to or larger than the snapshot size. // // Default: If you create a volume from a snapshot and you don't specify a volume // size, the default is the snapshot size. // // At least one of VolumeSize or SnapshotId is required. VolumeSize *int64 `min:"1" type:"integer"` // The volume type, which can be standard for Magnetic, io1 for Provisioned // IOPS SSD, gp2 for General Purpose SSD, st1 for Throughput Optimized HDD, // or sc1 for Cold HDD. For more information, see Amazon EBS Volume Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) // in the Amazon EC2 User Guide for Linux Instances. // // Valid values: standard | io1 | gp2 | st1 | sc1 VolumeType *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes an Amazon EBS volume. Used in combination with BlockDeviceMapping.
type EnableMetricsCollectionInput ¶
type EnableMetricsCollectionInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The granularity to associate with the metrics to collect. The only valid // value is 1Minute. // // Granularity is a required field Granularity *string `min:"1" type:"string" required:"true"` // One or more of the following metrics. If you omit this parameter, all metrics // are enabled. // // * GroupMinSize // // * GroupMaxSize // // * GroupDesiredCapacity // // * GroupInServiceInstances // // * GroupPendingInstances // // * GroupStandbyInstances // // * GroupTerminatingInstances // // * GroupTotalInstances Metrics []string `type:"list"` // contains filtered or unexported fields }
func (EnableMetricsCollectionInput) String ¶
func (s EnableMetricsCollectionInput) String() string
String returns the string representation
func (*EnableMetricsCollectionInput) Validate ¶
func (s *EnableMetricsCollectionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type EnableMetricsCollectionOutput ¶
type EnableMetricsCollectionOutput struct {
// contains filtered or unexported fields
}
func (EnableMetricsCollectionOutput) String ¶
func (s EnableMetricsCollectionOutput) String() string
String returns the string representation
type EnableMetricsCollectionRequest ¶
type EnableMetricsCollectionRequest struct { *aws.Request Input *EnableMetricsCollectionInput Copy func(*EnableMetricsCollectionInput) EnableMetricsCollectionRequest }
EnableMetricsCollectionRequest is the request type for the EnableMetricsCollection API operation.
func (EnableMetricsCollectionRequest) Send ¶
func (r EnableMetricsCollectionRequest) Send(ctx context.Context) (*EnableMetricsCollectionResponse, error)
Send marshals and sends the EnableMetricsCollection API request.
type EnableMetricsCollectionResponse ¶ added in v0.9.0
type EnableMetricsCollectionResponse struct { *EnableMetricsCollectionOutput // contains filtered or unexported fields }
EnableMetricsCollectionResponse is the response type for the EnableMetricsCollection API operation.
func (*EnableMetricsCollectionResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *EnableMetricsCollectionResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the EnableMetricsCollection request.
type EnabledMetric ¶
type EnabledMetric struct { // The granularity of the metric. The only valid value is 1Minute. Granularity *string `min:"1" type:"string"` // One of the following metrics: // // * GroupMinSize // // * GroupMaxSize // // * GroupDesiredCapacity // // * GroupInServiceInstances // // * GroupPendingInstances // // * GroupStandbyInstances // // * GroupTerminatingInstances // // * GroupTotalInstances Metric *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes an enabled metric.
func (EnabledMetric) String ¶
func (s EnabledMetric) String() string
String returns the string representation
type EnterStandbyInput ¶
type EnterStandbyInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The IDs of the instances. You can specify up to 20 instances. InstanceIds []string `type:"list"` // Indicates whether to decrement the desired capacity of the Auto Scaling group // by the number of instances moved to Standby mode. // // ShouldDecrementDesiredCapacity is a required field ShouldDecrementDesiredCapacity *bool `type:"boolean" required:"true"` // contains filtered or unexported fields }
func (EnterStandbyInput) String ¶
func (s EnterStandbyInput) String() string
String returns the string representation
func (*EnterStandbyInput) Validate ¶
func (s *EnterStandbyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type EnterStandbyOutput ¶
type EnterStandbyOutput struct { // The activities related to moving instances into Standby mode. Activities []Activity `type:"list"` // contains filtered or unexported fields }
func (EnterStandbyOutput) String ¶
func (s EnterStandbyOutput) String() string
String returns the string representation
type EnterStandbyRequest ¶
type EnterStandbyRequest struct { *aws.Request Input *EnterStandbyInput Copy func(*EnterStandbyInput) EnterStandbyRequest }
EnterStandbyRequest is the request type for the EnterStandby API operation.
func (EnterStandbyRequest) Send ¶
func (r EnterStandbyRequest) Send(ctx context.Context) (*EnterStandbyResponse, error)
Send marshals and sends the EnterStandby API request.
type EnterStandbyResponse ¶ added in v0.9.0
type EnterStandbyResponse struct { *EnterStandbyOutput // contains filtered or unexported fields }
EnterStandbyResponse is the response type for the EnterStandby API operation.
func (*EnterStandbyResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *EnterStandbyResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the EnterStandby request.
type ExecutePolicyInput ¶
type ExecutePolicyInput struct { // The name of the Auto Scaling group. AutoScalingGroupName *string `min:"1" type:"string"` // The breach threshold for the alarm. // // Conditional: This parameter is required if the policy type is StepScaling // and not supported otherwise. BreachThreshold *float64 `type:"double"` // Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to // complete before executing the policy. // // This parameter is not supported if the policy type is StepScaling or TargetTrackingScaling. // // For more information, see Scaling Cooldowns (https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html) // in the Amazon EC2 Auto Scaling User Guide. HonorCooldown *bool `type:"boolean"` // The metric value to compare to BreachThreshold. This enables you to execute // a policy of type StepScaling and determine which step adjustment to use. // For example, if the breach threshold is 50 and you want to use a step adjustment // with a lower bound of 0 and an upper bound of 10, you can set the metric // value to 59. // // If you specify a metric value that doesn't correspond to a step adjustment // for the policy, the call returns an error. // // Conditional: This parameter is required if the policy type is StepScaling // and not supported otherwise. MetricValue *float64 `type:"double"` // The name or ARN of the policy. // // PolicyName is a required field PolicyName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (ExecutePolicyInput) String ¶
func (s ExecutePolicyInput) String() string
String returns the string representation
func (*ExecutePolicyInput) Validate ¶
func (s *ExecutePolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ExecutePolicyOutput ¶
type ExecutePolicyOutput struct {
// contains filtered or unexported fields
}
func (ExecutePolicyOutput) String ¶
func (s ExecutePolicyOutput) String() string
String returns the string representation
type ExecutePolicyRequest ¶
type ExecutePolicyRequest struct { *aws.Request Input *ExecutePolicyInput Copy func(*ExecutePolicyInput) ExecutePolicyRequest }
ExecutePolicyRequest is the request type for the ExecutePolicy API operation.
func (ExecutePolicyRequest) Send ¶
func (r ExecutePolicyRequest) Send(ctx context.Context) (*ExecutePolicyResponse, error)
Send marshals and sends the ExecutePolicy API request.
type ExecutePolicyResponse ¶ added in v0.9.0
type ExecutePolicyResponse struct { *ExecutePolicyOutput // contains filtered or unexported fields }
ExecutePolicyResponse is the response type for the ExecutePolicy API operation.
func (*ExecutePolicyResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ExecutePolicyResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ExecutePolicy request.
type ExitStandbyInput ¶
type ExitStandbyInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The IDs of the instances. You can specify up to 20 instances. InstanceIds []string `type:"list"` // contains filtered or unexported fields }
func (ExitStandbyInput) String ¶
func (s ExitStandbyInput) String() string
String returns the string representation
func (*ExitStandbyInput) Validate ¶
func (s *ExitStandbyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ExitStandbyOutput ¶
type ExitStandbyOutput struct { // The activities related to moving instances out of Standby mode. Activities []Activity `type:"list"` // contains filtered or unexported fields }
func (ExitStandbyOutput) String ¶
func (s ExitStandbyOutput) String() string
String returns the string representation
type ExitStandbyRequest ¶
type ExitStandbyRequest struct { *aws.Request Input *ExitStandbyInput Copy func(*ExitStandbyInput) ExitStandbyRequest }
ExitStandbyRequest is the request type for the ExitStandby API operation.
func (ExitStandbyRequest) Send ¶
func (r ExitStandbyRequest) Send(ctx context.Context) (*ExitStandbyResponse, error)
Send marshals and sends the ExitStandby API request.
type ExitStandbyResponse ¶ added in v0.9.0
type ExitStandbyResponse struct { *ExitStandbyOutput // contains filtered or unexported fields }
ExitStandbyResponse is the response type for the ExitStandby API operation.
func (*ExitStandbyResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ExitStandbyResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ExitStandby request.
type FailedScheduledUpdateGroupActionRequest ¶ added in v0.5.0
type FailedScheduledUpdateGroupActionRequest struct { // The error code. ErrorCode *string `min:"1" type:"string"` // The error message accompanying the error code. ErrorMessage *string `type:"string"` // The name of the scheduled action. // // ScheduledActionName is a required field ScheduledActionName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Describes a scheduled action that could not be created, updated, or deleted.
func (FailedScheduledUpdateGroupActionRequest) String ¶ added in v0.5.0
func (s FailedScheduledUpdateGroupActionRequest) String() string
String returns the string representation
type Filter ¶
type Filter struct { // The name of the filter. The valid values are: "auto-scaling-group", "key", // "value", and "propagate-at-launch". Name *string `type:"string"` // The value of the filter. Values []string `type:"list"` // contains filtered or unexported fields }
Describes a filter.
type Instance ¶
type Instance struct { // The Availability Zone in which the instance is running. // // AvailabilityZone is a required field AvailabilityZone *string `min:"1" type:"string" required:"true"` // The last reported health status of the instance. "Healthy" means that the // instance is healthy and should remain in service. "Unhealthy" means that // the instance is unhealthy and that Amazon EC2 Auto Scaling should terminate // and replace it. // // HealthStatus is a required field HealthStatus *string `min:"1" type:"string" required:"true"` // The ID of the instance. // // InstanceId is a required field InstanceId *string `min:"1" type:"string" required:"true"` // The launch configuration associated with the instance. LaunchConfigurationName *string `min:"1" type:"string"` // The launch template for the instance. LaunchTemplate *LaunchTemplateSpecification `type:"structure"` // A description of the current lifecycle state. The Quarantined state is not // used. // // LifecycleState is a required field LifecycleState LifecycleState `type:"string" required:"true" enum:"true"` // Indicates whether the instance is protected from termination by Amazon EC2 // Auto Scaling when scaling in. // // ProtectedFromScaleIn is a required field ProtectedFromScaleIn *bool `type:"boolean" required:"true"` // contains filtered or unexported fields }
Describes an EC2 instance.
type InstanceMonitoring ¶
type InstanceMonitoring struct { // If true, detailed monitoring is enabled. Otherwise, basic monitoring is enabled. Enabled *bool `type:"boolean"` // contains filtered or unexported fields }
Describes whether detailed monitoring is enabled for the Auto Scaling instances.
func (InstanceMonitoring) String ¶
func (s InstanceMonitoring) String() string
String returns the string representation
type InstancesDistribution ¶ added in v0.6.0
type InstancesDistribution struct { // Indicates how to allocate instance types to fulfill On-Demand capacity. // // The only valid value is prioritized, which is also the default value. This // strategy uses the order of instance type overrides for the LaunchTemplate // to define the launch priority of each instance type. The first instance type // in the array is prioritized higher than the last. If all your On-Demand capacity // cannot be fulfilled using your highest priority instance, then the Auto Scaling // groups launches the remaining capacity using the second priority instance // type, and so on. OnDemandAllocationStrategy *string `type:"string"` // The minimum amount of the Auto Scaling group's capacity that must be fulfilled // by On-Demand Instances. This base portion is provisioned first as your group // scales. // // The default value is 0. If you leave this parameter set to 0, On-Demand Instances // are launched as a percentage of the Auto Scaling group's desired capacity, // per the OnDemandPercentageAboveBaseCapacity setting. OnDemandBaseCapacity *int64 `type:"integer"` // Controls the percentages of On-Demand Instances and Spot Instances for your // additional capacity beyond OnDemandBaseCapacity. The range is 0–100. // // The default value is 100. If you leave this parameter set to 100, the percentages // are 100% for On-Demand Instances and 0% for Spot Instances. OnDemandPercentageAboveBaseCapacity *int64 `type:"integer"` // Indicates how to allocate instances across Spot Instance pools. // // If the allocation strategy is lowest-price, the Auto Scaling group launches // instances using the Spot pools with the lowest price, and evenly allocates // your instances across the number of Spot pools that you specify. If the allocation // strategy is capacity-optimized, the Auto Scaling group launches instances // using Spot pools that are optimally chosen based on the available Spot capacity. // // The default Spot allocation strategy for calls that you make through the // API, the AWS CLI, or the AWS SDKs is lowest-price. The default Spot allocation // strategy for the AWS Management Console is capacity-optimized. // // Valid values: lowest-price | capacity-optimized SpotAllocationStrategy *string `type:"string"` // The number of Spot Instance pools across which to allocate your Spot Instances. // The Spot pools are determined from the different instance types in the Overrides // array of LaunchTemplate. The range is 1–20. The default value is 2. // // Valid only when the Spot allocation strategy is lowest-price. SpotInstancePools *int64 `type:"integer"` // The maximum price per unit hour that you are willing to pay for a Spot Instance. // If you leave the value of this parameter blank (which is the default), the // maximum Spot price is set at the On-Demand price. // // To remove a value that you previously set, include the parameter but leave // the value blank. SpotMaxPrice *string `type:"string"` // contains filtered or unexported fields }
Describes an instances distribution for an Auto Scaling group with MixedInstancesPolicy.
The instances distribution specifies the distribution of On-Demand Instances and Spot Instances, the maximum price to pay for Spot Instances, and how the Auto Scaling group allocates instance types to fulfill On-Demand and Spot capacity.
func (InstancesDistribution) String ¶ added in v0.6.0
func (s InstancesDistribution) String() string
String returns the string representation
type LaunchConfiguration ¶
type LaunchConfiguration struct { // For Auto Scaling groups that are running in a VPC, specifies whether to assign // a public IP address to the group's instances. // // For more information, see Launching Auto Scaling Instances in a VPC (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html) // in the Amazon EC2 Auto Scaling User Guide. AssociatePublicIpAddress *bool `type:"boolean"` // A block device mapping, which specifies the block devices for the instance. // // For more information, see Block Device Mapping (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html) // in the Amazon EC2 User Guide for Linux Instances. BlockDeviceMappings []BlockDeviceMapping `type:"list"` // The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. // // For more information, see ClassicLink (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) // in the Amazon EC2 User Guide for Linux Instances and Linking EC2-Classic // Instances to a VPC (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink) // in the Amazon EC2 Auto Scaling User Guide. ClassicLinkVPCId *string `min:"1" type:"string"` // The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId. // // For more information, see ClassicLink (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) // in the Amazon EC2 User Guide for Linux Instances and Linking EC2-Classic // Instances to a VPC (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink) // in the Amazon EC2 Auto Scaling User Guide. ClassicLinkVPCSecurityGroups []string `type:"list"` // The creation date and time for the launch configuration. // // CreatedTime is a required field CreatedTime *time.Time `type:"timestamp" required:"true"` // Specifies whether the launch configuration is optimized for EBS I/O (true) // or not (false). // // For more information, see Amazon EBS-Optimized Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html) // in the Amazon EC2 User Guide for Linux Instances. EbsOptimized *bool `type:"boolean"` // The name or the Amazon Resource Name (ARN) of the instance profile associated // with the IAM role for the instance. The instance profile contains the IAM // role. // // For more information, see IAM Role for Applications That Run on Amazon EC2 // Instances (https://docs.aws.amazon.com/autoscaling/ec2/userguide/us-iam-role.html) // in the Amazon EC2 Auto Scaling User Guide. IamInstanceProfile *string `min:"1" type:"string"` // The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. // // For more information, see Finding an AMI (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html) // in the Amazon EC2 User Guide for Linux Instances. // // ImageId is a required field ImageId *string `min:"1" type:"string" required:"true"` // Controls whether instances in this group are launched with detailed (true) // or basic (false) monitoring. // // For more information, see Configure Monitoring for Auto Scaling Instances // (https://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-monitoring.html#enable-as-instance-metrics) // in the Amazon EC2 Auto Scaling User Guide. InstanceMonitoring *InstanceMonitoring `type:"structure"` // The instance type for the instances. // // For information about available instance types, see Available Instance Types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes) // in the Amazon EC2 User Guide for Linux Instances. // // InstanceType is a required field InstanceType *string `min:"1" type:"string" required:"true"` // The ID of the kernel associated with the AMI. KernelId *string `min:"1" type:"string"` // The name of the key pair. // // For more information, see Amazon EC2 Key Pairs (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) // in the Amazon EC2 User Guide for Linux Instances. KeyName *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the launch configuration. LaunchConfigurationARN *string `min:"1" type:"string"` // The name of the launch configuration. // // LaunchConfigurationName is a required field LaunchConfigurationName *string `min:"1" type:"string" required:"true"` // The tenancy of the instance, either default or dedicated. An instance with // dedicated tenancy runs on isolated, single-tenant hardware and can only be // launched into a VPC. // // For more information, see Instance Placement Tenancy (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy) // in the Amazon EC2 Auto Scaling User Guide. PlacementTenancy *string `min:"1" type:"string"` // The ID of the RAM disk associated with the AMI. RamdiskId *string `min:"1" type:"string"` // A list that contains the security groups to assign to the instances in the // Auto Scaling group. // // For more information, see Security Groups for Your VPC (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) // in the Amazon Virtual Private Cloud User Guide. SecurityGroups []string `type:"list"` // The maximum hourly price to be paid for any Spot Instance launched to fulfill // the request. Spot Instances are launched when the price you specify exceeds // the current Spot market price. // // For more information, see Launching Spot Instances in Your Auto Scaling Group // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-launch-spot-instances.html) // in the Amazon EC2 Auto Scaling User Guide. SpotPrice *string `min:"1" type:"string"` // The Base64-encoded user data to make available to the launched EC2 instances. // // For more information, see Instance Metadata and User Data (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) // in the Amazon EC2 User Guide for Linux Instances. UserData *string `type:"string"` // contains filtered or unexported fields }
Describes a launch configuration.
func (LaunchConfiguration) String ¶
func (s LaunchConfiguration) String() string
String returns the string representation
type LaunchTemplate ¶ added in v0.6.0
type LaunchTemplate struct { // The launch template to use. You must specify either the launch template ID // or launch template name in the request. LaunchTemplateSpecification *LaunchTemplateSpecification `type:"structure"` // Any parameters that you specify override the same parameters in the launch // template. Currently, the only supported override is instance type. You must // specify between 2 and 20 overrides. Overrides []LaunchTemplateOverrides `type:"list"` // contains filtered or unexported fields }
Describes a launch template and overrides.
The overrides are used to override the instance type specified by the launch template with multiple instance types that can be used to launch On-Demand Instances and Spot Instances.
func (LaunchTemplate) String ¶ added in v0.6.0
func (s LaunchTemplate) String() string
String returns the string representation
func (*LaunchTemplate) Validate ¶ added in v0.6.0
func (s *LaunchTemplate) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type LaunchTemplateOverrides ¶ added in v0.6.0
type LaunchTemplateOverrides struct { // The instance type. // // For information about available instance types, see Available Instance Types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes) // in the Amazon Elastic Compute Cloud User Guide. InstanceType *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes an override for a launch template.
func (LaunchTemplateOverrides) String ¶ added in v0.6.0
func (s LaunchTemplateOverrides) String() string
String returns the string representation
func (*LaunchTemplateOverrides) Validate ¶ added in v0.6.0
func (s *LaunchTemplateOverrides) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type LaunchTemplateSpecification ¶ added in v0.2.0
type LaunchTemplateSpecification struct { // The ID of the launch template. You must specify either a template ID or a // template name. LaunchTemplateId *string `min:"1" type:"string"` // The name of the launch template. You must specify either a template name // or a template ID. LaunchTemplateName *string `min:"3" type:"string"` // The version number, $Latest, or $Default. If the value is $Latest, Amazon // EC2 Auto Scaling selects the latest version of the launch template when launching // instances. If the value is $Default, Amazon EC2 Auto Scaling selects the // default version of the launch template when launching instances. The default // value is $Default. Version *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes a launch template and the launch template version.
The launch template that is specified must be configured for use with an Auto Scaling group. For more information, see Creating a Launch Template for an Auto Scaling Group (https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html) in the Amazon EC2 Auto Scaling User Guide.
func (LaunchTemplateSpecification) String ¶ added in v0.2.0
func (s LaunchTemplateSpecification) String() string
String returns the string representation
func (*LaunchTemplateSpecification) Validate ¶ added in v0.2.0
func (s *LaunchTemplateSpecification) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type LifecycleHook ¶
type LifecycleHook struct { // The name of the Auto Scaling group for the lifecycle hook. AutoScalingGroupName *string `min:"1" type:"string"` // Defines the action the Auto Scaling group should take when the lifecycle // hook timeout elapses or if an unexpected failure occurs. The possible values // are CONTINUE and ABANDON. DefaultResult *string `type:"string"` // The maximum time, in seconds, that an instance can remain in a Pending:Wait // or Terminating:Wait state. The maximum is 172800 seconds (48 hours) or 100 // times HeartbeatTimeout, whichever is smaller. GlobalTimeout *int64 `type:"integer"` // The maximum time, in seconds, that can elapse before the lifecycle hook times // out. If the lifecycle hook times out, Amazon EC2 Auto Scaling performs the // action that you specified in the DefaultResult parameter. HeartbeatTimeout *int64 `type:"integer"` // The name of the lifecycle hook. LifecycleHookName *string `min:"1" type:"string"` // The state of the EC2 instance to which to attach the lifecycle hook. The // following are possible values: // // * autoscaling:EC2_INSTANCE_LAUNCHING // // * autoscaling:EC2_INSTANCE_TERMINATING LifecycleTransition *string `type:"string"` // Additional information that is included any time Amazon EC2 Auto Scaling // sends a message to the notification target. NotificationMetadata *string `min:"1" type:"string"` // The ARN of the target that Amazon EC2 Auto Scaling sends notifications to // when an instance is in the transition state for the lifecycle hook. The notification // target can be either an SQS queue or an SNS topic. NotificationTargetARN *string `min:"1" type:"string"` // The ARN of the IAM role that allows the Auto Scaling group to publish to // the specified notification target. RoleARN *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes a lifecycle hook, which tells Amazon EC2 Auto Scaling that you want to perform an action whenever it launches instances or terminates instances. Used in response to DescribeLifecycleHooks.
func (LifecycleHook) String ¶
func (s LifecycleHook) String() string
String returns the string representation
type LifecycleHookSpecification ¶
type LifecycleHookSpecification struct { // Defines the action the Auto Scaling group should take when the lifecycle // hook timeout elapses or if an unexpected failure occurs. The valid values // are CONTINUE and ABANDON. The default value is ABANDON. DefaultResult *string `type:"string"` // The maximum time, in seconds, that can elapse before the lifecycle hook times // out. // // If the lifecycle hook times out, Amazon EC2 Auto Scaling performs the action // that you specified in the DefaultResult parameter. You can prevent the lifecycle // hook from timing out by calling RecordLifecycleActionHeartbeat. HeartbeatTimeout *int64 `type:"integer"` // The name of the lifecycle hook. // // LifecycleHookName is a required field LifecycleHookName *string `min:"1" type:"string" required:"true"` // The state of the EC2 instance to which you want to attach the lifecycle hook. // The valid values are: // // * autoscaling:EC2_INSTANCE_LAUNCHING // // * autoscaling:EC2_INSTANCE_TERMINATING // // LifecycleTransition is a required field LifecycleTransition *string `type:"string" required:"true"` // Additional information that you want to include any time Amazon EC2 Auto // Scaling sends a message to the notification target. NotificationMetadata *string `min:"1" type:"string"` // The ARN of the target that Amazon EC2 Auto Scaling sends notifications to // when an instance is in the transition state for the lifecycle hook. The notification // target can be either an SQS queue or an SNS topic. NotificationTargetARN *string `type:"string"` // The ARN of the IAM role that allows the Auto Scaling group to publish to // the specified notification target, for example, an Amazon SNS topic or an // Amazon SQS queue. RoleARN *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes a lifecycle hook. Used in combination with CreateAutoScalingGroup.
A lifecycle hook tells Amazon EC2 Auto Scaling to perform an action on an instance when the instance launches (before it is put into service) or as the instance terminates (before it is fully terminated).
This step is a part of the procedure for creating a lifecycle hook for an Auto Scaling group:
(Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates instances.
(Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish lifecycle notifications to the target.
Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state using RecordLifecycleActionHeartbeat.
If you finish before the timeout period ends, complete the lifecycle action using CompleteLifecycleAction.
For more information, see Amazon EC2 Auto Scaling Lifecycle Hooks (https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html) in the Amazon EC2 Auto Scaling User Guide.
You can view the lifecycle hooks for an Auto Scaling group using DescribeLifecycleHooks. You can modify an existing lifecycle hook or create new lifecycle hooks using PutLifecycleHook. If you are no longer using a lifecycle hook, you can delete it using DeleteLifecycleHook.
func (LifecycleHookSpecification) String ¶
func (s LifecycleHookSpecification) String() string
String returns the string representation
func (*LifecycleHookSpecification) Validate ¶
func (s *LifecycleHookSpecification) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type LifecycleState ¶
type LifecycleState string
const ( LifecycleStatePending LifecycleState = "Pending" LifecycleStatePendingWait LifecycleState = "Pending:Wait" LifecycleStatePendingProceed LifecycleState = "Pending:Proceed" LifecycleStateQuarantined LifecycleState = "Quarantined" LifecycleStateInService LifecycleState = "InService" LifecycleStateTerminating LifecycleState = "Terminating" LifecycleStateTerminatingWait LifecycleState = "Terminating:Wait" LifecycleStateTerminatingProceed LifecycleState = "Terminating:Proceed" LifecycleStateTerminated LifecycleState = "Terminated" LifecycleStateDetaching LifecycleState = "Detaching" LifecycleStateDetached LifecycleState = "Detached" LifecycleStateEnteringStandby LifecycleState = "EnteringStandby" LifecycleStateStandby LifecycleState = "Standby" )
Enum values for LifecycleState
func (LifecycleState) MarshalValue ¶ added in v0.3.0
func (enum LifecycleState) MarshalValue() (string, error)
func (LifecycleState) MarshalValueBuf ¶ added in v0.3.0
func (enum LifecycleState) MarshalValueBuf(b []byte) ([]byte, error)
type LoadBalancerState ¶
type LoadBalancerState struct { // The name of the load balancer. LoadBalancerName *string `min:"1" type:"string"` // One of the following load balancer states: // // * Adding - The instances in the group are being registered with the load // balancer. // // * Added - All instances in the group are registered with the load balancer. // // * InService - At least one instance in the group passed an ELB health // check. // // * Removing - The instances in the group are being deregistered from the // load balancer. If connection draining is enabled, Elastic Load Balancing // waits for in-flight requests to complete before deregistering the instances. // // * Removed - All instances in the group are deregistered from the load // balancer. State *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes the state of a Classic Load Balancer.
If you specify a load balancer when creating the Auto Scaling group, the state of the load balancer is InService.
If you attach a load balancer to an existing Auto Scaling group, the initial state is Adding. The state transitions to Added after all instances in the group are registered with the load balancer. If Elastic Load Balancing health checks are enabled for the load balancer, the state transitions to InService after at least one instance in the group passes the health check. If EC2 health checks are enabled instead, the load balancer remains in the Added state.
func (LoadBalancerState) String ¶
func (s LoadBalancerState) String() string
String returns the string representation
type LoadBalancerTargetGroupState ¶
type LoadBalancerTargetGroupState struct { // The Amazon Resource Name (ARN) of the target group. LoadBalancerTargetGroupARN *string `min:"1" type:"string"` // The state of the target group. // // * Adding - The Auto Scaling instances are being registered with the target // group. // // * Added - All Auto Scaling instances are registered with the target group. // // * InService - At least one Auto Scaling instance passed an ELB health // check. // // * Removing - The Auto Scaling instances are being deregistered from the // target group. If connection draining is enabled, Elastic Load Balancing // waits for in-flight requests to complete before deregistering the instances. // // * Removed - All Auto Scaling instances are deregistered from the target // group. State *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes the state of a target group.
If you attach a target group to an existing Auto Scaling group, the initial state is Adding. The state transitions to Added after all Auto Scaling instances are registered with the target group. If Elastic Load Balancing health checks are enabled, the state transitions to InService after at least one Auto Scaling instance passes the health check. If EC2 health checks are enabled instead, the target group remains in the Added state.
func (LoadBalancerTargetGroupState) String ¶
func (s LoadBalancerTargetGroupState) String() string
String returns the string representation
type MetricCollectionType ¶
type MetricCollectionType struct { // One of the following metrics: // // * GroupMinSize // // * GroupMaxSize // // * GroupDesiredCapacity // // * GroupInServiceInstances // // * GroupPendingInstances // // * GroupStandbyInstances // // * GroupTerminatingInstances // // * GroupTotalInstances Metric *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes a metric.
func (MetricCollectionType) String ¶
func (s MetricCollectionType) String() string
String returns the string representation
type MetricDimension ¶
type MetricDimension struct { // The name of the dimension. // // Name is a required field Name *string `type:"string" required:"true"` // The value of the dimension. // // Value is a required field Value *string `type:"string" required:"true"` // contains filtered or unexported fields }
Describes the dimension of a metric.
func (MetricDimension) String ¶
func (s MetricDimension) String() string
String returns the string representation
func (*MetricDimension) Validate ¶
func (s *MetricDimension) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type MetricGranularityType ¶
type MetricGranularityType struct { // The granularity. The only valid value is 1Minute. Granularity *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes a granularity of a metric.
func (MetricGranularityType) String ¶
func (s MetricGranularityType) String() string
String returns the string representation
type MetricStatistic ¶
type MetricStatistic string
const ( MetricStatisticAverage MetricStatistic = "Average" MetricStatisticMinimum MetricStatistic = "Minimum" MetricStatisticMaximum MetricStatistic = "Maximum" MetricStatisticSampleCount MetricStatistic = "SampleCount" MetricStatisticSum MetricStatistic = "Sum" )
Enum values for MetricStatistic
func (MetricStatistic) MarshalValue ¶ added in v0.3.0
func (enum MetricStatistic) MarshalValue() (string, error)
func (MetricStatistic) MarshalValueBuf ¶ added in v0.3.0
func (enum MetricStatistic) MarshalValueBuf(b []byte) ([]byte, error)
type MetricType ¶
type MetricType string
const ( MetricTypeAsgaverageCpuutilization MetricType = "ASGAverageCPUUtilization" MetricTypeAsgaverageNetworkIn MetricType = "ASGAverageNetworkIn" MetricTypeAsgaverageNetworkOut MetricType = "ASGAverageNetworkOut" MetricTypeAlbrequestCountPerTarget MetricType = "ALBRequestCountPerTarget" )
Enum values for MetricType
func (MetricType) MarshalValue ¶ added in v0.3.0
func (enum MetricType) MarshalValue() (string, error)
func (MetricType) MarshalValueBuf ¶ added in v0.3.0
func (enum MetricType) MarshalValueBuf(b []byte) ([]byte, error)
type MixedInstancesPolicy ¶ added in v0.6.0
type MixedInstancesPolicy struct { // The instances distribution to use. // // If you leave this parameter unspecified when creating a mixed instances policy, // the default values are used. InstancesDistribution *InstancesDistribution `type:"structure"` // The launch template and instance types (overrides). // // This parameter must be specified when creating a mixed instances policy. LaunchTemplate *LaunchTemplate `type:"structure"` // contains filtered or unexported fields }
Describes a mixed instances policy for an Auto Scaling group. With mixed instances, your Auto Scaling group can provision a combination of On-Demand Instances and Spot Instances across multiple instance types. For more information, see Auto Scaling Groups with Multiple Instance Types and Purchase Options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html) in the Amazon EC2 Auto Scaling User Guide.
You can create a mixed instances policy for a new Auto Scaling group, or you can create it for an existing group by updating the group to specify MixedInstancesPolicy as the top-level parameter instead of a launch configuration or template. For more information, see CreateAutoScalingGroup and UpdateAutoScalingGroup.
func (MixedInstancesPolicy) String ¶ added in v0.6.0
func (s MixedInstancesPolicy) String() string
String returns the string representation
func (*MixedInstancesPolicy) Validate ¶ added in v0.6.0
func (s *MixedInstancesPolicy) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type NotificationConfiguration ¶
type NotificationConfiguration struct { // The name of the Auto Scaling group. AutoScalingGroupName *string `min:"1" type:"string"` // One of the following event notification types: // // * autoscaling:EC2_INSTANCE_LAUNCH // // * autoscaling:EC2_INSTANCE_LAUNCH_ERROR // // * autoscaling:EC2_INSTANCE_TERMINATE // // * autoscaling:EC2_INSTANCE_TERMINATE_ERROR // // * autoscaling:TEST_NOTIFICATION NotificationType *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service // (Amazon SNS) topic. TopicARN *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes a notification.
func (NotificationConfiguration) String ¶
func (s NotificationConfiguration) String() string
String returns the string representation
type PredefinedMetricSpecification ¶
type PredefinedMetricSpecification struct { // The metric type. // // PredefinedMetricType is a required field PredefinedMetricType MetricType `type:"string" required:"true" enum:"true"` // Identifies the resource associated with the metric type. The following predefined // metrics are available: // // * ASGAverageCPUUtilization - Average CPU utilization of the Auto Scaling // group. // // * ASGAverageNetworkIn - Average number of bytes received on all network // interfaces by the Auto Scaling group. // // * ASGAverageNetworkOut - Average number of bytes sent out on all network // interfaces by the Auto Scaling group. // // * ALBRequestCountPerTarget - Number of requests completed per target in // an Application Load Balancer target group. // // For predefined metric types ASGAverageCPUUtilization, ASGAverageNetworkIn, // and ASGAverageNetworkOut, the parameter must not be specified as the resource // associated with the metric type is the Auto Scaling group. For predefined // metric type ALBRequestCountPerTarget, the parameter must be specified in // the format: app/load-balancer-name/load-balancer-id/targetgroup/target-group-name/target-group-id // , where app/load-balancer-name/load-balancer-id is the final portion of the // load balancer ARN, and targetgroup/target-group-name/target-group-id is the // final portion of the target group ARN. The target group must be attached // to the Auto Scaling group. ResourceLabel *string `min:"1" type:"string"` // contains filtered or unexported fields }
Represents a predefined metric for a target tracking scaling policy to use with Amazon EC2 Auto Scaling.
func (PredefinedMetricSpecification) String ¶
func (s PredefinedMetricSpecification) String() string
String returns the string representation
func (*PredefinedMetricSpecification) Validate ¶
func (s *PredefinedMetricSpecification) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ProcessType ¶
type ProcessType struct { // One of the following processes: // // * Launch // // * Terminate // // * AddToLoadBalancer // // * AlarmNotification // // * AZRebalance // // * HealthCheck // // * ReplaceUnhealthy // // * ScheduledActions // // ProcessName is a required field ProcessName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Describes a process type.
For more information, see Scaling Processes (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html#process-types) in the Amazon EC2 Auto Scaling User Guide.
func (ProcessType) String ¶
func (s ProcessType) String() string
String returns the string representation
type PutLifecycleHookInput ¶
type PutLifecycleHookInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // Defines the action the Auto Scaling group should take when the lifecycle // hook timeout elapses or if an unexpected failure occurs. This parameter can // be either CONTINUE or ABANDON. The default value is ABANDON. DefaultResult *string `type:"string"` // The maximum time, in seconds, that can elapse before the lifecycle hook times // out. The range is from 30 to 7200 seconds. The default value is 3600 seconds // (1 hour). // // If the lifecycle hook times out, Amazon EC2 Auto Scaling performs the action // that you specified in the DefaultResult parameter. You can prevent the lifecycle // hook from timing out by calling RecordLifecycleActionHeartbeat. HeartbeatTimeout *int64 `type:"integer"` // The name of the lifecycle hook. // // LifecycleHookName is a required field LifecycleHookName *string `min:"1" type:"string" required:"true"` // The instance state to which you want to attach the lifecycle hook. The valid // values are: // // * autoscaling:EC2_INSTANCE_LAUNCHING // // * autoscaling:EC2_INSTANCE_TERMINATING // // Conditional: This parameter is required for new lifecycle hooks, but optional // when updating existing hooks. LifecycleTransition *string `type:"string"` // Additional information that you want to include any time Amazon EC2 Auto // Scaling sends a message to the notification target. NotificationMetadata *string `min:"1" type:"string"` // The ARN of the notification target that Amazon EC2 Auto Scaling uses to notify // you when an instance is in the transition state for the lifecycle hook. This // target can be either an SQS queue or an SNS topic. // // If you specify an empty string, this overrides the current ARN. // // This operation uses the JSON format when sending notifications to an Amazon // SQS queue, and an email key-value pair format when sending notifications // to an Amazon SNS topic. // // When you specify a notification target, Amazon EC2 Auto Scaling sends it // a test message. Test messages contain the following additional key-value // pair: "Event": "autoscaling:TEST_NOTIFICATION". NotificationTargetARN *string `type:"string"` // The ARN of the IAM role that allows the Auto Scaling group to publish to // the specified notification target, for example, an Amazon SNS topic or an // Amazon SQS queue. // // Conditional: This parameter is required for new lifecycle hooks, but optional // when updating existing hooks. RoleARN *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (PutLifecycleHookInput) String ¶
func (s PutLifecycleHookInput) String() string
String returns the string representation
func (*PutLifecycleHookInput) Validate ¶
func (s *PutLifecycleHookInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutLifecycleHookOutput ¶
type PutLifecycleHookOutput struct {
// contains filtered or unexported fields
}
func (PutLifecycleHookOutput) String ¶
func (s PutLifecycleHookOutput) String() string
String returns the string representation
type PutLifecycleHookRequest ¶
type PutLifecycleHookRequest struct { *aws.Request Input *PutLifecycleHookInput Copy func(*PutLifecycleHookInput) PutLifecycleHookRequest }
PutLifecycleHookRequest is the request type for the PutLifecycleHook API operation.
func (PutLifecycleHookRequest) Send ¶
func (r PutLifecycleHookRequest) Send(ctx context.Context) (*PutLifecycleHookResponse, error)
Send marshals and sends the PutLifecycleHook API request.
type PutLifecycleHookResponse ¶ added in v0.9.0
type PutLifecycleHookResponse struct { *PutLifecycleHookOutput // contains filtered or unexported fields }
PutLifecycleHookResponse is the response type for the PutLifecycleHook API operation.
func (*PutLifecycleHookResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *PutLifecycleHookResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the PutLifecycleHook request.
type PutNotificationConfigurationInput ¶
type PutNotificationConfigurationInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The type of event that causes the notification to be sent. For more information // about notification types supported by Amazon EC2 Auto Scaling, see DescribeAutoScalingNotificationTypes. // // NotificationTypes is a required field NotificationTypes []string `type:"list" required:"true"` // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service // (Amazon SNS) topic. // // TopicARN is a required field TopicARN *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (PutNotificationConfigurationInput) String ¶
func (s PutNotificationConfigurationInput) String() string
String returns the string representation
func (*PutNotificationConfigurationInput) Validate ¶
func (s *PutNotificationConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutNotificationConfigurationOutput ¶
type PutNotificationConfigurationOutput struct {
// contains filtered or unexported fields
}
func (PutNotificationConfigurationOutput) String ¶
func (s PutNotificationConfigurationOutput) String() string
String returns the string representation
type PutNotificationConfigurationRequest ¶
type PutNotificationConfigurationRequest struct { *aws.Request Input *PutNotificationConfigurationInput Copy func(*PutNotificationConfigurationInput) PutNotificationConfigurationRequest }
PutNotificationConfigurationRequest is the request type for the PutNotificationConfiguration API operation.
func (PutNotificationConfigurationRequest) Send ¶
func (r PutNotificationConfigurationRequest) Send(ctx context.Context) (*PutNotificationConfigurationResponse, error)
Send marshals and sends the PutNotificationConfiguration API request.
type PutNotificationConfigurationResponse ¶ added in v0.9.0
type PutNotificationConfigurationResponse struct { *PutNotificationConfigurationOutput // contains filtered or unexported fields }
PutNotificationConfigurationResponse is the response type for the PutNotificationConfiguration API operation.
func (*PutNotificationConfigurationResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *PutNotificationConfigurationResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the PutNotificationConfiguration request.
type PutScalingPolicyInput ¶
type PutScalingPolicyInput struct { // Specifies whether the ScalingAdjustment parameter is an absolute number or // a percentage of the current capacity. The valid values are ChangeInCapacity, // ExactCapacity, and PercentChangeInCapacity. // // Valid only if the policy type is StepScaling or SimpleScaling. For more information, // see Scaling Adjustment Types (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html#as-scaling-adjustment) // in the Amazon EC2 Auto Scaling User Guide. AdjustmentType *string `min:"1" type:"string"` // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The amount of time, in seconds, after a scaling activity completes before // any further dynamic scaling activities can start. If this parameter is not // specified, the default cooldown period for the group applies. // // Valid only if the policy type is SimpleScaling. For more information, see // Scaling Cooldowns (https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html) // in the Amazon EC2 Auto Scaling User Guide. Cooldown *int64 `type:"integer"` // The estimated time, in seconds, until a newly launched instance can contribute // to the CloudWatch metrics. The default is to use the value specified for // the default cooldown period for the group. // // Valid only if the policy type is StepScaling or TargetTrackingScaling. EstimatedInstanceWarmup *int64 `type:"integer"` // The aggregation type for the CloudWatch metrics. The valid values are Minimum, // Maximum, and Average. If the aggregation type is null, the value is treated // as Average. // // Valid only if the policy type is StepScaling. MetricAggregationType *string `min:"1" type:"string"` // The minimum number of instances to scale. If the value of AdjustmentType // is PercentChangeInCapacity, the scaling policy changes the DesiredCapacity // of the Auto Scaling group by at least this many instances. Otherwise, the // error is ValidationError. // // This property replaces the MinAdjustmentStep property. For example, suppose // that you create a step scaling policy to scale out an Auto Scaling group // by 25 percent and you specify a MinAdjustmentMagnitude of 2. If the group // has 4 instances and the scaling policy is performed, 25 percent of 4 is 1. // However, because you specified a MinAdjustmentMagnitude of 2, Amazon EC2 // Auto Scaling scales out the group by 2 instances. // // Valid only if the policy type is SimpleScaling or StepScaling. MinAdjustmentMagnitude *int64 `type:"integer"` // Available for backward compatibility. Use MinAdjustmentMagnitude instead. MinAdjustmentStep *int64 `deprecated:"true" type:"integer"` // The name of the policy. // // PolicyName is a required field PolicyName *string `min:"1" type:"string" required:"true"` // The policy type. The valid values are SimpleScaling, StepScaling, and TargetTrackingScaling. // If the policy type is null, the value is treated as SimpleScaling. PolicyType *string `min:"1" type:"string"` // The amount by which a simple scaling policy scales the Auto Scaling group // in response to an alarm breach. The adjustment is based on the value that // you specified in the AdjustmentType parameter (either an absolute number // or a percentage). A positive value adds to the current capacity and a negative // value subtracts from the current capacity. For exact capacity, you must specify // a positive value. // // Conditional: If you specify SimpleScaling for the policy type, you must specify // this parameter. (Not used with any other policy type.) ScalingAdjustment *int64 `type:"integer"` // A set of adjustments that enable you to scale based on the size of the alarm // breach. // // Conditional: If you specify StepScaling for the policy type, you must specify // this parameter. (Not used with any other policy type.) StepAdjustments []StepAdjustment `type:"list"` // A target tracking scaling policy. Includes support for predefined or customized // metrics. // // For more information, see TargetTrackingConfiguration (https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_TargetTrackingConfiguration.html) // in the Amazon EC2 Auto Scaling API Reference. // // Conditional: If you specify TargetTrackingScaling for the policy type, you // must specify this parameter. (Not used with any other policy type.) TargetTrackingConfiguration *TargetTrackingConfiguration `type:"structure"` // contains filtered or unexported fields }
func (PutScalingPolicyInput) String ¶
func (s PutScalingPolicyInput) String() string
String returns the string representation
func (*PutScalingPolicyInput) Validate ¶
func (s *PutScalingPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutScalingPolicyOutput ¶
type PutScalingPolicyOutput struct { // The CloudWatch alarms created for the target tracking scaling policy. Alarms []Alarm `type:"list"` // The Amazon Resource Name (ARN) of the policy. PolicyARN *string `min:"1" type:"string"` // contains filtered or unexported fields }
Contains the output of PutScalingPolicy.
func (PutScalingPolicyOutput) String ¶
func (s PutScalingPolicyOutput) String() string
String returns the string representation
type PutScalingPolicyRequest ¶
type PutScalingPolicyRequest struct { *aws.Request Input *PutScalingPolicyInput Copy func(*PutScalingPolicyInput) PutScalingPolicyRequest }
PutScalingPolicyRequest is the request type for the PutScalingPolicy API operation.
func (PutScalingPolicyRequest) Send ¶
func (r PutScalingPolicyRequest) Send(ctx context.Context) (*PutScalingPolicyResponse, error)
Send marshals and sends the PutScalingPolicy API request.
type PutScalingPolicyResponse ¶ added in v0.9.0
type PutScalingPolicyResponse struct { *PutScalingPolicyOutput // contains filtered or unexported fields }
PutScalingPolicyResponse is the response type for the PutScalingPolicy API operation.
func (*PutScalingPolicyResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *PutScalingPolicyResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the PutScalingPolicy request.
type PutScheduledUpdateGroupActionInput ¶
type PutScheduledUpdateGroupActionInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The number of EC2 instances that should be running in the Auto Scaling group. DesiredCapacity *int64 `type:"integer"` // The date and time for the recurring schedule to end. Amazon EC2 Auto Scaling // does not perform the action after this time. EndTime *time.Time `type:"timestamp"` // The maximum number of instances in the Auto Scaling group. MaxSize *int64 `type:"integer"` // The minimum number of instances in the Auto Scaling group. MinSize *int64 `type:"integer"` // The recurring schedule for this action, in Unix cron syntax format. This // format consists of five fields separated by white spaces: [Minute] [Hour] // [Day_of_Month] [Month_of_Year] [Day_of_Week]. The value must be in quotes // (for example, "30 0 1 1,6,12 *"). For more information about this format, // see Crontab (http://crontab.org). // // When StartTime and EndTime are specified with Recurrence, they form the boundaries // of when the recurring action starts and stops. Recurrence *string `min:"1" type:"string"` // The name of this scaling action. // // ScheduledActionName is a required field ScheduledActionName *string `min:"1" type:"string" required:"true"` // The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format // in UTC/GMT only and in quotes (for example, "2019-06-01T00:00:00Z"). // // If you specify Recurrence and StartTime, Amazon EC2 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, Amazon EC2 Auto Scaling returns // an error message. StartTime *time.Time `type:"timestamp"` // This parameter is no longer used. Time *time.Time `type:"timestamp"` // contains filtered or unexported fields }
func (PutScheduledUpdateGroupActionInput) String ¶
func (s PutScheduledUpdateGroupActionInput) String() string
String returns the string representation
func (*PutScheduledUpdateGroupActionInput) Validate ¶
func (s *PutScheduledUpdateGroupActionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutScheduledUpdateGroupActionOutput ¶
type PutScheduledUpdateGroupActionOutput struct {
// contains filtered or unexported fields
}
func (PutScheduledUpdateGroupActionOutput) String ¶
func (s PutScheduledUpdateGroupActionOutput) String() string
String returns the string representation
type PutScheduledUpdateGroupActionRequest ¶
type PutScheduledUpdateGroupActionRequest struct { *aws.Request Input *PutScheduledUpdateGroupActionInput Copy func(*PutScheduledUpdateGroupActionInput) PutScheduledUpdateGroupActionRequest }
PutScheduledUpdateGroupActionRequest is the request type for the PutScheduledUpdateGroupAction API operation.
func (PutScheduledUpdateGroupActionRequest) Send ¶
func (r PutScheduledUpdateGroupActionRequest) Send(ctx context.Context) (*PutScheduledUpdateGroupActionResponse, error)
Send marshals and sends the PutScheduledUpdateGroupAction API request.
type PutScheduledUpdateGroupActionResponse ¶ added in v0.9.0
type PutScheduledUpdateGroupActionResponse struct { *PutScheduledUpdateGroupActionOutput // contains filtered or unexported fields }
PutScheduledUpdateGroupActionResponse is the response type for the PutScheduledUpdateGroupAction API operation.
func (*PutScheduledUpdateGroupActionResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *PutScheduledUpdateGroupActionResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the PutScheduledUpdateGroupAction request.
type RecordLifecycleActionHeartbeatInput ¶
type RecordLifecycleActionHeartbeatInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The ID of the instance. InstanceId *string `min:"1" type:"string"` // A token that uniquely identifies a specific lifecycle action associated with // an instance. Amazon EC2 Auto Scaling sends this token to the notification // target that you specified when you created the lifecycle hook. LifecycleActionToken *string `min:"36" type:"string"` // The name of the lifecycle hook. // // LifecycleHookName is a required field LifecycleHookName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (RecordLifecycleActionHeartbeatInput) String ¶
func (s RecordLifecycleActionHeartbeatInput) String() string
String returns the string representation
func (*RecordLifecycleActionHeartbeatInput) Validate ¶
func (s *RecordLifecycleActionHeartbeatInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RecordLifecycleActionHeartbeatOutput ¶
type RecordLifecycleActionHeartbeatOutput struct {
// contains filtered or unexported fields
}
func (RecordLifecycleActionHeartbeatOutput) String ¶
func (s RecordLifecycleActionHeartbeatOutput) String() string
String returns the string representation
type RecordLifecycleActionHeartbeatRequest ¶
type RecordLifecycleActionHeartbeatRequest struct { *aws.Request Input *RecordLifecycleActionHeartbeatInput Copy func(*RecordLifecycleActionHeartbeatInput) RecordLifecycleActionHeartbeatRequest }
RecordLifecycleActionHeartbeatRequest is the request type for the RecordLifecycleActionHeartbeat API operation.
func (RecordLifecycleActionHeartbeatRequest) Send ¶
func (r RecordLifecycleActionHeartbeatRequest) Send(ctx context.Context) (*RecordLifecycleActionHeartbeatResponse, error)
Send marshals and sends the RecordLifecycleActionHeartbeat API request.
type RecordLifecycleActionHeartbeatResponse ¶ added in v0.9.0
type RecordLifecycleActionHeartbeatResponse struct { *RecordLifecycleActionHeartbeatOutput // contains filtered or unexported fields }
RecordLifecycleActionHeartbeatResponse is the response type for the RecordLifecycleActionHeartbeat API operation.
func (*RecordLifecycleActionHeartbeatResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *RecordLifecycleActionHeartbeatResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the RecordLifecycleActionHeartbeat request.
type ResumeProcessesInput ¶ added in v0.9.0
type ResumeProcessesInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // One or more of the following processes. If you omit this parameter, all processes // are specified. // // * Launch // // * Terminate // // * HealthCheck // // * ReplaceUnhealthy // // * AZRebalance // // * AlarmNotification // // * ScheduledActions // // * AddToLoadBalancer ScalingProcesses []string `type:"list"` // contains filtered or unexported fields }
func (ResumeProcessesInput) String ¶ added in v0.9.0
func (s ResumeProcessesInput) String() string
String returns the string representation
func (*ResumeProcessesInput) Validate ¶ added in v0.9.0
func (s *ResumeProcessesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ResumeProcessesOutput ¶
type ResumeProcessesOutput struct {
// contains filtered or unexported fields
}
func (ResumeProcessesOutput) String ¶
func (s ResumeProcessesOutput) String() string
String returns the string representation
type ResumeProcessesRequest ¶
type ResumeProcessesRequest struct { *aws.Request Input *ResumeProcessesInput Copy func(*ResumeProcessesInput) ResumeProcessesRequest }
ResumeProcessesRequest is the request type for the ResumeProcesses API operation.
func (ResumeProcessesRequest) Send ¶
func (r ResumeProcessesRequest) Send(ctx context.Context) (*ResumeProcessesResponse, error)
Send marshals and sends the ResumeProcesses API request.
type ResumeProcessesResponse ¶ added in v0.9.0
type ResumeProcessesResponse struct { *ResumeProcessesOutput // contains filtered or unexported fields }
ResumeProcessesResponse is the response type for the ResumeProcesses API operation.
func (*ResumeProcessesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *ResumeProcessesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ResumeProcesses request.
type ScalingActivityStatusCode ¶
type ScalingActivityStatusCode string
const ( ScalingActivityStatusCodePendingSpotBidPlacement ScalingActivityStatusCode = "PendingSpotBidPlacement" ScalingActivityStatusCodeWaitingForSpotInstanceRequestId ScalingActivityStatusCode = "WaitingForSpotInstanceRequestId" ScalingActivityStatusCodeWaitingForSpotInstanceId ScalingActivityStatusCode = "WaitingForSpotInstanceId" ScalingActivityStatusCodeWaitingForInstanceId ScalingActivityStatusCode = "WaitingForInstanceId" ScalingActivityStatusCodePreInService ScalingActivityStatusCode = "PreInService" ScalingActivityStatusCodeInProgress ScalingActivityStatusCode = "InProgress" ScalingActivityStatusCodeWaitingForElbconnectionDraining ScalingActivityStatusCode = "WaitingForELBConnectionDraining" ScalingActivityStatusCodeMidLifecycleAction ScalingActivityStatusCode = "MidLifecycleAction" ScalingActivityStatusCodeWaitingForInstanceWarmup ScalingActivityStatusCode = "WaitingForInstanceWarmup" ScalingActivityStatusCodeSuccessful ScalingActivityStatusCode = "Successful" ScalingActivityStatusCodeFailed ScalingActivityStatusCode = "Failed" ScalingActivityStatusCodeCancelled ScalingActivityStatusCode = "Cancelled" )
Enum values for ScalingActivityStatusCode
func (ScalingActivityStatusCode) MarshalValue ¶ added in v0.3.0
func (enum ScalingActivityStatusCode) MarshalValue() (string, error)
func (ScalingActivityStatusCode) MarshalValueBuf ¶ added in v0.3.0
func (enum ScalingActivityStatusCode) MarshalValueBuf(b []byte) ([]byte, error)
type ScalingPolicy ¶
type ScalingPolicy struct { // The adjustment type, which specifies how ScalingAdjustment is interpreted. // The valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity. AdjustmentType *string `min:"1" type:"string"` // The CloudWatch alarms related to the policy. Alarms []Alarm `type:"list"` // The name of the Auto Scaling group. AutoScalingGroupName *string `min:"1" type:"string"` // The amount of time, in seconds, after a scaling activity completes before // any further dynamic scaling activities can start. Cooldown *int64 `type:"integer"` // The estimated time, in seconds, until a newly launched instance can contribute // to the CloudWatch metrics. EstimatedInstanceWarmup *int64 `type:"integer"` // The aggregation type for the CloudWatch metrics. The valid values are Minimum, // Maximum, and Average. MetricAggregationType *string `min:"1" type:"string"` // The minimum number of instances to scale. If the value of AdjustmentType // is PercentChangeInCapacity, the scaling policy changes the DesiredCapacity // of the Auto Scaling group by at least this many instances. Otherwise, the // error is ValidationError. MinAdjustmentMagnitude *int64 `type:"integer"` // Available for backward compatibility. Use MinAdjustmentMagnitude instead. MinAdjustmentStep *int64 `deprecated:"true" type:"integer"` // The Amazon Resource Name (ARN) of the policy. PolicyARN *string `min:"1" type:"string"` // The name of the scaling policy. PolicyName *string `min:"1" type:"string"` // The policy type. The valid values are SimpleScaling, StepScaling, and TargetTrackingScaling. PolicyType *string `min:"1" type:"string"` // The amount by which to scale, based on the specified adjustment type. A positive // value adds to the current capacity while a negative number removes from the // current capacity. ScalingAdjustment *int64 `type:"integer"` // A set of adjustments that enable you to scale based on the size of the alarm // breach. StepAdjustments []StepAdjustment `type:"list"` // A target tracking scaling policy. TargetTrackingConfiguration *TargetTrackingConfiguration `type:"structure"` // contains filtered or unexported fields }
Describes a scaling policy.
func (ScalingPolicy) String ¶
func (s ScalingPolicy) String() string
String returns the string representation
type ScheduledUpdateGroupAction ¶
type ScheduledUpdateGroupAction struct { // The name of the Auto Scaling group. AutoScalingGroupName *string `min:"1" type:"string"` // The number of instances you prefer to maintain in the group. DesiredCapacity *int64 `type:"integer"` // The date and time in UTC for the recurring schedule to end. For example, // "2019-06-01T00:00:00Z". EndTime *time.Time `type:"timestamp"` // The maximum number of instances in the Auto Scaling group. MaxSize *int64 `type:"integer"` // The minimum number of instances in the Auto Scaling group. MinSize *int64 `type:"integer"` // The recurring schedule for the action, in Unix cron syntax format. // // When StartTime and EndTime are specified with Recurrence, they form the boundaries // of when the recurring action starts and stops. Recurrence *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the scheduled action. ScheduledActionARN *string `min:"1" type:"string"` // The name of the scheduled action. ScheduledActionName *string `min:"1" type:"string"` // The date and time in UTC for this action to start. For example, "2019-06-01T00:00:00Z". StartTime *time.Time `type:"timestamp"` // This parameter is no longer used. Time *time.Time `type:"timestamp"` // contains filtered or unexported fields }
Describes a scheduled scaling action. Used in response to DescribeScheduledActions.
func (ScheduledUpdateGroupAction) String ¶
func (s ScheduledUpdateGroupAction) String() string
String returns the string representation
type ScheduledUpdateGroupActionRequest ¶ added in v0.5.0
type ScheduledUpdateGroupActionRequest struct { // The number of EC2 instances that should be running in the group. DesiredCapacity *int64 `type:"integer"` // The date and time for the recurring schedule to end. Amazon EC2 Auto Scaling // does not perform the action after this time. EndTime *time.Time `type:"timestamp"` // The maximum number of instances in the Auto Scaling group. MaxSize *int64 `type:"integer"` // The minimum number of instances in the Auto Scaling group. MinSize *int64 `type:"integer"` // The recurring schedule for the action, in Unix cron syntax format. This format // consists of five fields separated by white spaces: [Minute] [Hour] [Day_of_Month] // [Month_of_Year] [Day_of_Week]. The value must be in quotes (for example, // "30 0 1 1,6,12 *"). For more information about this format, see Crontab (http://crontab.org). // // When StartTime and EndTime are specified with Recurrence, they form the boundaries // of when the recurring action starts and stops. Recurrence *string `min:"1" type:"string"` // The name of the scaling action. // // ScheduledActionName is a required field ScheduledActionName *string `min:"1" type:"string" required:"true"` // The date and time for the action to start, in YYYY-MM-DDThh:mm:ssZ format // in UTC/GMT only and in quotes (for example, "2019-06-01T00:00:00Z"). // // If you specify Recurrence and StartTime, Amazon EC2 Auto Scaling performs // the action at this time, and then performs the action based on the specified // recurrence. // // If you try to schedule the action in the past, Amazon EC2 Auto Scaling returns // an error message. StartTime *time.Time `type:"timestamp"` // contains filtered or unexported fields }
Describes one or more scheduled scaling action updates for a specified Auto Scaling group. Used in combination with BatchPutScheduledUpdateGroupAction.
When updating a scheduled scaling action, all optional parameters are left unchanged if not specified.
func (ScheduledUpdateGroupActionRequest) String ¶ added in v0.5.0
func (s ScheduledUpdateGroupActionRequest) String() string
String returns the string representation
func (*ScheduledUpdateGroupActionRequest) Validate ¶ added in v0.5.0
func (s *ScheduledUpdateGroupActionRequest) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type SetDesiredCapacityInput ¶
type SetDesiredCapacityInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The number of EC2 instances that should be running in the Auto Scaling group. // // DesiredCapacity is a required field DesiredCapacity *int64 `type:"integer" required:"true"` // Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to // complete before initiating a scaling activity to set your Auto Scaling group // to its new capacity. By default, Amazon EC2 Auto Scaling does not honor the // cooldown period during manual scaling activities. HonorCooldown *bool `type:"boolean"` // contains filtered or unexported fields }
func (SetDesiredCapacityInput) String ¶
func (s SetDesiredCapacityInput) String() string
String returns the string representation
func (*SetDesiredCapacityInput) Validate ¶
func (s *SetDesiredCapacityInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type SetDesiredCapacityOutput ¶
type SetDesiredCapacityOutput struct {
// contains filtered or unexported fields
}
func (SetDesiredCapacityOutput) String ¶
func (s SetDesiredCapacityOutput) String() string
String returns the string representation
type SetDesiredCapacityRequest ¶
type SetDesiredCapacityRequest struct { *aws.Request Input *SetDesiredCapacityInput Copy func(*SetDesiredCapacityInput) SetDesiredCapacityRequest }
SetDesiredCapacityRequest is the request type for the SetDesiredCapacity API operation.
func (SetDesiredCapacityRequest) Send ¶
func (r SetDesiredCapacityRequest) Send(ctx context.Context) (*SetDesiredCapacityResponse, error)
Send marshals and sends the SetDesiredCapacity API request.
type SetDesiredCapacityResponse ¶ added in v0.9.0
type SetDesiredCapacityResponse struct { *SetDesiredCapacityOutput // contains filtered or unexported fields }
SetDesiredCapacityResponse is the response type for the SetDesiredCapacity API operation.
func (*SetDesiredCapacityResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *SetDesiredCapacityResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the SetDesiredCapacity request.
type SetInstanceHealthInput ¶
type SetInstanceHealthInput struct { // The health status of the instance. Set to Healthy to have the instance remain // in service. Set to Unhealthy to have the instance be out of service. Amazon // EC2 Auto Scaling terminates and replaces the unhealthy instance. // // HealthStatus is a required field HealthStatus *string `min:"1" type:"string" required:"true"` // The ID of the instance. // // InstanceId is a required field InstanceId *string `min:"1" type:"string" required:"true"` // If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod // specified for the group, by default, this call respects the grace period. // Set this to False, to have the call not respect the grace period associated // with the group. // // For more information about the health check grace period, see CreateAutoScalingGroup. ShouldRespectGracePeriod *bool `type:"boolean"` // contains filtered or unexported fields }
func (SetInstanceHealthInput) String ¶
func (s SetInstanceHealthInput) String() string
String returns the string representation
func (*SetInstanceHealthInput) Validate ¶
func (s *SetInstanceHealthInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type SetInstanceHealthOutput ¶
type SetInstanceHealthOutput struct {
// contains filtered or unexported fields
}
func (SetInstanceHealthOutput) String ¶
func (s SetInstanceHealthOutput) String() string
String returns the string representation
type SetInstanceHealthRequest ¶
type SetInstanceHealthRequest struct { *aws.Request Input *SetInstanceHealthInput Copy func(*SetInstanceHealthInput) SetInstanceHealthRequest }
SetInstanceHealthRequest is the request type for the SetInstanceHealth API operation.
func (SetInstanceHealthRequest) Send ¶
func (r SetInstanceHealthRequest) Send(ctx context.Context) (*SetInstanceHealthResponse, error)
Send marshals and sends the SetInstanceHealth API request.
type SetInstanceHealthResponse ¶ added in v0.9.0
type SetInstanceHealthResponse struct { *SetInstanceHealthOutput // contains filtered or unexported fields }
SetInstanceHealthResponse is the response type for the SetInstanceHealth API operation.
func (*SetInstanceHealthResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *SetInstanceHealthResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the SetInstanceHealth request.
type SetInstanceProtectionInput ¶
type SetInstanceProtectionInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // One or more instance IDs. // // InstanceIds is a required field InstanceIds []string `type:"list" required:"true"` // Indicates whether the instance is protected from termination by Amazon EC2 // Auto Scaling when scaling in. // // ProtectedFromScaleIn is a required field ProtectedFromScaleIn *bool `type:"boolean" required:"true"` // contains filtered or unexported fields }
func (SetInstanceProtectionInput) String ¶
func (s SetInstanceProtectionInput) String() string
String returns the string representation
func (*SetInstanceProtectionInput) Validate ¶
func (s *SetInstanceProtectionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type SetInstanceProtectionOutput ¶
type SetInstanceProtectionOutput struct {
// contains filtered or unexported fields
}
func (SetInstanceProtectionOutput) String ¶
func (s SetInstanceProtectionOutput) String() string
String returns the string representation
type SetInstanceProtectionRequest ¶
type SetInstanceProtectionRequest struct { *aws.Request Input *SetInstanceProtectionInput Copy func(*SetInstanceProtectionInput) SetInstanceProtectionRequest }
SetInstanceProtectionRequest is the request type for the SetInstanceProtection API operation.
func (SetInstanceProtectionRequest) Send ¶
func (r SetInstanceProtectionRequest) Send(ctx context.Context) (*SetInstanceProtectionResponse, error)
Send marshals and sends the SetInstanceProtection API request.
type SetInstanceProtectionResponse ¶ added in v0.9.0
type SetInstanceProtectionResponse struct { *SetInstanceProtectionOutput // contains filtered or unexported fields }
SetInstanceProtectionResponse is the response type for the SetInstanceProtection API operation.
func (*SetInstanceProtectionResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *SetInstanceProtectionResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the SetInstanceProtection request.
type StepAdjustment ¶
type StepAdjustment struct { // The lower bound for the difference between the alarm threshold and the CloudWatch // metric. If the metric value is above the breach threshold, the lower bound // is inclusive (the metric must be greater than or equal to the threshold plus // the lower bound). Otherwise, it is exclusive (the metric must be greater // than the threshold plus the lower bound). A null value indicates negative // infinity. MetricIntervalLowerBound *float64 `type:"double"` // The upper bound for the difference between the alarm threshold and the CloudWatch // metric. If the metric value is above the breach threshold, the upper bound // is exclusive (the metric must be less than the threshold plus the upper bound). // Otherwise, it is inclusive (the metric must be less than or equal to the // threshold plus the upper bound). A null value indicates positive infinity. // // The upper bound must be greater than the lower bound. MetricIntervalUpperBound *float64 `type:"double"` // The amount by which to scale, based on the specified adjustment type. A positive // value adds to the current capacity while a negative number removes from the // current capacity. // // ScalingAdjustment is a required field ScalingAdjustment *int64 `type:"integer" required:"true"` // contains filtered or unexported fields }
Describes an adjustment based on the difference between the value of the aggregated CloudWatch metric and the breach threshold that you've defined for the alarm. Used in combination with PutScalingPolicy.
For the following examples, suppose that you have an alarm with a breach threshold of 50:
To trigger the adjustment when the metric is greater than or equal to 50 and less than 60, specify a lower bound of 0 and an upper bound of 10.
To trigger the adjustment when the metric is greater than 40 and less than or equal to 50, specify a lower bound of -10 and an upper bound of 0.
There are a few rules for the step adjustments for your step policy:
The ranges of your step adjustments can't overlap or have a gap.
At most, one step adjustment can have a null lower bound. If one step adjustment has a negative lower bound, then there must be a step adjustment with a null lower bound.
At most, one step adjustment can have a null upper bound. If one step adjustment has a positive upper bound, then there must be a step adjustment with a null upper bound.
The upper and lower bound can't be null in the same step adjustment.
func (StepAdjustment) String ¶
func (s StepAdjustment) String() string
String returns the string representation
func (*StepAdjustment) Validate ¶
func (s *StepAdjustment) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type SuspendProcessesInput ¶
type SuspendProcessesInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // One or more of the following processes. If you omit this parameter, all processes // are specified. // // * Launch // // * Terminate // // * HealthCheck // // * ReplaceUnhealthy // // * AZRebalance // // * AlarmNotification // // * ScheduledActions // // * AddToLoadBalancer ScalingProcesses []string `type:"list"` // contains filtered or unexported fields }
func (SuspendProcessesInput) String ¶
func (s SuspendProcessesInput) String() string
String returns the string representation
func (*SuspendProcessesInput) Validate ¶
func (s *SuspendProcessesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type SuspendProcessesOutput ¶
type SuspendProcessesOutput struct {
// contains filtered or unexported fields
}
func (SuspendProcessesOutput) String ¶
func (s SuspendProcessesOutput) String() string
String returns the string representation
type SuspendProcessesRequest ¶
type SuspendProcessesRequest struct { *aws.Request Input *SuspendProcessesInput Copy func(*SuspendProcessesInput) SuspendProcessesRequest }
SuspendProcessesRequest is the request type for the SuspendProcesses API operation.
func (SuspendProcessesRequest) Send ¶
func (r SuspendProcessesRequest) Send(ctx context.Context) (*SuspendProcessesResponse, error)
Send marshals and sends the SuspendProcesses API request.
type SuspendProcessesResponse ¶ added in v0.9.0
type SuspendProcessesResponse struct { *SuspendProcessesOutput // contains filtered or unexported fields }
SuspendProcessesResponse is the response type for the SuspendProcesses API operation.
func (*SuspendProcessesResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *SuspendProcessesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the SuspendProcesses request.
type SuspendedProcess ¶
type SuspendedProcess struct { // The name of the suspended process. ProcessName *string `min:"1" type:"string"` // The reason that the process was suspended. SuspensionReason *string `min:"1" type:"string"` // contains filtered or unexported fields }
Describes an automatic scaling process that has been suspended. For more information, see ProcessType.
func (SuspendedProcess) String ¶
func (s SuspendedProcess) String() string
String returns the string representation
type Tag ¶
type Tag struct { // The tag key. // // Key is a required field Key *string `min:"1" type:"string" required:"true"` // Determines whether the tag is added to new instances as they are launched // in the group. PropagateAtLaunch *bool `type:"boolean"` // The name of the group. ResourceId *string `type:"string"` // The type of resource. The only supported value is auto-scaling-group. ResourceType *string `type:"string"` // The tag value. Value *string `type:"string"` // contains filtered or unexported fields }
Describes a tag for an Auto Scaling group.
type TagDescription ¶
type TagDescription struct { // The tag key. Key *string `min:"1" type:"string"` // Determines whether the tag is added to new instances as they are launched // in the group. PropagateAtLaunch *bool `type:"boolean"` // The name of the group. ResourceId *string `type:"string"` // The type of resource. The only supported value is auto-scaling-group. ResourceType *string `type:"string"` // The tag value. Value *string `type:"string"` // contains filtered or unexported fields }
Describes a tag for an Auto Scaling group.
func (TagDescription) String ¶
func (s TagDescription) String() string
String returns the string representation
type TargetTrackingConfiguration ¶
type TargetTrackingConfiguration struct { // A customized metric. You must specify either a predefined metric or a customized // metric. CustomizedMetricSpecification *CustomizedMetricSpecification `type:"structure"` // Indicates whether scaling in by the target tracking scaling policy is disabled. // If scaling in is disabled, the target tracking scaling policy doesn't remove // instances from the Auto Scaling group. Otherwise, the target tracking scaling // policy can remove instances from the Auto Scaling group. The default is false. DisableScaleIn *bool `type:"boolean"` // A predefined metric. You must specify either a predefined metric or a customized // metric. PredefinedMetricSpecification *PredefinedMetricSpecification `type:"structure"` // The target value for the metric. // // TargetValue is a required field TargetValue *float64 `type:"double" required:"true"` // contains filtered or unexported fields }
Represents a target tracking scaling policy configuration to use with Amazon EC2 Auto Scaling.
func (TargetTrackingConfiguration) String ¶
func (s TargetTrackingConfiguration) String() string
String returns the string representation
func (*TargetTrackingConfiguration) Validate ¶
func (s *TargetTrackingConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TerminateInstanceInAutoScalingGroupInput ¶
type TerminateInstanceInAutoScalingGroupInput struct { // The ID of the instance. // // InstanceId is a required field InstanceId *string `min:"1" type:"string" required:"true"` // Indicates whether terminating the instance also decrements the size of the // Auto Scaling group. // // ShouldDecrementDesiredCapacity is a required field ShouldDecrementDesiredCapacity *bool `type:"boolean" required:"true"` // contains filtered or unexported fields }
func (TerminateInstanceInAutoScalingGroupInput) String ¶
func (s TerminateInstanceInAutoScalingGroupInput) String() string
String returns the string representation
func (*TerminateInstanceInAutoScalingGroupInput) Validate ¶
func (s *TerminateInstanceInAutoScalingGroupInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TerminateInstanceInAutoScalingGroupOutput ¶
type TerminateInstanceInAutoScalingGroupOutput struct { // A scaling activity. Activity *Activity `type:"structure"` // contains filtered or unexported fields }
func (TerminateInstanceInAutoScalingGroupOutput) String ¶
func (s TerminateInstanceInAutoScalingGroupOutput) String() string
String returns the string representation
type TerminateInstanceInAutoScalingGroupRequest ¶
type TerminateInstanceInAutoScalingGroupRequest struct { *aws.Request Input *TerminateInstanceInAutoScalingGroupInput Copy func(*TerminateInstanceInAutoScalingGroupInput) TerminateInstanceInAutoScalingGroupRequest }
TerminateInstanceInAutoScalingGroupRequest is the request type for the TerminateInstanceInAutoScalingGroup API operation.
func (TerminateInstanceInAutoScalingGroupRequest) Send ¶
func (r TerminateInstanceInAutoScalingGroupRequest) Send(ctx context.Context) (*TerminateInstanceInAutoScalingGroupResponse, error)
Send marshals and sends the TerminateInstanceInAutoScalingGroup API request.
type TerminateInstanceInAutoScalingGroupResponse ¶ added in v0.9.0
type TerminateInstanceInAutoScalingGroupResponse struct { *TerminateInstanceInAutoScalingGroupOutput // contains filtered or unexported fields }
TerminateInstanceInAutoScalingGroupResponse is the response type for the TerminateInstanceInAutoScalingGroup API operation.
func (*TerminateInstanceInAutoScalingGroupResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *TerminateInstanceInAutoScalingGroupResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the TerminateInstanceInAutoScalingGroup request.
type UpdateAutoScalingGroupInput ¶
type UpdateAutoScalingGroupInput struct { // The name of the Auto Scaling group. // // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // One or more Availability Zones for the group. AvailabilityZones []string `min:"1" type:"list"` // The amount of time, in seconds, after a scaling activity completes before // another scaling activity can start. The default value is 300. This cooldown // period is not used when a scaling-specific cooldown is specified. // // Cooldown periods are not supported for target tracking scaling policies, // step scaling policies, or scheduled scaling. For more information, see Scaling // Cooldowns (https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html) // in the Amazon EC2 Auto Scaling User Guide. DefaultCooldown *int64 `type:"integer"` // The number of EC2 instances that should be running in the Auto Scaling group. // This number must be greater than or equal to the minimum size of the group // and less than or equal to the maximum size of the group. DesiredCapacity *int64 `type:"integer"` // The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before // checking the health status of an EC2 instance that has come into service. // The default value is 0. // // For more information, see Health Check Grace Period (https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period) // in the Amazon EC2 Auto Scaling User Guide. // // Conditional: This parameter is required if you are adding an ELB health check. HealthCheckGracePeriod *int64 `type:"integer"` // The service to use for the health checks. The valid values are EC2 and ELB. // If you configure an Auto Scaling group to use ELB health checks, it considers // the instance unhealthy if it fails either the EC2 status checks or the load // balancer health checks. HealthCheckType *string `min:"1" type:"string"` // The name of the launch configuration. If you specify LaunchConfigurationName // in your update request, you can't specify LaunchTemplate or MixedInstancesPolicy. // // To update an Auto Scaling group with a launch configuration with InstanceMonitoring // set to false, you must first disable the collection of group metrics. Otherwise, // you get an error. If you have previously enabled the collection of group // metrics, you can disable it using DisableMetricsCollection. LaunchConfigurationName *string `min:"1" type:"string"` // The launch template and version to use to specify the updates. If you specify // LaunchTemplate in your update request, you can't specify LaunchConfigurationName // or MixedInstancesPolicy. // // For more information, see LaunchTemplateSpecification (https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchTemplateSpecification.html) // in the Amazon EC2 Auto Scaling API Reference. LaunchTemplate *LaunchTemplateSpecification `type:"structure"` // The maximum size of the Auto Scaling group. MaxSize *int64 `type:"integer"` // The minimum size of the Auto Scaling group. MinSize *int64 `type:"integer"` // An embedded object that specifies a mixed instances policy. // // In your call to UpdateAutoScalingGroup, you can make changes to the policy // that is specified. All optional parameters are left unchanged if not specified. // // For more information, see MixedInstancesPolicy (https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_MixedInstancesPolicy.html) // in the Amazon EC2 Auto Scaling API Reference and Auto Scaling Groups with // Multiple Instance Types and Purchase Options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html) // in the Amazon EC2 Auto Scaling User Guide. MixedInstancesPolicy *MixedInstancesPolicy `type:"structure"` // Indicates whether newly launched instances are protected from termination // by Amazon EC2 Auto Scaling when scaling in. // // For more information about preventing instances from terminating on scale // in, see Instance Protection (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection) // in the Amazon EC2 Auto Scaling User Guide. NewInstancesProtectedFromScaleIn *bool `type:"boolean"` // The name of the placement group into which to launch your instances, if any. // A placement group is a logical grouping of instances within a single Availability // Zone. You cannot specify multiple Availability Zones and a placement group. // For more information, see Placement Groups (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) // in the Amazon EC2 User Guide for Linux Instances. PlacementGroup *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling // group uses to call other AWS services on your behalf. For more information, // see Service-Linked Roles (https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html) // in the Amazon EC2 Auto Scaling User Guide. ServiceLinkedRoleARN *string `min:"1" type:"string"` // A standalone termination policy or a list of termination policies used to // select the instance to terminate. The policies are executed in the order // that they are listed. // // For more information, see Controlling Which Instances Auto Scaling Terminates // During Scale In (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html) // in the Amazon EC2 Auto Scaling User Guide. TerminationPolicies []string `type:"list"` // A comma-separated list of subnet IDs for virtual private cloud (VPC). // // If you specify VPCZoneIdentifier with AvailabilityZones, the subnets that // you specify for this parameter must reside in those Availability Zones. VPCZoneIdentifier *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (UpdateAutoScalingGroupInput) String ¶
func (s UpdateAutoScalingGroupInput) String() string
String returns the string representation
func (*UpdateAutoScalingGroupInput) Validate ¶
func (s *UpdateAutoScalingGroupInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateAutoScalingGroupOutput ¶
type UpdateAutoScalingGroupOutput struct {
// contains filtered or unexported fields
}
func (UpdateAutoScalingGroupOutput) String ¶
func (s UpdateAutoScalingGroupOutput) String() string
String returns the string representation
type UpdateAutoScalingGroupRequest ¶
type UpdateAutoScalingGroupRequest struct { *aws.Request Input *UpdateAutoScalingGroupInput Copy func(*UpdateAutoScalingGroupInput) UpdateAutoScalingGroupRequest }
UpdateAutoScalingGroupRequest is the request type for the UpdateAutoScalingGroup API operation.
func (UpdateAutoScalingGroupRequest) Send ¶
func (r UpdateAutoScalingGroupRequest) Send(ctx context.Context) (*UpdateAutoScalingGroupResponse, error)
Send marshals and sends the UpdateAutoScalingGroup API request.
type UpdateAutoScalingGroupResponse ¶ added in v0.9.0
type UpdateAutoScalingGroupResponse struct { *UpdateAutoScalingGroupOutput // contains filtered or unexported fields }
UpdateAutoScalingGroupResponse is the response type for the UpdateAutoScalingGroup API operation.
func (*UpdateAutoScalingGroupResponse) SDKResponseMetdata ¶ added in v0.9.0
func (r *UpdateAutoScalingGroupResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the UpdateAutoScalingGroup request.
Source Files ¶
- api_client.go
- api_doc.go
- api_enums.go
- api_errors.go
- api_op_AttachInstances.go
- api_op_AttachLoadBalancerTargetGroups.go
- api_op_AttachLoadBalancers.go
- api_op_BatchDeleteScheduledAction.go
- api_op_BatchPutScheduledUpdateGroupAction.go
- api_op_CompleteLifecycleAction.go
- api_op_CreateAutoScalingGroup.go
- api_op_CreateLaunchConfiguration.go
- api_op_CreateOrUpdateTags.go
- api_op_DeleteAutoScalingGroup.go
- api_op_DeleteLaunchConfiguration.go
- api_op_DeleteLifecycleHook.go
- api_op_DeleteNotificationConfiguration.go
- api_op_DeletePolicy.go
- api_op_DeleteScheduledAction.go
- api_op_DeleteTags.go
- api_op_DescribeAccountLimits.go
- api_op_DescribeAdjustmentTypes.go
- api_op_DescribeAutoScalingGroups.go
- api_op_DescribeAutoScalingInstances.go
- api_op_DescribeAutoScalingNotificationTypes.go
- api_op_DescribeLaunchConfigurations.go
- api_op_DescribeLifecycleHookTypes.go
- api_op_DescribeLifecycleHooks.go
- api_op_DescribeLoadBalancerTargetGroups.go
- api_op_DescribeLoadBalancers.go
- api_op_DescribeMetricCollectionTypes.go
- api_op_DescribeNotificationConfigurations.go
- api_op_DescribePolicies.go
- api_op_DescribeScalingActivities.go
- api_op_DescribeScalingProcessTypes.go
- api_op_DescribeScheduledActions.go
- api_op_DescribeTags.go
- api_op_DescribeTerminationPolicyTypes.go
- api_op_DetachInstances.go
- api_op_DetachLoadBalancerTargetGroups.go
- api_op_DetachLoadBalancers.go
- api_op_DisableMetricsCollection.go
- api_op_EnableMetricsCollection.go
- api_op_EnterStandby.go
- api_op_ExecutePolicy.go
- api_op_ExitStandby.go
- api_op_PutLifecycleHook.go
- api_op_PutNotificationConfiguration.go
- api_op_PutScalingPolicy.go
- api_op_PutScheduledUpdateGroupAction.go
- api_op_RecordLifecycleActionHeartbeat.go
- api_op_ResumeProcesses.go
- api_op_SetDesiredCapacity.go
- api_op_SetInstanceHealth.go
- api_op_SetInstanceProtection.go
- api_op_SuspendProcesses.go
- api_op_TerminateInstanceInAutoScalingGroup.go
- api_op_UpdateAutoScalingGroup.go
- api_types.go
- api_waiters.go
Directories ¶
Path | Synopsis |
---|---|
Package autoscalingiface provides an interface to enable mocking the Auto Scaling service client for testing your code.
|
Package autoscalingiface provides an interface to enable mocking the Auto Scaling service client for testing your code. |