WebSocketRouteAuthorizerConfig

class aws_cdk.aws_apigatewayv2.WebSocketRouteAuthorizerConfig(*, authorization_type, authorizer_id=None)

Bases: object

(experimental) Results of binding an authorizer to an WebSocket route.

Parameters
  • authorization_type (str) – (experimental) The type of authorization. Possible values are: - CUSTOM - Lambda Authorizer - NONE - No Authorization

  • authorizer_id (Optional[str]) – (experimental) The authorizer id. Default: - No authorizer id (useful for AWS_IAM route authorizer)

Stability

experimental

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_apigatewayv2 as apigatewayv2

web_socket_route_authorizer_config = apigatewayv2.WebSocketRouteAuthorizerConfig(
    authorization_type="authorizationType",

    # the properties below are optional
    authorizer_id="authorizerId"
)

Attributes

authorization_type

(experimental) The type of authorization.

Possible values are:

  • CUSTOM - Lambda Authorizer

  • NONE - No Authorization

Stability

experimental

Return type

str

authorizer_id

(experimental) The authorizer id.

Default
  • No authorizer id (useful for AWS_IAM route authorizer)

Stability

experimental

Return type

Optional[str]