You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::ApiGatewayV2::Types::CreateRouteInput

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Represents the input parameters for a CreateRoute request.

Instance Attribute Summary collapse

Instance Attribute Details

#api_key_required ⇒ Boolean

Specifies whether an API key is required for the route. Supported only for WebSocket APIs.

Returns:

  • (Boolean) —

    Specifies whether an API key is required for the route.

#authorization_scopes ⇒ Array<String>

The authorization scopes supported by this route.

Returns:

  • (Array<String>) —

    The authorization scopes supported by this route.

#authorization_type ⇒ String

The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.

Possible values:

  • NONE
  • AWS_IAM
  • CUSTOM
  • JWT

Returns:

  • (String) —

    The authorization type for the route.

#authorizer_id ⇒ String

The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.

Returns:

  • (String) —

    The identifier of the Authorizer resource to be associated with this route.

#model_selection_expression ⇒ String

The model selection expression for the route. Supported only for WebSocket APIs.

Returns:

  • (String) —

    The model selection expression for the route.

#operation_name ⇒ String

The operation name for the route.

Returns:

  • (String) —

    The operation name for the route.

#request_models ⇒ Hash<String,String>

The request models for the route. Supported only for WebSocket APIs.

Returns:

  • (Hash<String,String>) —

    The request models for the route.

#request_parameters ⇒ Hash<String,Types::ParameterConstraints>

The request parameters for the route. Supported only for WebSocket APIs.

Returns:

#route_key ⇒ String

The route key for the route.

Returns:

  • (String) —

    The route key for the route.

#route_response_selection_expression ⇒ String

The route response selection expression for the route. Supported only for WebSocket APIs.

Returns:

  • (String) —

    The route response selection expression for the route.

#target ⇒ String

The target for the route.

Returns:

  • (String) —

    The target for the route.