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.

BlockDeviceMapping

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

type BlockDeviceMapping struct { DeviceName *string `min:"1" type:"string" required:"true"` Ebs *Ebs `type:"structure"` NoDevice *bool `type:"boolean"` VirtualName *string `min:"1" type:"string"` }

Describes a block device mapping.

DeviceName

Type: *string

The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).

DeviceName is a required field

Ebs

Describes an Amazon EBS volume.

NoDevice

Type: *bool

Suppresses a device mapping.

If this parameter is true for the root device, the instance might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches a replacement instance.

VirtualName

Type: *string

The name of the virtual device (for example, ephemeral0).

Method

GoString

func (s BlockDeviceMapping) GoString() string

GoString returns the string representation

SetDeviceName

func (s *BlockDeviceMapping) SetDeviceName(v string) *BlockDeviceMapping

SetDeviceName sets the DeviceName field's value.

SetEbs

func (s *BlockDeviceMapping) SetEbs(v *Ebs) *BlockDeviceMapping

SetEbs sets the Ebs field's value.

SetNoDevice

func (s *BlockDeviceMapping) SetNoDevice(v bool) *BlockDeviceMapping

SetNoDevice sets the NoDevice field's value.

SetVirtualName

func (s *BlockDeviceMapping) SetVirtualName(v string) *BlockDeviceMapping

SetVirtualName sets the VirtualName field's value.

String

func (s BlockDeviceMapping) String() string

String returns the string representation

Validate

func (s *BlockDeviceMapping) Validate() error

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

On this page: