Skip to content

Create Base Path Mapping

apigateway_create_base_path_mapping R Documentation

Creates a new BasePathMapping resource

Description

Creates a new BasePathMapping resource.

Usage

apigateway_create_base_path_mapping(domainName, basePath, restApiId,
  stage)

Arguments

domainName

[required] The domain name of the BasePathMapping resource to create.

basePath

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.

restApiId

[required] The string identifier of the associated RestApi.

stage

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.

Value

A list with the following syntax:

list(
  basePath = "string",
  restApiId = "string",
  stage = "string"
)

Request syntax

svc$create_base_path_mapping(
  domainName = "string",
  basePath = "string",
  restApiId = "string",
  stage = "string"
)