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.

UsagePlanKey

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

type UsagePlanKey struct { Id *string `locationName:"id" type:"string"` Name *string `locationName:"name" type:"string"` Type *string `locationName:"type" type:"string"` Value *string `locationName:"value" type:"string"` }

Represents a usage plan key to identify a plan customer.

To associate an API stage with a selected API key in a usage plan, you must create a UsagePlanKey resource to represent the selected ApiKey.

" Create and Use Usage Plans (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html)

Id

Type: *string

The Id of a usage plan key.

Name

Type: *string

The name of a usage plan key.

Type

Type: *string

The type of a usage plan key. Currently, the valid key type is API_KEY.

Value

Type: *string

The value of a usage plan key.

Method

GoString

func (s UsagePlanKey) GoString() string

GoString returns the string representation

SetId

func (s *UsagePlanKey) SetId(v string) *UsagePlanKey

SetId sets the Id field's value.

SetName

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

SetName sets the Name field's value.

SetType

func (s *UsagePlanKey) SetType(v string) *UsagePlanKey

SetType sets the Type field's value.

SetValue

func (s *UsagePlanKey) SetValue(v string) *UsagePlanKey

SetValue sets the Value field's value.

String

func (s UsagePlanKey) String() string

String returns the string representation

On this page: