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.

CreatePlacementGroupInput

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

type CreatePlacementGroupInput struct { DryRun *bool `locationName:"dryRun" type:"boolean"` GroupName *string `locationName:"groupName" type:"string"` PartitionCount *int64 `type:"integer"` Strategy *string `locationName:"strategy" type:"string" enum:"PlacementStrategy"` }

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.

GroupName

Type: *string

A name for the placement group. Must be unique within the scope of your account for the Region.

Constraints: Up to 255 ASCII characters

PartitionCount

Type: *int64

The number of partitions. Valid only when Strategy is set to partition.

Strategy

Type: *string

The placement strategy.

Method

GoString

func (s CreatePlacementGroupInput) GoString() string

GoString returns the string representation

SetDryRun

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

SetDryRun sets the DryRun field's value.

SetGroupName

func (s *CreatePlacementGroupInput) SetGroupName(v string) *CreatePlacementGroupInput

SetGroupName sets the GroupName field's value.

SetPartitionCount

func (s *CreatePlacementGroupInput) SetPartitionCount(v int64) *CreatePlacementGroupInput

SetPartitionCount sets the PartitionCount field's value.

SetStrategy

func (s *CreatePlacementGroupInput) SetStrategy(v string) *CreatePlacementGroupInput

SetStrategy sets the Strategy field's value.

String

func (s CreatePlacementGroupInput) String() string

String returns the string representation

On this page: