Documentation ¶
Overview ¶
The autoscaling package provides types and functions for interaction with the AWS AutoScaling service (autoscaling)
Index ¶
- Constants
- type AutoScaling
- func (autoscaling *AutoScaling) CreateAutoScalingGroup(options *CreateAutoScalingGroup) (resp *SimpleResp, err error)
- func (autoscaling *AutoScaling) CreateLaunchConfiguration(options *CreateLaunchConfiguration) (resp *SimpleResp, err error)
- func (autoscaling *AutoScaling) DeleteAutoScalingGroup(options *DeleteAutoScalingGroup) (resp *SimpleResp, err error)
- func (autoscaling *AutoScaling) DeleteLaunchConfiguration(options *DeleteLaunchConfiguration) (resp *SimpleResp, err error)
- func (autoscaling *AutoScaling) DescribeAutoScalingGroups(options *DescribeAutoScalingGroups) (resp *DescribeAutoScalingGroupsResp, err error)
- func (autoscaling *AutoScaling) DescribeLaunchConfigurations(options *DescribeLaunchConfigurations) (resp *DescribeLaunchConfigurationsResp, err error)
- func (autoscaling *AutoScaling) UpdateAutoScalingGroup(options *UpdateAutoScalingGroup) (resp *SimpleResp, err error)
- type AutoScalingGroup
- type BlockDeviceMapping
- type CreateAutoScalingGroup
- type CreateLaunchConfiguration
- type DeleteAutoScalingGroup
- type DeleteLaunchConfiguration
- type DescribeAutoScalingGroups
- type DescribeAutoScalingGroupsResp
- type DescribeLaunchConfigurations
- type DescribeLaunchConfigurationsResp
- type Error
- type Instance
- type LaunchConfiguration
- type SimpleResp
- type Tag
- type UpdateAutoScalingGroup
Constants ¶
const APIVersion = "2011-01-01"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoScaling ¶
The AutoScaling type encapsulates operations operations with the autoscaling endpoint.
func New ¶
func New(auth aws.Auth, region aws.Region) *AutoScaling
New creates a new AutoScaling instance.
func NewWithClient ¶
func (*AutoScaling) CreateAutoScalingGroup ¶
func (autoscaling *AutoScaling) CreateAutoScalingGroup(options *CreateAutoScalingGroup) (resp *SimpleResp, err error)
func (*AutoScaling) CreateLaunchConfiguration ¶
func (autoscaling *AutoScaling) CreateLaunchConfiguration(options *CreateLaunchConfiguration) (resp *SimpleResp, err error)
func (*AutoScaling) DeleteAutoScalingGroup ¶
func (autoscaling *AutoScaling) DeleteAutoScalingGroup(options *DeleteAutoScalingGroup) (resp *SimpleResp, err error)
func (*AutoScaling) DeleteLaunchConfiguration ¶
func (autoscaling *AutoScaling) DeleteLaunchConfiguration(options *DeleteLaunchConfiguration) (resp *SimpleResp, err error)
func (*AutoScaling) DescribeAutoScalingGroups ¶
func (autoscaling *AutoScaling) DescribeAutoScalingGroups(options *DescribeAutoScalingGroups) (resp *DescribeAutoScalingGroupsResp, err error)
func (*AutoScaling) DescribeLaunchConfigurations ¶
func (autoscaling *AutoScaling) DescribeLaunchConfigurations(options *DescribeLaunchConfigurations) (resp *DescribeLaunchConfigurationsResp, err error)
func (*AutoScaling) UpdateAutoScalingGroup ¶
func (autoscaling *AutoScaling) UpdateAutoScalingGroup(options *UpdateAutoScalingGroup) (resp *SimpleResp, err error)
type AutoScalingGroup ¶
type AutoScalingGroup struct { AvailabilityZones []string `xml:"AvailabilityZones>member"` CreatedTime time.Time `xml:"CreatedTime"` DefaultCooldown int `xml:"DefaultCooldown"` DesiredCapacity int `xml:"DesiredCapacity"` HealthCheckGracePeriod int `xml:"HealthCheckGracePeriod"` HealthCheckType string `xml:"HealthCheckType"` InstanceId string `xml:"InstanceId"` Instances []Instance `xml:"Instances>member"` LaunchConfigurationName string `xml:"LaunchConfigurationName"` LoadBalancerNames []string `xml:"LoadBalancerNames>member"` MaxSize int `xml:"MaxSize"` MinSize int `xml:"MinSize"` Name string `xml:"AutoScalingGroupName"` Status string `xml:"Status"` Tags []Tag `xml:"Tags>member"` VPCZoneIdentifier string `xml:"VPCZoneIdentifier"` TerminationPolicies []string `xml:"TerminationPolicies>member"` }
type BlockDeviceMapping ¶
type BlockDeviceMapping struct { DeviceName string `xml:"DeviceName"` VirtualName string `xml:"VirtualName"` SnapshotId string `xml:"Ebs>SnapshotId"` VolumeType string `xml:"Ebs>VolumeType"` VolumeSize int64 `xml:"Ebs>VolumeSize"` DeleteOnTermination bool `xml:"Ebs>DeleteOnTermination"` Encrypted bool `xml:"Ebs>Encrypted"` NoDevice bool `xml:"NoDevice"` // The number of I/O operations per second (IOPS) that the volume supports. IOPS int64 `xml:"ebs>iops"` }
BlockDeviceMapping represents the association of a block device with an image.
See http://goo.gl/wnDBf for more details.
type CreateAutoScalingGroup ¶
type CreateAutoScalingGroup struct { AvailZone []string DefaultCooldown int DesiredCapacity int HealthCheckGracePeriod int HealthCheckType string InstanceId string LaunchConfigurationName string LoadBalancerNames []string MaxSize int MinSize int PlacementGroup string TerminationPolicies []string Name string Tags []Tag VPCZoneIdentifier []string SetDefaultCooldown bool SetDesiredCapacity bool SetHealthCheckGracePeriod bool SetMaxSize bool SetMinSize bool }
The CreateAutoScalingGroup request parameters
type CreateLaunchConfiguration ¶
type CreateLaunchConfiguration struct { AssociatePublicIpAddress bool IamInstanceProfile string ImageId string InstanceId string InstanceType string KernelId string KeyName string SpotPrice string Name string SecurityGroups []string UserData string BlockDevices []BlockDeviceMapping }
The CreateLaunchConfiguration request parameters
type DeleteAutoScalingGroup ¶
The DeleteLaunchConfiguration request parameters
type DeleteLaunchConfiguration ¶
type DeleteLaunchConfiguration struct {
Name string
}
The DeleteLaunchConfiguration request parameters
type DescribeAutoScalingGroups ¶
type DescribeAutoScalingGroups struct {
Names []string
}
DescribeAutoScalingGroups request params
type DescribeAutoScalingGroupsResp ¶
type DescribeAutoScalingGroupsResp struct { RequestId string `xml:"ResponseMetadata>RequestId"` AutoScalingGroups []AutoScalingGroup `xml:"DescribeAutoScalingGroupsResult>AutoScalingGroups>member"` }
type DescribeLaunchConfigurations ¶
type DescribeLaunchConfigurations struct {
Names []string
}
DescribeLaunchConfigurations request params
type DescribeLaunchConfigurationsResp ¶
type DescribeLaunchConfigurationsResp struct { RequestId string `xml:"ResponseMetadata>RequestId"` LaunchConfigurations []LaunchConfiguration `xml:"DescribeLaunchConfigurationsResult>LaunchConfigurations>member"` }
type Error ¶
type Error struct { // HTTP status code of the error. StatusCode int // AWS code of the error. Code string // Message explaining the error. Message string }
Error encapsulates an autoscaling error.
type LaunchConfiguration ¶
type LaunchConfiguration struct { AssociatePublicIpAddress bool `xml:"AssociatePublicIpAddress"` IamInstanceProfile string `xml:"IamInstanceProfile"` ImageId string `xml:"ImageId"` InstanceType string `xml:"InstanceType"` KernelId string `xml:"KernelId"` KeyName string `xml:"KeyName"` SpotPrice string `xml:"SpotPrice"` Name string `xml:"LaunchConfigurationName"` SecurityGroups []string `xml:"SecurityGroups>member"` UserData []byte `xml:"UserData"` BlockDevices []BlockDeviceMapping `xml:"BlockDeviceMappings>member"` }
type SimpleResp ¶
type SimpleResp struct {
RequestId string `xml:"ResponseMetadata>RequestId"`
}
type UpdateAutoScalingGroup ¶
type UpdateAutoScalingGroup struct { AvailZone []string DefaultCooldown int DesiredCapacity int HealthCheckGracePeriod int HealthCheckType string LaunchConfigurationName string MaxSize int MinSize int PlacementGroup string TerminationPolicies []string Name string VPCZoneIdentifier []string SetDefaultCooldown bool SetDesiredCapacity bool SetHealthCheckGracePeriod bool SetMaxSize bool SetMinSize bool }
---------------------------------------------------------------------------- Destroy The UpdateAutoScalingGroup request parameters