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.

AssignInstanceInput

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

type AssignInstanceInput struct { InstanceId *string `type:"string" required:"true"` LayerIds []*string `type:"list" required:"true"` }

InstanceId

Type: *string

The instance ID.

InstanceId is a required field

LayerIds

Type: []*string

The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a built-in layer.

LayerIds is a required field

Method

GoString

func (s AssignInstanceInput) GoString() string

GoString returns the string representation

SetInstanceId

func (s *AssignInstanceInput) SetInstanceId(v string) *AssignInstanceInput

SetInstanceId sets the InstanceId field's value.

SetLayerIds

func (s *AssignInstanceInput) SetLayerIds(v []*string) *AssignInstanceInput

SetLayerIds sets the LayerIds field's value.

String

func (s AssignInstanceInput) String() string

String returns the string representation

Validate

func (s *AssignInstanceInput) Validate() error

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

On this page: