Base Path Mapping Args
data class BasePathMappingArgs(val basePath: Output<String>? = null, val domainName: Output<String>? = null, val domainNameId: Output<String>? = null, val restApi: Output<String>? = null, val stageName: Output<String>? = null) : ConvertibleToJava<BasePathMappingArgs>
Connects a custom domain name registered via aws.apigateway.DomainName
with a deployed API so that its methods can be called via the custom domain name.
Import
For a non-root base_path
: For a non-root base_path
and a private custom domain name: Using pulumi import
, import aws_api_gateway_base_path_mapping
using the domain name and base path or domain name, base path and domain name ID (for private custom domain names). For example: For an empty base_path
or, in other words, a root path (/
):
$ pulumi import aws:apigateway/basePathMapping:BasePathMapping example example.com/
Content copied to clipboard
For a non-root base_path
:
$ pulumi import aws:apigateway/basePathMapping:BasePathMapping example example.com/base-path
Content copied to clipboard
For a non-root base_path
and a private custom domain name:
$ pulumi import aws:apigateway/basePathMapping:BasePathMapping example api.internal.example.com/base-path/abcde12345
Content copied to clipboard