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.

ImportApiKeysInput

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

type ImportApiKeysInput struct { Body []byte `locationName:"body" type:"blob" required:"true"` FailOnWarnings *bool `location:"querystring" locationName:"failonwarnings" type:"boolean"` Format *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"ApiKeysFormat"` }

The POST request to import API keys from an external source, such as a CSV-formatted file.

Body

Type: []byte

The payload of the POST request to import API keys. For the payload format, see API Key File Format (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-key-file-format.html).

Body is a required field

FailOnWarnings

Type: *bool

A query parameter to indicate whether to rollback ApiKey importation (true) or not (false) when error is encountered.

Format

Type: *string

A query parameter to specify the input format to imported API keys. Currently, only the csv format is supported.

Format is a required field

Method

GoString

func (s ImportApiKeysInput) GoString() string

GoString returns the string representation

SetBody

func (s *ImportApiKeysInput) SetBody(v []byte) *ImportApiKeysInput

SetBody sets the Body field's value.

SetFailOnWarnings

func (s *ImportApiKeysInput) SetFailOnWarnings(v bool) *ImportApiKeysInput

SetFailOnWarnings sets the FailOnWarnings field's value.

SetFormat

func (s *ImportApiKeysInput) SetFormat(v string) *ImportApiKeysInput

SetFormat sets the Format field's value.

String

func (s ImportApiKeysInput) String() string

String returns the string representation

Validate

func (s *ImportApiKeysInput) Validate() error

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

On this page: