autoscaling

package
Version: v0.0.0-...-b425644 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	StatusCode           string    `xml:"StatusCode"`           // Failed</StatusCode>
	Progress             int       `xml:"Progress"`             // 0</Progress>
	ActivityId           string    `xml:"ActivityId"`           // 063308ae-aa22-4a9b-94f4-9faeEXAMPLE</ActivityId>
	StartTime            time.Time `xml:"StartTime"`            // 2012-04-12T17:32:07.882Z</StartTime>
	AutoScalingGroupName string    `xml:"AutoScalingGroupName"` // my-test-asg</AutoScalingGroupName>
	Cause                string    `xml:"Cause"`                // At 2012-04-12T17:31:30Z a user request created an AutoScalingGroup changing the desired capacity from 0 to 1.  At 2012-04-12T17:32:07Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 1.</Cause>
	Details              string    `xml:"Details"`              // {}</Details>
	Description          string    `xml:"Description"`          // Launching a new EC2 instance.  Status Reason: The image id 'ami-4edb0327' does not exist. Launching EC2 instance failed.</Description>
	EndTime              time.Time `xml:"EndTime"`              // 2012-04-12T17:32:08Z</EndTime>
	StatusMessage        string    `xml:"StatusMessage"`        // The image id 'ami-4edb0327' does not exist. Launching EC2 instance failed.</StatusMessage>
}

type AutoScalingGroup

type AutoScalingGroup struct {
	AutoScalingGroupARN     string              `xml:"AutoScalingGroupARN,omitempty"`
	AutoScalingGroupName    string              `xml:"AutoScalingGroupName,omitempty"`
	AvailabilityZones       []string            `xml:"AvailabilityZones,omitempty"`
	CreatedTime             time.Time           `xml:"CreatedTime,omitempty"`
	DefaultCooldown         int                 `xml:"DefaultCooldown,omitempty"`
	DesiredCapacity         int                 `xml:"DesiredCapacity,omitempty"`
	EnabledMetrics          []*EnabledMetric    `xml:"EnabledMetrics,omitempty"`
	HealthCheckGracePeriod  int                 `xml:"HealthCheckGracePeriod,omitempty"`
	HealthCheckType         string              `xml:"HealthCheckType,omitempty"`
	Instances               []*Instance         `xml:"Instances>member,omitempty"`
	LaunchConfigurationName string              `xml:"LaunchConfigurationName,omitempty"`
	LoadBalancerNames       []string            `xml:"LoadBalancerNames>member,omitempty"`
	MaxSize                 int                 `xml:"MaxSize,omitempty"`
	MinSize                 int                 `xml:"MinSize,omitempty"`
	PlacementGroup          string              `xml:"PlacementGroup,omitempty"`
	Status                  string              `xml:"Status,omitempty"`
	SuspendedProcesses      []*SuspendedProcess `xml:"SuspendedProcesses,omitempty"`
	Tags                    []*Tag              `xml:"Tags,omitempty"`
	TerminationPolicies     []string            `xml:"TerminationPolicies,omitempty"`
	VPCZoneIdentifier       string              `xml:"VPCZoneIdentifier,omitempty"`
}

type BlockDeviceMapping

type BlockDeviceMapping struct {
	DeviceName  string `xml:",omitempty"`
	Ebs         *Ebs   `xml:",omitempty"`
	NoDevice    bool   `xml:",omitempty"`
	VirtualName string `xml:",omitempty"`
}

type Client

type Client struct {
	*aws.Client
}

func NewFromEnv

func NewFromEnv() *Client

func (*Client) Endpoint

func (client *Client) Endpoint() (string, error)

func (*Client) Load

func (client *Client) Load(method string, query string, i interface{}) error

type DescribeAutoScalingGroups

type DescribeAutoScalingGroups struct {
	AutoScalingGroupNames []string `xml:"AutoScalingGroupNames,omitempty"`
	MaxRecords            int      `xml:"MaxRecords,omitempty"`
	NextToken             string   `xml:"NextToken,omitempty"`
}

func (*DescribeAutoScalingGroups) Execute

type DescribeAutoScalingGroupsResponse

type DescribeAutoScalingGroupsResponse struct {
	DescribeAutoScalingGroupsResult *DescribeAutoScalingGroupsResult `xml:"DescribeAutoScalingGroupsResult"`
}

type DescribeAutoScalingGroupsResult

type DescribeAutoScalingGroupsResult struct {
	AutoScalingGroups []*AutoScalingGroup `xml:"AutoScalingGroups>member"`
}

