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.

Reservation

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

type Reservation struct { Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"` Instances []*Instance `locationName:"instancesSet" locationNameList:"item" type:"list"` OwnerId *string `locationName:"ownerId" type:"string"` RequesterId *string `locationName:"requesterId" type:"string"` ReservationId *string `locationName:"reservationId" type:"string"` }

Describes a reservation.

Groups

Describes a security group.

Instances

Describes an instance.

OwnerId

Type: *string

The ID of the AWS account that owns the reservation.

RequesterId

Type: *string

The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).

ReservationId

Type: *string

The ID of the reservation.

Method

GoString

func (s Reservation) GoString() string

GoString returns the string representation

SetGroups

func (s *Reservation) SetGroups(v []*GroupIdentifier) *Reservation

SetGroups sets the Groups field's value.

SetInstances

func (s *Reservation) SetInstances(v []*Instance) *Reservation

SetInstances sets the Instances field's value.

SetOwnerId

func (s *Reservation) SetOwnerId(v string) *Reservation

SetOwnerId sets the OwnerId field's value.

SetRequesterId

func (s *Reservation) SetRequesterId(v string) *Reservation

SetRequesterId sets the RequesterId field's value.

SetReservationId

func (s *Reservation) SetReservationId(v string) *Reservation

SetReservationId sets the ReservationId field's value.

String

func (s Reservation) String() string

String returns the string representation

On this page: