2016-03-05 23:12:19 +01:00
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package apigateway provides a client for Amazon API Gateway.
package apigateway
import (
"time"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
const opCreateApiKey = "CreateApiKey"
2016-07-15 15:49:02 +02:00
// CreateApiKeyRequest generates a "aws/request.Request" representing the
// client's request for the CreateApiKey operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateApiKey method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateApiKeyRequest method.
// req, resp := client.CreateApiKeyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) CreateApiKeyRequest ( input * CreateApiKeyInput ) ( req * request . Request , output * ApiKey ) {
op := & request . Operation {
Name : opCreateApiKey ,
HTTPMethod : "POST" ,
HTTPPath : "/apikeys" ,
}
if input == nil {
input = & CreateApiKeyInput { }
}
req = c . newRequest ( op , input , output )
output = & ApiKey { }
req . Data = output
return
}
2016-05-05 03:06:27 +02:00
// Create an ApiKey resource.
2016-08-20 11:16:03 +02:00
//
// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/create-api-key.html)
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) CreateApiKey ( input * CreateApiKeyInput ) ( * ApiKey , error ) {
req , out := c . CreateApiKeyRequest ( input )
err := req . Send ( )
return out , err
}
2016-03-06 09:47:30 +01:00
const opCreateAuthorizer = "CreateAuthorizer"
2016-07-15 15:49:02 +02:00
// CreateAuthorizerRequest generates a "aws/request.Request" representing the
// client's request for the CreateAuthorizer operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateAuthorizer method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateAuthorizerRequest method.
// req, resp := client.CreateAuthorizerRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-06 09:47:30 +01:00
func ( c * APIGateway ) CreateAuthorizerRequest ( input * CreateAuthorizerInput ) ( req * request . Request , output * Authorizer ) {
op := & request . Operation {
Name : opCreateAuthorizer ,
HTTPMethod : "POST" ,
HTTPPath : "/restapis/{restapi_id}/authorizers" ,
}
if input == nil {
input = & CreateAuthorizerInput { }
}
req = c . newRequest ( op , input , output )
output = & Authorizer { }
req . Data = output
return
}
2016-05-05 03:06:27 +02:00
// Adds a new Authorizer resource to an existing RestApi resource.
2016-08-20 11:16:03 +02:00
//
// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/create-authorizer.html)
2016-03-06 09:47:30 +01:00
func ( c * APIGateway ) CreateAuthorizer ( input * CreateAuthorizerInput ) ( * Authorizer , error ) {
req , out := c . CreateAuthorizerRequest ( input )
err := req . Send ( )
return out , err
}
2016-03-05 23:12:19 +01:00
const opCreateBasePathMapping = "CreateBasePathMapping"
2016-07-15 15:49:02 +02:00
// CreateBasePathMappingRequest generates a "aws/request.Request" representing the
// client's request for the CreateBasePathMapping operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateBasePathMapping method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateBasePathMappingRequest method.
// req, resp := client.CreateBasePathMappingRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) CreateBasePathMappingRequest ( input * CreateBasePathMappingInput ) ( req * request . Request , output * BasePathMapping ) {
op := & request . Operation {
Name : opCreateBasePathMapping ,
HTTPMethod : "POST" ,
HTTPPath : "/domainnames/{domain_name}/basepathmappings" ,
}
if input == nil {
input = & CreateBasePathMappingInput { }
}
req = c . newRequest ( op , input , output )
output = & BasePathMapping { }
req . Data = output
return
}
// Creates a new BasePathMapping resource.
func ( c * APIGateway ) CreateBasePathMapping ( input * CreateBasePathMappingInput ) ( * BasePathMapping , error ) {
req , out := c . CreateBasePathMappingRequest ( input )
err := req . Send ( )
return out , err
}
const opCreateDeployment = "CreateDeployment"
2016-07-15 15:49:02 +02:00
// CreateDeploymentRequest generates a "aws/request.Request" representing the
// client's request for the CreateDeployment operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateDeployment method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateDeploymentRequest method.
// req, resp := client.CreateDeploymentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) CreateDeploymentRequest ( input * CreateDeploymentInput ) ( req * request . Request , output * Deployment ) {
op := & request . Operation {
Name : opCreateDeployment ,
HTTPMethod : "POST" ,
HTTPPath : "/restapis/{restapi_id}/deployments" ,
}
if input == nil {
input = & CreateDeploymentInput { }
}
req = c . newRequest ( op , input , output )
output = & Deployment { }
req . Data = output
return
}
// Creates a Deployment resource, which makes a specified RestApi callable over
// the internet.
func ( c * APIGateway ) CreateDeployment ( input * CreateDeploymentInput ) ( * Deployment , error ) {
req , out := c . CreateDeploymentRequest ( input )
err := req . Send ( )
return out , err
}
const opCreateDomainName = "CreateDomainName"
2016-07-15 15:49:02 +02:00
// CreateDomainNameRequest generates a "aws/request.Request" representing the
// client's request for the CreateDomainName operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateDomainName method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateDomainNameRequest method.
// req, resp := client.CreateDomainNameRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) CreateDomainNameRequest ( input * CreateDomainNameInput ) ( req * request . Request , output * DomainName ) {
op := & request . Operation {
Name : opCreateDomainName ,
HTTPMethod : "POST" ,
HTTPPath : "/domainnames" ,
}
if input == nil {
input = & CreateDomainNameInput { }
}
req = c . newRequest ( op , input , output )
output = & DomainName { }
req . Data = output
return
}
// Creates a new domain name.
func ( c * APIGateway ) CreateDomainName ( input * CreateDomainNameInput ) ( * DomainName , error ) {
req , out := c . CreateDomainNameRequest ( input )
err := req . Send ( )
return out , err
}
const opCreateModel = "CreateModel"
2016-07-15 15:49:02 +02:00
// CreateModelRequest generates a "aws/request.Request" representing the
// client's request for the CreateModel operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateModel method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateModelRequest method.
// req, resp := client.CreateModelRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) CreateModelRequest ( input * CreateModelInput ) ( req * request . Request , output * Model ) {
op := & request . Operation {
Name : opCreateModel ,
HTTPMethod : "POST" ,
HTTPPath : "/restapis/{restapi_id}/models" ,
}
if input == nil {
input = & CreateModelInput { }
}
req = c . newRequest ( op , input , output )
output = & Model { }
req . Data = output
return
}
// Adds a new Model resource to an existing RestApi resource.
func ( c * APIGateway ) CreateModel ( input * CreateModelInput ) ( * Model , error ) {
req , out := c . CreateModelRequest ( input )
err := req . Send ( )
return out , err
}
const opCreateResource = "CreateResource"
2016-07-15 15:49:02 +02:00
// CreateResourceRequest generates a "aws/request.Request" representing the
// client's request for the CreateResource operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateResource method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateResourceRequest method.
// req, resp := client.CreateResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) CreateResourceRequest ( input * CreateResourceInput ) ( req * request . Request , output * Resource ) {
op := & request . Operation {
Name : opCreateResource ,
HTTPMethod : "POST" ,
HTTPPath : "/restapis/{restapi_id}/resources/{parent_id}" ,
}
if input == nil {
input = & CreateResourceInput { }
}
req = c . newRequest ( op , input , output )
output = & Resource { }
req . Data = output
return
}
// Creates a Resource resource.
func ( c * APIGateway ) CreateResource ( input * CreateResourceInput ) ( * Resource , error ) {
req , out := c . CreateResourceRequest ( input )
err := req . Send ( )
return out , err
}
const opCreateRestApi = "CreateRestApi"
2016-07-15 15:49:02 +02:00
// CreateRestApiRequest generates a "aws/request.Request" representing the
// client's request for the CreateRestApi operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateRestApi method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateRestApiRequest method.
// req, resp := client.CreateRestApiRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) CreateRestApiRequest ( input * CreateRestApiInput ) ( req * request . Request , output * RestApi ) {
op := & request . Operation {
Name : opCreateRestApi ,
HTTPMethod : "POST" ,
HTTPPath : "/restapis" ,
}
if input == nil {
input = & CreateRestApiInput { }
}
req = c . newRequest ( op , input , output )
output = & RestApi { }
req . Data = output
return
}
// Creates a new RestApi resource.
func ( c * APIGateway ) CreateRestApi ( input * CreateRestApiInput ) ( * RestApi , error ) {
req , out := c . CreateRestApiRequest ( input )
err := req . Send ( )
return out , err
}
const opCreateStage = "CreateStage"
2016-07-15 15:49:02 +02:00
// CreateStageRequest generates a "aws/request.Request" representing the
// client's request for the CreateStage operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateStage method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateStageRequest method.
// req, resp := client.CreateStageRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) CreateStageRequest ( input * CreateStageInput ) ( req * request . Request , output * Stage ) {
op := & request . Operation {
Name : opCreateStage ,
HTTPMethod : "POST" ,
HTTPPath : "/restapis/{restapi_id}/stages" ,
}
if input == nil {
input = & CreateStageInput { }
}
req = c . newRequest ( op , input , output )
output = & Stage { }
req . Data = output
return
}
2016-03-06 09:47:30 +01:00
// Creates a new Stage resource that references a pre-existing Deployment for
// the API.
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) CreateStage ( input * CreateStageInput ) ( * Stage , error ) {
req , out := c . CreateStageRequest ( input )
err := req . Send ( )
return out , err
}
2016-08-20 11:16:03 +02:00
const opCreateUsagePlan = "CreateUsagePlan"
// CreateUsagePlanRequest generates a "aws/request.Request" representing the
// client's request for the CreateUsagePlan operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateUsagePlan method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateUsagePlanRequest method.
// req, resp := client.CreateUsagePlanRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func ( c * APIGateway ) CreateUsagePlanRequest ( input * CreateUsagePlanInput ) ( req * request . Request , output * UsagePlan ) {
op := & request . Operation {
Name : opCreateUsagePlan ,
HTTPMethod : "POST" ,
HTTPPath : "/usageplans" ,
}
if input == nil {
input = & CreateUsagePlanInput { }
}
req = c . newRequest ( op , input , output )
output = & UsagePlan { }
req . Data = output
return
}
// Creates a usage plan with the throttle and quota limits, as well as the associated
// API stages, specified in the payload.
func ( c * APIGateway ) CreateUsagePlan ( input * CreateUsagePlanInput ) ( * UsagePlan , error ) {
req , out := c . CreateUsagePlanRequest ( input )
err := req . Send ( )
return out , err
}
const opCreateUsagePlanKey = "CreateUsagePlanKey"
// CreateUsagePlanKeyRequest generates a "aws/request.Request" representing the
// client's request for the CreateUsagePlanKey operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateUsagePlanKey method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateUsagePlanKeyRequest method.
// req, resp := client.CreateUsagePlanKeyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func ( c * APIGateway ) CreateUsagePlanKeyRequest ( input * CreateUsagePlanKeyInput ) ( req * request . Request , output * UsagePlanKey ) {
op := & request . Operation {
Name : opCreateUsagePlanKey ,
HTTPMethod : "POST" ,
HTTPPath : "/usageplans/{usageplanId}/keys" ,
}
if input == nil {
input = & CreateUsagePlanKeyInput { }
}
req = c . newRequest ( op , input , output )
output = & UsagePlanKey { }
req . Data = output
return
}
// Creates a usage plan key for adding an existing API key to a usage plan.
func ( c * APIGateway ) CreateUsagePlanKey ( input * CreateUsagePlanKeyInput ) ( * UsagePlanKey , error ) {
req , out := c . CreateUsagePlanKeyRequest ( input )
err := req . Send ( )
return out , err
}
2016-03-05 23:12:19 +01:00
const opDeleteApiKey = "DeleteApiKey"
2016-07-15 15:49:02 +02:00
// DeleteApiKeyRequest generates a "aws/request.Request" representing the
// client's request for the DeleteApiKey operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteApiKey method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteApiKeyRequest method.
// req, resp := client.DeleteApiKeyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) DeleteApiKeyRequest ( input * DeleteApiKeyInput ) ( req * request . Request , output * DeleteApiKeyOutput ) {
op := & request . Operation {
Name : opDeleteApiKey ,
HTTPMethod : "DELETE" ,
HTTPPath : "/apikeys/{api_Key}" ,
}
if input == nil {
input = & DeleteApiKeyInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteApiKeyOutput { }
req . Data = output
return
}
// Deletes the ApiKey resource.
func ( c * APIGateway ) DeleteApiKey ( input * DeleteApiKeyInput ) ( * DeleteApiKeyOutput , error ) {
req , out := c . DeleteApiKeyRequest ( input )
err := req . Send ( )
return out , err
}
2016-03-06 09:47:30 +01:00
const opDeleteAuthorizer = "DeleteAuthorizer"
2016-07-15 15:49:02 +02:00
// DeleteAuthorizerRequest generates a "aws/request.Request" representing the
// client's request for the DeleteAuthorizer operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteAuthorizer method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteAuthorizerRequest method.
// req, resp := client.DeleteAuthorizerRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-06 09:47:30 +01:00
func ( c * APIGateway ) DeleteAuthorizerRequest ( input * DeleteAuthorizerInput ) ( req * request . Request , output * DeleteAuthorizerOutput ) {
op := & request . Operation {
Name : opDeleteAuthorizer ,
HTTPMethod : "DELETE" ,
HTTPPath : "/restapis/{restapi_id}/authorizers/{authorizer_id}" ,
}
if input == nil {
input = & DeleteAuthorizerInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteAuthorizerOutput { }
req . Data = output
return
}
// Deletes an existing Authorizer resource.
2016-08-20 11:16:03 +02:00
//
// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/delete-authorizer.html)
2016-03-06 09:47:30 +01:00
func ( c * APIGateway ) DeleteAuthorizer ( input * DeleteAuthorizerInput ) ( * DeleteAuthorizerOutput , error ) {
req , out := c . DeleteAuthorizerRequest ( input )
err := req . Send ( )
return out , err
}
2016-03-05 23:12:19 +01:00
const opDeleteBasePathMapping = "DeleteBasePathMapping"
2016-07-15 15:49:02 +02:00
// DeleteBasePathMappingRequest generates a "aws/request.Request" representing the
// client's request for the DeleteBasePathMapping operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteBasePathMapping method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteBasePathMappingRequest method.
// req, resp := client.DeleteBasePathMappingRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) DeleteBasePathMappingRequest ( input * DeleteBasePathMappingInput ) ( req * request . Request , output * DeleteBasePathMappingOutput ) {
op := & request . Operation {
Name : opDeleteBasePathMapping ,
HTTPMethod : "DELETE" ,
HTTPPath : "/domainnames/{domain_name}/basepathmappings/{base_path}" ,
}
if input == nil {
input = & DeleteBasePathMappingInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteBasePathMappingOutput { }
req . Data = output
return
}
// Deletes the BasePathMapping resource.
func ( c * APIGateway ) DeleteBasePathMapping ( input * DeleteBasePathMappingInput ) ( * DeleteBasePathMappingOutput , error ) {
req , out := c . DeleteBasePathMappingRequest ( input )
err := req . Send ( )
return out , err
}
const opDeleteClientCertificate = "DeleteClientCertificate"
2016-07-15 15:49:02 +02:00
// DeleteClientCertificateRequest generates a "aws/request.Request" representing the
// client's request for the DeleteClientCertificate operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteClientCertificate method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteClientCertificateRequest method.
// req, resp := client.DeleteClientCertificateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) DeleteClientCertificateRequest ( input * DeleteClientCertificateInput ) ( req * request . Request , output * DeleteClientCertificateOutput ) {
op := & request . Operation {
Name : opDeleteClientCertificate ,
HTTPMethod : "DELETE" ,
HTTPPath : "/clientcertificates/{clientcertificate_id}" ,
}
if input == nil {
input = & DeleteClientCertificateInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteClientCertificateOutput { }
req . Data = output
return
}
2016-05-05 03:06:27 +02:00
// Deletes the ClientCertificate resource.
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) DeleteClientCertificate ( input * DeleteClientCertificateInput ) ( * DeleteClientCertificateOutput , error ) {
req , out := c . DeleteClientCertificateRequest ( input )
err := req . Send ( )
return out , err
}
const opDeleteDeployment = "DeleteDeployment"
2016-07-15 15:49:02 +02:00
// DeleteDeploymentRequest generates a "aws/request.Request" representing the
// client's request for the DeleteDeployment operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteDeployment method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteDeploymentRequest method.
// req, resp := client.DeleteDeploymentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) DeleteDeploymentRequest ( input * DeleteDeploymentInput ) ( req * request . Request , output * DeleteDeploymentOutput ) {
op := & request . Operation {
Name : opDeleteDeployment ,
HTTPMethod : "DELETE" ,
HTTPPath : "/restapis/{restapi_id}/deployments/{deployment_id}" ,
}
if input == nil {
input = & DeleteDeploymentInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteDeploymentOutput { }
req . Data = output
return
}
// Deletes a Deployment resource. Deleting a deployment will only succeed if
// there are no Stage resources associated with it.
func ( c * APIGateway ) DeleteDeployment ( input * DeleteDeploymentInput ) ( * DeleteDeploymentOutput , error ) {
req , out := c . DeleteDeploymentRequest ( input )
err := req . Send ( )
return out , err
}
const opDeleteDomainName = "DeleteDomainName"
2016-07-15 15:49:02 +02:00
// DeleteDomainNameRequest generates a "aws/request.Request" representing the
// client's request for the DeleteDomainName operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteDomainName method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteDomainNameRequest method.
// req, resp := client.DeleteDomainNameRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) DeleteDomainNameRequest ( input * DeleteDomainNameInput ) ( req * request . Request , output * DeleteDomainNameOutput ) {
op := & request . Operation {
Name : opDeleteDomainName ,
HTTPMethod : "DELETE" ,
HTTPPath : "/domainnames/{domain_name}" ,
}
if input == nil {
input = & DeleteDomainNameInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteDomainNameOutput { }
req . Data = output
return
}
// Deletes the DomainName resource.
func ( c * APIGateway ) DeleteDomainName ( input * DeleteDomainNameInput ) ( * DeleteDomainNameOutput , error ) {
req , out := c . DeleteDomainNameRequest ( input )
err := req . Send ( )
return out , err
}
const opDeleteIntegration = "DeleteIntegration"
2016-07-15 15:49:02 +02:00
// DeleteIntegrationRequest generates a "aws/request.Request" representing the
// client's request for the DeleteIntegration operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteIntegration method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteIntegrationRequest method.
// req, resp := client.DeleteIntegrationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) DeleteIntegrationRequest ( input * DeleteIntegrationInput ) ( req * request . Request , output * DeleteIntegrationOutput ) {
op := & request . Operation {
Name : opDeleteIntegration ,
HTTPMethod : "DELETE" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration" ,
}
if input == nil {
input = & DeleteIntegrationInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteIntegrationOutput { }
req . Data = output
return
}
// Represents a delete integration.
func ( c * APIGateway ) DeleteIntegration ( input * DeleteIntegrationInput ) ( * DeleteIntegrationOutput , error ) {
req , out := c . DeleteIntegrationRequest ( input )
err := req . Send ( )
return out , err
}
const opDeleteIntegrationResponse = "DeleteIntegrationResponse"
2016-07-15 15:49:02 +02:00
// DeleteIntegrationResponseRequest generates a "aws/request.Request" representing the
// client's request for the DeleteIntegrationResponse operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteIntegrationResponse method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteIntegrationResponseRequest method.
// req, resp := client.DeleteIntegrationResponseRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) DeleteIntegrationResponseRequest ( input * DeleteIntegrationResponseInput ) ( req * request . Request , output * DeleteIntegrationResponseOutput ) {
op := & request . Operation {
Name : opDeleteIntegrationResponse ,
HTTPMethod : "DELETE" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}" ,
}
if input == nil {
input = & DeleteIntegrationResponseInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteIntegrationResponseOutput { }
req . Data = output
return
}
// Represents a delete integration response.
func ( c * APIGateway ) DeleteIntegrationResponse ( input * DeleteIntegrationResponseInput ) ( * DeleteIntegrationResponseOutput , error ) {
req , out := c . DeleteIntegrationResponseRequest ( input )
err := req . Send ( )
return out , err
}
const opDeleteMethod = "DeleteMethod"
2016-07-15 15:49:02 +02:00
// DeleteMethodRequest generates a "aws/request.Request" representing the
// client's request for the DeleteMethod operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteMethod method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteMethodRequest method.
// req, resp := client.DeleteMethodRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) DeleteMethodRequest ( input * DeleteMethodInput ) ( req * request . Request , output * DeleteMethodOutput ) {
op := & request . Operation {
Name : opDeleteMethod ,
HTTPMethod : "DELETE" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}" ,
}
if input == nil {
input = & DeleteMethodInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteMethodOutput { }
req . Data = output
return
}
// Deletes an existing Method resource.
func ( c * APIGateway ) DeleteMethod ( input * DeleteMethodInput ) ( * DeleteMethodOutput , error ) {
req , out := c . DeleteMethodRequest ( input )
err := req . Send ( )
return out , err
}
const opDeleteMethodResponse = "DeleteMethodResponse"
2016-07-15 15:49:02 +02:00
// DeleteMethodResponseRequest generates a "aws/request.Request" representing the
// client's request for the DeleteMethodResponse operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteMethodResponse method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteMethodResponseRequest method.
// req, resp := client.DeleteMethodResponseRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) DeleteMethodResponseRequest ( input * DeleteMethodResponseInput ) ( req * request . Request , output * DeleteMethodResponseOutput ) {
op := & request . Operation {
Name : opDeleteMethodResponse ,
HTTPMethod : "DELETE" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}" ,
}
if input == nil {
input = & DeleteMethodResponseInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteMethodResponseOutput { }
req . Data = output
return
}
// Deletes an existing MethodResponse resource.
func ( c * APIGateway ) DeleteMethodResponse ( input * DeleteMethodResponseInput ) ( * DeleteMethodResponseOutput , error ) {
req , out := c . DeleteMethodResponseRequest ( input )
err := req . Send ( )
return out , err
}
const opDeleteModel = "DeleteModel"
2016-07-15 15:49:02 +02:00
// DeleteModelRequest generates a "aws/request.Request" representing the
// client's request for the DeleteModel operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteModel method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteModelRequest method.
// req, resp := client.DeleteModelRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) DeleteModelRequest ( input * DeleteModelInput ) ( req * request . Request , output * DeleteModelOutput ) {
op := & request . Operation {
Name : opDeleteModel ,
HTTPMethod : "DELETE" ,
HTTPPath : "/restapis/{restapi_id}/models/{model_name}" ,
}
if input == nil {
input = & DeleteModelInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteModelOutput { }
req . Data = output
return
}
// Deletes a model.
func ( c * APIGateway ) DeleteModel ( input * DeleteModelInput ) ( * DeleteModelOutput , error ) {
req , out := c . DeleteModelRequest ( input )
err := req . Send ( )
return out , err
}
const opDeleteResource = "DeleteResource"
2016-07-15 15:49:02 +02:00
// DeleteResourceRequest generates a "aws/request.Request" representing the
// client's request for the DeleteResource operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteResource method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteResourceRequest method.
// req, resp := client.DeleteResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) DeleteResourceRequest ( input * DeleteResourceInput ) ( req * request . Request , output * DeleteResourceOutput ) {
op := & request . Operation {
Name : opDeleteResource ,
HTTPMethod : "DELETE" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}" ,
}
if input == nil {
input = & DeleteResourceInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteResourceOutput { }
req . Data = output
return
}
// Deletes a Resource resource.
func ( c * APIGateway ) DeleteResource ( input * DeleteResourceInput ) ( * DeleteResourceOutput , error ) {
req , out := c . DeleteResourceRequest ( input )
err := req . Send ( )
return out , err
}
const opDeleteRestApi = "DeleteRestApi"
2016-07-15 15:49:02 +02:00
// DeleteRestApiRequest generates a "aws/request.Request" representing the
// client's request for the DeleteRestApi operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteRestApi method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteRestApiRequest method.
// req, resp := client.DeleteRestApiRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) DeleteRestApiRequest ( input * DeleteRestApiInput ) ( req * request . Request , output * DeleteRestApiOutput ) {
op := & request . Operation {
Name : opDeleteRestApi ,
HTTPMethod : "DELETE" ,
HTTPPath : "/restapis/{restapi_id}" ,
}
if input == nil {
input = & DeleteRestApiInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteRestApiOutput { }
req . Data = output
return
}
// Deletes the specified API.
func ( c * APIGateway ) DeleteRestApi ( input * DeleteRestApiInput ) ( * DeleteRestApiOutput , error ) {
req , out := c . DeleteRestApiRequest ( input )
err := req . Send ( )
return out , err
}
const opDeleteStage = "DeleteStage"
2016-07-15 15:49:02 +02:00
// DeleteStageRequest generates a "aws/request.Request" representing the
// client's request for the DeleteStage operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteStage method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteStageRequest method.
// req, resp := client.DeleteStageRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) DeleteStageRequest ( input * DeleteStageInput ) ( req * request . Request , output * DeleteStageOutput ) {
op := & request . Operation {
Name : opDeleteStage ,
HTTPMethod : "DELETE" ,
HTTPPath : "/restapis/{restapi_id}/stages/{stage_name}" ,
}
if input == nil {
input = & DeleteStageInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteStageOutput { }
req . Data = output
return
}
// Deletes a Stage resource.
func ( c * APIGateway ) DeleteStage ( input * DeleteStageInput ) ( * DeleteStageOutput , error ) {
req , out := c . DeleteStageRequest ( input )
err := req . Send ( )
return out , err
}
2016-08-20 11:16:03 +02:00
const opDeleteUsagePlan = "DeleteUsagePlan"
// DeleteUsagePlanRequest generates a "aws/request.Request" representing the
// client's request for the DeleteUsagePlan operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteUsagePlan method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteUsagePlanRequest method.
// req, resp := client.DeleteUsagePlanRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func ( c * APIGateway ) DeleteUsagePlanRequest ( input * DeleteUsagePlanInput ) ( req * request . Request , output * DeleteUsagePlanOutput ) {
op := & request . Operation {
Name : opDeleteUsagePlan ,
HTTPMethod : "DELETE" ,
HTTPPath : "/usageplans/{usageplanId}" ,
}
if input == nil {
input = & DeleteUsagePlanInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteUsagePlanOutput { }
req . Data = output
return
}
// Deletes a usage plan of a given plan Id.
func ( c * APIGateway ) DeleteUsagePlan ( input * DeleteUsagePlanInput ) ( * DeleteUsagePlanOutput , error ) {
req , out := c . DeleteUsagePlanRequest ( input )
err := req . Send ( )
return out , err
}
const opDeleteUsagePlanKey = "DeleteUsagePlanKey"
// DeleteUsagePlanKeyRequest generates a "aws/request.Request" representing the
// client's request for the DeleteUsagePlanKey operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteUsagePlanKey method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteUsagePlanKeyRequest method.
// req, resp := client.DeleteUsagePlanKeyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func ( c * APIGateway ) DeleteUsagePlanKeyRequest ( input * DeleteUsagePlanKeyInput ) ( req * request . Request , output * DeleteUsagePlanKeyOutput ) {
op := & request . Operation {
Name : opDeleteUsagePlanKey ,
HTTPMethod : "DELETE" ,
HTTPPath : "/usageplans/{usageplanId}/keys/{keyId}" ,
}
if input == nil {
input = & DeleteUsagePlanKeyInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & DeleteUsagePlanKeyOutput { }
req . Data = output
return
}
// Deletes a usage plan key and remove the underlying API key from the associated
// usage plan.
func ( c * APIGateway ) DeleteUsagePlanKey ( input * DeleteUsagePlanKeyInput ) ( * DeleteUsagePlanKeyOutput , error ) {
req , out := c . DeleteUsagePlanKeyRequest ( input )
err := req . Send ( )
return out , err
}
2016-03-11 01:27:37 +01:00
const opFlushStageAuthorizersCache = "FlushStageAuthorizersCache"
2016-07-15 15:49:02 +02:00
// FlushStageAuthorizersCacheRequest generates a "aws/request.Request" representing the
// client's request for the FlushStageAuthorizersCache operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the FlushStageAuthorizersCache method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the FlushStageAuthorizersCacheRequest method.
// req, resp := client.FlushStageAuthorizersCacheRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-11 01:27:37 +01:00
func ( c * APIGateway ) FlushStageAuthorizersCacheRequest ( input * FlushStageAuthorizersCacheInput ) ( req * request . Request , output * FlushStageAuthorizersCacheOutput ) {
op := & request . Operation {
Name : opFlushStageAuthorizersCache ,
HTTPMethod : "DELETE" ,
HTTPPath : "/restapis/{restapi_id}/stages/{stage_name}/cache/authorizers" ,
}
if input == nil {
input = & FlushStageAuthorizersCacheInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & FlushStageAuthorizersCacheOutput { }
req . Data = output
return
}
// Flushes all authorizer cache entries on a stage.
func ( c * APIGateway ) FlushStageAuthorizersCache ( input * FlushStageAuthorizersCacheInput ) ( * FlushStageAuthorizersCacheOutput , error ) {
req , out := c . FlushStageAuthorizersCacheRequest ( input )
err := req . Send ( )
return out , err
}
2016-03-05 23:12:19 +01:00
const opFlushStageCache = "FlushStageCache"
2016-07-15 15:49:02 +02:00
// FlushStageCacheRequest generates a "aws/request.Request" representing the
// client's request for the FlushStageCache operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the FlushStageCache method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the FlushStageCacheRequest method.
// req, resp := client.FlushStageCacheRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) FlushStageCacheRequest ( input * FlushStageCacheInput ) ( req * request . Request , output * FlushStageCacheOutput ) {
op := & request . Operation {
Name : opFlushStageCache ,
HTTPMethod : "DELETE" ,
HTTPPath : "/restapis/{restapi_id}/stages/{stage_name}/cache/data" ,
}
if input == nil {
input = & FlushStageCacheInput { }
}
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( restjson . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
output = & FlushStageCacheOutput { }
req . Data = output
return
}
// Flushes a stage's cache.
func ( c * APIGateway ) FlushStageCache ( input * FlushStageCacheInput ) ( * FlushStageCacheOutput , error ) {
req , out := c . FlushStageCacheRequest ( input )
err := req . Send ( )
return out , err
}
const opGenerateClientCertificate = "GenerateClientCertificate"
2016-07-15 15:49:02 +02:00
// GenerateClientCertificateRequest generates a "aws/request.Request" representing the
// client's request for the GenerateClientCertificate operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GenerateClientCertificate method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GenerateClientCertificateRequest method.
// req, resp := client.GenerateClientCertificateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GenerateClientCertificateRequest ( input * GenerateClientCertificateInput ) ( req * request . Request , output * ClientCertificate ) {
op := & request . Operation {
Name : opGenerateClientCertificate ,
HTTPMethod : "POST" ,
HTTPPath : "/clientcertificates" ,
}
if input == nil {
input = & GenerateClientCertificateInput { }
}
req = c . newRequest ( op , input , output )
output = & ClientCertificate { }
req . Data = output
return
}
2016-05-05 03:06:27 +02:00
// Generates a ClientCertificate resource.
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GenerateClientCertificate ( input * GenerateClientCertificateInput ) ( * ClientCertificate , error ) {
req , out := c . GenerateClientCertificateRequest ( input )
err := req . Send ( )
return out , err
}
const opGetAccount = "GetAccount"
2016-07-15 15:49:02 +02:00
// GetAccountRequest generates a "aws/request.Request" representing the
// client's request for the GetAccount operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetAccount method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetAccountRequest method.
// req, resp := client.GetAccountRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetAccountRequest ( input * GetAccountInput ) ( req * request . Request , output * Account ) {
op := & request . Operation {
Name : opGetAccount ,
HTTPMethod : "GET" ,
HTTPPath : "/account" ,
}
if input == nil {
input = & GetAccountInput { }
}
req = c . newRequest ( op , input , output )
output = & Account { }
req . Data = output
return
}
// Gets information about the current Account resource.
func ( c * APIGateway ) GetAccount ( input * GetAccountInput ) ( * Account , error ) {
req , out := c . GetAccountRequest ( input )
err := req . Send ( )
return out , err
}
const opGetApiKey = "GetApiKey"
2016-07-15 15:49:02 +02:00
// GetApiKeyRequest generates a "aws/request.Request" representing the
// client's request for the GetApiKey operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetApiKey method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetApiKeyRequest method.
// req, resp := client.GetApiKeyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetApiKeyRequest ( input * GetApiKeyInput ) ( req * request . Request , output * ApiKey ) {
op := & request . Operation {
Name : opGetApiKey ,
HTTPMethod : "GET" ,
HTTPPath : "/apikeys/{api_Key}" ,
}
if input == nil {
input = & GetApiKeyInput { }
}
req = c . newRequest ( op , input , output )
output = & ApiKey { }
req . Data = output
return
}
// Gets information about the current ApiKey resource.
func ( c * APIGateway ) GetApiKey ( input * GetApiKeyInput ) ( * ApiKey , error ) {
req , out := c . GetApiKeyRequest ( input )
err := req . Send ( )
return out , err
}
const opGetApiKeys = "GetApiKeys"
2016-07-15 15:49:02 +02:00
// GetApiKeysRequest generates a "aws/request.Request" representing the
// client's request for the GetApiKeys operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetApiKeys method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetApiKeysRequest method.
// req, resp := client.GetApiKeysRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetApiKeysRequest ( input * GetApiKeysInput ) ( req * request . Request , output * GetApiKeysOutput ) {
op := & request . Operation {
Name : opGetApiKeys ,
HTTPMethod : "GET" ,
HTTPPath : "/apikeys" ,
Paginator : & request . Paginator {
InputTokens : [ ] string { "position" } ,
OutputTokens : [ ] string { "position" } ,
LimitToken : "limit" ,
TruncationToken : "" ,
} ,
}
if input == nil {
input = & GetApiKeysInput { }
}
req = c . newRequest ( op , input , output )
output = & GetApiKeysOutput { }
req . Data = output
return
}
// Gets information about the current ApiKeys resource.
func ( c * APIGateway ) GetApiKeys ( input * GetApiKeysInput ) ( * GetApiKeysOutput , error ) {
req , out := c . GetApiKeysRequest ( input )
err := req . Send ( )
return out , err
}
2016-07-15 15:49:02 +02:00
// GetApiKeysPages iterates over the pages of a GetApiKeys operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetApiKeys method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a GetApiKeys operation.
// pageNum := 0
// err := client.GetApiKeysPages(params,
// func(page *GetApiKeysOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetApiKeysPages ( input * GetApiKeysInput , fn func ( p * GetApiKeysOutput , lastPage bool ) ( shouldContinue bool ) ) error {
page , _ := c . GetApiKeysRequest ( input )
page . Handlers . Build . PushBack ( request . MakeAddToUserAgentFreeFormHandler ( "Paginator" ) )
return page . EachPage ( func ( p interface { } , lastPage bool ) bool {
return fn ( p . ( * GetApiKeysOutput ) , lastPage )
} )
}
2016-03-06 09:47:30 +01:00
const opGetAuthorizer = "GetAuthorizer"
2016-07-15 15:49:02 +02:00
// GetAuthorizerRequest generates a "aws/request.Request" representing the
// client's request for the GetAuthorizer operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetAuthorizer method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetAuthorizerRequest method.
// req, resp := client.GetAuthorizerRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-06 09:47:30 +01:00
func ( c * APIGateway ) GetAuthorizerRequest ( input * GetAuthorizerInput ) ( req * request . Request , output * Authorizer ) {
op := & request . Operation {
Name : opGetAuthorizer ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/authorizers/{authorizer_id}" ,
}
if input == nil {
input = & GetAuthorizerInput { }
}
req = c . newRequest ( op , input , output )
output = & Authorizer { }
req . Data = output
return
}
// Describe an existing Authorizer resource.
2016-08-20 11:16:03 +02:00
//
// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-authorizer.html)
2016-03-06 09:47:30 +01:00
func ( c * APIGateway ) GetAuthorizer ( input * GetAuthorizerInput ) ( * Authorizer , error ) {
req , out := c . GetAuthorizerRequest ( input )
err := req . Send ( )
return out , err
}
const opGetAuthorizers = "GetAuthorizers"
2016-07-15 15:49:02 +02:00
// GetAuthorizersRequest generates a "aws/request.Request" representing the
// client's request for the GetAuthorizers operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetAuthorizers method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetAuthorizersRequest method.
// req, resp := client.GetAuthorizersRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-06 09:47:30 +01:00
func ( c * APIGateway ) GetAuthorizersRequest ( input * GetAuthorizersInput ) ( req * request . Request , output * GetAuthorizersOutput ) {
op := & request . Operation {
Name : opGetAuthorizers ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/authorizers" ,
}
if input == nil {
input = & GetAuthorizersInput { }
}
req = c . newRequest ( op , input , output )
output = & GetAuthorizersOutput { }
req . Data = output
return
}
// Describe an existing Authorizers resource.
2016-08-20 11:16:03 +02:00
//
// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-authorizers.html)
2016-03-06 09:47:30 +01:00
func ( c * APIGateway ) GetAuthorizers ( input * GetAuthorizersInput ) ( * GetAuthorizersOutput , error ) {
req , out := c . GetAuthorizersRequest ( input )
err := req . Send ( )
return out , err
}
2016-03-05 23:12:19 +01:00
const opGetBasePathMapping = "GetBasePathMapping"
2016-07-15 15:49:02 +02:00
// GetBasePathMappingRequest generates a "aws/request.Request" representing the
// client's request for the GetBasePathMapping operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetBasePathMapping method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetBasePathMappingRequest method.
// req, resp := client.GetBasePathMappingRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetBasePathMappingRequest ( input * GetBasePathMappingInput ) ( req * request . Request , output * BasePathMapping ) {
op := & request . Operation {
Name : opGetBasePathMapping ,
HTTPMethod : "GET" ,
HTTPPath : "/domainnames/{domain_name}/basepathmappings/{base_path}" ,
}
if input == nil {
input = & GetBasePathMappingInput { }
}
req = c . newRequest ( op , input , output )
output = & BasePathMapping { }
req . Data = output
return
}
// Describe a BasePathMapping resource.
func ( c * APIGateway ) GetBasePathMapping ( input * GetBasePathMappingInput ) ( * BasePathMapping , error ) {
req , out := c . GetBasePathMappingRequest ( input )
err := req . Send ( )
return out , err
}
const opGetBasePathMappings = "GetBasePathMappings"
2016-07-15 15:49:02 +02:00
// GetBasePathMappingsRequest generates a "aws/request.Request" representing the
// client's request for the GetBasePathMappings operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetBasePathMappings method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetBasePathMappingsRequest method.
// req, resp := client.GetBasePathMappingsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetBasePathMappingsRequest ( input * GetBasePathMappingsInput ) ( req * request . Request , output * GetBasePathMappingsOutput ) {
op := & request . Operation {
Name : opGetBasePathMappings ,
HTTPMethod : "GET" ,
HTTPPath : "/domainnames/{domain_name}/basepathmappings" ,
Paginator : & request . Paginator {
InputTokens : [ ] string { "position" } ,
OutputTokens : [ ] string { "position" } ,
LimitToken : "limit" ,
TruncationToken : "" ,
} ,
}
if input == nil {
input = & GetBasePathMappingsInput { }
}
req = c . newRequest ( op , input , output )
output = & GetBasePathMappingsOutput { }
req . Data = output
return
}
// Represents a collection of BasePathMapping resources.
func ( c * APIGateway ) GetBasePathMappings ( input * GetBasePathMappingsInput ) ( * GetBasePathMappingsOutput , error ) {
req , out := c . GetBasePathMappingsRequest ( input )
err := req . Send ( )
return out , err
}
2016-07-15 15:49:02 +02:00
// GetBasePathMappingsPages iterates over the pages of a GetBasePathMappings operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetBasePathMappings method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a GetBasePathMappings operation.
// pageNum := 0
// err := client.GetBasePathMappingsPages(params,
// func(page *GetBasePathMappingsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetBasePathMappingsPages ( input * GetBasePathMappingsInput , fn func ( p * GetBasePathMappingsOutput , lastPage bool ) ( shouldContinue bool ) ) error {
page , _ := c . GetBasePathMappingsRequest ( input )
page . Handlers . Build . PushBack ( request . MakeAddToUserAgentFreeFormHandler ( "Paginator" ) )
return page . EachPage ( func ( p interface { } , lastPage bool ) bool {
return fn ( p . ( * GetBasePathMappingsOutput ) , lastPage )
} )
}
const opGetClientCertificate = "GetClientCertificate"
2016-07-15 15:49:02 +02:00
// GetClientCertificateRequest generates a "aws/request.Request" representing the
// client's request for the GetClientCertificate operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetClientCertificate method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetClientCertificateRequest method.
// req, resp := client.GetClientCertificateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetClientCertificateRequest ( input * GetClientCertificateInput ) ( req * request . Request , output * ClientCertificate ) {
op := & request . Operation {
Name : opGetClientCertificate ,
HTTPMethod : "GET" ,
HTTPPath : "/clientcertificates/{clientcertificate_id}" ,
}
if input == nil {
input = & GetClientCertificateInput { }
}
req = c . newRequest ( op , input , output )
output = & ClientCertificate { }
req . Data = output
return
}
2016-05-05 03:06:27 +02:00
// Gets information about the current ClientCertificate resource.
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetClientCertificate ( input * GetClientCertificateInput ) ( * ClientCertificate , error ) {
req , out := c . GetClientCertificateRequest ( input )
err := req . Send ( )
return out , err
}
const opGetClientCertificates = "GetClientCertificates"
2016-07-15 15:49:02 +02:00
// GetClientCertificatesRequest generates a "aws/request.Request" representing the
// client's request for the GetClientCertificates operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetClientCertificates method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetClientCertificatesRequest method.
// req, resp := client.GetClientCertificatesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetClientCertificatesRequest ( input * GetClientCertificatesInput ) ( req * request . Request , output * GetClientCertificatesOutput ) {
op := & request . Operation {
Name : opGetClientCertificates ,
HTTPMethod : "GET" ,
HTTPPath : "/clientcertificates" ,
Paginator : & request . Paginator {
InputTokens : [ ] string { "position" } ,
OutputTokens : [ ] string { "position" } ,
LimitToken : "limit" ,
TruncationToken : "" ,
} ,
}
if input == nil {
input = & GetClientCertificatesInput { }
}
req = c . newRequest ( op , input , output )
output = & GetClientCertificatesOutput { }
req . Data = output
return
}
2016-05-05 03:06:27 +02:00
// Gets a collection of ClientCertificate resources.
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetClientCertificates ( input * GetClientCertificatesInput ) ( * GetClientCertificatesOutput , error ) {
req , out := c . GetClientCertificatesRequest ( input )
err := req . Send ( )
return out , err
}
2016-07-15 15:49:02 +02:00
// GetClientCertificatesPages iterates over the pages of a GetClientCertificates operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetClientCertificates method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a GetClientCertificates operation.
// pageNum := 0
// err := client.GetClientCertificatesPages(params,
// func(page *GetClientCertificatesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetClientCertificatesPages ( input * GetClientCertificatesInput , fn func ( p * GetClientCertificatesOutput , lastPage bool ) ( shouldContinue bool ) ) error {
page , _ := c . GetClientCertificatesRequest ( input )
page . Handlers . Build . PushBack ( request . MakeAddToUserAgentFreeFormHandler ( "Paginator" ) )
return page . EachPage ( func ( p interface { } , lastPage bool ) bool {
return fn ( p . ( * GetClientCertificatesOutput ) , lastPage )
} )
}
const opGetDeployment = "GetDeployment"
2016-07-15 15:49:02 +02:00
// GetDeploymentRequest generates a "aws/request.Request" representing the
// client's request for the GetDeployment operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetDeployment method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetDeploymentRequest method.
// req, resp := client.GetDeploymentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetDeploymentRequest ( input * GetDeploymentInput ) ( req * request . Request , output * Deployment ) {
op := & request . Operation {
Name : opGetDeployment ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/deployments/{deployment_id}" ,
}
if input == nil {
input = & GetDeploymentInput { }
}
req = c . newRequest ( op , input , output )
output = & Deployment { }
req . Data = output
return
}
// Gets information about a Deployment resource.
func ( c * APIGateway ) GetDeployment ( input * GetDeploymentInput ) ( * Deployment , error ) {
req , out := c . GetDeploymentRequest ( input )
err := req . Send ( )
return out , err
}
const opGetDeployments = "GetDeployments"
2016-07-15 15:49:02 +02:00
// GetDeploymentsRequest generates a "aws/request.Request" representing the
// client's request for the GetDeployments operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetDeployments method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetDeploymentsRequest method.
// req, resp := client.GetDeploymentsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetDeploymentsRequest ( input * GetDeploymentsInput ) ( req * request . Request , output * GetDeploymentsOutput ) {
op := & request . Operation {
Name : opGetDeployments ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/deployments" ,
Paginator : & request . Paginator {
InputTokens : [ ] string { "position" } ,
OutputTokens : [ ] string { "position" } ,
LimitToken : "limit" ,
TruncationToken : "" ,
} ,
}
if input == nil {
input = & GetDeploymentsInput { }
}
req = c . newRequest ( op , input , output )
output = & GetDeploymentsOutput { }
req . Data = output
return
}
// Gets information about a Deployments collection.
func ( c * APIGateway ) GetDeployments ( input * GetDeploymentsInput ) ( * GetDeploymentsOutput , error ) {
req , out := c . GetDeploymentsRequest ( input )
err := req . Send ( )
return out , err
}
2016-07-15 15:49:02 +02:00
// GetDeploymentsPages iterates over the pages of a GetDeployments operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetDeployments method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a GetDeployments operation.
// pageNum := 0
// err := client.GetDeploymentsPages(params,
// func(page *GetDeploymentsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetDeploymentsPages ( input * GetDeploymentsInput , fn func ( p * GetDeploymentsOutput , lastPage bool ) ( shouldContinue bool ) ) error {
page , _ := c . GetDeploymentsRequest ( input )
page . Handlers . Build . PushBack ( request . MakeAddToUserAgentFreeFormHandler ( "Paginator" ) )
return page . EachPage ( func ( p interface { } , lastPage bool ) bool {
return fn ( p . ( * GetDeploymentsOutput ) , lastPage )
} )
}
const opGetDomainName = "GetDomainName"
2016-07-15 15:49:02 +02:00
// GetDomainNameRequest generates a "aws/request.Request" representing the
// client's request for the GetDomainName operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetDomainName method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetDomainNameRequest method.
// req, resp := client.GetDomainNameRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetDomainNameRequest ( input * GetDomainNameInput ) ( req * request . Request , output * DomainName ) {
op := & request . Operation {
Name : opGetDomainName ,
HTTPMethod : "GET" ,
HTTPPath : "/domainnames/{domain_name}" ,
}
if input == nil {
input = & GetDomainNameInput { }
}
req = c . newRequest ( op , input , output )
output = & DomainName { }
req . Data = output
return
}
// Represents a domain name that is contained in a simpler, more intuitive URL
// that can be called.
func ( c * APIGateway ) GetDomainName ( input * GetDomainNameInput ) ( * DomainName , error ) {
req , out := c . GetDomainNameRequest ( input )
err := req . Send ( )
return out , err
}
const opGetDomainNames = "GetDomainNames"
2016-07-15 15:49:02 +02:00
// GetDomainNamesRequest generates a "aws/request.Request" representing the
// client's request for the GetDomainNames operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetDomainNames method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetDomainNamesRequest method.
// req, resp := client.GetDomainNamesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetDomainNamesRequest ( input * GetDomainNamesInput ) ( req * request . Request , output * GetDomainNamesOutput ) {
op := & request . Operation {
Name : opGetDomainNames ,
HTTPMethod : "GET" ,
HTTPPath : "/domainnames" ,
Paginator : & request . Paginator {
InputTokens : [ ] string { "position" } ,
OutputTokens : [ ] string { "position" } ,
LimitToken : "limit" ,
TruncationToken : "" ,
} ,
}
if input == nil {
input = & GetDomainNamesInput { }
}
req = c . newRequest ( op , input , output )
output = & GetDomainNamesOutput { }
req . Data = output
return
}
// Represents a collection of DomainName resources.
func ( c * APIGateway ) GetDomainNames ( input * GetDomainNamesInput ) ( * GetDomainNamesOutput , error ) {
req , out := c . GetDomainNamesRequest ( input )
err := req . Send ( )
return out , err
}
2016-07-15 15:49:02 +02:00
// GetDomainNamesPages iterates over the pages of a GetDomainNames operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetDomainNames method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a GetDomainNames operation.
// pageNum := 0
// err := client.GetDomainNamesPages(params,
// func(page *GetDomainNamesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetDomainNamesPages ( input * GetDomainNamesInput , fn func ( p * GetDomainNamesOutput , lastPage bool ) ( shouldContinue bool ) ) error {
page , _ := c . GetDomainNamesRequest ( input )
page . Handlers . Build . PushBack ( request . MakeAddToUserAgentFreeFormHandler ( "Paginator" ) )
return page . EachPage ( func ( p interface { } , lastPage bool ) bool {
return fn ( p . ( * GetDomainNamesOutput ) , lastPage )
} )
}
2016-03-06 09:47:30 +01:00
const opGetExport = "GetExport"
2016-07-15 15:49:02 +02:00
// GetExportRequest generates a "aws/request.Request" representing the
// client's request for the GetExport operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetExport method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetExportRequest method.
// req, resp := client.GetExportRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-06 09:47:30 +01:00
func ( c * APIGateway ) GetExportRequest ( input * GetExportInput ) ( req * request . Request , output * GetExportOutput ) {
op := & request . Operation {
Name : opGetExport ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/stages/{stage_name}/exports/{export_type}" ,
}
if input == nil {
input = & GetExportInput { }
}
req = c . newRequest ( op , input , output )
output = & GetExportOutput { }
req . Data = output
return
}
2016-05-05 03:06:27 +02:00
// Exports a deployed version of a RestApi in a specified format.
2016-03-06 09:47:30 +01:00
func ( c * APIGateway ) GetExport ( input * GetExportInput ) ( * GetExportOutput , error ) {
req , out := c . GetExportRequest ( input )
err := req . Send ( )
return out , err
}
2016-03-05 23:12:19 +01:00
const opGetIntegration = "GetIntegration"
2016-07-15 15:49:02 +02:00
// GetIntegrationRequest generates a "aws/request.Request" representing the
// client's request for the GetIntegration operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetIntegration method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetIntegrationRequest method.
// req, resp := client.GetIntegrationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetIntegrationRequest ( input * GetIntegrationInput ) ( req * request . Request , output * Integration ) {
op := & request . Operation {
Name : opGetIntegration ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration" ,
}
if input == nil {
input = & GetIntegrationInput { }
}
req = c . newRequest ( op , input , output )
output = & Integration { }
req . Data = output
return
}
// Represents a get integration.
func ( c * APIGateway ) GetIntegration ( input * GetIntegrationInput ) ( * Integration , error ) {
req , out := c . GetIntegrationRequest ( input )
err := req . Send ( )
return out , err
}
const opGetIntegrationResponse = "GetIntegrationResponse"
2016-07-15 15:49:02 +02:00
// GetIntegrationResponseRequest generates a "aws/request.Request" representing the
// client's request for the GetIntegrationResponse operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetIntegrationResponse method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetIntegrationResponseRequest method.
// req, resp := client.GetIntegrationResponseRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetIntegrationResponseRequest ( input * GetIntegrationResponseInput ) ( req * request . Request , output * IntegrationResponse ) {
op := & request . Operation {
Name : opGetIntegrationResponse ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}" ,
}
if input == nil {
input = & GetIntegrationResponseInput { }
}
req = c . newRequest ( op , input , output )
output = & IntegrationResponse { }
req . Data = output
return
}
// Represents a get integration response.
func ( c * APIGateway ) GetIntegrationResponse ( input * GetIntegrationResponseInput ) ( * IntegrationResponse , error ) {
req , out := c . GetIntegrationResponseRequest ( input )
err := req . Send ( )
return out , err
}
const opGetMethod = "GetMethod"
2016-07-15 15:49:02 +02:00
// GetMethodRequest generates a "aws/request.Request" representing the
// client's request for the GetMethod operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetMethod method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetMethodRequest method.
// req, resp := client.GetMethodRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetMethodRequest ( input * GetMethodInput ) ( req * request . Request , output * Method ) {
op := & request . Operation {
Name : opGetMethod ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}" ,
}
if input == nil {
input = & GetMethodInput { }
}
req = c . newRequest ( op , input , output )
output = & Method { }
req . Data = output
return
}
// Describe an existing Method resource.
func ( c * APIGateway ) GetMethod ( input * GetMethodInput ) ( * Method , error ) {
req , out := c . GetMethodRequest ( input )
err := req . Send ( )
return out , err
}
const opGetMethodResponse = "GetMethodResponse"
2016-07-15 15:49:02 +02:00
// GetMethodResponseRequest generates a "aws/request.Request" representing the
// client's request for the GetMethodResponse operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetMethodResponse method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetMethodResponseRequest method.
// req, resp := client.GetMethodResponseRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetMethodResponseRequest ( input * GetMethodResponseInput ) ( req * request . Request , output * MethodResponse ) {
op := & request . Operation {
Name : opGetMethodResponse ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}" ,
}
if input == nil {
input = & GetMethodResponseInput { }
}
req = c . newRequest ( op , input , output )
output = & MethodResponse { }
req . Data = output
return
}
// Describes a MethodResponse resource.
func ( c * APIGateway ) GetMethodResponse ( input * GetMethodResponseInput ) ( * MethodResponse , error ) {
req , out := c . GetMethodResponseRequest ( input )
err := req . Send ( )
return out , err
}
const opGetModel = "GetModel"
2016-07-15 15:49:02 +02:00
// GetModelRequest generates a "aws/request.Request" representing the
// client's request for the GetModel operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetModel method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetModelRequest method.
// req, resp := client.GetModelRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetModelRequest ( input * GetModelInput ) ( req * request . Request , output * Model ) {
op := & request . Operation {
Name : opGetModel ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/models/{model_name}" ,
}
if input == nil {
input = & GetModelInput { }
}
req = c . newRequest ( op , input , output )
output = & Model { }
req . Data = output
return
}
// Describes an existing model defined for a RestApi resource.
func ( c * APIGateway ) GetModel ( input * GetModelInput ) ( * Model , error ) {
req , out := c . GetModelRequest ( input )
err := req . Send ( )
return out , err
}
const opGetModelTemplate = "GetModelTemplate"
2016-07-15 15:49:02 +02:00
// GetModelTemplateRequest generates a "aws/request.Request" representing the
// client's request for the GetModelTemplate operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetModelTemplate method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetModelTemplateRequest method.
// req, resp := client.GetModelTemplateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetModelTemplateRequest ( input * GetModelTemplateInput ) ( req * request . Request , output * GetModelTemplateOutput ) {
op := & request . Operation {
Name : opGetModelTemplate ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/models/{model_name}/default_template" ,
}
if input == nil {
input = & GetModelTemplateInput { }
}
req = c . newRequest ( op , input , output )
output = & GetModelTemplateOutput { }
req . Data = output
return
}
// Generates a sample mapping template that can be used to transform a payload
// into the structure of a model.
func ( c * APIGateway ) GetModelTemplate ( input * GetModelTemplateInput ) ( * GetModelTemplateOutput , error ) {
req , out := c . GetModelTemplateRequest ( input )
err := req . Send ( )
return out , err
}
const opGetModels = "GetModels"
2016-07-15 15:49:02 +02:00
// GetModelsRequest generates a "aws/request.Request" representing the
// client's request for the GetModels operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetModels method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetModelsRequest method.
// req, resp := client.GetModelsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetModelsRequest ( input * GetModelsInput ) ( req * request . Request , output * GetModelsOutput ) {
op := & request . Operation {
Name : opGetModels ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/models" ,
Paginator : & request . Paginator {
InputTokens : [ ] string { "position" } ,
OutputTokens : [ ] string { "position" } ,
LimitToken : "limit" ,
TruncationToken : "" ,
} ,
}
if input == nil {
input = & GetModelsInput { }
}
req = c . newRequest ( op , input , output )
output = & GetModelsOutput { }
req . Data = output
return
}
// Describes existing Models defined for a RestApi resource.
func ( c * APIGateway ) GetModels ( input * GetModelsInput ) ( * GetModelsOutput , error ) {
req , out := c . GetModelsRequest ( input )
err := req . Send ( )
return out , err
}
2016-07-15 15:49:02 +02:00
// GetModelsPages iterates over the pages of a GetModels operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetModels method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a GetModels operation.
// pageNum := 0
// err := client.GetModelsPages(params,
// func(page *GetModelsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetModelsPages ( input * GetModelsInput , fn func ( p * GetModelsOutput , lastPage bool ) ( shouldContinue bool ) ) error {
page , _ := c . GetModelsRequest ( input )
page . Handlers . Build . PushBack ( request . MakeAddToUserAgentFreeFormHandler ( "Paginator" ) )
return page . EachPage ( func ( p interface { } , lastPage bool ) bool {
return fn ( p . ( * GetModelsOutput ) , lastPage )
} )
}
const opGetResource = "GetResource"
2016-07-15 15:49:02 +02:00
// GetResourceRequest generates a "aws/request.Request" representing the
// client's request for the GetResource operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetResource method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetResourceRequest method.
// req, resp := client.GetResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetResourceRequest ( input * GetResourceInput ) ( req * request . Request , output * Resource ) {
op := & request . Operation {
Name : opGetResource ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}" ,
}
if input == nil {
input = & GetResourceInput { }
}
req = c . newRequest ( op , input , output )
output = & Resource { }
req . Data = output
return
}
// Lists information about a resource.
func ( c * APIGateway ) GetResource ( input * GetResourceInput ) ( * Resource , error ) {
req , out := c . GetResourceRequest ( input )
err := req . Send ( )
return out , err
}
const opGetResources = "GetResources"
2016-07-15 15:49:02 +02:00
// GetResourcesRequest generates a "aws/request.Request" representing the
// client's request for the GetResources operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetResources method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetResourcesRequest method.
// req, resp := client.GetResourcesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetResourcesRequest ( input * GetResourcesInput ) ( req * request . Request , output * GetResourcesOutput ) {
op := & request . Operation {
Name : opGetResources ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/resources" ,
Paginator : & request . Paginator {
InputTokens : [ ] string { "position" } ,
OutputTokens : [ ] string { "position" } ,
LimitToken : "limit" ,
TruncationToken : "" ,
} ,
}
if input == nil {
input = & GetResourcesInput { }
}
req = c . newRequest ( op , input , output )
output = & GetResourcesOutput { }
req . Data = output
return
}
// Lists information about a collection of Resource resources.
func ( c * APIGateway ) GetResources ( input * GetResourcesInput ) ( * GetResourcesOutput , error ) {
req , out := c . GetResourcesRequest ( input )
err := req . Send ( )
return out , err
}
2016-07-15 15:49:02 +02:00
// GetResourcesPages iterates over the pages of a GetResources operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetResources method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a GetResources operation.
// pageNum := 0
// err := client.GetResourcesPages(params,
// func(page *GetResourcesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetResourcesPages ( input * GetResourcesInput , fn func ( p * GetResourcesOutput , lastPage bool ) ( shouldContinue bool ) ) error {
page , _ := c . GetResourcesRequest ( input )
page . Handlers . Build . PushBack ( request . MakeAddToUserAgentFreeFormHandler ( "Paginator" ) )
return page . EachPage ( func ( p interface { } , lastPage bool ) bool {
return fn ( p . ( * GetResourcesOutput ) , lastPage )
} )
}
const opGetRestApi = "GetRestApi"
2016-07-15 15:49:02 +02:00
// GetRestApiRequest generates a "aws/request.Request" representing the
// client's request for the GetRestApi operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetRestApi method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetRestApiRequest method.
// req, resp := client.GetRestApiRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetRestApiRequest ( input * GetRestApiInput ) ( req * request . Request , output * RestApi ) {
op := & request . Operation {
Name : opGetRestApi ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}" ,
}
if input == nil {
input = & GetRestApiInput { }
}
req = c . newRequest ( op , input , output )
output = & RestApi { }
req . Data = output
return
}
// Lists the RestApi resource in the collection.
func ( c * APIGateway ) GetRestApi ( input * GetRestApiInput ) ( * RestApi , error ) {
req , out := c . GetRestApiRequest ( input )
err := req . Send ( )
return out , err
}
const opGetRestApis = "GetRestApis"
2016-07-15 15:49:02 +02:00
// GetRestApisRequest generates a "aws/request.Request" representing the
// client's request for the GetRestApis operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetRestApis method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetRestApisRequest method.
// req, resp := client.GetRestApisRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetRestApisRequest ( input * GetRestApisInput ) ( req * request . Request , output * GetRestApisOutput ) {
op := & request . Operation {
Name : opGetRestApis ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis" ,
Paginator : & request . Paginator {
InputTokens : [ ] string { "position" } ,
OutputTokens : [ ] string { "position" } ,
LimitToken : "limit" ,
TruncationToken : "" ,
} ,
}
if input == nil {
input = & GetRestApisInput { }
}
req = c . newRequest ( op , input , output )
output = & GetRestApisOutput { }
req . Data = output
return
}
// Lists the RestApis resources for your collection.
func ( c * APIGateway ) GetRestApis ( input * GetRestApisInput ) ( * GetRestApisOutput , error ) {
req , out := c . GetRestApisRequest ( input )
err := req . Send ( )
return out , err
}
2016-07-15 15:49:02 +02:00
// GetRestApisPages iterates over the pages of a GetRestApis operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetRestApis method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a GetRestApis operation.
// pageNum := 0
// err := client.GetRestApisPages(params,
// func(page *GetRestApisOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetRestApisPages ( input * GetRestApisInput , fn func ( p * GetRestApisOutput , lastPage bool ) ( shouldContinue bool ) ) error {
page , _ := c . GetRestApisRequest ( input )
page . Handlers . Build . PushBack ( request . MakeAddToUserAgentFreeFormHandler ( "Paginator" ) )
return page . EachPage ( func ( p interface { } , lastPage bool ) bool {
return fn ( p . ( * GetRestApisOutput ) , lastPage )
} )
}
const opGetSdk = "GetSdk"
2016-07-15 15:49:02 +02:00
// GetSdkRequest generates a "aws/request.Request" representing the
// client's request for the GetSdk operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetSdk method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetSdkRequest method.
// req, resp := client.GetSdkRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetSdkRequest ( input * GetSdkInput ) ( req * request . Request , output * GetSdkOutput ) {
op := & request . Operation {
Name : opGetSdk ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/stages/{stage_name}/sdks/{sdk_type}" ,
}
if input == nil {
input = & GetSdkInput { }
}
req = c . newRequest ( op , input , output )
output = & GetSdkOutput { }
req . Data = output
return
}
2016-05-05 03:06:27 +02:00
// Generates a client SDK for a RestApi and Stage.
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetSdk ( input * GetSdkInput ) ( * GetSdkOutput , error ) {
req , out := c . GetSdkRequest ( input )
err := req . Send ( )
return out , err
}
const opGetStage = "GetStage"
2016-07-15 15:49:02 +02:00
// GetStageRequest generates a "aws/request.Request" representing the
// client's request for the GetStage operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetStage method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetStageRequest method.
// req, resp := client.GetStageRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetStageRequest ( input * GetStageInput ) ( req * request . Request , output * Stage ) {
op := & request . Operation {
Name : opGetStage ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/stages/{stage_name}" ,
}
if input == nil {
input = & GetStageInput { }
}
req = c . newRequest ( op , input , output )
output = & Stage { }
req . Data = output
return
}
// Gets information about a Stage resource.
func ( c * APIGateway ) GetStage ( input * GetStageInput ) ( * Stage , error ) {
req , out := c . GetStageRequest ( input )
err := req . Send ( )
return out , err
}
const opGetStages = "GetStages"
2016-07-15 15:49:02 +02:00
// GetStagesRequest generates a "aws/request.Request" representing the
// client's request for the GetStages operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetStages method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetStagesRequest method.
// req, resp := client.GetStagesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) GetStagesRequest ( input * GetStagesInput ) ( req * request . Request , output * GetStagesOutput ) {
op := & request . Operation {
Name : opGetStages ,
HTTPMethod : "GET" ,
HTTPPath : "/restapis/{restapi_id}/stages" ,
}
if input == nil {
input = & GetStagesInput { }
}
req = c . newRequest ( op , input , output )
output = & GetStagesOutput { }
req . Data = output
return
}
// Gets information about one or more Stage resources.
func ( c * APIGateway ) GetStages ( input * GetStagesInput ) ( * GetStagesOutput , error ) {
req , out := c . GetStagesRequest ( input )
err := req . Send ( )
return out , err
}
2016-08-20 11:16:03 +02:00
const opGetUsage = "GetUsage"
2016-05-05 03:06:27 +02:00
2016-08-20 11:16:03 +02:00
// GetUsageRequest generates a "aws/request.Request" representing the
// client's request for the GetUsage operation. The "output" return
2016-07-15 15:49:02 +02:00
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
2016-08-20 11:16:03 +02:00
// you just want the service response, call the GetUsage method directly
2016-07-15 15:49:02 +02:00
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
2016-08-20 11:16:03 +02:00
// // Example sending a request using the GetUsageRequest method.
// req, resp := client.GetUsageRequest(params)
2016-07-15 15:49:02 +02:00
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-08-20 11:16:03 +02:00
func ( c * APIGateway ) GetUsageRequest ( input * GetUsageInput ) ( req * request . Request , output * Usage ) {
2016-05-05 03:06:27 +02:00
op := & request . Operation {
2016-08-20 11:16:03 +02:00
Name : opGetUsage ,
HTTPMethod : "GET" ,
HTTPPath : "/usageplans/{usageplanId}/usage" ,
Paginator : & request . Paginator {
InputTokens : [ ] string { "position" } ,
OutputTokens : [ ] string { "position" } ,
LimitToken : "limit" ,
TruncationToken : "" ,
} ,
2016-05-05 03:06:27 +02:00
}
if input == nil {
2016-08-20 11:16:03 +02:00
input = & GetUsageInput { }
2016-05-05 03:06:27 +02:00
}
req = c . newRequest ( op , input , output )
2016-08-20 11:16:03 +02:00
output = & Usage { }
2016-05-05 03:06:27 +02:00
req . Data = output
return
}
2016-08-20 11:16:03 +02:00
// Gets the usage data of a usage plan in a specified time interval.
func ( c * APIGateway ) GetUsage ( input * GetUsageInput ) ( * Usage , error ) {
req , out := c . GetUsageRequest ( input )
2016-05-05 03:06:27 +02:00
err := req . Send ( )
return out , err
}
2016-08-20 11:16:03 +02:00
// GetUsagePages iterates over the pages of a GetUsage operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetUsage method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a GetUsage operation.
// pageNum := 0
// err := client.GetUsagePages(params,
// func(page *Usage, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func ( c * APIGateway ) GetUsagePages ( input * GetUsageInput , fn func ( p * Usage , lastPage bool ) ( shouldContinue bool ) ) error {
page , _ := c . GetUsageRequest ( input )
page . Handlers . Build . PushBack ( request . MakeAddToUserAgentFreeFormHandler ( "Paginator" ) )
return page . EachPage ( func ( p interface { } , lastPage bool ) bool {
return fn ( p . ( * Usage ) , lastPage )
} )
}
2016-03-05 23:12:19 +01:00
2016-08-20 11:16:03 +02:00
const opGetUsagePlan = "GetUsagePlan"
// GetUsagePlanRequest generates a "aws/request.Request" representing the
// client's request for the GetUsagePlan operation. The "output" return
2016-07-15 15:49:02 +02:00
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
2016-08-20 11:16:03 +02:00
// you just want the service response, call the GetUsagePlan method directly
2016-07-15 15:49:02 +02:00
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
2016-08-20 11:16:03 +02:00
// // Example sending a request using the GetUsagePlanRequest method.
// req, resp := client.GetUsagePlanRequest(params)
2016-07-15 15:49:02 +02:00
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-08-20 11:16:03 +02:00
func ( c * APIGateway ) GetUsagePlanRequest ( input * GetUsagePlanInput ) ( req * request . Request , output * UsagePlan ) {
2016-03-05 23:12:19 +01:00
op := & request . Operation {
2016-08-20 11:16:03 +02:00
Name : opGetUsagePlan ,
HTTPMethod : "GET" ,
HTTPPath : "/usageplans/{usageplanId}" ,
2016-03-05 23:12:19 +01:00
}
if input == nil {
2016-08-20 11:16:03 +02:00
input = & GetUsagePlanInput { }
2016-03-05 23:12:19 +01:00
}
req = c . newRequest ( op , input , output )
2016-08-20 11:16:03 +02:00
output = & UsagePlan { }
2016-03-05 23:12:19 +01:00
req . Data = output
return
}
2016-08-20 11:16:03 +02:00
// Gets a usage plan of a given plan identifier.
func ( c * APIGateway ) GetUsagePlan ( input * GetUsagePlanInput ) ( * UsagePlan , error ) {
req , out := c . GetUsagePlanRequest ( input )
2016-03-05 23:12:19 +01:00
err := req . Send ( )
return out , err
}
2016-08-20 11:16:03 +02:00
const opGetUsagePlanKey = "GetUsagePlanKey"
2016-03-05 23:12:19 +01:00
2016-08-20 11:16:03 +02:00
// GetUsagePlanKeyRequest generates a "aws/request.Request" representing the
// client's request for the GetUsagePlanKey operation. The "output" return
2016-07-15 15:49:02 +02:00
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
2016-08-20 11:16:03 +02:00
// you just want the service response, call the GetUsagePlanKey method directly
2016-07-15 15:49:02 +02:00
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
2016-08-20 11:16:03 +02:00
// // Example sending a request using the GetUsagePlanKeyRequest method.
// req, resp := client.GetUsagePlanKeyRequest(params)
2016-07-15 15:49:02 +02:00
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-08-20 11:16:03 +02:00
func ( c * APIGateway ) GetUsagePlanKeyRequest ( input * GetUsagePlanKeyInput ) ( req * request . Request , output * UsagePlanKey ) {
2016-03-05 23:12:19 +01:00
op := & request . Operation {
2016-08-20 11:16:03 +02:00
Name : opGetUsagePlanKey ,
HTTPMethod : "GET" ,
HTTPPath : "/usageplans/{usageplanId}/keys/{keyId}" ,
2016-03-05 23:12:19 +01:00
}
if input == nil {
2016-08-20 11:16:03 +02:00
input = & GetUsagePlanKeyInput { }
2016-03-05 23:12:19 +01:00
}
req = c . newRequest ( op , input , output )
2016-08-20 11:16:03 +02:00
output = & UsagePlanKey { }
2016-03-05 23:12:19 +01:00
req . Data = output
return
}
2016-08-20 11:16:03 +02:00
// Gets a usage plan key of a given key identifier.
func ( c * APIGateway ) GetUsagePlanKey ( input * GetUsagePlanKeyInput ) ( * UsagePlanKey , error ) {
req , out := c . GetUsagePlanKeyRequest ( input )
2016-03-05 23:12:19 +01:00
err := req . Send ( )
return out , err
}
2016-08-20 11:16:03 +02:00
const opGetUsagePlanKeys = "GetUsagePlanKeys"
2016-03-05 23:12:19 +01:00
2016-08-20 11:16:03 +02:00
// GetUsagePlanKeysRequest generates a "aws/request.Request" representing the
// client's request for the GetUsagePlanKeys operation. The "output" return
2016-07-15 15:49:02 +02:00
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
2016-08-20 11:16:03 +02:00
// you just want the service response, call the GetUsagePlanKeys method directly
2016-07-15 15:49:02 +02:00
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
2016-08-20 11:16:03 +02:00
// // Example sending a request using the GetUsagePlanKeysRequest method.
// req, resp := client.GetUsagePlanKeysRequest(params)
2016-07-15 15:49:02 +02:00
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-08-20 11:16:03 +02:00
func ( c * APIGateway ) GetUsagePlanKeysRequest ( input * GetUsagePlanKeysInput ) ( req * request . Request , output * GetUsagePlanKeysOutput ) {
2016-03-05 23:12:19 +01:00
op := & request . Operation {
2016-08-20 11:16:03 +02:00
Name : opGetUsagePlanKeys ,
HTTPMethod : "GET" ,
HTTPPath : "/usageplans/{usageplanId}/keys" ,
Paginator : & request . Paginator {
InputTokens : [ ] string { "position" } ,
OutputTokens : [ ] string { "position" } ,
LimitToken : "limit" ,
TruncationToken : "" ,
} ,
2016-03-05 23:12:19 +01:00
}
if input == nil {
2016-08-20 11:16:03 +02:00
input = & GetUsagePlanKeysInput { }
2016-03-05 23:12:19 +01:00
}
req = c . newRequest ( op , input , output )
2016-08-20 11:16:03 +02:00
output = & GetUsagePlanKeysOutput { }
2016-03-05 23:12:19 +01:00
req . Data = output
return
}
2016-08-20 11:16:03 +02:00
// Gets all the usage plan keys representing the API keys added to a specified
// usage plan.
func ( c * APIGateway ) GetUsagePlanKeys ( input * GetUsagePlanKeysInput ) ( * GetUsagePlanKeysOutput , error ) {
req , out := c . GetUsagePlanKeysRequest ( input )
2016-03-05 23:12:19 +01:00
err := req . Send ( )
return out , err
}
2016-08-20 11:16:03 +02:00
// GetUsagePlanKeysPages iterates over the pages of a GetUsagePlanKeys operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
2016-07-15 15:49:02 +02:00
//
2016-08-20 11:16:03 +02:00
// See GetUsagePlanKeys method for more information on how to use this operation.
2016-07-15 15:49:02 +02:00
//
2016-08-20 11:16:03 +02:00
// Note: This operation can generate multiple requests to a service.
2016-07-15 15:49:02 +02:00
//
2016-08-20 11:16:03 +02:00
// // Example iterating over at most 3 pages of a GetUsagePlanKeys operation.
// pageNum := 0
// err := client.GetUsagePlanKeysPages(params,
// func(page *GetUsagePlanKeysOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func ( c * APIGateway ) GetUsagePlanKeysPages ( input * GetUsagePlanKeysInput , fn func ( p * GetUsagePlanKeysOutput , lastPage bool ) ( shouldContinue bool ) ) error {
page , _ := c . GetUsagePlanKeysRequest ( input )
page . Handlers . Build . PushBack ( request . MakeAddToUserAgentFreeFormHandler ( "Paginator" ) )
return page . EachPage ( func ( p interface { } , lastPage bool ) bool {
return fn ( p . ( * GetUsagePlanKeysOutput ) , lastPage )
} )
}
const opGetUsagePlans = "GetUsagePlans"
// GetUsagePlansRequest generates a "aws/request.Request" representing the
// client's request for the GetUsagePlans operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetUsagePlans method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetUsagePlansRequest method.
// req, resp := client.GetUsagePlansRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func ( c * APIGateway ) GetUsagePlansRequest ( input * GetUsagePlansInput ) ( req * request . Request , output * GetUsagePlansOutput ) {
op := & request . Operation {
Name : opGetUsagePlans ,
HTTPMethod : "GET" ,
HTTPPath : "/usageplans" ,
Paginator : & request . Paginator {
InputTokens : [ ] string { "position" } ,
OutputTokens : [ ] string { "position" } ,
LimitToken : "limit" ,
TruncationToken : "" ,
} ,
}
if input == nil {
input = & GetUsagePlansInput { }
}
req = c . newRequest ( op , input , output )
output = & GetUsagePlansOutput { }
req . Data = output
return
}
// Gets all the usage plans of the caller's account.
func ( c * APIGateway ) GetUsagePlans ( input * GetUsagePlansInput ) ( * GetUsagePlansOutput , error ) {
req , out := c . GetUsagePlansRequest ( input )
err := req . Send ( )
return out , err
}
// GetUsagePlansPages iterates over the pages of a GetUsagePlans operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetUsagePlans method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a GetUsagePlans operation.
// pageNum := 0
// err := client.GetUsagePlansPages(params,
// func(page *GetUsagePlansOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func ( c * APIGateway ) GetUsagePlansPages ( input * GetUsagePlansInput , fn func ( p * GetUsagePlansOutput , lastPage bool ) ( shouldContinue bool ) ) error {
page , _ := c . GetUsagePlansRequest ( input )
page . Handlers . Build . PushBack ( request . MakeAddToUserAgentFreeFormHandler ( "Paginator" ) )
return page . EachPage ( func ( p interface { } , lastPage bool ) bool {
return fn ( p . ( * GetUsagePlansOutput ) , lastPage )
} )
}
const opImportApiKeys = "ImportApiKeys"
// ImportApiKeysRequest generates a "aws/request.Request" representing the
// client's request for the ImportApiKeys operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ImportApiKeys method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ImportApiKeysRequest method.
// req, resp := client.ImportApiKeysRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func ( c * APIGateway ) ImportApiKeysRequest ( input * ImportApiKeysInput ) ( req * request . Request , output * ImportApiKeysOutput ) {
op := & request . Operation {
Name : opImportApiKeys ,
HTTPMethod : "POST" ,
HTTPPath : "/apikeys?mode=import" ,
}
if input == nil {
input = & ImportApiKeysInput { }
}
req = c . newRequest ( op , input , output )
output = & ImportApiKeysOutput { }
req . Data = output
return
}
// Import API keys from an external source, such as a CSV-formatted file.
func ( c * APIGateway ) ImportApiKeys ( input * ImportApiKeysInput ) ( * ImportApiKeysOutput , error ) {
req , out := c . ImportApiKeysRequest ( input )
err := req . Send ( )
return out , err
}
const opImportRestApi = "ImportRestApi"
// ImportRestApiRequest generates a "aws/request.Request" representing the
// client's request for the ImportRestApi operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ImportRestApi method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ImportRestApiRequest method.
// req, resp := client.ImportRestApiRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func ( c * APIGateway ) ImportRestApiRequest ( input * ImportRestApiInput ) ( req * request . Request , output * RestApi ) {
op := & request . Operation {
Name : opImportRestApi ,
HTTPMethod : "POST" ,
HTTPPath : "/restapis?mode=import" ,
}
if input == nil {
input = & ImportRestApiInput { }
}
req = c . newRequest ( op , input , output )
output = & RestApi { }
req . Data = output
return
}
// A feature of the Amazon API Gateway control service for creating a new API
// from an external API definition file.
func ( c * APIGateway ) ImportRestApi ( input * ImportRestApiInput ) ( * RestApi , error ) {
req , out := c . ImportRestApiRequest ( input )
err := req . Send ( )
return out , err
}
const opPutIntegration = "PutIntegration"
// PutIntegrationRequest generates a "aws/request.Request" representing the
// client's request for the PutIntegration operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the PutIntegration method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the PutIntegrationRequest method.
// req, resp := client.PutIntegrationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func ( c * APIGateway ) PutIntegrationRequest ( input * PutIntegrationInput ) ( req * request . Request , output * Integration ) {
op := & request . Operation {
Name : opPutIntegration ,
HTTPMethod : "PUT" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration" ,
}
if input == nil {
input = & PutIntegrationInput { }
}
req = c . newRequest ( op , input , output )
output = & Integration { }
req . Data = output
return
}
// Represents a put integration.
func ( c * APIGateway ) PutIntegration ( input * PutIntegrationInput ) ( * Integration , error ) {
req , out := c . PutIntegrationRequest ( input )
err := req . Send ( )
return out , err
}
const opPutIntegrationResponse = "PutIntegrationResponse"
// PutIntegrationResponseRequest generates a "aws/request.Request" representing the
// client's request for the PutIntegrationResponse operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the PutIntegrationResponse method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the PutIntegrationResponseRequest method.
// req, resp := client.PutIntegrationResponseRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func ( c * APIGateway ) PutIntegrationResponseRequest ( input * PutIntegrationResponseInput ) ( req * request . Request , output * IntegrationResponse ) {
op := & request . Operation {
Name : opPutIntegrationResponse ,
HTTPMethod : "PUT" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}" ,
}
if input == nil {
input = & PutIntegrationResponseInput { }
}
req = c . newRequest ( op , input , output )
output = & IntegrationResponse { }
req . Data = output
return
}
// Represents a put integration.
func ( c * APIGateway ) PutIntegrationResponse ( input * PutIntegrationResponseInput ) ( * IntegrationResponse , error ) {
req , out := c . PutIntegrationResponseRequest ( input )
err := req . Send ( )
return out , err
}
const opPutMethod = "PutMethod"
// PutMethodRequest generates a "aws/request.Request" representing the
// client's request for the PutMethod operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the PutMethod method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the PutMethodRequest method.
// req, resp := client.PutMethodRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func ( c * APIGateway ) PutMethodRequest ( input * PutMethodInput ) ( req * request . Request , output * Method ) {
op := & request . Operation {
Name : opPutMethod ,
HTTPMethod : "PUT" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}" ,
}
if input == nil {
input = & PutMethodInput { }
}
req = c . newRequest ( op , input , output )
output = & Method { }
req . Data = output
return
}
// Add a method to an existing Resource resource.
func ( c * APIGateway ) PutMethod ( input * PutMethodInput ) ( * Method , error ) {
req , out := c . PutMethodRequest ( input )
err := req . Send ( )
return out , err
}
const opPutMethodResponse = "PutMethodResponse"
// PutMethodResponseRequest generates a "aws/request.Request" representing the
// client's request for the PutMethodResponse operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the PutMethodResponse method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the PutMethodResponseRequest method.
2016-07-15 15:49:02 +02:00
// req, resp := client.PutMethodResponseRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) PutMethodResponseRequest ( input * PutMethodResponseInput ) ( req * request . Request , output * MethodResponse ) {
op := & request . Operation {
Name : opPutMethodResponse ,
HTTPMethod : "PUT" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}" ,
}
if input == nil {
input = & PutMethodResponseInput { }
}
req = c . newRequest ( op , input , output )
output = & MethodResponse { }
req . Data = output
return
}
// Adds a MethodResponse to an existing Method resource.
func ( c * APIGateway ) PutMethodResponse ( input * PutMethodResponseInput ) ( * MethodResponse , error ) {
req , out := c . PutMethodResponseRequest ( input )
err := req . Send ( )
return out , err
}
2016-05-05 03:06:27 +02:00
const opPutRestApi = "PutRestApi"
2016-07-15 15:49:02 +02:00
// PutRestApiRequest generates a "aws/request.Request" representing the
// client's request for the PutRestApi operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the PutRestApi method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the PutRestApiRequest method.
// req, resp := client.PutRestApiRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-05-05 03:06:27 +02:00
func ( c * APIGateway ) PutRestApiRequest ( input * PutRestApiInput ) ( req * request . Request , output * RestApi ) {
op := & request . Operation {
Name : opPutRestApi ,
HTTPMethod : "PUT" ,
HTTPPath : "/restapis/{restapi_id}" ,
}
if input == nil {
input = & PutRestApiInput { }
}
req = c . newRequest ( op , input , output )
output = & RestApi { }
req . Data = output
return
}
// A feature of the Amazon API Gateway control service for updating an existing
// API with an input of external API definitions. The update can take the form
// of merging the supplied definition into the existing API or overwriting the
// existing API.
func ( c * APIGateway ) PutRestApi ( input * PutRestApiInput ) ( * RestApi , error ) {
req , out := c . PutRestApiRequest ( input )
err := req . Send ( )
return out , err
}
2016-03-11 01:27:37 +01:00
const opTestInvokeAuthorizer = "TestInvokeAuthorizer"
2016-07-15 15:49:02 +02:00
// TestInvokeAuthorizerRequest generates a "aws/request.Request" representing the
// client's request for the TestInvokeAuthorizer operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the TestInvokeAuthorizer method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the TestInvokeAuthorizerRequest method.
// req, resp := client.TestInvokeAuthorizerRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-11 01:27:37 +01:00
func ( c * APIGateway ) TestInvokeAuthorizerRequest ( input * TestInvokeAuthorizerInput ) ( req * request . Request , output * TestInvokeAuthorizerOutput ) {
op := & request . Operation {
Name : opTestInvokeAuthorizer ,
HTTPMethod : "POST" ,
HTTPPath : "/restapis/{restapi_id}/authorizers/{authorizer_id}" ,
}
if input == nil {
input = & TestInvokeAuthorizerInput { }
}
req = c . newRequest ( op , input , output )
output = & TestInvokeAuthorizerOutput { }
req . Data = output
return
}
2016-05-05 03:06:27 +02:00
// Simulate the execution of an Authorizer in your RestApi with headers, parameters,
// and an incoming request body.
2016-08-20 11:16:03 +02:00
//
// Enable custom authorizers (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html)
2016-03-11 01:27:37 +01:00
func ( c * APIGateway ) TestInvokeAuthorizer ( input * TestInvokeAuthorizerInput ) ( * TestInvokeAuthorizerOutput , error ) {
req , out := c . TestInvokeAuthorizerRequest ( input )
err := req . Send ( )
return out , err
}
2016-03-05 23:12:19 +01:00
const opTestInvokeMethod = "TestInvokeMethod"
2016-07-15 15:49:02 +02:00
// TestInvokeMethodRequest generates a "aws/request.Request" representing the
// client's request for the TestInvokeMethod operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the TestInvokeMethod method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the TestInvokeMethodRequest method.
// req, resp := client.TestInvokeMethodRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) TestInvokeMethodRequest ( input * TestInvokeMethodInput ) ( req * request . Request , output * TestInvokeMethodOutput ) {
op := & request . Operation {
Name : opTestInvokeMethod ,
HTTPMethod : "POST" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}" ,
}
if input == nil {
input = & TestInvokeMethodInput { }
}
req = c . newRequest ( op , input , output )
output = & TestInvokeMethodOutput { }
req . Data = output
return
}
2016-05-05 03:06:27 +02:00
// Simulate the execution of a Method in your RestApi with headers, parameters,
// and an incoming request body.
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) TestInvokeMethod ( input * TestInvokeMethodInput ) ( * TestInvokeMethodOutput , error ) {
req , out := c . TestInvokeMethodRequest ( input )
err := req . Send ( )
return out , err
}
const opUpdateAccount = "UpdateAccount"
2016-07-15 15:49:02 +02:00
// UpdateAccountRequest generates a "aws/request.Request" representing the
// client's request for the UpdateAccount operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateAccount method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateAccountRequest method.
// req, resp := client.UpdateAccountRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) UpdateAccountRequest ( input * UpdateAccountInput ) ( req * request . Request , output * Account ) {
op := & request . Operation {
Name : opUpdateAccount ,
HTTPMethod : "PATCH" ,
HTTPPath : "/account" ,
}
if input == nil {
input = & UpdateAccountInput { }
}
req = c . newRequest ( op , input , output )
output = & Account { }
req . Data = output
return
}
// Changes information about the current Account resource.
func ( c * APIGateway ) UpdateAccount ( input * UpdateAccountInput ) ( * Account , error ) {
req , out := c . UpdateAccountRequest ( input )
err := req . Send ( )
return out , err
}
const opUpdateApiKey = "UpdateApiKey"
2016-07-15 15:49:02 +02:00
// UpdateApiKeyRequest generates a "aws/request.Request" representing the
// client's request for the UpdateApiKey operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateApiKey method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateApiKeyRequest method.
// req, resp := client.UpdateApiKeyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) UpdateApiKeyRequest ( input * UpdateApiKeyInput ) ( req * request . Request , output * ApiKey ) {
op := & request . Operation {
Name : opUpdateApiKey ,
HTTPMethod : "PATCH" ,
HTTPPath : "/apikeys/{api_Key}" ,
}
if input == nil {
input = & UpdateApiKeyInput { }
}
req = c . newRequest ( op , input , output )
output = & ApiKey { }
req . Data = output
return
}
// Changes information about an ApiKey resource.
func ( c * APIGateway ) UpdateApiKey ( input * UpdateApiKeyInput ) ( * ApiKey , error ) {
req , out := c . UpdateApiKeyRequest ( input )
err := req . Send ( )
return out , err
}
2016-03-06 09:47:30 +01:00
const opUpdateAuthorizer = "UpdateAuthorizer"
2016-07-15 15:49:02 +02:00
// UpdateAuthorizerRequest generates a "aws/request.Request" representing the
// client's request for the UpdateAuthorizer operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateAuthorizer method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateAuthorizerRequest method.
// req, resp := client.UpdateAuthorizerRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-06 09:47:30 +01:00
func ( c * APIGateway ) UpdateAuthorizerRequest ( input * UpdateAuthorizerInput ) ( req * request . Request , output * Authorizer ) {
op := & request . Operation {
Name : opUpdateAuthorizer ,
HTTPMethod : "PATCH" ,
HTTPPath : "/restapis/{restapi_id}/authorizers/{authorizer_id}" ,
}
if input == nil {
input = & UpdateAuthorizerInput { }
}
req = c . newRequest ( op , input , output )
output = & Authorizer { }
req . Data = output
return
}
// Updates an existing Authorizer resource.
2016-08-20 11:16:03 +02:00
//
// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/update-authorizer.html)
2016-03-06 09:47:30 +01:00
func ( c * APIGateway ) UpdateAuthorizer ( input * UpdateAuthorizerInput ) ( * Authorizer , error ) {
req , out := c . UpdateAuthorizerRequest ( input )
err := req . Send ( )
return out , err
}
2016-03-05 23:12:19 +01:00
const opUpdateBasePathMapping = "UpdateBasePathMapping"
2016-07-15 15:49:02 +02:00
// UpdateBasePathMappingRequest generates a "aws/request.Request" representing the
// client's request for the UpdateBasePathMapping operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateBasePathMapping method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateBasePathMappingRequest method.
// req, resp := client.UpdateBasePathMappingRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) UpdateBasePathMappingRequest ( input * UpdateBasePathMappingInput ) ( req * request . Request , output * BasePathMapping ) {
op := & request . Operation {
Name : opUpdateBasePathMapping ,
HTTPMethod : "PATCH" ,
HTTPPath : "/domainnames/{domain_name}/basepathmappings/{base_path}" ,
}
if input == nil {
input = & UpdateBasePathMappingInput { }
}
req = c . newRequest ( op , input , output )
output = & BasePathMapping { }
req . Data = output
return
}
// Changes information about the BasePathMapping resource.
func ( c * APIGateway ) UpdateBasePathMapping ( input * UpdateBasePathMappingInput ) ( * BasePathMapping , error ) {
req , out := c . UpdateBasePathMappingRequest ( input )
err := req . Send ( )
return out , err
}
const opUpdateClientCertificate = "UpdateClientCertificate"
2016-07-15 15:49:02 +02:00
// UpdateClientCertificateRequest generates a "aws/request.Request" representing the
// client's request for the UpdateClientCertificate operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateClientCertificate method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateClientCertificateRequest method.
// req, resp := client.UpdateClientCertificateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) UpdateClientCertificateRequest ( input * UpdateClientCertificateInput ) ( req * request . Request , output * ClientCertificate ) {
op := & request . Operation {
Name : opUpdateClientCertificate ,
HTTPMethod : "PATCH" ,
HTTPPath : "/clientcertificates/{clientcertificate_id}" ,
}
if input == nil {
input = & UpdateClientCertificateInput { }
}
req = c . newRequest ( op , input , output )
output = & ClientCertificate { }
req . Data = output
return
}
2016-05-05 03:06:27 +02:00
// Changes information about an ClientCertificate resource.
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) UpdateClientCertificate ( input * UpdateClientCertificateInput ) ( * ClientCertificate , error ) {
req , out := c . UpdateClientCertificateRequest ( input )
err := req . Send ( )
return out , err
}
const opUpdateDeployment = "UpdateDeployment"
2016-07-15 15:49:02 +02:00
// UpdateDeploymentRequest generates a "aws/request.Request" representing the
// client's request for the UpdateDeployment operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateDeployment method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateDeploymentRequest method.
// req, resp := client.UpdateDeploymentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) UpdateDeploymentRequest ( input * UpdateDeploymentInput ) ( req * request . Request , output * Deployment ) {
op := & request . Operation {
Name : opUpdateDeployment ,
HTTPMethod : "PATCH" ,
HTTPPath : "/restapis/{restapi_id}/deployments/{deployment_id}" ,
}
if input == nil {
input = & UpdateDeploymentInput { }
}
req = c . newRequest ( op , input , output )
output = & Deployment { }
req . Data = output
return
}
// Changes information about a Deployment resource.
func ( c * APIGateway ) UpdateDeployment ( input * UpdateDeploymentInput ) ( * Deployment , error ) {
req , out := c . UpdateDeploymentRequest ( input )
err := req . Send ( )
return out , err
}
const opUpdateDomainName = "UpdateDomainName"
2016-07-15 15:49:02 +02:00
// UpdateDomainNameRequest generates a "aws/request.Request" representing the
// client's request for the UpdateDomainName operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateDomainName method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateDomainNameRequest method.
// req, resp := client.UpdateDomainNameRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) UpdateDomainNameRequest ( input * UpdateDomainNameInput ) ( req * request . Request , output * DomainName ) {
op := & request . Operation {
Name : opUpdateDomainName ,
HTTPMethod : "PATCH" ,
HTTPPath : "/domainnames/{domain_name}" ,
}
if input == nil {
input = & UpdateDomainNameInput { }
}
req = c . newRequest ( op , input , output )
output = & DomainName { }
req . Data = output
return
}
// Changes information about the DomainName resource.
func ( c * APIGateway ) UpdateDomainName ( input * UpdateDomainNameInput ) ( * DomainName , error ) {
req , out := c . UpdateDomainNameRequest ( input )
err := req . Send ( )
return out , err
}
const opUpdateIntegration = "UpdateIntegration"
2016-07-15 15:49:02 +02:00
// UpdateIntegrationRequest generates a "aws/request.Request" representing the
// client's request for the UpdateIntegration operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateIntegration method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateIntegrationRequest method.
// req, resp := client.UpdateIntegrationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) UpdateIntegrationRequest ( input * UpdateIntegrationInput ) ( req * request . Request , output * Integration ) {
op := & request . Operation {
Name : opUpdateIntegration ,
HTTPMethod : "PATCH" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration" ,
}
if input == nil {
input = & UpdateIntegrationInput { }
}
req = c . newRequest ( op , input , output )
output = & Integration { }
req . Data = output
return
}
// Represents an update integration.
func ( c * APIGateway ) UpdateIntegration ( input * UpdateIntegrationInput ) ( * Integration , error ) {
req , out := c . UpdateIntegrationRequest ( input )
err := req . Send ( )
return out , err
}
const opUpdateIntegrationResponse = "UpdateIntegrationResponse"
2016-07-15 15:49:02 +02:00
// UpdateIntegrationResponseRequest generates a "aws/request.Request" representing the
// client's request for the UpdateIntegrationResponse operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateIntegrationResponse method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateIntegrationResponseRequest method.
// req, resp := client.UpdateIntegrationResponseRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) UpdateIntegrationResponseRequest ( input * UpdateIntegrationResponseInput ) ( req * request . Request , output * IntegrationResponse ) {
op := & request . Operation {
Name : opUpdateIntegrationResponse ,
HTTPMethod : "PATCH" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}" ,
}
if input == nil {
input = & UpdateIntegrationResponseInput { }
}
req = c . newRequest ( op , input , output )
output = & IntegrationResponse { }
req . Data = output
return
}
// Represents an update integration response.
func ( c * APIGateway ) UpdateIntegrationResponse ( input * UpdateIntegrationResponseInput ) ( * IntegrationResponse , error ) {
req , out := c . UpdateIntegrationResponseRequest ( input )
err := req . Send ( )
return out , err
}
const opUpdateMethod = "UpdateMethod"
2016-07-15 15:49:02 +02:00
// UpdateMethodRequest generates a "aws/request.Request" representing the
// client's request for the UpdateMethod operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateMethod method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateMethodRequest method.
// req, resp := client.UpdateMethodRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) UpdateMethodRequest ( input * UpdateMethodInput ) ( req * request . Request , output * Method ) {
op := & request . Operation {
Name : opUpdateMethod ,
HTTPMethod : "PATCH" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}" ,
}
if input == nil {
input = & UpdateMethodInput { }
}
req = c . newRequest ( op , input , output )
output = & Method { }
req . Data = output
return
}
// Updates an existing Method resource.
func ( c * APIGateway ) UpdateMethod ( input * UpdateMethodInput ) ( * Method , error ) {
req , out := c . UpdateMethodRequest ( input )
err := req . Send ( )
return out , err
}
const opUpdateMethodResponse = "UpdateMethodResponse"
2016-07-15 15:49:02 +02:00
// UpdateMethodResponseRequest generates a "aws/request.Request" representing the
// client's request for the UpdateMethodResponse operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateMethodResponse method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateMethodResponseRequest method.
// req, resp := client.UpdateMethodResponseRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) UpdateMethodResponseRequest ( input * UpdateMethodResponseInput ) ( req * request . Request , output * MethodResponse ) {
op := & request . Operation {
Name : opUpdateMethodResponse ,
HTTPMethod : "PATCH" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}" ,
}
if input == nil {
input = & UpdateMethodResponseInput { }
}
req = c . newRequest ( op , input , output )
output = & MethodResponse { }
req . Data = output
return
}
// Updates an existing MethodResponse resource.
func ( c * APIGateway ) UpdateMethodResponse ( input * UpdateMethodResponseInput ) ( * MethodResponse , error ) {
req , out := c . UpdateMethodResponseRequest ( input )
err := req . Send ( )
return out , err
}
const opUpdateModel = "UpdateModel"
2016-07-15 15:49:02 +02:00
// UpdateModelRequest generates a "aws/request.Request" representing the
// client's request for the UpdateModel operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateModel method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateModelRequest method.
// req, resp := client.UpdateModelRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) UpdateModelRequest ( input * UpdateModelInput ) ( req * request . Request , output * Model ) {
op := & request . Operation {
Name : opUpdateModel ,
HTTPMethod : "PATCH" ,
HTTPPath : "/restapis/{restapi_id}/models/{model_name}" ,
}
if input == nil {
input = & UpdateModelInput { }
}
req = c . newRequest ( op , input , output )
output = & Model { }
req . Data = output
return
}
// Changes information about a model.
func ( c * APIGateway ) UpdateModel ( input * UpdateModelInput ) ( * Model , error ) {
req , out := c . UpdateModelRequest ( input )
err := req . Send ( )
return out , err
}
const opUpdateResource = "UpdateResource"
2016-07-15 15:49:02 +02:00
// UpdateResourceRequest generates a "aws/request.Request" representing the
// client's request for the UpdateResource operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateResource method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateResourceRequest method.
// req, resp := client.UpdateResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) UpdateResourceRequest ( input * UpdateResourceInput ) ( req * request . Request , output * Resource ) {
op := & request . Operation {
Name : opUpdateResource ,
HTTPMethod : "PATCH" ,
HTTPPath : "/restapis/{restapi_id}/resources/{resource_id}" ,
}
if input == nil {
input = & UpdateResourceInput { }
}
req = c . newRequest ( op , input , output )
output = & Resource { }
req . Data = output
return
}
// Changes information about a Resource resource.
func ( c * APIGateway ) UpdateResource ( input * UpdateResourceInput ) ( * Resource , error ) {
req , out := c . UpdateResourceRequest ( input )
err := req . Send ( )
return out , err
}
const opUpdateRestApi = "UpdateRestApi"
2016-07-15 15:49:02 +02:00
// UpdateRestApiRequest generates a "aws/request.Request" representing the
// client's request for the UpdateRestApi operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateRestApi method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateRestApiRequest method.
// req, resp := client.UpdateRestApiRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) UpdateRestApiRequest ( input * UpdateRestApiInput ) ( req * request . Request , output * RestApi ) {
op := & request . Operation {
Name : opUpdateRestApi ,
HTTPMethod : "PATCH" ,
HTTPPath : "/restapis/{restapi_id}" ,
}
if input == nil {
input = & UpdateRestApiInput { }
}
req = c . newRequest ( op , input , output )
output = & RestApi { }
req . Data = output
return
}
// Changes information about the specified API.
func ( c * APIGateway ) UpdateRestApi ( input * UpdateRestApiInput ) ( * RestApi , error ) {
req , out := c . UpdateRestApiRequest ( input )
err := req . Send ( )
return out , err
}
const opUpdateStage = "UpdateStage"
2016-07-15 15:49:02 +02:00
// UpdateStageRequest generates a "aws/request.Request" representing the
// client's request for the UpdateStage operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateStage method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateStageRequest method.
// req, resp := client.UpdateStageRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2016-03-05 23:12:19 +01:00
func ( c * APIGateway ) UpdateStageRequest ( input * UpdateStageInput ) ( req * request . Request , output * Stage ) {
op := & request . Operation {
Name : opUpdateStage ,
HTTPMethod : "PATCH" ,
HTTPPath : "/restapis/{restapi_id}/stages/{stage_name}" ,
}
if input == nil {
input = & UpdateStageInput { }
}
req = c . newRequest ( op , input , output )
output = & Stage { }
req . Data = output
return
}
// Changes information about a Stage resource.
func ( c * APIGateway ) UpdateStage ( input * UpdateStageInput ) ( * Stage , error ) {
req , out := c . UpdateStageRequest ( input )
err := req . Send ( )
return out , err
}
2016-08-20 11:16:03 +02:00
const opUpdateUsage = "UpdateUsage"
// UpdateUsageRequest generates a "aws/request.Request" representing the
// client's request for the UpdateUsage operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateUsage method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateUsageRequest method.
// req, resp := client.UpdateUsageRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func ( c * APIGateway ) UpdateUsageRequest ( input * UpdateUsageInput ) ( req * request . Request , output * Usage ) {
op := & request . Operation {
Name : opUpdateUsage ,
HTTPMethod : "PATCH" ,
HTTPPath : "/usageplans/{usageplanId}/keys/{keyId}/usage" ,
}
if input == nil {
input = & UpdateUsageInput { }
}
req = c . newRequest ( op , input , output )
output = & Usage { }
req . Data = output
return
}
// Grants a temporary extension to the reamining quota of a usage plan associated
// with a specified API key.
func ( c * APIGateway ) UpdateUsage ( input * UpdateUsageInput ) ( * Usage , error ) {
req , out := c . UpdateUsageRequest ( input )
err := req . Send ( )
return out , err
}
const opUpdateUsagePlan = "UpdateUsagePlan"
// UpdateUsagePlanRequest generates a "aws/request.Request" representing the
// client's request for the UpdateUsagePlan operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateUsagePlan method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateUsagePlanRequest method.
// req, resp := client.UpdateUsagePlanRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func ( c * APIGateway ) UpdateUsagePlanRequest ( input * UpdateUsagePlanInput ) ( req * request . Request , output * UsagePlan ) {
op := & request . Operation {
Name : opUpdateUsagePlan ,
HTTPMethod : "PATCH" ,
HTTPPath : "/usageplans/{usageplanId}" ,
}
if input == nil {
input = & UpdateUsagePlanInput { }
}
req = c . newRequest ( op , input , output )
output = & UsagePlan { }
req . Data = output
return
}
// Updates a usage plan of a given plan Id.
func ( c * APIGateway ) UpdateUsagePlan ( input * UpdateUsagePlanInput ) ( * UsagePlan , error ) {
req , out := c . UpdateUsagePlanRequest ( input )
err := req . Send ( )
return out , err
}
2016-03-05 23:12:19 +01:00
// Represents an AWS account that is associated with Amazon API Gateway.
2016-08-20 11:16:03 +02:00
//
// To view the account info, call GET on this resource.
//
// Error Codes
//
// The following exception may be thrown when the request fails.
//
// UnauthorizedException NotFoundException TooManyRequestsException For detailed
// error code information, including the corresponding HTTP Status Codes, see
// API Gateway Error Codes (http://docs.aws.amazon.com/apigateway/api-reference/handling-errors/#api-error-codes)
//
// Example: Get the information about an account.
//
// Request
//
// GET /account HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com
// X-Amz-Date: 20160531T184618Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/us-east-1/apigateway/aws4_request,
// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response
//
// The successful response returns a 200 OK status code and a payload similar
// to the following:
//
// { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/account-apigateway-{rel}.html",
// "name": "account", "templated": true }, "self": { "href": "/account" }, "account:update":
// { "href": "/account" } }, "cloudwatchRoleArn": "arn:aws:iam::123456789012:role/apigAwsProxyRole",
// "throttleSettings": { "rateLimit": 500, "burstLimit": 1000 } } In addition
// to making the REST API call directly, you can use the AWS CLI and an AWS
// SDK to access this resource.
//
// API Gateway Limits (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-limits.html)
// Developer Guide (http://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html),
// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-account.html)
2016-03-05 23:12:19 +01:00
type Account struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// The version of the API keys used for the account.
ApiKeyVersion * string ` locationName:"apiKeyVersion" type:"string" `
// The ARN of an Amazon CloudWatch role for the current Account.
2016-03-05 23:12:19 +01:00
CloudwatchRoleArn * string ` locationName:"cloudwatchRoleArn" type:"string" `
2016-08-20 11:16:03 +02:00
// A list of features supported for the account. When usage plans are enabled,
// the features list will include an entry of "UsagePlans".
Features [ ] * string ` locationName:"features" type:"list" `
// Specifies the API request limits configured for the current Account.
2016-03-05 23:12:19 +01:00
ThrottleSettings * ThrottleSettings ` locationName:"throttleSettings" type:"structure" `
}
// String returns the string representation
func ( s Account ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s Account ) GoString ( ) string {
return s . String ( )
}
// A resource that can be distributed to callers for executing Method resources
// that require an API key. API keys can be mapped to any Stage on any RestApi,
// which indicates that the callers with the API key can make requests to that
// stage.
2016-08-20 11:16:03 +02:00
//
// Use API Keys (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html)
2016-03-05 23:12:19 +01:00
type ApiKey struct {
_ struct { } ` type:"structure" `
2016-03-06 09:47:30 +01:00
// The date when the API Key was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm"
// target="_blank).
2016-03-05 23:12:19 +01:00
CreatedDate * time . Time ` locationName:"createdDate" type:"timestamp" timestampFormat:"unix" `
// The description of the API Key.
Description * string ` locationName:"description" type:"string" `
// Specifies whether the API Key can be used by callers.
Enabled * bool ` locationName:"enabled" type:"boolean" `
// The identifier of the API Key.
Id * string ` locationName:"id" type:"string" `
// When the API Key was last updated, in ISO 8601 format.
LastUpdatedDate * time . Time ` locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix" `
// The name of the API Key.
Name * string ` locationName:"name" type:"string" `
// A list of Stage resources that are associated with the ApiKey resource.
StageKeys [ ] * string ` locationName:"stageKeys" type:"list" `
2016-08-20 11:16:03 +02:00
// The value of the API Key.
Value * string ` locationName:"value" type:"string" `
2016-03-05 23:12:19 +01:00
}
// String returns the string representation
func ( s ApiKey ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ApiKey ) GoString ( ) string {
return s . String ( )
}
2016-08-20 11:16:03 +02:00
// API stage name of the associated API stage in a usage plan.
type ApiStage struct {
_ struct { } ` type:"structure" `
// API Id of the associated API stage in a usage plan.
ApiId * string ` locationName:"apiId" type:"string" `
// API stage name of the associated API stage in a usage plan.
Stage * string ` locationName:"stage" type:"string" `
}
// String returns the string representation
func ( s ApiStage ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ApiStage ) GoString ( ) string {
return s . String ( )
}
2016-03-06 09:47:30 +01:00
// Represents an authorization layer for methods. If enabled on a method, API
// Gateway will activate the authorizer when a client calls the method.
2016-08-20 11:16:03 +02:00
//
// Enable custom authorization (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html)
2016-03-06 09:47:30 +01:00
type Authorizer struct {
_ struct { } ` type:"structure" `
2016-05-05 03:06:27 +02:00
// Optional customer-defined field, used in Swagger imports/exports. Has no
// functional impact.
AuthType * string ` locationName:"authType" type:"string" `
2016-03-06 09:47:30 +01:00
// Specifies the credentials required for the authorizer, if any. Two options
2016-08-20 11:16:03 +02:00
// are available. To specify an IAM role for Amazon API Gateway to assume, use
2016-03-06 09:47:30 +01:00
// the role's Amazon Resource Name (ARN). To use resource-based permissions
// on the Lambda function, specify null.
AuthorizerCredentials * string ` locationName:"authorizerCredentials" type:"string" `
// The TTL in seconds of cached authorizer results. If greater than 0, API Gateway
// will cache authorizer responses. If this field is not set, the default value
// is 300. The maximum value is 3600, or 1 hour.
AuthorizerResultTtlInSeconds * int64 ` locationName:"authorizerResultTtlInSeconds" type:"integer" `
// [Required] Specifies the authorizer's Uniform Resource Identifier (URI).
// For TOKEN authorizers, this must be a well-formed Lambda function URI. The
// URI should be of the form arn:aws:apigateway:{region}:lambda:path/{service_api}.
// Region is used to determine the right endpoint. In this case, path is used
// to indicate that the remaining substring in the URI should be treated as
// the path to the resource, including the initial /. For Lambda functions,
// this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations
AuthorizerUri * string ` locationName:"authorizerUri" type:"string" `
// The identifier for the authorizer resource.
Id * string ` locationName:"id" type:"string" `
// [Required] The source of the identity in an incoming request. For TOKEN authorizers,
// this value is a mapping expression with the same syntax as integration parameter
// mappings. The only valid source for tokens is 'header', so the expression
// should match 'method.request.header.[headerName]'. The value of the header
// '[headerName]' will be interpreted as the incoming token.
IdentitySource * string ` locationName:"identitySource" type:"string" `
// A validation expression for the incoming identity. For TOKEN authorizers,
// this value should be a regular expression. The incoming token from the client
// is matched against this expression, and will proceed if the token matches.
// If the token doesn't match, the client receives a 401 Unauthorized response.
IdentityValidationExpression * string ` locationName:"identityValidationExpression" type:"string" `
// [Required] The name of the authorizer.
Name * string ` locationName:"name" type:"string" `
2016-08-20 11:16:03 +02:00
// A list of the provider ARNs of the authorizer.
2016-07-29 10:11:56 +02:00
ProviderARNs [ ] * string ` locationName:"providerARNs" type:"list" `
2016-03-06 09:47:30 +01:00
// [Required] The type of the authorizer. Currently, the only valid type is
// TOKEN.
Type * string ` locationName:"type" type:"string" enum:"AuthorizerType" `
}
// String returns the string representation
func ( s Authorizer ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s Authorizer ) GoString ( ) string {
return s . String ( )
}
2016-08-20 11:16:03 +02:00
// Represents the base path that callers of the API must provide as part of
// the URL after the domain name.
//
// A custom domain name plus a BasePathMapping specification identifies a deployed
// RestApi in a given stage of the owner Account. Use Custom Domain Names (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html)
2016-03-05 23:12:19 +01:00
type BasePathMapping struct {
_ struct { } ` type:"structure" `
// The base path name that callers of the API must provide as part of the URL
// after the domain name.
BasePath * string ` locationName:"basePath" type:"string" `
// The name of the API.
RestApiId * string ` locationName:"restApiId" type:"string" `
// The name of the API's stage.
Stage * string ` locationName:"stage" type:"string" `
}
// String returns the string representation
func ( s BasePathMapping ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s BasePathMapping ) GoString ( ) string {
return s . String ( )
}
2016-08-20 11:16:03 +02:00
// Represents a client certificate used to configure client-side SSL authentication
2016-05-05 03:06:27 +02:00
// while sending requests to the integration endpoint.
2016-08-20 11:16:03 +02:00
//
// Client certificates are used authenticate an API by the back-end server.
// To authenticate an API client (or user), use a custom Authorizer. Use Client-Side
// Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html)
2016-03-05 23:12:19 +01:00
type ClientCertificate struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// The identifier of the client certificate.
2016-03-05 23:12:19 +01:00
ClientCertificateId * string ` locationName:"clientCertificateId" type:"string" `
2016-08-20 11:16:03 +02:00
// The date when the client certificate was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm"
2016-05-05 03:06:27 +02:00
// target="_blank).
2016-03-05 23:12:19 +01:00
CreatedDate * time . Time ` locationName:"createdDate" type:"timestamp" timestampFormat:"unix" `
2016-08-20 11:16:03 +02:00
// The description of the client certificate.
2016-03-05 23:12:19 +01:00
Description * string ` locationName:"description" type:"string" `
2016-08-20 11:16:03 +02:00
// The date when the client certificate will expire, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm"
2016-05-05 03:06:27 +02:00
// target="_blank).
2016-03-05 23:12:19 +01:00
ExpirationDate * time . Time ` locationName:"expirationDate" type:"timestamp" timestampFormat:"unix" `
2016-08-20 11:16:03 +02:00
// The PEM-encoded public key of the client certificate, which can be used to
2016-05-05 03:06:27 +02:00
// configure certificate authentication in the integration endpoint .
2016-03-05 23:12:19 +01:00
PemEncodedCertificate * string ` locationName:"pemEncodedCertificate" type:"string" `
}
// String returns the string representation
func ( s ClientCertificate ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ClientCertificate ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Request to create an ApiKey resource.
2016-03-05 23:12:19 +01:00
type CreateApiKeyInput struct {
_ struct { } ` type:"structure" `
// The description of the ApiKey.
Description * string ` locationName:"description" type:"string" `
// Specifies whether the ApiKey can be used by callers.
Enabled * bool ` locationName:"enabled" type:"boolean" `
2016-08-20 11:16:03 +02:00
// Specifies whether (true) or not (false) the key identifier is distinct from
// the created API key value.
GenerateDistinctId * bool ` locationName:"generateDistinctId" type:"boolean" `
2016-03-05 23:12:19 +01:00
// The name of the ApiKey.
Name * string ` locationName:"name" type:"string" `
2016-08-20 11:16:03 +02:00
// DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
2016-03-05 23:12:19 +01:00
StageKeys [ ] * StageKey ` locationName:"stageKeys" type:"list" `
2016-08-20 11:16:03 +02:00
// Specifies a value of the API key.
Value * string ` locationName:"value" type:"string" `
2016-03-05 23:12:19 +01:00
}
// String returns the string representation
func ( s CreateApiKeyInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateApiKeyInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Request to add a new Authorizer to an existing RestApi resource.
2016-03-06 09:47:30 +01:00
type CreateAuthorizerInput struct {
_ struct { } ` type:"structure" `
2016-05-05 03:06:27 +02:00
// Optional customer-defined field, used in Swagger imports/exports. Has no
// functional impact.
AuthType * string ` locationName:"authType" type:"string" `
2016-03-06 09:47:30 +01:00
// Specifies the credentials required for the authorizer, if any.
AuthorizerCredentials * string ` locationName:"authorizerCredentials" type:"string" `
// The TTL of cached authorizer results.
AuthorizerResultTtlInSeconds * int64 ` locationName:"authorizerResultTtlInSeconds" type:"integer" `
// [Required] Specifies the authorizer's Uniform Resource Identifier (URI).
2016-07-29 10:11:56 +02:00
AuthorizerUri * string ` locationName:"authorizerUri" type:"string" `
2016-03-06 09:47:30 +01:00
// [Required] The source of the identity in an incoming request.
IdentitySource * string ` locationName:"identitySource" type:"string" required:"true" `
// A validation expression for the incoming identity.
IdentityValidationExpression * string ` locationName:"identityValidationExpression" type:"string" `
// [Required] The name of the authorizer.
Name * string ` locationName:"name" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// A list of the Cognito Your User Pool authorizer's provider ARNs.
2016-07-29 10:11:56 +02:00
ProviderARNs [ ] * string ` locationName:"providerARNs" type:"list" `
2016-05-05 03:06:27 +02:00
// The RestApi identifier under which the Authorizer will be created.
2016-03-06 09:47:30 +01:00
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// [Required] The type of the authorizer.
Type * string ` locationName:"type" type:"string" required:"true" enum:"AuthorizerType" `
}
// String returns the string representation
func ( s CreateAuthorizerInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateAuthorizerInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * CreateAuthorizerInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "CreateAuthorizerInput" }
if s . IdentitySource == nil {
invalidParams . Add ( request . NewErrParamRequired ( "IdentitySource" ) )
}
if s . Name == nil {
invalidParams . Add ( request . NewErrParamRequired ( "Name" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . Type == nil {
invalidParams . Add ( request . NewErrParamRequired ( "Type" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Requests Amazon API Gateway to create a new BasePathMapping resource.
type CreateBasePathMappingInput struct {
_ struct { } ` type:"structure" `
// The base path name that callers of the API must provide as part of the URL
// after the domain name. This value must be unique for all of the mappings
// across a single API. Leave this blank if you do not want callers to specify
// a base path name after the domain name.
BasePath * string ` locationName:"basePath" type:"string" `
// The domain name of the BasePathMapping resource to create.
DomainName * string ` location:"uri" locationName:"domain_name" type:"string" required:"true" `
// The name of the API that you want to apply this mapping to.
RestApiId * string ` locationName:"restApiId" type:"string" required:"true" `
// The name of the API's stage that you want to use for this mapping. Leave
// this blank if you do not want callers to explicitly specify the stage name
// after any base path name.
Stage * string ` locationName:"stage" type:"string" `
}
// String returns the string representation
func ( s CreateBasePathMappingInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateBasePathMappingInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * CreateBasePathMappingInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "CreateBasePathMappingInput" }
if s . DomainName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DomainName" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Requests Amazon API Gateway to create a Deployment resource.
type CreateDeploymentInput struct {
_ struct { } ` type:"structure" `
// Enables a cache cluster for the Stage resource specified in the input.
CacheClusterEnabled * bool ` locationName:"cacheClusterEnabled" type:"boolean" `
// Specifies the cache cluster size for the Stage resource specified in the
// input, if a cache cluster is enabled.
CacheClusterSize * string ` locationName:"cacheClusterSize" type:"string" enum:"CacheClusterSize" `
// The description for the Deployment resource to create.
Description * string ` locationName:"description" type:"string" `
// The RestApi resource identifier for the Deployment resource to create.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// The description of the Stage resource for the Deployment resource to create.
StageDescription * string ` locationName:"stageDescription" type:"string" `
// The name of the Stage resource for the Deployment resource to create.
StageName * string ` locationName:"stageName" type:"string" required:"true" `
// A map that defines the stage variables for the Stage resource that is associated
2016-08-20 11:16:03 +02:00
// with the new deployment. Variable names can have alphanumeric and underscore
// characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
2016-03-05 23:12:19 +01:00
Variables map [ string ] * string ` locationName:"variables" type:"map" `
}
// String returns the string representation
func ( s CreateDeploymentInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateDeploymentInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * CreateDeploymentInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "CreateDeploymentInput" }
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StageName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StageName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// A request to create a new domain name.
type CreateDomainNameInput struct {
_ struct { } ` type:"structure" `
// The body of the server certificate provided by your certificate authority.
CertificateBody * string ` locationName:"certificateBody" type:"string" required:"true" `
// The intermediate certificates and optionally the root certificate, one after
// the other without any blank lines. If you include the root certificate, your
// certificate chain must start with intermediate certificates and end with
// the root certificate. Use the intermediate certificates that were provided
// by your certificate authority. Do not include any intermediaries that are
// not in the chain of trust path.
CertificateChain * string ` locationName:"certificateChain" type:"string" required:"true" `
// The name of the certificate.
CertificateName * string ` locationName:"certificateName" type:"string" required:"true" `
// Your certificate's private key.
CertificatePrivateKey * string ` locationName:"certificatePrivateKey" type:"string" required:"true" `
// The name of the DomainName resource.
DomainName * string ` locationName:"domainName" type:"string" required:"true" `
}
// String returns the string representation
func ( s CreateDomainNameInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateDomainNameInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * CreateDomainNameInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "CreateDomainNameInput" }
if s . CertificateBody == nil {
invalidParams . Add ( request . NewErrParamRequired ( "CertificateBody" ) )
}
if s . CertificateChain == nil {
invalidParams . Add ( request . NewErrParamRequired ( "CertificateChain" ) )
}
if s . CertificateName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "CertificateName" ) )
}
if s . CertificatePrivateKey == nil {
invalidParams . Add ( request . NewErrParamRequired ( "CertificatePrivateKey" ) )
}
if s . DomainName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DomainName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Request to add a new Model to an existing RestApi resource.
type CreateModelInput struct {
_ struct { } ` type:"structure" `
// The content-type for the model.
ContentType * string ` locationName:"contentType" type:"string" required:"true" `
// The description of the model.
Description * string ` locationName:"description" type:"string" `
// The name of the model.
Name * string ` locationName:"name" type:"string" required:"true" `
// The RestApi identifier under which the Model will be created.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// The schema for the model. For application/json models, this should be JSON-schema
2016-03-06 09:47:30 +01:00
// draft v4 (http://json-schema.org/documentation.html" target="_blank) model.
2016-03-05 23:12:19 +01:00
Schema * string ` locationName:"schema" type:"string" `
}
// String returns the string representation
func ( s CreateModelInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateModelInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * CreateModelInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "CreateModelInput" }
if s . ContentType == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ContentType" ) )
}
if s . Name == nil {
invalidParams . Add ( request . NewErrParamRequired ( "Name" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Requests Amazon API Gateway to create a Resource resource.
type CreateResourceInput struct {
_ struct { } ` type:"structure" `
// The parent resource's identifier.
ParentId * string ` location:"uri" locationName:"parent_id" type:"string" required:"true" `
// The last path segment for this resource.
PathPart * string ` locationName:"pathPart" type:"string" required:"true" `
// The identifier of the RestApi for the resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s CreateResourceInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateResourceInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * CreateResourceInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "CreateResourceInput" }
if s . ParentId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ParentId" ) )
}
if s . PathPart == nil {
invalidParams . Add ( request . NewErrParamRequired ( "PathPart" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// The POST Request to add a new RestApi resource to your collection.
2016-03-05 23:12:19 +01:00
type CreateRestApiInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// The ID of the RestApi that you want to clone from.
2016-03-05 23:12:19 +01:00
CloneFrom * string ` locationName:"cloneFrom" type:"string" `
// The description of the RestApi.
Description * string ` locationName:"description" type:"string" `
// The name of the RestApi.
Name * string ` locationName:"name" type:"string" required:"true" `
}
// String returns the string representation
func ( s CreateRestApiInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateRestApiInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * CreateRestApiInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "CreateRestApiInput" }
if s . Name == nil {
invalidParams . Add ( request . NewErrParamRequired ( "Name" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Requests Amazon API Gateway to create a Stage resource.
type CreateStageInput struct {
_ struct { } ` type:"structure" `
// Whether cache clustering is enabled for the stage.
CacheClusterEnabled * bool ` locationName:"cacheClusterEnabled" type:"boolean" `
// The stage's cache cluster size.
CacheClusterSize * string ` locationName:"cacheClusterSize" type:"string" enum:"CacheClusterSize" `
// The identifier of the Deployment resource for the Stage resource.
DeploymentId * string ` locationName:"deploymentId" type:"string" required:"true" `
// The description of the Stage resource.
Description * string ` locationName:"description" type:"string" `
// The identifier of the RestApi resource for the Stage resource to create.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// The name for the Stage resource.
StageName * string ` locationName:"stageName" type:"string" required:"true" `
// A map that defines the stage variables for the new Stage resource. Variable
2016-08-20 11:16:03 +02:00
// names can have alphanumeric and underscore characters, and the values must
// match [A-Za-z0-9-._~:/?#&=,]+.
2016-03-05 23:12:19 +01:00
Variables map [ string ] * string ` locationName:"variables" type:"map" `
}
// String returns the string representation
func ( s CreateStageInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateStageInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * CreateStageInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "CreateStageInput" }
if s . DeploymentId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StageName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StageName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-08-20 11:16:03 +02:00
// The POST request to create a usage plan with the name, description, throttle
// limits and quota limits, as well as the associated API stages, specified
// in the payload.
type CreateUsagePlanInput struct {
_ struct { } ` type:"structure" `
// The associated API stages of the usage plan.
ApiStages [ ] * ApiStage ` locationName:"apiStages" type:"list" `
// The description of the usage plan.
Description * string ` locationName:"description" type:"string" `
// The name of the usage plan.
Name * string ` locationName:"name" type:"string" required:"true" `
// The quota of the usage plan.
Quota * QuotaSettings ` locationName:"quota" type:"structure" `
// The throttling limits of the usage plan.
Throttle * ThrottleSettings ` locationName:"throttle" type:"structure" `
}
// String returns the string representation
func ( s CreateUsagePlanInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateUsagePlanInput ) GoString ( ) string {
return s . String ( )
}
// Validate inspects the fields of the type to determine if they are valid.
func ( s * CreateUsagePlanInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "CreateUsagePlanInput" }
if s . Name == nil {
invalidParams . Add ( request . NewErrParamRequired ( "Name" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// The POST request to create a usage plan key for adding an existing API key
// to a usage plan.
type CreateUsagePlanKeyInput struct {
_ struct { } ` type:"structure" `
// The identifier of a UsagePlanKey resource for a plan customer.
KeyId * string ` locationName:"keyId" type:"string" required:"true" `
// The type of a UsagePlanKey resource for a plan customer.
KeyType * string ` locationName:"keyType" type:"string" required:"true" `
// The Id of the UsagePlan resource representing the usage plan containing the
// to-be-created UsagePlanKey resource representing a plan customer.
UsagePlanId * string ` location:"uri" locationName:"usageplanId" type:"string" required:"true" `
}
// String returns the string representation
func ( s CreateUsagePlanKeyInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateUsagePlanKeyInput ) GoString ( ) string {
return s . String ( )
}
// Validate inspects the fields of the type to determine if they are valid.
func ( s * CreateUsagePlanKeyInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "CreateUsagePlanKeyInput" }
if s . KeyId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "KeyId" ) )
}
if s . KeyType == nil {
invalidParams . Add ( request . NewErrParamRequired ( "KeyType" ) )
}
if s . UsagePlanId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "UsagePlanId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// A request to delete the ApiKey resource.
type DeleteApiKeyInput struct {
_ struct { } ` type:"structure" `
// The identifier of the ApiKey resource to be deleted.
ApiKey * string ` location:"uri" locationName:"api_Key" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteApiKeyInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteApiKeyInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteApiKeyInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteApiKeyInput" }
if s . ApiKey == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApiKey" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
type DeleteApiKeyOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteApiKeyOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteApiKeyOutput ) GoString ( ) string {
return s . String ( )
}
2016-03-06 09:47:30 +01:00
// Request to delete an existing Authorizer resource.
type DeleteAuthorizerInput struct {
_ struct { } ` type:"structure" `
// The identifier of the Authorizer resource.
AuthorizerId * string ` location:"uri" locationName:"authorizer_id" type:"string" required:"true" `
// The RestApi identifier for the Authorizer resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteAuthorizerInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteAuthorizerInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteAuthorizerInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteAuthorizerInput" }
if s . AuthorizerId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "AuthorizerId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-06 09:47:30 +01:00
type DeleteAuthorizerOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteAuthorizerOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteAuthorizerOutput ) GoString ( ) string {
return s . String ( )
}
2016-03-05 23:12:19 +01:00
// A request to delete the BasePathMapping resource.
type DeleteBasePathMappingInput struct {
_ struct { } ` type:"structure" `
// The base path name of the BasePathMapping resource to delete.
BasePath * string ` location:"uri" locationName:"base_path" type:"string" required:"true" `
// The domain name of the BasePathMapping resource to delete.
DomainName * string ` location:"uri" locationName:"domain_name" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteBasePathMappingInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteBasePathMappingInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteBasePathMappingInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteBasePathMappingInput" }
if s . BasePath == nil {
invalidParams . Add ( request . NewErrParamRequired ( "BasePath" ) )
}
if s . DomainName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DomainName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
type DeleteBasePathMappingOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteBasePathMappingOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteBasePathMappingOutput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// A request to delete the ClientCertificate resource.
2016-03-05 23:12:19 +01:00
type DeleteClientCertificateInput struct {
_ struct { } ` type:"structure" `
2016-05-05 03:06:27 +02:00
// The identifier of the ClientCertificate resource to be deleted.
2016-03-05 23:12:19 +01:00
ClientCertificateId * string ` location:"uri" locationName:"clientcertificate_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteClientCertificateInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteClientCertificateInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteClientCertificateInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteClientCertificateInput" }
if s . ClientCertificateId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ClientCertificateId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
type DeleteClientCertificateOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteClientCertificateOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteClientCertificateOutput ) GoString ( ) string {
return s . String ( )
}
// Requests Amazon API Gateway to delete a Deployment resource.
type DeleteDeploymentInput struct {
_ struct { } ` type:"structure" `
// The identifier of the Deployment resource to delete.
DeploymentId * string ` location:"uri" locationName:"deployment_id" type:"string" required:"true" `
// The identifier of the RestApi resource for the Deployment resource to delete.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteDeploymentInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteDeploymentInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteDeploymentInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteDeploymentInput" }
if s . DeploymentId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
type DeleteDeploymentOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteDeploymentOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteDeploymentOutput ) GoString ( ) string {
return s . String ( )
}
// A request to delete the DomainName resource.
type DeleteDomainNameInput struct {
_ struct { } ` type:"structure" `
// The name of the DomainName resource to be deleted.
DomainName * string ` location:"uri" locationName:"domain_name" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteDomainNameInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteDomainNameInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteDomainNameInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteDomainNameInput" }
if s . DomainName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DomainName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
type DeleteDomainNameOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteDomainNameOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteDomainNameOutput ) GoString ( ) string {
return s . String ( )
}
// Represents a delete integration request.
type DeleteIntegrationInput struct {
_ struct { } ` type:"structure" `
// Specifies a delete integration request's HTTP method.
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
// Specifies a delete integration request's resource identifier.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// Specifies a delete integration request's API identifier.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteIntegrationInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteIntegrationInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteIntegrationInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteIntegrationInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
type DeleteIntegrationOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteIntegrationOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteIntegrationOutput ) GoString ( ) string {
return s . String ( )
}
// Represents a delete integration response request.
type DeleteIntegrationResponseInput struct {
_ struct { } ` type:"structure" `
// Specifies a delete integration response request's HTTP method.
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
// Specifies a delete integration response request's resource identifier.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// Specifies a delete integration response request's API identifier.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// Specifies a delete integration response request's status code.
StatusCode * string ` location:"uri" locationName:"status_code" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteIntegrationResponseInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteIntegrationResponseInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteIntegrationResponseInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteIntegrationResponseInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StatusCode == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StatusCode" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
type DeleteIntegrationResponseOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteIntegrationResponseOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteIntegrationResponseOutput ) GoString ( ) string {
return s . String ( )
}
// Request to delete an existing Method resource.
type DeleteMethodInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// The HTTP verb of the Method resource.
2016-03-05 23:12:19 +01:00
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
// The Resource identifier for the Method resource.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// The RestApi identifier for the Method resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteMethodInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteMethodInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteMethodInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteMethodInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
type DeleteMethodOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteMethodOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteMethodOutput ) GoString ( ) string {
return s . String ( )
}
// A request to delete an existing MethodResponse resource.
type DeleteMethodResponseInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// The HTTP verb of the Method resource.
2016-03-05 23:12:19 +01:00
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
// The Resource identifier for the MethodResponse resource.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// The RestApi identifier for the MethodResponse resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// The status code identifier for the MethodResponse resource.
StatusCode * string ` location:"uri" locationName:"status_code" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteMethodResponseInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteMethodResponseInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteMethodResponseInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteMethodResponseInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StatusCode == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StatusCode" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
type DeleteMethodResponseOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteMethodResponseOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteMethodResponseOutput ) GoString ( ) string {
return s . String ( )
}
// Request to delete an existing model in an existing RestApi resource.
type DeleteModelInput struct {
_ struct { } ` type:"structure" `
// The name of the model to delete.
ModelName * string ` location:"uri" locationName:"model_name" type:"string" required:"true" `
// The RestApi under which the model will be deleted.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteModelInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteModelInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteModelInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteModelInput" }
if s . ModelName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ModelName" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
type DeleteModelOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteModelOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteModelOutput ) GoString ( ) string {
return s . String ( )
}
// Request to delete a Resource.
type DeleteResourceInput struct {
_ struct { } ` type:"structure" `
// The identifier of the Resource resource.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// The RestApi identifier for the Resource resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteResourceInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteResourceInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteResourceInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteResourceInput" }
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
type DeleteResourceOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteResourceOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteResourceOutput ) GoString ( ) string {
return s . String ( )
}
// Request to delete the specified API from your collection.
type DeleteRestApiInput struct {
_ struct { } ` type:"structure" `
// The ID of the RestApi you want to delete.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteRestApiInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteRestApiInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteRestApiInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteRestApiInput" }
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
type DeleteRestApiOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteRestApiOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteRestApiOutput ) GoString ( ) string {
return s . String ( )
}
// Requests Amazon API Gateway to delete a Stage resource.
type DeleteStageInput struct {
_ struct { } ` type:"structure" `
// The identifier of the RestApi resource for the Stage resource to delete.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// The name of the Stage resource to delete.
StageName * string ` location:"uri" locationName:"stage_name" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteStageInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteStageInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteStageInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteStageInput" }
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StageName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StageName" ) )
}
2016-08-20 11:16:03 +02:00
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
type DeleteStageOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteStageOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteStageOutput ) GoString ( ) string {
return s . String ( )
}
// The DELETE request to delete a uasge plan of a given plan Id.
type DeleteUsagePlanInput struct {
_ struct { } ` type:"structure" `
// The Id of the to-be-deleted usage plan.
UsagePlanId * string ` location:"uri" locationName:"usageplanId" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteUsagePlanInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteUsagePlanInput ) GoString ( ) string {
return s . String ( )
}
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteUsagePlanInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteUsagePlanInput" }
if s . UsagePlanId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "UsagePlanId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// The DELETE request to delete a usage plan key and remove the underlying API
// key from the associated usage plan.
type DeleteUsagePlanKeyInput struct {
_ struct { } ` type:"structure" `
// The Id of the UsagePlanKey resource to be deleted.
KeyId * string ` location:"uri" locationName:"keyId" type:"string" required:"true" `
// The Id of the UsagePlan resource representing the usage plan containing the
// to-be-deleted UsagePlanKey resource representing a plan customer.
UsagePlanId * string ` location:"uri" locationName:"usageplanId" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteUsagePlanKeyInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteUsagePlanKeyInput ) GoString ( ) string {
return s . String ( )
}
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteUsagePlanKeyInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteUsagePlanKeyInput" }
if s . KeyId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "KeyId" ) )
}
if s . UsagePlanId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "UsagePlanId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
type DeleteUsagePlanKeyOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteUsagePlanKeyOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteUsagePlanKeyOutput ) GoString ( ) string {
return s . String ( )
2016-05-05 03:06:27 +02:00
}
2016-08-20 11:16:03 +02:00
type DeleteUsagePlanOutput struct {
2016-03-05 23:12:19 +01:00
_ struct { } ` type:"structure" `
}
// String returns the string representation
2016-08-20 11:16:03 +02:00
func ( s DeleteUsagePlanOutput ) String ( ) string {
2016-03-05 23:12:19 +01:00
return awsutil . Prettify ( s )
}
// GoString returns the string representation
2016-08-20 11:16:03 +02:00
func ( s DeleteUsagePlanOutput ) GoString ( ) string {
2016-03-05 23:12:19 +01:00
return s . String ( )
}
// An immutable representation of a RestApi resource that can be called by users
// using Stages. A deployment must be associated with a Stage for it to be callable
// over the Internet.
2016-08-20 11:16:03 +02:00
//
// To create a deployment, call POST on the Deployments resource of a RestApi.
// To view, update, or delete a deployment, call GET, PATCH, or DELETE on the
// specified deployment resource (/restapis/{restapi_id}/deployments/{deployment_id}).
// RestApi, Deployments, Stage, AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-deployment.html),
// AWS SDKs (https://aws.amazon.com/tools/)
2016-03-05 23:12:19 +01:00
type Deployment struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// A summary of the RestApi at the date and time that the deployment resource
2016-03-05 23:12:19 +01:00
// was created.
ApiSummary map [ string ] map [ string ] * MethodSnapshot ` locationName:"apiSummary" type:"map" `
// The date and time that the deployment resource was created.
CreatedDate * time . Time ` locationName:"createdDate" type:"timestamp" timestampFormat:"unix" `
// The description for the deployment resource.
Description * string ` locationName:"description" type:"string" `
// The identifier for the deployment resource.
Id * string ` locationName:"id" type:"string" `
}
// String returns the string representation
func ( s Deployment ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s Deployment ) GoString ( ) string {
return s . String ( )
}
// Represents a domain name that is contained in a simpler, more intuitive URL
// that can be called.
2016-08-20 11:16:03 +02:00
//
// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html)
2016-03-05 23:12:19 +01:00
type DomainName struct {
_ struct { } ` type:"structure" `
// The name of the certificate.
CertificateName * string ` locationName:"certificateName" type:"string" `
2016-03-06 09:47:30 +01:00
// The date when the certificate was uploaded, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm"
// target="_blank).
2016-03-05 23:12:19 +01:00
CertificateUploadDate * time . Time ` locationName:"certificateUploadDate" type:"timestamp" timestampFormat:"unix" `
// The domain name of the Amazon CloudFront distribution. For more information,
2016-03-06 09:47:30 +01:00
// see the Amazon CloudFront documentation (http://aws.amazon.com/documentation/cloudfront/"
// target="_blank).
2016-03-05 23:12:19 +01:00
DistributionDomainName * string ` locationName:"distributionDomainName" type:"string" `
// The name of the DomainName resource.
DomainName * string ` locationName:"domainName" type:"string" `
}
// String returns the string representation
func ( s DomainName ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DomainName ) GoString ( ) string {
return s . String ( )
}
2016-03-11 01:27:37 +01:00
// Request to flush authorizer cache entries on a specified stage.
type FlushStageAuthorizersCacheInput struct {
_ struct { } ` type:"structure" `
// The API identifier of the stage to flush.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// The name of the stage to flush.
StageName * string ` location:"uri" locationName:"stage_name" type:"string" required:"true" `
}
// String returns the string representation
func ( s FlushStageAuthorizersCacheInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s FlushStageAuthorizersCacheInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * FlushStageAuthorizersCacheInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "FlushStageAuthorizersCacheInput" }
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StageName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StageName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-11 01:27:37 +01:00
type FlushStageAuthorizersCacheOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s FlushStageAuthorizersCacheOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s FlushStageAuthorizersCacheOutput ) GoString ( ) string {
return s . String ( )
}
2016-03-05 23:12:19 +01:00
// Requests Amazon API Gateway to flush a stage's cache.
type FlushStageCacheInput struct {
_ struct { } ` type:"structure" `
// The API identifier of the stage to flush its cache.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// The name of the stage to flush its cache.
StageName * string ` location:"uri" locationName:"stage_name" type:"string" required:"true" `
}
// String returns the string representation
func ( s FlushStageCacheInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s FlushStageCacheInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * FlushStageCacheInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "FlushStageCacheInput" }
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StageName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StageName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
type FlushStageCacheOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s FlushStageCacheOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s FlushStageCacheOutput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// A request to generate a ClientCertificate resource.
2016-03-05 23:12:19 +01:00
type GenerateClientCertificateInput struct {
_ struct { } ` type:"structure" `
2016-05-05 03:06:27 +02:00
// The description of the ClientCertificate.
2016-03-05 23:12:19 +01:00
Description * string ` locationName:"description" type:"string" `
}
// String returns the string representation
func ( s GenerateClientCertificateInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GenerateClientCertificateInput ) GoString ( ) string {
return s . String ( )
}
// Requests Amazon API Gateway to get information about the current Account
// resource.
type GetAccountInput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s GetAccountInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetAccountInput ) GoString ( ) string {
return s . String ( )
}
// A request to get information about the current ApiKey resource.
type GetApiKeyInput struct {
_ struct { } ` type:"structure" `
// The identifier of the ApiKey resource.
ApiKey * string ` location:"uri" locationName:"api_Key" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// A boolean flag to specify whether (true) or not (false) the result contains
// the key value.
IncludeValue * bool ` location:"querystring" locationName:"includeValue" type:"boolean" `
2016-03-05 23:12:19 +01:00
}
// String returns the string representation
func ( s GetApiKeyInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetApiKeyInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetApiKeyInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetApiKeyInput" }
if s . ApiKey == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApiKey" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// A request to get information about the current ApiKeys resource.
type GetApiKeysInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// A boolean flag to specify whether (true) or not (false) the result contains
// key values.
IncludeValues * bool ` location:"querystring" locationName:"includeValues" type:"boolean" `
2016-03-05 23:12:19 +01:00
// The maximum number of ApiKeys to get information about.
Limit * int64 ` location:"querystring" locationName:"limit" type:"integer" `
2016-08-20 11:16:03 +02:00
// The name of queried API keys.
NameQuery * string ` location:"querystring" locationName:"name" type:"string" `
2016-03-05 23:12:19 +01:00
// The position of the current ApiKeys resource to get information about.
Position * string ` location:"querystring" locationName:"position" type:"string" `
}
// String returns the string representation
func ( s GetApiKeysInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetApiKeysInput ) GoString ( ) string {
return s . String ( )
}
2016-08-20 11:16:03 +02:00
// Represents a collection of API keys as represented by an ApiKeys resource.
//
// Use API Keys (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html)
2016-03-05 23:12:19 +01:00
type GetApiKeysOutput struct {
_ struct { } ` type:"structure" `
// The current page of any ApiKey resources in the collection of ApiKey resources.
Items [ ] * ApiKey ` locationName:"item" type:"list" `
Position * string ` locationName:"position" type:"string" `
2016-08-20 11:16:03 +02:00
// A list of warning messages logged during the import of API keys when the
// failOnWarnings option is set to true.
Warnings [ ] * string ` locationName:"warnings" type:"list" `
2016-03-05 23:12:19 +01:00
}
// String returns the string representation
func ( s GetApiKeysOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetApiKeysOutput ) GoString ( ) string {
return s . String ( )
}
2016-03-06 09:47:30 +01:00
// Request to describe an existing Authorizer resource.
type GetAuthorizerInput struct {
_ struct { } ` type:"structure" `
// The identifier of the Authorizer resource.
AuthorizerId * string ` location:"uri" locationName:"authorizer_id" type:"string" required:"true" `
// The RestApi identifier for the Authorizer resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetAuthorizerInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetAuthorizerInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetAuthorizerInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetAuthorizerInput" }
if s . AuthorizerId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "AuthorizerId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-06 09:47:30 +01:00
// Request to describe an existing Authorizers resource.
type GetAuthorizersInput struct {
_ struct { } ` type:"structure" `
2016-05-05 03:06:27 +02:00
// Limit the number of Authorizer resources in the response.
2016-03-06 09:47:30 +01:00
Limit * int64 ` location:"querystring" locationName:"limit" type:"integer" `
2016-05-05 03:06:27 +02:00
// If not all Authorizer resources in the response were present, the position
2016-08-20 11:16:03 +02:00
// will specify where to start the next page of results.
2016-03-06 09:47:30 +01:00
Position * string ` location:"querystring" locationName:"position" type:"string" `
// The RestApi identifier for the Authorizers resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetAuthorizersInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetAuthorizersInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetAuthorizersInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetAuthorizersInput" }
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-06 09:47:30 +01:00
// Represents a collection of Authorizer resources.
2016-08-20 11:16:03 +02:00
//
// Enable custom authorization (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html)
2016-03-06 09:47:30 +01:00
type GetAuthorizersOutput struct {
_ struct { } ` type:"structure" `
// Gets the current list of Authorizer resources in the collection.
Items [ ] * Authorizer ` locationName:"item" type:"list" `
Position * string ` locationName:"position" type:"string" `
}
// String returns the string representation
func ( s GetAuthorizersOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetAuthorizersOutput ) GoString ( ) string {
return s . String ( )
}
2016-03-05 23:12:19 +01:00
// Request to describe a BasePathMapping resource.
type GetBasePathMappingInput struct {
_ struct { } ` type:"structure" `
// The base path name that callers of the API must provide as part of the URL
// after the domain name. This value must be unique for all of the mappings
// across a single API. Leave this blank if you do not want callers to specify
// any base path name after the domain name.
BasePath * string ` location:"uri" locationName:"base_path" type:"string" required:"true" `
// The domain name of the BasePathMapping resource to be described.
DomainName * string ` location:"uri" locationName:"domain_name" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetBasePathMappingInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetBasePathMappingInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetBasePathMappingInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetBasePathMappingInput" }
if s . BasePath == nil {
invalidParams . Add ( request . NewErrParamRequired ( "BasePath" ) )
}
if s . DomainName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DomainName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// A request to get information about a collection of BasePathMapping resources.
type GetBasePathMappingsInput struct {
_ struct { } ` type:"structure" `
// The domain name of a BasePathMapping resource.
DomainName * string ` location:"uri" locationName:"domain_name" type:"string" required:"true" `
// The maximum number of BasePathMapping resources in the collection to get
// information about. The default limit is 25. It should be an integer between
// 1 - 500.
Limit * int64 ` location:"querystring" locationName:"limit" type:"integer" `
// The position of the current BasePathMapping resource in the collection to
// get information about.
Position * string ` location:"querystring" locationName:"position" type:"string" `
}
// String returns the string representation
func ( s GetBasePathMappingsInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetBasePathMappingsInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetBasePathMappingsInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetBasePathMappingsInput" }
if s . DomainName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DomainName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Represents a collection of BasePathMapping resources.
2016-08-20 11:16:03 +02:00
//
// Use Custom Domain Names (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html)
2016-03-05 23:12:19 +01:00
type GetBasePathMappingsOutput struct {
_ struct { } ` type:"structure" `
// The current page of any BasePathMapping resources in the collection of base
// path mapping resources.
Items [ ] * BasePathMapping ` locationName:"item" type:"list" `
Position * string ` locationName:"position" type:"string" `
}
// String returns the string representation
func ( s GetBasePathMappingsOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetBasePathMappingsOutput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// A request to get information about the current ClientCertificate resource.
2016-03-05 23:12:19 +01:00
type GetClientCertificateInput struct {
_ struct { } ` type:"structure" `
2016-05-05 03:06:27 +02:00
// The identifier of the ClientCertificate resource to be described.
2016-03-05 23:12:19 +01:00
ClientCertificateId * string ` location:"uri" locationName:"clientcertificate_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetClientCertificateInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetClientCertificateInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetClientCertificateInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetClientCertificateInput" }
if s . ClientCertificateId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ClientCertificateId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// A request to get information about a collection of ClientCertificate resources.
2016-03-05 23:12:19 +01:00
type GetClientCertificatesInput struct {
_ struct { } ` type:"structure" `
2016-05-05 03:06:27 +02:00
// The maximum number of ClientCertificate resources in the collection to get
// information about. The default limit is 25. It should be an integer between
// 1 - 500.
2016-03-05 23:12:19 +01:00
Limit * int64 ` location:"querystring" locationName:"limit" type:"integer" `
2016-05-05 03:06:27 +02:00
// The position of the current ClientCertificate resource in the collection
// to get information about.
2016-03-05 23:12:19 +01:00
Position * string ` location:"querystring" locationName:"position" type:"string" `
}
// String returns the string representation
func ( s GetClientCertificatesInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetClientCertificatesInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Represents a collection of ClientCertificate resources.
2016-08-20 11:16:03 +02:00
//
// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html)
2016-03-05 23:12:19 +01:00
type GetClientCertificatesOutput struct {
_ struct { } ` type:"structure" `
2016-05-05 03:06:27 +02:00
// The current page of any ClientCertificate resources in the collection of
// ClientCertificate resources.
2016-03-05 23:12:19 +01:00
Items [ ] * ClientCertificate ` locationName:"item" type:"list" `
Position * string ` locationName:"position" type:"string" `
}
// String returns the string representation
func ( s GetClientCertificatesOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetClientCertificatesOutput ) GoString ( ) string {
return s . String ( )
}
// Requests Amazon API Gateway to get information about a Deployment resource.
type GetDeploymentInput struct {
_ struct { } ` type:"structure" `
// The identifier of the Deployment resource to get information about.
DeploymentId * string ` location:"uri" locationName:"deployment_id" type:"string" required:"true" `
// The identifier of the RestApi resource for the Deployment resource to get
// information about.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetDeploymentInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetDeploymentInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetDeploymentInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetDeploymentInput" }
if s . DeploymentId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Requests Amazon API Gateway to get information about a Deployments collection.
type GetDeploymentsInput struct {
_ struct { } ` type:"structure" `
// The maximum number of Deployment resources in the collection to get information
// about. The default limit is 25. It should be an integer between 1 - 500.
Limit * int64 ` location:"querystring" locationName:"limit" type:"integer" `
// The position of the current Deployment resource in the collection to get
// information about.
Position * string ` location:"querystring" locationName:"position" type:"string" `
// The identifier of the RestApi resource for the collection of Deployment resources
// to get information about.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetDeploymentsInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetDeploymentsInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetDeploymentsInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetDeploymentsInput" }
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Represents a collection resource that contains zero or more references to
2016-08-20 11:16:03 +02:00
// your existing deployments, and links that guide you on how to interact with
2016-03-05 23:12:19 +01:00
// your collection. The collection offers a paginated view of the contained
// deployments.
2016-08-20 11:16:03 +02:00
//
// To create a new deployment of a RestApi, make a POST request against this
// resource. To view, update, or delete an existing deployment, make a GET,
// PATCH, or DELETE request, respectively, on a specified Deployment resource.
// Deploying an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html),
// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-deployment.html),
// AWS SDKs (https://aws.amazon.com/tools/)
2016-03-05 23:12:19 +01:00
type GetDeploymentsOutput struct {
_ struct { } ` type:"structure" `
// The current page of any Deployment resources in the collection of deployment
// resources.
Items [ ] * Deployment ` locationName:"item" type:"list" `
Position * string ` locationName:"position" type:"string" `
}
// String returns the string representation
func ( s GetDeploymentsOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetDeploymentsOutput ) GoString ( ) string {
return s . String ( )
}
// Request to get the name of a DomainName resource.
type GetDomainNameInput struct {
_ struct { } ` type:"structure" `
// The name of the DomainName resource.
DomainName * string ` location:"uri" locationName:"domain_name" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetDomainNameInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetDomainNameInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetDomainNameInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetDomainNameInput" }
if s . DomainName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DomainName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Request to describe a collection of DomainName resources.
type GetDomainNamesInput struct {
_ struct { } ` type:"structure" `
// The maximum number of DomainName resources in the collection to get information
// about. The default limit is 25. It should be an integer between 1 - 500.
Limit * int64 ` location:"querystring" locationName:"limit" type:"integer" `
// The position of the current domain names to get information about.
Position * string ` location:"querystring" locationName:"position" type:"string" `
}
// String returns the string representation
func ( s GetDomainNamesInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetDomainNamesInput ) GoString ( ) string {
return s . String ( )
}
// Represents a collection of DomainName resources.
2016-08-20 11:16:03 +02:00
//
// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html)
2016-03-05 23:12:19 +01:00
type GetDomainNamesOutput struct {
_ struct { } ` type:"structure" `
// The current page of any DomainName resources in the collection of DomainName
// resources.
Items [ ] * DomainName ` locationName:"item" type:"list" `
Position * string ` locationName:"position" type:"string" `
}
// String returns the string representation
func ( s GetDomainNamesOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetDomainNamesOutput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Request a new export of a RestApi for a particular Stage.
2016-03-06 09:47:30 +01:00
type GetExportInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// The content-type of the export, for example application/json. Currently application/json
// and application/yaml are supported for exportType of swagger. This should
// be specified in the Accept header for direct API requests.
2016-03-06 09:47:30 +01:00
Accepts * string ` location:"header" locationName:"Accept" type:"string" `
2016-05-05 03:06:27 +02:00
// The type of export. Currently only 'swagger' is supported.
2016-03-06 09:47:30 +01:00
ExportType * string ` location:"uri" locationName:"export_type" type:"string" required:"true" `
2016-05-05 03:06:27 +02:00
// A key-value map of query string parameters that specify properties of the
2016-08-20 11:16:03 +02:00
// export, depending on the requested exportType. For exportType swagger, any
// combination of the following parameters are supported: integrations will
// export the API with x-amazon-apigateway-integration extensions. authorizers
// will export the API with x-amazon-apigateway-authorizer extensions. postman
// will export the API with Postman extensions, allowing for import to the Postman
// tool
2016-03-06 09:47:30 +01:00
Parameters map [ string ] * string ` location:"querystring" locationName:"parameters" type:"map" `
2016-05-05 03:06:27 +02:00
// The identifier of the RestApi to be exported.
2016-03-06 09:47:30 +01:00
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
2016-05-05 03:06:27 +02:00
// The name of the Stage that will be exported.
2016-03-06 09:47:30 +01:00
StageName * string ` location:"uri" locationName:"stage_name" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetExportInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetExportInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetExportInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetExportInput" }
if s . ExportType == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ExportType" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StageName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StageName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// The binary blob response to GetExport, which contains the generated SDK.
2016-03-06 09:47:30 +01:00
type GetExportOutput struct {
_ struct { } ` type:"structure" payload:"Body" `
2016-05-05 03:06:27 +02:00
// The binary blob response to GetExport, which contains the export.
2016-03-06 09:47:30 +01:00
Body [ ] byte ` locationName:"body" type:"blob" `
2016-08-20 11:16:03 +02:00
// The content-disposition header value in the HTTP response.
2016-03-06 09:47:30 +01:00
ContentDisposition * string ` location:"header" locationName:"Content-Disposition" type:"string" `
2016-05-05 03:06:27 +02:00
// The content-type header value in the HTTP response. This will correspond
// to a valid 'accept' type in the request.
2016-03-06 09:47:30 +01:00
ContentType * string ` location:"header" locationName:"Content-Type" type:"string" `
}
// String returns the string representation
func ( s GetExportOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetExportOutput ) GoString ( ) string {
return s . String ( )
}
2016-03-05 23:12:19 +01:00
// Represents a get integration request.
type GetIntegrationInput struct {
_ struct { } ` type:"structure" `
// Specifies a get integration request's HTTP method.
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
// Specifies a get integration request's resource identifier
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// Specifies a get integration request's API identifier.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetIntegrationInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetIntegrationInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetIntegrationInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetIntegrationInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// Represents a get integration response request.
type GetIntegrationResponseInput struct {
_ struct { } ` type:"structure" `
2016-03-05 23:12:19 +01:00
// Specifies a get integration response request's HTTP method.
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
// Specifies a get integration response request's resource identifier.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// Specifies a get integration response request's API identifier.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// Specifies a get integration response request's status code.
StatusCode * string ` location:"uri" locationName:"status_code" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetIntegrationResponseInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetIntegrationResponseInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetIntegrationResponseInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetIntegrationResponseInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StatusCode == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StatusCode" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Request to describe an existing Method resource.
type GetMethodInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// Specifies the method request's HTTP method type.
2016-03-05 23:12:19 +01:00
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
// The Resource identifier for the Method resource.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// The RestApi identifier for the Method resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetMethodInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetMethodInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetMethodInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetMethodInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Request to describe a MethodResponse resource.
type GetMethodResponseInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// The HTTP verb of the Method resource.
2016-03-05 23:12:19 +01:00
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
// The Resource identifier for the MethodResponse resource.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// The RestApi identifier for the MethodResponse resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// The status code for the MethodResponse resource.
2016-03-05 23:12:19 +01:00
StatusCode * string ` location:"uri" locationName:"status_code" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetMethodResponseInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetMethodResponseInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetMethodResponseInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetMethodResponseInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StatusCode == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StatusCode" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Request to list information about a model in an existing RestApi resource.
type GetModelInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// A query parameter of a Boolean value to resolve (true) all external model
// references and returns a flattened model schema or not (false) The default
// is false.
2016-03-05 23:12:19 +01:00
Flatten * bool ` location:"querystring" locationName:"flatten" type:"boolean" `
// The name of the model as an identifier.
ModelName * string ` location:"uri" locationName:"model_name" type:"string" required:"true" `
// The RestApi identifier under which the Model exists.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetModelInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetModelInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetModelInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetModelInput" }
if s . ModelName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ModelName" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Request to generate a sample mapping template used to transform the payload.
type GetModelTemplateInput struct {
_ struct { } ` type:"structure" `
// The name of the model for which to generate a template.
ModelName * string ` location:"uri" locationName:"model_name" type:"string" required:"true" `
// The ID of the RestApi under which the model exists.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetModelTemplateInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetModelTemplateInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetModelTemplateInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetModelTemplateInput" }
if s . ModelName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ModelName" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Represents a mapping template used to transform a payload.
2016-08-20 11:16:03 +02:00
//
// Mapping Templates (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html#models-mappings-mappings)
2016-03-05 23:12:19 +01:00
type GetModelTemplateOutput struct {
_ struct { } ` type:"structure" `
2016-03-06 09:47:30 +01:00
// The Apache Velocity Template Language (VTL) (http://velocity.apache.org/engine/devel/vtl-reference-guide.html"
// target="_blank) template content used for the template resource.
2016-03-05 23:12:19 +01:00
Value * string ` locationName:"value" type:"string" `
}
// String returns the string representation
func ( s GetModelTemplateOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetModelTemplateOutput ) GoString ( ) string {
return s . String ( )
}
// Request to list existing Models defined for a RestApi resource.
type GetModelsInput struct {
_ struct { } ` type:"structure" `
// The maximum number of models in the collection to get information about.
// The default limit is 25. It should be an integer between 1 - 500.
Limit * int64 ` location:"querystring" locationName:"limit" type:"integer" `
// The position of the next set of results in the Models resource to get information
// about.
Position * string ` location:"querystring" locationName:"position" type:"string" `
// The RestApi identifier.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetModelsInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetModelsInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetModelsInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetModelsInput" }
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Represents a collection of Model resources.
2016-08-20 11:16:03 +02:00
//
// Method, MethodResponse, Models and Mappings (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html)
2016-03-05 23:12:19 +01:00
type GetModelsOutput struct {
_ struct { } ` type:"structure" `
// Gets the current Model resource in the collection.
Items [ ] * Model ` locationName:"item" type:"list" `
Position * string ` locationName:"position" type:"string" `
}
// String returns the string representation
func ( s GetModelsOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetModelsOutput ) GoString ( ) string {
return s . String ( )
}
// Request to list information about a resource.
type GetResourceInput struct {
_ struct { } ` type:"structure" `
// The identifier for the Resource resource.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// The RestApi identifier for the resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetResourceInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetResourceInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetResourceInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetResourceInput" }
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Request to list information about a collection of resources.
type GetResourcesInput struct {
_ struct { } ` type:"structure" `
// The maximum number of Resource resources in the collection to get information
// about. The default limit is 25. It should be an integer between 1 - 500.
Limit * int64 ` location:"querystring" locationName:"limit" type:"integer" `
// The position of the next set of results in the current Resources resource
// to get information about.
Position * string ` location:"querystring" locationName:"position" type:"string" `
// The RestApi identifier for the Resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetResourcesInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetResourcesInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetResourcesInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetResourcesInput" }
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Represents a collection of Resource resources.
2016-08-20 11:16:03 +02:00
//
// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html)
2016-03-05 23:12:19 +01:00
type GetResourcesOutput struct {
_ struct { } ` type:"structure" `
// Gets the current Resource resource in the collection.
Items [ ] * Resource ` locationName:"item" type:"list" `
Position * string ` locationName:"position" type:"string" `
}
// String returns the string representation
func ( s GetResourcesOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetResourcesOutput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// The GET request to list an existing RestApi defined for your collection.
2016-03-05 23:12:19 +01:00
type GetRestApiInput struct {
_ struct { } ` type:"structure" `
// The identifier of the RestApi resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetRestApiInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetRestApiInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetRestApiInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetRestApiInput" }
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// The GET request to list existing RestApis defined for your collection.
2016-03-05 23:12:19 +01:00
type GetRestApisInput struct {
_ struct { } ` type:"structure" `
// The maximum number of RestApi resources in the collection to get information
// about. The default limit is 25. It should be an integer between 1 - 500.
Limit * int64 ` location:"querystring" locationName:"limit" type:"integer" `
// The position of the current RestApis resource in the collection to get information
// about.
Position * string ` location:"querystring" locationName:"position" type:"string" `
}
// String returns the string representation
func ( s GetRestApisInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetRestApisInput ) GoString ( ) string {
return s . String ( )
}
2016-08-20 11:16:03 +02:00
// Contains references to your APIs and links that guide you in how to interact
2016-03-05 23:12:19 +01:00
// with your collection. A collection offers a paginated view of your APIs.
2016-08-20 11:16:03 +02:00
//
// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html)
2016-03-05 23:12:19 +01:00
type GetRestApisOutput struct {
_ struct { } ` type:"structure" `
// An array of links to the current page of RestApi resources.
Items [ ] * RestApi ` locationName:"item" type:"list" `
Position * string ` locationName:"position" type:"string" `
}
// String returns the string representation
func ( s GetRestApisOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetRestApisOutput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Request a new generated client SDK for a RestApi and Stage.
2016-03-05 23:12:19 +01:00
type GetSdkInput struct {
_ struct { } ` type:"structure" `
2016-05-05 03:06:27 +02:00
// A key-value map of query string parameters that specify properties of the
2016-08-20 11:16:03 +02:00
// SDK, depending on the requested sdkType. For sdkType of objectivec, a parameter
// named classPrefix is required. For sdkType of android, parameters named groupId,
// artifactId, artifactVersion, and invokerPackage are required.
2016-03-05 23:12:19 +01:00
Parameters map [ string ] * string ` location:"querystring" locationName:"parameters" type:"map" `
2016-05-05 03:06:27 +02:00
// The identifier of the RestApi that the SDK will use.
2016-03-05 23:12:19 +01:00
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
2016-05-05 03:06:27 +02:00
// The language for the generated SDK. Currently javascript, android, and objectivec
// (for iOS) are supported.
2016-03-05 23:12:19 +01:00
SdkType * string ` location:"uri" locationName:"sdk_type" type:"string" required:"true" `
2016-05-05 03:06:27 +02:00
// The name of the Stage that the SDK will use.
2016-03-05 23:12:19 +01:00
StageName * string ` location:"uri" locationName:"stage_name" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetSdkInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetSdkInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetSdkInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetSdkInput" }
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . SdkType == nil {
invalidParams . Add ( request . NewErrParamRequired ( "SdkType" ) )
}
if s . StageName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StageName" ) )
}
2016-08-20 11:16:03 +02:00
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// The binary blob response to GetSdk, which contains the generated SDK.
type GetSdkOutput struct {
_ struct { } ` type:"structure" payload:"Body" `
// The binary blob response to GetSdk, which contains the generated SDK.
Body [ ] byte ` locationName:"body" type:"blob" `
// The content-disposition header value in the HTTP response.
ContentDisposition * string ` location:"header" locationName:"Content-Disposition" type:"string" `
// The content-type header value in the HTTP response.
ContentType * string ` location:"header" locationName:"Content-Type" type:"string" `
}
// String returns the string representation
func ( s GetSdkOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetSdkOutput ) GoString ( ) string {
return s . String ( )
}
// Requests Amazon API Gateway to get information about a Stage resource.
type GetStageInput struct {
_ struct { } ` type:"structure" `
// The identifier of the RestApi resource for the Stage resource to get information
// about.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// The name of the Stage resource to get information about.
StageName * string ` location:"uri" locationName:"stage_name" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetStageInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetStageInput ) GoString ( ) string {
return s . String ( )
}
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetStageInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetStageInput" }
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StageName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StageName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// Requests Amazon API Gateway to get information about one or more Stage resources.
type GetStagesInput struct {
_ struct { } ` type:"structure" `
// The stages' deployment identifiers.
DeploymentId * string ` location:"querystring" locationName:"deploymentId" type:"string" `
// The stages' API identifiers.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetStagesInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetStagesInput ) GoString ( ) string {
return s . String ( )
}
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetStagesInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetStagesInput" }
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// A list of Stage resources that are associated with the ApiKey resource.
//
// Deploying API in Stages (http://docs.aws.amazon.com/apigateway/latest/developerguide/stages.html)
type GetStagesOutput struct {
_ struct { } ` type:"structure" `
// An individual Stage resource.
Item [ ] * Stage ` locationName:"item" type:"list" `
}
// String returns the string representation
func ( s GetStagesOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetStagesOutput ) GoString ( ) string {
return s . String ( )
}
// The GET request to get the usage data of a usage plan in a specified time
// interval.
type GetUsageInput struct {
_ struct { } ` type:"structure" `
// The ending date (e.g., 2016-12-31) of the usage data.
EndDate * string ` location:"querystring" locationName:"endDate" type:"string" required:"true" `
// The Id of the API key associated with the resultant usage data.
KeyId * string ` location:"querystring" locationName:"keyId" type:"string" `
// The maximum number of results to be returned.
Limit * int64 ` location:"querystring" locationName:"limit" type:"integer" `
// Position
Position * string ` location:"querystring" locationName:"position" type:"string" `
// The starting date (e.g., 2016-01-01) of the usage data.
StartDate * string ` location:"querystring" locationName:"startDate" type:"string" required:"true" `
// The Id of the usage plan associated with the usage data.
UsagePlanId * string ` location:"uri" locationName:"usageplanId" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetUsageInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetUsageInput ) GoString ( ) string {
return s . String ( )
}
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetUsageInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetUsageInput" }
if s . EndDate == nil {
invalidParams . Add ( request . NewErrParamRequired ( "EndDate" ) )
}
if s . StartDate == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StartDate" ) )
}
if s . UsagePlanId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "UsagePlanId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// The GET request to get a usage plan of a given plan identifier.
type GetUsagePlanInput struct {
_ struct { } ` type:"structure" `
// The identifier of the UsagePlan resource to be retrieved.
UsagePlanId * string ` location:"uri" locationName:"usageplanId" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetUsagePlanInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetUsagePlanInput ) GoString ( ) string {
return s . String ( )
}
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetUsagePlanInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetUsagePlanInput" }
if s . UsagePlanId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "UsagePlanId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// The GET request to get a usage plan key of a given key identifier.
type GetUsagePlanKeyInput struct {
_ struct { } ` type:"structure" `
// The key Id of the to-be-retrieved UsagePlanKey resource representing a plan
// customer.
KeyId * string ` location:"uri" locationName:"keyId" type:"string" required:"true" `
// The Id of the UsagePlan resource representing the usage plan containing the
// to-be-retrieved UsagePlanKey resource representing a plan customer.
UsagePlanId * string ` location:"uri" locationName:"usageplanId" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetUsagePlanKeyInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetUsagePlanKeyInput ) GoString ( ) string {
return s . String ( )
}
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetUsagePlanKeyInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetUsagePlanKeyInput" }
if s . KeyId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "KeyId" ) )
}
if s . UsagePlanId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "UsagePlanId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// The GET request to get all the usage plan keys representing the API keys
// added to a specified usage plan.
type GetUsagePlanKeysInput struct {
_ struct { } ` type:"structure" `
// A query parameter specifying the maximum number usage plan keys returned
// by the GET request.
Limit * int64 ` location:"querystring" locationName:"limit" type:"integer" `
// A query parameter specifying the name of the to-be-returned usage plan keys.
NameQuery * string ` location:"querystring" locationName:"name" type:"string" `
// A query parameter specifying the zero-based index specifying the position
// of a usage plan key.
Position * string ` location:"querystring" locationName:"position" type:"string" `
// The Id of the UsagePlan resource representing the usage plan containing the
// to-be-retrieved UsagePlanKey resource representing a plan customer.
UsagePlanId * string ` location:"uri" locationName:"usageplanId" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetUsagePlanKeysInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetUsagePlanKeysInput ) GoString ( ) string {
return s . String ( )
}
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetUsagePlanKeysInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetUsagePlanKeysInput" }
if s . UsagePlanId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "UsagePlanId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// Represents the collection of usage plan keys added to usage plans for the
// associated API keys and, possibly, other types of keys.
//
// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html)
type GetUsagePlanKeysOutput struct {
_ struct { } ` type:"structure" `
// Gets the current item of the usage plan keys collection.
Items [ ] * UsagePlanKey ` locationName:"item" type:"list" `
Position * string ` locationName:"position" type:"string" `
}
// String returns the string representation
func ( s GetUsagePlanKeysOutput ) String ( ) string {
return awsutil . Prettify ( s )
2016-05-05 03:06:27 +02:00
}
2016-08-20 11:16:03 +02:00
// GoString returns the string representation
func ( s GetUsagePlanKeysOutput ) GoString ( ) string {
return s . String ( )
}
2016-03-05 23:12:19 +01:00
2016-08-20 11:16:03 +02:00
// The GET request to get all the usage plans of the caller's account.
type GetUsagePlansInput struct {
_ struct { } ` type:"structure" `
2016-03-05 23:12:19 +01:00
2016-08-20 11:16:03 +02:00
// The identifier of the API key associated with the usage plans.
KeyId * string ` location:"querystring" locationName:"keyId" type:"string" `
2016-03-05 23:12:19 +01:00
2016-08-20 11:16:03 +02:00
// The number of UsagePlan resources to be returned as the result.
Limit * int64 ` location:"querystring" locationName:"limit" type:"integer" `
// The zero-based array index specifying the position of the to-be-retrieved
// UsagePlan resource.
Position * string ` location:"querystring" locationName:"position" type:"string" `
2016-03-05 23:12:19 +01:00
}
// String returns the string representation
2016-08-20 11:16:03 +02:00
func ( s GetUsagePlansInput ) String ( ) string {
2016-03-05 23:12:19 +01:00
return awsutil . Prettify ( s )
}
// GoString returns the string representation
2016-08-20 11:16:03 +02:00
func ( s GetUsagePlansInput ) GoString ( ) string {
2016-03-05 23:12:19 +01:00
return s . String ( )
}
2016-08-20 11:16:03 +02:00
// Represents a collection of usage plans for an AWS account.
//
// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html)
type GetUsagePlansOutput struct {
2016-03-05 23:12:19 +01:00
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// Gets the current item when enumerating the collection of UsagePlan.
Items [ ] * UsagePlan ` locationName:"item" type:"list" `
2016-03-05 23:12:19 +01:00
2016-08-20 11:16:03 +02:00
Position * string ` locationName:"position" type:"string" `
2016-03-05 23:12:19 +01:00
}
// String returns the string representation
2016-08-20 11:16:03 +02:00
func ( s GetUsagePlansOutput ) String ( ) string {
2016-03-05 23:12:19 +01:00
return awsutil . Prettify ( s )
}
// GoString returns the string representation
2016-08-20 11:16:03 +02:00
func ( s GetUsagePlansOutput ) GoString ( ) string {
2016-03-05 23:12:19 +01:00
return s . String ( )
}
2016-08-20 11:16:03 +02:00
// The POST request to import API keys from an external source, such as a CSV-formatted
// file.
type ImportApiKeysInput struct {
_ struct { } ` type:"structure" payload:"Body" `
2016-05-05 03:06:27 +02:00
2016-08-20 11:16:03 +02:00
// The payload of the POST request to import API keys. For the payload format,
// see API Key File Format (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-key-file-format.html).
Body [ ] byte ` locationName:"body" type:"blob" required:"true" `
2016-03-05 23:12:19 +01:00
2016-08-20 11:16:03 +02:00
// A query parameter to indicate whether to rollback ApiKey importation (true)
// or not (false) when error is encountered.
FailOnWarnings * bool ` location:"querystring" locationName:"failonwarnings" type:"boolean" `
2016-03-05 23:12:19 +01:00
2016-08-20 11:16:03 +02:00
// A query parameter to specify the input format to imported API keys. Currently,
// only the csv format is supported.
Format * string ` location:"querystring" locationName:"format" type:"string" required:"true" enum:"ApiKeysFormat" `
2016-03-05 23:12:19 +01:00
}
// String returns the string representation
2016-08-20 11:16:03 +02:00
func ( s ImportApiKeysInput ) String ( ) string {
2016-03-05 23:12:19 +01:00
return awsutil . Prettify ( s )
}
// GoString returns the string representation
2016-08-20 11:16:03 +02:00
func ( s ImportApiKeysInput ) GoString ( ) string {
2016-03-05 23:12:19 +01:00
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
2016-08-20 11:16:03 +02:00
func ( s * ImportApiKeysInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "ImportApiKeysInput" }
if s . Body == nil {
invalidParams . Add ( request . NewErrParamRequired ( "Body" ) )
}
if s . Format == nil {
invalidParams . Add ( request . NewErrParamRequired ( "Format" ) )
2016-05-05 03:06:27 +02:00
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-08-20 11:16:03 +02:00
// The identifier of an API key used to reference an API key in a usage plan.
type ImportApiKeysOutput struct {
2016-03-05 23:12:19 +01:00
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// A list of all the ApiKey identifiers.
Ids [ ] * string ` locationName:"ids" type:"list" `
// A list of warning messages.
Warnings [ ] * string ` locationName:"warnings" type:"list" `
2016-03-05 23:12:19 +01:00
}
// String returns the string representation
2016-08-20 11:16:03 +02:00
func ( s ImportApiKeysOutput ) String ( ) string {
2016-03-05 23:12:19 +01:00
return awsutil . Prettify ( s )
}
// GoString returns the string representation
2016-08-20 11:16:03 +02:00
func ( s ImportApiKeysOutput ) GoString ( ) string {
2016-03-05 23:12:19 +01:00
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// A POST request to import an API to Amazon API Gateway using an input of an
// API definition file.
type ImportRestApiInput struct {
_ struct { } ` type:"structure" payload:"Body" `
// The POST request body containing external API definitions. Currently, only
// Swagger definition JSON files are supported.
Body [ ] byte ` locationName:"body" type:"blob" required:"true" `
// A query parameter to indicate whether to rollback the API creation (true)
// or not (false) when a warning is encountered. The default value is false.
FailOnWarnings * bool ` location:"querystring" locationName:"failonwarnings" type:"boolean" `
// Custom header parameters as part of the request.
Parameters map [ string ] * string ` location:"querystring" locationName:"parameters" type:"map" `
}
// String returns the string representation
func ( s ImportRestApiInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ImportRestApiInput ) GoString ( ) string {
return s . String ( )
}
// Validate inspects the fields of the type to determine if they are valid.
func ( s * ImportRestApiInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "ImportRestApiInput" }
if s . Body == nil {
invalidParams . Add ( request . NewErrParamRequired ( "Body" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-08-20 11:16:03 +02:00
// Represents an HTTP, AWS, or Mock integration.
//
// In the API Gateway console, the built-in Lambda integration is an AWS integration.
// Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html)
2016-03-05 23:12:19 +01:00
type Integration struct {
_ struct { } ` type:"structure" `
// Specifies the integration's cache key parameters.
CacheKeyParameters [ ] * string ` locationName:"cacheKeyParameters" type:"list" `
// Specifies the integration's cache namespace.
CacheNamespace * string ` locationName:"cacheNamespace" type:"string" `
// Specifies the credentials required for the integration, if any. For AWS integrations,
// three options are available. To specify an IAM Role for Amazon API Gateway
// to assume, use the role's Amazon Resource Name (ARN). To require that the
// caller's identity be passed through from the request, specify the string
// arn:aws:iam::\*:user/\*. To use resource-based permissions on supported AWS
// services, specify null.
Credentials * string ` locationName:"credentials" type:"string" `
// Specifies the integration's HTTP method type.
HttpMethod * string ` locationName:"httpMethod" type:"string" `
// Specifies the integration's responses.
2016-08-20 11:16:03 +02:00
//
// Example: Get integration responses of a method
//
// Request
//
// GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200
// HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com
// X-Amz-Date: 20160607T191449Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160607/us-east-1/apigateway/aws4_request,
// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response
//
// The successful response returns 200 OK status and a payload as follows:
//
// { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
// "name": "integrationresponse", "templated": true }, "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
// "title": "200" }, "integrationresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
// }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
// } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'"
// }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream
// in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n"
// }, "statusCode": "200" } Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html)
2016-03-05 23:12:19 +01:00
IntegrationResponses map [ string ] * IntegrationResponse ` locationName:"integrationResponses" type:"map" `
2016-08-20 11:16:03 +02:00
// Specifies how the method request body of an unmapped content type will be
// passed through the integration request to the back end without transformation.
// A content type is unmapped if no mapping template is defined in the integration
// or the content type does not match any of the mapped content types, as specified
// in requestTemplates. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES,
2016-07-15 15:49:02 +02:00
// and NEVER.
//
2016-08-20 11:16:03 +02:00
// WHEN_NO_MATCH passes the method request body through the integration request
// to the back end without transformation when the method request content type
// does not match any content type associated with the mapping templates defined
// in the integration request. WHEN_NO_TEMPLATES passes the method request
// body through the integration request to the back end without transformation
// when no mapping template is defined in the integration request. If a template
// is defined when this option is selected, the method request of an unmapped
// content-type will be rejected with an HTTP 415 Unsupported Media Type response.
// NEVER rejects the method request with an HTTP 415 Unsupported Media Type
// response when either the method request content type does not match any content
// type associated with the mapping templates defined in the integration request
// or no mapping template is defined in the integration request.
2016-07-15 15:49:02 +02:00
PassthroughBehavior * string ` locationName:"passthroughBehavior" type:"string" `
2016-08-20 11:16:03 +02:00
// A key-value map specifying request parameters that are passed from the method
// request to the back end. The key is an integration request parameter name
// and the associated value is a method request parameter value or static value
// that must be enclosed within single quotes and pre-encoded as required by
// the back end. The method request parameter value must match the pattern of
// method.request.{location}.{name}, where location is querystring, path, or
// header and name must be a valid and unique method request parameter name.
2016-03-05 23:12:19 +01:00
RequestParameters map [ string ] * string ` locationName:"requestParameters" type:"map" `
2016-07-15 15:49:02 +02:00
// Represents a map of Velocity templates that are applied on the request payload
// based on the value of the Content-Type header sent by the client. The content
// type value is the key in this map, and the template (as a String) is the
// value.
2016-03-05 23:12:19 +01:00
RequestTemplates map [ string ] * string ` locationName:"requestTemplates" type:"map" `
2016-10-07 12:51:50 +02:00
// Specifies the integration's type. The valid value is HTTP for integrating
// with an HTTP back end, AWS for any AWS service endpoints, MOCK for testing
// without actually invoking the back end, HTTP_PROXY for integrating with the
// HTTP proxy integration, or AWS_PROXY for integrating with the Lambda proxy
// integration type.
2016-03-05 23:12:19 +01:00
Type * string ` locationName:"type" type:"string" enum:"IntegrationType" `
// Specifies the integration's Uniform Resource Identifier (URI). For HTTP integrations,
// the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986
2016-03-06 09:47:30 +01:00
// specification (https://www.ietf.org/rfc/rfc3986.txt" target="_blank). For
// AWS integrations, the URI should be of the form arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}.
// Region, subdomain and service are used to determine the right endpoint. For
// AWS services that use the Action= query string parameter, service_api should
// be a valid action for the desired service. For RESTful AWS service APIs,
// path is used to indicate that the remaining substring in the URI should be
// treated as the path to the resource, including the initial /.
2016-03-05 23:12:19 +01:00
Uri * string ` locationName:"uri" type:"string" `
}
// String returns the string representation
func ( s Integration ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s Integration ) GoString ( ) string {
return s . String ( )
}
// Represents an integration response. The status code must map to an existing
// MethodResponse, and parameters and templates can be used to transform the
2016-08-20 11:16:03 +02:00
// back-end response.
//
// Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html)
2016-03-05 23:12:19 +01:00
type IntegrationResponse struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// A key-value map specifying response parameters that are passed to the method
// response from the back end. The key is a method response header parameter
// name and the mapped value is an integration response header value, a static
// value enclosed within a pair of single quotes, or a JSON expression from
// the integration response body. The mapping key must match the pattern of
// method.response.header.{name}, where name is a valid and unique header name.
// The mapped non-static value must match the pattern of integration.response.header.{name}
// or integration.response.body.{JSON-expression}, where name is a valid and
// unique response header name and JSON-expression is a valid JSON expression
// without the $ prefix.
2016-03-05 23:12:19 +01:00
ResponseParameters map [ string ] * string ` locationName:"responseParameters" type:"map" `
// Specifies the templates used to transform the integration response body.
// Response templates are represented as a key/value map, with a content-type
// as the key and a template as the value.
ResponseTemplates map [ string ] * string ` locationName:"responseTemplates" type:"map" `
// Specifies the regular expression (regex) pattern used to choose an integration
2016-08-20 11:16:03 +02:00
// response based on the response from the back end. For example, if the success
// response returns nothing and the error response returns some string, you
// could use the .+ regex to match error response. However, make sure that the
// error response does not contain any newline (\n) character in such cases.
// If the back end is an AWS Lambda function, the AWS Lambda function error
// header is matched. For all other HTTP and AWS back ends, the HTTP status
// code is matched.
2016-03-05 23:12:19 +01:00
SelectionPattern * string ` locationName:"selectionPattern" type:"string" `
// Specifies the status code that is used to map the integration response to
// an existing MethodResponse.
StatusCode * string ` locationName:"statusCode" type:"string" `
}
// String returns the string representation
func ( s IntegrationResponse ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s IntegrationResponse ) GoString ( ) string {
return s . String ( )
}
2016-08-20 11:16:03 +02:00
// Represents a client-facing interface by which the client calls the API to
// access back-end resources. A Method resource is integrated with an Integration
// resource. Both consist of a request and one or more responses. The method
// request takes the client input that is passed to the back end through the
// integration request. A method response returns the output from the back end
// to the client through an integration response. A method request is embodied
// in a Method resource, whereas an integration request is embodied in an Integration
// resource. On the other hand, a method response is represented by a MethodResponse
// resource, whereas an integration response is represented by an IntegrationResponse
// resource.
//
// Example: Retrive the GET method on a specified resource
//
// Request
//
// The following example request retrieves the information about the GET method
// on an API resource (3kzxbg5sa2) of an API (fugvjdxtri).
//
// GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type:
// application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160603T210259Z
// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request,
// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response
//
// The successful response returns a 200 OK status code and a payload similar
// to the following:
//
// { "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html",
// "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
// "name": "integrationresponse", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html",
// "name": "method", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
// "name": "methodresponse", "templated": true } ], "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET",
// "name": "GET", "title": "GET" }, "integration:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
// }, "method:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
// }, "method:integration": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
// }, "method:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
// "name": "200", "title": "200" }, "method:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
// }, "methodresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}",
// "templated": true } }, "apiKeyRequired": true, "authorizationType": "NONE",
// "httpMethod": "GET", "_embedded": { "method:integration": { "_links": { "self":
// { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
// }, "integration:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
// }, "integration:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
// "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
// }, "integrationresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}",
// "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "3kzxbg5sa2",
// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod":
// "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestParameters": { "integration.request.header.Content-Type":
// "'application/x-amz-json-1.1'" }, "requestTemplates": { "application/json":
// "{\n}" }, "type": "AWS", "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams",
// "_embedded": { "integration:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
// "name": "200", "title": "200" }, "integrationresponse:delete": { "href":
// "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
// }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
// } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'"
// }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E\")"
// }, "statusCode": "200" } } }, "method:responses": { "_links": { "self": {
// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
// "name": "200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
// }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
// } }, "responseModels": { "application/json": "Empty" }, "responseParameters":
// { "method.response.header.Content-Type": false }, "statusCode": "200" } }
// } In the example above, the response template for the 200 OK response maps
// the JSON output from the ListStreams action in the back end to an XML output.
// The mapping template is URL-encoded as %3CkinesisStreams%3E%23foreach(%24stream%20in%20%24input.path(%27%24.StreamNames%27))%3Cstream%3E%3Cname%3E%24stream%3C%2Fname%3E%3C%2Fstream%3E%23end%3C%2FkinesisStreams%3E
// and the output is decoded using the $util.urlDecode() (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#util-templat-reference)
// helper function.
//
// MethodResponse, Integration, IntegrationResponse, Resource, Set up an
// API's method (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-method-settings.html)
2016-03-05 23:12:19 +01:00
type Method struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// A boolean flag specifying whether a valid ApiKey is required to invoke this
// method.
2016-03-05 23:12:19 +01:00
ApiKeyRequired * bool ` locationName:"apiKeyRequired" type:"boolean" `
// The method's authorization type.
AuthorizationType * string ` locationName:"authorizationType" type:"string" `
2016-08-20 11:16:03 +02:00
// The identifier of an Authorizer to use on this method. The authorizationType
2016-03-06 09:47:30 +01:00
// must be CUSTOM.
AuthorizerId * string ` locationName:"authorizerId" type:"string" `
2016-08-20 11:16:03 +02:00
// The method's HTTP verb.
2016-03-05 23:12:19 +01:00
HttpMethod * string ` locationName:"httpMethod" type:"string" `
2016-08-20 11:16:03 +02:00
// Gets the method's integration responsible for passing the client-submitted
// request to the back end and performing necessary transformations to make
// the request compliant with the back end.
//
// Example:
//
// Request
//
// GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration HTTP/1.1
// Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com Content-Length:
// 117 X-Amz-Date: 20160613T213210Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request,
// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response
//
// The successful response returns a 200 OK status code and a payload similar
// to the following:
//
// { "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html",
// "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
// "name": "integrationresponse", "templated": true } ], "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration"
// }, "integration:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration"
// }, "integration:responses": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200",
// "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration"
// }, "integrationresponse:put": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/{status_code}",
// "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "0cjtch",
// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod":
// "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestTemplates": { "application/json":
// "{\n \"a\": \"$input.params('operand1')\",\n \"b\": \"$input.params('operand2')\",
// \n \"op\": \"$input.params('operator')\" \n}" }, "type": "AWS", "uri": "arn:aws:apigateway:us-west-2:lambda:path//2015-03-31/functions/arn:aws:lambda:us-west-2:123456789012:function:Calc/invocations",
// "_embedded": { "integration:responses": { "_links": { "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200",
// "name": "200", "title": "200" }, "integrationresponse:delete": { "href":
// "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200"
// }, "integrationresponse:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200"
// } }, "responseParameters": { "method.response.header.operator": "integration.response.body.op",
// "method.response.header.operand_2": "integration.response.body.b", "method.response.header.operand_1":
// "integration.response.body.a" }, "responseTemplates": { "application/json":
// "#set($res = $input.path('$'))\n{\n \"result\": \"$res.a, $res.b, $res.op
// => $res.c\",\n \"a\" : \"$res.a\",\n \"b\" : \"$res.b\",\n \"op\" : \"$res.op\",\n
// \"c\" : \"$res.c\"\n}" }, "selectionPattern": "", "statusCode": "200" } }
// } AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-integration.html)
2016-03-05 23:12:19 +01:00
MethodIntegration * Integration ` locationName:"methodIntegration" type:"structure" `
2016-08-20 11:16:03 +02:00
// Gets a method response associated with a given HTTP status code.
//
// The collection of method responses are encapsulated in a key-value map,
// where the key is a response's HTTP status code and the value is a MethodResponse
// resource that specifies the response returned to the caller from the back
// end through the integration response.
//
// Example: Get a 200 OK response of a GET method
//
// Request
//
// GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200 HTTP/1.1
// Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com Content-Length:
// 117 X-Amz-Date: 20160613T215008Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request,
// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response
//
// The successful response returns a 200 OK status code and a payload similar
// to the following:
//
// { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
// "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200",
// "title": "200" }, "methodresponse:delete": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200"
// }, "methodresponse:update": { "href": "/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200"
// } }, "responseModels": { "application/json": "Empty" }, "responseParameters":
// { "method.response.header.operator": false, "method.response.header.operand_2":
// false, "method.response.header.operand_1": false }, "statusCode": "200" }
// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-method-response.html)
2016-03-05 23:12:19 +01:00
MethodResponses map [ string ] * MethodResponse ` locationName:"methodResponses" type:"map" `
2016-08-20 11:16:03 +02:00
// A key-value map specifying data schemas, represented by Model resources,
// (as the mapped value) of the request payloads of given content types (as
// the mapping key).
2016-03-05 23:12:19 +01:00
RequestModels map [ string ] * string ` locationName:"requestModels" type:"map" `
2016-08-20 11:16:03 +02:00
// A key-value map defining required or optional method request parameters that
// can be accepted by Amazon API Gateway. A key is a method request parameter
// name matching the pattern of method.request.{location}.{name}, where location
// is querystring, path, or header and name is a valid and unique parameter
// name. The value associated with the key is a Boolean flag indicating whether
// the parameter is required (true) or optional (false). The method request
// parameter names defined here are available in Integration to be mapped to
// integration request parameters or templates.
2016-03-05 23:12:19 +01:00
RequestParameters map [ string ] * bool ` locationName:"requestParameters" type:"map" `
}
// String returns the string representation
func ( s Method ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s Method ) GoString ( ) string {
return s . String ( )
}
2016-08-20 11:16:03 +02:00
// Represents a method response of a given HTTP status code returned to the
// client. The method response is passed from the back end through the associated
// integration response that can be transformed using a mapping template.
//
// Example: A MethodResponse instance of an API
//
// Request
//
// The example request retrieves a MethodResponse of the 200 status code.
//
// GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200
// HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com
// X-Amz-Date: 20160603T222952Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request,
// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response
//
// The successful response returns 200 OK status and a payload as follows:
//
// { "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
// "name": "methodresponse", "templated": true }, "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
// "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
// }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
// } }, "responseModels": { "application/json": "Empty" }, "responseParameters":
// { "method.response.header.Content-Type": false }, "statusCode": "200" }
// Method, IntegrationResponse, Integration Creating an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html)
2016-03-05 23:12:19 +01:00
type MethodResponse struct {
_ struct { } ` type:"structure" `
// Specifies the Model resources used for the response's content-type. Response
// models are represented as a key/value map, with a content-type as the key
// and a Model name as the value.
ResponseModels map [ string ] * string ` locationName:"responseModels" type:"map" `
2016-08-20 11:16:03 +02:00
// A key-value map specifying required or optional response parameters that
// Amazon API Gateway can send back to the caller. A key defines a method response
// header and the value specifies whether the associated method response header
// is required or not. The expression of the key must match the pattern method.response.header.{name},
// where name is a valid and unique header name. Amazon API Gateway passes certain
// integration response data to the method response headers specified here according
// to the mapping you prescribe in the API's IntegrationResponse. The integration
// response data that can be mapped include an integration response header expressed
// in integration.response.header.{name}, a static value enclosed within a pair
// of single quotes (e.g., 'application/json'), or a JSON expression from the
// back-end response payload in the form of integration.response.body.{JSON-expression},
// where JSON-expression is a valid JSON expression without the $ prefix.)
2016-03-05 23:12:19 +01:00
ResponseParameters map [ string ] * bool ` locationName:"responseParameters" type:"map" `
// The method response's status code.
StatusCode * string ` locationName:"statusCode" type:"string" `
}
// String returns the string representation
func ( s MethodResponse ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s MethodResponse ) GoString ( ) string {
return s . String ( )
}
// Specifies the method setting properties.
type MethodSetting struct {
_ struct { } ` type:"structure" `
// Specifies whether the cached responses are encrypted. The PATCH path for
// this setting is /{method_setting_key}/caching/dataEncrypted, and the value
// is a Boolean.
CacheDataEncrypted * bool ` locationName:"cacheDataEncrypted" type:"boolean" `
2016-08-20 11:16:03 +02:00
// Specifies the time to live (TTL), in seconds, for cached responses. The higher
// the TTL, the longer the response will be cached. The PATCH path for this
2016-03-05 23:12:19 +01:00
// setting is /{method_setting_key}/caching/ttlInSeconds, and the value is an
// integer.
CacheTtlInSeconds * int64 ` locationName:"cacheTtlInSeconds" type:"integer" `
// Specifies whether responses should be cached and returned for requests. A
// cache cluster must be enabled on the stage for responses to be cached. The
// PATCH path for this setting is /{method_setting_key}/caching/enabled, and
// the value is a Boolean.
CachingEnabled * bool ` locationName:"cachingEnabled" type:"boolean" `
2016-08-20 11:16:03 +02:00
// Specifies whether data trace logging is enabled for this method, which effects
// the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this
// setting is /{method_setting_key}/logging/dataTrace, and the value is a Boolean.
2016-03-05 23:12:19 +01:00
DataTraceEnabled * bool ` locationName:"dataTraceEnabled" type:"boolean" `
// Specifies the logging level for this method, which effects the log entries
// pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/loglevel,
// and the available levels are OFF, ERROR, and INFO.
LoggingLevel * string ` locationName:"loggingLevel" type:"string" `
// Specifies whether Amazon CloudWatch metrics are enabled for this method.
// The PATCH path for this setting is /{method_setting_key}/metrics/enabled,
// and the value is a Boolean.
MetricsEnabled * bool ` locationName:"metricsEnabled" type:"boolean" `
2016-03-11 01:27:37 +01:00
// Specifies whether authorization is required for a cache invalidation request.
// The PATCH path for this setting is /{method_setting_key}/caching/requireAuthorizationForCacheControl,
// and the value is a Boolean.
RequireAuthorizationForCacheControl * bool ` locationName:"requireAuthorizationForCacheControl" type:"boolean" `
2016-03-05 23:12:19 +01:00
// Specifies the throttling burst limit. The PATCH path for this setting is
// /{method_setting_key}/throttling/burstLimit, and the value is an integer.
ThrottlingBurstLimit * int64 ` locationName:"throttlingBurstLimit" type:"integer" `
// Specifies the throttling rate limit. The PATCH path for this setting is /{method_setting_key}/throttling/rateLimit,
// and the value is a double.
ThrottlingRateLimit * float64 ` locationName:"throttlingRateLimit" type:"double" `
2016-03-11 01:27:37 +01:00
2016-08-20 11:16:03 +02:00
// Specifies how to handle unauthorized requests for cache invalidation. The
// PATCH path for this setting is /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy,
2016-03-11 01:27:37 +01:00
// and the available values are FAIL_WITH_403, SUCCEED_WITH_RESPONSE_HEADER,
// SUCCEED_WITHOUT_RESPONSE_HEADER.
UnauthorizedCacheControlHeaderStrategy * string ` locationName:"unauthorizedCacheControlHeaderStrategy" type:"string" enum:"UnauthorizedCacheControlHeaderStrategy" `
2016-03-05 23:12:19 +01:00
}
// String returns the string representation
func ( s MethodSetting ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s MethodSetting ) GoString ( ) string {
return s . String ( )
}
// Represents a summary of a Method resource, given a particular date and time.
type MethodSnapshot struct {
_ struct { } ` type:"structure" `
// Specifies whether the method requires a valid ApiKey.
ApiKeyRequired * bool ` locationName:"apiKeyRequired" type:"boolean" `
// Specifies the type of authorization used for the method.
AuthorizationType * string ` locationName:"authorizationType" type:"string" `
}
// String returns the string representation
func ( s MethodSnapshot ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s MethodSnapshot ) GoString ( ) string {
return s . String ( )
}
2016-08-20 11:16:03 +02:00
// Represents the data structure of a method's request or response payload.
//
// A request model defines the data structure of the client-supplied request
// payload. A response model defines the data structure of the response payload
// returned by the back end. Although not required, models are useful for mapping
// payloads between the front end and back end.
//
// A model is used for generating an API's SDK, validating the input request
// body, and creating a skeletal mapping template.
//
// Method, MethodResponse, Models and Mappings (http://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html)
2016-03-05 23:12:19 +01:00
type Model struct {
_ struct { } ` type:"structure" `
// The content-type for the model.
ContentType * string ` locationName:"contentType" type:"string" `
// The description of the model.
Description * string ` locationName:"description" type:"string" `
// The identifier for the model resource.
Id * string ` locationName:"id" type:"string" `
// The name of the model.
Name * string ` locationName:"name" type:"string" `
// The schema for the model. For application/json models, this should be JSON-schema
2016-03-06 09:47:30 +01:00
// draft v4 (http://json-schema.org/documentation.html" target="_blank) model.
2016-08-20 11:16:03 +02:00
// Do not include "\*/" characters in the description of any properties because
// such "\*/" characters may be interpreted as the closing marker for comments
// in some languages, such as Java or JavaScript, causing the installation of
// your API's SDK generated by API Gateway to fail.
2016-03-05 23:12:19 +01:00
Schema * string ` locationName:"schema" type:"string" `
}
// String returns the string representation
func ( s Model ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s Model ) GoString ( ) string {
return s . String ( )
}
// A single patch operation to apply to the specified resource. Please refer
// to http://tools.ietf.org/html/rfc6902#section-4 for an explanation of how
// each operation is used.
type PatchOperation struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// Not supported.
2016-03-05 23:12:19 +01:00
From * string ` locationName:"from" type:"string" `
2016-08-20 11:16:03 +02:00
// An update operation to be performed with this PATCH request. The valid value
// can be "add", "remove", or "replace". Not all valid operations are supported
// for a given resource. Support of the operations depends on specific operational
// contexts. Attempts to apply an unsupported operation on a resource will return
// an error message.
2016-10-07 12:51:50 +02:00
Op * string ` locationName:"op" type:"string" enum:"Op" `
2016-03-05 23:12:19 +01:00
2016-08-20 11:16:03 +02:00
// The op operation's target, as identified by a JSON Pointer (https://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-08)
// value that references a location within the targeted resource. For example,
// if the target resource has an updateable property of {"name":"value"}, the
// path for this property is /name. If the name property value is a JSON object
// (e.g., {"name": {"child/name": "child-value"}}), the path for the child/name
// property will be /name/child~1name. Any slash ("/") character appearing in
// path names must be escaped with "~1", as shown in the example above. Each
// op operation can have only one path associated with it.
2016-03-05 23:12:19 +01:00
Path * string ` locationName:"path" type:"string" `
2016-08-20 11:16:03 +02:00
// The new target value of the update operation.
2016-03-05 23:12:19 +01:00
Value * string ` locationName:"value" type:"string" `
}
// String returns the string representation
func ( s PatchOperation ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s PatchOperation ) GoString ( ) string {
return s . String ( )
}
// Represents a put integration request.
type PutIntegrationInput struct {
_ struct { } ` type:"structure" `
// Specifies a put integration input's cache key parameters.
CacheKeyParameters [ ] * string ` locationName:"cacheKeyParameters" type:"list" `
// Specifies a put integration input's cache namespace.
CacheNamespace * string ` locationName:"cacheNamespace" type:"string" `
// Specifies whether credentials are required for a put integration.
Credentials * string ` locationName:"credentials" type:"string" `
// Specifies a put integration request's HTTP method.
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
2016-03-11 01:27:37 +01:00
// Specifies a put integration HTTP method. When the integration type is HTTP
// or AWS, this field is required.
2016-03-05 23:12:19 +01:00
IntegrationHttpMethod * string ` locationName:"httpMethod" type:"string" `
2016-07-15 15:49:02 +02:00
// Specifies the pass-through behavior for incoming requests based on the Content-Type
2016-08-20 11:16:03 +02:00
// header in the request, and the available mapping templates specified as the
// requestTemplates property on the Integration resource. There are three valid
// values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER.
2016-07-15 15:49:02 +02:00
//
// WHEN_NO_MATCH passes the request body for unmapped content types through
2016-08-20 11:16:03 +02:00
// to the integration back end without transformation.
2016-07-15 15:49:02 +02:00
//
// NEVER rejects unmapped content types with an HTTP 415 'Unsupported Media
// Type' response.
//
2016-08-20 11:16:03 +02:00
// WHEN_NO_TEMPLATES allows pass-through when the integration has NO content
2016-07-15 15:49:02 +02:00
// types mapped to templates. However if there is at least one content type
// defined, unmapped content types will be rejected with the same 415 response.
PassthroughBehavior * string ` locationName:"passthroughBehavior" type:"string" `
2016-08-20 11:16:03 +02:00
// A key-value map specifying request parameters that are passed from the method
// request to the back end. The key is an integration request parameter name
// and the associated value is a method request parameter value or static value
// that must be enclosed within single quotes and pre-encoded as required by
// the back end. The method request parameter value must match the pattern of
// method.request.{location}.{name}, where location is querystring, path, or
// header and name must be a valid and unique method request parameter name.
2016-03-05 23:12:19 +01:00
RequestParameters map [ string ] * string ` locationName:"requestParameters" type:"map" `
2016-07-15 15:49:02 +02:00
// Represents a map of Velocity templates that are applied on the request payload
// based on the value of the Content-Type header sent by the client. The content
// type value is the key in this map, and the template (as a String) is the
// value.
2016-03-05 23:12:19 +01:00
RequestTemplates map [ string ] * string ` locationName:"requestTemplates" type:"map" `
// Specifies a put integration request's resource ID.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// Specifies a put integration request's API identifier.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// Specifies a put integration input's type.
Type * string ` locationName:"type" type:"string" required:"true" enum:"IntegrationType" `
2016-03-11 01:27:37 +01:00
// Specifies a put integration input's Uniform Resource Identifier (URI). When
2016-05-05 03:06:27 +02:00
// the integration type is HTTP or AWS, this field is required. For integration
// with Lambda as an AWS service proxy, this value is of the 'arn:aws:apigateway:<region>:lambda:path/2015-03-31/functions/<functionArn>/invocations'
// format.
2016-03-05 23:12:19 +01:00
Uri * string ` locationName:"uri" type:"string" `
}
// String returns the string representation
func ( s PutIntegrationInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s PutIntegrationInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * PutIntegrationInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "PutIntegrationInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . Type == nil {
invalidParams . Add ( request . NewErrParamRequired ( "Type" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Represents a put integration response request.
type PutIntegrationResponseInput struct {
_ struct { } ` type:"structure" `
// Specifies a put integration response request's HTTP method.
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
// Specifies a put integration response request's resource identifier.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// A key-value map specifying response parameters that are passed to the method
// response from the back end. The key is a method response header parameter
// name and the mapped value is an integration response header value, a static
// value enclosed within a pair of single quotes, or a JSON expression from
// the integration response body. The mapping key must match the pattern of
// method.response.header.{name}, where name is a valid and unique header name.
// The mapped non-static value must match the pattern of integration.response.header.{name}
// or integration.response.body.{JSON-expression}, where name must be a valid
// and unique response header name and JSON-expression a valid JSON expression
// without the $ prefix.
2016-03-05 23:12:19 +01:00
ResponseParameters map [ string ] * string ` locationName:"responseParameters" type:"map" `
// Specifies a put integration response's templates.
ResponseTemplates map [ string ] * string ` locationName:"responseTemplates" type:"map" `
// Specifies a put integration response request's API identifier.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// Specifies the selection pattern of a put integration response.
SelectionPattern * string ` locationName:"selectionPattern" type:"string" `
// Specifies the status code that is used to map the integration response to
// an existing MethodResponse.
StatusCode * string ` location:"uri" locationName:"status_code" type:"string" required:"true" `
}
// String returns the string representation
func ( s PutIntegrationResponseInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s PutIntegrationResponseInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * PutIntegrationResponseInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "PutIntegrationResponseInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StatusCode == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StatusCode" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Request to add a method to an existing Resource resource.
type PutMethodInput struct {
_ struct { } ` type:"structure" `
// Specifies whether the method required a valid ApiKey.
ApiKeyRequired * bool ` locationName:"apiKeyRequired" type:"boolean" `
// Specifies the type of authorization used for the method.
AuthorizationType * string ` locationName:"authorizationType" type:"string" required:"true" `
2016-03-06 09:47:30 +01:00
// Specifies the identifier of an Authorizer to use on this Method, if the type
// is CUSTOM.
AuthorizerId * string ` locationName:"authorizerId" type:"string" `
2016-08-20 11:16:03 +02:00
// Specifies the method request's HTTP method type.
2016-03-05 23:12:19 +01:00
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
// Specifies the Model resources used for the request's content type. Request
// models are represented as a key/value map, with a content type as the key
// and a Model name as the value.
RequestModels map [ string ] * string ` locationName:"requestModels" type:"map" `
2016-08-20 11:16:03 +02:00
// A key-value map defining required or optional method request parameters that
// can be accepted by Amazon API Gateway. A key defines a method request parameter
// name matching the pattern of method.request.{location}.{name}, where location
// is querystring, path, or header and name is a valid and unique parameter
// name. The value associated with the key is a Boolean flag indicating whether
// the parameter is required (true) or optional (false). The method request
// parameter names defined here are available in Integration to be mapped to
// integration request parameters or body-mapping templates.
2016-03-05 23:12:19 +01:00
RequestParameters map [ string ] * bool ` locationName:"requestParameters" type:"map" `
// The Resource identifier for the new Method resource.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// The RestApi identifier for the new Method resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s PutMethodInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s PutMethodInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * PutMethodInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "PutMethodInput" }
if s . AuthorizationType == nil {
invalidParams . Add ( request . NewErrParamRequired ( "AuthorizationType" ) )
}
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Request to add a MethodResponse to an existing Method resource.
type PutMethodResponseInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// The HTTP verb of the Method resource.
2016-03-05 23:12:19 +01:00
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
// The Resource identifier for the Method resource.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// Specifies the Model resources used for the response's content type. Response
// models are represented as a key/value map, with a content type as the key
// and a Model name as the value.
ResponseModels map [ string ] * string ` locationName:"responseModels" type:"map" `
2016-08-20 11:16:03 +02:00
// A key-value map specifying required or optional response parameters that
// Amazon API Gateway can send back to the caller. A key defines a method response
// header name and the associated value is a Boolean flag indicating whether
// the method response parameter is required or not. The method response header
// names must match the pattern of method.response.header.{name}, where name
// is a valid and unique header name. The response parameter names defined here
// are available in the integration response to be mapped from an integration
// response header expressed in integration.response.header.{name}, a static
// value enclosed within a pair of single quotes (e.g., 'application/json'),
// or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression},
// where JSON-expression is a valid JSON expression without the $ prefix.)
2016-03-05 23:12:19 +01:00
ResponseParameters map [ string ] * bool ` locationName:"responseParameters" type:"map" `
// The RestApi identifier for the Method resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// The method response's status code.
StatusCode * string ` location:"uri" locationName:"status_code" type:"string" required:"true" `
}
// String returns the string representation
func ( s PutMethodResponseInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s PutMethodResponseInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * PutMethodResponseInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "PutMethodResponseInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StatusCode == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StatusCode" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// A PUT request to update an existing API, with external API definitions specified
// as the request body.
type PutRestApiInput struct {
_ struct { } ` type:"structure" payload:"Body" `
// The PUT request body containing external API definitions. Currently, only
// Swagger definition JSON files are supported.
Body [ ] byte ` locationName:"body" type:"blob" required:"true" `
// A query parameter to indicate whether to rollback the API update (true) or
// not (false) when a warning is encountered. The default value is false.
FailOnWarnings * bool ` location:"querystring" locationName:"failonwarnings" type:"boolean" `
// The mode query parameter to specify the update mode. Valid values are "merge"
// and "overwrite". By default, the update mode is "merge".
Mode * string ` location:"querystring" locationName:"mode" type:"string" enum:"PutMode" `
// Custom headers supplied as part of the request.
Parameters map [ string ] * string ` location:"querystring" locationName:"parameters" type:"map" `
// The identifier of the RestApi to be updated.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s PutRestApiInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s PutRestApiInput ) GoString ( ) string {
return s . String ( )
}
// Validate inspects the fields of the type to determine if they are valid.
func ( s * PutRestApiInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "PutRestApiInput" }
if s . Body == nil {
invalidParams . Add ( request . NewErrParamRequired ( "Body" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-08-20 11:16:03 +02:00
// Quotas configured for a usage plan.
type QuotaSettings struct {
_ struct { } ` type:"structure" `
// The maximum number of requests that can be made in a given time period.
Limit * int64 ` locationName:"limit" type:"integer" `
// The number of requests subtracted from the given limit in the initial time
// period.
Offset * int64 ` locationName:"offset" type:"integer" `
// The time period in which the limit applies. Valid values are "DAY", "WEEK"
// or "MONTH".
Period * string ` locationName:"period" type:"string" enum:"QuotaPeriodType" `
}
// String returns the string representation
func ( s QuotaSettings ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s QuotaSettings ) GoString ( ) string {
return s . String ( )
}
// Represents an API resource.
//
// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html)
2016-03-05 23:12:19 +01:00
type Resource struct {
_ struct { } ` type:"structure" `
// The resource's identifier.
Id * string ` locationName:"id" type:"string" `
// The parent resource's identifier.
ParentId * string ` locationName:"parentId" type:"string" `
// The full path for this resource.
Path * string ` locationName:"path" type:"string" `
// The last path segment for this resource.
PathPart * string ` locationName:"pathPart" type:"string" `
2016-08-20 11:16:03 +02:00
// Gets an API resource's method of a given HTTP verb.
//
// The resource methods are a map of methods indexed by methods' HTTP verbs
// enabled on the resource. This method map is included in the 200 OK response
// of the GET /restapis/{restapi_id}/resources/{resource_id} or GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods
// request.
//
// Example: Get the GET method of an API resource
//
// Request
//
// GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type:
// application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160608T031827Z
// Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160608/us-east-1/apigateway/aws4_request,
// SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response
//
// { "_links": { "curies": [ { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html",
// "name": "integration", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
// "name": "integrationresponse", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html",
// "name": "method", "templated": true }, { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html",
// "name": "methodresponse", "templated": true } ], "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET",
// "name": "GET", "title": "GET" }, "integration:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
// }, "method:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
// }, "method:integration": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
// }, "method:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
// "name": "200", "title": "200" }, "method:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET"
// }, "methodresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}",
// "templated": true } }, "apiKeyRequired": false, "authorizationType": "NONE",
// "httpMethod": "GET", "_embedded": { "method:integration": { "_links": { "self":
// { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
// }, "integration:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
// }, "integration:responses": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
// "name": "200", "title": "200" }, "integration:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration"
// }, "integrationresponse:put": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}",
// "templated": true } }, "cacheKeyParameters": [], "cacheNamespace": "3kzxbg5sa2",
// "credentials": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "httpMethod":
// "POST", "passthroughBehavior": "WHEN_NO_MATCH", "requestParameters": { "integration.request.header.Content-Type":
// "'application/x-amz-json-1.1'" }, "requestTemplates": { "application/json":
// "{\n}" }, "type": "AWS", "uri": "arn:aws:apigateway:us-east-1:kinesis:action/ListStreams",
// "_embedded": { "integration:responses": { "_links": { "self": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
// "name": "200", "title": "200" }, "integrationresponse:delete": { "href":
// "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
// }, "integrationresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
// } }, "responseParameters": { "method.response.header.Content-Type": "'application/xml'"
// }, "responseTemplates": { "application/json": "$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream
// in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n"
// }, "statusCode": "200" } } }, "method:responses": { "_links": { "self": {
// "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200",
// "name": "200", "title": "200" }, "methodresponse:delete": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
// }, "methodresponse:update": { "href": "/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200"
// } }, "responseModels": { "application/json": "Empty" }, "responseParameters":
// { "method.response.header.Content-Type": false }, "statusCode": "200" } }
// } If the OPTIONS is enabled on the resource, you can follow the example here
// to get that method. Just replace the GET of the last path segment in the
// request URL with OPTIONS.
2016-03-05 23:12:19 +01:00
ResourceMethods map [ string ] * Method ` locationName:"resourceMethods" type:"map" `
}
// String returns the string representation
func ( s Resource ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s Resource ) GoString ( ) string {
return s . String ( )
}
// Represents a REST API.
2016-08-20 11:16:03 +02:00
//
// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html)
2016-03-05 23:12:19 +01:00
type RestApi struct {
_ struct { } ` type:"structure" `
2016-03-06 09:47:30 +01:00
// The date when the API was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm"
// target="_blank).
2016-03-05 23:12:19 +01:00
CreatedDate * time . Time ` locationName:"createdDate" type:"timestamp" timestampFormat:"unix" `
// The API's description.
Description * string ` locationName:"description" type:"string" `
// The API's identifier. This identifier is unique across all of your APIs in
// Amazon API Gateway.
Id * string ` locationName:"id" type:"string" `
// The API's name.
Name * string ` locationName:"name" type:"string" `
2016-05-05 03:06:27 +02:00
2016-08-20 11:16:03 +02:00
// The warning messages reported when failonwarnings is turned on during API
// import.
2016-05-05 03:06:27 +02:00
Warnings [ ] * string ` locationName:"warnings" type:"list" `
2016-03-05 23:12:19 +01:00
}
// String returns the string representation
func ( s RestApi ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s RestApi ) GoString ( ) string {
return s . String ( )
}
// Represents a unique identifier for a version of a deployed RestApi that is
// callable by users.
2016-08-20 11:16:03 +02:00
//
// Deploy an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html)
2016-03-05 23:12:19 +01:00
type Stage struct {
_ struct { } ` type:"structure" `
// Specifies whether a cache cluster is enabled for the stage.
CacheClusterEnabled * bool ` locationName:"cacheClusterEnabled" type:"boolean" `
// The size of the cache cluster for the stage, if enabled.
CacheClusterSize * string ` locationName:"cacheClusterSize" type:"string" enum:"CacheClusterSize" `
// The status of the cache cluster for the stage, if enabled.
CacheClusterStatus * string ` locationName:"cacheClusterStatus" type:"string" enum:"CacheClusterStatus" `
2016-08-20 11:16:03 +02:00
// The identifier of a client certificate for an API stage.
2016-03-05 23:12:19 +01:00
ClientCertificateId * string ` locationName:"clientCertificateId" type:"string" `
2016-03-06 09:47:30 +01:00
// The date and time that the stage was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm"
// target="_blank).
2016-03-05 23:12:19 +01:00
CreatedDate * time . Time ` locationName:"createdDate" type:"timestamp" timestampFormat:"unix" `
// The identifier of the Deployment that the stage points to.
DeploymentId * string ` locationName:"deploymentId" type:"string" `
// The stage's description.
Description * string ` locationName:"description" type:"string" `
// The date and time that information about the stage was last updated, in ISO
2016-03-06 09:47:30 +01:00
// 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" target="_blank).
2016-03-05 23:12:19 +01:00
LastUpdatedDate * time . Time ` locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix" `
2016-08-20 11:16:03 +02:00
// A map that defines the method settings for a Stage resource. Keys (designated
// as /{method_setting_key below) are method paths defined as {resource_path}/{http_method}
// for an individual method override, or /\*/\* for overriding all methods in
2016-10-07 12:51:50 +02:00
// the stage.
2016-03-05 23:12:19 +01:00
MethodSettings map [ string ] * MethodSetting ` locationName:"methodSettings" type:"map" `
// The name of the stage is the first path segment in the Uniform Resource Identifier
// (URI) of a call to Amazon API Gateway.
StageName * string ` locationName:"stageName" type:"string" `
// A map that defines the stage variables for a Stage resource. Variable names
2016-08-20 11:16:03 +02:00
// can have alphanumeric and underscore characters, and the values must match
// [A-Za-z0-9-._~:/?#&=,]+.
2016-03-05 23:12:19 +01:00
Variables map [ string ] * string ` locationName:"variables" type:"map" `
}
// String returns the string representation
func ( s Stage ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s Stage ) GoString ( ) string {
return s . String ( )
}
// A reference to a unique stage identified in the format {restApiId}/{stage}.
type StageKey struct {
_ struct { } ` type:"structure" `
// A list of Stage resources that are associated with the ApiKey resource.
RestApiId * string ` locationName:"restApiId" type:"string" `
// The stage name in the RestApi that the stage key references.
StageName * string ` locationName:"stageName" type:"string" `
}
// String returns the string representation
func ( s StageKey ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s StageKey ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Make a request to simulate the execution of an Authorizer.
2016-03-11 01:27:37 +01:00
type TestInvokeAuthorizerInput struct {
_ struct { } ` type:"structure" `
2016-05-05 03:06:27 +02:00
// [Optional] A key-value map of additional context variables.
2016-03-11 01:27:37 +01:00
AdditionalContext map [ string ] * string ` locationName:"additionalContext" type:"map" `
2016-05-05 03:06:27 +02:00
// Specifies a test invoke authorizer request's Authorizer ID.
2016-03-11 01:27:37 +01:00
AuthorizerId * string ` location:"uri" locationName:"authorizer_id" type:"string" required:"true" `
2016-05-05 03:06:27 +02:00
// [Optional] The simulated request body of an incoming invocation request.
2016-03-11 01:27:37 +01:00
Body * string ` locationName:"body" type:"string" `
2016-05-05 03:06:27 +02:00
// [Required] A key-value map of headers to simulate an incoming invocation
// request. This is where the incoming authorization token, or identity source,
// should be specified.
2016-03-11 01:27:37 +01:00
Headers map [ string ] * string ` locationName:"headers" type:"map" `
2016-05-05 03:06:27 +02:00
// [Optional] The URI path, including query string, of the simulated invocation
// request. Use this to specify path parameters and query string parameters.
2016-03-11 01:27:37 +01:00
PathWithQueryString * string ` locationName:"pathWithQueryString" type:"string" `
2016-05-05 03:06:27 +02:00
// Specifies a test invoke authorizer request's RestApi identifier.
2016-03-11 01:27:37 +01:00
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
2016-05-05 03:06:27 +02:00
// A key-value map of stage variables to simulate an invocation on a deployed
// Stage.
2016-03-11 01:27:37 +01:00
StageVariables map [ string ] * string ` locationName:"stageVariables" type:"map" `
}
// String returns the string representation
func ( s TestInvokeAuthorizerInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s TestInvokeAuthorizerInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * TestInvokeAuthorizerInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "TestInvokeAuthorizerInput" }
if s . AuthorizerId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "AuthorizerId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-08-20 11:16:03 +02:00
// Represents the response of the test invoke request for a custom Authorizer
2016-03-11 01:27:37 +01:00
type TestInvokeAuthorizerOutput struct {
_ struct { } ` type:"structure" `
Authorization map [ string ] [ ] * string ` locationName:"authorization" type:"map" `
2016-08-20 11:16:03 +02:00
// The open identity claims (http://openid.net/specs/openid-connect-core-1_0.html#StandardClaims),
// with any supported custom attributes, returned from the Cognito Your User
// Pool configured for the API.
2016-07-29 10:11:56 +02:00
Claims map [ string ] * string ` locationName:"claims" type:"map" `
2016-03-11 01:27:37 +01:00
// The HTTP status code that the client would have received. Value is 0 if the
// authorizer succeeded.
ClientStatus * int64 ` locationName:"clientStatus" type:"integer" `
2016-08-20 11:16:03 +02:00
// The execution latency of the test authorizer request.
2016-03-11 01:27:37 +01:00
Latency * int64 ` locationName:"latency" type:"long" `
// The Amazon API Gateway execution log for the test authorizer request.
Log * string ` locationName:"log" type:"string" `
2016-08-20 11:16:03 +02:00
// The JSON policy document returned by the Authorizer
2016-03-11 01:27:37 +01:00
Policy * string ` locationName:"policy" type:"string" `
// The principal identity returned by the Authorizer
PrincipalId * string ` locationName:"principalId" type:"string" `
}
// String returns the string representation
func ( s TestInvokeAuthorizerOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s TestInvokeAuthorizerOutput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Make a request to simulate the execution of a Method.
2016-03-05 23:12:19 +01:00
type TestInvokeMethodInput struct {
_ struct { } ` type:"structure" `
2016-05-05 03:06:27 +02:00
// The simulated request body of an incoming invocation request.
2016-03-05 23:12:19 +01:00
Body * string ` locationName:"body" type:"string" `
2016-05-05 03:06:27 +02:00
// A ClientCertificate identifier to use in the test invocation. API Gateway
2016-08-20 11:16:03 +02:00
// will use the certificate when making the HTTPS request to the defined back-end
// endpoint.
2016-03-05 23:12:19 +01:00
ClientCertificateId * string ` locationName:"clientCertificateId" type:"string" `
2016-05-05 03:06:27 +02:00
// A key-value map of headers to simulate an incoming invocation request.
2016-03-05 23:12:19 +01:00
Headers map [ string ] * string ` locationName:"headers" type:"map" `
2016-05-05 03:06:27 +02:00
// Specifies a test invoke method request's HTTP method.
2016-03-05 23:12:19 +01:00
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
2016-05-05 03:06:27 +02:00
// The URI path, including query string, of the simulated invocation request.
// Use this to specify path parameters and query string parameters.
2016-03-05 23:12:19 +01:00
PathWithQueryString * string ` locationName:"pathWithQueryString" type:"string" `
2016-05-05 03:06:27 +02:00
// Specifies a test invoke method request's resource ID.
2016-03-05 23:12:19 +01:00
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
2016-05-05 03:06:27 +02:00
// Specifies a test invoke method request's API identifier.
2016-03-05 23:12:19 +01:00
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
2016-05-05 03:06:27 +02:00
// A key-value map of stage variables to simulate an invocation on a deployed
// Stage.
2016-03-05 23:12:19 +01:00
StageVariables map [ string ] * string ` locationName:"stageVariables" type:"map" `
}
// String returns the string representation
func ( s TestInvokeMethodInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s TestInvokeMethodInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * TestInvokeMethodInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "TestInvokeMethodInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-08-20 11:16:03 +02:00
// Represents the response of the test invoke request in the HTTP method.
//
// Test API using the API Gateway console (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-test-method.html#how-to-test-method-console)
2016-03-05 23:12:19 +01:00
type TestInvokeMethodOutput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// The body of the HTTP response.
2016-03-05 23:12:19 +01:00
Body * string ` locationName:"body" type:"string" `
2016-08-20 11:16:03 +02:00
// The headers of the HTTP response.
2016-03-05 23:12:19 +01:00
Headers map [ string ] * string ` locationName:"headers" type:"map" `
// The execution latency of the test invoke request.
Latency * int64 ` locationName:"latency" type:"long" `
// The Amazon API Gateway execution log for the test invoke request.
Log * string ` locationName:"log" type:"string" `
// The HTTP status code.
Status * int64 ` locationName:"status" type:"integer" `
}
// String returns the string representation
func ( s TestInvokeMethodOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s TestInvokeMethodOutput ) GoString ( ) string {
return s . String ( )
}
2016-08-20 11:16:03 +02:00
// The API request rate limits.
2016-03-05 23:12:19 +01:00
type ThrottleSettings struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// The API request burst limit, the maximum rate limit over a time ranging from
// one to a few seconds, depending upon whether the underlying token bucket
// is at its full capacity.
2016-03-05 23:12:19 +01:00
BurstLimit * int64 ` locationName:"burstLimit" type:"integer" `
2016-08-20 11:16:03 +02:00
// The API request steady-state rate limit.
2016-03-05 23:12:19 +01:00
RateLimit * float64 ` locationName:"rateLimit" type:"double" `
}
// String returns the string representation
func ( s ThrottleSettings ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ThrottleSettings ) GoString ( ) string {
return s . String ( )
}
// Requests Amazon API Gateway to change information about the current Account
// resource.
type UpdateAccountInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
2016-03-05 23:12:19 +01:00
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
}
// String returns the string representation
func ( s UpdateAccountInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateAccountInput ) GoString ( ) string {
return s . String ( )
}
// A request to change information about an ApiKey resource.
type UpdateApiKeyInput struct {
_ struct { } ` type:"structure" `
// The identifier of the ApiKey resource to be updated.
ApiKey * string ` location:"uri" locationName:"api_Key" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
2016-03-05 23:12:19 +01:00
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
}
// String returns the string representation
func ( s UpdateApiKeyInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateApiKeyInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateApiKeyInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateApiKeyInput" }
if s . ApiKey == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApiKey" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-06 09:47:30 +01:00
// Request to update an existing Authorizer resource.
type UpdateAuthorizerInput struct {
_ struct { } ` type:"structure" `
// The identifier of the Authorizer resource.
AuthorizerId * string ` location:"uri" locationName:"authorizer_id" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
2016-03-06 09:47:30 +01:00
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
// The RestApi identifier for the Authorizer resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s UpdateAuthorizerInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateAuthorizerInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateAuthorizerInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateAuthorizerInput" }
if s . AuthorizerId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "AuthorizerId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// A request to change information about the BasePathMapping resource.
type UpdateBasePathMappingInput struct {
_ struct { } ` type:"structure" `
// The base path of the BasePathMapping resource to change.
BasePath * string ` location:"uri" locationName:"base_path" type:"string" required:"true" `
// The domain name of the BasePathMapping resource to change.
DomainName * string ` location:"uri" locationName:"domain_name" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
2016-03-05 23:12:19 +01:00
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
}
// String returns the string representation
func ( s UpdateBasePathMappingInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateBasePathMappingInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateBasePathMappingInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateBasePathMappingInput" }
if s . BasePath == nil {
invalidParams . Add ( request . NewErrParamRequired ( "BasePath" ) )
}
if s . DomainName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DomainName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// A request to change information about an ClientCertificate resource.
2016-03-05 23:12:19 +01:00
type UpdateClientCertificateInput struct {
_ struct { } ` type:"structure" `
2016-05-05 03:06:27 +02:00
// The identifier of the ClientCertificate resource to be updated.
2016-03-05 23:12:19 +01:00
ClientCertificateId * string ` location:"uri" locationName:"clientcertificate_id" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
2016-03-05 23:12:19 +01:00
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
}
// String returns the string representation
func ( s UpdateClientCertificateInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateClientCertificateInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateClientCertificateInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateClientCertificateInput" }
if s . ClientCertificateId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ClientCertificateId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Requests Amazon API Gateway to change information about a Deployment resource.
type UpdateDeploymentInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// The replacement identifier for the Deployment resource to change information
2016-03-05 23:12:19 +01:00
// about.
DeploymentId * string ` location:"uri" locationName:"deployment_id" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
2016-03-05 23:12:19 +01:00
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
// The replacement identifier of the RestApi resource for the Deployment resource
// to change information about.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s UpdateDeploymentInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateDeploymentInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateDeploymentInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateDeploymentInput" }
if s . DeploymentId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// A request to change information about the DomainName resource.
type UpdateDomainNameInput struct {
_ struct { } ` type:"structure" `
// The name of the DomainName resource to be changed.
DomainName * string ` location:"uri" locationName:"domain_name" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
2016-03-05 23:12:19 +01:00
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
}
// String returns the string representation
func ( s UpdateDomainNameInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateDomainNameInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateDomainNameInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateDomainNameInput" }
if s . DomainName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DomainName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Represents an update integration request.
type UpdateIntegrationInput struct {
_ struct { } ` type:"structure" `
// Represents an update integration request's HTTP method.
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
2016-03-05 23:12:19 +01:00
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
// Represents an update integration request's resource identifier.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// Represents an update integration request's API identifier.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s UpdateIntegrationInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateIntegrationInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateIntegrationInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateIntegrationInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Represents an update integration response request.
type UpdateIntegrationResponseInput struct {
_ struct { } ` type:"structure" `
// Specifies an update integration response request's HTTP method.
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
2016-03-05 23:12:19 +01:00
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
// Specifies an update integration response request's resource identifier.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// Specifies an update integration response request's API identifier.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// Specifies an update integration response request's status code.
StatusCode * string ` location:"uri" locationName:"status_code" type:"string" required:"true" `
}
// String returns the string representation
func ( s UpdateIntegrationResponseInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateIntegrationResponseInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateIntegrationResponseInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateIntegrationResponseInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StatusCode == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StatusCode" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Request to update an existing Method resource.
type UpdateMethodInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// The HTTP verb of the Method resource.
2016-03-05 23:12:19 +01:00
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
2016-03-05 23:12:19 +01:00
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
// The Resource identifier for the Method resource.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// The RestApi identifier for the Method resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s UpdateMethodInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateMethodInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateMethodInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateMethodInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// A request to update an existing MethodResponse resource.
type UpdateMethodResponseInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// The HTTP verb of the Method resource.
2016-03-05 23:12:19 +01:00
HttpMethod * string ` location:"uri" locationName:"http_method" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
2016-03-05 23:12:19 +01:00
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
// The Resource identifier for the MethodResponse resource.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// The RestApi identifier for the MethodResponse resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// The status code for the MethodResponse resource.
2016-03-05 23:12:19 +01:00
StatusCode * string ` location:"uri" locationName:"status_code" type:"string" required:"true" `
}
// String returns the string representation
func ( s UpdateMethodResponseInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateMethodResponseInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateMethodResponseInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateMethodResponseInput" }
if s . HttpMethod == nil {
invalidParams . Add ( request . NewErrParamRequired ( "HttpMethod" ) )
}
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StatusCode == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StatusCode" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Request to update an existing model in an existing RestApi resource.
type UpdateModelInput struct {
_ struct { } ` type:"structure" `
// The name of the model to update.
ModelName * string ` location:"uri" locationName:"model_name" type:"string" required:"true" `
2016-08-20 11:16:03 +02:00
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
2016-03-05 23:12:19 +01:00
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
// The RestApi identifier under which the model exists.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s UpdateModelInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateModelInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateModelInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateModelInput" }
if s . ModelName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ModelName" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Request to change information about a Resource resource.
type UpdateResourceInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
2016-03-05 23:12:19 +01:00
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
// The identifier of the Resource resource.
ResourceId * string ` location:"uri" locationName:"resource_id" type:"string" required:"true" `
// The RestApi identifier for the Resource resource.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s UpdateResourceInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateResourceInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateResourceInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateResourceInput" }
if s . ResourceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ResourceId" ) )
}
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Request to update an existing RestApi resource in your collection.
type UpdateRestApiInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
2016-03-05 23:12:19 +01:00
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
// The ID of the RestApi you want to update.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
}
// String returns the string representation
func ( s UpdateRestApiInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateRestApiInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateRestApiInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateRestApiInput" }
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-03-05 23:12:19 +01:00
// Requests Amazon API Gateway to change information about a Stage resource.
type UpdateStageInput struct {
_ struct { } ` type:"structure" `
2016-08-20 11:16:03 +02:00
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
2016-03-05 23:12:19 +01:00
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
// The identifier of the RestApi resource for the Stage resource to change information
// about.
RestApiId * string ` location:"uri" locationName:"restapi_id" type:"string" required:"true" `
// The name of the Stage resource to change information about.
StageName * string ` location:"uri" locationName:"stage_name" type:"string" required:"true" `
}
// String returns the string representation
func ( s UpdateStageInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateStageInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateStageInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateStageInput" }
if s . RestApiId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "RestApiId" ) )
}
if s . StageName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "StageName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-08-20 11:16:03 +02:00
// The PATCH request to grant a temporary extension to the reamining quota of
// a usage plan associated with a specified API key.
type UpdateUsageInput struct {
_ struct { } ` type:"structure" `
// The identifier of the API key associated with the usage plan in which a temporary
// extension is granted to the remaining quota.
KeyId * string ` location:"uri" locationName:"keyId" type:"string" required:"true" `
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
// The Id of the usage plan associated with the usage data.
UsagePlanId * string ` location:"uri" locationName:"usageplanId" type:"string" required:"true" `
}
// String returns the string representation
func ( s UpdateUsageInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateUsageInput ) GoString ( ) string {
return s . String ( )
}
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateUsageInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateUsageInput" }
if s . KeyId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "KeyId" ) )
}
if s . UsagePlanId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "UsagePlanId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// The PATCH request to update a usage plan of a given plan Id.
type UpdateUsagePlanInput struct {
_ struct { } ` type:"structure" `
// A list of update operations to be applied to the specified resource and in
// the order specified in this list.
PatchOperations [ ] * PatchOperation ` locationName:"patchOperations" type:"list" `
// The Id of the to-be-updated usage plan.
UsagePlanId * string ` location:"uri" locationName:"usageplanId" type:"string" required:"true" `
}
// String returns the string representation
func ( s UpdateUsagePlanInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateUsagePlanInput ) GoString ( ) string {
return s . String ( )
}
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateUsagePlanInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateUsagePlanInput" }
if s . UsagePlanId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "UsagePlanId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
// Represents the usage data of a usage plan.
//
// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html),
// Manage Usage in a Usage Plan (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-usage-plans-with-console.html#api-gateway-usage-plan-manage-usage)
type Usage struct {
_ struct { } ` type:"structure" `
// The ending date of the usage data.
EndDate * string ` locationName:"endDate" type:"string" `
// The usage data, as daily logs of used and remaining quotas, over the specified
// time interval indexed over the API keys in a usage plan. For example, {...,
// "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key}
// stands for an API key value and the daily log entry is of the format [used
// quota, remaining quota].
Items map [ string ] [ ] [ ] * int64 ` locationName:"values" type:"map" `
Position * string ` locationName:"position" type:"string" `
// The starting date of the usage data.
StartDate * string ` locationName:"startDate" type:"string" `
// The plan Id associated with this usage data.
UsagePlanId * string ` locationName:"usagePlanId" type:"string" `
}
// String returns the string representation
func ( s Usage ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s Usage ) GoString ( ) string {
return s . String ( )
}
// Represents a usage plan than can specify who can assess associated API stages
// with specified request limits and quotas.
//
// In a usage plan, you associate an API by specifying the API's Id and a
// stage name of the specified API. You add plan customers by adding API keys
// to the plan.
//
// Create and Use Usage Plans (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html)
type UsagePlan struct {
_ struct { } ` type:"structure" `
// The associated API stages of a usage plan.
ApiStages [ ] * ApiStage ` locationName:"apiStages" type:"list" `
// The description of a usage plan.
Description * string ` locationName:"description" type:"string" `
// The identifier of a UsagePlan resource.
Id * string ` locationName:"id" type:"string" `
// The name of a usage plan.
Name * string ` locationName:"name" type:"string" `
// The maximum number of permitted requests per a given unit time interval.
Quota * QuotaSettings ` locationName:"quota" type:"structure" `
// The request throttle limits of a usage plan.
Throttle * ThrottleSettings ` locationName:"throttle" type:"structure" `
}
// String returns the string representation
func ( s UsagePlan ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UsagePlan ) GoString ( ) string {
return s . 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 (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html)
type UsagePlanKey struct {
_ struct { } ` type:"structure" `
// The Id of a usage plan key.
Id * string ` locationName:"id" type:"string" `
// The name of a usage plan key.
Name * string ` locationName:"name" type:"string" `
// The type of a usage plan key. Currently, the valid key type is API_KEY.
Type * string ` locationName:"type" type:"string" `
// The value of a usage plan key.
Value * string ` locationName:"value" type:"string" `
}
// String returns the string representation
func ( s UsagePlanKey ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UsagePlanKey ) GoString ( ) string {
return s . String ( )
}
const (
// @enum ApiKeysFormat
ApiKeysFormatCsv = "csv"
)
// The authorizer type. the only current value is TOKEN.
2016-03-06 09:47:30 +01:00
const (
// @enum AuthorizerType
AuthorizerTypeToken = "TOKEN"
2016-07-29 10:11:56 +02:00
// @enum AuthorizerType
AuthorizerTypeCognitoUserPools = "COGNITO_USER_POOLS"
2016-03-06 09:47:30 +01:00
)
2016-03-05 23:12:19 +01:00
// Returns the size of the CacheCluster.
const (
// @enum CacheClusterSize
CacheClusterSize05 = "0.5"
// @enum CacheClusterSize
CacheClusterSize16 = "1.6"
// @enum CacheClusterSize
CacheClusterSize61 = "6.1"
// @enum CacheClusterSize
CacheClusterSize135 = "13.5"
// @enum CacheClusterSize
CacheClusterSize284 = "28.4"
// @enum CacheClusterSize
CacheClusterSize582 = "58.2"
// @enum CacheClusterSize
CacheClusterSize118 = "118"
// @enum CacheClusterSize
CacheClusterSize237 = "237"
)
// Returns the status of the CacheCluster.
const (
// @enum CacheClusterStatus
CacheClusterStatusCreateInProgress = "CREATE_IN_PROGRESS"
// @enum CacheClusterStatus
CacheClusterStatusAvailable = "AVAILABLE"
// @enum CacheClusterStatus
CacheClusterStatusDeleteInProgress = "DELETE_IN_PROGRESS"
// @enum CacheClusterStatus
CacheClusterStatusNotAvailable = "NOT_AVAILABLE"
// @enum CacheClusterStatus
CacheClusterStatusFlushInProgress = "FLUSH_IN_PROGRESS"
)
2016-10-07 12:51:50 +02:00
// The integration type. The valid value is HTTP for integrating with an HTTP
// back end, AWS for any AWS service endpoints, MOCK for testing without actually
// invoking the back end, HTTP_PROXY for integrating with the HTTP proxy integration,
// or AWS_PROXY for integrating with the Lambda proxy integration type.
2016-03-05 23:12:19 +01:00
const (
// @enum IntegrationType
IntegrationTypeHttp = "HTTP"
// @enum IntegrationType
IntegrationTypeAws = "AWS"
// @enum IntegrationType
IntegrationTypeMock = "MOCK"
2016-10-07 12:51:50 +02:00
// @enum IntegrationType
IntegrationTypeHttpProxy = "HTTP_PROXY"
// @enum IntegrationType
IntegrationTypeAwsProxy = "AWS_PROXY"
)
const (
// @enum Op
OpAdd = "add"
// @enum Op
OpRemove = "remove"
// @enum Op
OpReplace = "replace"
// @enum Op
OpMove = "move"
// @enum Op
OpCopy = "copy"
// @enum Op
OpTest = "test"
2016-03-05 23:12:19 +01:00
)
2016-05-05 03:06:27 +02:00
const (
// @enum PutMode
PutModeMerge = "merge"
// @enum PutMode
PutModeOverwrite = "overwrite"
)
2016-08-20 11:16:03 +02:00
const (
// @enum QuotaPeriodType
QuotaPeriodTypeDay = "DAY"
// @enum QuotaPeriodType
QuotaPeriodTypeWeek = "WEEK"
// @enum QuotaPeriodType
QuotaPeriodTypeMonth = "MONTH"
)
2016-03-11 01:27:37 +01:00
const (
// @enum UnauthorizedCacheControlHeaderStrategy
UnauthorizedCacheControlHeaderStrategyFailWith403 = "FAIL_WITH_403"
// @enum UnauthorizedCacheControlHeaderStrategy
UnauthorizedCacheControlHeaderStrategySucceedWithResponseHeader = "SUCCEED_WITH_RESPONSE_HEADER"
// @enum UnauthorizedCacheControlHeaderStrategy
UnauthorizedCacheControlHeaderStrategySucceedWithoutResponseHeader = "SUCCEED_WITHOUT_RESPONSE_HEADER"
)