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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:apigatewayv2:getApiMapping
arguments:
# arguments dictionary
The following arguments are supported:
- Api
Mapping stringId - The API mapping resource ID.
- Domain
Name string - The domain name.
- Api
Mapping stringId - The API mapping resource ID.
- Domain
Name string - The domain name.
- api
Mapping StringId - The API mapping resource ID.
- domain
Name String - The domain name.
- api
Mapping stringId - The API mapping resource ID.
- domain
Name string - The domain name.
- api_
mapping_ strid - The API mapping resource ID.
- domain_
name str - The domain name.
- api
Mapping StringId - The API mapping resource ID.
- domain
Name String - The domain name.
getApiMapping Result
The following output properties are available:
- Api
Id string - The identifier of the API.
- Api
Mapping stringId - The API mapping resource ID.
- Api
Mapping stringKey - The API mapping key.
- Stage string
- The API stage.
- Api
Id string - The identifier of the API.
- Api
Mapping stringId - The API mapping resource ID.
- Api
Mapping stringKey - The API mapping key.
- Stage string
- The API stage.
- api
Id String - The identifier of the API.
- api
Mapping StringId - The API mapping resource ID.
- api
Mapping StringKey - The API mapping key.
- stage String
- The API stage.
- api
Id string - The identifier of the API.
- api
Mapping stringId - The API mapping resource ID.
- api
Mapping 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.
- api
Id String - The identifier of the API.
- api
Mapping StringId - The API mapping resource ID.
- api
Mapping 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.