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.

Ebs

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

type Ebs struct { DeleteOnTermination *bool `type:"boolean"` Encrypted *bool `type:"boolean"` Iops *int64 `min:"100" type:"integer"` SnapshotId *string `min:"1" type:"string"` VolumeSize *int64 `min:"1" type:"integer"` VolumeType *string `min:"1" type:"string"` }

Describes an Amazon EBS volume.

DeleteOnTermination

Type: *bool

Indicates whether the volume is deleted on instance termination. The default is true.

Encrypted

Type: *bool

Indicates whether the volume should be encrypted. Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or an unencrypted volume from an encrypted snapshot. For more information, see Amazon EBS Encryption (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the Amazon EC2 User Guide for Linux Instances.

Iops

Type: *int64

The number of I/O operations per second (IOPS) to provision for the volume.

Constraint: Required when the volume type is io1.

SnapshotId

Type: *string

The ID of the snapshot.

VolumeSize

Type: *int64

The volume size, in GiB. For standard volumes, specify a value from 1 to 1,024. For io1 volumes, specify a value from 4 to 16,384. For gp2 volumes, specify a value from 1 to 16,384. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.

Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the snapshot size.

VolumeType

Type: *string

The volume type. For more information, see Amazon EBS Volume Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) in the Amazon EC2 User Guide for Linux Instances.

Valid values: standard | io1 | gp2

Method

GoString

func (s Ebs) GoString() string

GoString returns the string representation

SetDeleteOnTermination

func (s *Ebs) SetDeleteOnTermination(v bool) *Ebs

SetDeleteOnTermination sets the DeleteOnTermination field's value.

SetEncrypted

func (s *Ebs) SetEncrypted(v bool) *Ebs

SetEncrypted sets the Encrypted field's value.

SetIops

func (s *Ebs) SetIops(v int64) *Ebs

SetIops sets the Iops field's value.

SetSnapshotId

func (s *Ebs) SetSnapshotId(v string) *Ebs

SetSnapshotId sets the SnapshotId field's value.

SetVolumeSize

func (s *Ebs) SetVolumeSize(v int64) *Ebs

SetVolumeSize sets the VolumeSize field's value.

SetVolumeType

func (s *Ebs) SetVolumeType(v string) *Ebs

SetVolumeType sets the VolumeType field's value.

String

func (s Ebs) String() string

String returns the string representation

Validate

func (s *Ebs) Validate() error

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

On this page: