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.

CreateAcceleratorInput

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

type CreateAcceleratorInput struct { Enabled *bool `type:"boolean"` IdempotencyToken *string `type:"string" required:"true"` IpAddressType *string `type:"string" enum:"IpAddressType"` Name *string `type:"string" required:"true"` }

Enabled

Type: *bool

Indicates whether an accelerator is enabled. The value is true or false. The default value is true.

If the value is set to true, an accelerator cannot be deleted. If set to false, the accelerator can be deleted.

IdempotencyToken

Type: *string

A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of an accelerator.

IdempotencyToken is a required field

IpAddressType

Type: *string

The value for the address type must be IPv4.

Name

Type: *string

The name of an accelerator. The name can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.

Name is a required field

Method

GoString

func (s CreateAcceleratorInput) GoString() string

GoString returns the string representation

SetEnabled

func (s *CreateAcceleratorInput) SetEnabled(v bool) *CreateAcceleratorInput

SetEnabled sets the Enabled field's value.

SetIdempotencyToken

func (s *CreateAcceleratorInput) SetIdempotencyToken(v string) *CreateAcceleratorInput

SetIdempotencyToken sets the IdempotencyToken field's value.

SetIpAddressType

func (s *CreateAcceleratorInput) SetIpAddressType(v string) *CreateAcceleratorInput

SetIpAddressType sets the IpAddressType field's value.

SetName

func (s *CreateAcceleratorInput) SetName(v string) *CreateAcceleratorInput

SetName sets the Name field's value.

String

func (s CreateAcceleratorInput) String() string

String returns the string representation

Validate

func (s *CreateAcceleratorInput) Validate() error

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

On this page: