CfnBasePathMappingProps

class aws_cdk.aws_apigateway.CfnBasePathMappingProps(*, domain_name, base_path=None, id=None, rest_api_id=None, stage=None)

Bases: object

Properties for defining a CfnBasePathMapping.

Parameters:
  • domain_name (str) – The domain name of the BasePathMapping resource to be described.

  • base_path (Optional[str]) – The base path name that callers of the API must provide as part of the URL after the domain name.

  • id (Optional[str]) – AWS::ApiGateway::BasePathMapping.Id.

  • rest_api_id (Optional[str]) – The string identifier of the associated RestApi.

  • stage (Optional[str]) – The name of the associated stage.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-basepathmapping.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_apigateway as apigateway

cfn_base_path_mapping_props = apigateway.CfnBasePathMappingProps(
    domain_name="domainName",

    # the properties below are optional
    base_path="basePath",
    id="id",
    rest_api_id="restApiId",
    stage="stage"
)

Attributes

base_path

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

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-basepathmapping.html#cfn-apigateway-basepathmapping-basepath

domain_name

The domain name of the BasePathMapping resource to be described.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-basepathmapping.html#cfn-apigateway-basepathmapping-domainname

id

AWS::ApiGateway::BasePathMapping.Id.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-basepathmapping.html#cfn-apigateway-basepathmapping-id

rest_api_id

The string identifier of the associated RestApi.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-basepathmapping.html#cfn-apigateway-basepathmapping-restapiid

stage

The name of the associated stage.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-basepathmapping.html#cfn-apigateway-basepathmapping-stage