openapi: 3.0.0
info:
version: 2015-07-09
x-release: v4
title: APIs.io Engineering Platform Amazon API Gateway 2014 11 13 Domainnames API
description:
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.
x-logo: url: https://api.apis.guru/v2/cache/logo/https_twitter.com_awscloud_profile_image.png backgroundColor: '#FFFFFF' termsOfService: https://aws.amazon.com/service-terms/ contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: https://github.com/mermade/aws2openapi x-twitter: PermittedSoc license: name: Apache 2.0 License url: http://www.apache.org/licenses/ x-providerName: amazonaws.com x-serviceName: apigateway x-origin: - contentType: application/json url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/apigateway-2015-07-09.normal.json converter: url: https://github.com/mermade/aws2openapi version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct x-apisguru-categories: - cloud x-preferred: true servers: - url: http://apigateway.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon API Gateway multi-region endpoint - url: https://apigateway.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon API Gateway multi-region endpoint - url: http://apigateway.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon API Gateway endpoint for China (Beijing) and China (Ningxia) - url: https://apigateway.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon API Gateway endpoint for China (Beijing) and China (Ningxia) security: - hmac: [] tags: - name: Domainnames paths: /domainnames/{domain_name}/basepathmappings: parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' post: operationId: CreateBasePathMapping description: Creates a new BasePathMapping resource. responses: '201': description: Success content: application/json: schema: $ref: '#/components/schemas/BasePathMapping' '480': description: BadRequestException content: application/json: schema: $ref: '#/components/schemas/BadRequestException' '481': description: ConflictException content: application/json: schema: $ref: '#/components/schemas/ConflictException' '482': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' '483': description: NotFoundException content: application/json: schema: $ref: '#/components/schemas/NotFoundException' '484': description: UnauthorizedException content: application/json: schema: $ref: '#/components/schemas/UnauthorizedException' '485': description: TooManyRequestsException content: application/json: schema: $ref: '#/components/schemas/TooManyRequestsException' parameters: - name: domain_name in: path required: true description: The domain name of the BasePathMapping resource to create. schema: type: string requestBody: required: true content: application/json: schema: type: object required: - restApiId properties: basePath: description: 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. type: string restApiId: description: The string identifier of the associated RestApi. type: string stage: description: 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. type: string tags: - Domainnames get: operationId: GetBasePathMappings description: Represents a collection of BasePathMapping resources. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/BasePathMappings' '480': description: BadRequestException content: application/json: schema: $ref: '#/components/schemas/BadRequestException' '481': description: NotFoundException content: application/json: schema: $ref: '#/components/schemas/NotFoundException' '482': description: UnauthorizedException content: application/json: schema: $ref: '#/components/schemas/UnauthorizedException' '483': description: TooManyRequestsException content: application/json: schema: $ref: '#/components/schemas/TooManyRequestsException' parameters: - name: domain_name in: path required: true description: The domain name of a BasePathMapping resource. schema: type: string - name: position in: query required: false description: The current pagination position in the paged result set. schema: type: string - name: limit in: query required: false description: The maximum number of returned results per page. The default value is 25 and the maximum value is 500. schema: type: integer tags: - Domainnames /domainnames: parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' post: operationId: CreateDomainName description: Creates a new domain name. responses: '201': description: Success content: application/json: schema: $ref: '#/components/schemas/DomainName' '480': description: BadRequestException content: application/json: schema: $ref: '#/components/schemas/BadRequestException' '481': description: ConflictException content: application/json: schema: $ref: '#/components/schemas/ConflictException' '482': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' '483': description: UnauthorizedException content: application/json: schema: $ref: '#/components/schemas/UnauthorizedException' '484': description: TooManyRequestsException content: application/json: schema: $ref: '#/components/schemas/TooManyRequestsException' parameters: [] requestBody: required: true content: application/json: schema: type: object required: - domainName properties: domainName: description: The name of the DomainName resource. type: string certificateName: description: The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain name. type: string certificateBody: description: '[Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this domain name provided by your certificate authority.' type: string certificatePrivateKey: description: '[Deprecated] Your edge-optimized endpoint''s domain name certificate''s private key.' type: string certificateChain: description: '[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.' type: string certificateArn: description: 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. type: string regionalCertificateName: description: The user-friendly name of the certificate that will be used by regional endpoint for this domain name. type: string regionalCertificateArn: description: 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. type: string endpointConfiguration: description: 'The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has. ' type: object properties: types: allOf: - $ref: '#/components/schemas/ListOfEndpointType' - description: 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:
allOf:
- $ref: '#/components/schemas/ListOfString'
- description: A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported for PRIVATE endpoint type.
tags:
description: 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.
type: object
additionalProperties:
$ref: '#/components/schemas/String'
securityPolicy:
description: The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0 and TLS_1_2.
type: string
enum:
- TLS_1_0
- TLS_1_2
mutualTlsAuthentication:
description: 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.
type: object
properties:
truststoreUri:
allOf:
- $ref: '#/components/schemas/String'
- description: An Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. To update the truststore, you must have permissions to access the S3 object.
truststoreVersion:
allOf:
- $ref: '#/components/schemas/String'
- description: The version of the S3 object that contains your truststore. To specify a version, you must have versioning enabled for the S3 bucket
ownershipVerificationCertificateArn:
description: The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.
type: string
tags:
- Domainnames
get:
operationId: GetDomainNames
description: Represents a collection of DomainName resources.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DomainNames'
'480':
description: BadRequestException
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestException'
'481':
description: NotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundException'
'482':
description: UnauthorizedException
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedException'
'483':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: position
in: query
required: false
description: The current pagination position in the paged result set.
schema:
type: string
- name: limit
in: query
required: false
description: The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
schema:
type: integer
tags:
- Domainnames
/domainnames/{domain_name}/basepathmappings/{base_path}:
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
delete:
operationId: DeleteBasePathMapping
description: Deletes the BasePathMapping resource.
responses:
'202':
description: Success
'480':
description: BadRequestException
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestException'
'481':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'482':
description: NotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundException'
'483':
description: UnauthorizedException
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedException'
'484':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: domain_name
in: path
required: true
description: The domain name of the BasePathMapping resource to delete.
schema:
type: string
- name: base_path
in: path
required: true
description: The base path name of the BasePathMapping resource to delete.
To specify an empty base path, set this parameter to '(none)'.
The base path of the BasePathMapping resource to change.
To specify an empty base path, set this parameter to '(none)'.
my-api.example.com.
certificateName:
allOf:
- $ref: '#/components/schemas/String'
- description: The name of the certificate that will be used by edge-optimized endpoint for this domain name.
certificateArn:
allOf:
- $ref: '#/components/schemas/String'
- description: 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:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.
regionalDomainName:
allOf:
- $ref: '#/components/schemas/String'
- description: 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:
allOf:
- $ref: '#/components/schemas/String'
- description: '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:
allOf:
- $ref: '#/components/schemas/String'
- description: The name of the certificate that will be used for validating the regional domain name.
regionalCertificateArn:
allOf:
- $ref: '#/components/schemas/String'
- description: 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:
allOf:
- $ref: '#/components/schemas/String'
- description: 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:
allOf:
- $ref: '#/components/schemas/String'
- description: '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:
allOf:
- $ref: '#/components/schemas/EndpointConfiguration'
- description: 'The endpoint configuration of this DomainName showing the endpoint types of the domain name. '
domainNameStatus:
allOf:
- $ref: '#/components/schemas/DomainNameStatus'
- description: 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:
allOf:
- $ref: '#/components/schemas/String'
- description: An optional text message containing detailed information about status of the DomainName migration.
securityPolicy:
allOf:
- $ref: '#/components/schemas/SecurityPolicy'
- description: The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0 and TLS_1_2.
tags:
allOf:
- $ref: '#/components/schemas/MapOfStringToString'
- description: The collection of tags. Each tag element is associated with a given resource.
mutualTlsAuthentication:
allOf:
- $ref: '#/components/schemas/MutualTlsAuthentication'
- description: 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.
ownershipVerificationCertificateArn:
allOf:
- $ref: '#/components/schemas/String'
- description: The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.
description: Represents a custom domain name as a user-friendly host name of an API (RestApi).
Op:
type: string
enum:
- add
- remove
- replace
- move
- copy
- test
ListOfBasePathMapping:
type: array
items:
$ref: '#/components/schemas/BasePathMapping'
UnauthorizedException: {}
ConflictException: {}
Timestamp:
type: string
format: date-time
BadRequestException: {}
PatchOperation:
type: object
properties:
op:
allOf:
- $ref: '#/components/schemas/Op'
- description: 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:
allOf:
- $ref: '#/components/schemas/String'
- description: '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:
allOf:
- $ref: '#/components/schemas/String'
- description: '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": ...}''.'
from:
allOf:
- $ref: '#/components/schemas/String'
- description: 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".
description: For more information about supported patch operations, see Patch Operations.
LimitExceededException: {}
ListOfEndpointType:
type: array
items:
$ref: '#/components/schemas/EndpointType'
EndpointType:
type: string
enum:
- REGIONAL
- EDGE
- PRIVATE
description: 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.
String:
type: string
DomainNameStatus:
type: string
enum:
- AVAILABLE
- UPDATING
- PENDING
- PENDING_CERTIFICATE_REIMPORT
- PENDING_OWNERSHIP_VERIFICATION
ListOfString:
type: array
items:
$ref: '#/components/schemas/String'
ListOfDomainName:
type: array
items:
$ref: '#/components/schemas/DomainName'
BasePathMappings:
type: object
properties:
position:
$ref: '#/components/schemas/String'
items:
allOf:
- $ref: '#/components/schemas/ListOfBasePathMapping'
- xml:
name: item
description: The current page of elements from this collection.
description: Represents a collection of BasePathMapping resources.
MapOfStringToString:
type: object
additionalProperties:
$ref: '#/components/schemas/String'
EndpointConfiguration:
type: object
properties:
types:
allOf:
- $ref: '#/components/schemas/ListOfEndpointType'
- description: 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:
allOf:
- $ref: '#/components/schemas/ListOfString'
- description: A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported for PRIVATE endpoint type.
description: 'The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has. '
SecurityPolicy:
type: string
enum:
- TLS_1_0
- TLS_1_2
BasePathMapping:
type: object
properties:
basePath:
allOf:
- $ref: '#/components/schemas/String'
- description: The base path name that callers of the API must provide as part of the URL after the domain name.
restApiId:
allOf:
- $ref: '#/components/schemas/String'
- description: The string identifier of the associated RestApi.
stage:
allOf:
- $ref: '#/components/schemas/String'
- description: The name of the associated stage.
description: Represents the base path that callers of the API must provide as part of the URL after the domain name.
MutualTlsAuthentication:
type: object
properties:
truststoreUri:
allOf:
- $ref: '#/components/schemas/String'
- description: An Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. To update the truststore, you must have permissions to access the S3 object.
truststoreVersion:
allOf:
- $ref: '#/components/schemas/String'
- description: The version of the S3 object that contains your truststore. To specify a version, you must have versioning enabled for the S3 bucket.
truststoreWarnings:
allOf:
- $ref: '#/components/schemas/ListOfString'
- description: A list of warnings that API Gateway returns while processing your truststore. Invalid certificates produce warnings. Mutual TLS is still enabled, but some clients might not be able to access your API. To resolve warnings, upload a new truststore to S3, and then update you domain name to use the new version.
description: 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.
parameters:
X-Amz-Signature:
name: X-Amz-Signature
in: header
schema:
type: string
required: false
X-Amz-Content-Sha256:
name: X-Amz-Content-Sha256
in: header
schema:
type: string
required: false
X-Amz-Algorithm:
name: X-Amz-Algorithm
in: header
schema:
type: string
required: false
X-Amz-Security-Token:
name: X-Amz-Security-Token
in: header
schema:
type: string
required: false
X-Amz-SignedHeaders:
name: X-Amz-SignedHeaders
in: header
schema:
type: string
required: false
X-Amz-Credential:
name: X-Amz-Credential
in: header
schema:
type: string
required: false
X-Amz-Date:
name: X-Amz-Date
in: header
schema:
type: string
required: false
securitySchemes:
hmac:
type: apiKey
name: Authorization
in: header
description: Amazon Signature authorization v4
x-amazon-apigateway-authtype: awsSigv4
externalDocs:
description: Amazon Web Services documentation
url: https://docs.aws.amazon.com/apigateway/
x-hasEquivalentPaths: true