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.

CreditSpecification

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

type CreditSpecification struct { CpuCredits *string `locationName:"cpuCredits" type:"string"` }

Describes the credit option for CPU usage of a T2 or T3 instance.

CpuCredits

Type: *string

The credit option for CPU usage of a T2 or T3 instance. Valid values are standard and unlimited.

Method

GoString

func (s CreditSpecification) GoString() string

GoString returns the string representation

SetCpuCredits

func (s *CreditSpecification) SetCpuCredits(v string) *CreditSpecification

SetCpuCredits sets the CpuCredits field's value.

String

func (s CreditSpecification) String() string

String returns the string representation

CreditSpecificationRequest

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

type CreditSpecificationRequest struct { CpuCredits *string `type:"string" required:"true"` }

The credit option for CPU usage of a T2 or T3 instance.

CpuCredits

Type: *string

The credit option for CPU usage of a T2 or T3 instance. Valid values are standard and unlimited.

CpuCredits is a required field

Method

GoString

func (s CreditSpecificationRequest) GoString() string

GoString returns the string representation

SetCpuCredits

func (s *CreditSpecificationRequest) SetCpuCredits(v string) *CreditSpecificationRequest

SetCpuCredits sets the CpuCredits field's value.

String

func (s CreditSpecificationRequest) String() string

String returns the string representation

Validate

func (s *CreditSpecificationRequest) Validate() error

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