AWS Native is in preview. AWS Classic is fully supported.
aws-native.apigatewayv2.getRouteResponse
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:apigatewayv2:getRouteResponse
arguments:
# arguments dictionary
The following arguments are supported:
- Api
Id string - The API identifier.
- Route
Id string - The route ID.
- Route
Response stringId - The route response ID.
- Api
Id string - The API identifier.
- Route
Id string - The route ID.
- Route
Response stringId - The route response ID.
- api
Id String - The API identifier.
- route
Id String - The route ID.
- route
Response StringId - The route response ID.
- api
Id string - The API identifier.
- route
Id string - The route ID.
- route
Response stringId - The route response ID.
- api_
id str - The API identifier.
- route_
id str - The route ID.
- route_
response_ strid - The route response ID.
- api
Id String - The API identifier.
- route
Id String - The route ID.
- route
Response StringId - The route response ID.
getRouteResponse Result
The following output properties are available:
- Model
Selection stringExpression - The model selection expression for the route response. Supported only for WebSocket APIs.
- Response
Models object The response models for the route response.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::RouteResponse
for more information about the expected schema for this property.- Response
Parameters Dictionary<string, Pulumi.Aws Native. Api Gateway V2. Outputs. Route Response Parameter Constraints> - The route response parameters.
- Route
Response stringId - The route response ID.
- Route
Response stringKey - The route response key.
- Model
Selection stringExpression - The model selection expression for the route response. Supported only for WebSocket APIs.
- Response
Models interface{} The response models for the route response.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::RouteResponse
for more information about the expected schema for this property.- Response
Parameters map[string]RouteResponse Parameter Constraints - The route response parameters.
- Route
Response stringId - The route response ID.
- Route
Response stringKey - The route response key.
- model
Selection StringExpression - The model selection expression for the route response. Supported only for WebSocket APIs.
- response
Models Object The response models for the route response.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::RouteResponse
for more information about the expected schema for this property.- response
Parameters Map<String,RouteResponse Parameter Constraints> - The route response parameters.
- route
Response StringId - The route response ID.
- route
Response StringKey - The route response key.
- model
Selection stringExpression - 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::RouteResponse
for more information about the expected schema for this property.- response
Parameters {[key: string]: RouteResponse Parameter Constraints} - The route response parameters.
- route
Response stringId - The route response ID.
- route
Response 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::RouteResponse
for 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.
- model
Selection StringExpression - 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::RouteResponse
for more information about the expected schema for this property.- response
Parameters Map<Property Map> - The route response parameters.
- route
Response StringId - The route response ID.
- route
Response 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
AWS Native is in preview. AWS Classic is fully supported.