1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. apigateway
  5. getBasePathMapping

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.apigateway.getBasePathMapping

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

The AWS::ApiGateway::BasePathMapping resource creates a base path that clients who call your API must use in the invocation URL.

Using getBasePathMapping

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getBasePathMapping(args: GetBasePathMappingArgs, opts?: InvokeOptions): Promise<GetBasePathMappingResult>
function getBasePathMappingOutput(args: GetBasePathMappingOutputArgs, opts?: InvokeOptions): Output<GetBasePathMappingResult>
Copy
def get_base_path_mapping(base_path: Optional[str] = None,
                          domain_name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetBasePathMappingResult
def get_base_path_mapping_output(base_path: Optional[pulumi.Input[str]] = None,
                          domain_name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetBasePathMappingResult]
Copy
func LookupBasePathMapping(ctx *Context, args *LookupBasePathMappingArgs, opts ...InvokeOption) (*LookupBasePathMappingResult, error)
func LookupBasePathMappingOutput(ctx *Context, args *LookupBasePathMappingOutputArgs, opts ...InvokeOption) LookupBasePathMappingResultOutput
Copy

> Note: This function is named LookupBasePathMapping in the Go SDK.

public static class GetBasePathMapping 
{
    public static Task<GetBasePathMappingResult> InvokeAsync(GetBasePathMappingArgs args, InvokeOptions? opts = null)
    public static Output<GetBasePathMappingResult> Invoke(GetBasePathMappingInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetBasePathMappingResult> getBasePathMapping(GetBasePathMappingArgs args, InvokeOptions options)
public static Output<GetBasePathMappingResult> getBasePathMapping(GetBasePathMappingArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:apigateway:getBasePathMapping
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

BasePath This property is required. string
The base path name that callers of the API must provide as part of the URL after the domain name.
DomainName This property is required. string
The domain name of the BasePathMapping resource to be described.
BasePath This property is required. string
The base path name that callers of the API must provide as part of the URL after the domain name.
DomainName This property is required. string
The domain name of the BasePathMapping resource to be described.
basePath This property is required. String
The base path name that callers of the API must provide as part of the URL after the domain name.
domainName This property is required. String
The domain name of the BasePathMapping resource to be described.
basePath This property is required. string
The base path name that callers of the API must provide as part of the URL after the domain name.
domainName This property is required. string
The domain name of the BasePathMapping resource to be described.
base_path This property is required. str
The base path name that callers of the API must provide as part of the URL after the domain name.
domain_name This property is required. str
The domain name of the BasePathMapping resource to be described.
basePath This property is required. String
The base path name that callers of the API must provide as part of the URL after the domain name.
domainName This property is required. String
The domain name of the BasePathMapping resource to be described.

getBasePathMapping Result

The following output properties are available:

RestApiId string
The string identifier of the associated RestApi.
Stage string
The name of the associated stage.
RestApiId string
The string identifier of the associated RestApi.
Stage string
The name of the associated stage.
restApiId String
The string identifier of the associated RestApi.
stage String
The name of the associated stage.
restApiId string
The string identifier of the associated RestApi.
stage string
The name of the associated stage.
rest_api_id str
The string identifier of the associated RestApi.
stage str
The name of the associated stage.
restApiId String
The string identifier of the associated RestApi.
stage String
The name of the associated stage.

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi