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.

DescribeCapacityReservationsInput

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

type DescribeCapacityReservationsInput struct { CapacityReservationIds []*string `locationName:"CapacityReservationId" locationNameList:"item" type:"list"` DryRun *bool `type:"boolean"` Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` MaxResults *int64 `type:"integer"` NextToken *string `type:"string"` }

CapacityReservationIds

Type: []*string

The ID of the Capacity Reservation.

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.

Filters

A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. The filters supported by a describe operation are documented with the describe operation. For example:

  • DescribeAvailabilityZones

  • DescribeImages

  • DescribeInstances

  • DescribeKeyPairs

  • DescribeSecurityGroups

  • DescribeSnapshots

  • DescribeSubnets

  • DescribeTags

  • DescribeVolumes

  • DescribeVpcs

MaxResults

Type: *int64

The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value.

NextToken

Type: *string

The token to retrieve the next page of results.

Method

GoString

func (s DescribeCapacityReservationsInput) GoString() string

GoString returns the string representation

SetCapacityReservationIds

func (s *DescribeCapacityReservationsInput) SetCapacityReservationIds(v []*string) *DescribeCapacityReservationsInput

SetCapacityReservationIds sets the CapacityReservationIds field's value.

SetDryRun

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

SetDryRun sets the DryRun field's value.

SetFilters

func (s *DescribeCapacityReservationsInput) SetFilters(v []*Filter) *DescribeCapacityReservationsInput

SetFilters sets the Filters field's value.

SetMaxResults

func (s *DescribeCapacityReservationsInput) SetMaxResults(v int64) *DescribeCapacityReservationsInput

SetMaxResults sets the MaxResults field's value.

SetNextToken

func (s *DescribeCapacityReservationsInput) SetNextToken(v string) *DescribeCapacityReservationsInput

SetNextToken sets the NextToken field's value.

String

func (s DescribeCapacityReservationsInput) String() string

String returns the string representation

On this page: