autoscaling

package
v0.0.0-...-f473aae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2014 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

The autoscaling package provides types and functions for interaction with the AWS AutoScaling service (autoscaling)

Index

Constants

View Source
const APIVersion = "2011-01-01"

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoScaling

type AutoScaling struct {
	aws.Auth
	aws.Region
	// contains filtered or unexported fields
}

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 NewWithClient(auth aws.Auth, region aws.Region, httpClient *http.Client) *AutoScaling

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"`
}

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
}

The CreateLaunchConfiguration request parameters

type DeleteAutoScalingGroup

type DeleteAutoScalingGroup struct {
	Name        string
	ForceDelete bool
}

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.

func (*Error) Error

func (e *Error) Error() string

type Instance

type Instance struct {
	AvailabilityZone        string `xml:"AvailabilityZone"`
	HealthStatus            string `xml:"HealthStatus"`
	InstanceId              string `xml:"InstanceId"`
	LaunchConfigurationName string `xml:"LaunchConfigurationName"`
	LifecycleState          string `xml:"LifecycleState"`
}

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"`
}

type SimpleResp

type SimpleResp struct {
	RequestId string `xml:"ResponseMetadata>RequestId"`
}

type Tag

type Tag struct {
	Key               string `xml:"Key"`
	Value             string `xml:"Value"`
	PropagateAtLaunch bool   `xml:"PropagateAtLaunch"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL