We recommend new projects start with resources from the AWS provider.
aws-native.apigatewayv2.getRouteResponse
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::ApiGatewayV2::RouteResponse resource creates a route response for a WebSocket API. For more information, see Set up Route Responses for a WebSocket API in API Gateway in the API Gateway Developer Guide.
Using getRouteResponse
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 getRouteResponse(args: GetRouteResponseArgs, opts?: InvokeOptions): Promise<GetRouteResponseResult>
function getRouteResponseOutput(args: GetRouteResponseOutputArgs, opts?: InvokeOptions): Output<GetRouteResponseResult>def get_route_response(api_id: Optional[str] = None,
                       route_id: Optional[str] = None,
                       route_response_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetRouteResponseResult
def get_route_response_output(api_id: Optional[pulumi.Input[str]] = None,
                       route_id: Optional[pulumi.Input[str]] = None,
                       route_response_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetRouteResponseResult]func LookupRouteResponse(ctx *Context, args *LookupRouteResponseArgs, opts ...InvokeOption) (*LookupRouteResponseResult, error)
func LookupRouteResponseOutput(ctx *Context, args *LookupRouteResponseOutputArgs, opts ...InvokeOption) LookupRouteResponseResultOutput> Note: This function is named LookupRouteResponse in the Go SDK.
public static class GetRouteResponse 
{
    public static Task<GetRouteResponseResult> InvokeAsync(GetRouteResponseArgs args, InvokeOptions? opts = null)
    public static Output<GetRouteResponseResult> Invoke(GetRouteResponseInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRouteResponseResult> getRouteResponse(GetRouteResponseArgs args, InvokeOptions options)
public static Output<GetRouteResponseResult> getRouteResponse(GetRouteResponseArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:apigatewayv2:getRouteResponse
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ApiId string
- The API identifier.
- RouteId string
- The route ID.
- RouteResponse stringId 
- The route response ID.
- ApiId string
- The API identifier.
- RouteId string
- The route ID.
- RouteResponse stringId 
- The route response ID.
- apiId String
- The API identifier.
- routeId String
- The route ID.
- routeResponse StringId 
- The route response ID.
- apiId string
- The API identifier.
- routeId string
- The route ID.
- routeResponse stringId 
- The route response ID.
- api_id str
- The API identifier.
- route_id str
- The route ID.
- route_response_ strid 
- The route response ID.
- apiId String
- The API identifier.
- routeId String
- The route ID.
- routeResponse StringId 
- The route response ID.
getRouteResponse Result
The following output properties are available:
- ModelSelection stringExpression 
- The model selection expression for the route response. Supported only for WebSocket APIs.
- ResponseModels object
- The response models for the route response. - Search the CloudFormation User Guide for - AWS::ApiGatewayV2::RouteResponsefor more information about the expected schema for this property.
- ResponseParameters Dictionary<string, Pulumi.Aws Native. Api Gateway V2. Outputs. Route Response Parameter Constraints> 
- The route response parameters.
- RouteResponse stringId 
- The route response ID.
- RouteResponse stringKey 
- The route response key.
- ModelSelection stringExpression 
- The model selection expression for the route response. Supported only for WebSocket APIs.
- ResponseModels interface{}
- The response models for the route response. - Search the CloudFormation User Guide for - AWS::ApiGatewayV2::RouteResponsefor more information about the expected schema for this property.
- ResponseParameters map[string]RouteResponse Parameter Constraints 
- The route response parameters.
- RouteResponse stringId 
- The route response ID.
- RouteResponse stringKey 
- The route response key.
- modelSelection StringExpression 
- The model selection expression for the route response. Supported only for WebSocket APIs.
- responseModels Object
- The response models for the route response. - Search the CloudFormation User Guide for - AWS::ApiGatewayV2::RouteResponsefor more information about the expected schema for this property.
- responseParameters Map<String,RouteResponse Parameter Constraints> 
- The route response parameters.
- routeResponse StringId 
- The route response ID.
- routeResponse StringKey 
- The route response key.
- modelSelection stringExpression 
- The model selection expression for the route response. Supported only for WebSocket APIs.
- responseModels any
- The response models for the route response. - Search the CloudFormation User Guide for - AWS::ApiGatewayV2::RouteResponsefor more information about the expected schema for this property.
- responseParameters {[key: string]: RouteResponse Parameter Constraints} 
- The route response parameters.
- routeResponse stringId 
- The route response ID.
- routeResponse stringKey 
- The route response key.
- model_selection_ strexpression 
- The model selection expression for the route response. Supported only for WebSocket APIs.
- response_models Any
- The response models for the route response. - Search the CloudFormation User Guide for - AWS::ApiGatewayV2::RouteResponsefor more information about the expected schema for this property.
- response_parameters Mapping[str, RouteResponse Parameter Constraints] 
- The route response parameters.
- route_response_ strid 
- The route response ID.
- route_response_ strkey 
- The route response key.
- modelSelection StringExpression 
- The model selection expression for the route response. Supported only for WebSocket APIs.
- responseModels Any
- The response models for the route response. - Search the CloudFormation User Guide for - AWS::ApiGatewayV2::RouteResponsefor more information about the expected schema for this property.
- responseParameters Map<Property Map>
- The route response parameters.
- routeResponse StringId 
- The route response ID.
- routeResponse StringKey 
- The route response key.
Supporting Types
RouteResponseParameterConstraints   
- Required bool
- Specifies whether the parameter is required.
- Required bool
- Specifies whether the parameter is required.
- required Boolean
- Specifies whether the parameter is required.
- required boolean
- Specifies whether the parameter is required.
- required bool
- Specifies whether the parameter is required.
- required Boolean
- Specifies whether the parameter is required.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.