Documentation ¶
Index ¶
- type Activity
- type AdjustmentType
- type Alarm
- type AutoScaling
- func (as *AutoScaling) AttachInstances(name string, instanceIds []string) (resp *GenericResp, err error)
- func (as *AutoScaling) CreateAutoScalingGroup(options *CreateAutoScalingGroup) (resp *GenericResp, err error)
- func (as *AutoScaling) CreateLaunchConfiguration(options *CreateLaunchConfiguration) (resp *GenericResp, err error)
- func (as *AutoScaling) CreateOrUpdateTags(tags []Tag) (resp *GenericResp, err error)
- func (as *AutoScaling) DeleteAutoScalingGroup(asgName string, forceDelete bool) (resp *GenericResp, err error)
- func (as *AutoScaling) DeleteLaunchConfiguration(name string) (resp *GenericResp, err error)
- func (as *AutoScaling) DeleteNotificationConfiguration(asgName string, topicARN string) (resp *GenericResp, err error)
- func (as *AutoScaling) DeletePolicy(asgName string, policyName string) (resp *GenericResp, err error)
- func (as *AutoScaling) DeleteScheduledAction(asgName string, scheduledActionName string) (resp *GenericResp, err error)
- func (as *AutoScaling) DeleteTags(tags []Tag) (resp *GenericResp, err error)
- func (as *AutoScaling) DescribeAccountLimits() (resp *DescribeAccountLimitsResp, err error)
- func (as *AutoScaling) DescribeAdjustmentTypes() (resp *DescribeAdjustmentTypesResp, err error)
- func (as *AutoScaling) DescribeAutoScalingGroups(names []string, maxRecords int, nextToken string) (resp *DescribeAutoScalingGroupsResp, err error)
- func (as *AutoScaling) DescribeAutoScalingInstances(ids []string, maxRecords int, nextToken string) (resp *DescribeAutoScalingInstancesResp, err error)
- func (as *AutoScaling) DescribeAutoScalingNotificationTypes() (resp *DescribeAutoScalingNotificationTypesResp, err error)
- func (as *AutoScaling) DescribeLaunchConfigurations(names []string, maxRecords int, nextToken string) (resp *DescribeLaunchConfigurationsResp, err error)
- func (as *AutoScaling) DescribeMetricCollectionTypes() (resp *DescribeMetricCollectionTypesResp, err error)
- func (as *AutoScaling) DescribeNotificationConfigurations(asgNames []string, maxRecords int, nextToken string) (resp *DescribeNotificationConfigurationsResp, err error)
- func (as *AutoScaling) DescribePolicies(asgName string, policyNames []string, maxRecords int, nextToken string) (resp *DescribePoliciesResp, err error)
- func (as *AutoScaling) DescribeScalingActivities(asgName string, activityIds []string, maxRecords int, nextToken string) (resp *DescribeScalingActivitiesResp, err error)
- func (as *AutoScaling) DescribeScalingProcessTypes() (resp *DescribeScalingProcessTypesResp, err error)
- func (as *AutoScaling) DescribeScheduledActions(asgName string, actionNames []string, sTime time.Time, eTime time.Time, ...) (resp *DescribeScheduledActionsResp, err error)
- func (as *AutoScaling) DescribeTags(filter *Filter, maxRecords int, nextToken string) (resp *DescribeTagsResp, err error)
- func (as *AutoScaling) DescribeTerminationPolicyTypes() (resp *DescribeTerminationPolicyTypesResp, err error)
- func (as *AutoScaling) DisableMetricsCollection(asgName string, metrics []string) (resp *GenericResp, err error)
- func (as *AutoScaling) EnableMetricsCollection(asgName string, metrics []string, granularity string) (resp *GenericResp, err error)
- func (as *AutoScaling) ExecutePolicy(policyName string, asgName string, honorCooldown bool) (resp *GenericResp, err error)
- func (as *AutoScaling) PutNotificationConfiguration(asgName string, notificationTypes []string, topicARN string) (resp *GenericResp, err error)
- func (as *AutoScaling) PutScalingPolicy(asgName string, policyName string, scalingAdj int, aType string, cooldown int, ...) (resp *PutScalingPolicyResp, err error)
- func (as *AutoScaling) PutScheduledUpdateGroupAction(options *PutScheduledUpdateGroupAction) (resp *GenericResp, err error)
- func (as *AutoScaling) ResumeProcesses(asgName string, scalingProcesses []string) (resp *GenericResp, err error)
- func (as *AutoScaling) SetDesiredCapacity(asgName string, desiredCapacity int, honorCooldown bool) (resp *GenericResp, err error)
- func (as *AutoScaling) SetInstanceHealth(id string, healthStatus string, respectGracePeriod bool) (resp *GenericResp, err error)
- func (as *AutoScaling) SuspendProcesses(asgName string, scalingProcesses []string) (resp *GenericResp, err error)
- func (as *AutoScaling) TerminateInstanceInAutoScalingGroup(id string, decrCap bool) (resp *TerminateInstanceInAutoScalingGroupResp, err error)
- func (as *AutoScaling) UpdateAutoScalingGroup(options *UpdateAutoScalingGroup) (resp *GenericResp, err error)
- type AutoScalingGroup
- type BlockDeviceMapping
- type CreateAutoScalingGroup
- type CreateLaunchConfiguration
- type DescribeAccountLimitsResp
- type DescribeAdjustmentTypesResp
- type DescribeAutoScalingGroupsResp
- type DescribeAutoScalingInstancesResp
- type DescribeAutoScalingNotificationTypesResp
- type DescribeLaunchConfigurationsResp
- type DescribeMetricCollectionTypesResp
- type DescribeNotificationConfigurationsResp
- type DescribePoliciesResp
- type DescribeScalingActivitiesResp
- type DescribeScalingProcessTypesResp
- type DescribeScheduledActionsResp
- type DescribeTagsResp
- type DescribeTerminationPolicyTypesResp
- type EBS
- type EnabledMetric
- type Error
- type Filter
- type GenericResp
- type Instance
- type InstanceMonitoring
- type LaunchConfiguration
- type MetricCollection
- type MetricGranularity
- type NotificationConfiguration
- type ProcessType
- type PutScalingPolicyResp
- type PutScheduledUpdateGroupAction
- type ScalingPolicy
- type ScheduledUpdateGroupAction
- type SuspendedProcess
- type Tag
- type TerminateInstanceInAutoScalingGroupResp
- type UpdateAutoScalingGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct { ActivityId string AutoScalingGroupName string Cause string Description string Details string EndTime time.Time Progress int StartTime time.Time StatusCode string StatusMessage string }
Activity - Encapsulates the Activity data type
See http://goo.gl/fRaVi1 for more details
type AdjustmentType ¶
type AdjustmentType struct {
AdjustmentType string //Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.
}
AdjustmentType - specifies whether the PutScalingPolicy ScalingAdjustment parameter is an absolute number or a percentage of the current capacity.
See http://goo.gl/tCFqeL for more details
type AutoScaling ¶
The AutoScaling type encapsulates operations within a specific EC2 region.
func New ¶
func New(auth aws.Auth, region aws.Region) *AutoScaling
New creates a new AutoScaling Client.
func (*AutoScaling) AttachInstances ¶
func (as *AutoScaling) AttachInstances(name string, instanceIds []string) (resp *GenericResp, err error)
Attach running instances to an autoscaling group
See http://goo.gl/zDZbuQ for more details.
func (*AutoScaling) CreateAutoScalingGroup ¶
func (as *AutoScaling) CreateAutoScalingGroup(options *CreateAutoScalingGroup) (resp *GenericResp, err error)
Creates an Auto Scaling Group on AWS
Required params: AutoScalingGroupName, MinSize, MaxSize
See http://goo.gl/3S13Bv for more details.
func (*AutoScaling) CreateLaunchConfiguration ¶
func (as *AutoScaling) CreateLaunchConfiguration(options *CreateLaunchConfiguration) (resp *GenericResp, err error)
Creates an Auto Scaling Group on AWS
Required params: AutoScalingGroupName, MinSize, MaxSize
See http://goo.gl/3S13Bv for more details.
func (*AutoScaling) CreateOrUpdateTags ¶
func (as *AutoScaling) CreateOrUpdateTags(tags []Tag) (resp *GenericResp, err error)
Creates or Updates Auto Scaling Group Tags
See http://goo.gl/e1UIXb for more details.
func (*AutoScaling) DeleteAutoScalingGroup ¶
func (as *AutoScaling) DeleteAutoScalingGroup(asgName string, forceDelete bool) (resp *GenericResp, err error)
Deletes an Auto Scaling Group
See http://goo.gl/us7VSffor for more details.
func (*AutoScaling) DeleteLaunchConfiguration ¶
func (as *AutoScaling) DeleteLaunchConfiguration(name string) (resp *GenericResp, err error)
Deletes a Launch Configuration
See http://goo.gl/xksfyR for more details.
func (*AutoScaling) DeleteNotificationConfiguration ¶
func (as *AutoScaling) DeleteNotificationConfiguration(asgName string, topicARN string) (resp *GenericResp, err error)
Deletes notifications created by PutNotificationConfiguration.
See http://goo.gl/jTqoYz for more details
func (*AutoScaling) DeletePolicy ¶
func (as *AutoScaling) DeletePolicy(asgName string, policyName string) (resp *GenericResp, err error)
Deletes a policy created by PutScalingPolicy.
policyName might be the policy name or ARN
See http://goo.gl/aOQPH2 for more details
func (*AutoScaling) DeleteScheduledAction ¶
func (as *AutoScaling) DeleteScheduledAction(asgName string, scheduledActionName string) (resp *GenericResp, err error)
Deletes a scheduled action previously created using the PutScheduledUpdateGroupAction.
See http://goo.gl/Zss9CH for more details
func (*AutoScaling) DeleteTags ¶
func (as *AutoScaling) DeleteTags(tags []Tag) (resp *GenericResp, err error)
Delete Auto Scaling Group Tags
See http://goo.gl/o8HzAk for more details.
func (*AutoScaling) DescribeAccountLimits ¶
func (as *AutoScaling) DescribeAccountLimits() (resp *DescribeAccountLimitsResp, err error)
DescribeAccountLimits - Returns the limits for the Auto Scaling resources currently allowed for your AWS account.
See http://goo.gl/tKsMN0 for more details.
func (*AutoScaling) DescribeAdjustmentTypes ¶
func (as *AutoScaling) DescribeAdjustmentTypes() (resp *DescribeAdjustmentTypesResp, err error)
DescribeAdjustmentTypes - Returns policy adjustment types for use in the PutScalingPolicy action.
See http://goo.gl/hGx3Pc for more details.
func (*AutoScaling) DescribeAutoScalingGroups ¶
func (as *AutoScaling) DescribeAutoScalingGroups(names []string, maxRecords int, nextToken string) (resp *DescribeAutoScalingGroupsResp, err error)
DescribeAutoScalingGroups - Returns a full description of each Auto Scaling group in the given list If no autoscaling groups are provided, returns the details of all autoscaling groups Supports pagination by using the returned "NextToken" parameter for subsequent calls
See http://goo.gl/nW74Ut for more details.
func (*AutoScaling) DescribeAutoScalingInstances ¶
func (as *AutoScaling) DescribeAutoScalingInstances(ids []string, maxRecords int, nextToken string) (resp *DescribeAutoScalingInstancesResp, err error)
DescribeAutoScalingInstances - Returns a description of each Auto Scaling instance in the InstanceIds list. If a list is not provided, the service returns the full details of all instances up to a maximum of 50 By default, the service returns a list of 20 items. Supports pagination by using the returned "NextToken" parameter for subsequent calls
See http://goo.gl/ckzORt for more details.
func (*AutoScaling) DescribeAutoScalingNotificationTypes ¶
func (as *AutoScaling) DescribeAutoScalingNotificationTypes() (resp *DescribeAutoScalingNotificationTypesResp, err error)
DescribeAutoScalingNotificationTypes - Returns a list of all notification types that are supported by Auto Scaling
See http://goo.gl/pmLIoE for more details.
func (*AutoScaling) DescribeLaunchConfigurations ¶
func (as *AutoScaling) DescribeLaunchConfigurations(names []string, maxRecords int, nextToken string) (resp *DescribeLaunchConfigurationsResp, err error)
DescribeLaunchConfigurations - Returns a full description of all launch configurations, or the specified launch configurations.
http://goo.gl/y31YYE for more details.
func (*AutoScaling) DescribeMetricCollectionTypes ¶
func (as *AutoScaling) DescribeMetricCollectionTypes() (resp *DescribeMetricCollectionTypesResp, err error)
DescribeMetricCollectionTypes - Returns a list of metrics and a corresponding list of granularities for each metric
See http://goo.gl/UyYc3i for more details.
func (*AutoScaling) DescribeNotificationConfigurations ¶
func (as *AutoScaling) DescribeNotificationConfigurations(asgNames []string, maxRecords int, nextToken string) (resp *DescribeNotificationConfigurationsResp, err error)
DescribeNotificationConfigurations - Returns a list of notification actions associated with Auto Scaling groups for specified events. Supports pagination by using the returned "NextToken" parameter for subsequent calls
http://goo.gl/qiAH31 for more details.
func (*AutoScaling) DescribePolicies ¶
func (as *AutoScaling) DescribePolicies(asgName string, policyNames []string, maxRecords int, nextToken string) (resp *DescribePoliciesResp, err error)
DescribePolicies - Returns descriptions of what each policy does. Supports pagination by using the returned "NextToken" parameter for subsequent calls
http://goo.gl/bN7A9Tfor more details.
func (*AutoScaling) DescribeScalingActivities ¶
func (as *AutoScaling) DescribeScalingActivities(asgName string, activityIds []string, maxRecords int, nextToken string) (resp *DescribeScalingActivitiesResp, err error)
DescribeScalingActivities - Returns the scaling activities for the specified Auto Scaling group. Supports pagination by using the returned "NextToken" parameter for subsequent calls
http://goo.gl/noOXIC more details.
func (*AutoScaling) DescribeScalingProcessTypes ¶
func (as *AutoScaling) DescribeScalingProcessTypes() (resp *DescribeScalingProcessTypesResp, err error)
DescribeScalingProcessTypes - Returns scaling process types for use in the ResumeProcesses and SuspendProcesses actions.
See http://goo.gl/rkp2tw for more details.
func (*AutoScaling) DescribeScheduledActions ¶
func (as *AutoScaling) DescribeScheduledActions(asgName string, actionNames []string, sTime time.Time, eTime time.Time, maxRecords int, nextToken string) (resp *DescribeScheduledActionsResp, err error)
DescribeScheduledActions - Lists all the actions scheduled for your Auto Scaling group that haven't been executed. Supports pagination by using the returned "NextToken" parameter for subsequent calls
See http://goo.gl/zqrJLx for more details.
func (*AutoScaling) DescribeTags ¶
func (as *AutoScaling) DescribeTags(filter *Filter, maxRecords int, nextToken string) (resp *DescribeTagsResp, err error)
DescribeTags - Lists the Auto Scaling group tags. Supports pagination by using the returned "NextToken" parameter for subsequent calls
See http://goo.gl/ZTEU3G for more details.
func (*AutoScaling) DescribeTerminationPolicyTypes ¶
func (as *AutoScaling) DescribeTerminationPolicyTypes() (resp *DescribeTerminationPolicyTypesResp, err error)
DescribeTerminationPolicyTypes - Returns a list of all termination policies supported by Auto Scaling
See http://goo.gl/ZTEU3G for more details.
func (*AutoScaling) DisableMetricsCollection ¶
func (as *AutoScaling) DisableMetricsCollection(asgName string, metrics []string) (resp *GenericResp, err error)
DisableMetricsCollection - Disables monitoring of group metrics for the Auto Scaling group specified in asgName. You can specify the list of affected metrics with the metrics parameter. If no metrics are specified, all metrics are disabled
See http://goo.gl/kAvzQw for more details.
func (*AutoScaling) EnableMetricsCollection ¶
func (as *AutoScaling) EnableMetricsCollection(asgName string, metrics []string, granularity string) (resp *GenericResp, err error)
EnableMetricsCollection - Enables monitoring of group metrics for the Auto Scaling group specified in asNmae. You can specify the list of affected metrics with the metrics parameter. Auto Scaling metrics collection can be turned on only if the InstanceMonitoring flag is set to true. Currently, the only legal granularity is "1Minute".
See http://goo.gl/UcVDWn for more details.
func (*AutoScaling) ExecutePolicy ¶
func (as *AutoScaling) ExecutePolicy(policyName string, asgName string, honorCooldown bool) (resp *GenericResp, err error)
ExecutePolicy - Executes the specified policy.
See http://goo.gl/BxHpFc for more details.
func (*AutoScaling) PutNotificationConfiguration ¶
func (as *AutoScaling) PutNotificationConfiguration(asgName string, notificationTypes []string, topicARN string) (resp *GenericResp, err error)
PutNotificationConfiguration - Configures an Auto Scaling group to send notifications when specified events take place.
See http://goo.gl/9XrROq for more details.
func (*AutoScaling) PutScalingPolicy ¶
func (as *AutoScaling) PutScalingPolicy(asgName string, policyName string, scalingAdj int, aType string, cooldown int, minAdjStep int) (resp *PutScalingPolicyResp, err error)
PutScalingPolicy - Creates or updates a policy for an Auto Scaling group
See http://goo.gl/o0E8hl for more details.
func (*AutoScaling) PutScheduledUpdateGroupAction ¶
func (as *AutoScaling) PutScheduledUpdateGroupAction(options *PutScheduledUpdateGroupAction) (resp *GenericResp, err error)
PutScheduledUpdateGroupAction - Creates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling action, if you leave a parameter unspecified, the corresponding value remains unchanged in the affected Auto Scaling group.
See http://goo.gl/sLPi0d for more details.
func (*AutoScaling) ResumeProcesses ¶
func (as *AutoScaling) ResumeProcesses(asgName string, scalingProcesses []string) (resp *GenericResp, err error)
ResumeProcesses - Resumes all suspended Auto Scaling processes for an Auto Scaling group.
See http://goo.gl/XWIIg1 for more details.
func (*AutoScaling) SetDesiredCapacity ¶
func (as *AutoScaling) SetDesiredCapacity(asgName string, desiredCapacity int, honorCooldown bool) (resp *GenericResp, err error)
SetDesiredCapacity - Sets the desired size of the specified AutoScalingGroup
See http://goo.gl/3WGZbI for more details.
func (*AutoScaling) SetInstanceHealth ¶
func (as *AutoScaling) SetInstanceHealth(id string, healthStatus string, respectGracePeriod bool) (resp *GenericResp, err error)
SetInstanceHealth - Sets the health status of a specified instance that belongs to any of your Auto Scaling groups.
See http://goo.gl/j4ZRxh for more details.
func (*AutoScaling) SuspendProcesses ¶
func (as *AutoScaling) SuspendProcesses(asgName string, scalingProcesses []string) (resp *GenericResp, err error)
SuspendProcesses - Suspends Auto Scaling processes for an Auto Scaling group.
See http://goo.gl/DUJpQy for more details.
func (*AutoScaling) TerminateInstanceInAutoScalingGroup ¶
func (as *AutoScaling) TerminateInstanceInAutoScalingGroup(id string, decrCap bool) (resp *TerminateInstanceInAutoScalingGroupResp, err error)
TerminateInstanceInAutoScalingGroup - Suspends Auto Scaling processes for an Auto Scaling group. decrCap - Specifies whether terminating this instance should also decrement the size of the Auto Scaling Group
See http://goo.gl/ki5hMh for more details.
func (*AutoScaling) UpdateAutoScalingGroup ¶
func (as *AutoScaling) UpdateAutoScalingGroup(options *UpdateAutoScalingGroup) (resp *GenericResp, err error)
UpdateAutoScalingGroup - Updates the configuration for the specified AutoScalingGroup.
See http://goo.gl/rqrmxy for more details.
type AutoScalingGroup ¶
type AutoScalingGroup struct { AutoScalingGroupARN string AutoScalingGroupName string AvailabilityZones []string `xml:"AvailabilityZones>member"` CreatedTime time.Time DefaultCooldown int DesiredCapacity int EnabledMetrics []EnabledMetric `xml:"EnabledMetric>member"` HealthCheckGracePeriod int HealthCheckType string Instances []Instance `xml:"Instances>member"` LaunchConfigurationName string LoadBalancerNames []string `xml:"LoadBalancerNames>member"` MaxSize int MinSize int PlacementGroup string Status string SuspendedProcesses []SuspendedProcess `xml:"SuspendedProcesses>member"` Tags []Tag `xml:"Tags>member"` TerminationPolicies []string `xml:"TerminationPolicies>member"` VPCZoneIdentifier string }
AutoScalingGroup encapsulates an Auto Scaling Group object
See http://goo.gl/fJdYhg for more details.
type BlockDeviceMapping ¶
BlockDeviceMapping represents the association of a block device with ebs volume.
See http://goo.gl/wEGwkU for more details.
type CreateAutoScalingGroup ¶
type CreateAutoScalingGroup struct { AutoScalingGroupName string AvailabilityZones []string DefaultCooldown int DesiredCapacity int HealthCheckGracePeriod int HealthCheckType string InstanceId string LaunchConfigurationName string LoadBalancerNames []string MaxSize int MinSize int PlacementGroup string Tags []Tag TerminationPolicies []string VPCZoneIdentifier string }
The CreateAutoScalingGroup type encapsulates options for the respective request.
See http://goo.gl/3S13Bv for more details.
type CreateLaunchConfiguration ¶
type CreateLaunchConfiguration struct { AssociatePublicIpAddress bool BlockDeviceMappings []BlockDeviceMapping EbsOptimized bool IamInstanceProfile string ImageId string InstanceId string InstanceMonitoring InstanceMonitoring InstanceType string KernelId string KeyName string LaunchConfigurationName string RamdiskId string SecurityGroups []string SpotPrice string UserData string }
The CreateLaunchConfiguration type encapsulates options for the respective request.
See http://goo.gl/Uw916w for more details.
type DescribeAccountLimitsResp ¶
type DescribeAccountLimitsResp struct { MaxNumberOfAutoScalingGroups int `xml:"DescribeAccountLimitsResult>MaxNumberOfAutoScalingGroups"` MaxNumberOfLaunchConfigurations int `xml:"DescribeAccountLimitsResult>MaxNumberOfLaunchConfigurations"` RequestId string `xml:"ResponseMetadata>RequestId"` }
DescribeAccountLimits response wrapper
See http://goo.gl/tKsMN0 for more details.
type DescribeAdjustmentTypesResp ¶
type DescribeAdjustmentTypesResp struct { AdjustmentTypes []AdjustmentType `xml:"DescribeAdjustmentTypesResult>AdjustmentTypes>member"` RequestId string `xml:"ResponseMetadata>RequestId"` }
DescribeAdjustmentTypes response wrapper
See http://goo.gl/hGx3Pc for more details.
type DescribeAutoScalingGroupsResp ¶
type DescribeAutoScalingGroupsResp struct { AutoScalingGroups []AutoScalingGroup `xml:"DescribeAutoScalingGroupsResult>AutoScalingGroups>member"` NextToken string `xml:"DescribeAutoScalingGroupsResult>NextToken"` RequestId string `xml:"ResponseMetadata>RequestId"` }
DescribeAutoScalingGroups response wrapper
See http://goo.gl/nW74Ut for more details.
type DescribeAutoScalingInstancesResp ¶
type DescribeAutoScalingInstancesResp struct { AutoScalingInstances []Instance `xml:"DescribeAutoScalingInstancesResult>AutoScalingInstances>member"` NextToken string `xml:"DescribeAutoScalingInstancesResult>NextToken"` RequestId string `xml:"ResponseMetadata>RequestId"` }
DescribeAutoScalingInstances response wrapper
See http://goo.gl/ckzORt for more details.
type DescribeAutoScalingNotificationTypesResp ¶
type DescribeAutoScalingNotificationTypesResp struct { AutoScalingNotificationTypes []string `xml:"DescribeAutoScalingNotificationTypesResult>AutoScalingNotificationTypes>member"` RequestId string `xml:"ResponseMetadata>RequestId"` }
DescribeAutoScalingNotificationTypes response wrapper
See http://goo.gl/pmLIoE for more details.
type DescribeLaunchConfigurationsResp ¶
type DescribeLaunchConfigurationsResp struct { LaunchConfigurations []LaunchConfiguration `xml:"DescribeLaunchConfigurationsResult>LaunchConfigurations>member"` NextToken string `xml:"DescribeLaunchConfigurationsResult>NextToken"` RequestId string `xml:"ResponseMetadata>RequestId"` }
DescribeLaunchConfigurations response wrapper
See http://goo.gl/y31YYE for more details.
type DescribeMetricCollectionTypesResp ¶
type DescribeMetricCollectionTypesResp struct { Granularities []MetricGranularity `xml:"DescribeMetricCollectionTypesResult>Granularities>member"` Metrics []MetricCollection `xml:"DescribeMetricCollectionTypesResult>Metrics>member"` RequestId string `xml:"ResponseMetadata>RequestId"` }
DescribeMetricCollectionTypesResp response wrapper
See http://goo.gl/UyYc3i for more details.
type DescribeNotificationConfigurationsResp ¶
type DescribeNotificationConfigurationsResp struct { NotificationConfigurations []NotificationConfiguration `xml:"DescribeNotificationConfigurationsResult>NotificationConfigurations>member"` NextToken string `xml:"DescribeNotificationConfigurationsResult>NextToken"` RequestId string `xml:"ResponseMetadata>RequestId"` }
DescribeNotificationConfigurations response wrapper
See http://goo.gl/qiAH31 for more details.
type DescribePoliciesResp ¶
type DescribePoliciesResp struct { ScalingPolicies []ScalingPolicy `xml:"DescribePoliciesResult>ScalingPolicies>member"` NextToken string `xml:"DescribePoliciesResult>NextToken"` RequestId string `xml:"ResponseMetadata>RequestId"` }
DescribePolicies response wrapper
http://goo.gl/bN7A9T for more details.
type DescribeScalingActivitiesResp ¶
type DescribeScalingActivitiesResp struct { Activities []Activity `xml:"DescribeScalingActivitiesResult>Activities>member"` NextToken string `xml:"DescribeScalingActivitiesResult>NextToken"` RequestId string `xml:"ResponseMetadata>RequestId"` }
DescribeScalingActivities response wrapper
http://goo.gl/noOXIC for more details.
type DescribeScalingProcessTypesResp ¶
type DescribeScalingProcessTypesResp struct { Processes []ProcessType `xml:"DescribeScalingProcessTypesResult>Processes>member"` RequestId string `xml:"ResponseMetadata>RequestId"` }
DescribeScalingProcessTypes response wrapper
See http://goo.gl/rkp2tw for more details.
type DescribeScheduledActionsResp ¶
type DescribeScheduledActionsResp struct { ScheduledUpdateGroupActions []ScheduledUpdateGroupAction `xml:"DescribeScheduledActionsResult>ScheduledUpdateGroupActions>member"` NextToken string `xml:"DescribeScheduledActionsResult>NextToken"` RequestId string `xml:"ResponseMetadata>RequestId"` }
DescribeScheduledActions response wrapper
See http://goo.gl/zqrJLx for more details.
type DescribeTagsResp ¶
type DescribeTagsResp struct { Tags []Tag `xml:"DescribeTagsResult>Tags>member"` NextToken string `xml:"DescribeTagsResult>NextToken"` RequestId string `xml:"ResponseMetadata>RequestId"` }
DescribeTags response wrapper
See http://goo.gl/ZTEU3G for more details.
type DescribeTerminationPolicyTypesResp ¶
type DescribeTerminationPolicyTypesResp struct { TerminationPolicyTypes []string `xml:"DescribeTerminationPolicyTypesResult>TerminationPolicyTypes>member"` RequestId string `xml:"ResponseMetadata>RequestId"` }
DescribeTerminationPolicyTypes response wrapper
See http://goo.gl/ZTEU3G for more details.
type EBS ¶
type EBS struct { DeleteOnTermination bool Iops int SnapshotId string VolumeSize int VolumeType string }
EBS represents the AWS EBS volume data type
See http://goo.gl/nDUL2h for more details
type EnabledMetric ¶
type EnabledMetric struct { Granularity string // The granularity of the enabled metric. Metric string // The name of the enabled metric. }
EnabledMetric encapsulates a metric associated with an Auto Scaling Group
See http://goo.gl/hXiH17 for more details
type Error ¶
type Error struct { // HTTP status code (200, 403, ...) StatusCode int // AutoScaling error code ("ResourceInUse", ...) Code string // The human-oriented error message Message string RequestId string `xml:"RequestID"` }
Error encapsulates an error returned by the AWS Auto Scaling API.
See http://goo.gl/VZGuC for more details.
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter builds filtering parameters to be used in an autoscaling query which supports filtering. For example:
filter := NewFilter() filter.Add("architecture", "i386") filter.Add("launch-index", "0") resp, err := as.DescribeTags(filter,nil,nil)
type GenericResp ¶
type GenericResp struct {
RequestId string `xml:"ResponseMetadata>RequestId"`
}
Generic response type containing only requiest id
type Instance ¶
type Instance struct { // General instance information AutoScalingGroupName string AvailabilityZone string HealthStatus string InstanceId string LaunchConfigurationName string LifecycleState string // Can be one of Pending | Quarantined | InService | Terminating | Terminated }
Instance encapsulates an instance type as returned by the Auto Scaling API
See http://goo.gl/NwBxGh and http://goo.gl/OuoqhS for more details.
type InstanceMonitoring ¶
type InstanceMonitoring struct {
Enabled bool
}
InstanceMonitoring data type
See http://goo.gl/TfaPwz for more details
type LaunchConfiguration ¶
type LaunchConfiguration struct { AssociatePublicIpAddress bool BlockDeviceMappings []BlockDeviceMapping `xml:"BlockDeviceMappings>member"` CreatedTime time.Time EbsOptimized bool IamInstanceProfile string ImageId string InstanceId string InstanceMonitoring InstanceMonitoring InstanceType string KernelId string KeyName string LaunchConfigurationARN string LaunchConfigurationName string RamdiskId string SecurityGroups []string `xml:"SecurityGroups>member"` SpotPrice string UserData string `xml:"UserData"` }
LaunchConfiguration - Encapsulates the LaunchConfiguration Data Type
type MetricCollection ¶
type MetricCollection struct {
Metric string
}
MetricCollection - Encapsulates the MetricCollectionType
See http://goo.gl/YrEG6h for more details
type MetricGranularity ¶
type MetricGranularity struct {
Granularity string
}
MetricGranularity - Encapsulates the MetricGranularityType
See http://goo.gl/WJ82AA for more details
type NotificationConfiguration ¶
type NotificationConfiguration struct { AutoScalingGroupName string NotificationType string TopicARN string }
NotificationConfiguration - Encapsulates the NotificationConfigurationType
See http://goo.gl/M8xYOQ for more details
type ProcessType ¶
type ProcessType struct {
ProcessName string
}
Encapsulates the Auto Scaling process data type
See http://goo.gl/9BvNik for more details.
type PutScalingPolicyResp ¶
type PutScalingPolicyResp struct { PolicyARN string `xml:"PutScalingPolicyResult>PolicyARN"` RequestId string `xml:"ResponseMetadata>RequestId"` }
PutScalingPolicy response wrapper
See http://goo.gl/o0E8hl for more details.
type PutScheduledUpdateGroupAction ¶
type PutScheduledUpdateGroupAction struct { AutoScalingGroupName string DesiredCapacity int EndTime time.Time MaxSize int MinSize int Recurrence string ScheduledActionName string StartTime time.Time }
PutScheduledUpdateGroupAction encapsulates the options for the respective request
See http://goo.gl/sLPi0d for more details
type ScalingPolicy ¶
type ScalingPolicy struct { AdjustmentType string // ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity Alarms []Alarm `xml:"Alarms>member"` //A list of CloudWatch Alarms related to the policy AutoScalingGroupName string Cooldown int MinAdjustmentStep int // Changes the DesiredCapacity of ASG by at least the specified number of instances. PolicyARN string PolicyName string ScalingAdjustment int }
ScalingPolicy - Encapsulates the ScalingPolicyType
See http://goo.gl/BYAT18 for more details
type ScheduledUpdateGroupAction ¶
type ScheduledUpdateGroupAction struct { AutoScalingGroupName string DesiredCapacity int EndTime time.Time MaxSize int MinSize int Recurrence string ScheduledActionARN string ScheduledActionName string StartTime time.Time Time time.Time }
ScheduledUpdateGroupAction - Encapsulates the ScheduledUpdateGroupAction data type
See http://goo.gl/z2Kfxe for more details
type SuspendedProcess ¶
SuspenedProcess encapsulates an Auto Scaling process that has been suspended
See http://goo.gl/iObPgF for more details
type Tag ¶
type Tag struct { Key string PropagateAtLaunch bool // Specifies whether the new tag will be applied to instances launched after the tag is created ResourceId string // the name of the Auto Scaling group - not required if creating ASG ResourceType string // currently only auto-scaling-group is supported - not required if creating ASG Value string }
Tag encapsulates tag applied to an Auto Scaling group.
See http://goo.gl/MG1hqs for more details
type TerminateInstanceInAutoScalingGroupResp ¶
type TerminateInstanceInAutoScalingGroupResp struct { Activity Activity `xml:"TerminateInstanceInAutoScalingGroupResult>Activity"` RequestId string `xml:"ResponseMetadata>RequestId"` }
TerminateInstanceInAutoScalingGroupResp response wrapper
See http://goo.gl/ki5hMh for more details.
type UpdateAutoScalingGroup ¶
type UpdateAutoScalingGroup struct { AutoScalingGroupName string AvailabilityZones []string DefaultCooldown int DesiredCapacity int HealthCheckGracePeriod int HealthCheckType string InstanceId string LaunchConfigurationName string MaxSize int MinSize int PlacementGroup string TerminationPolicies []string VPCZoneIdentifier string }
The UpdateAutoScalingGroup type encapsulates options for the respective request.
See http://goo.gl/rqrmxy for more details.