type DescribeLaunchConfigurations

type DescribeLaunchConfigurations struct {
	LaunchConfigurationNames []string `xml:",omitempty"`
	MaxRecords               int      `xml:",omitempty"`
	NextToken                string   `xml:",omitempty"`
}

func (*DescribeLaunchConfigurations) Execute

type DescribeLaunchConfigurationsResponse

type DescribeLaunchConfigurationsResponse struct {
	XMLName                            xml.Name                            `xml:"DescribeLaunchConfigurationsResponse"`
	DescribeLaunchConfigurationsResult *DescribeLaunchConfigurationsResult `xml:"DescribeLaunchConfigurationsResult,omitempty"`
}

type DescribeLaunchConfigurationsResult

type DescribeLaunchConfigurationsResult struct {
	XMLName              xml.Name               `xml:"DescribeLaunchConfigurationsResult"`
	LaunchConfigurations []*LaunchConfiguration `xml:"LaunchConfigurations>member,omitempty"`
	NextToken            string                 `xml:",omitempty"`
}

type DescribeScalingActivities

type DescribeScalingActivities struct {
	ActivityIds          []string
	AutoScalingGroupName string
	MaxRecords           string
	NextToken            string
}

func (*DescribeScalingActivities) Execute

type DescribeScalingActivitiesResponse

type DescribeScalingActivitiesResponse struct {
	XMLName                         xml.Name                         `xml:"DescribeScalingActivitiesResponse"`
	DescribeScalingActivitiesResult *DescribeScalingActivitiesResult `xml:"DescribeScalingActivitiesResult"`
}

type DescribeScalingActivitiesResult

type DescribeScalingActivitiesResult struct {
	Activities []*Activity `xml:"Activities>member"`
}

type Ebs

type Ebs struct {
	DeleteOnTermination bool   `xml:",omitempty"`
	Iops                int    `xml:",omitempty"`
	SnapshotId          string `xml:",omitempty"`
	VolumeSize          int    `xml:",omitempty"`
	VolumeType          string `xml:",omitempty"`
}

type EnabledMetric

type EnabledMetric struct {
	Granularity string `xml:"Granularity,omitempty"`
	Metric      string `xml:"Metric,omitempty"`
}

type ExecutePolicy

type ExecutePolicy struct {
	AutoScalingGroupName string
	HonorCooldown        bool
	PolicyName           string
}

func (*ExecutePolicy) Execute

func (action *ExecutePolicy) Execute(client *Client) (string, error)

type Instance

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

type InstanceMonitoring

type InstanceMonitoring struct {
	Enabled bool `xml:",omitempty"`
}

type LaunchConfiguration

type LaunchConfiguration struct {
	AssociatePublicIpAddress bool                  `xml:",omitempty"`
	BlockDeviceMappings      []*BlockDeviceMapping `xml:",omitempty"`
	CreatedTime              time.Time             `xml:",omitempty"`
	EbsOptimized             bool                  `xml:",omitempty"`
	IamInstanceProfile       string                `xml:",omitempty"`
	ImageId                  string                `xml:",omitempty"`
	InstanceMonitoring       *InstanceMonitoring   `xml:",omitempty"`
	InstanceType             string                `xml:",omitempty"`
	KernelId                 string                `xml:",omitempty"`
	KeyName                  string                `xml:",omitempty"`
	LaunchConfigurationARN   string                `xml:",omitempty"`
	LaunchConfigurationName  string                `xml:",omitempty"`
	PlacementTenancy         string                `xml:",omitempty"`
	RamdiskId                string                `xml:",omitempty"`
	SecurityGroups           []string              `xml:"SecurityGroups>member,omitempty"`
	SpotPrice                string                `xml:",omitempty"`
	UserData                 string                `xml:",omitempty"`
}

type SuspendedProcess

type SuspendedProcess struct {
	ProcessName      string `xml:"ProcessName,omitempty"`
	SuspensionReason string `xml:"SuspensionReason,omitempty"`
}

type Tag

type Tag struct {
	Key               string `xml:"Key,omitempty"`
	PropagateAtLaunch bool   `xml:"PropagateAtLaunch,omitempty"`
	ResourceId        string `xml:"ResourceId,omitempty"`
	ResourceType      string `xml:"ResourceType,omitempty"`
	Value             string `xml:"Value,omitempty"`
}

type Values

type Values map[string]string

Jump to

Keyboard shortcuts

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