We recommend new projects start with resources from the AWS provider.
aws-native.apigatewayv2.getApiMapping
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::ApiGatewayV2::ApiMapping resource contains an API mapping. An API mapping relates a path of your custom domain name to a stage of your API. A custom domain name can have multiple API mappings, but the paths can’t overlap. A custom domain can map only to APIs of the same protocol type. For more information, see CreateApiMapping in the Amazon API Gateway V2 API Reference.
Using getApiMapping
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 getApiMapping(args: GetApiMappingArgs, opts?: InvokeOptions): Promise<GetApiMappingResult>
function getApiMappingOutput(args: GetApiMappingOutputArgs, opts?: InvokeOptions): Output<GetApiMappingResult>def get_api_mapping(api_mapping_id: Optional[str] = None,
                    domain_name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetApiMappingResult
def get_api_mapping_output(api_mapping_id: Optional[pulumi.Input[str]] = None,
                    domain_name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetApiMappingResult]func LookupApiMapping(ctx *Context, args *LookupApiMappingArgs, opts ...InvokeOption) (*LookupApiMappingResult, error)
func LookupApiMappingOutput(ctx *Context, args *LookupApiMappingOutputArgs, opts ...InvokeOption) LookupApiMappingResultOutput> Note: This function is named LookupApiMapping in the Go SDK.
public static class GetApiMapping 
{
    public static Task<GetApiMappingResult> InvokeAsync(GetApiMappingArgs args, InvokeOptions? opts = null)
    public static Output<GetApiMappingResult> Invoke(GetApiMappingInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetApiMappingResult> getApiMapping(GetApiMappingArgs args, InvokeOptions options)
public static Output<GetApiMappingResult> getApiMapping(GetApiMappingArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:apigatewayv2:getApiMapping
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ApiMapping stringId 
- The API mapping resource ID.
- DomainName string
- The domain name.
- ApiMapping stringId 
- The API mapping resource ID.
- DomainName string
- The domain name.
- apiMapping StringId 
- The API mapping resource ID.
- domainName String
- The domain name.
- apiMapping stringId 
- The API mapping resource ID.
- domainName string
- The domain name.
- api_mapping_ strid 
- The API mapping resource ID.
- domain_name str
- The domain name.
- apiMapping StringId 
- The API mapping resource ID.
- domainName String
- The domain name.
getApiMapping Result
The following output properties are available:
- ApiId string
- The identifier of the API.
- ApiMapping stringId 
- The API mapping resource ID.
- ApiMapping stringKey 
- The API mapping key.
- Stage string
- The API stage.
- ApiId string
- The identifier of the API.
- ApiMapping stringId 
- The API mapping resource ID.
- ApiMapping stringKey 
- The API mapping key.
- Stage string
- The API stage.
- apiId String
- The identifier of the API.
- apiMapping StringId 
- The API mapping resource ID.
- apiMapping StringKey 
- The API mapping key.
- stage String
- The API stage.
- apiId string
- The identifier of the API.
- apiMapping stringId 
- The API mapping resource ID.
- apiMapping stringKey 
- The API mapping key.
- stage string
- The API stage.
- api_id str
- The identifier of the API.
- api_mapping_ strid 
- The API mapping resource ID.
- api_mapping_ strkey 
- The API mapping key.
- stage str
- The API stage.
- apiId String
- The identifier of the API.
- apiMapping StringId 
- The API mapping resource ID.
- apiMapping StringKey 
- The API mapping key.
- stage String
- The API 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.