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.

CreateLaunchTemplateInput

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

type CreateLaunchTemplateInput struct { ClientToken *string `type:"string"` DryRun *bool `type:"boolean"` LaunchTemplateData *RequestLaunchTemplateData `type:"structure" required:"true"` LaunchTemplateName *string `min:"3" type:"string" required:"true"` VersionDescription *string `type:"string"` }

ClientToken

Type: *string

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).

Constraint: Maximum 128 ASCII characters.

DryRun

Type: *bool

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

LaunchTemplateData

The information to include in the launch template.

LaunchTemplateName

Type: *string

A name for the launch template.

LaunchTemplateName is a required field

VersionDescription

Type: *string

A description for the first version of the launch template.

Method

GoString

func (s CreateLaunchTemplateInput) GoString() string

GoString returns the string representation

SetClientToken

func (s *CreateLaunchTemplateInput) SetClientToken(v string) *CreateLaunchTemplateInput

SetClientToken sets the ClientToken field's value.

SetDryRun

func (s *CreateLaunchTemplateInput) SetDryRun(v bool) *CreateLaunchTemplateInput

SetDryRun sets the DryRun field's value.

SetLaunchTemplateData

func (s *CreateLaunchTemplateInput) SetLaunchTemplateData(v *RequestLaunchTemplateData) *CreateLaunchTemplateInput

SetLaunchTemplateData sets the LaunchTemplateData field's value.

SetLaunchTemplateName

func (s *CreateLaunchTemplateInput) SetLaunchTemplateName(v string) *CreateLaunchTemplateInput

SetLaunchTemplateName sets the LaunchTemplateName field's value.

SetVersionDescription

func (s *CreateLaunchTemplateInput) SetVersionDescription(v string) *CreateLaunchTemplateInput

SetVersionDescription sets the VersionDescription field's value.

String

func (s CreateLaunchTemplateInput) String() string

String returns the string representation

Validate

func (s *CreateLaunchTemplateInput) Validate() error

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

On this page: