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.

ResponseLaunchTemplateData

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

type ResponseLaunchTemplateData struct { BlockDeviceMappings []*LaunchTemplateBlockDeviceMapping `locationName:"blockDeviceMappingSet" locationNameList:"item" type:"list"` CapacityReservationSpecification *LaunchTemplateCapacityReservationSpecificationResponse `locationName:"capacityReservationSpecification" type:"structure"` CpuOptions *LaunchTemplateCpuOptions `locationName:"cpuOptions" type:"structure"` CreditSpecification *CreditSpecification `locationName:"creditSpecification" type:"structure"` DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"` EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"` ElasticGpuSpecifications []*ElasticGpuSpecificationResponse `locationName:"elasticGpuSpecificationSet" locationNameList:"item" type:"list"` ElasticInferenceAccelerators []*LaunchTemplateElasticInferenceAcceleratorResponse `locationName:"elasticInferenceAcceleratorSet" locationNameList:"item" type:"list"` HibernationOptions *LaunchTemplateHibernationOptions `locationName:"hibernationOptions" type:"structure"` IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"` ImageId *string `locationName:"imageId" type:"string"` InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"` InstanceMarketOptions *LaunchTemplateInstanceMarketOptions `locationName:"instanceMarketOptions" type:"structure"` InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` KernelId *string `locationName:"kernelId" type:"string"` KeyName *string `locationName:"keyName" type:"string"` LicenseSpecifications []*LaunchTemplateLicenseConfiguration `locationName:"licenseSet" locationNameList:"item" type:"list"` Monitoring *LaunchTemplatesMonitoring `locationName:"monitoring" type:"structure"` NetworkInterfaces []*LaunchTemplateInstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"` Placement *LaunchTemplatePlacement `locationName:"placement" type:"structure"` RamDiskId *string `locationName:"ramDiskId" type:"string"` SecurityGroupIds []*string `locationName:"securityGroupIdSet" locationNameList:"item" type:"list"` SecurityGroups []*string `locationName:"securityGroupSet" locationNameList:"item" type:"list"` TagSpecifications []*LaunchTemplateTagSpecification `locationName:"tagSpecificationSet" locationNameList:"item" type:"list"` UserData *string `locationName:"userData" type:"string"` }

The information for a launch template.

BlockDeviceMappings

Describes a block device mapping.

CapacityReservationSpecification

Information about the Capacity Reservation targeting option.

CpuOptions

The CPU options for the instance.

CreditSpecification

Describes the credit option for CPU usage of a T2 or T3 instance.

DisableApiTermination

Type: *bool

If set to true, indicates that the instance cannot be terminated using the Amazon EC2 console, command line tool, or API.

EbsOptimized

Type: *bool

Indicates whether the instance is optimized for Amazon EBS I/O.

ElasticGpuSpecifications

Describes an elastic GPU.

ElasticInferenceAccelerators

Describes an elastic inference accelerator.

HibernationOptions

Indicates whether an instance is configured for hibernation.

IamInstanceProfile

Describes an IAM instance profile.

ImageId

Type: *string

The ID of the AMI that was used to launch the instance.

InstanceInitiatedShutdownBehavior

Type: *string

Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

InstanceMarketOptions

The market (purchasing) option for the instances.

InstanceType

Type: *string

The instance type.

KernelId

Type: *string

The ID of the kernel, if applicable.

KeyName

Type: *string

The name of the key pair.

LicenseSpecifications

Describes a license configuration.

Monitoring

Describes the monitoring for the instance.

NetworkInterfaces

Describes a network interface.

Placement

Describes the placement of an instance.

RamDiskId

Type: *string

The ID of the RAM disk, if applicable.

SecurityGroupIds

Type: []*string

The security group IDs.

SecurityGroups

Type: []*string

The security group names.

TagSpecifications

The tag specification for the launch template.

UserData

Type: *string

The user data for the instance.

Method

GoString

func (s ResponseLaunchTemplateData) GoString() string

GoString returns the string representation

SetBlockDeviceMappings

func (s *ResponseLaunchTemplateData) SetBlockDeviceMappings(v []*LaunchTemplateBlockDeviceMapping) *ResponseLaunchTemplateData

SetBlockDeviceMappings sets the BlockDeviceMappings field's value.

SetCapacityReservationSpecification

func (s *ResponseLaunchTemplateData) SetCapacityReservationSpecification(v *LaunchTemplateCapacityReservationSpecificationResponse) *ResponseLaunchTemplateData

SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value.

SetCpuOptions

func (s *ResponseLaunchTemplateData) SetCpuOptions(v *LaunchTemplateCpuOptions) *ResponseLaunchTemplateData

SetCpuOptions sets the CpuOptions field's value.

SetCreditSpecification

func (s *ResponseLaunchTemplateData) SetCreditSpecification(v *CreditSpecification) *ResponseLaunchTemplateData

SetCreditSpecification sets the CreditSpecification field's value.

SetDisableApiTermination

func (s *ResponseLaunchTemplateData) SetDisableApiTermination(v bool) *ResponseLaunchTemplateData

SetDisableApiTermination sets the DisableApiTermination field's value.

SetEbsOptimized

func (s *ResponseLaunchTemplateData) SetEbsOptimized(v bool) *ResponseLaunchTemplateData

SetEbsOptimized sets the EbsOptimized field's value.

SetElasticGpuSpecifications

func (s *ResponseLaunchTemplateData) SetElasticGpuSpecifications(v []*ElasticGpuSpecificationResponse) *ResponseLaunchTemplateData

SetElasticGpuSpecifications sets the ElasticGpuSpecifications field's value.

SetElasticInferenceAccelerators

func (s *ResponseLaunchTemplateData) SetElasticInferenceAccelerators(v []*LaunchTemplateElasticInferenceAcceleratorResponse) *ResponseLaunchTemplateData

SetElasticInferenceAccelerators sets the ElasticInferenceAccelerators field's value.

SetHibernationOptions

func (s *ResponseLaunchTemplateData) SetHibernationOptions(v *LaunchTemplateHibernationOptions) *ResponseLaunchTemplateData

SetHibernationOptions sets the HibernationOptions field's value.

SetIamInstanceProfile

func (s *ResponseLaunchTemplateData) SetIamInstanceProfile(v *LaunchTemplateIamInstanceProfileSpecification) *ResponseLaunchTemplateData

SetIamInstanceProfile sets the IamInstanceProfile field's value.

SetImageId

func (s *ResponseLaunchTemplateData) SetImageId(v string) *ResponseLaunchTemplateData

SetImageId sets the ImageId field's value.

SetInstanceInitiatedShutdownBehavior

func (s *ResponseLaunchTemplateData) SetInstanceInitiatedShutdownBehavior(v string) *ResponseLaunchTemplateData

SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.

SetInstanceMarketOptions

func (s *ResponseLaunchTemplateData) SetInstanceMarketOptions(v *LaunchTemplateInstanceMarketOptions) *ResponseLaunchTemplateData

SetInstanceMarketOptions sets the InstanceMarketOptions field's value.

SetInstanceType

func (s *ResponseLaunchTemplateData) SetInstanceType(v string) *ResponseLaunchTemplateData

SetInstanceType sets the InstanceType field's value.

SetKernelId

func (s *ResponseLaunchTemplateData) SetKernelId(v string) *ResponseLaunchTemplateData

SetKernelId sets the KernelId field's value.

SetKeyName

func (s *ResponseLaunchTemplateData) SetKeyName(v string) *ResponseLaunchTemplateData

SetKeyName sets the KeyName field's value.

SetLicenseSpecifications

func (s *ResponseLaunchTemplateData) SetLicenseSpecifications(v []*LaunchTemplateLicenseConfiguration) *ResponseLaunchTemplateData

SetLicenseSpecifications sets the LicenseSpecifications field's value.

SetMonitoring

func (s *ResponseLaunchTemplateData) SetMonitoring(v *LaunchTemplatesMonitoring) *ResponseLaunchTemplateData

SetMonitoring sets the Monitoring field's value.

SetNetworkInterfaces

func (s *ResponseLaunchTemplateData) SetNetworkInterfaces(v []*LaunchTemplateInstanceNetworkInterfaceSpecification) *ResponseLaunchTemplateData

SetNetworkInterfaces sets the NetworkInterfaces field's value.

SetPlacement

func (s *ResponseLaunchTemplateData) SetPlacement(v *LaunchTemplatePlacement) *ResponseLaunchTemplateData

SetPlacement sets the Placement field's value.

SetRamDiskId

func (s *ResponseLaunchTemplateData) SetRamDiskId(v string) *ResponseLaunchTemplateData

SetRamDiskId sets the RamDiskId field's value.

SetSecurityGroupIds

func (s *ResponseLaunchTemplateData) SetSecurityGroupIds(v []*string) *ResponseLaunchTemplateData

SetSecurityGroupIds sets the SecurityGroupIds field's value.

SetSecurityGroups

func (s *ResponseLaunchTemplateData) SetSecurityGroups(v []*string) *ResponseLaunchTemplateData

SetSecurityGroups sets the SecurityGroups field's value.

SetTagSpecifications

func (s *ResponseLaunchTemplateData) SetTagSpecifications(v []*LaunchTemplateTagSpecification) *ResponseLaunchTemplateData

SetTagSpecifications sets the TagSpecifications field's value.

SetUserData

func (s *ResponseLaunchTemplateData) SetUserData(v string) *ResponseLaunchTemplateData

SetUserData sets the UserData field's value.

String

func (s ResponseLaunchTemplateData) String() string

String returns the string representation

On this page: