BasePathMappingProps

class aws_cdk.aws_apigateway.BasePathMappingProps(*, base_path=None, domain_name, rest_api)

Bases: aws_cdk.aws_apigateway.BasePathMappingOptions

__init__(*, base_path=None, domain_name, rest_api)
Parameters
  • base_path (Optional[str]) – The base path name that callers of the API must provide in the URL after the domain name (e.g. example.com/base-path). If you specify this property, it can’t be an empty string. Default: - map requests from the domain root (e.g. example.com). If this is undefined, no additional mappings will be allowed on this domain name.

  • domain_name (IDomainName) – The DomainName to associate with this base path mapping.

  • rest_api (IRestApi) – The RestApi resource to target.

Attributes

base_path

The base path name that callers of the API must provide in the URL after the domain name (e.g. example.com/base-path). If you specify this property, it can’t be an empty string.

default :default:

  • map requests from the domain root (e.g. example.com). If this is undefined, no additional mappings will be allowed on this domain name.

Return type

Optional[str]

domain_name

The DomainName to associate with this base path mapping.

Return type

IDomainName

rest_api

The RestApi resource to target.

Return type

IRestApi