From 9aa7881a1dbd9817f61d9bfb549c7872cab65dfa Mon Sep 17 00:00:00 2001 From: Russell Cohen Date: Wed, 31 Mar 2021 18:52:37 -0400 Subject: [PATCH] Add Polly, ApiGateway, fix bugs. (#283) * wip * Fixes for Polly & API Gateway * Add ApiGateway and Polly Models * Fix ktLint issues * backport clippy ignores * remap timeout error * Format * Fix error handling on timeout * Ignore another clippy lint --- aws/sdk-codegen/build.gradle.kts | 1 - aws/sdk/build.gradle.kts | 4 +- aws/sdk/models/apigateway.json | 11301 ++++++++++++++++ aws/sdk/models/polly.json | 1940 +++ codegen-test/build.gradle.kts | 3 +- codegen-test/model/rest-json-extras.smithy | 45 +- .../rust/codegen/rustlang/RustWriter.kt | 9 - .../rust/codegen/smithy/CodegenVisitor.kt | 2 +- .../smithy/generators/EnumGenerator.kt | 11 +- .../http/RequestBindingGenerator.kt | 9 +- .../http/ResponseBindingGenerator.kt | 23 +- .../amazon/smithy/rust/codegen/util/Exec.kt | 11 +- 12 files changed, 13326 insertions(+), 33 deletions(-) create mode 100644 aws/sdk/models/apigateway.json create mode 100644 aws/sdk/models/polly.json diff --git a/aws/sdk-codegen/build.gradle.kts b/aws/sdk-codegen/build.gradle.kts index 4ec034e4f2..4c11724ba5 100644 --- a/aws/sdk-codegen/build.gradle.kts +++ b/aws/sdk-codegen/build.gradle.kts @@ -21,7 +21,6 @@ val kotestVersion: String by project dependencies { implementation(project(":codegen")) - implementation("software.amazon.smithy:smithy-aws-protocol-tests:$smithyVersion") implementation("software.amazon.smithy:smithy-protocol-test-traits:$smithyVersion") implementation("software.amazon.smithy:smithy-aws-traits:$smithyVersion") testImplementation("org.junit.jupiter:junit-jupiter:5.6.1") diff --git a/aws/sdk/build.gradle.kts b/aws/sdk/build.gradle.kts index 245f5b8041..f3b8270cd6 100644 --- a/aws/sdk/build.gradle.kts +++ b/aws/sdk/build.gradle.kts @@ -31,7 +31,6 @@ buildscript { dependencies { implementation(project(":aws:sdk-codegen")) - implementation("software.amazon.smithy:smithy-aws-protocol-tests:$smithyVersion") implementation("software.amazon.smithy:smithy-protocol-test-traits:$smithyVersion") implementation("software.amazon.smithy:smithy-aws-traits:$smithyVersion") } @@ -221,8 +220,7 @@ tasks.register("cargoDocs") { tasks.register("cargoClippy") { workingDir(sdkOutputDir) // disallow warnings - environment("RUSTFLAGS", "-D warnings") - commandLine("cargo", "clippy") + commandLine("cargo", "clippy", "--", "-D", "warnings", "-Aclippy::upper_case_acronyms", "-Aclippy::large-enum-variant", "-Aclippy::module-inception") dependsOn("assemble") } diff --git a/aws/sdk/models/apigateway.json b/aws/sdk/models/apigateway.json new file mode 100644 index 0000000000..8fdb8e3619 --- /dev/null +++ b/aws/sdk/models/apigateway.json @@ -0,0 +1,11301 @@ +{ + "smithy": "1.0", + "metadata": { + "suppressions": [ + { + "id": "HttpMethodSemantics", + "namespace": "*" + }, + { + "id": "HttpResponseCodeSemantics", + "namespace": "*" + }, + { + "id": "PaginatedTrait", + "namespace": "*" + }, + { + "id": "HttpHeaderTrait", + "namespace": "*" + }, + { + "id": "HttpUriConflict", + "namespace": "*" + }, + { + "id": "Service", + "namespace": "*" + } + ] + }, + "shapes": { + "com.amazonaws.apigateway#AccessLogSettings": { + "type": "structure", + "members": { + "format": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId.

" + } + }, + "destinationArn": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with amazon-apigateway-.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Access log settings, including the access log format and access log destination ARN.

" + } + }, + "com.amazonaws.apigateway#Account": { + "type": "structure", + "members": { + "cloudwatchRoleArn": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The ARN of an Amazon CloudWatch role for the current Account.

" + } + }, + "throttleSettings": { + "target": "com.amazonaws.apigateway#ThrottleSettings", + "traits": { + "smithy.api#documentation": "

Specifies the API request limits configured for the current Account.

" + } + }, + "features": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A list of features supported for the account. When usage plans are enabled, the features list will include an entry of \"UsagePlans\".

" + } + }, + "apiKeyVersion": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The version of the API keys used for the account.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents an AWS account that is associated with API Gateway.

\n
\n

To view the account info, call GET on this resource.

\n

Error Codes

\n

The following exception may be thrown when the request fails.

\n
    \n
  • UnauthorizedException
  • \n
  • NotFoundException
  • \n
  • TooManyRequestsException
  • \n
\n

For detailed error code information, including the corresponding HTTP Status Codes, see API Gateway Error Codes

\n

Example: Get the information about an account.

\n
Request
\n
GET /account HTTP/1.1\nContent-Type: application/json\nHost: apigateway.us-east-1.amazonaws.com\nX-Amz-Date: 20160531T184618Z\nAuthorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}\n            
\n
Response
\n

The successful response returns a 200 OK status code and a payload similar to the following:

\n
{\n  \"_links\": {\n    \"curies\": {\n      \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/account-apigateway-{rel}.html\",\n      \"name\": \"account\",\n      \"templated\": true\n    },\n    \"self\": {\n      \"href\": \"/account\"\n    },\n    \"account:update\": {\n      \"href\": \"/account\"\n    }\n  },\n  \"cloudwatchRoleArn\": \"arn:aws:iam::123456789012:role/apigAwsProxyRole\",\n  \"throttleSettings\": {\n    \"rateLimit\": 500,\n    \"burstLimit\": 1000\n  }\n}\n            
\n

In addition to making the REST API call directly, you can use the AWS CLI and an AWS SDK to access this resource.

\n
\n " + } + }, + "com.amazonaws.apigateway#ApiKey": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier of the API Key.

" + } + }, + "value": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The value of the API Key.

" + } + }, + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of the API Key.

" + } + }, + "customerId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.

" + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of the API Key.

" + } + }, + "enabled": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether the API Key can be used by callers.

" + } + }, + "createdDate": { + "target": "com.amazonaws.apigateway#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the API Key was created.

" + } + }, + "lastUpdatedDate": { + "target": "com.amazonaws.apigateway#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the API Key was last updated.

" + } + }, + "stageKeys": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A list of Stage resources that are associated with the ApiKey resource.

" + } + }, + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The collection of tags. Each tag element is associated with a given resource.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

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.

\n " + } + }, + "com.amazonaws.apigateway#ApiKeyIds": { + "type": "structure", + "members": { + "ids": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A list of all the ApiKey identifiers.

" + } + }, + "warnings": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A list of warning messages.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The identifier of an ApiKey used in a UsagePlan.

" + } + }, + "com.amazonaws.apigateway#ApiKeySourceType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "HEADER", + "name": "HEADER" + }, + { + "value": "AUTHORIZER", + "name": "AUTHORIZER" + } + ] + } + }, + "com.amazonaws.apigateway#ApiKeys": { + "type": "structure", + "members": { + "warnings": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A list of warning messages logged during the import of API keys when the failOnWarnings option is set to true.

" + } + }, + "items": { + "target": "com.amazonaws.apigateway#ListOfApiKey", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a collection of API keys as represented by an ApiKeys resource.

\n " + } + }, + "com.amazonaws.apigateway#ApiKeysFormat": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "csv", + "name": "csv" + } + ] + } + }, + "com.amazonaws.apigateway#ApiStage": { + "type": "structure", + "members": { + "apiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

API Id of the associated API stage in a usage plan.

" + } + }, + "stage": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

API stage name of the associated API stage in a usage plan.

" + } + }, + "throttle": { + "target": "com.amazonaws.apigateway#MapOfApiStageThrottleSettings", + "traits": { + "smithy.api#documentation": "

Map containing method level throttling information for API stage in a usage plan.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

API stage name of the associated API stage in a usage plan.

" + } + }, + "com.amazonaws.apigateway#Authorizer": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier for the authorizer resource.

" + } + }, + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the authorizer.

" + } + }, + "type": { + "target": "com.amazonaws.apigateway#AuthorizerType", + "traits": { + "smithy.api#documentation": "

The authorizer type. Valid values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, and COGNITO_USER_POOLS for using an Amazon Cognito user pool.

" + } + }, + "providerARNs": { + "target": "com.amazonaws.apigateway#ListOfARNs", + "traits": { + "smithy.api#documentation": "

A list of the Amazon Cognito user pool ARNs for the COGNITO_USER_POOLS authorizer. Each element is of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN or REQUEST authorizer, this is not defined.

" + } + }, + "authType": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Optional customer-defined field, used in OpenAPI imports and exports without functional impact.

" + } + }, + "authorizerUri": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form arn:aws:apigateway:{region}:lambda:path/{service_api}, where {region} is the same as the region hosting the Lambda function, path indicates 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.

" + } + }, + "authorizerCredentials": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.

" + } + }, + "identitySource": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identity source for which authorization is requested.

  • For a TOKEN or COGNITO_USER_POOLS authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is Auth, the header mapping expression is method.request.header.Auth.
  • For the REQUEST authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an Auth header, a Name query string parameter are defined as identity sources, this value is method.request.header.Auth, method.request.querystring.Name. These parameters will be used to derive the authorization caching key and to perform runtime validation of the REQUEST authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.

" + } + }, + "identityValidationExpression": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

A validation expression for the incoming identity token. For TOKEN authorizers, this value is a regular expression. For COGNITO_USER_POOLS authorizers, API Gateway will match the aud field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to the REQUEST authorizer.

" + } + }, + "authorizerResultTtlInSeconds": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is 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.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents an authorization layer for methods. If enabled on a method, API Gateway will activate the authorizer when a client calls the method.

\n " + } + }, + "com.amazonaws.apigateway#AuthorizerType": { + "type": "string", + "traits": { + "smithy.api#documentation": "

The authorizer type. Valid values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, and COGNITO_USER_POOLS for using an Amazon Cognito user pool.

", + "smithy.api#enum": [ + { + "value": "TOKEN", + "name": "TOKEN" + }, + { + "value": "REQUEST", + "name": "REQUEST" + }, + { + "value": "COGNITO_USER_POOLS", + "name": "COGNITO_USER_POOLS" + } + ] + } + }, + "com.amazonaws.apigateway#Authorizers": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfAuthorizer", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a collection of Authorizer resources.

\n " + } + }, + "com.amazonaws.apigateway#BackplaneControlService": { + "type": "service", + "version": "2015-07-09", + "operations": [ + { + "target": "com.amazonaws.apigateway#CreateApiKey" + }, + { + "target": "com.amazonaws.apigateway#CreateAuthorizer" + }, + { + "target": "com.amazonaws.apigateway#CreateBasePathMapping" + }, + { + "target": "com.amazonaws.apigateway#CreateDeployment" + }, + { + "target": "com.amazonaws.apigateway#CreateDocumentationPart" + }, + { + "target": "com.amazonaws.apigateway#CreateDocumentationVersion" + }, + { + "target": "com.amazonaws.apigateway#CreateDomainName" + }, + { + "target": "com.amazonaws.apigateway#CreateModel" + }, + { + "target": "com.amazonaws.apigateway#CreateRequestValidator" + }, + { + "target": "com.amazonaws.apigateway#CreateResource" + }, + { + "target": "com.amazonaws.apigateway#CreateRestApi" + }, + { + "target": "com.amazonaws.apigateway#CreateStage" + }, + { + "target": "com.amazonaws.apigateway#CreateUsagePlan" + }, + { + "target": "com.amazonaws.apigateway#CreateUsagePlanKey" + }, + { + "target": "com.amazonaws.apigateway#CreateVpcLink" + }, + { + "target": "com.amazonaws.apigateway#DeleteApiKey" + }, + { + "target": "com.amazonaws.apigateway#DeleteAuthorizer" + }, + { + "target": "com.amazonaws.apigateway#DeleteBasePathMapping" + }, + { + "target": "com.amazonaws.apigateway#DeleteClientCertificate" + }, + { + "target": "com.amazonaws.apigateway#DeleteDeployment" + }, + { + "target": "com.amazonaws.apigateway#DeleteDocumentationPart" + }, + { + "target": "com.amazonaws.apigateway#DeleteDocumentationVersion" + }, + { + "target": "com.amazonaws.apigateway#DeleteDomainName" + }, + { + "target": "com.amazonaws.apigateway#DeleteGatewayResponse" + }, + { + "target": "com.amazonaws.apigateway#DeleteIntegration" + }, + { + "target": "com.amazonaws.apigateway#DeleteIntegrationResponse" + }, + { + "target": "com.amazonaws.apigateway#DeleteMethod" + }, + { + "target": "com.amazonaws.apigateway#DeleteMethodResponse" + }, + { + "target": "com.amazonaws.apigateway#DeleteModel" + }, + { + "target": "com.amazonaws.apigateway#DeleteRequestValidator" + }, + { + "target": "com.amazonaws.apigateway#DeleteResource" + }, + { + "target": "com.amazonaws.apigateway#DeleteRestApi" + }, + { + "target": "com.amazonaws.apigateway#DeleteStage" + }, + { + "target": "com.amazonaws.apigateway#DeleteUsagePlan" + }, + { + "target": "com.amazonaws.apigateway#DeleteUsagePlanKey" + }, + { + "target": "com.amazonaws.apigateway#DeleteVpcLink" + }, + { + "target": "com.amazonaws.apigateway#FlushStageAuthorizersCache" + }, + { + "target": "com.amazonaws.apigateway#FlushStageCache" + }, + { + "target": "com.amazonaws.apigateway#GenerateClientCertificate" + }, + { + "target": "com.amazonaws.apigateway#GetAccount" + }, + { + "target": "com.amazonaws.apigateway#GetApiKey" + }, + { + "target": "com.amazonaws.apigateway#GetApiKeys" + }, + { + "target": "com.amazonaws.apigateway#GetAuthorizer" + }, + { + "target": "com.amazonaws.apigateway#GetAuthorizers" + }, + { + "target": "com.amazonaws.apigateway#GetBasePathMapping" + }, + { + "target": "com.amazonaws.apigateway#GetBasePathMappings" + }, + { + "target": "com.amazonaws.apigateway#GetClientCertificate" + }, + { + "target": "com.amazonaws.apigateway#GetClientCertificates" + }, + { + "target": "com.amazonaws.apigateway#GetDeployment" + }, + { + "target": "com.amazonaws.apigateway#GetDeployments" + }, + { + "target": "com.amazonaws.apigateway#GetDocumentationPart" + }, + { + "target": "com.amazonaws.apigateway#GetDocumentationParts" + }, + { + "target": "com.amazonaws.apigateway#GetDocumentationVersion" + }, + { + "target": "com.amazonaws.apigateway#GetDocumentationVersions" + }, + { + "target": "com.amazonaws.apigateway#GetDomainName" + }, + { + "target": "com.amazonaws.apigateway#GetDomainNames" + }, + { + "target": "com.amazonaws.apigateway#GetExport" + }, + { + "target": "com.amazonaws.apigateway#GetGatewayResponse" + }, + { + "target": "com.amazonaws.apigateway#GetGatewayResponses" + }, + { + "target": "com.amazonaws.apigateway#GetIntegration" + }, + { + "target": "com.amazonaws.apigateway#GetIntegrationResponse" + }, + { + "target": "com.amazonaws.apigateway#GetMethod" + }, + { + "target": "com.amazonaws.apigateway#GetMethodResponse" + }, + { + "target": "com.amazonaws.apigateway#GetModel" + }, + { + "target": "com.amazonaws.apigateway#GetModels" + }, + { + "target": "com.amazonaws.apigateway#GetModelTemplate" + }, + { + "target": "com.amazonaws.apigateway#GetRequestValidator" + }, + { + "target": "com.amazonaws.apigateway#GetRequestValidators" + }, + { + "target": "com.amazonaws.apigateway#GetResource" + }, + { + "target": "com.amazonaws.apigateway#GetResources" + }, + { + "target": "com.amazonaws.apigateway#GetRestApi" + }, + { + "target": "com.amazonaws.apigateway#GetRestApis" + }, + { + "target": "com.amazonaws.apigateway#GetSdk" + }, + { + "target": "com.amazonaws.apigateway#GetSdkType" + }, + { + "target": "com.amazonaws.apigateway#GetSdkTypes" + }, + { + "target": "com.amazonaws.apigateway#GetStage" + }, + { + "target": "com.amazonaws.apigateway#GetStages" + }, + { + "target": "com.amazonaws.apigateway#GetTags" + }, + { + "target": "com.amazonaws.apigateway#GetUsage" + }, + { + "target": "com.amazonaws.apigateway#GetUsagePlan" + }, + { + "target": "com.amazonaws.apigateway#GetUsagePlanKey" + }, + { + "target": "com.amazonaws.apigateway#GetUsagePlanKeys" + }, + { + "target": "com.amazonaws.apigateway#GetUsagePlans" + }, + { + "target": "com.amazonaws.apigateway#GetVpcLink" + }, + { + "target": "com.amazonaws.apigateway#GetVpcLinks" + }, + { + "target": "com.amazonaws.apigateway#ImportApiKeys" + }, + { + "target": "com.amazonaws.apigateway#ImportDocumentationParts" + }, + { + "target": "com.amazonaws.apigateway#ImportRestApi" + }, + { + "target": "com.amazonaws.apigateway#PutGatewayResponse" + }, + { + "target": "com.amazonaws.apigateway#PutIntegration" + }, + { + "target": "com.amazonaws.apigateway#PutIntegrationResponse" + }, + { + "target": "com.amazonaws.apigateway#PutMethod" + }, + { + "target": "com.amazonaws.apigateway#PutMethodResponse" + }, + { + "target": "com.amazonaws.apigateway#PutRestApi" + }, + { + "target": "com.amazonaws.apigateway#TagResource" + }, + { + "target": "com.amazonaws.apigateway#TestInvokeAuthorizer" + }, + { + "target": "com.amazonaws.apigateway#TestInvokeMethod" + }, + { + "target": "com.amazonaws.apigateway#UntagResource" + }, + { + "target": "com.amazonaws.apigateway#UpdateAccount" + }, + { + "target": "com.amazonaws.apigateway#UpdateApiKey" + }, + { + "target": "com.amazonaws.apigateway#UpdateAuthorizer" + }, + { + "target": "com.amazonaws.apigateway#UpdateBasePathMapping" + }, + { + "target": "com.amazonaws.apigateway#UpdateClientCertificate" + }, + { + "target": "com.amazonaws.apigateway#UpdateDeployment" + }, + { + "target": "com.amazonaws.apigateway#UpdateDocumentationPart" + }, + { + "target": "com.amazonaws.apigateway#UpdateDocumentationVersion" + }, + { + "target": "com.amazonaws.apigateway#UpdateDomainName" + }, + { + "target": "com.amazonaws.apigateway#UpdateGatewayResponse" + }, + { + "target": "com.amazonaws.apigateway#UpdateIntegration" + }, + { + "target": "com.amazonaws.apigateway#UpdateIntegrationResponse" + }, + { + "target": "com.amazonaws.apigateway#UpdateMethod" + }, + { + "target": "com.amazonaws.apigateway#UpdateMethodResponse" + }, + { + "target": "com.amazonaws.apigateway#UpdateModel" + }, + { + "target": "com.amazonaws.apigateway#UpdateRequestValidator" + }, + { + "target": "com.amazonaws.apigateway#UpdateResource" + }, + { + "target": "com.amazonaws.apigateway#UpdateRestApi" + }, + { + "target": "com.amazonaws.apigateway#UpdateStage" + }, + { + "target": "com.amazonaws.apigateway#UpdateUsage" + }, + { + "target": "com.amazonaws.apigateway#UpdateUsagePlan" + }, + { + "target": "com.amazonaws.apigateway#UpdateVpcLink" + } + ], + "traits": { + "aws.api#service": { + "sdkId": "API Gateway", + "arnNamespace": "apigateway", + "cloudFormationName": "ApiGateway", + "cloudTrailEventSource": "apigateway.amazonaws.com", + "endpointPrefix": "apigateway" + }, + "aws.auth#sigv4": { + "name": "apigateway" + }, + "aws.protocols#restJson1": {}, + "smithy.api#documentation": "Amazon API Gateway\n

Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.

", + "smithy.api#title": "Amazon API Gateway" + } + }, + "com.amazonaws.apigateway#BadRequestException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.apigateway#String" + } + }, + "traits": { + "smithy.api#documentation": "

The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.apigateway#BasePathMapping": { + "type": "structure", + "members": { + "basePath": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The base path name that callers of the API must provide as part of the URL after the domain name.

" + } + }, + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The string identifier of the associated RestApi.

" + } + }, + "stage": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of the associated stage.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents the base path that callers of the API must provide as part of the URL after the domain name.

\n
A custom domain name plus a BasePathMapping specification identifies a deployed RestApi in a given stage of the owner Account.
\n " + } + }, + "com.amazonaws.apigateway#BasePathMappings": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfBasePathMapping", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a collection of BasePathMapping resources.

\n " + } + }, + "com.amazonaws.apigateway#Blob": { + "type": "blob" + }, + "com.amazonaws.apigateway#Boolean": { + "type": "boolean" + }, + "com.amazonaws.apigateway#CacheClusterSize": { + "type": "string", + "traits": { + "smithy.api#documentation": "

Returns the size of the CacheCluster.

", + "smithy.api#enum": [ + { + "value": "0.5", + "name": "SIZE_0_POINT_5_GB" + }, + { + "value": "1.6", + "name": "SIZE_1_POINT_6_GB" + }, + { + "value": "6.1", + "name": "SIZE_6_POINT_1_GB" + }, + { + "value": "13.5", + "name": "SIZE_13_POINT_5_GB" + }, + { + "value": "28.4", + "name": "SIZE_28_POINT_4_GB" + }, + { + "value": "58.2", + "name": "SIZE_58_POINT_2_GB" + }, + { + "value": "118", + "name": "SIZE_118_GB" + }, + { + "value": "237", + "name": "SIZE_237_GB" + } + ] + } + }, + "com.amazonaws.apigateway#CacheClusterStatus": { + "type": "string", + "traits": { + "smithy.api#documentation": "

Returns the status of the CacheCluster.

", + "smithy.api#enum": [ + { + "value": "CREATE_IN_PROGRESS", + "name": "CREATE_IN_PROGRESS" + }, + { + "value": "AVAILABLE", + "name": "AVAILABLE" + }, + { + "value": "DELETE_IN_PROGRESS", + "name": "DELETE_IN_PROGRESS" + }, + { + "value": "NOT_AVAILABLE", + "name": "NOT_AVAILABLE" + }, + { + "value": "FLUSH_IN_PROGRESS", + "name": "FLUSH_IN_PROGRESS" + } + ] + } + }, + "com.amazonaws.apigateway#CanarySettings": { + "type": "structure", + "members": { + "percentTraffic": { + "target": "com.amazonaws.apigateway#Double", + "traits": { + "smithy.api#documentation": "

The percent (0-100) of traffic diverted to a canary deployment.

" + } + }, + "deploymentId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The ID of the canary deployment.

" + } + }, + "stageVariableOverrides": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.

" + } + }, + "useStageCache": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

A Boolean flag to indicate whether the canary deployment uses the stage cache or not.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Configuration settings of a canary deployment.

" + } + }, + "com.amazonaws.apigateway#ClientCertificate": { + "type": "structure", + "members": { + "clientCertificateId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier of the client certificate.

" + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of the client certificate.

" + } + }, + "pemEncodedCertificate": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .

" + } + }, + "createdDate": { + "target": "com.amazonaws.apigateway#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the client certificate was created.

" + } + }, + "expirationDate": { + "target": "com.amazonaws.apigateway#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the client certificate will expire.

" + } + }, + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The collection of tags. Each tag element is associated with a given resource.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.

\n
Client certificates are used to authenticate an API by the backend server. To authenticate an API client (or user), use IAM roles and policies, a custom Authorizer or an Amazon Cognito user pool.
\n " + } + }, + "com.amazonaws.apigateway#ClientCertificates": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfClientCertificate", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a collection of ClientCertificate resources.

\n " + } + }, + "com.amazonaws.apigateway#ConflictException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.apigateway#String" + } + }, + "traits": { + "smithy.api#documentation": "

The request configuration has conflicts. For details, see the accompanying error message.

", + "smithy.api#error": "client", + "smithy.api#httpError": 409 + } + }, + "com.amazonaws.apigateway#ConnectionType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "INTERNET", + "name": "INTERNET" + }, + { + "value": "VPC_LINK", + "name": "VPC_LINK" + } + ] + } + }, + "com.amazonaws.apigateway#ContentHandlingStrategy": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "CONVERT_TO_BINARY", + "name": "CONVERT_TO_BINARY" + }, + { + "value": "CONVERT_TO_TEXT", + "name": "CONVERT_TO_TEXT" + } + ] + } + }, + "com.amazonaws.apigateway#CreateApiKey": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#CreateApiKeyRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#ApiKey" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Create an ApiKey resource.

\n ", + "smithy.api#http": { + "method": "POST", + "uri": "/apikeys", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#CreateApiKeyRequest": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of the ApiKey.

" + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of the ApiKey.

" + } + }, + "enabled": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether the ApiKey can be used by callers.

" + } + }, + "generateDistinctId": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether (true) or not (false) the key identifier is distinct from the created API key value. This parameter is deprecated and should not be used.

" + } + }, + "value": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies a value of the API key.

" + } + }, + "stageKeys": { + "target": "com.amazonaws.apigateway#ListOfStageKeys", + "traits": { + "smithy.api#documentation": "

DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.

" + } + }, + "customerId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.

" + } + }, + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to create an ApiKey resource.

" + } + }, + "com.amazonaws.apigateway#CreateAuthorizer": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#CreateAuthorizerRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Authorizer" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Adds a new Authorizer resource to an existing RestApi resource.

\n ", + "smithy.api#http": { + "method": "POST", + "uri": "/restapis/{restApiId}/authorizers", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#CreateAuthorizerRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the authorizer.

", + "smithy.api#required": {} + } + }, + "type": { + "target": "com.amazonaws.apigateway#AuthorizerType", + "traits": { + "smithy.api#documentation": "

[Required] The authorizer type. Valid values are TOKEN for a Lambda function using a single authorization token submitted in a custom header, REQUEST for a Lambda function using incoming request parameters, and COGNITO_USER_POOLS for using an Amazon Cognito user pool.

", + "smithy.api#required": {} + } + }, + "providerARNs": { + "target": "com.amazonaws.apigateway#ListOfARNs", + "traits": { + "smithy.api#documentation": "

A list of the Amazon Cognito user pool ARNs for the COGNITO_USER_POOLS authorizer. Each element is of this format: arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}. For a TOKEN or REQUEST authorizer, this is not defined.

" + } + }, + "authType": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Optional customer-defined field, used in OpenAPI imports and exports without functional impact.

" + } + }, + "authorizerUri": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form arn:aws:apigateway:{region}:lambda:path/{service_api}, where {region} is the same as the region hosting the Lambda function, path indicates 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.

" + } + }, + "authorizerCredentials": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.

" + } + }, + "identitySource": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identity source for which authorization is requested.

  • For a TOKEN or COGNITO_USER_POOLS authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is Auth, the header mapping expression is method.request.header.Auth.
  • For the REQUEST authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an Auth header, a Name query string parameter are defined as identity sources, this value is method.request.header.Auth, method.request.querystring.Name. These parameters will be used to derive the authorization caching key and to perform runtime validation of the REQUEST authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.

" + } + }, + "identityValidationExpression": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

A validation expression for the incoming identity token. For TOKEN authorizers, this value is a regular expression. For COGNITO_USER_POOLS authorizers, API Gateway will match the aud field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to the REQUEST authorizer.

" + } + }, + "authorizerResultTtlInSeconds": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is 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.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to add a new Authorizer to an existing RestApi resource.

" + } + }, + "com.amazonaws.apigateway#CreateBasePathMapping": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#CreateBasePathMappingRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#BasePathMapping" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a new BasePathMapping resource.

", + "smithy.api#http": { + "method": "POST", + "uri": "/domainnames/{domainName}/basepathmappings", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#CreateBasePathMappingRequest": { + "type": "structure", + "members": { + "domainName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The domain name of the BasePathMapping resource to create.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "basePath": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

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. Specify '(none)' if you do not want callers to specify a base path name after the domain name.

" + } + }, + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#required": {} + } + }, + "stage": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of the API's stage that you want to use for this mapping. Specify '(none)' if you want callers to explicitly specify the stage name after any base path name.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Requests API Gateway to create a new BasePathMapping resource.

" + } + }, + "com.amazonaws.apigateway#CreateDeployment": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#CreateDeploymentRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Deployment" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a Deployment resource, which makes a specified RestApi callable over the internet.

", + "smithy.api#http": { + "method": "POST", + "uri": "/restapis/{restApiId}/deployments", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#CreateDeploymentRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "stageName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of the Stage resource for the Deployment resource to create.

" + } + }, + "stageDescription": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of the Stage resource for the Deployment resource to create.

" + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description for the Deployment resource to create.

" + } + }, + "cacheClusterEnabled": { + "target": "com.amazonaws.apigateway#NullableBoolean", + "traits": { + "smithy.api#documentation": "

Enables a cache cluster for the Stage resource specified in the input.

" + } + }, + "cacheClusterSize": { + "target": "com.amazonaws.apigateway#CacheClusterSize", + "traits": { + "smithy.api#documentation": "

Specifies the cache cluster size for the Stage resource specified in the input, if a cache cluster is enabled.

" + } + }, + "variables": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

A map that defines the stage variables for the Stage resource that is associated\n with the new deployment. Variable names can have alphanumeric and underscore characters, and the values\n must match [A-Za-z0-9-._~:/?#&=,]+.

" + } + }, + "canarySettings": { + "target": "com.amazonaws.apigateway#DeploymentCanarySettings", + "traits": { + "smithy.api#documentation": "

The input configuration for the canary deployment when the deployment is a canary release deployment.

" + } + }, + "tracingEnabled": { + "target": "com.amazonaws.apigateway#NullableBoolean", + "traits": { + "smithy.api#documentation": "

Specifies whether active tracing with X-ray is enabled for the Stage.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Requests API Gateway to create a Deployment resource.

" + } + }, + "com.amazonaws.apigateway#CreateDocumentationPart": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#CreateDocumentationPartRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#DocumentationPart" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#http": { + "method": "POST", + "uri": "/restapis/{restApiId}/documentation/parts", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#CreateDocumentationPartRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "location": { + "target": "com.amazonaws.apigateway#DocumentationPartLocation", + "traits": { + "smithy.api#documentation": "

[Required] The location of the targeted API entity of the to-be-created documentation part.

", + "smithy.api#required": {} + } + }, + "properties": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The new documentation content map of the targeted API entity. Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Creates a new documentation part of a given API.

" + } + }, + "com.amazonaws.apigateway#CreateDocumentationVersion": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#CreateDocumentationVersionRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#DocumentationVersion" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#http": { + "method": "POST", + "uri": "/restapis/{restApiId}/documentation/versions", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#CreateDocumentationVersionRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "documentationVersion": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The version identifier of the new snapshot.

", + "smithy.api#required": {} + } + }, + "stageName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The stage name to be associated with the new documentation snapshot.

" + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

A description about the new documentation snapshot.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Creates a new documentation version of a given API.

" + } + }, + "com.amazonaws.apigateway#CreateDomainName": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#CreateDomainNameRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#DomainName" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a new domain name.

", + "smithy.api#http": { + "method": "POST", + "uri": "/domainnames", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#CreateDomainNameRequest": { + "type": "structure", + "members": { + "domainName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the DomainName resource.

", + "smithy.api#required": {} + } + }, + "certificateName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain name.

" + } + }, + "certificateBody": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this domain name provided by your certificate authority.

" + } + }, + "certificatePrivateKey": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Deprecated] Your edge-optimized endpoint's domain name certificate's private key.

" + } + }, + "certificateChain": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Deprecated] The intermediate certificates and optionally the root certificate, one after the other without any blank lines, used by an edge-optimized endpoint for this domain name. 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.

" + } + }, + "certificateArn": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.

" + } + }, + "regionalCertificateName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The user-friendly name of the certificate that will be used by regional endpoint for this domain name.

" + } + }, + "regionalCertificateArn": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The reference to an AWS-managed certificate that will be used by regional endpoint for this domain name. AWS Certificate Manager is the only supported source.

" + } + }, + "endpointConfiguration": { + "target": "com.amazonaws.apigateway#EndpointConfiguration", + "traits": { + "smithy.api#documentation": "

The endpoint configuration of this DomainName showing the endpoint types of the domain name.

" + } + }, + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

" + } + }, + "securityPolicy": { + "target": "com.amazonaws.apigateway#SecurityPolicy", + "traits": { + "smithy.api#documentation": "

The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0 and TLS_1_2.

" + } + }, + "mutualTlsAuthentication": { + "target": "com.amazonaws.apigateway#MutualTlsAuthenticationInput" + } + }, + "traits": { + "smithy.api#documentation": "

A request to create a new domain name.

" + } + }, + "com.amazonaws.apigateway#CreateModel": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#CreateModelRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Model" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Adds a new Model resource to an existing RestApi resource.

", + "smithy.api#http": { + "method": "POST", + "uri": "/restapis/{restApiId}/models", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#CreateModelRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The RestApi identifier under which the Model will be created.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the model. Must be alphanumeric.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of the model.

" + } + }, + "schema": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The schema for the model. For application/json models, this should be JSON schema draft 4 model.

" + } + }, + "contentType": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The content-type for the model.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to add a new Model to an existing RestApi resource.

" + } + }, + "com.amazonaws.apigateway#CreateRequestValidator": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#CreateRequestValidatorRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#RequestValidator" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a ReqeustValidator of a given RestApi.

", + "smithy.api#http": { + "method": "POST", + "uri": "/restapis/{restApiId}/requestvalidators", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#CreateRequestValidatorRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of the to-be-created RequestValidator.

" + } + }, + "validateRequestBody": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

A Boolean flag to indicate whether to validate request body according to the configured model schema for the method (true) or not (false).

" + } + }, + "validateRequestParameters": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

A Boolean flag to indicate whether to validate request parameters, true, or not false.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Creates a RequestValidator of a given RestApi.

" + } + }, + "com.amazonaws.apigateway#CreateResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#CreateResourceRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Resource" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a Resource resource.

", + "smithy.api#http": { + "method": "POST", + "uri": "/restapis/{restApiId}/resources/{parentId}", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#CreateResourceRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "parentId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The parent resource's identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "pathPart": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The last path segment for this resource.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Requests API Gateway to create a Resource resource.

" + } + }, + "com.amazonaws.apigateway#CreateRestApi": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#CreateRestApiRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#RestApi" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a new RestApi resource.

", + "smithy.api#http": { + "method": "POST", + "uri": "/restapis", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#CreateRestApiRequest": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the RestApi.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of the RestApi.

" + } + }, + "version": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

A version identifier for the API.

" + } + }, + "cloneFrom": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The ID of the RestApi that you want to clone from.

" + } + }, + "binaryMediaTypes": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

" + } + }, + "minimumCompressionSize": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.

" + } + }, + "apiKeySource": { + "target": "com.amazonaws.apigateway#ApiKeySourceType", + "traits": { + "smithy.api#documentation": "

The source of the API key for metering requests according to a usage plan. Valid values are:

  • HEADER to read the API key from the X-API-Key header of a request.
  • AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.

" + } + }, + "endpointConfiguration": { + "target": "com.amazonaws.apigateway#EndpointConfiguration", + "traits": { + "smithy.api#documentation": "

The endpoint configuration of this RestApi showing the endpoint types of the API.

" + } + }, + "policy": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration." + } + }, + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

" + } + }, + "disableExecuteApiEndpoint": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The POST Request to add a new RestApi resource to your collection.

" + } + }, + "com.amazonaws.apigateway#CreateStage": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#CreateStageRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Stage" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a new Stage resource that references a pre-existing Deployment for the API.

\n ", + "smithy.api#http": { + "method": "POST", + "uri": "/restapis/{restApiId}/stages", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#CreateStageRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "stageName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name for the Stage resource. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.

", + "smithy.api#required": {} + } + }, + "deploymentId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the Deployment resource for the Stage resource.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of the Stage resource.

" + } + }, + "cacheClusterEnabled": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

Whether cache clustering is enabled for the stage.

" + } + }, + "cacheClusterSize": { + "target": "com.amazonaws.apigateway#CacheClusterSize", + "traits": { + "smithy.api#documentation": "

The stage's cache cluster size.

" + } + }, + "variables": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

A map that defines the stage variables for the new Stage resource. Variable names\n can have alphanumeric and underscore characters, and the values must match\n [A-Za-z0-9-._~:/?#&=,]+.

" + } + }, + "documentationVersion": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The version of the associated API documentation.

" + } + }, + "canarySettings": { + "target": "com.amazonaws.apigateway#CanarySettings", + "traits": { + "smithy.api#documentation": "

The canary deployment settings of this stage.

" + } + }, + "tracingEnabled": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether active tracing with X-ray is enabled for the Stage.

" + } + }, + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Requests API Gateway to create a Stage resource.

" + } + }, + "com.amazonaws.apigateway#CreateUsagePlan": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#CreateUsagePlanRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#UsagePlan" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a usage plan with the throttle and quota limits, as well as the associated API stages, specified in the payload.

", + "smithy.api#http": { + "method": "POST", + "uri": "/usageplans", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#CreateUsagePlanKey": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#CreateUsagePlanKeyRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#UsagePlanKey" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a usage plan key for adding an existing API key to a usage plan.

", + "smithy.api#http": { + "method": "POST", + "uri": "/usageplans/{usagePlanId}/keys", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#CreateUsagePlanKeyRequest": { + "type": "structure", + "members": { + "usagePlanId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Id of the UsagePlan resource representing the usage plan containing the to-be-created UsagePlanKey resource representing a plan customer.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "keyId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of a UsagePlanKey resource for a plan customer.

", + "smithy.api#required": {} + } + }, + "keyType": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The type of a UsagePlanKey resource for a plan customer.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The POST request to create a usage plan key for adding an existing API key to a usage plan.

" + } + }, + "com.amazonaws.apigateway#CreateUsagePlanRequest": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the usage plan.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of the usage plan.

" + } + }, + "apiStages": { + "target": "com.amazonaws.apigateway#ListOfApiStage", + "traits": { + "smithy.api#documentation": "

The associated API stages of the usage plan.

" + } + }, + "throttle": { + "target": "com.amazonaws.apigateway#ThrottleSettings", + "traits": { + "smithy.api#documentation": "

The throttling limits of the usage plan.

" + } + }, + "quota": { + "target": "com.amazonaws.apigateway#QuotaSettings", + "traits": { + "smithy.api#documentation": "

The quota of the usage plan.

" + } + }, + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

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.

" + } + }, + "com.amazonaws.apigateway#CreateVpcLink": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#CreateVpcLinkRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#VpcLink" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.

", + "smithy.api#http": { + "method": "POST", + "uri": "/vpclinks", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#CreateVpcLinkRequest": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name used to label and identify the VPC link.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of the VPC link.

" + } + }, + "targetArns": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

[Required] The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same AWS account of the API owner.

", + "smithy.api#required": {} + } + }, + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Creates a VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.

" + } + }, + "com.amazonaws.apigateway#DeleteApiKey": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteApiKeyRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the ApiKey resource.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/apikeys/{apiKey}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteApiKeyRequest": { + "type": "structure", + "members": { + "apiKey": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the ApiKey resource to be deleted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to delete the ApiKey resource.

" + } + }, + "com.amazonaws.apigateway#DeleteAuthorizer": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteAuthorizerRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes an existing Authorizer resource.

\n ", + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}/authorizers/{authorizerId}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteAuthorizerRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "authorizerId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the Authorizer resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to delete an existing Authorizer resource.

" + } + }, + "com.amazonaws.apigateway#DeleteBasePathMapping": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteBasePathMappingRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the BasePathMapping resource.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/domainnames/{domainName}/basepathmappings/{basePath}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteBasePathMappingRequest": { + "type": "structure", + "members": { + "domainName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The domain name of the BasePathMapping resource to delete.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "basePath": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The base path name of the BasePathMapping resource to delete.

\n

To specify an empty base path, set this parameter to '(none)'.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to delete the BasePathMapping resource.

" + } + }, + "com.amazonaws.apigateway#DeleteClientCertificate": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteClientCertificateRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the ClientCertificate resource.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/clientcertificates/{clientCertificateId}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteClientCertificateRequest": { + "type": "structure", + "members": { + "clientCertificateId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the ClientCertificate resource to be deleted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to delete the ClientCertificate resource.

" + } + }, + "com.amazonaws.apigateway#DeleteDeployment": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteDeploymentRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage resources associated with it.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}/deployments/{deploymentId}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteDeploymentRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "deploymentId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the Deployment resource to delete.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Requests API Gateway to delete a Deployment resource.

" + } + }, + "com.amazonaws.apigateway#DeleteDocumentationPart": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteDocumentationPartRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}/documentation/parts/{documentationPartId}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteDocumentationPartRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "documentationPartId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the to-be-deleted documentation part.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Deletes an existing documentation part of an API.

" + } + }, + "com.amazonaws.apigateway#DeleteDocumentationVersion": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteDocumentationVersionRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}/documentation/versions/{documentationVersion}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteDocumentationVersionRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "documentationVersion": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The version identifier of a to-be-deleted documentation snapshot.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Deletes an existing documentation version of an API.

" + } + }, + "com.amazonaws.apigateway#DeleteDomainName": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteDomainNameRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the DomainName resource.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/domainnames/{domainName}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteDomainNameRequest": { + "type": "structure", + "members": { + "domainName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the DomainName resource to be deleted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to delete the DomainName resource.

" + } + }, + "com.amazonaws.apigateway#DeleteGatewayResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteGatewayResponseRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Clears any customization of a GatewayResponse of a specified response type on the given RestApi and resets it with the default settings.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}/gatewayresponses/{responseType}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteGatewayResponseRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "responseType": { + "target": "com.amazonaws.apigateway#GatewayResponseType", + "traits": { + "smithy.api#documentation": "

[Required]

The response type of the associated GatewayResponse. Valid values are

  • ACCESS_DENIED
  • API_CONFIGURATION_ERROR
  • AUTHORIZER_FAILURE
  • AUTHORIZER_CONFIGURATION_ERROR
  • BAD_REQUEST_PARAMETERS
  • BAD_REQUEST_BODY
  • DEFAULT_4XX
  • DEFAULT_5XX
  • EXPIRED_TOKEN
  • INVALID_SIGNATURE
  • INTEGRATION_FAILURE
  • INTEGRATION_TIMEOUT
  • INVALID_API_KEY
  • MISSING_AUTHENTICATION_TOKEN
  • QUOTA_EXCEEDED
  • REQUEST_TOO_LARGE
  • RESOURCE_NOT_FOUND
  • THROTTLED
  • UNAUTHORIZED
  • UNSUPPORTED_MEDIA_TYPE

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Clears any customization of a GatewayResponse of a specified response type on the given RestApi and resets it with the default settings.

" + } + }, + "com.amazonaws.apigateway#DeleteIntegration": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteIntegrationRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Represents a delete integration.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration", + "code": 204 + } + } + }, + "com.amazonaws.apigateway#DeleteIntegrationRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a delete integration request's resource identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a delete integration request's HTTP method.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a delete integration request.

" + } + }, + "com.amazonaws.apigateway#DeleteIntegrationResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteIntegrationResponseRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Represents a delete integration response.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}", + "code": 204 + } + } + }, + "com.amazonaws.apigateway#DeleteIntegrationResponseRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a delete integration response request's resource identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a delete integration response request's HTTP method.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "statusCode": { + "target": "com.amazonaws.apigateway#StatusCode", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a delete integration response request's status code.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a delete integration response request.

" + } + }, + "com.amazonaws.apigateway#DeleteMethod": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteMethodRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes an existing Method resource.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}", + "code": 204 + } + } + }, + "com.amazonaws.apigateway#DeleteMethodRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Resource identifier for the Method resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The HTTP verb of the Method resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to delete an existing Method resource.

" + } + }, + "com.amazonaws.apigateway#DeleteMethodResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteMethodResponseRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes an existing MethodResponse resource.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}", + "code": 204 + } + } + }, + "com.amazonaws.apigateway#DeleteMethodResponseRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Resource identifier for the MethodResponse resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The HTTP verb of the Method resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "statusCode": { + "target": "com.amazonaws.apigateway#StatusCode", + "traits": { + "smithy.api#documentation": "

[Required] The status code identifier for the MethodResponse resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to delete an existing MethodResponse resource.

" + } + }, + "com.amazonaws.apigateway#DeleteModel": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteModelRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a model.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}/models/{modelName}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteModelRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "modelName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the model to delete.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to delete an existing model in an existing RestApi resource.

" + } + }, + "com.amazonaws.apigateway#DeleteRequestValidator": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteRequestValidatorRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a RequestValidator of a given RestApi.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}/requestvalidators/{requestValidatorId}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteRequestValidatorRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "requestValidatorId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the RequestValidator to be deleted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Deletes a specified RequestValidator of a given RestApi.

" + } + }, + "com.amazonaws.apigateway#DeleteResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteResourceRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a Resource resource.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}/resources/{resourceId}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteResourceRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the Resource resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to delete a Resource.

" + } + }, + "com.amazonaws.apigateway#DeleteRestApi": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteRestApiRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the specified API.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteRestApiRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to delete the specified API from your collection.

" + } + }, + "com.amazonaws.apigateway#DeleteStage": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteStageRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a Stage resource.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}/stages/{stageName}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteStageRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "stageName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the Stage resource to delete.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Requests API Gateway to delete a Stage resource.

" + } + }, + "com.amazonaws.apigateway#DeleteUsagePlan": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteUsagePlanRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a usage plan of a given plan Id.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/usageplans/{usagePlanId}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteUsagePlanKey": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteUsagePlanKeyRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a usage plan key and remove the underlying API key from the associated usage plan.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/usageplans/{usagePlanId}/keys/{keyId}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteUsagePlanKeyRequest": { + "type": "structure", + "members": { + "usagePlanId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Id of the UsagePlan resource representing the usage plan containing the to-be-deleted UsagePlanKey resource representing a plan customer.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "keyId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Id of the UsagePlanKey resource to be deleted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The DELETE request to delete a usage plan key and remove the underlying API key from the associated usage plan.

" + } + }, + "com.amazonaws.apigateway#DeleteUsagePlanRequest": { + "type": "structure", + "members": { + "usagePlanId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Id of the to-be-deleted usage plan.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The DELETE request to delete a usage plan of a given plan Id.

" + } + }, + "com.amazonaws.apigateway#DeleteVpcLink": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#DeleteVpcLinkRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes an existing VpcLink of a specified identifier.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/vpclinks/{vpcLinkId}", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#DeleteVpcLinkRequest": { + "type": "structure", + "members": { + "vpcLinkId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Deletes an existing VpcLink of a specified identifier.

" + } + }, + "com.amazonaws.apigateway#Deployment": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier for the deployment resource.

" + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description for the deployment resource.

" + } + }, + "createdDate": { + "target": "com.amazonaws.apigateway#Timestamp", + "traits": { + "smithy.api#documentation": "

The date and time that the deployment resource was created.

" + } + }, + "apiSummary": { + "target": "com.amazonaws.apigateway#PathToMapOfMethodSnapshot", + "traits": { + "smithy.api#documentation": "

A summary of the RestApi at the date and time that the deployment resource was created.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

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.

\n
To create a deployment, call POST on the Deployments resource of a RestApi.\n To view, update, or delete a deployment, call GET, PATCH, or DELETE on the specified deployment resource (/restapis/{restapi_id}/deployments/{deployment_id}).
\n " + } + }, + "com.amazonaws.apigateway#DeploymentCanarySettings": { + "type": "structure", + "members": { + "percentTraffic": { + "target": "com.amazonaws.apigateway#Double", + "traits": { + "smithy.api#documentation": "

The percentage (0.0-100.0) of traffic routed to the canary deployment.

" + } + }, + "stageVariableOverrides": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

A stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.

" + } + }, + "useStageCache": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

A Boolean flag to indicate whether the canary release deployment uses the stage cache or not.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The input configuration for a canary deployment.

" + } + }, + "com.amazonaws.apigateway#Deployments": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfDeployment", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a collection resource that contains zero or more references to your existing deployments, and links that guide you on how to interact with your collection. The collection offers a paginated view of the contained deployments.

\n
To create a new deployment of a RestApi, make a POST request against this resource. To view, update, or delete an existing\n deployment, make a GET, PATCH, or DELETE request, respectively, on a specified Deployment resource.
\n " + } + }, + "com.amazonaws.apigateway#DocumentationPart": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The DocumentationPart identifier, generated by API Gateway when the DocumentationPart is created.

" + } + }, + "location": { + "target": "com.amazonaws.apigateway#DocumentationPartLocation", + "traits": { + "smithy.api#documentation": "

The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.

" + } + }, + "properties": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., \"{ \\\"description\\\": \\\"The API does ...\\\" }\". Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of x-amazon-apigateway-documentation.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A documentation part for a targeted API entity.

\n
\n

A documentation part consists of a content map (properties) and a target (location). The target specifies an API entity to which the documentation content applies. The supported API entity types are API, AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Valid location fields depend on the API entity type. All valid fields are not required.

\n

The content map is a JSON string of API-specific key-value pairs. Although an API can use any shape for the content map, only the OpenAPI-compliant documentation fields will be injected into the associated API entity definition in the exported OpenAPI definition file.

\n " + } + }, + "com.amazonaws.apigateway#DocumentationPartIds": { + "type": "structure", + "members": { + "ids": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A list of the returned documentation part identifiers.

" + } + }, + "warnings": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A list of warning messages reported during import of documentation parts.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A collection of the imported DocumentationPart identifiers.

\n
This is used to return the result when documentation parts in an external (e.g., OpenAPI) file are imported into API Gateway
\n " + } + }, + "com.amazonaws.apigateway#DocumentationPartLocation": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.apigateway#DocumentationPartType", + "traits": { + "smithy.api#documentation": "

[Required] The type of API entity to which the documentation content applies. Valid values are API, AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Content inheritance does not apply to any entity of the API, AUTHORIZER, METHOD, MODEL, REQUEST_BODY, or RESOURCE type.

", + "smithy.api#required": {} + } + }, + "path": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The URL path of the target. It is a valid field for the API entity types of RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is / for the root resource. When an applicable child entity inherits the content of another entity of the same type with more general specifications of the other location attributes, the child entity's path attribute must match that of the parent entity as a prefix.

" + } + }, + "method": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The HTTP verb of a method. It is a valid field for the API entity types of METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any method. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other location attributes, the child entity's method attribute must match that of the parent entity exactly.

" + } + }, + "statusCode": { + "target": "com.amazonaws.apigateway#DocumentationPartLocationStatusCode", + "traits": { + "smithy.api#documentation": "

The HTTP status code of a response. It is a valid field for the API entity types of RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any status code. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other location attributes, the child entity's statusCode attribute must match that of the parent entity exactly.

" + } + }, + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of the targeted API entity. It is a valid and required field for the API entity types of AUTHORIZER, MODEL, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY and RESPONSE_HEADER. It is an invalid field for any other entity type.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies the target API entity to which the documentation applies.

" + } + }, + "com.amazonaws.apigateway#DocumentationPartLocationStatusCode": { + "type": "string", + "traits": { + "smithy.api#pattern": "^([1-5]\\d\\d|\\*|\\s*)$" + } + }, + "com.amazonaws.apigateway#DocumentationPartType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "API", + "name": "API" + }, + { + "value": "AUTHORIZER", + "name": "AUTHORIZER" + }, + { + "value": "MODEL", + "name": "MODEL" + }, + { + "value": "RESOURCE", + "name": "RESOURCE" + }, + { + "value": "METHOD", + "name": "METHOD" + }, + { + "value": "PATH_PARAMETER", + "name": "PATH_PARAMETER" + }, + { + "value": "QUERY_PARAMETER", + "name": "QUERY_PARAMETER" + }, + { + "value": "REQUEST_HEADER", + "name": "REQUEST_HEADER" + }, + { + "value": "REQUEST_BODY", + "name": "REQUEST_BODY" + }, + { + "value": "RESPONSE", + "name": "RESPONSE" + }, + { + "value": "RESPONSE_HEADER", + "name": "RESPONSE_HEADER" + }, + { + "value": "RESPONSE_BODY", + "name": "RESPONSE_BODY" + } + ] + } + }, + "com.amazonaws.apigateway#DocumentationParts": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfDocumentationPart", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

The collection of documentation parts of an API.

\n
\n " + } + }, + "com.amazonaws.apigateway#DocumentationVersion": { + "type": "structure", + "members": { + "version": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The version identifier of the API documentation snapshot.

" + } + }, + "createdDate": { + "target": "com.amazonaws.apigateway#Timestamp", + "traits": { + "smithy.api#documentation": "

The date when the API documentation snapshot is created.

" + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of the API documentation snapshot.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A snapshot of the documentation of an API.

\n

Publishing API documentation involves creating a documentation version associated with an API stage and exporting the versioned documentation to an external (e.g., OpenAPI) file.

\n " + } + }, + "com.amazonaws.apigateway#DocumentationVersions": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfDocumentationVersion", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

The collection of documentation snapshots of an API.

\n

Use the DocumentationVersions to manage documentation snapshots associated with various API stages.

\n " + } + }, + "com.amazonaws.apigateway#DomainName": { + "type": "structure", + "members": { + "domainName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The custom domain name as an API host name, for example, my-api.example.com.

" + } + }, + "certificateName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of the certificate that will be used by edge-optimized endpoint for this domain name.

" + } + }, + "certificateArn": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.

" + } + }, + "certificateUploadDate": { + "target": "com.amazonaws.apigateway#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.

" + } + }, + "regionalDomainName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The domain name associated with the regional endpoint for this custom domain name. You set up this association by adding a DNS record that points the custom domain name to this regional domain name. The regional domain name is returned by API Gateway when you create a regional endpoint.

" + } + }, + "regionalHostedZoneId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

" + } + }, + "regionalCertificateName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of the certificate that will be used for validating the regional domain name.

" + } + }, + "regionalCertificateArn": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.

" + } + }, + "distributionDomainName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation.

" + } + }, + "distributionHostedZoneId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

" + } + }, + "endpointConfiguration": { + "target": "com.amazonaws.apigateway#EndpointConfiguration", + "traits": { + "smithy.api#documentation": "

The endpoint configuration of this DomainName showing the endpoint types of the domain name.

" + } + }, + "domainNameStatus": { + "target": "com.amazonaws.apigateway#DomainNameStatus", + "traits": { + "smithy.api#documentation": "

The status of the DomainName migration. The valid values are AVAILABLE and UPDATING. If the status is UPDATING, the domain cannot be modified further until the existing operation is complete. If it is AVAILABLE, the domain can be updated.

" + } + }, + "domainNameStatusMessage": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

An optional text message containing detailed information about status of the DomainName migration.

" + } + }, + "securityPolicy": { + "target": "com.amazonaws.apigateway#SecurityPolicy", + "traits": { + "smithy.api#documentation": "

The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0 and TLS_1_2.

" + } + }, + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The collection of tags. Each tag element is associated with a given resource.

" + } + }, + "mutualTlsAuthentication": { + "target": "com.amazonaws.apigateway#MutualTlsAuthentication", + "traits": { + "smithy.api#documentation": "

The mutual TLS authentication configuration for a custom domain name. If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a custom domain name as a user-friendly host name of an API (RestApi).

\n
\n

When you deploy an API, API Gateway creates a default host name for the API. This default API host name is of the {restapi-id}.execute-api.{region}.amazonaws.com format. With the default host name, you can access the API's root resource with the URL of https://{restapi-id}.execute-api.{region}.amazonaws.com/{stage}/. When you set up a custom domain name of apis.example.com for this API, you can then access the same resource using the URL of the https://apis.examples.com/myApi, where myApi is the base path mapping (BasePathMapping) of your API under the custom domain name.\n

\n
\n " + } + }, + "com.amazonaws.apigateway#DomainNameStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "AVAILABLE", + "name": "AVAILABLE" + }, + { + "value": "UPDATING", + "name": "UPDATING" + }, + { + "value": "PENDING", + "name": "PENDING" + } + ] + } + }, + "com.amazonaws.apigateway#DomainNames": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfDomainName", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a collection of DomainName resources.

\n " + } + }, + "com.amazonaws.apigateway#Double": { + "type": "double" + }, + "com.amazonaws.apigateway#EndpointConfiguration": { + "type": "structure", + "members": { + "types": { + "target": "com.amazonaws.apigateway#ListOfEndpointType", + "traits": { + "smithy.api#documentation": "

A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized API and its custom domain name, the endpoint type is \"EDGE\". For a regional API and its custom domain name, the endpoint type is REGIONAL. For a private API, the endpoint type is PRIVATE.

" + } + }, + "vpcEndpointIds": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported for PRIVATE endpoint type.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has.

" + } + }, + "com.amazonaws.apigateway#EndpointType": { + "type": "string", + "traits": { + "smithy.api#documentation": "

The endpoint type. The valid values are EDGE for edge-optimized API setup, most suitable for mobile applications; REGIONAL for regional API endpoint setup, most suitable for calling from AWS Region; and PRIVATE for private APIs.

", + "smithy.api#enum": [ + { + "value": "REGIONAL", + "name": "REGIONAL" + }, + { + "value": "EDGE", + "name": "EDGE" + }, + { + "value": "PRIVATE", + "name": "PRIVATE" + } + ] + } + }, + "com.amazonaws.apigateway#ExportResponse": { + "type": "structure", + "members": { + "contentType": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The content-type header value in the HTTP response. This will correspond to a valid 'accept' type in the request.

", + "smithy.api#httpHeader": "Content-Type" + } + }, + "contentDisposition": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The content-disposition header value in the HTTP response.

", + "smithy.api#httpHeader": "Content-Disposition" + } + }, + "body": { + "target": "com.amazonaws.apigateway#Blob", + "traits": { + "smithy.api#documentation": "

The binary blob response to GetExport, which contains the export.

", + "smithy.api#httpPayload": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The binary blob response to GetExport, which contains the generated SDK.

" + } + }, + "com.amazonaws.apigateway#FlushStageAuthorizersCache": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#FlushStageAuthorizersCacheRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Flushes all authorizer cache entries on a stage.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}/stages/{stageName}/cache/authorizers", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#FlushStageAuthorizersCacheRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "stageName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of the stage to flush.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to flush authorizer cache entries on a specified stage.

" + } + }, + "com.amazonaws.apigateway#FlushStageCache": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#FlushStageCacheRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Flushes a stage's cache.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/restapis/{restApiId}/stages/{stageName}/cache/data", + "code": 202 + } + } + }, + "com.amazonaws.apigateway#FlushStageCacheRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "stageName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the stage to flush its cache.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Requests API Gateway to flush a stage's cache.

" + } + }, + "com.amazonaws.apigateway#GatewayResponse": { + "type": "structure", + "members": { + "responseType": { + "target": "com.amazonaws.apigateway#GatewayResponseType", + "traits": { + "smithy.api#documentation": "

The response type of the associated GatewayResponse. Valid values are

  • ACCESS_DENIED
  • API_CONFIGURATION_ERROR
  • AUTHORIZER_FAILURE
  • AUTHORIZER_CONFIGURATION_ERROR
  • BAD_REQUEST_PARAMETERS
  • BAD_REQUEST_BODY
  • DEFAULT_4XX
  • DEFAULT_5XX
  • EXPIRED_TOKEN
  • INVALID_SIGNATURE
  • INTEGRATION_FAILURE
  • INTEGRATION_TIMEOUT
  • INVALID_API_KEY
  • MISSING_AUTHENTICATION_TOKEN
  • QUOTA_EXCEEDED
  • REQUEST_TOO_LARGE
  • RESOURCE_NOT_FOUND
  • THROTTLED
  • UNAUTHORIZED
  • UNSUPPORTED_MEDIA_TYPE

" + } + }, + "statusCode": { + "target": "com.amazonaws.apigateway#StatusCode", + "traits": { + "smithy.api#documentation": "

The HTTP status code for this GatewayResponse.

" + } + }, + "responseParameters": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

" + } + }, + "responseTemplates": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

" + } + }, + "defaultResponse": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true) or not (false). A default gateway response is one generated by API Gateway without any customization by an API developer.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A gateway response of a given response type and status code, with optional response parameters and mapping templates.

\n
\n For more information about valid gateway response types, see Gateway Response Types Supported by API Gateway\n
\n

Example: Get a Gateway Response of a given response type

\n
Request
\n

This example shows how to get a gateway response of the MISSING_AUTHENTICATION_TOKEN type.

\n
GET /restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN HTTP/1.1\nHost: beta-apigateway.us-east-1.amazonaws.com\nContent-Type: application/json\nX-Amz-Date: 20170503T202516Z\nAuthorization: AWS4-HMAC-SHA256 Credential={access-key-id}/20170503/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1b52460e3159c1a26cff29093855d50ea141c1c5b937528fecaf60f51129697a\nCache-Control: no-cache\nPostman-Token: 3b2a1ce9-c848-2e26-2e2f-9c2caefbed45\n
\n

The response type is specified as a URL path.

\n
Response
\n

The successful operation returns the 200 OK status code and a payload similar to the following:

\n
{\n  \"_links\": {\n    \"curies\": {\n      \"href\": \"http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-gatewayresponse-{rel}.html\",\n      \"name\": \"gatewayresponse\",\n      \"templated\": true\n    },\n    \"self\": {\n      \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\"\n    },\n    \"gatewayresponse:delete\": {\n      \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\"\n    },\n    \"gatewayresponse:put\": {\n      \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n      \"templated\": true\n    },\n    \"gatewayresponse:update\": {\n      \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\"\n    }\n  },\n  \"defaultResponse\": false,\n  \"responseParameters\": {\n    \"gatewayresponse.header.x-request-path\": \"method.request.path.petId\",\n    \"gatewayresponse.header.Access-Control-Allow-Origin\": \"'a.b.c'\",\n    \"gatewayresponse.header.x-request-query\": \"method.request.querystring.q\",\n    \"gatewayresponse.header.x-request-header\": \"method.request.header.Accept\"\n  },\n  \"responseTemplates\": {\n    \"application/json\": \"{\\n     \\\"message\\\": $context.error.messageString,\\n     \\\"type\\\":  \\\"$context.error.responseType\\\",\\n     \\\"stage\\\":  \\\"$context.stage\\\",\\n     \\\"resourcePath\\\":  \\\"$context.resourcePath\\\",\\n     \\\"stageVariables.a\\\":  \\\"$stageVariables.a\\\",\\n     \\\"statusCode\\\": \\\"'404'\\\"\\n}\"\n  },\n  \"responseType\": \"MISSING_AUTHENTICATION_TOKEN\",\n  \"statusCode\": \"404\"\n}
\n

\n
\n
\n " + } + }, + "com.amazonaws.apigateway#GatewayResponseType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "DEFAULT_4XX", + "name": "DEFAULT_4XX" + }, + { + "value": "DEFAULT_5XX", + "name": "DEFAULT_5XX" + }, + { + "value": "RESOURCE_NOT_FOUND", + "name": "RESOURCE_NOT_FOUND" + }, + { + "value": "UNAUTHORIZED", + "name": "UNAUTHORIZED" + }, + { + "value": "INVALID_API_KEY", + "name": "INVALID_API_KEY" + }, + { + "value": "ACCESS_DENIED", + "name": "ACCESS_DENIED" + }, + { + "value": "AUTHORIZER_FAILURE", + "name": "AUTHORIZER_FAILURE" + }, + { + "value": "AUTHORIZER_CONFIGURATION_ERROR", + "name": "AUTHORIZER_CONFIGURATION_ERROR" + }, + { + "value": "INVALID_SIGNATURE", + "name": "INVALID_SIGNATURE" + }, + { + "value": "EXPIRED_TOKEN", + "name": "EXPIRED_TOKEN" + }, + { + "value": "MISSING_AUTHENTICATION_TOKEN", + "name": "MISSING_AUTHENTICATION_TOKEN" + }, + { + "value": "INTEGRATION_FAILURE", + "name": "INTEGRATION_FAILURE" + }, + { + "value": "INTEGRATION_TIMEOUT", + "name": "INTEGRATION_TIMEOUT" + }, + { + "value": "API_CONFIGURATION_ERROR", + "name": "API_CONFIGURATION_ERROR" + }, + { + "value": "UNSUPPORTED_MEDIA_TYPE", + "name": "UNSUPPORTED_MEDIA_TYPE" + }, + { + "value": "BAD_REQUEST_PARAMETERS", + "name": "BAD_REQUEST_PARAMETERS" + }, + { + "value": "BAD_REQUEST_BODY", + "name": "BAD_REQUEST_BODY" + }, + { + "value": "REQUEST_TOO_LARGE", + "name": "REQUEST_TOO_LARGE" + }, + { + "value": "THROTTLED", + "name": "THROTTLED" + }, + { + "value": "QUOTA_EXCEEDED", + "name": "QUOTA_EXCEEDED" + } + ] + } + }, + "com.amazonaws.apigateway#GatewayResponses": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfGatewayResponse", + "traits": { + "smithy.api#documentation": "

Returns the entire collection, because of no pagination support.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set. The GatewayResponse collection does not support pagination and the position does not apply here.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

The collection of the GatewayResponse instances of a RestApi as a responseType-to-GatewayResponse object map of key-value pairs. As such, pagination is not supported for querying this collection.

\n
\n For more information about valid gateway response types, see Gateway Response Types Supported by API Gateway\n
\n

Example: Get the collection of gateway responses of an API

\n
Request
\n

This example request shows how to retrieve the GatewayResponses collection from an API.

\n
GET /restapis/o81lxisefl/gatewayresponses HTTP/1.1\nHost: beta-apigateway.us-east-1.amazonaws.com\nContent-Type: application/json\nX-Amz-Date: 20170503T220604Z\nAuthorization: AWS4-HMAC-SHA256 Credential={access-key-id}/20170503/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=59b42fe54a76a5de8adf2c67baa6d39206f8e9ad49a1d77ccc6a5da3103a398a\nCache-Control: no-cache\nPostman-Token: 5637af27-dc29-fc5c-9dfe-0645d52cb515\n
\n

\n
Response
\n

The successful operation returns the 200 OK status code and a payload similar to the following:

\n
{\n  \"_links\": {\n    \"curies\": {\n      \"href\": \"http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-gatewayresponse-{rel}.html\",\n      \"name\": \"gatewayresponse\",\n      \"templated\": true\n    },\n    \"self\": {\n      \"href\": \"/restapis/o81lxisefl/gatewayresponses\"\n    },\n    \"first\": {\n      \"href\": \"/restapis/o81lxisefl/gatewayresponses\"\n    },\n    \"gatewayresponse:by-type\": {\n      \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n      \"templated\": true\n    },\n    \"item\": [\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_FAILURE\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/RESOURCE_NOT_FOUND\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/REQUEST_TOO_LARGE\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/THROTTLED\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNSUPPORTED_MEDIA_TYPE\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_CONFIGURATION_ERROR\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_5XX\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_4XX\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_PARAMETERS\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_BODY\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/EXPIRED_TOKEN\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/ACCESS_DENIED\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_API_KEY\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNAUTHORIZED\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/API_CONFIGURATION_ERROR\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/QUOTA_EXCEEDED\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_TIMEOUT\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_SIGNATURE\"\n      },\n      {\n        \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_FAILURE\"\n      }\n    ]\n  },\n  \"_embedded\": {\n    \"item\": [\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_FAILURE\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_FAILURE\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"INTEGRATION_FAILURE\",\n        \"statusCode\": \"504\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/RESOURCE_NOT_FOUND\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/RESOURCE_NOT_FOUND\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"RESOURCE_NOT_FOUND\",\n        \"statusCode\": \"404\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/REQUEST_TOO_LARGE\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/REQUEST_TOO_LARGE\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"REQUEST_TOO_LARGE\",\n        \"statusCode\": \"413\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/THROTTLED\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/THROTTLED\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"THROTTLED\",\n        \"statusCode\": \"429\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNSUPPORTED_MEDIA_TYPE\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNSUPPORTED_MEDIA_TYPE\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"UNSUPPORTED_MEDIA_TYPE\",\n        \"statusCode\": \"415\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_CONFIGURATION_ERROR\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_CONFIGURATION_ERROR\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"AUTHORIZER_CONFIGURATION_ERROR\",\n        \"statusCode\": \"500\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_5XX\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_5XX\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"DEFAULT_5XX\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_4XX\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_4XX\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"DEFAULT_4XX\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_PARAMETERS\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_PARAMETERS\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"BAD_REQUEST_PARAMETERS\",\n        \"statusCode\": \"400\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_BODY\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_BODY\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"BAD_REQUEST_BODY\",\n        \"statusCode\": \"400\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/EXPIRED_TOKEN\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/EXPIRED_TOKEN\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"EXPIRED_TOKEN\",\n        \"statusCode\": \"403\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/ACCESS_DENIED\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/ACCESS_DENIED\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"ACCESS_DENIED\",\n        \"statusCode\": \"403\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_API_KEY\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_API_KEY\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"INVALID_API_KEY\",\n        \"statusCode\": \"403\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNAUTHORIZED\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNAUTHORIZED\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"UNAUTHORIZED\",\n        \"statusCode\": \"401\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/API_CONFIGURATION_ERROR\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/API_CONFIGURATION_ERROR\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"API_CONFIGURATION_ERROR\",\n        \"statusCode\": \"500\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/QUOTA_EXCEEDED\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/QUOTA_EXCEEDED\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"QUOTA_EXCEEDED\",\n        \"statusCode\": \"429\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_TIMEOUT\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_TIMEOUT\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"INTEGRATION_TIMEOUT\",\n        \"statusCode\": \"504\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"MISSING_AUTHENTICATION_TOKEN\",\n        \"statusCode\": \"403\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_SIGNATURE\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_SIGNATURE\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"INVALID_SIGNATURE\",\n        \"statusCode\": \"403\"\n      },\n      {\n        \"_links\": {\n          \"self\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_FAILURE\"\n          },\n          \"gatewayresponse:put\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\",\n            \"templated\": true\n          },\n          \"gatewayresponse:update\": {\n            \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_FAILURE\"\n          }\n        },\n        \"defaultResponse\": true,\n        \"responseParameters\": {},\n        \"responseTemplates\": {\n          \"application/json\": \"{\\\"message\\\":$context.error.messageString}\"\n        },\n        \"responseType\": \"AUTHORIZER_FAILURE\",\n        \"statusCode\": \"500\"\n      }\n    ]\n  }\n}
\n

\n
\n
\n " + } + }, + "com.amazonaws.apigateway#GenerateClientCertificate": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GenerateClientCertificateRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#ClientCertificate" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Generates a ClientCertificate resource.

", + "smithy.api#http": { + "method": "POST", + "uri": "/clientcertificates", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#GenerateClientCertificateRequest": { + "type": "structure", + "members": { + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of the ClientCertificate.

" + } + }, + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to generate a ClientCertificate resource.

" + } + }, + "com.amazonaws.apigateway#GetAccount": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetAccountRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Account" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets information about the current Account resource.

", + "smithy.api#http": { + "method": "GET", + "uri": "/account", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetAccountRequest": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#documentation": "

Requests API Gateway to get information about the current Account resource.

" + } + }, + "com.amazonaws.apigateway#GetApiKey": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetApiKeyRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#ApiKey" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets information about the current ApiKey resource.

", + "smithy.api#http": { + "method": "GET", + "uri": "/apikeys/{apiKey}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetApiKeyRequest": { + "type": "structure", + "members": { + "apiKey": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the ApiKey resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "includeValue": { + "target": "com.amazonaws.apigateway#NullableBoolean", + "traits": { + "smithy.api#documentation": "

A boolean flag to specify whether (true) or not (false) the result contains the key value.

", + "smithy.api#httpQuery": "includeValue" + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to get information about the current ApiKey resource.

" + } + }, + "com.amazonaws.apigateway#GetApiKeys": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetApiKeysRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#ApiKeys" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets information about the current ApiKeys resource.

", + "smithy.api#http": { + "method": "GET", + "uri": "/apikeys", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "position", + "outputToken": "position", + "items": "items", + "pageSize": "limit" + } + } + }, + "com.amazonaws.apigateway#GetApiKeysRequest": { + "type": "structure", + "members": { + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + }, + "nameQuery": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of queried API keys.

", + "smithy.api#httpQuery": "name" + } + }, + "customerId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier of a customer in AWS Marketplace or an external system, such as a developer portal.

", + "smithy.api#httpQuery": "customerId" + } + }, + "includeValues": { + "target": "com.amazonaws.apigateway#NullableBoolean", + "traits": { + "smithy.api#documentation": "

A boolean flag to specify whether (true) or not (false) the result contains key values.

", + "smithy.api#httpQuery": "includeValues" + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to get information about the current ApiKeys resource.

" + } + }, + "com.amazonaws.apigateway#GetAuthorizer": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetAuthorizerRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Authorizer" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Describe an existing Authorizer resource.

\n ", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/authorizers/{authorizerId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetAuthorizerRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "authorizerId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the Authorizer resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to describe an existing Authorizer resource.

" + } + }, + "com.amazonaws.apigateway#GetAuthorizers": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetAuthorizersRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Authorizers" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Describe an existing Authorizers resource.

\n ", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/authorizers", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetAuthorizersRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to describe an existing Authorizers resource.

" + } + }, + "com.amazonaws.apigateway#GetBasePathMapping": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetBasePathMappingRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#BasePathMapping" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Describe a BasePathMapping resource.

", + "smithy.api#http": { + "method": "GET", + "uri": "/domainnames/{domainName}/basepathmappings/{basePath}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetBasePathMappingRequest": { + "type": "structure", + "members": { + "domainName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The domain name of the BasePathMapping resource to be described.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "basePath": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] 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. Specify '(none)' if you do not want callers to specify any base path name after the domain name.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to describe a BasePathMapping resource.

" + } + }, + "com.amazonaws.apigateway#GetBasePathMappings": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetBasePathMappingsRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#BasePathMappings" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Represents a collection of BasePathMapping resources.

", + "smithy.api#http": { + "method": "GET", + "uri": "/domainnames/{domainName}/basepathmappings", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "position", + "outputToken": "position", + "items": "items", + "pageSize": "limit" + } + } + }, + "com.amazonaws.apigateway#GetBasePathMappingsRequest": { + "type": "structure", + "members": { + "domainName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The domain name of a BasePathMapping resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to get information about a collection of BasePathMapping resources.

" + } + }, + "com.amazonaws.apigateway#GetClientCertificate": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetClientCertificateRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#ClientCertificate" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets information about the current ClientCertificate resource.

", + "smithy.api#http": { + "method": "GET", + "uri": "/clientcertificates/{clientCertificateId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetClientCertificateRequest": { + "type": "structure", + "members": { + "clientCertificateId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the ClientCertificate resource to be described.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to get information about the current ClientCertificate resource.

" + } + }, + "com.amazonaws.apigateway#GetClientCertificates": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetClientCertificatesRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#ClientCertificates" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets a collection of ClientCertificate resources.

", + "smithy.api#http": { + "method": "GET", + "uri": "/clientcertificates", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "position", + "outputToken": "position", + "items": "items", + "pageSize": "limit" + } + } + }, + "com.amazonaws.apigateway#GetClientCertificatesRequest": { + "type": "structure", + "members": { + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to get information about a collection of ClientCertificate resources.

" + } + }, + "com.amazonaws.apigateway#GetDeployment": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetDeploymentRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Deployment" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets information about a Deployment resource.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/deployments/{deploymentId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetDeploymentRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "deploymentId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the Deployment resource to get information about.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "embed": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A query parameter to retrieve the specified embedded resources of the returned Deployment resource in the response. In a REST API call, this embed parameter value is a list of comma-separated strings, as in GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=var1,var2. The SDK and other platform-dependent libraries might use a different format for the list. Currently, this request supports only retrieval of the embedded API summary this way. Hence, the parameter value must be a single-valued list containing only the \"apisummary\" string. For example, GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=apisummary.

", + "smithy.api#httpQuery": "embed" + } + } + }, + "traits": { + "smithy.api#documentation": "

Requests API Gateway to get information about a Deployment resource.

" + } + }, + "com.amazonaws.apigateway#GetDeployments": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetDeploymentsRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Deployments" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets information about a Deployments collection.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/deployments", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "position", + "outputToken": "position", + "items": "items", + "pageSize": "limit" + } + } + }, + "com.amazonaws.apigateway#GetDeploymentsRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#documentation": "

Requests API Gateway to get information about a Deployments collection.

" + } + }, + "com.amazonaws.apigateway#GetDocumentationPart": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetDocumentationPartRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#DocumentationPart" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/documentation/parts/{documentationPartId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetDocumentationPartRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "documentationPartId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Gets a specified documentation part of a given API.

" + } + }, + "com.amazonaws.apigateway#GetDocumentationParts": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetDocumentationPartsRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#DocumentationParts" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/documentation/parts", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetDocumentationPartsRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "type": { + "target": "com.amazonaws.apigateway#DocumentationPartType", + "traits": { + "smithy.api#documentation": "

The type of API entities of the to-be-retrieved documentation parts.

", + "smithy.api#httpQuery": "type" + } + }, + "nameQuery": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of API entities of the to-be-retrieved documentation parts.

", + "smithy.api#httpQuery": "name" + } + }, + "path": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The path of API entities of the to-be-retrieved documentation parts.

", + "smithy.api#httpQuery": "path" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + }, + "locationStatus": { + "target": "com.amazonaws.apigateway#LocationStatusType", + "traits": { + "smithy.api#documentation": "

The status of the API documentation parts to retrieve. Valid values are DOCUMENTED for retrieving DocumentationPart resources with content and UNDOCUMENTED for DocumentationPart resources without content.

", + "smithy.api#httpQuery": "locationStatus" + } + } + }, + "traits": { + "smithy.api#documentation": "

Gets the documentation parts of an API. The result may be filtered by the type, name, or path of API entities (targets).

" + } + }, + "com.amazonaws.apigateway#GetDocumentationVersion": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetDocumentationVersionRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#DocumentationVersion" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/documentation/versions/{documentationVersion}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetDocumentationVersionRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "documentationVersion": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The version identifier of the to-be-retrieved documentation snapshot.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Gets a documentation snapshot of an API.

" + } + }, + "com.amazonaws.apigateway#GetDocumentationVersions": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetDocumentationVersionsRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#DocumentationVersions" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/documentation/versions", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetDocumentationVersionsRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#documentation": "

Gets the documentation versions of an API.

" + } + }, + "com.amazonaws.apigateway#GetDomainName": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetDomainNameRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#DomainName" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Represents a domain name that is contained in a simpler, more intuitive URL that can be called.

", + "smithy.api#http": { + "method": "GET", + "uri": "/domainnames/{domainName}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetDomainNameRequest": { + "type": "structure", + "members": { + "domainName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the DomainName resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to get the name of a DomainName resource.

" + } + }, + "com.amazonaws.apigateway#GetDomainNames": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetDomainNamesRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#DomainNames" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Represents a collection of DomainName resources.

", + "smithy.api#http": { + "method": "GET", + "uri": "/domainnames", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "position", + "outputToken": "position", + "items": "items", + "pageSize": "limit" + } + } + }, + "com.amazonaws.apigateway#GetDomainNamesRequest": { + "type": "structure", + "members": { + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to describe a collection of DomainName resources.

" + } + }, + "com.amazonaws.apigateway#GetExport": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetExportRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#ExportResponse" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Exports a deployed version of a RestApi in a specified format.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/stages/{stageName}/exports/{exportType}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetExportRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "stageName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the Stage that will be exported.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "exportType": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The type of export. Acceptable values are 'oas30' for OpenAPI 3.0.x and 'swagger' for Swagger/OpenAPI 2.0.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "parameters": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

A key-value map of query string parameters that specify properties of the export, depending on the requested exportType. For exportType oas30 and swagger, any combination of the following parameters are supported: extensions='integrations' or extensions='apigateway' will export the API with x-amazon-apigateway-integration extensions. 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

" + } + }, + "accepts": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The content-type of the export, for example application/json. Currently application/json and application/yaml are supported for exportType ofoas30 and swagger. This should be specified in the Accept header for direct API requests.

", + "smithy.api#httpHeader": "Accept" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request a new export of a RestApi for a particular Stage.

" + } + }, + "com.amazonaws.apigateway#GetGatewayResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetGatewayResponseRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#GatewayResponse" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets a GatewayResponse of a specified response type on the given RestApi.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/gatewayresponses/{responseType}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetGatewayResponseRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "responseType": { + "target": "com.amazonaws.apigateway#GatewayResponseType", + "traits": { + "smithy.api#documentation": "

[Required]

The response type of the associated GatewayResponse. Valid values are

  • ACCESS_DENIED
  • API_CONFIGURATION_ERROR
  • AUTHORIZER_FAILURE
  • AUTHORIZER_CONFIGURATION_ERROR
  • BAD_REQUEST_PARAMETERS
  • BAD_REQUEST_BODY
  • DEFAULT_4XX
  • DEFAULT_5XX
  • EXPIRED_TOKEN
  • INVALID_SIGNATURE
  • INTEGRATION_FAILURE
  • INTEGRATION_TIMEOUT
  • INVALID_API_KEY
  • MISSING_AUTHENTICATION_TOKEN
  • QUOTA_EXCEEDED
  • REQUEST_TOO_LARGE
  • RESOURCE_NOT_FOUND
  • THROTTLED
  • UNAUTHORIZED
  • UNSUPPORTED_MEDIA_TYPE

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Gets a GatewayResponse of a specified response type on the given RestApi.

" + } + }, + "com.amazonaws.apigateway#GetGatewayResponses": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetGatewayResponsesRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#GatewayResponses" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets the GatewayResponses collection on the given RestApi. If an API developer has not added any definitions for gateway responses, the result will be the API Gateway-generated default GatewayResponses collection for the supported response types.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/gatewayresponses", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetGatewayResponsesRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set. The GatewayResponse collection does not support pagination and the position does not apply here.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500. The GatewayResponses collection does not support pagination and the limit does not apply here.

", + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#documentation": "

Gets the GatewayResponses collection on the given RestApi. If an API developer has not added any definitions for gateway responses, the result will be the API Gateway-generated default GatewayResponses collection for the supported response types.

" + } + }, + "com.amazonaws.apigateway#GetIntegration": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetIntegrationRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Integration" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Get the integration settings.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetIntegrationRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a get integration request's resource identifier

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a get integration request's HTTP method.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a request to get the integration configuration.

" + } + }, + "com.amazonaws.apigateway#GetIntegrationResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetIntegrationResponseRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#IntegrationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Represents a get integration response.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetIntegrationResponseRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a get integration response request's resource identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a get integration response request's HTTP method.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "statusCode": { + "target": "com.amazonaws.apigateway#StatusCode", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a get integration response request's status code.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a get integration response request.

" + } + }, + "com.amazonaws.apigateway#GetMethod": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetMethodRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Method" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Describe an existing Method resource.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetMethodRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Resource identifier for the Method resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies the method request's HTTP method type.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to describe an existing Method resource.

" + } + }, + "com.amazonaws.apigateway#GetMethodResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetMethodResponseRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#MethodResponse" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Describes a MethodResponse resource.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetMethodResponseRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Resource identifier for the MethodResponse resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The HTTP verb of the Method resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "statusCode": { + "target": "com.amazonaws.apigateway#StatusCode", + "traits": { + "smithy.api#documentation": "

[Required] The status code for the MethodResponse resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to describe a MethodResponse resource.

" + } + }, + "com.amazonaws.apigateway#GetModel": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetModelRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Model" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Describes an existing model defined for a RestApi resource.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/models/{modelName}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetModelRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The RestApi identifier under which the Model exists.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "modelName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the model as an identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "flatten": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

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.

", + "smithy.api#httpQuery": "flatten" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to list information about a model in an existing RestApi resource.

" + } + }, + "com.amazonaws.apigateway#GetModelTemplate": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetModelTemplateRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Template" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Generates a sample mapping template that can be used to transform a payload into the structure of a model.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/models/{modelName}/default_template", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetModelTemplateRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "modelName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the model for which to generate a template.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to generate a sample mapping template used to transform the payload.

" + } + }, + "com.amazonaws.apigateway#GetModels": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetModelsRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Models" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Describes existing Models defined for a RestApi resource.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/models", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "position", + "outputToken": "position", + "items": "items", + "pageSize": "limit" + } + } + }, + "com.amazonaws.apigateway#GetModelsRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to list existing Models defined for a RestApi resource.

" + } + }, + "com.amazonaws.apigateway#GetRequestValidator": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetRequestValidatorRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#RequestValidator" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets a RequestValidator of a given RestApi.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/requestvalidators/{requestValidatorId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetRequestValidatorRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "requestValidatorId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the RequestValidator to be retrieved.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Gets a RequestValidator of a given RestApi.

" + } + }, + "com.amazonaws.apigateway#GetRequestValidators": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetRequestValidatorsRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#RequestValidators" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets the RequestValidators collection of a given RestApi.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/requestvalidators", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetRequestValidatorsRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#documentation": "

Gets the RequestValidators collection of a given RestApi.

" + } + }, + "com.amazonaws.apigateway#GetResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetResourceRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Resource" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists information about a resource.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/resources/{resourceId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetResourceRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier for the Resource resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "embed": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A query parameter to retrieve the specified resources embedded in the returned Resource representation in the response. This embed parameter value is a list of comma-separated strings. Currently, the request supports only retrieval of the embedded Method resources this way. The query parameter value must be a single-valued list and contain the \"methods\" string. For example, GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods.

", + "smithy.api#httpQuery": "embed" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to list information about a resource.

" + } + }, + "com.amazonaws.apigateway#GetResources": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetResourcesRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Resources" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists information about a collection of Resource resources.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/resources", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "position", + "outputToken": "position", + "items": "items", + "pageSize": "limit" + } + } + }, + "com.amazonaws.apigateway#GetResourcesRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + }, + "embed": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A query parameter used to retrieve the specified resources embedded in the returned Resources resource in the response. This embed parameter value is a list of comma-separated strings. Currently, the request supports only retrieval of the embedded Method resources this way. The query parameter value must be a single-valued list and contain the \"methods\" string. For example, GET /restapis/{restapi_id}/resources?embed=methods.

", + "smithy.api#httpQuery": "embed" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to list information about a collection of resources.

" + } + }, + "com.amazonaws.apigateway#GetRestApi": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetRestApiRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#RestApi" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists the RestApi resource in the collection.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetRestApiRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The GET request to list an existing RestApi defined for your collection.

" + } + }, + "com.amazonaws.apigateway#GetRestApis": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetRestApisRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#RestApis" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists the RestApis resources for your collection.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "position", + "outputToken": "position", + "items": "items", + "pageSize": "limit" + } + } + }, + "com.amazonaws.apigateway#GetRestApisRequest": { + "type": "structure", + "members": { + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#documentation": "

The GET request to list existing RestApis defined for your collection.

" + } + }, + "com.amazonaws.apigateway#GetSdk": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetSdkRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#SdkResponse" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Generates a client SDK for a RestApi and Stage.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/stages/{stageName}/sdks/{sdkType}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetSdkRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "stageName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the Stage that the SDK will use.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "sdkType": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The language for the generated SDK. Currently java, javascript, android, objectivec (for iOS), swift (for iOS), and ruby are supported.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "parameters": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

A string-to-string key-value map of query parameters sdkType-dependent properties of the SDK. For sdkType of objectivec or swift, a parameter named classPrefix is required. For sdkType of android, parameters named groupId, artifactId, artifactVersion, and invokerPackage are required. For sdkType of java, parameters named serviceName and javaPackageName are required.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request a new generated client SDK for a RestApi and Stage.

" + } + }, + "com.amazonaws.apigateway#GetSdkType": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetSdkTypeRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#SdkType" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/sdktypes/{id}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetSdkTypeRequest": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the queried SdkType instance.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Get an SdkType instance.

" + } + }, + "com.amazonaws.apigateway#GetSdkTypes": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetSdkTypesRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#SdkTypes" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/sdktypes", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetSdkTypesRequest": { + "type": "structure", + "members": { + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#documentation": "

Get the SdkTypes collection.

" + } + }, + "com.amazonaws.apigateway#GetStage": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetStageRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Stage" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets information about a Stage resource.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/stages/{stageName}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetStageRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "stageName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the Stage resource to get information about.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Requests API Gateway to get information about a Stage resource.

" + } + }, + "com.amazonaws.apigateway#GetStages": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetStagesRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Stages" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets information about one or more Stage resources.

", + "smithy.api#http": { + "method": "GET", + "uri": "/restapis/{restApiId}/stages", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetStagesRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "deploymentId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The stages' deployment identifiers.

", + "smithy.api#httpQuery": "deploymentId" + } + } + }, + "traits": { + "smithy.api#documentation": "

Requests API Gateway to get information about one or more Stage resources.

" + } + }, + "com.amazonaws.apigateway#GetTags": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetTagsRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Tags" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets the Tags collection for a given resource.

", + "smithy.api#http": { + "method": "GET", + "uri": "/tags/{resourceArn}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetTagsRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The ARN of a resource that can be tagged.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

(Not currently supported) The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

(Not currently supported) The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#documentation": "

Gets the Tags collection for a given resource.

" + } + }, + "com.amazonaws.apigateway#GetUsage": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetUsageRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Usage" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets the usage data of a usage plan in a specified time interval.

", + "smithy.api#http": { + "method": "GET", + "uri": "/usageplans/{usagePlanId}/usage", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "position", + "outputToken": "position", + "items": "items", + "pageSize": "limit" + } + } + }, + "com.amazonaws.apigateway#GetUsagePlan": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetUsagePlanRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#UsagePlan" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets a usage plan of a given plan identifier.

", + "smithy.api#http": { + "method": "GET", + "uri": "/usageplans/{usagePlanId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetUsagePlanKey": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetUsagePlanKeyRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#UsagePlanKey" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets a usage plan key of a given key identifier.

", + "smithy.api#http": { + "method": "GET", + "uri": "/usageplans/{usagePlanId}/keys/{keyId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetUsagePlanKeyRequest": { + "type": "structure", + "members": { + "usagePlanId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved UsagePlanKey resource representing a plan customer.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "keyId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The key Id of the to-be-retrieved UsagePlanKey resource representing a plan customer.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The GET request to get a usage plan key of a given key identifier.

" + } + }, + "com.amazonaws.apigateway#GetUsagePlanKeys": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetUsagePlanKeysRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#UsagePlanKeys" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets all the usage plan keys representing the API keys added to a specified usage plan.

", + "smithy.api#http": { + "method": "GET", + "uri": "/usageplans/{usagePlanId}/keys", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "position", + "outputToken": "position", + "items": "items", + "pageSize": "limit" + } + } + }, + "com.amazonaws.apigateway#GetUsagePlanKeysRequest": { + "type": "structure", + "members": { + "usagePlanId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved UsagePlanKey resource representing a plan customer.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + }, + "nameQuery": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

A query parameter specifying the name of the to-be-returned usage plan keys.

", + "smithy.api#httpQuery": "name" + } + } + }, + "traits": { + "smithy.api#documentation": "

The GET request to get all the usage plan keys representing the API keys added to a specified usage plan.

" + } + }, + "com.amazonaws.apigateway#GetUsagePlanRequest": { + "type": "structure", + "members": { + "usagePlanId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the UsagePlan resource to be retrieved.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The GET request to get a usage plan of a given plan identifier.

" + } + }, + "com.amazonaws.apigateway#GetUsagePlans": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetUsagePlansRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#UsagePlans" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets all the usage plans of the caller's account.

", + "smithy.api#http": { + "method": "GET", + "uri": "/usageplans", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "position", + "outputToken": "position", + "items": "items", + "pageSize": "limit" + } + } + }, + "com.amazonaws.apigateway#GetUsagePlansRequest": { + "type": "structure", + "members": { + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "keyId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier of the API key associated with the usage plans.

", + "smithy.api#httpQuery": "keyId" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#documentation": "

The GET request to get all the usage plans of the caller's account.

" + } + }, + "com.amazonaws.apigateway#GetUsageRequest": { + "type": "structure", + "members": { + "usagePlanId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Id of the usage plan associated with the usage data.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "keyId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The Id of the API key associated with the resultant usage data.

", + "smithy.api#httpQuery": "keyId" + } + }, + "startDate": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The starting date (e.g., 2016-01-01) of the usage data.

", + "smithy.api#httpQuery": "startDate", + "smithy.api#required": {} + } + }, + "endDate": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The ending date (e.g., 2016-12-31) of the usage data.

", + "smithy.api#httpQuery": "endDate", + "smithy.api#required": {} + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#documentation": "

The GET request to get the usage data of a usage plan in a specified time interval.

" + } + }, + "com.amazonaws.apigateway#GetVpcLink": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetVpcLinkRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#VpcLink" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets a specified VPC link under the caller's account in a region.

", + "smithy.api#http": { + "method": "GET", + "uri": "/vpclinks/{vpcLinkId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#GetVpcLinkRequest": { + "type": "structure", + "members": { + "vpcLinkId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Gets a specified VPC link under the caller's account in a region.

" + } + }, + "com.amazonaws.apigateway#GetVpcLinks": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#GetVpcLinksRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#VpcLinks" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets the VpcLinks collection under the caller's account in a selected region.

", + "smithy.api#http": { + "method": "GET", + "uri": "/vpclinks", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "position", + "outputToken": "position", + "items": "items", + "pageSize": "limit" + } + } + }, + "com.amazonaws.apigateway#GetVpcLinksRequest": { + "type": "structure", + "members": { + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + }, + "limit": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

", + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#documentation": "

Gets the VpcLinks collection under the caller's account in a selected region.

" + } + }, + "com.amazonaws.apigateway#ImportApiKeys": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#ImportApiKeysRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#ApiKeyIds" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Import API keys from an external source, such as a CSV-formatted file.

", + "smithy.api#http": { + "method": "POST", + "uri": "/apikeys?mode=import", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#ImportApiKeysRequest": { + "type": "structure", + "members": { + "format": { + "target": "com.amazonaws.apigateway#ApiKeysFormat", + "traits": { + "smithy.api#documentation": "

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

", + "smithy.api#httpQuery": "format", + "smithy.api#required": {} + } + }, + "failOnWarnings": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

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

", + "smithy.api#httpQuery": "failonwarnings" + } + } + }, + "traits": { + "smithy.api#documentation": "

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

" + } + }, + "com.amazonaws.apigateway#ImportDocumentationParts": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#ImportDocumentationPartsRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#DocumentationPartIds" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#http": { + "method": "PUT", + "uri": "/restapis/{restApiId}/documentation/parts", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#ImportDocumentationPartsRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "mode": { + "target": "com.amazonaws.apigateway#PutMode", + "traits": { + "smithy.api#documentation": "

A query parameter to indicate whether to overwrite (OVERWRITE) any existing DocumentationParts definition or to merge (MERGE) the new definition into the existing one. The default value is MERGE.

", + "smithy.api#httpQuery": "mode" + } + }, + "failOnWarnings": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

A query parameter to specify whether to rollback the documentation importation (true) or not (false) when a warning is encountered. The default value is false.

", + "smithy.api#httpQuery": "failonwarnings" + } + } + }, + "traits": { + "smithy.api#documentation": "

Import documentation parts from an external (e.g., OpenAPI) definition file.

" + } + }, + "com.amazonaws.apigateway#ImportRestApi": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#ImportRestApiRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#RestApi" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

A feature of the API Gateway control service for creating a new API from an external API definition file.

", + "smithy.api#http": { + "method": "POST", + "uri": "/restapis?mode=import", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#ImportRestApiRequest": { + "type": "structure", + "members": { + "failOnWarnings": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

A query parameter to indicate whether to rollback the API creation (true) or not (false)\n when a warning is encountered. The default value is false.

", + "smithy.api#httpQuery": "failonwarnings" + } + }, + "parameters": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

A key-value map of context-specific query string parameters specifying the behavior of different API importing operations. The following shows operation-specific parameters and their supported values.

\n

To exclude DocumentationParts from the import, set parameters as ignore=documentation.

\n

To configure the endpoint type, set parameters as endpointConfigurationTypes=EDGE, endpointConfigurationTypes=REGIONAL, or endpointConfigurationTypes=PRIVATE. The default endpoint type is EDGE.

\n

To handle imported basepath, set parameters as basepath=ignore, basepath=prepend or basepath=split.

\n

For example, the AWS CLI command to exclude documentation from the imported API is:

\n
aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'
\n

The AWS CLI command to set the regional endpoint on the imported API is:

\n
aws apigateway import-rest-api --parameters endpointConfigurationTypes=REGIONAL --body 'file:///path/to/imported-api-body.json'
" + } + } + }, + "traits": { + "smithy.api#documentation": "

A POST request to import an API to API Gateway using an input of an API definition file.

" + } + }, + "com.amazonaws.apigateway#Integer": { + "type": "integer" + }, + "com.amazonaws.apigateway#Integration": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.apigateway#IntegrationType", + "traits": { + "smithy.api#documentation": "

Specifies an API method integration type. The valid value is one of the following:

\n
    \n
  • AWS: for integrating the API method request with an AWS service action, including the Lambda function-invoking action. With the Lambda function-invoking action, this is referred to as the Lambda custom integration. With any other AWS service action, this is known as AWS integration.
  • \n
  • AWS_PROXY: for integrating the API method request with the Lambda function-invoking action with the client request passed through as-is. This integration is also referred to as the Lambda proxy integration.
  • \n
  • HTTP: for integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC. This integration is also referred to as the HTTP custom integration.
  • \n
  • HTTP_PROXY: for integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC, with the client request passed through as-is. This is also referred to as the HTTP proxy integration.
  • \n
  • MOCK: for integrating the API method request with API Gateway as a \"loop-back\" endpoint without invoking any backend.
  • \n
\n

For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy integration with a connectionType of VPC_LINK is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.

" + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies the integration's HTTP method type.

" + } + }, + "uri": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies Uniform Resource Identifier (URI) of the integration endpoint.

\n
    \n
  • For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where connectionType is not VPC_LINK, or private integration, where connectionType is VPC_LINK. For a private HTTP integration, the URI is not used for routing.

    \n
  • \n
  • For AWS or AWS_PROXY integrations, the URI is of the form arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}

    \n
" + } + }, + "connectionType": { + "target": "com.amazonaws.apigateway#ConnectionType", + "traits": { + "smithy.api#documentation": "

The type of the network connection to the integration endpoint. The valid value is INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and a network load balancer in a VPC. The default value is INTERNET.

" + } + }, + "connectionId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwise.

" + } + }, + "credentials": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for 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.

" + } + }, + "requestParameters": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

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.

" + } + }, + "requestTemplates": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

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.

" + } + }, + "passthroughBehavior": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "
\n

\n Specifies how the method request body of an unmapped content type will be passed through the integration request\n to the back end without transformation. A content type is unmapped if no mapping template is defined in the integration\n or the content type does not match any of the mapped content types, as specified in requestTemplates.\n The valid value is one of the following:\n

\n
    \n
  • \n WHEN_NO_MATCH: passes the method request body through the integration request to the back end without transformation\n when the method request content type does not match any content type associated with the mapping templates defined in the integration request.\n
  • \n
  • \n WHEN_NO_TEMPLATES: passes the method request body through the integration request to the back end without transformation\n when no mapping template is defined in the integration request. If a template is defined when this option is selected, the method request\n of an unmapped content-type will be rejected with an HTTP 415 Unsupported Media Type response.\n
  • \n
  • \n NEVER: rejects the method request with an HTTP 415 Unsupported Media Type response when either the method\n request content type does not match any content type associated with the mapping templates defined in the integration request or\n no mapping template is defined in the integration request.\n
  • \n
\n
" + } + }, + "contentHandling": { + "target": "com.amazonaws.apigateway#ContentHandlingStrategy", + "traits": { + "smithy.api#documentation": "

Specifies how to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

\n
    \n
  • CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded string to the corresponding binary blob.

  • \n
  • CONVERT_TO_TEXT: Converts a request payload from a binary blob to a Base64-encoded string.

  • \n
\n

If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehavior is configured to support payload pass-through.

" + } + }, + "timeoutInMillis": { + "target": "com.amazonaws.apigateway#Integer", + "traits": { + "smithy.api#documentation": "

Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.

" + } + }, + "cacheNamespace": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the cacheNamespace. You can specify the same cacheNamespace across resources to return the same cached data for requests to different resources.

" + } + }, + "cacheKeyParameters": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A list of request parameters whose values API Gateway caches. To be valid values for cacheKeyParameters, these parameters must also be specified for Method requestParameters.

" + } + }, + "integrationResponses": { + "target": "com.amazonaws.apigateway#MapOfIntegrationResponse", + "traits": { + "smithy.api#documentation": "

Specifies the integration's responses.

\n
\n

\n

Example: Get integration responses of a method

\n
Request
\n

\n
GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200 HTTP/1.1\nContent-Type: application/json\nHost: apigateway.us-east-1.amazonaws.com\nX-Amz-Date: 20160607T191449Z\nAuthorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160607/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}\n
\n
Response
\n

The successful response returns 200 OK status and a payload as follows:

\n
{\n  \"_links\": {\n    \"curies\": {\n      \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html\",\n      \"name\": \"integrationresponse\",\n      \"templated\": true\n    },\n    \"self\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200\",\n      \"title\": \"200\"\n    },\n    \"integrationresponse:delete\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200\"\n    },\n    \"integrationresponse:update\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200\"\n    }\n  },\n  \"responseParameters\": {\n    \"method.response.header.Content-Type\": \"'application/xml'\"\n  },\n  \"responseTemplates\": {\n    \"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\"\n  },\n  \"statusCode\": \"200\"\n}
\n

\n
\n " + } + }, + "tlsConfig": { + "target": "com.amazonaws.apigateway#TlsConfig", + "traits": { + "smithy.api#documentation": "

Specifies the TLS configuration for an integration.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration.

\n
In the API Gateway console, the built-in Lambda integration is an AWS integration.
\n " + } + }, + "com.amazonaws.apigateway#IntegrationResponse": { + "type": "structure", + "members": { + "statusCode": { + "target": "com.amazonaws.apigateway#StatusCode", + "traits": { + "smithy.api#documentation": "

Specifies the status code that is used to map the integration response to an existing MethodResponse.

" + } + }, + "selectionPattern": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies the regular expression (regex) pattern used to choose an integration 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.

" + } + }, + "responseParameters": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

A key-value map specifying response parameters that are passed to the method response from the back end.\n 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.

" + } + }, + "responseTemplates": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

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.

" + } + }, + "contentHandling": { + "target": "com.amazonaws.apigateway#ContentHandlingStrategy", + "traits": { + "smithy.api#documentation": "

Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

\n
    \n
  • CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

  • \n
  • CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

  • \n
\n

If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents an integration response. The status code must map to an existing MethodResponse, and parameters and templates can be used to transform the back-end response.

\n " + } + }, + "com.amazonaws.apigateway#IntegrationType": { + "type": "string", + "traits": { + "smithy.api#documentation": "

The integration type. The valid value is HTTP for integrating an API method with an HTTP backend; AWS with any AWS service endpoints; MOCK for testing without actually invoking the backend; HTTP_PROXY for integrating with the HTTP proxy integration; AWS_PROXY for integrating with the Lambda proxy integration.

", + "smithy.api#enum": [ + { + "value": "HTTP", + "name": "HTTP" + }, + { + "value": "AWS", + "name": "AWS" + }, + { + "value": "MOCK", + "name": "MOCK" + }, + { + "value": "HTTP_PROXY", + "name": "HTTP_PROXY" + }, + { + "value": "AWS_PROXY", + "name": "AWS_PROXY" + } + ] + } + }, + "com.amazonaws.apigateway#LimitExceededException": { + "type": "structure", + "members": { + "retryAfterSeconds": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#httpHeader": "Retry-After" + } + }, + "message": { + "target": "com.amazonaws.apigateway#String" + } + }, + "traits": { + "smithy.api#documentation": "

The request exceeded the rate limit. Retry after the specified time period.

", + "smithy.api#error": "client", + "smithy.api#httpError": 429 + } + }, + "com.amazonaws.apigateway#ListOfARNs": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#ProviderARN" + } + }, + "com.amazonaws.apigateway#ListOfApiKey": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#ApiKey" + } + }, + "com.amazonaws.apigateway#ListOfApiStage": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#ApiStage" + } + }, + "com.amazonaws.apigateway#ListOfAuthorizer": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#Authorizer" + } + }, + "com.amazonaws.apigateway#ListOfBasePathMapping": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#BasePathMapping" + } + }, + "com.amazonaws.apigateway#ListOfClientCertificate": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#ClientCertificate" + } + }, + "com.amazonaws.apigateway#ListOfDeployment": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#Deployment" + } + }, + "com.amazonaws.apigateway#ListOfDocumentationPart": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#DocumentationPart" + } + }, + "com.amazonaws.apigateway#ListOfDocumentationVersion": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#DocumentationVersion" + } + }, + "com.amazonaws.apigateway#ListOfDomainName": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#DomainName" + } + }, + "com.amazonaws.apigateway#ListOfEndpointType": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#EndpointType" + } + }, + "com.amazonaws.apigateway#ListOfGatewayResponse": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#GatewayResponse" + } + }, + "com.amazonaws.apigateway#ListOfLong": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#Long" + } + }, + "com.amazonaws.apigateway#ListOfModel": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#Model" + } + }, + "com.amazonaws.apigateway#ListOfPatchOperation": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#PatchOperation" + }, + "traits": { + "smithy.api#documentation": "A list of operations describing the updates to apply to the specified resource. The patches are applied\n in the order specified in the list." + } + }, + "com.amazonaws.apigateway#ListOfRequestValidator": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#RequestValidator" + } + }, + "com.amazonaws.apigateway#ListOfResource": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#Resource" + } + }, + "com.amazonaws.apigateway#ListOfRestApi": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#RestApi" + } + }, + "com.amazonaws.apigateway#ListOfSdkConfigurationProperty": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#SdkConfigurationProperty" + } + }, + "com.amazonaws.apigateway#ListOfSdkType": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#SdkType" + } + }, + "com.amazonaws.apigateway#ListOfStage": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#Stage" + } + }, + "com.amazonaws.apigateway#ListOfStageKeys": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#StageKey" + } + }, + "com.amazonaws.apigateway#ListOfString": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#String" + } + }, + "com.amazonaws.apigateway#ListOfUsage": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#ListOfLong" + } + }, + "com.amazonaws.apigateway#ListOfUsagePlan": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#UsagePlan" + } + }, + "com.amazonaws.apigateway#ListOfUsagePlanKey": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#UsagePlanKey" + } + }, + "com.amazonaws.apigateway#ListOfVpcLink": { + "type": "list", + "member": { + "target": "com.amazonaws.apigateway#VpcLink" + } + }, + "com.amazonaws.apigateway#LocationStatusType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "DOCUMENTED", + "name": "DOCUMENTED" + }, + { + "value": "UNDOCUMENTED", + "name": "UNDOCUMENTED" + } + ] + } + }, + "com.amazonaws.apigateway#Long": { + "type": "long" + }, + "com.amazonaws.apigateway#MapOfApiStageThrottleSettings": { + "type": "map", + "key": { + "target": "com.amazonaws.apigateway#String" + }, + "value": { + "target": "com.amazonaws.apigateway#ThrottleSettings" + } + }, + "com.amazonaws.apigateway#MapOfIntegrationResponse": { + "type": "map", + "key": { + "target": "com.amazonaws.apigateway#String" + }, + "value": { + "target": "com.amazonaws.apigateway#IntegrationResponse" + } + }, + "com.amazonaws.apigateway#MapOfKeyUsages": { + "type": "map", + "key": { + "target": "com.amazonaws.apigateway#String" + }, + "value": { + "target": "com.amazonaws.apigateway#ListOfUsage" + } + }, + "com.amazonaws.apigateway#MapOfMethod": { + "type": "map", + "key": { + "target": "com.amazonaws.apigateway#String" + }, + "value": { + "target": "com.amazonaws.apigateway#Method" + } + }, + "com.amazonaws.apigateway#MapOfMethodResponse": { + "type": "map", + "key": { + "target": "com.amazonaws.apigateway#String" + }, + "value": { + "target": "com.amazonaws.apigateway#MethodResponse" + } + }, + "com.amazonaws.apigateway#MapOfMethodSettings": { + "type": "map", + "key": { + "target": "com.amazonaws.apigateway#String" + }, + "value": { + "target": "com.amazonaws.apigateway#MethodSetting" + } + }, + "com.amazonaws.apigateway#MapOfMethodSnapshot": { + "type": "map", + "key": { + "target": "com.amazonaws.apigateway#String" + }, + "value": { + "target": "com.amazonaws.apigateway#MethodSnapshot" + } + }, + "com.amazonaws.apigateway#MapOfStringToBoolean": { + "type": "map", + "key": { + "target": "com.amazonaws.apigateway#String" + }, + "value": { + "target": "com.amazonaws.apigateway#NullableBoolean" + } + }, + "com.amazonaws.apigateway#MapOfStringToList": { + "type": "map", + "key": { + "target": "com.amazonaws.apigateway#String" + }, + "value": { + "target": "com.amazonaws.apigateway#ListOfString" + } + }, + "com.amazonaws.apigateway#MapOfStringToString": { + "type": "map", + "key": { + "target": "com.amazonaws.apigateway#String" + }, + "value": { + "target": "com.amazonaws.apigateway#String" + } + }, + "com.amazonaws.apigateway#Method": { + "type": "structure", + "members": { + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The method's HTTP verb.

" + } + }, + "authorizationType": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

" + } + }, + "authorizerId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier of an Authorizer to use on this method. The authorizationType must be CUSTOM.

" + } + }, + "apiKeyRequired": { + "target": "com.amazonaws.apigateway#NullableBoolean", + "traits": { + "smithy.api#documentation": "

A boolean flag specifying whether a valid ApiKey is required to invoke this method.

" + } + }, + "requestValidatorId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier of a RequestValidator for request validation.

" + } + }, + "operationName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

A human-friendly operation identifier for the method. For example, you can assign the operationName of ListPets for the GET /pets method in the PetStore example.

" + } + }, + "requestParameters": { + "target": "com.amazonaws.apigateway#MapOfStringToBoolean", + "traits": { + "smithy.api#documentation": "

A key-value map defining required or optional method request parameters that can be accepted by 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.

" + } + }, + "requestModels": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

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).

" + } + }, + "methodResponses": { + "target": "com.amazonaws.apigateway#MapOfMethodResponse", + "traits": { + "smithy.api#documentation": "

Gets a method response associated with a given HTTP status code.

\n
\n

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.

\n

Example: Get a 200 OK response of a GET method

\n
Request
\n

\n
GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200 HTTP/1.1\nContent-Type: application/json\nHost: apigateway.us-east-1.amazonaws.com\nContent-Length: 117\nX-Amz-Date: 20160613T215008Z\nAuthorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
\n
Response
\n

The successful response returns a 200 OK status code and a payload similar to the following:

\n
{\n  \"_links\": {\n    \"curies\": {\n      \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html\",\n      \"name\": \"methodresponse\",\n      \"templated\": true\n    },\n    \"self\": {\n      \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200\",\n      \"title\": \"200\"\n    },\n    \"methodresponse:delete\": {\n      \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200\"\n    },\n    \"methodresponse:update\": {\n      \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/responses/200\"\n    }\n  },\n  \"responseModels\": {\n    \"application/json\": \"Empty\"\n  },\n  \"responseParameters\": {\n    \"method.response.header.operator\": false,\n    \"method.response.header.operand_2\": false,\n    \"method.response.header.operand_1\": false\n  },\n  \"statusCode\": \"200\"\n}
\n

\n
\n
\n AWS CLI\n
" + } + }, + "methodIntegration": { + "target": "com.amazonaws.apigateway#Integration", + "traits": { + "smithy.api#documentation": "

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.

\n
\n

\n

Example:

\n
Request
\n

\n
GET /restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration HTTP/1.1\nContent-Type: application/json\nHost: apigateway.us-east-1.amazonaws.com\nContent-Length: 117\nX-Amz-Date: 20160613T213210Z\nAuthorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160613/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
\n
Response
\n

The successful response returns a 200 OK status code and a payload similar to the following:

\n
{\n  \"_links\": {\n    \"curies\": [\n      {\n        \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html\",\n        \"name\": \"integration\",\n        \"templated\": true\n      },\n      {\n        \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html\",\n        \"name\": \"integrationresponse\",\n        \"templated\": true\n      }\n    ],\n    \"self\": {\n      \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration\"\n    },\n    \"integration:delete\": {\n      \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration\"\n    },\n    \"integration:responses\": {\n      \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200\",\n      \"name\": \"200\",\n      \"title\": \"200\"\n    },\n    \"integration:update\": {\n      \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration\"\n    },\n    \"integrationresponse:put\": {\n      \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/{status_code}\",\n      \"templated\": true\n    }\n  },\n  \"cacheKeyParameters\": [],\n  \"cacheNamespace\": \"0cjtch\",\n  \"credentials\": \"arn:aws:iam::123456789012:role/apigAwsProxyRole\",\n  \"httpMethod\": \"POST\",\n  \"passthroughBehavior\": \"WHEN_NO_MATCH\",\n  \"requestTemplates\": {\n    \"application/json\": \"{\\n    \\\"a\\\":  \\\"$input.params('operand1')\\\",\\n    \\\"b\\\":  \\\"$input.params('operand2')\\\", \\n    \\\"op\\\": \\\"$input.params('operator')\\\"   \\n}\"\n  },\n  \"type\": \"AWS\",\n  \"uri\": \"arn:aws:apigateway:us-west-2:lambda:path//2015-03-31/functions/arn:aws:lambda:us-west-2:123456789012:function:Calc/invocations\",\n  \"_embedded\": {\n    \"integration:responses\": {\n      \"_links\": {\n        \"self\": {\n          \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200\",\n          \"name\": \"200\",\n          \"title\": \"200\"\n        },\n        \"integrationresponse:delete\": {\n          \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200\"\n        },\n        \"integrationresponse:update\": {\n          \"href\": \"/restapis/uojnr9hd57/resources/0cjtch/methods/GET/integration/responses/200\"\n        }\n      },\n      \"responseParameters\": {\n        \"method.response.header.operator\": \"integration.response.body.op\",\n        \"method.response.header.operand_2\": \"integration.response.body.b\",\n        \"method.response.header.operand_1\": \"integration.response.body.a\"\n      },\n      \"responseTemplates\": {\n        \"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}\"\n      },\n      \"selectionPattern\": \"\",\n      \"statusCode\": \"200\"\n    }\n  }\n}
\n

\n
\n
\n AWS CLI\n
" + } + }, + "authorizationScopes": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A list of authorization scopes configured on the method. The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n Represents a client-facing interface by which the client calls the API to access back-end resources. A Method resource is\n integrated with an Integration resource. Both consist of a request and one or more responses. The method request takes\n the client input that is passed to the back end through the integration request. A method response returns the output from\n the back end to the client through an integration response. A method request is embodied in a Method resource, whereas\n an integration request is embodied in an Integration resource. On the other hand, a method response is represented\n by a MethodResponse resource, whereas an integration response is represented by an IntegrationResponse resource.\n

\n
\n

\n

Example: Retrive the GET method on a specified resource

\n
Request
\n

The following example request retrieves the information about the GET method on an API resource (3kzxbg5sa2) of an API (fugvjdxtri).

\n
GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1\nContent-Type: application/json\nHost: apigateway.us-east-1.amazonaws.com\nX-Amz-Date: 20160603T210259Z\nAuthorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
\n
Response
\n

The successful response returns a 200 OK status code and a payload similar to the following:

\n
{\n  \"_links\": {\n    \"curies\": [\n      {\n        \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html\",\n        \"name\": \"integration\",\n        \"templated\": true\n      },\n      {\n        \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html\",\n        \"name\": \"integrationresponse\",\n        \"templated\": true\n      },\n      {\n        \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html\",\n        \"name\": \"method\",\n        \"templated\": true\n      },\n      {\n        \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html\",\n        \"name\": \"methodresponse\",\n        \"templated\": true\n      }\n    ],\n    \"self\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET\",\n      \"name\": \"GET\",\n      \"title\": \"GET\"\n    },\n    \"integration:put\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration\"\n    },\n    \"method:delete\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET\"\n    },\n    \"method:integration\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration\"\n    },\n    \"method:responses\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200\",\n      \"name\": \"200\",\n      \"title\": \"200\"\n    },\n    \"method:update\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET\"\n    },\n    \"methodresponse:put\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}\",\n      \"templated\": true\n    }\n  },\n  \"apiKeyRequired\": true,\n  \"authorizationType\": \"NONE\",\n  \"httpMethod\": \"GET\",\n  \"_embedded\": {\n    \"method:integration\": {\n      \"_links\": {\n        \"self\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration\"\n        },\n        \"integration:delete\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration\"\n        },\n        \"integration:responses\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200\",\n          \"name\": \"200\",\n          \"title\": \"200\"\n        },\n        \"integration:update\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration\"\n        },\n        \"integrationresponse:put\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}\",\n          \"templated\": true\n        }\n      },\n      \"cacheKeyParameters\": [],\n      \"cacheNamespace\": \"3kzxbg5sa2\",\n      \"credentials\": \"arn:aws:iam::123456789012:role/apigAwsProxyRole\",\n      \"httpMethod\": \"POST\",\n      \"passthroughBehavior\": \"WHEN_NO_MATCH\",\n      \"requestParameters\": {\n        \"integration.request.header.Content-Type\": \"'application/x-amz-json-1.1'\"\n      },\n      \"requestTemplates\": {\n        \"application/json\": \"{\\n}\"\n      },\n      \"type\": \"AWS\",\n      \"uri\": \"arn:aws:apigateway:us-east-1:kinesis:action/ListStreams\",\n      \"_embedded\": {\n        \"integration:responses\": {\n          \"_links\": {\n            \"self\": {\n              \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200\",\n              \"name\": \"200\",\n              \"title\": \"200\"\n            },\n            \"integrationresponse:delete\": {\n              \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200\"\n            },\n            \"integrationresponse:update\": {\n              \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200\"\n            }\n          },\n          \"responseParameters\": {\n            \"method.response.header.Content-Type\": \"'application/xml'\"\n          },\n          \"responseTemplates\": {\n            \"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\\\")\"\n          },\n          \"statusCode\": \"200\"\n        }\n      }\n    },\n    \"method:responses\": {\n      \"_links\": {\n        \"self\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200\",\n          \"name\": \"200\",\n          \"title\": \"200\"\n        },\n        \"methodresponse:delete\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200\"\n        },\n        \"methodresponse:update\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200\"\n        }\n      },\n      \"responseModels\": {\n        \"application/json\": \"Empty\"\n      },\n      \"responseParameters\": {\n        \"method.response.header.Content-Type\": false\n      },\n      \"statusCode\": \"200\"\n    }\n  }\n}
\n

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() helper function.

\n
\n " + } + }, + "com.amazonaws.apigateway#MethodResponse": { + "type": "structure", + "members": { + "statusCode": { + "target": "com.amazonaws.apigateway#StatusCode", + "traits": { + "smithy.api#documentation": "

The method response's status code.

" + } + }, + "responseParameters": { + "target": "com.amazonaws.apigateway#MapOfStringToBoolean", + "traits": { + "smithy.api#documentation": "

A key-value map specifying required or optional response parameters that 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. 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.)

" + } + }, + "responseModels": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

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.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

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.

\n
\n

\n

Example: A MethodResponse instance of an API

\n
Request
\n

The example request retrieves a MethodResponse of the 200 status code.

\n
GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200 HTTP/1.1\nContent-Type: application/json\nHost: apigateway.us-east-1.amazonaws.com\nX-Amz-Date: 20160603T222952Z\nAuthorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160603/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
\n
Response
\n

The successful response returns 200 OK status and a payload as follows:

\n
{\n  \"_links\": {\n    \"curies\": {\n      \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html\",\n      \"name\": \"methodresponse\",\n      \"templated\": true\n    },\n    \"self\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200\",\n      \"title\": \"200\"\n    },\n    \"methodresponse:delete\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200\"\n    },\n    \"methodresponse:update\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200\"\n    }\n  },\n  \"responseModels\": {\n    \"application/json\": \"Empty\"\n  },\n  \"responseParameters\": {\n    \"method.response.header.Content-Type\": false\n  },\n  \"statusCode\": \"200\"\n}
\n

\n
\n " + } + }, + "com.amazonaws.apigateway#MethodSetting": { + "type": "structure", + "members": { + "metricsEnabled": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

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.

" + } + }, + "loggingLevel": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies the logging level for this method, which affects 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. Choose ERROR to write only error-level entries to CloudWatch Logs, or choose INFO to include all ERROR events as well as extra informational events.

" + } + }, + "dataTraceEnabled": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether data trace logging is enabled for this method, which affects 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.

" + } + }, + "throttlingBurstLimit": { + "target": "com.amazonaws.apigateway#Integer", + "traits": { + "smithy.api#documentation": "

Specifies the throttling burst limit. The PATCH path for this setting is /{method_setting_key}/throttling/burstLimit, and the value is an integer.

" + } + }, + "throttlingRateLimit": { + "target": "com.amazonaws.apigateway#Double", + "traits": { + "smithy.api#documentation": "

Specifies the throttling rate limit. The PATCH path for this setting is /{method_setting_key}/throttling/rateLimit, and the value is a double.

" + } + }, + "cachingEnabled": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

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.

" + } + }, + "cacheTtlInSeconds": { + "target": "com.amazonaws.apigateway#Integer", + "traits": { + "smithy.api#documentation": "

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 setting is /{method_setting_key}/caching/ttlInSeconds, and the value is an integer.

" + } + }, + "cacheDataEncrypted": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

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.

" + } + }, + "requireAuthorizationForCacheControl": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

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.

" + } + }, + "unauthorizedCacheControlHeaderStrategy": { + "target": "com.amazonaws.apigateway#UnauthorizedCacheControlHeaderStrategy", + "traits": { + "smithy.api#documentation": "

Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy, and the available values are FAIL_WITH_403, SUCCEED_WITH_RESPONSE_HEADER, SUCCEED_WITHOUT_RESPONSE_HEADER.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies the method setting properties.

" + } + }, + "com.amazonaws.apigateway#MethodSnapshot": { + "type": "structure", + "members": { + "authorizationType": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

" + } + }, + "apiKeyRequired": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether the method requires a valid ApiKey.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a summary of a Method resource, given a particular date and time.

" + } + }, + "com.amazonaws.apigateway#Model": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier for the model resource.

" + } + }, + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of the model. Must be an alphanumeric string.

" + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of the model.

" + } + }, + "schema": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The schema for the model. For application/json models, this should be JSON schema draft 4 model. 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.

" + } + }, + "contentType": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The content-type for the model.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents the data structure of a method's request or response payload.

\n
\n

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.

\n

A model is used for generating an API's SDK, validating the input request body, and creating a skeletal mapping template.

\n
\n " + } + }, + "com.amazonaws.apigateway#Models": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfModel", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a collection of Model resources.

\n " + } + }, + "com.amazonaws.apigateway#MutualTlsAuthentication": { + "type": "structure", + "members": { + "truststoreUri": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

An Amazon S3 URL that specifies the truststore for mutual TLS authentication,\n for example s3://bucket-name/key-name.\n The truststore can contain certificates from public or private certificate authorities.\n To update the truststore, upload a new version to S3, and then update your custom domain\n name to use the new version. To update the truststore, you must have permissions to\n access the S3 object.

" + } + }, + "truststoreVersion": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The version of the S3 object that contains your truststore. To\n specify a version, you must have versioning enabled for the S3 bucket.

" + } + }, + "truststoreWarnings": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A list of warnings that API Gateway returns while processing your truststore. Invalid\n certificates produce warnings. Mutual TLS is still enabled, but some clients might not\n be able to access your API. To resolve warnings, upload a new truststore to S3, and then\n update you domain name to use the new version.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your custom domain name.

" + } + }, + "com.amazonaws.apigateway#MutualTlsAuthenticationInput": { + "type": "structure", + "members": { + "truststoreUri": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

An Amazon S3 resource ARN that specifies the truststore for mutual TLS authentication,\n for example,\n s3://bucket-name/key-name.\n The truststore can contain certificates from public or private certificate authorities.\n To update the truststore, upload a new version to S3, and then update your custom domain\n name to use the new version. To update the truststore, you must have permissions to\n access the S3 object.

" + } + }, + "truststoreVersion": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The version of the S3 object that contains your truststore. To\n specify a version, you must have versioning enabled for the S3 bucket.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your custom domain name.

" + } + }, + "com.amazonaws.apigateway#NotFoundException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.apigateway#String" + } + }, + "traits": { + "smithy.api#documentation": "

The requested resource is not found. Make sure that the request URI is correct.

", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.apigateway#NullableBoolean": { + "type": "boolean", + "traits": { + "smithy.api#box": {} + } + }, + "com.amazonaws.apigateway#NullableInteger": { + "type": "integer", + "traits": { + "smithy.api#box": {} + } + }, + "com.amazonaws.apigateway#Op": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "add", + "name": "add" + }, + { + "value": "remove", + "name": "remove" + }, + { + "value": "replace", + "name": "replace" + }, + { + "value": "move", + "name": "move" + }, + { + "value": "copy", + "name": "copy" + }, + { + "value": "test", + "name": "test" + } + ] + } + }, + "com.amazonaws.apigateway#PatchOperation": { + "type": "structure", + "members": { + "op": { + "target": "com.amazonaws.apigateway#Op", + "traits": { + "smithy.api#documentation": "

An update operation to be performed with this PATCH request. The valid value can be add, remove, replace or copy. 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.

" + } + }, + "path": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The op operation's target, as identified by a JSON Pointer 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.

" + } + }, + "value": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The new target value of the update operation. It is applicable for the add or replace operation. When using AWS CLI to update a property of a JSON value, enclose the JSON object with a pair of single quotes in a Linux shell, e.g., '{\"a\": ...}'. In a Windows shell, see Using JSON for Parameters.

" + } + }, + "from": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The copy update operation's source as identified by a JSON-Pointer value referencing the location within the targeted resource to copy the value from. For example, to promote a canary deployment, you copy the canary deployment ID to the affiliated deployment ID by calling a PATCH request on a Stage resource with \"op\":\"copy\", \"from\":\"/canarySettings/deploymentId\" and \"path\":\"/deploymentId\".

" + } + } + }, + "traits": { + "smithy.api#documentation": "A single patch operation to apply to the specified resource. Please refer to\n http://tools.ietf.org/html/rfc6902#section-4 for an explanation of how each operation is used." + } + }, + "com.amazonaws.apigateway#PathToMapOfMethodSnapshot": { + "type": "map", + "key": { + "target": "com.amazonaws.apigateway#String" + }, + "value": { + "target": "com.amazonaws.apigateway#MapOfMethodSnapshot" + } + }, + "com.amazonaws.apigateway#ProviderARN": { + "type": "string" + }, + "com.amazonaws.apigateway#PutGatewayResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#PutGatewayResponseRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#GatewayResponse" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/restapis/{restApiId}/gatewayresponses/{responseType}", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#PutGatewayResponseRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "responseType": { + "target": "com.amazonaws.apigateway#GatewayResponseType", + "traits": { + "smithy.api#documentation": "

[Required]

The response type of the associated GatewayResponse. Valid values are

  • ACCESS_DENIED
  • API_CONFIGURATION_ERROR
  • AUTHORIZER_FAILURE
  • AUTHORIZER_CONFIGURATION_ERROR
  • BAD_REQUEST_PARAMETERS
  • BAD_REQUEST_BODY
  • DEFAULT_4XX
  • DEFAULT_5XX
  • EXPIRED_TOKEN
  • INVALID_SIGNATURE
  • INTEGRATION_FAILURE
  • INTEGRATION_TIMEOUT
  • INVALID_API_KEY
  • MISSING_AUTHENTICATION_TOKEN
  • QUOTA_EXCEEDED
  • REQUEST_TOO_LARGE
  • RESOURCE_NOT_FOUND
  • THROTTLED
  • UNAUTHORIZED
  • UNSUPPORTED_MEDIA_TYPE

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "statusCode": { + "target": "com.amazonaws.apigateway#StatusCode", + "traits": { + "smithy.api#documentation": "The HTTP status code of the GatewayResponse." + } + }, + "responseParameters": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

" + } + }, + "responseTemplates": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi.

" + } + }, + "com.amazonaws.apigateway#PutIntegration": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#PutIntegrationRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Integration" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Sets up a method's integration.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#PutIntegrationRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a put integration request's resource ID.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a put integration request's HTTP method.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "type": { + "target": "com.amazonaws.apigateway#IntegrationType", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a put integration input's type.

", + "smithy.api#required": {} + } + }, + "integrationHttpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies a put integration HTTP method. When the integration type is HTTP or AWS, this field is required.

", + "smithy.api#jsonName": "httpMethod" + } + }, + "uri": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies Uniform Resource Identifier (URI) of the integration endpoint.

\n
    \n
  • For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where connectionType is not VPC_LINK, or private integration, where connectionType is VPC_LINK. For a private HTTP integration, the URI is not used for routing.

    \n
  • \n
  • For AWS or AWS_PROXY integrations, the URI is of the form arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}

    \n
" + } + }, + "connectionType": { + "target": "com.amazonaws.apigateway#ConnectionType", + "traits": { + "smithy.api#documentation": "

The type of the network connection to the integration endpoint. The valid value is INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and a network load balancer in a VPC. The default value is INTERNET.

" + } + }, + "connectionId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwise.

" + } + }, + "credentials": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies whether credentials are required for a put integration.

" + } + }, + "requestParameters": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

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.

" + } + }, + "requestTemplates": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

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.

" + } + }, + "passthroughBehavior": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies the pass-through behavior for incoming requests based on the Content-Type 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.\n

\n
    \n
  • WHEN_NO_MATCH passes the request body for unmapped content types through to the integration back end without transformation.

  • \n
  • NEVER rejects unmapped content types with an HTTP 415 'Unsupported Media Type' response.

  • \n
  • WHEN_NO_TEMPLATES allows pass-through when the integration has NO content 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.

  • \n
" + } + }, + "cacheNamespace": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the cacheNamespace. You can specify the same cacheNamespace across resources to return the same cached data for requests to different resources.

" + } + }, + "cacheKeyParameters": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A list of request parameters whose values API Gateway caches. To be valid values for cacheKeyParameters, these parameters must also be specified for Method requestParameters.

" + } + }, + "contentHandling": { + "target": "com.amazonaws.apigateway#ContentHandlingStrategy", + "traits": { + "smithy.api#documentation": "

Specifies how to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

\n
    \n
  • CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded string to the corresponding binary blob.

  • \n
  • CONVERT_TO_TEXT: Converts a request payload from a binary blob to a Base64-encoded string.

  • \n
\n

If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehavior is configured to support payload pass-through.

" + } + }, + "timeoutInMillis": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.

" + } + }, + "tlsConfig": { + "target": "com.amazonaws.apigateway#TlsConfig" + } + }, + "traits": { + "smithy.api#documentation": "

Sets up a method's integration.

" + } + }, + "com.amazonaws.apigateway#PutIntegrationResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#PutIntegrationResponseRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#IntegrationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Represents a put integration.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#PutIntegrationResponseRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a put integration response request's resource identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a put integration response request's HTTP method.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "statusCode": { + "target": "com.amazonaws.apigateway#StatusCode", + "traits": { + "smithy.api#documentation": "

[Required] Specifies the status code that is used to map the integration response to an existing MethodResponse.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "selectionPattern": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies the selection pattern of a put integration response.

" + } + }, + "responseParameters": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

A key-value map specifying response parameters that are passed to the method response from the back end.\n 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.

" + } + }, + "responseTemplates": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

Specifies a put integration response's templates.

" + } + }, + "contentHandling": { + "target": "com.amazonaws.apigateway#ContentHandlingStrategy", + "traits": { + "smithy.api#documentation": "

Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

\n
    \n
  • CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

  • \n
  • CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

  • \n
\n

If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a put integration response request.

" + } + }, + "com.amazonaws.apigateway#PutMethod": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#PutMethodRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Method" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Add a method to an existing Resource resource.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#PutMethodRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Resource identifier for the new Method resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies the method request's HTTP method type.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "authorizationType": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

", + "smithy.api#required": {} + } + }, + "authorizerId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

Specifies the identifier of an Authorizer to use on this Method, if the type is CUSTOM or COGNITO_USER_POOLS. The authorizer identifier is generated by API Gateway when you created the authorizer.

" + } + }, + "apiKeyRequired": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether the method required a valid ApiKey.

" + } + }, + "operationName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

A human-friendly operation identifier for the method. For example, you can assign the operationName of ListPets for the GET /pets method in the PetStore example.

" + } + }, + "requestParameters": { + "target": "com.amazonaws.apigateway#MapOfStringToBoolean", + "traits": { + "smithy.api#documentation": "

A key-value map defining required or optional method request parameters that can be accepted by 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.

" + } + }, + "requestModels": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

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.

" + } + }, + "requestValidatorId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier of a RequestValidator for validating the method request.

" + } + }, + "authorizationScopes": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

A list of authorization scopes configured on the method. The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to add a method to an existing Resource resource.

" + } + }, + "com.amazonaws.apigateway#PutMethodResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#PutMethodResponseRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#MethodResponse" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Adds a MethodResponse to an existing Method resource.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#PutMethodResponseRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Resource identifier for the Method resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The HTTP verb of the Method resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "statusCode": { + "target": "com.amazonaws.apigateway#StatusCode", + "traits": { + "smithy.api#documentation": "

[Required] The method response's status code.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "responseParameters": { + "target": "com.amazonaws.apigateway#MapOfStringToBoolean", + "traits": { + "smithy.api#documentation": "

A key-value map specifying required or optional response parameters that 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.)

" + } + }, + "responseModels": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

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.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to add a MethodResponse to an existing Method resource.

" + } + }, + "com.amazonaws.apigateway#PutMode": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "merge", + "name": "Merge" + }, + { + "value": "overwrite", + "name": "Overwrite" + } + ] + } + }, + "com.amazonaws.apigateway#PutRestApi": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#PutRestApiRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#RestApi" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

A feature of the API Gateway control service for updating an existing API with an input of external API definitions.\n The update can take the form of merging the supplied definition into the existing API or overwriting the existing API.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/restapis/{restApiId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#PutRestApiRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "mode": { + "target": "com.amazonaws.apigateway#PutMode", + "traits": { + "smithy.api#documentation": "

The mode query parameter to specify the update mode. Valid values are \"merge\" and \"overwrite\". By default,\n the update mode is \"merge\".

", + "smithy.api#httpQuery": "mode" + } + }, + "failOnWarnings": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

A query parameter to indicate whether to rollback the API update (true) or not (false)\n when a warning is encountered. The default value is false.

", + "smithy.api#httpQuery": "failonwarnings" + } + }, + "parameters": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

Custom header parameters as part of the request. For example, to exclude DocumentationParts from an imported API, set ignore=documentation as a parameters value, as in the AWS CLI command of aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A PUT request to update an existing API, with external API definitions specified as the request body.

" + } + }, + "com.amazonaws.apigateway#QuotaPeriodType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "DAY", + "name": "DAY" + }, + { + "value": "WEEK", + "name": "WEEK" + }, + { + "value": "MONTH", + "name": "MONTH" + } + ] + } + }, + "com.amazonaws.apigateway#QuotaSettings": { + "type": "structure", + "members": { + "limit": { + "target": "com.amazonaws.apigateway#Integer", + "traits": { + "smithy.api#documentation": "

The maximum number of requests that can be made in a given time period.

" + } + }, + "offset": { + "target": "com.amazonaws.apigateway#Integer", + "traits": { + "smithy.api#documentation": "

The day that a time period starts. For example, with a time period of WEEK, an offset of 0 starts on Sunday, and an offset of 1 starts on Monday.

" + } + }, + "period": { + "target": "com.amazonaws.apigateway#QuotaPeriodType", + "traits": { + "smithy.api#documentation": "

The time period in which the limit applies. Valid values are \"DAY\", \"WEEK\" or \"MONTH\".

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Quotas configured for a usage plan.

" + } + }, + "com.amazonaws.apigateway#RequestValidator": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier of this RequestValidator.

" + } + }, + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of this RequestValidator

" + } + }, + "validateRequestBody": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

A Boolean flag to indicate whether to validate a request body according to the configured Model schema.

" + } + }, + "validateRequestParameters": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

A Boolean flag to indicate whether to validate request parameters (true) or not (false).

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A set of validation rules for incoming Method requests.

\n
\n

In OpenAPI, a RequestValidator of an API is defined by the x-amazon-apigateway-request-validators.requestValidator object. It the referenced using the x-amazon-apigateway-request-validator property.

\n
\n " + } + }, + "com.amazonaws.apigateway#RequestValidators": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfRequestValidator", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

A collection of RequestValidator resources of a given RestApi.

\n
\n

In OpenAPI, the RequestValidators of an API is defined by the x-amazon-apigateway-request-validators extension.

\n
\n " + } + }, + "com.amazonaws.apigateway#Resource": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The resource's identifier.

" + } + }, + "parentId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The parent resource's identifier.

" + } + }, + "pathPart": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The last path segment for this resource.

" + } + }, + "path": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The full path for this resource.

" + } + }, + "resourceMethods": { + "target": "com.amazonaws.apigateway#MapOfMethod", + "traits": { + "smithy.api#documentation": "

Gets an API resource's method of a given HTTP verb.

\n
\n

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.

\n

Example: Get the GET method of an API resource

\n
Request
\n
GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1\nContent-Type: application/json\nHost: apigateway.us-east-1.amazonaws.com\nX-Amz-Date: 20170223T031827Z\nAuthorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20170223/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
\n
Response
\n
{\n  \"_links\": {\n    \"curies\": [\n      {\n        \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html\",\n        \"name\": \"integration\",\n        \"templated\": true\n      },\n      {\n        \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html\",\n        \"name\": \"integrationresponse\",\n        \"templated\": true\n      },\n      {\n        \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html\",\n        \"name\": \"method\",\n        \"templated\": true\n      },\n      {\n        \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-response-{rel}.html\",\n        \"name\": \"methodresponse\",\n        \"templated\": true\n      }\n    ],\n    \"self\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET\",\n      \"name\": \"GET\",\n      \"title\": \"GET\"\n    },\n    \"integration:put\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration\"\n    },\n    \"method:delete\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET\"\n    },\n    \"method:integration\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration\"\n    },\n    \"method:responses\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200\",\n      \"name\": \"200\",\n      \"title\": \"200\"\n    },\n    \"method:update\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET\"\n    },\n    \"methodresponse:put\": {\n      \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/{status_code}\",\n      \"templated\": true\n    }\n  },\n  \"apiKeyRequired\": false,\n  \"authorizationType\": \"NONE\",\n  \"httpMethod\": \"GET\",\n  \"_embedded\": {\n    \"method:integration\": {\n      \"_links\": {\n        \"self\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration\"\n        },\n        \"integration:delete\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration\"\n        },\n        \"integration:responses\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200\",\n          \"name\": \"200\",\n          \"title\": \"200\"\n        },\n        \"integration:update\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration\"\n        },\n        \"integrationresponse:put\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/{status_code}\",\n          \"templated\": true\n        }\n      },\n      \"cacheKeyParameters\": [],\n      \"cacheNamespace\": \"3kzxbg5sa2\",\n      \"credentials\": \"arn:aws:iam::123456789012:role/apigAwsProxyRole\",\n      \"httpMethod\": \"POST\",\n      \"passthroughBehavior\": \"WHEN_NO_MATCH\",\n      \"requestParameters\": {\n        \"integration.request.header.Content-Type\": \"'application/x-amz-json-1.1'\"\n      },\n      \"requestTemplates\": {\n        \"application/json\": \"{\\n}\"\n      },\n      \"type\": \"AWS\",\n      \"uri\": \"arn:aws:apigateway:us-east-1:kinesis:action/ListStreams\",\n      \"_embedded\": {\n        \"integration:responses\": {\n          \"_links\": {\n            \"self\": {\n              \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200\",\n              \"name\": \"200\",\n              \"title\": \"200\"\n            },\n            \"integrationresponse:delete\": {\n              \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200\"\n            },\n            \"integrationresponse:update\": {\n              \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200\"\n            }\n          },\n          \"responseParameters\": {\n            \"method.response.header.Content-Type\": \"'application/xml'\"\n          },\n          \"responseTemplates\": {\n            \"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\"\n          },\n          \"statusCode\": \"200\"\n        }\n      }\n    },\n    \"method:responses\": {\n      \"_links\": {\n        \"self\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200\",\n          \"name\": \"200\",\n          \"title\": \"200\"\n        },\n        \"methodresponse:delete\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200\"\n        },\n        \"methodresponse:update\": {\n          \"href\": \"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/responses/200\"\n        }\n      },\n      \"responseModels\": {\n        \"application/json\": \"Empty\"\n      },\n      \"responseParameters\": {\n        \"method.response.header.Content-Type\": false\n      },\n      \"statusCode\": \"200\"\n    }\n  }\n}
\n

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.

\n
\n
\n
" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents an API resource.

\n " + } + }, + "com.amazonaws.apigateway#Resources": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfResource", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a collection of Resource resources.

\n " + } + }, + "com.amazonaws.apigateway#RestApi": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The API's identifier. This identifier is unique across all of your APIs in API Gateway.

" + } + }, + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The API's name.

" + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The API's description.

" + } + }, + "createdDate": { + "target": "com.amazonaws.apigateway#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the API was created.

" + } + }, + "version": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

A version identifier for the API.

" + } + }, + "warnings": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

The warning messages reported when failonwarnings is turned on during API import.

" + } + }, + "binaryMediaTypes": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

" + } + }, + "minimumCompressionSize": { + "target": "com.amazonaws.apigateway#NullableInteger", + "traits": { + "smithy.api#documentation": "

A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.

" + } + }, + "apiKeySource": { + "target": "com.amazonaws.apigateway#ApiKeySourceType", + "traits": { + "smithy.api#documentation": "

The source of the API key for metering requests according to a usage plan. Valid values are:

  • HEADER to read the API key from the X-API-Key header of a request.
  • AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.

" + } + }, + "endpointConfiguration": { + "target": "com.amazonaws.apigateway#EndpointConfiguration", + "traits": { + "smithy.api#documentation": "

The endpoint configuration of this RestApi showing the endpoint types of the API.

" + } + }, + "policy": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.

" + } + }, + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The collection of tags. Each tag element is associated with a given resource.

" + } + }, + "disableExecuteApiEndpoint": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a REST API.

\n " + } + }, + "com.amazonaws.apigateway#RestApis": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfRestApi", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains references to your APIs and links that guide you in how to interact with your collection. A collection offers a paginated view of your APIs.

\n " + } + }, + "com.amazonaws.apigateway#SdkConfigurationProperty": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of a an SdkType configuration property.

" + } + }, + "friendlyName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The user-friendly name of an SdkType configuration property.

" + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of an SdkType configuration property.

" + } + }, + "required": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

A boolean flag of an SdkType configuration property to indicate if the associated SDK configuration property is required (true) or not (false).

" + } + }, + "defaultValue": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The default value of an SdkType configuration property.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A configuration property of an SDK type.

" + } + }, + "com.amazonaws.apigateway#SdkResponse": { + "type": "structure", + "members": { + "contentType": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The content-type header value in the HTTP response.

", + "smithy.api#httpHeader": "Content-Type" + } + }, + "contentDisposition": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The content-disposition header value in the HTTP response.

", + "smithy.api#httpHeader": "Content-Disposition" + } + }, + "body": { + "target": "com.amazonaws.apigateway#Blob", + "traits": { + "smithy.api#documentation": "

The binary blob response to GetSdk, which contains the generated SDK.

", + "smithy.api#httpPayload": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The binary blob response to GetSdk, which contains the generated SDK.

" + } + }, + "com.amazonaws.apigateway#SdkType": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier of an SdkType instance.

" + } + }, + "friendlyName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The user-friendly name of an SdkType instance.

" + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of an SdkType.

" + } + }, + "configurationProperties": { + "target": "com.amazonaws.apigateway#ListOfSdkConfigurationProperty", + "traits": { + "smithy.api#documentation": "

A list of configuration properties of an SdkType.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A type of SDK that API Gateway can generate.

" + } + }, + "com.amazonaws.apigateway#SdkTypes": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfSdkType", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + } + }, + "traits": { + "smithy.api#documentation": "

The collection of SdkType instances.

" + } + }, + "com.amazonaws.apigateway#SecurityPolicy": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "TLS_1_0", + "name": "TLS_1_0" + }, + { + "value": "TLS_1_2", + "name": "TLS_1_2" + } + ] + } + }, + "com.amazonaws.apigateway#ServiceUnavailableException": { + "type": "structure", + "members": { + "retryAfterSeconds": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#httpHeader": "Retry-After" + } + }, + "message": { + "target": "com.amazonaws.apigateway#String" + } + }, + "traits": { + "smithy.api#documentation": "

The requested service is not available. For details see the accompanying error message. Retry after the specified time period.

", + "smithy.api#error": "server", + "smithy.api#httpError": 503 + } + }, + "com.amazonaws.apigateway#Stage": { + "type": "structure", + "members": { + "deploymentId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier of the Deployment that the stage points to.

" + } + }, + "clientCertificateId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier of a client certificate for an API stage.

" + } + }, + "stageName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.

" + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The stage's description.

" + } + }, + "cacheClusterEnabled": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether a cache cluster is enabled for the stage.

" + } + }, + "cacheClusterSize": { + "target": "com.amazonaws.apigateway#CacheClusterSize", + "traits": { + "smithy.api#documentation": "

The size of the cache cluster for the stage, if enabled.

" + } + }, + "cacheClusterStatus": { + "target": "com.amazonaws.apigateway#CacheClusterStatus", + "traits": { + "smithy.api#documentation": "

The status of the cache cluster for the stage, if enabled.

" + } + }, + "methodSettings": { + "target": "com.amazonaws.apigateway#MapOfMethodSettings", + "traits": { + "smithy.api#documentation": "

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 the stage.

" + } + }, + "variables": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

A map that defines the stage variables for a Stage resource. Variable names can\n have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

" + } + }, + "documentationVersion": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The version of the associated API documentation.

" + } + }, + "accessLogSettings": { + "target": "com.amazonaws.apigateway#AccessLogSettings", + "traits": { + "smithy.api#documentation": "

Settings for logging access in this stage.

" + } + }, + "canarySettings": { + "target": "com.amazonaws.apigateway#CanarySettings", + "traits": { + "smithy.api#documentation": "

Settings for the canary deployment in this stage.

" + } + }, + "tracingEnabled": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether active tracing with X-ray is enabled for the Stage.

" + } + }, + "webAclArn": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The ARN of the WebAcl associated with the Stage.

" + } + }, + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The collection of tags. Each tag element is associated with a given resource.

" + } + }, + "createdDate": { + "target": "com.amazonaws.apigateway#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the stage was created.

" + } + }, + "lastUpdatedDate": { + "target": "com.amazonaws.apigateway#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the stage last updated.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a unique identifier for a version of a deployed RestApi that is callable by users.

\n " + } + }, + "com.amazonaws.apigateway#StageKey": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The string identifier of the associated RestApi.

" + } + }, + "stageName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The stage name associated with the stage key.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A reference to a unique stage identified in the format {restApiId}/{stage}.

" + } + }, + "com.amazonaws.apigateway#Stages": { + "type": "structure", + "members": { + "item": { + "target": "com.amazonaws.apigateway#ListOfStage", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A list of Stage resources that are associated with the ApiKey resource.

\n " + } + }, + "com.amazonaws.apigateway#StatusCode": { + "type": "string", + "traits": { + "smithy.api#documentation": "

The status code.

", + "smithy.api#pattern": "[1-5]\\d\\d" + } + }, + "com.amazonaws.apigateway#String": { + "type": "string" + }, + "com.amazonaws.apigateway#TagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#TagResourceRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Adds or updates a tag on a given resource.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/tags/{resourceArn}", + "code": 204 + } + } + }, + "com.amazonaws.apigateway#TagResourceRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The ARN of a resource that can be tagged.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

[Required] The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Adds or updates a tag on a given resource.

" + } + }, + "com.amazonaws.apigateway#Tags": { + "type": "structure", + "members": { + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The collection of tags. Each tag element is associated with a given resource.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The collection of tags. Each tag element is associated with a given resource.

" + } + }, + "com.amazonaws.apigateway#Template": { + "type": "structure", + "members": { + "value": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The Apache Velocity Template Language (VTL) template content used for the template resource.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a mapping template used to transform a payload.

\n " + } + }, + "com.amazonaws.apigateway#TestInvokeAuthorizer": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#TestInvokeAuthorizerRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#TestInvokeAuthorizerResponse" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body.

\n ", + "smithy.api#http": { + "method": "POST", + "uri": "/restapis/{restApiId}/authorizers/{authorizerId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#TestInvokeAuthorizerRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "authorizerId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a test invoke authorizer request's Authorizer ID.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "headers": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

[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.

" + } + }, + "multiValueHeaders": { + "target": "com.amazonaws.apigateway#MapOfStringToList", + "traits": { + "smithy.api#documentation": "

[Optional] The headers as a map from string to list of values to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, may be specified.

" + } + }, + "pathWithQueryString": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.

" + } + }, + "body": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Optional] The simulated request body of an incoming invocation request.

" + } + }, + "stageVariables": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

A key-value map of stage variables to simulate an invocation on a deployed Stage.

" + } + }, + "additionalContext": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

[Optional] A key-value map of additional context variables.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Make a request to simulate the execution of an Authorizer.

" + } + }, + "com.amazonaws.apigateway#TestInvokeAuthorizerResponse": { + "type": "structure", + "members": { + "clientStatus": { + "target": "com.amazonaws.apigateway#Integer", + "traits": { + "smithy.api#documentation": "

The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.

" + } + }, + "log": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The API Gateway execution log for the test authorizer request.

" + } + }, + "latency": { + "target": "com.amazonaws.apigateway#Long", + "traits": { + "smithy.api#documentation": "

The execution latency of the test authorizer request.

" + } + }, + "principalId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The principal identity returned by the Authorizer

" + } + }, + "policy": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The JSON policy document returned by the Authorizer

" + } + }, + "authorization": { + "target": "com.amazonaws.apigateway#MapOfStringToList" + }, + "claims": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents the response of the test invoke request for a custom Authorizer

" + } + }, + "com.amazonaws.apigateway#TestInvokeMethod": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#TestInvokeMethodRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#TestInvokeMethodResponse" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Simulate the execution of a Method in your RestApi with headers, parameters, and an incoming request body.

", + "smithy.api#http": { + "method": "POST", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#TestInvokeMethodRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a test invoke method request's resource ID.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies a test invoke method request's HTTP method.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "pathWithQueryString": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.

" + } + }, + "body": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The simulated request body of an incoming invocation request.

" + } + }, + "headers": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

A key-value map of headers to simulate an incoming invocation request.

" + } + }, + "multiValueHeaders": { + "target": "com.amazonaws.apigateway#MapOfStringToList", + "traits": { + "smithy.api#documentation": "

The headers as a map from string to list of values to simulate an incoming invocation request.

" + } + }, + "clientCertificateId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

A ClientCertificate identifier to use in the test invocation. API Gateway will use the certificate when making the HTTPS request to the defined back-end endpoint.

" + } + }, + "stageVariables": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

A key-value map of stage variables to simulate an invocation on a deployed Stage.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Make a request to simulate the execution of a Method.

" + } + }, + "com.amazonaws.apigateway#TestInvokeMethodResponse": { + "type": "structure", + "members": { + "status": { + "target": "com.amazonaws.apigateway#Integer", + "traits": { + "smithy.api#documentation": "

The HTTP status code.

" + } + }, + "body": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The body of the HTTP response.

" + } + }, + "headers": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The headers of the HTTP response.

" + } + }, + "multiValueHeaders": { + "target": "com.amazonaws.apigateway#MapOfStringToList", + "traits": { + "smithy.api#documentation": "

The headers of the HTTP response as a map from string to list of values.

" + } + }, + "log": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The API Gateway execution log for the test invoke request.

" + } + }, + "latency": { + "target": "com.amazonaws.apigateway#Long", + "traits": { + "smithy.api#documentation": "

The execution latency of the test invoke request.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents the response of the test invoke request in the HTTP method.

\n " + } + }, + "com.amazonaws.apigateway#ThrottleSettings": { + "type": "structure", + "members": { + "burstLimit": { + "target": "com.amazonaws.apigateway#Integer", + "traits": { + "smithy.api#documentation": "

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.

" + } + }, + "rateLimit": { + "target": "com.amazonaws.apigateway#Double", + "traits": { + "smithy.api#documentation": "

The API request steady-state rate limit.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The API request rate limits.

" + } + }, + "com.amazonaws.apigateway#Timestamp": { + "type": "timestamp" + }, + "com.amazonaws.apigateway#TlsConfig": { + "type": "structure", + "members": { + "insecureSkipVerification": { + "target": "com.amazonaws.apigateway#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether or not API Gateway skips verification that the certificate for an integration endpoint is\n issued by a supported certificate authority. This isn’t recommended, but it enables you to\n use certificates that are signed by private certificate authorities, or certificates\n that are self-signed. If enabled, API Gateway still performs basic certificate\n validation, which includes checking the certificate's expiration date, hostname, and\n presence of a root certificate authority. Supported only for HTTP and\n HTTP_PROXY integrations.

" + } + } + } + }, + "com.amazonaws.apigateway#TooManyRequestsException": { + "type": "structure", + "members": { + "retryAfterSeconds": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#httpHeader": "Retry-After" + } + }, + "message": { + "target": "com.amazonaws.apigateway#String" + } + }, + "traits": { + "smithy.api#documentation": "

The request has reached its throttling limit. Retry after the specified time period.

", + "smithy.api#error": "client", + "smithy.api#httpError": 429 + } + }, + "com.amazonaws.apigateway#UnauthorizedCacheControlHeaderStrategy": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "FAIL_WITH_403", + "name": "FAIL_WITH_403" + }, + { + "value": "SUCCEED_WITH_RESPONSE_HEADER", + "name": "SUCCEED_WITH_RESPONSE_HEADER" + }, + { + "value": "SUCCEED_WITHOUT_RESPONSE_HEADER", + "name": "SUCCEED_WITHOUT_RESPONSE_HEADER" + } + ] + } + }, + "com.amazonaws.apigateway#UnauthorizedException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.apigateway#String" + } + }, + "traits": { + "smithy.api#documentation": "

The request is denied because the caller has insufficient permissions.

", + "smithy.api#error": "client", + "smithy.api#httpError": 401 + } + }, + "com.amazonaws.apigateway#UntagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UntagResourceRequest" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Removes a tag from a given resource.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/tags/{resourceArn}", + "code": 204 + } + } + }, + "com.amazonaws.apigateway#UntagResourceRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The ARN of a resource that can be tagged.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "tagKeys": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

[Required] The Tag keys to delete.

", + "smithy.api#httpQuery": "tagKeys", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Removes a tag from a given resource.

" + } + }, + "com.amazonaws.apigateway#UpdateAccount": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateAccountRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Account" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Changes information about the current Account resource.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/account", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateAccountRequest": { + "type": "structure", + "members": { + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Requests API Gateway to change information about the current Account resource.

" + } + }, + "com.amazonaws.apigateway#UpdateApiKey": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateApiKeyRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#ApiKey" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Changes information about an ApiKey resource.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/apikeys/{apiKey}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateApiKeyRequest": { + "type": "structure", + "members": { + "apiKey": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the ApiKey resource to be updated.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to change information about an ApiKey resource.

" + } + }, + "com.amazonaws.apigateway#UpdateAuthorizer": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateAuthorizerRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Authorizer" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates an existing Authorizer resource.

\n ", + "smithy.api#http": { + "method": "PATCH", + "uri": "/restapis/{restApiId}/authorizers/{authorizerId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateAuthorizerRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "authorizerId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the Authorizer resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to update an existing Authorizer resource.

" + } + }, + "com.amazonaws.apigateway#UpdateBasePathMapping": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateBasePathMappingRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#BasePathMapping" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Changes information about the BasePathMapping resource.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/domainnames/{domainName}/basepathmappings/{basePath}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateBasePathMappingRequest": { + "type": "structure", + "members": { + "domainName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The domain name of the BasePathMapping resource to change.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "basePath": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The base path of the BasePathMapping resource to change.

\n

To specify an empty base path, set this parameter to '(none)'.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to change information about the BasePathMapping resource.

" + } + }, + "com.amazonaws.apigateway#UpdateClientCertificate": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateClientCertificateRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#ClientCertificate" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Changes information about an ClientCertificate resource.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/clientcertificates/{clientCertificateId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateClientCertificateRequest": { + "type": "structure", + "members": { + "clientCertificateId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the ClientCertificate resource to be updated.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to change information about an ClientCertificate resource.

" + } + }, + "com.amazonaws.apigateway#UpdateDeployment": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateDeploymentRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Deployment" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Changes information about a Deployment resource.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/restapis/{restApiId}/deployments/{deploymentId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateDeploymentRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "deploymentId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The replacement identifier for the Deployment resource to change information about.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Requests API Gateway to change information about a Deployment resource.

" + } + }, + "com.amazonaws.apigateway#UpdateDocumentationPart": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateDocumentationPartRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#DocumentationPart" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#http": { + "method": "PATCH", + "uri": "/restapis/{restApiId}/documentation/parts/{documentationPartId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateDocumentationPartRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "documentationPartId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the to-be-updated documentation part.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Updates an existing documentation part of a given API.

" + } + }, + "com.amazonaws.apigateway#UpdateDocumentationVersion": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateDocumentationVersionRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#DocumentationVersion" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#http": { + "method": "PATCH", + "uri": "/restapis/{restApiId}/documentation/versions/{documentationVersion}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateDocumentationVersionRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi..

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "documentationVersion": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The version identifier of the to-be-updated documentation version.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Updates an existing documentation version of an API.

" + } + }, + "com.amazonaws.apigateway#UpdateDomainName": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateDomainNameRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#DomainName" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Changes information about the DomainName resource.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/domainnames/{domainName}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateDomainNameRequest": { + "type": "structure", + "members": { + "domainName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the DomainName resource to be changed.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to change information about the DomainName resource.

" + } + }, + "com.amazonaws.apigateway#UpdateGatewayResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateGatewayResponseRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#GatewayResponse" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates a GatewayResponse of a specified response type on the given RestApi.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/restapis/{restApiId}/gatewayresponses/{responseType}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateGatewayResponseRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "responseType": { + "target": "com.amazonaws.apigateway#GatewayResponseType", + "traits": { + "smithy.api#documentation": "

[Required]

The response type of the associated GatewayResponse. Valid values are

  • ACCESS_DENIED
  • API_CONFIGURATION_ERROR
  • AUTHORIZER_FAILURE
  • AUTHORIZER_CONFIGURATION_ERROR
  • BAD_REQUEST_PARAMETERS
  • BAD_REQUEST_BODY
  • DEFAULT_4XX
  • DEFAULT_5XX
  • EXPIRED_TOKEN
  • INVALID_SIGNATURE
  • INTEGRATION_FAILURE
  • INTEGRATION_TIMEOUT
  • INVALID_API_KEY
  • MISSING_AUTHENTICATION_TOKEN
  • QUOTA_EXCEEDED
  • REQUEST_TOO_LARGE
  • RESOURCE_NOT_FOUND
  • THROTTLED
  • UNAUTHORIZED
  • UNSUPPORTED_MEDIA_TYPE

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Updates a GatewayResponse of a specified response type on the given RestApi.

" + } + }, + "com.amazonaws.apigateway#UpdateIntegration": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateIntegrationRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Integration" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Represents an update integration.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateIntegrationRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Represents an update integration request's resource identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Represents an update integration request's HTTP method.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents an update integration request.

" + } + }, + "com.amazonaws.apigateway#UpdateIntegrationResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateIntegrationResponseRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#IntegrationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Represents an update integration response.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateIntegrationResponseRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies an update integration response request's resource identifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] Specifies an update integration response request's HTTP method.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "statusCode": { + "target": "com.amazonaws.apigateway#StatusCode", + "traits": { + "smithy.api#documentation": "

[Required] Specifies an update integration response request's status code.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents an update integration response request.

" + } + }, + "com.amazonaws.apigateway#UpdateMethod": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateMethodRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Method" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates an existing Method resource.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateMethodRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Resource identifier for the Method resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The HTTP verb of the Method resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to update an existing Method resource.

" + } + }, + "com.amazonaws.apigateway#UpdateMethodResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateMethodResponseRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#MethodResponse" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#LimitExceededException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates an existing MethodResponse resource.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}", + "code": 201 + } + } + }, + "com.amazonaws.apigateway#UpdateMethodResponseRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Resource identifier for the MethodResponse resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "httpMethod": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The HTTP verb of the Method resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "statusCode": { + "target": "com.amazonaws.apigateway#StatusCode", + "traits": { + "smithy.api#documentation": "

[Required] The status code for the MethodResponse resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to update an existing MethodResponse resource.

" + } + }, + "com.amazonaws.apigateway#UpdateModel": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateModelRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Model" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Changes information about a model.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/restapis/{restApiId}/models/{modelName}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateModelRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "modelName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the model to update.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to update an existing model in an existing RestApi resource.

" + } + }, + "com.amazonaws.apigateway#UpdateRequestValidator": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateRequestValidatorRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#RequestValidator" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates a RequestValidator of a given RestApi.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/restapis/{restApiId}/requestvalidators/{requestValidatorId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateRequestValidatorRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "requestValidatorId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of RequestValidator to be updated.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Updates a RequestValidator of a given RestApi.

" + } + }, + "com.amazonaws.apigateway#UpdateResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateResourceRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Resource" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Changes information about a Resource resource.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/restapis/{restApiId}/resources/{resourceId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateResourceRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the Resource resource.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to change information about a Resource resource.

" + } + }, + "com.amazonaws.apigateway#UpdateRestApi": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateRestApiRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#RestApi" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Changes information about the specified API.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/restapis/{restApiId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateRestApiRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Request to update an existing RestApi resource in your collection.

" + } + }, + "com.amazonaws.apigateway#UpdateStage": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateStageRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Stage" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Changes information about a Stage resource.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/restapis/{restApiId}/stages/{stageName}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateStageRequest": { + "type": "structure", + "members": { + "restApiId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The string identifier of the associated RestApi.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "stageName": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The name of the Stage resource to change information about.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Requests API Gateway to change information about a Stage resource.

" + } + }, + "com.amazonaws.apigateway#UpdateUsage": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateUsageRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#Usage" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Grants a temporary extension to the remaining quota of a usage plan associated with a specified API key.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/usageplans/{usagePlanId}/keys/{keyId}/usage", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateUsagePlan": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateUsagePlanRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#UsagePlan" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates a usage plan of a given plan Id.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/usageplans/{usagePlanId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateUsagePlanRequest": { + "type": "structure", + "members": { + "usagePlanId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Id of the to-be-updated usage plan.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The PATCH request to update a usage plan of a given plan Id.

" + } + }, + "com.amazonaws.apigateway#UpdateUsageRequest": { + "type": "structure", + "members": { + "usagePlanId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The Id of the usage plan associated with the usage data.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "keyId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the API key associated with the usage plan in which a temporary extension is granted to the remaining quota.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The PATCH request to grant a temporary extension to the remaining quota of a usage plan associated with a specified API key.

" + } + }, + "com.amazonaws.apigateway#UpdateVpcLink": { + "type": "operation", + "input": { + "target": "com.amazonaws.apigateway#UpdateVpcLinkRequest" + }, + "output": { + "target": "com.amazonaws.apigateway#VpcLink" + }, + "errors": [ + { + "target": "com.amazonaws.apigateway#BadRequestException" + }, + { + "target": "com.amazonaws.apigateway#ConflictException" + }, + { + "target": "com.amazonaws.apigateway#NotFoundException" + }, + { + "target": "com.amazonaws.apigateway#TooManyRequestsException" + }, + { + "target": "com.amazonaws.apigateway#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates an existing VpcLink of a specified identifier.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/vpclinks/{vpcLinkId}", + "code": 200 + } + } + }, + "com.amazonaws.apigateway#UpdateVpcLinkRequest": { + "type": "structure", + "members": { + "vpcLinkId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

[Required] The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "patchOperations": { + "target": "com.amazonaws.apigateway#ListOfPatchOperation", + "traits": { + "smithy.api#documentation": "

A list of update operations to be applied to the specified resource and in the order specified in this list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Updates an existing VpcLink of a specified identifier.

" + } + }, + "com.amazonaws.apigateway#Usage": { + "type": "structure", + "members": { + "usagePlanId": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The plan Id associated with this usage data.

" + } + }, + "startDate": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The starting date of the usage data.

" + } + }, + "endDate": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The ending date of the usage data.

" + } + }, + "items": { + "target": "com.amazonaws.apigateway#MapOfKeyUsages", + "traits": { + "smithy.api#documentation": "

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].

", + "smithy.api#jsonName": "values" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents the usage data of a usage plan.

\n
\n " + } + }, + "com.amazonaws.apigateway#UsagePlan": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier of a UsagePlan resource.

" + } + }, + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of a usage plan.

" + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of a usage plan.

" + } + }, + "apiStages": { + "target": "com.amazonaws.apigateway#ListOfApiStage", + "traits": { + "smithy.api#documentation": "

The associated API stages of a usage plan.

" + } + }, + "throttle": { + "target": "com.amazonaws.apigateway#ThrottleSettings", + "traits": { + "smithy.api#documentation": "

The request throttle limits of a usage plan.

" + } + }, + "quota": { + "target": "com.amazonaws.apigateway#QuotaSettings", + "traits": { + "smithy.api#documentation": "

The maximum number of permitted requests per a given unit time interval.

" + } + }, + "productCode": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.

" + } + }, + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The collection of tags. Each tag element is associated with a given resource.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a usage plan than can specify who can assess associated API stages with specified request limits and quotas.

\n
\n

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.

\n
\n " + } + }, + "com.amazonaws.apigateway#UsagePlanKey": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The Id of a usage plan key.

" + } + }, + "type": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

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

" + } + }, + "value": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The value of a usage plan key.

" + } + }, + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name of a usage plan key.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a usage plan key to identify a plan customer.

\n
\n

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.

\n
\"\n " + } + }, + "com.amazonaws.apigateway#UsagePlanKeys": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfUsagePlanKey", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents the collection of usage plan keys added to usage plans for the associated API keys and, possibly, other types of keys.

\n " + } + }, + "com.amazonaws.apigateway#UsagePlans": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfUsagePlan", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a collection of usage plans for an AWS account.

\n " + } + }, + "com.amazonaws.apigateway#VpcLink": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.

" + } + }, + "name": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The name used to label and identify the VPC link.

" + } + }, + "description": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The description of the VPC link.

" + } + }, + "targetArns": { + "target": "com.amazonaws.apigateway#ListOfString", + "traits": { + "smithy.api#documentation": "

The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same AWS account of the API owner.

" + } + }, + "status": { + "target": "com.amazonaws.apigateway#VpcLinkStatus", + "traits": { + "smithy.api#documentation": "

The status of the VPC link. The valid values are AVAILABLE, PENDING, DELETING, or FAILED. Deploying an API will wait if the status is PENDING and will fail if the status is DELETING.

" + } + }, + "statusMessage": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

A description about the VPC link status.

" + } + }, + "tags": { + "target": "com.amazonaws.apigateway#MapOfStringToString", + "traits": { + "smithy.api#documentation": "

The collection of tags. Each tag element is associated with a given resource.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

An API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).

\n
\n

To enable access to a resource in an Amazon Virtual Private Cloud through Amazon API Gateway, you, as an API developer, create a VpcLink resource targeted for one or more network load balancers of the VPC and then integrate an API method with a private integration that uses the VpcLink. The private integration has an integration type of HTTP or HTTP_PROXY and has a connection type of VPC_LINK. The integration uses the connectionId property to identify the VpcLink used.

\n
" + } + }, + "com.amazonaws.apigateway#VpcLinkStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "AVAILABLE", + "name": "AVAILABLE" + }, + { + "value": "PENDING", + "name": "PENDING" + }, + { + "value": "DELETING", + "name": "DELETING" + }, + { + "value": "FAILED", + "name": "FAILED" + } + ] + } + }, + "com.amazonaws.apigateway#VpcLinks": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.apigateway#ListOfVpcLink", + "traits": { + "smithy.api#documentation": "

The current page of elements from this collection.

", + "smithy.api#jsonName": "item" + } + }, + "position": { + "target": "com.amazonaws.apigateway#String", + "traits": { + "smithy.api#documentation": "

The current pagination position in the paged result set.

", + "smithy.api#httpQuery": "position" + } + } + }, + "traits": { + "smithy.api#documentation": "

The collection of VPC links under the caller's account in a region.

\n " + } + } + } +} diff --git a/aws/sdk/models/polly.json b/aws/sdk/models/polly.json new file mode 100644 index 0000000000..547e145e75 --- /dev/null +++ b/aws/sdk/models/polly.json @@ -0,0 +1,1940 @@ +{ + "smithy": "1.0", + "metadata": { + "suppressions": [ + { + "id": "HttpMethodSemantics", + "namespace": "*" + }, + { + "id": "HttpResponseCodeSemantics", + "namespace": "*" + }, + { + "id": "PaginatedTrait", + "namespace": "*" + }, + { + "id": "HttpHeaderTrait", + "namespace": "*" + }, + { + "id": "HttpUriConflict", + "namespace": "*" + }, + { + "id": "Service", + "namespace": "*" + } + ] + }, + "shapes": { + "com.amazonaws.polly#Alphabet": { + "type": "string" + }, + "com.amazonaws.polly#AudioStream": { + "type": "blob", + "traits": { + "smithy.api#streaming": {} + } + }, + "com.amazonaws.polly#ContentType": { + "type": "string" + }, + "com.amazonaws.polly#DateTime": { + "type": "timestamp" + }, + "com.amazonaws.polly#DeleteLexicon": { + "type": "operation", + "input": { + "target": "com.amazonaws.polly#DeleteLexiconInput" + }, + "output": { + "target": "com.amazonaws.polly#DeleteLexiconOutput" + }, + "errors": [ + { + "target": "com.amazonaws.polly#LexiconNotFoundException" + }, + { + "target": "com.amazonaws.polly#ServiceFailureException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the specified pronunciation lexicon stored in an AWS Region. A lexicon which\n has been deleted is not available for speech synthesis, nor is it possible to retrieve it\n using either the GetLexicon or ListLexicon APIs.

\n

For more information, see Managing\n Lexicons.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/v1/lexicons/{Name}", + "code": 200 + } + } + }, + "com.amazonaws.polly#DeleteLexiconInput": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.polly#LexiconName", + "traits": { + "smithy.api#documentation": "

The name of the lexicon to delete. Must be an existing lexicon in the region.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.polly#DeleteLexiconOutput": { + "type": "structure", + "members": {} + }, + "com.amazonaws.polly#DescribeVoices": { + "type": "operation", + "input": { + "target": "com.amazonaws.polly#DescribeVoicesInput" + }, + "output": { + "target": "com.amazonaws.polly#DescribeVoicesOutput" + }, + "errors": [ + { + "target": "com.amazonaws.polly#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.polly#ServiceFailureException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns the list of voices that are available for use when requesting speech synthesis.\n Each voice speaks a specified language, is either male or female, and is identified by an ID,\n which is the ASCII version of the voice name.

\n\n

When synthesizing speech ( SynthesizeSpeech ), you provide the voice ID\n for the voice you want from the list of voices returned by\n DescribeVoices.

\n\n

For example, you want your news reader application to read news in a specific language,\n but giving a user the option to choose the voice. Using the DescribeVoices\n operation you can provide the user with a list of available voices to select from.

\n\n

You can optionally specify a language code to filter the available voices. For\n example, if you specify en-US, the operation returns a list of all available US\n English voices.

\n

This operation requires permissions to perform the polly:DescribeVoices\n action.

", + "smithy.api#http": { + "method": "GET", + "uri": "/v1/voices", + "code": 200 + } + } + }, + "com.amazonaws.polly#DescribeVoicesInput": { + "type": "structure", + "members": { + "Engine": { + "target": "com.amazonaws.polly#Engine", + "traits": { + "smithy.api#documentation": "

Specifies the engine (standard or neural) used by Amazon Polly\n when processing input text for speech synthesis.

", + "smithy.api#httpQuery": "Engine" + } + }, + "LanguageCode": { + "target": "com.amazonaws.polly#LanguageCode", + "traits": { + "smithy.api#documentation": "

The language identification tag (ISO 639 code for the language name-ISO 3166 country\n code) for filtering the list of voices returned. If you don't specify this optional parameter,\n all available voices are returned.

", + "smithy.api#httpQuery": "LanguageCode" + } + }, + "IncludeAdditionalLanguageCodes": { + "target": "com.amazonaws.polly#IncludeAdditionalLanguageCodes", + "traits": { + "smithy.api#documentation": "

Boolean value indicating whether to return any bilingual voices that use the specified\n language as an additional language. For instance, if you request all languages that use US\n English (es-US), and there is an Italian voice that speaks both Italian (it-IT) and US\n English, that voice will be included if you specify yes but not if you specify\n no.

", + "smithy.api#httpQuery": "IncludeAdditionalLanguageCodes" + } + }, + "NextToken": { + "target": "com.amazonaws.polly#NextToken", + "traits": { + "smithy.api#documentation": "

An opaque pagination token returned from the previous DescribeVoices\n operation. If present, this indicates where to continue the listing.

", + "smithy.api#httpQuery": "NextToken" + } + } + } + }, + "com.amazonaws.polly#DescribeVoicesOutput": { + "type": "structure", + "members": { + "Voices": { + "target": "com.amazonaws.polly#VoiceList", + "traits": { + "smithy.api#documentation": "

A list of voices with their properties.

" + } + }, + "NextToken": { + "target": "com.amazonaws.polly#NextToken", + "traits": { + "smithy.api#documentation": "

The pagination token to use in the next request to continue the listing of voices.\n NextToken is returned only if the response is truncated.

" + } + } + } + }, + "com.amazonaws.polly#Engine": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "standard", + "name": "STANDARD" + }, + { + "value": "neural", + "name": "NEURAL" + } + ] + } + }, + "com.amazonaws.polly#EngineList": { + "type": "list", + "member": { + "target": "com.amazonaws.polly#Engine" + } + }, + "com.amazonaws.polly#EngineNotSupportedException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

This engine is not compatible with the voice that you have designated. Choose a new voice\n that is compatible with the engine or change the engine and restart the operation.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#ErrorMessage": { + "type": "string" + }, + "com.amazonaws.polly#Gender": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "Female", + "name": "Female" + }, + { + "value": "Male", + "name": "Male" + } + ] + } + }, + "com.amazonaws.polly#GetLexicon": { + "type": "operation", + "input": { + "target": "com.amazonaws.polly#GetLexiconInput" + }, + "output": { + "target": "com.amazonaws.polly#GetLexiconOutput" + }, + "errors": [ + { + "target": "com.amazonaws.polly#LexiconNotFoundException" + }, + { + "target": "com.amazonaws.polly#ServiceFailureException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns the content of the specified pronunciation lexicon stored in an AWS Region. For\n more information, see Managing\n Lexicons.

", + "smithy.api#http": { + "method": "GET", + "uri": "/v1/lexicons/{Name}", + "code": 200 + } + } + }, + "com.amazonaws.polly#GetLexiconInput": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.polly#LexiconName", + "traits": { + "smithy.api#documentation": "

Name of the lexicon.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.polly#GetLexiconOutput": { + "type": "structure", + "members": { + "Lexicon": { + "target": "com.amazonaws.polly#Lexicon", + "traits": { + "smithy.api#documentation": "

Lexicon object that provides name and the string content of the lexicon.

" + } + }, + "LexiconAttributes": { + "target": "com.amazonaws.polly#LexiconAttributes", + "traits": { + "smithy.api#documentation": "

Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon\n ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.

" + } + } + } + }, + "com.amazonaws.polly#GetSpeechSynthesisTask": { + "type": "operation", + "input": { + "target": "com.amazonaws.polly#GetSpeechSynthesisTaskInput" + }, + "output": { + "target": "com.amazonaws.polly#GetSpeechSynthesisTaskOutput" + }, + "errors": [ + { + "target": "com.amazonaws.polly#InvalidTaskIdException" + }, + { + "target": "com.amazonaws.polly#ServiceFailureException" + }, + { + "target": "com.amazonaws.polly#SynthesisTaskNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves a specific SpeechSynthesisTask object based on its TaskID. This object contains\n information about the given speech synthesis task, including the status of the task, and a\n link to the S3 bucket containing the output of the task.

", + "smithy.api#http": { + "method": "GET", + "uri": "/v1/synthesisTasks/{TaskId}", + "code": 200 + } + } + }, + "com.amazonaws.polly#GetSpeechSynthesisTaskInput": { + "type": "structure", + "members": { + "TaskId": { + "target": "com.amazonaws.polly#TaskId", + "traits": { + "smithy.api#documentation": "

The Amazon Polly generated identifier for a speech synthesis task.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.polly#GetSpeechSynthesisTaskOutput": { + "type": "structure", + "members": { + "SynthesisTask": { + "target": "com.amazonaws.polly#SynthesisTask", + "traits": { + "smithy.api#documentation": "

SynthesisTask object that provides information from the requested task, including output\n format, creation time, task status, and so on.

" + } + } + } + }, + "com.amazonaws.polly#IncludeAdditionalLanguageCodes": { + "type": "boolean" + }, + "com.amazonaws.polly#InvalidLexiconException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

Amazon Polly can't find the specified lexicon. Verify that the lexicon's name is\n spelled correctly, and then try again.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#InvalidNextTokenException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The NextToken is invalid. Verify that it's spelled correctly, and then try\n again.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#InvalidS3BucketException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The provided Amazon S3 bucket name is invalid. Please check your input with S3 bucket\n naming requirements and try again.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#InvalidS3KeyException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The provided Amazon S3 key prefix is invalid. Please provide a valid S3 object key\n name.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#InvalidSampleRateException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The specified sample rate is not valid.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#InvalidSnsTopicArnException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The provided SNS topic ARN is invalid. Please provide a valid SNS topic ARN and try\n again.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#InvalidSsmlException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The SSML you provided is invalid. Verify the SSML syntax, spelling of tags and values,\n and then try again.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#InvalidTaskIdException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The provided Task ID is not valid. Please provide a valid Task ID and try again.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#LanguageCode": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "arb", + "name": "arb" + }, + { + "value": "cmn-CN", + "name": "cmn_CN" + }, + { + "value": "cy-GB", + "name": "cy_GB" + }, + { + "value": "da-DK", + "name": "da_DK" + }, + { + "value": "de-DE", + "name": "de_DE" + }, + { + "value": "en-AU", + "name": "en_AU" + }, + { + "value": "en-GB", + "name": "en_GB" + }, + { + "value": "en-GB-WLS", + "name": "en_GB_WLS" + }, + { + "value": "en-IN", + "name": "en_IN" + }, + { + "value": "en-US", + "name": "en_US" + }, + { + "value": "es-ES", + "name": "es_ES" + }, + { + "value": "es-MX", + "name": "es_MX" + }, + { + "value": "es-US", + "name": "es_US" + }, + { + "value": "fr-CA", + "name": "fr_CA" + }, + { + "value": "fr-FR", + "name": "fr_FR" + }, + { + "value": "is-IS", + "name": "is_IS" + }, + { + "value": "it-IT", + "name": "it_IT" + }, + { + "value": "ja-JP", + "name": "ja_JP" + }, + { + "value": "hi-IN", + "name": "hi_IN" + }, + { + "value": "ko-KR", + "name": "ko_KR" + }, + { + "value": "nb-NO", + "name": "nb_NO" + }, + { + "value": "nl-NL", + "name": "nl_NL" + }, + { + "value": "pl-PL", + "name": "pl_PL" + }, + { + "value": "pt-BR", + "name": "pt_BR" + }, + { + "value": "pt-PT", + "name": "pt_PT" + }, + { + "value": "ro-RO", + "name": "ro_RO" + }, + { + "value": "ru-RU", + "name": "ru_RU" + }, + { + "value": "sv-SE", + "name": "sv_SE" + }, + { + "value": "tr-TR", + "name": "tr_TR" + } + ] + } + }, + "com.amazonaws.polly#LanguageCodeList": { + "type": "list", + "member": { + "target": "com.amazonaws.polly#LanguageCode" + } + }, + "com.amazonaws.polly#LanguageName": { + "type": "string" + }, + "com.amazonaws.polly#LanguageNotSupportedException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The language specified is not currently supported by Amazon Polly in this capacity.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#LastModified": { + "type": "timestamp" + }, + "com.amazonaws.polly#LexemesCount": { + "type": "integer" + }, + "com.amazonaws.polly#Lexicon": { + "type": "structure", + "members": { + "Content": { + "target": "com.amazonaws.polly#LexiconContent", + "traits": { + "smithy.api#documentation": "

Lexicon content in string format. The content of a lexicon must be in PLS\n format.

" + } + }, + "Name": { + "target": "com.amazonaws.polly#LexiconName", + "traits": { + "smithy.api#documentation": "

Name of the lexicon.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Provides lexicon name and lexicon content in string format. For more information, see\n Pronunciation Lexicon\n Specification (PLS) Version 1.0.

" + } + }, + "com.amazonaws.polly#LexiconArn": { + "type": "string" + }, + "com.amazonaws.polly#LexiconAttributes": { + "type": "structure", + "members": { + "Alphabet": { + "target": "com.amazonaws.polly#Alphabet", + "traits": { + "smithy.api#documentation": "

Phonetic alphabet used in the lexicon. Valid values are ipa and\n x-sampa.

" + } + }, + "LanguageCode": { + "target": "com.amazonaws.polly#LanguageCode", + "traits": { + "smithy.api#documentation": "

Language code that the lexicon applies to. A lexicon with a language code such as \"en\"\n would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.

" + } + }, + "LastModified": { + "target": "com.amazonaws.polly#LastModified", + "traits": { + "smithy.api#documentation": "

Date lexicon was last modified (a timestamp value).

" + } + }, + "LexiconArn": { + "target": "com.amazonaws.polly#LexiconArn", + "traits": { + "smithy.api#documentation": "

Amazon Resource Name (ARN) of the lexicon.

" + } + }, + "LexemesCount": { + "target": "com.amazonaws.polly#LexemesCount", + "traits": { + "smithy.api#documentation": "

Number of lexemes in the lexicon.

" + } + }, + "Size": { + "target": "com.amazonaws.polly#Size", + "traits": { + "smithy.api#documentation": "

Total size of the lexicon, in characters.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains metadata describing the lexicon such as the number of lexemes, language code,\n and so on. For more information, see Managing\n Lexicons.

" + } + }, + "com.amazonaws.polly#LexiconContent": { + "type": "string", + "traits": { + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.polly#LexiconDescription": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.polly#LexiconName", + "traits": { + "smithy.api#documentation": "

Name of the lexicon.

" + } + }, + "Attributes": { + "target": "com.amazonaws.polly#LexiconAttributes", + "traits": { + "smithy.api#documentation": "

Provides lexicon metadata.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the content of the lexicon.

" + } + }, + "com.amazonaws.polly#LexiconDescriptionList": { + "type": "list", + "member": { + "target": "com.amazonaws.polly#LexiconDescription" + } + }, + "com.amazonaws.polly#LexiconName": { + "type": "string", + "traits": { + "smithy.api#pattern": "[0-9A-Za-z]{1,20}" + } + }, + "com.amazonaws.polly#LexiconNameList": { + "type": "list", + "member": { + "target": "com.amazonaws.polly#LexiconName" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 5 + } + } + }, + "com.amazonaws.polly#LexiconNotFoundException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

Amazon Polly can't find the specified lexicon. This could be caused by a lexicon that\n is missing, its name is misspelled or specifying a lexicon that is in a different\n region.

\n

Verify that the lexicon exists, is in the region (see ListLexicons)\n and that you spelled its name is spelled correctly. Then try again.

", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.polly#LexiconSizeExceededException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The maximum size of the specified lexicon would be exceeded by this\n operation.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#ListLexicons": { + "type": "operation", + "input": { + "target": "com.amazonaws.polly#ListLexiconsInput" + }, + "output": { + "target": "com.amazonaws.polly#ListLexiconsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.polly#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.polly#ServiceFailureException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of pronunciation lexicons stored in an AWS Region. For more information,\n see Managing\n Lexicons.

", + "smithy.api#http": { + "method": "GET", + "uri": "/v1/lexicons", + "code": 200 + } + } + }, + "com.amazonaws.polly#ListLexiconsInput": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.polly#NextToken", + "traits": { + "smithy.api#documentation": "

An opaque pagination token returned from previous ListLexicons operation.\n If present, indicates where to continue the list of lexicons.

", + "smithy.api#httpQuery": "NextToken" + } + } + } + }, + "com.amazonaws.polly#ListLexiconsOutput": { + "type": "structure", + "members": { + "Lexicons": { + "target": "com.amazonaws.polly#LexiconDescriptionList", + "traits": { + "smithy.api#documentation": "

A list of lexicon names and attributes.

" + } + }, + "NextToken": { + "target": "com.amazonaws.polly#NextToken", + "traits": { + "smithy.api#documentation": "

The pagination token to use in the next request to continue the listing of lexicons.\n NextToken is returned only if the response is truncated.

" + } + } + } + }, + "com.amazonaws.polly#ListSpeechSynthesisTasks": { + "type": "operation", + "input": { + "target": "com.amazonaws.polly#ListSpeechSynthesisTasksInput" + }, + "output": { + "target": "com.amazonaws.polly#ListSpeechSynthesisTasksOutput" + }, + "errors": [ + { + "target": "com.amazonaws.polly#InvalidNextTokenException" + }, + { + "target": "com.amazonaws.polly#ServiceFailureException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of SpeechSynthesisTask objects ordered by their creation date. This\n operation can filter the tasks by their status, for example, allowing users to list only tasks\n that are completed.

", + "smithy.api#http": { + "method": "GET", + "uri": "/v1/synthesisTasks", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.polly#ListSpeechSynthesisTasksInput": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.polly#MaxResults", + "traits": { + "smithy.api#documentation": "

Maximum number of speech synthesis tasks returned in a List operation.

", + "smithy.api#httpQuery": "MaxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.polly#NextToken", + "traits": { + "smithy.api#documentation": "

The pagination token to use in the next request to continue the listing of speech\n synthesis tasks.

", + "smithy.api#httpQuery": "NextToken" + } + }, + "Status": { + "target": "com.amazonaws.polly#TaskStatus", + "traits": { + "smithy.api#documentation": "

Status of the speech synthesis tasks returned in a List operation

", + "smithy.api#httpQuery": "Status" + } + } + } + }, + "com.amazonaws.polly#ListSpeechSynthesisTasksOutput": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.polly#NextToken", + "traits": { + "smithy.api#documentation": "

An opaque pagination token returned from the previous List operation in this request. If\n present, this indicates where to continue the listing.

" + } + }, + "SynthesisTasks": { + "target": "com.amazonaws.polly#SynthesisTasks", + "traits": { + "smithy.api#documentation": "

List of SynthesisTask objects that provides information from the specified task in the\n list request, including output format, creation time, task status, and so on.

" + } + } + } + }, + "com.amazonaws.polly#MarksNotSupportedForFormatException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

Speech marks are not supported for the OutputFormat selected. Speech marks\n are only available for content in json format.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#MaxLexemeLengthExceededException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The maximum size of the lexeme would be exceeded by this operation.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#MaxLexiconsNumberExceededException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The maximum number of lexicons would be exceeded by this operation.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#MaxResults": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 1, + "max": 100 + } + } + }, + "com.amazonaws.polly#NextToken": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 4096 + } + } + }, + "com.amazonaws.polly#OutputFormat": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "json", + "name": "JSON" + }, + { + "value": "mp3", + "name": "MP3" + }, + { + "value": "ogg_vorbis", + "name": "OGG_VORBIS" + }, + { + "value": "pcm", + "name": "PCM" + } + ] + } + }, + "com.amazonaws.polly#OutputS3BucketName": { + "type": "string", + "traits": { + "smithy.api#pattern": "^[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$" + } + }, + "com.amazonaws.polly#OutputS3KeyPrefix": { + "type": "string", + "traits": { + "smithy.api#pattern": "^[0-9a-zA-Z\\/\\!\\-_\\.\\*\\'\\(\\):;\\$@=+\\,\\?&]{0,800}$" + } + }, + "com.amazonaws.polly#OutputUri": { + "type": "string" + }, + "com.amazonaws.polly#Parrot_v1": { + "type": "service", + "version": "2016-06-10", + "operations": [ + { + "target": "com.amazonaws.polly#DeleteLexicon" + }, + { + "target": "com.amazonaws.polly#DescribeVoices" + }, + { + "target": "com.amazonaws.polly#GetLexicon" + }, + { + "target": "com.amazonaws.polly#GetSpeechSynthesisTask" + }, + { + "target": "com.amazonaws.polly#ListLexicons" + }, + { + "target": "com.amazonaws.polly#ListSpeechSynthesisTasks" + }, + { + "target": "com.amazonaws.polly#PutLexicon" + }, + { + "target": "com.amazonaws.polly#StartSpeechSynthesisTask" + }, + { + "target": "com.amazonaws.polly#SynthesizeSpeech" + } + ], + "traits": { + "aws.api#service": { + "sdkId": "Polly", + "arnNamespace": "polly", + "cloudFormationName": "Polly", + "cloudTrailEventSource": "polly.amazonaws.com", + "endpointPrefix": "polly" + }, + "aws.auth#sigv4": { + "name": "polly" + }, + "aws.protocols#restJson1": {}, + "smithy.api#documentation": "

Amazon Polly is a web service that makes it easy to synthesize speech from\n text.

\n

The Amazon Polly service provides API operations for synthesizing high-quality speech\n from plain text and Speech Synthesis Markup Language (SSML), along with managing\n pronunciations lexicons that enable you to get the best results for your application\n domain.

", + "smithy.api#title": "Amazon Polly", + "smithy.api#xmlNamespace": { + "uri": "http://polly.amazonaws.com/doc/v1" + } + } + }, + "com.amazonaws.polly#PutLexicon": { + "type": "operation", + "input": { + "target": "com.amazonaws.polly#PutLexiconInput" + }, + "output": { + "target": "com.amazonaws.polly#PutLexiconOutput" + }, + "errors": [ + { + "target": "com.amazonaws.polly#InvalidLexiconException" + }, + { + "target": "com.amazonaws.polly#LexiconSizeExceededException" + }, + { + "target": "com.amazonaws.polly#MaxLexemeLengthExceededException" + }, + { + "target": "com.amazonaws.polly#MaxLexiconsNumberExceededException" + }, + { + "target": "com.amazonaws.polly#ServiceFailureException" + }, + { + "target": "com.amazonaws.polly#UnsupportedPlsAlphabetException" + }, + { + "target": "com.amazonaws.polly#UnsupportedPlsLanguageException" + } + ], + "traits": { + "smithy.api#documentation": "

Stores a pronunciation lexicon in an AWS Region. If a lexicon with the same name\n already exists in the region, it is overwritten by the new lexicon. Lexicon operations have\n eventual consistency, therefore, it might take some time before the lexicon is available to\n the SynthesizeSpeech operation.

\n

For more information, see Managing\n Lexicons.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/v1/lexicons/{Name}", + "code": 200 + } + } + }, + "com.amazonaws.polly#PutLexiconInput": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.polly#LexiconName", + "traits": { + "smithy.api#documentation": "

Name of the lexicon. The name must follow the regular express format [0-9A-Za-z]{1,20}.\n That is, the name is a case-sensitive alphanumeric string up to 20 characters long.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "Content": { + "target": "com.amazonaws.polly#LexiconContent", + "traits": { + "smithy.api#documentation": "

Content of the PLS lexicon as string data.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.polly#PutLexiconOutput": { + "type": "structure", + "members": {} + }, + "com.amazonaws.polly#RequestCharacters": { + "type": "integer" + }, + "com.amazonaws.polly#SampleRate": { + "type": "string" + }, + "com.amazonaws.polly#ServiceFailureException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

An unknown condition has caused a service failure.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, + "com.amazonaws.polly#Size": { + "type": "integer" + }, + "com.amazonaws.polly#SnsTopicArn": { + "type": "string", + "traits": { + "smithy.api#pattern": "^arn:aws(-(cn|iso(-b)?|us-gov))?:sns:[a-z0-9_-]{1,50}:\\d{12}:[a-zA-Z0-9_-]{1,256}$" + } + }, + "com.amazonaws.polly#SpeechMarkType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "sentence", + "name": "SENTENCE" + }, + { + "value": "ssml", + "name": "SSML" + }, + { + "value": "viseme", + "name": "VISEME" + }, + { + "value": "word", + "name": "WORD" + } + ] + } + }, + "com.amazonaws.polly#SpeechMarkTypeList": { + "type": "list", + "member": { + "target": "com.amazonaws.polly#SpeechMarkType" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 4 + } + } + }, + "com.amazonaws.polly#SsmlMarksNotSupportedForTextTypeException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

SSML speech marks are not supported for plain text-type input.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#StartSpeechSynthesisTask": { + "type": "operation", + "input": { + "target": "com.amazonaws.polly#StartSpeechSynthesisTaskInput" + }, + "output": { + "target": "com.amazonaws.polly#StartSpeechSynthesisTaskOutput" + }, + "errors": [ + { + "target": "com.amazonaws.polly#EngineNotSupportedException" + }, + { + "target": "com.amazonaws.polly#InvalidS3BucketException" + }, + { + "target": "com.amazonaws.polly#InvalidS3KeyException" + }, + { + "target": "com.amazonaws.polly#InvalidSampleRateException" + }, + { + "target": "com.amazonaws.polly#InvalidSnsTopicArnException" + }, + { + "target": "com.amazonaws.polly#InvalidSsmlException" + }, + { + "target": "com.amazonaws.polly#LanguageNotSupportedException" + }, + { + "target": "com.amazonaws.polly#LexiconNotFoundException" + }, + { + "target": "com.amazonaws.polly#MarksNotSupportedForFormatException" + }, + { + "target": "com.amazonaws.polly#ServiceFailureException" + }, + { + "target": "com.amazonaws.polly#SsmlMarksNotSupportedForTextTypeException" + }, + { + "target": "com.amazonaws.polly#TextLengthExceededException" + } + ], + "traits": { + "smithy.api#documentation": "

Allows the creation of an asynchronous synthesis task, by starting a new\n SpeechSynthesisTask. This operation requires all the standard information\n needed for speech synthesis, plus the name of an Amazon S3 bucket for the service to store the\n output of the synthesis task and two optional parameters (OutputS3KeyPrefix and SnsTopicArn).\n Once the synthesis task is created, this operation will return a SpeechSynthesisTask object,\n which will include an identifier of this task as well as the current status.

", + "smithy.api#http": { + "method": "POST", + "uri": "/v1/synthesisTasks", + "code": 200 + } + } + }, + "com.amazonaws.polly#StartSpeechSynthesisTaskInput": { + "type": "structure", + "members": { + "Engine": { + "target": "com.amazonaws.polly#Engine", + "traits": { + "smithy.api#documentation": "

Specifies the engine (standard or neural) for Amazon Polly to\n use when processing input text for speech synthesis. Using a voice that is not supported for\n the engine selected will result in an error.

" + } + }, + "LanguageCode": { + "target": "com.amazonaws.polly#LanguageCode", + "traits": { + "smithy.api#documentation": "

Optional language code for the Speech Synthesis request. This is only necessary if using a\n bilingual voice, such as Aditi, which can be used for either Indian English (en-IN) or Hindi\n (hi-IN).

\n

If a bilingual voice is used and no language code is specified, Amazon Polly will use the\n default language of the bilingual voice. The default language for any voice is the one\n returned by the DescribeVoices operation for the LanguageCode parameter. For example,\n if no language code is specified, Aditi will use Indian English rather than Hindi.

" + } + }, + "LexiconNames": { + "target": "com.amazonaws.polly#LexiconNameList", + "traits": { + "smithy.api#documentation": "

List of one or more pronunciation lexicon names you want the service to apply during\n synthesis. Lexicons are applied only if the language of the lexicon is the same as the\n language of the voice.

" + } + }, + "OutputFormat": { + "target": "com.amazonaws.polly#OutputFormat", + "traits": { + "smithy.api#documentation": "

The format in which the returned output will be encoded. For audio stream, this will be\n mp3, ogg_vorbis, or pcm. For speech marks, this will be json.

", + "smithy.api#required": {} + } + }, + "OutputS3BucketName": { + "target": "com.amazonaws.polly#OutputS3BucketName", + "traits": { + "smithy.api#documentation": "

Amazon S3 bucket name to which the output file will be saved.

", + "smithy.api#required": {} + } + }, + "OutputS3KeyPrefix": { + "target": "com.amazonaws.polly#OutputS3KeyPrefix", + "traits": { + "smithy.api#documentation": "

The Amazon S3 key prefix for the output speech file.

" + } + }, + "SampleRate": { + "target": "com.amazonaws.polly#SampleRate", + "traits": { + "smithy.api#documentation": "

The audio frequency specified in Hz.

\n

The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\", and \"24000\". The\n default value for standard voices is \"22050\". The default value for neural voices is\n \"24000\".

\n

Valid values for pcm are \"8000\" and \"16000\" The default value is \"16000\".

" + } + }, + "SnsTopicArn": { + "target": "com.amazonaws.polly#SnsTopicArn", + "traits": { + "smithy.api#documentation": "

ARN for the SNS topic optionally used for providing status notification for a speech\n synthesis task.

" + } + }, + "SpeechMarkTypes": { + "target": "com.amazonaws.polly#SpeechMarkTypeList", + "traits": { + "smithy.api#documentation": "

The type of speech marks returned for the input text.

" + } + }, + "Text": { + "target": "com.amazonaws.polly#Text", + "traits": { + "smithy.api#documentation": "

The input text to synthesize. If you specify ssml as the TextType, follow the SSML format\n for the input text.

", + "smithy.api#required": {} + } + }, + "TextType": { + "target": "com.amazonaws.polly#TextType", + "traits": { + "smithy.api#documentation": "

Specifies whether the input text is plain text or SSML. The default value is plain text.\n

" + } + }, + "VoiceId": { + "target": "com.amazonaws.polly#VoiceId", + "traits": { + "smithy.api#documentation": "

Voice ID to use for the synthesis.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.polly#StartSpeechSynthesisTaskOutput": { + "type": "structure", + "members": { + "SynthesisTask": { + "target": "com.amazonaws.polly#SynthesisTask", + "traits": { + "smithy.api#documentation": "

SynthesisTask object that provides information and attributes about a newly submitted\n speech synthesis task.

" + } + } + } + }, + "com.amazonaws.polly#SynthesisTask": { + "type": "structure", + "members": { + "Engine": { + "target": "com.amazonaws.polly#Engine", + "traits": { + "smithy.api#documentation": "

Specifies the engine (standard or neural) for Amazon Polly to\n use when processing input text for speech synthesis. Using a voice that is not supported for\n the engine selected will result in an error.

" + } + }, + "TaskId": { + "target": "com.amazonaws.polly#TaskId", + "traits": { + "smithy.api#documentation": "

The Amazon Polly generated identifier for a speech synthesis task.

" + } + }, + "TaskStatus": { + "target": "com.amazonaws.polly#TaskStatus", + "traits": { + "smithy.api#documentation": "

Current status of the individual speech synthesis task.

" + } + }, + "TaskStatusReason": { + "target": "com.amazonaws.polly#TaskStatusReason", + "traits": { + "smithy.api#documentation": "

Reason for the current status of a specific speech synthesis task, including errors if the\n task has failed.

" + } + }, + "OutputUri": { + "target": "com.amazonaws.polly#OutputUri", + "traits": { + "smithy.api#documentation": "

Pathway for the output speech file.

" + } + }, + "CreationTime": { + "target": "com.amazonaws.polly#DateTime", + "traits": { + "smithy.api#documentation": "

Timestamp for the time the synthesis task was started.

" + } + }, + "RequestCharacters": { + "target": "com.amazonaws.polly#RequestCharacters", + "traits": { + "smithy.api#documentation": "

Number of billable characters synthesized.

" + } + }, + "SnsTopicArn": { + "target": "com.amazonaws.polly#SnsTopicArn", + "traits": { + "smithy.api#documentation": "

ARN for the SNS topic optionally used for providing status notification for a speech\n synthesis task.

" + } + }, + "LexiconNames": { + "target": "com.amazonaws.polly#LexiconNameList", + "traits": { + "smithy.api#documentation": "

List of one or more pronunciation lexicon names you want the service to apply during\n synthesis. Lexicons are applied only if the language of the lexicon is the same as the\n language of the voice.

" + } + }, + "OutputFormat": { + "target": "com.amazonaws.polly#OutputFormat", + "traits": { + "smithy.api#documentation": "

The format in which the returned output will be encoded. For audio stream, this will be\n mp3, ogg_vorbis, or pcm. For speech marks, this will be json.

" + } + }, + "SampleRate": { + "target": "com.amazonaws.polly#SampleRate", + "traits": { + "smithy.api#documentation": "

The audio frequency specified in Hz.

\n

The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\", and \"24000\". The\n default value for standard voices is \"22050\". The default value for neural voices is\n \"24000\".

\n

Valid values for pcm are \"8000\" and \"16000\" The default value is \"16000\".

" + } + }, + "SpeechMarkTypes": { + "target": "com.amazonaws.polly#SpeechMarkTypeList", + "traits": { + "smithy.api#documentation": "

The type of speech marks returned for the input text.

" + } + }, + "TextType": { + "target": "com.amazonaws.polly#TextType", + "traits": { + "smithy.api#documentation": "

Specifies whether the input text is plain text or SSML. The default value is plain text.\n

" + } + }, + "VoiceId": { + "target": "com.amazonaws.polly#VoiceId", + "traits": { + "smithy.api#documentation": "

Voice ID to use for the synthesis.

" + } + }, + "LanguageCode": { + "target": "com.amazonaws.polly#LanguageCode", + "traits": { + "smithy.api#documentation": "

Optional language code for a synthesis task. This is only necessary if using a bilingual\n voice, such as Aditi, which can be used for either Indian English (en-IN) or Hindi (hi-IN).

\n

If a bilingual voice is used and no language code is specified, Amazon Polly will use the\n default language of the bilingual voice. The default language for any voice is the one\n returned by the DescribeVoices operation for the LanguageCode parameter. For example,\n if no language code is specified, Aditi will use Indian English rather than Hindi.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

SynthesisTask object that provides information about a speech synthesis task.

" + } + }, + "com.amazonaws.polly#SynthesisTaskNotFoundException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The Speech Synthesis task with requested Task ID cannot be found.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#SynthesisTasks": { + "type": "list", + "member": { + "target": "com.amazonaws.polly#SynthesisTask" + } + }, + "com.amazonaws.polly#SynthesizeSpeech": { + "type": "operation", + "input": { + "target": "com.amazonaws.polly#SynthesizeSpeechInput" + }, + "output": { + "target": "com.amazonaws.polly#SynthesizeSpeechOutput" + }, + "errors": [ + { + "target": "com.amazonaws.polly#EngineNotSupportedException" + }, + { + "target": "com.amazonaws.polly#InvalidSampleRateException" + }, + { + "target": "com.amazonaws.polly#InvalidSsmlException" + }, + { + "target": "com.amazonaws.polly#LanguageNotSupportedException" + }, + { + "target": "com.amazonaws.polly#LexiconNotFoundException" + }, + { + "target": "com.amazonaws.polly#MarksNotSupportedForFormatException" + }, + { + "target": "com.amazonaws.polly#ServiceFailureException" + }, + { + "target": "com.amazonaws.polly#SsmlMarksNotSupportedForTextTypeException" + }, + { + "target": "com.amazonaws.polly#TextLengthExceededException" + } + ], + "traits": { + "smithy.api#documentation": "

Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes. SSML input must be\n valid, well-formed SSML. Some alphabets might not be available with all the voices (for\n example, Cyrillic might not be read at all by English voices) unless phoneme mapping is used.\n For more information, see How it\n Works.

", + "smithy.api#http": { + "method": "POST", + "uri": "/v1/speech", + "code": 200 + } + } + }, + "com.amazonaws.polly#SynthesizeSpeechInput": { + "type": "structure", + "members": { + "Engine": { + "target": "com.amazonaws.polly#Engine", + "traits": { + "smithy.api#documentation": "

Specifies the engine (standard or neural) for Amazon Polly to\n use when processing input text for speech synthesis. For information on Amazon Polly voices and which voices are available in standard-only, NTTS-only, and \n both standard and NTTS formats, see Available Voices.

\n

\n NTTS-only voices\n

\n

When using NTTS-only voices such as Kevin (en-US), this parameter is required and must be\n set to neural. If the engine is not specified, or is set to standard,\n this will result in an error.

\n

Type: String

\n

Valid Values: standard | neural\n

\n

Required: Yes

\n \n

\n Standard voices\n

\n

For standard voices, this is not required; the engine parameter defaults to\n standard. If the engine is not specified, or is set to standard and\n an NTTS-only voice is selected, this will result in an error.

" + } + }, + "LanguageCode": { + "target": "com.amazonaws.polly#LanguageCode", + "traits": { + "smithy.api#documentation": "

Optional language code for the Synthesize Speech request. This is only necessary if using\n a bilingual voice, such as Aditi, which can be used for either Indian English (en-IN) or Hindi\n (hi-IN).

\n

If a bilingual voice is used and no language code is specified, Amazon Polly will use the\n default language of the bilingual voice. The default language for any voice is the one\n returned by the DescribeVoices operation for the LanguageCode parameter. For example,\n if no language code is specified, Aditi will use Indian English rather than Hindi.

" + } + }, + "LexiconNames": { + "target": "com.amazonaws.polly#LexiconNameList", + "traits": { + "smithy.api#documentation": "

List of one or more pronunciation lexicon names you want the service to apply during\n synthesis. Lexicons are applied only if the language of the lexicon is the same as the\n language of the voice. For information about storing lexicons, see PutLexicon.

" + } + }, + "OutputFormat": { + "target": "com.amazonaws.polly#OutputFormat", + "traits": { + "smithy.api#documentation": "

The format in which the returned output will be encoded. For audio stream, this will\n be mp3, ogg_vorbis, or pcm. For speech marks, this will be json.

\n

When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 channel\n (mono), little-endian format.

", + "smithy.api#required": {} + } + }, + "SampleRate": { + "target": "com.amazonaws.polly#SampleRate", + "traits": { + "smithy.api#documentation": "

The audio frequency specified in Hz.

\n

The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\", and \"24000\". The\n default value for standard voices is \"22050\". The default value for neural voices is\n \"24000\".

\n

Valid values for pcm are \"8000\" and \"16000\" The default value is \"16000\".

" + } + }, + "SpeechMarkTypes": { + "target": "com.amazonaws.polly#SpeechMarkTypeList", + "traits": { + "smithy.api#documentation": "

The type of speech marks returned for the input text.

" + } + }, + "Text": { + "target": "com.amazonaws.polly#Text", + "traits": { + "smithy.api#documentation": "

Input text to synthesize. If you specify ssml as the\n TextType, follow the SSML format for the input text.

", + "smithy.api#required": {} + } + }, + "TextType": { + "target": "com.amazonaws.polly#TextType", + "traits": { + "smithy.api#documentation": "

Specifies whether the input text is plain text or SSML. The default value is plain\n text. For more information, see Using SSML.

" + } + }, + "VoiceId": { + "target": "com.amazonaws.polly#VoiceId", + "traits": { + "smithy.api#documentation": "

Voice ID to use for the synthesis. You can get a list of available voice IDs by\n calling the DescribeVoices operation.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.polly#SynthesizeSpeechOutput": { + "type": "structure", + "members": { + "AudioStream": { + "target": "com.amazonaws.polly#AudioStream", + "traits": { + "smithy.api#documentation": "

Stream containing the synthesized speech.

", + "smithy.api#httpPayload": {} + } + }, + "ContentType": { + "target": "com.amazonaws.polly#ContentType", + "traits": { + "smithy.api#documentation": "

Specifies the type audio stream. This should reflect the OutputFormat\n parameter in your request.

\n
    \n
  • \n

    If you request mp3 as the OutputFormat, the\n ContentType returned is audio/mpeg.

    \n
  • \n
  • \n

    If you request ogg_vorbis as the OutputFormat, the\n ContentType returned is audio/ogg.

    \n
  • \n
  • \n

    If you request pcm as the OutputFormat, the\n ContentType returned is audio/pcm in a signed 16-bit, 1 channel (mono),\n little-endian format.

    \n
  • \n
  • \n

    If you request json as the OutputFormat, the\n ContentType returned is audio/json.

    \n
  • \n
\n

", + "smithy.api#httpHeader": "Content-Type" + } + }, + "RequestCharacters": { + "target": "com.amazonaws.polly#RequestCharacters", + "traits": { + "smithy.api#documentation": "

Number of characters synthesized.

", + "smithy.api#httpHeader": "x-amzn-RequestCharacters" + } + } + } + }, + "com.amazonaws.polly#TaskId": { + "type": "string", + "traits": { + "smithy.api#pattern": "^[a-zA-Z0-9_-]{1,100}$" + } + }, + "com.amazonaws.polly#TaskStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "scheduled", + "name": "SCHEDULED" + }, + { + "value": "inProgress", + "name": "IN_PROGRESS" + }, + { + "value": "completed", + "name": "COMPLETED" + }, + { + "value": "failed", + "name": "FAILED" + } + ] + } + }, + "com.amazonaws.polly#TaskStatusReason": { + "type": "string" + }, + "com.amazonaws.polly#Text": { + "type": "string" + }, + "com.amazonaws.polly#TextLengthExceededException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The value of the \"Text\" parameter is longer than the accepted limits. For the\n SynthesizeSpeech API, the limit for input text is a maximum of 6000 characters\n total, of which no more than 3000 can be billed characters. For the\n StartSpeechSynthesisTask API, the maximum is 200,000 characters, of which no\n more than 100,000 can be billed characters. SSML tags are not counted as billed\n characters.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#TextType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ssml", + "name": "SSML" + }, + { + "value": "text", + "name": "TEXT" + } + ] + } + }, + "com.amazonaws.polly#UnsupportedPlsAlphabetException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The alphabet specified by the lexicon is not a supported alphabet. Valid values are\n x-sampa and ipa.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#UnsupportedPlsLanguageException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.polly#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The language specified in the lexicon is unsupported. For a list of supported\n languages, see Lexicon\n Attributes.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.polly#Voice": { + "type": "structure", + "members": { + "Gender": { + "target": "com.amazonaws.polly#Gender", + "traits": { + "smithy.api#documentation": "

Gender of the voice.

" + } + }, + "Id": { + "target": "com.amazonaws.polly#VoiceId", + "traits": { + "smithy.api#documentation": "

Amazon Polly assigned voice ID. This is the ID that you specify when calling the\n SynthesizeSpeech operation.

" + } + }, + "LanguageCode": { + "target": "com.amazonaws.polly#LanguageCode", + "traits": { + "smithy.api#documentation": "

Language code of the voice.

" + } + }, + "LanguageName": { + "target": "com.amazonaws.polly#LanguageName", + "traits": { + "smithy.api#documentation": "

Human readable name of the language in English.

" + } + }, + "Name": { + "target": "com.amazonaws.polly#VoiceName", + "traits": { + "smithy.api#documentation": "

Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable\n voice name that you might display in your application.

" + } + }, + "AdditionalLanguageCodes": { + "target": "com.amazonaws.polly#LanguageCodeList", + "traits": { + "smithy.api#documentation": "

Additional codes for languages available for the specified voice in addition to its\n default language.

\n

For example, the default language for Aditi is Indian English (en-IN) because it was first\n used for that language. Since Aditi is bilingual and fluent in both Indian English and Hindi,\n this parameter would show the code hi-IN.

" + } + }, + "SupportedEngines": { + "target": "com.amazonaws.polly#EngineList", + "traits": { + "smithy.api#documentation": "

Specifies which engines (standard or neural) that are supported\n by a given voice.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Description of the voice.

" + } + }, + "com.amazonaws.polly#VoiceId": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "Aditi", + "name": "Aditi" + }, + { + "value": "Amy", + "name": "Amy" + }, + { + "value": "Astrid", + "name": "Astrid" + }, + { + "value": "Bianca", + "name": "Bianca" + }, + { + "value": "Brian", + "name": "Brian" + }, + { + "value": "Camila", + "name": "Camila" + }, + { + "value": "Carla", + "name": "Carla" + }, + { + "value": "Carmen", + "name": "Carmen" + }, + { + "value": "Celine", + "name": "Celine" + }, + { + "value": "Chantal", + "name": "Chantal" + }, + { + "value": "Conchita", + "name": "Conchita" + }, + { + "value": "Cristiano", + "name": "Cristiano" + }, + { + "value": "Dora", + "name": "Dora" + }, + { + "value": "Emma", + "name": "Emma" + }, + { + "value": "Enrique", + "name": "Enrique" + }, + { + "value": "Ewa", + "name": "Ewa" + }, + { + "value": "Filiz", + "name": "Filiz" + }, + { + "value": "Geraint", + "name": "Geraint" + }, + { + "value": "Giorgio", + "name": "Giorgio" + }, + { + "value": "Gwyneth", + "name": "Gwyneth" + }, + { + "value": "Hans", + "name": "Hans" + }, + { + "value": "Ines", + "name": "Ines" + }, + { + "value": "Ivy", + "name": "Ivy" + }, + { + "value": "Jacek", + "name": "Jacek" + }, + { + "value": "Jan", + "name": "Jan" + }, + { + "value": "Joanna", + "name": "Joanna" + }, + { + "value": "Joey", + "name": "Joey" + }, + { + "value": "Justin", + "name": "Justin" + }, + { + "value": "Karl", + "name": "Karl" + }, + { + "value": "Kendra", + "name": "Kendra" + }, + { + "value": "Kevin", + "name": "Kevin" + }, + { + "value": "Kimberly", + "name": "Kimberly" + }, + { + "value": "Lea", + "name": "Lea" + }, + { + "value": "Liv", + "name": "Liv" + }, + { + "value": "Lotte", + "name": "Lotte" + }, + { + "value": "Lucia", + "name": "Lucia" + }, + { + "value": "Lupe", + "name": "Lupe" + }, + { + "value": "Mads", + "name": "Mads" + }, + { + "value": "Maja", + "name": "Maja" + }, + { + "value": "Marlene", + "name": "Marlene" + }, + { + "value": "Mathieu", + "name": "Mathieu" + }, + { + "value": "Matthew", + "name": "Matthew" + }, + { + "value": "Maxim", + "name": "Maxim" + }, + { + "value": "Mia", + "name": "Mia" + }, + { + "value": "Miguel", + "name": "Miguel" + }, + { + "value": "Mizuki", + "name": "Mizuki" + }, + { + "value": "Naja", + "name": "Naja" + }, + { + "value": "Nicole", + "name": "Nicole" + }, + { + "value": "Olivia", + "name": "Olivia" + }, + { + "value": "Penelope", + "name": "Penelope" + }, + { + "value": "Raveena", + "name": "Raveena" + }, + { + "value": "Ricardo", + "name": "Ricardo" + }, + { + "value": "Ruben", + "name": "Ruben" + }, + { + "value": "Russell", + "name": "Russell" + }, + { + "value": "Salli", + "name": "Salli" + }, + { + "value": "Seoyeon", + "name": "Seoyeon" + }, + { + "value": "Takumi", + "name": "Takumi" + }, + { + "value": "Tatyana", + "name": "Tatyana" + }, + { + "value": "Vicki", + "name": "Vicki" + }, + { + "value": "Vitoria", + "name": "Vitoria" + }, + { + "value": "Zeina", + "name": "Zeina" + }, + { + "value": "Zhiyu", + "name": "Zhiyu" + } + ] + } + }, + "com.amazonaws.polly#VoiceList": { + "type": "list", + "member": { + "target": "com.amazonaws.polly#Voice" + } + }, + "com.amazonaws.polly#VoiceName": { + "type": "string" + } + } +} diff --git a/codegen-test/build.gradle.kts b/codegen-test/build.gradle.kts index 4ce74083aa..cfca31c316 100644 --- a/codegen-test/build.gradle.kts +++ b/codegen-test/build.gradle.kts @@ -132,8 +132,7 @@ tasks.register("cargoDocs") { tasks.register("cargoClippy") { workingDir("build/smithyprojections/codegen-test/") // disallow warnings - environment("RUSTFLAGS", "-D warnings") - commandLine("cargo", "clippy") + commandLine("cargo", "clippy", "--", "-D", "warnings", "-Aclippy::upper_case_acronyms", "-Aclippy::large-enum-variant") dependsOn("assemble") } diff --git a/codegen-test/model/rest-json-extras.smithy b/codegen-test/model/rest-json-extras.smithy index 36f1eaaa41..d9ba1fdf18 100644 --- a/codegen-test/model/rest-json-extras.smithy +++ b/codegen-test/model/rest-json-extras.smithy @@ -5,6 +5,7 @@ namespace aws.protocoltests.restjson use aws.protocols#restJson1 use aws.api#service use smithy.test#httpRequestTests +use smithy.test#httpResponseTests /// A REST JSON service that sends JSON requests and responses. @@ -12,7 +13,7 @@ use smithy.test#httpRequestTests @restJson1 service RestJsonExtras { version: "2019-12-16", - operations: [EnumPayload, StringPayload] + operations: [EnumPayload, StringPayload, PrimitiveIntHeader, EnumQuery] } @http(uri: "/EnumPayload", method: "POST") @@ -59,3 +60,45 @@ structure StringPayloadInput { @httpPayload payload: String } + +@httpResponseTests([ + { + id: "DeserPrimitiveHeader", + protocol: "aws.protocols#restJson1", + code: 200, + headers: { "x-field": "123" }, + params: { field: 123 } + } +]) +@http(uri: "/primitive", method: "POST") +operation PrimitiveIntHeader { + output: PrimitiveIntHeaderInput +} + +integer PrimitiveInt + +structure PrimitiveIntHeaderInput { + @httpHeader("x-field") + @required + field: PrimitiveInt +} + +@http(uri: "/foo/{enum}", method: "GET") +@httpRequestTests([ + { + id: "EnumQueryRequest", + uri: "/foo/enumvalue", + params: { enum: "enumvalue" }, + method: "GET", + protocol: "aws.protocols#restJson1" + } +]) +operation EnumQuery { + input: EnumQueryInput +} + +structure EnumQueryInput { + @httpLabel + @required + enum: StringEnum +} \ No newline at end of file diff --git a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/RustWriter.kt b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/RustWriter.kt index 6a92ef79c0..425ea65bff 100644 --- a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/RustWriter.kt +++ b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/RustWriter.kt @@ -17,7 +17,6 @@ import software.amazon.smithy.model.shapes.NumberShape import software.amazon.smithy.model.shapes.Shape import software.amazon.smithy.model.shapes.ShapeId import software.amazon.smithy.model.traits.DocumentationTrait -import software.amazon.smithy.model.traits.EnumTrait import software.amazon.smithy.rust.codegen.smithy.RuntimeType import software.amazon.smithy.rust.codegen.smithy.isOptional import software.amazon.smithy.rust.codegen.smithy.rustType @@ -309,14 +308,6 @@ class RustWriter private constructor( return formatter.apply(r, "") } - fun useAs(target: Shape, base: String): String { - return if (target.hasTrait(EnumTrait::class.java)) { - "$base.as_str()" - } else { - base - } - } - fun addDepsRecursively(symbol: Symbol) { addDependency(symbol) symbol.references.forEach { addDepsRecursively(it.symbol) } diff --git a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt index fcafb28c9a..5cec313ca0 100644 --- a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt +++ b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt @@ -91,7 +91,7 @@ class CodegenVisitor(context: PluginContext, private val codegenDecorator: RustC ) ) try { - "cargo fmt".runCommand(fileManifest.baseDir, timeout = 5) + "cargo fmt".runCommand(fileManifest.baseDir, timeout = 10) } catch (_: CommandFailed) { logger.warning("Generated output did not parse [${service.id}]") } diff --git a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/EnumGenerator.kt b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/EnumGenerator.kt index 3e6f118746..0b526517e2 100644 --- a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/EnumGenerator.kt +++ b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/EnumGenerator.kt @@ -45,6 +45,11 @@ class EnumGenerator( writer.insertTrailingNewline() // impl Blah { pub fn as_str(&self) -> &str implBlock() + writer.rustBlock("impl AsRef for $enumName") { + writer.rustBlock("fn as_ref(&self) -> &str") { + rust("self.as_str()") + } + } } else { renderUnamedEnum() } @@ -132,9 +137,9 @@ class EnumGenerator( } private fun renderFromStr() { - writer.rustBlock("impl #T for $enumName where T: #T", RuntimeType.From, RuntimeType.AsRef) { - writer.rustBlock("fn from(s: T) -> Self") { - writer.rustBlock("match s.as_ref()") { + writer.rustBlock("impl #T<&str> for $enumName", RuntimeType.From) { + writer.rustBlock("fn from(s: &str) -> Self") { + writer.rustBlock("match s") { sortedMembers.forEach { member -> write(""""${member.value}" => $enumName::${member.derivedName()},""") } diff --git a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/http/RequestBindingGenerator.kt b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/http/RequestBindingGenerator.kt index 2f256b0008..3fa0f12989 100644 --- a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/http/RequestBindingGenerator.kt +++ b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/http/RequestBindingGenerator.kt @@ -203,12 +203,11 @@ class RequestBindingGenerator( private fun headerFmtFun(target: Shape, member: MemberShape, targetName: String): String { return when { target.isStringShape -> { - /*val func = */ if (target.hasTrait(MediaTypeTrait::class.java)) { + if (target.hasTrait(MediaTypeTrait::class.java)) { val func = writer.format(RuntimeType.Base64Encode(runtimeConfig)) - "$func(&${writer.useAs(target, targetName)})" + "$func(&$targetName)" } else { - writer.useAs(target, targetName) - // writer.format(RuntimeType.QueryFormat(runtimeConfig, "fmt_string")) + "AsRef::::as_ref($targetName)" } } target.isTimestampShape -> { @@ -311,7 +310,7 @@ class RequestBindingGenerator( return when { target.isStringShape -> { val func = writer.format(RuntimeType.QueryFormat(runtimeConfig, "fmt_string")) - "$func(&${writer.useAs(target, targetName)})" + "$func(&$targetName)" } target.isTimestampShape -> { val timestampFormat = diff --git a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/http/ResponseBindingGenerator.kt b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/http/ResponseBindingGenerator.kt index fc14843094..9b55797ea8 100644 --- a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/http/ResponseBindingGenerator.kt +++ b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/http/ResponseBindingGenerator.kt @@ -181,6 +181,7 @@ class ResponseBindingGenerator(protocolConfig: ProtocolConfig, private val opera */ private fun RustWriter.deserializeFromHeader(targetType: Shape, memberShape: MemberShape) { val rustType = symbolProvider.toSymbol(targetType).rustType().stripOuter() + val fieldRequired = symbolProvider.toSymbol(memberShape).rustType() !is RustType.Option val (coreType, coreShape) = if (targetType is CollectionShape) { rustType.stripOuter() to model.expectShape(targetType.member.target) } else { @@ -240,8 +241,9 @@ class ResponseBindingGenerator(protocolConfig: ProtocolConfig, private val opera """ ) else -> - rustTemplate( - """ + if (!fieldRequired) { + rustTemplate( + """ if $parsedValue.len() > 1 { Err(#{header_util}::ParseError) } else { @@ -249,8 +251,21 @@ class ResponseBindingGenerator(protocolConfig: ProtocolConfig, private val opera Ok($parsedValue.pop()) } """, - "header_util" to headerUtil - ) + "header_util" to headerUtil + ) + } else { + rustTemplate( + """ + if $parsedValue.len() > 1 { + Err(#{header_util}::ParseError) + } else { + let mut $parsedValue = $parsedValue; + $parsedValue.pop().ok_or(#{header_util}::ParseError) + } + """, + "header_util" to headerUtil + ) + } } } } diff --git a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/util/Exec.kt b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/util/Exec.kt index da635aae83..b7bfa7aca4 100644 --- a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/util/Exec.kt +++ b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/util/Exec.kt @@ -23,13 +23,16 @@ fun String.runCommand(workdir: Path? = null, environment: Map = val env = builder.environment() environment.forEach { (k, v) -> env[k] = v } val proc = builder.start() - proc.waitFor(timeout, TimeUnit.SECONDS) val stdErr = proc.errorStream.bufferedReader().readText() val stdOut = proc.inputStream.bufferedReader().readText() val output = "$stdErr\n$stdOut" - return when (proc.exitValue()) { - 0 -> output - else -> throw CommandFailed("Command Failed\n$output") + try { + return when (proc.exitValue()) { + 0 -> output + else -> throw CommandFailed("Command Failed\n$output") + } + } catch (_: IllegalThreadStateException) { + throw CommandFailed("Timeout") } }