create_base_path_mapping
(**kwargs)¶Creates a new BasePathMapping resource.
See also: AWS API Documentation
Request Syntax
response = client.create_base_path_mapping(
domainName='string',
basePath='string',
restApiId='string',
stage='string'
)
[REQUIRED]
The domain name of the BasePathMapping resource to create.
[REQUIRED]
The string identifier of the associated RestApi.
dict
Response Syntax
{
'basePath': 'string',
'restApiId': 'string',
'stage': 'string'
}
Response Structure
(dict) --
Represents the base path that callers of the API must provide as part of the URL after the domain name.
basePath (string) --
The base path name that callers of the API must provide as part of the URL after the domain name.
restApiId (string) --
The string identifier of the associated RestApi.
stage (string) --
The name of the associated stage.
Exceptions
APIGateway.Client.exceptions.BadRequestException
APIGateway.Client.exceptions.ConflictException
APIGateway.Client.exceptions.LimitExceededException
APIGateway.Client.exceptions.NotFoundException
APIGateway.Client.exceptions.UnauthorizedException
APIGateway.Client.exceptions.TooManyRequestsException