AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

LaunchTemplate

import "github.com/aws/aws-sdk-go/service/autoscaling"

type LaunchTemplate struct { LaunchTemplateSpecification *LaunchTemplateSpecification `type:"structure"` Overrides []*LaunchTemplateOverrides `type:"list"` }

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.

LaunchTemplateSpecification

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.

Overrides

Describes an override for a launch template.

Method

GoString

func (s LaunchTemplate) GoString() string

GoString returns the string representation

SetLaunchTemplateSpecification

func (s *LaunchTemplate) SetLaunchTemplateSpecification(v *LaunchTemplateSpecification) *LaunchTemplate

SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value.

SetOverrides

func (s *LaunchTemplate) SetOverrides(v []*LaunchTemplateOverrides) *LaunchTemplate

SetOverrides sets the Overrides field's value.

String

func (s LaunchTemplate) String() string

String returns the string representation

Validate

func (s *LaunchTemplate) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: