ApiGatewayV2.Client.
create_api_mapping
(**kwargs)¶Creates an API mapping.
See also: AWS API Documentation
Request Syntax
response = client.create_api_mapping(
ApiId='string',
ApiMappingKey='string',
DomainName='string',
Stage='string'
)
[REQUIRED]
The API identifier.
[REQUIRED]
The domain name.
[REQUIRED]
The API stage.
dict
Response Syntax
{
'ApiId': 'string',
'ApiMappingId': 'string',
'ApiMappingKey': 'string',
'Stage': 'string'
}
Response Structure
(dict) --
The request has succeeded and has resulted in the creation of a resource.
ApiId (string) --
The API identifier.
ApiMappingId (string) --
The API mapping identifier.
ApiMappingKey (string) --
The API mapping key.
Stage (string) --
The API stage.
Exceptions
ApiGatewayV2.Client.exceptions.NotFoundException
ApiGatewayV2.Client.exceptions.TooManyRequestsException
ApiGatewayV2.Client.exceptions.BadRequestException
ApiGatewayV2.Client.exceptions.ConflictException