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

Class: Aws::ApiGatewayV2::Types::Route

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

Overview

Represents a route.

Instance Attribute Summary collapse

Instance Attribute Details

#api_key_requiredBoolean

Specifies whether an API key is required for this route.

Returns:

  • (Boolean)

    Specifies whether an API key is required for this route.

#authorization_scopesArray<String>

A list of authorization scopes configured on a route. The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation. The authorization works by matching the route scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any route scope matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the route scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

Returns:

  • (Array<String>)

    A list of authorization scopes configured on a route.

#authorization_typeString

The authorization type for the route. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer

Possible values:

  • NONE
  • AWS_IAM
  • CUSTOM

Returns:

  • (String)

    The authorization type for the route.

#authorizer_idString

The identifier of the Authorizer resource to be associated with this route, if the authorizationType is CUSTOM . 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, if the authorizationType is CUSTOM .

#model_selection_expressionString

The model selection expression for the route.

Returns:

  • (String)

    The model selection expression for the route.

#operation_nameString

The operation name for the route.

Returns:

  • (String)

    The operation name for the route.

#request_modelsHash<String,String>

The request models for the route.

Returns:

  • (Hash<String,String>)

    The request models for the route.

#request_parametersHash<String,Types::ParameterConstraints>

The request parameters for the route.

Returns:

#route_idString

The route ID.

Returns:

  • (String)

    The route ID.

#route_keyString

The route key for the route.

Returns:

  • (String)

    The route key for the route.

#route_response_selection_expressionString

The route response selection expression for the route.

Returns:

  • (String)

    The route response selection expression for the route.

#targetString

The target for the route.

Returns:

  • (String)

    The target for the route.