WebSocketAuthorizerProps
- class aws_cdk.aws_apigatewayv2.WebSocketAuthorizerProps(*, identity_source, type, web_socket_api, authorizer_name=None, authorizer_uri=None)
- Bases: - object- Properties to initialize an instance of - WebSocketAuthorizer.- Parameters:
- identity_source ( - Sequence[- str]) – The identity source for which authorization is requested.
- type ( - WebSocketAuthorizerType) – The type of authorizer.
- web_socket_api ( - IWebSocketApi) – WebSocket Api to attach the authorizer to.
- authorizer_name ( - Optional[- str]) – Name of the authorizer. Default: - id of the WebSocketAuthorizer construct.
- authorizer_uri ( - Optional[- str]) – The authorizer’s Uniform Resource Identifier (URI). For REQUEST authorizers, this must be a well-formed Lambda function URI. Default: - required for Request authorizer types
 
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_apigatewayv2 as apigatewayv2 # web_socket_api: apigatewayv2.WebSocketApi web_socket_authorizer_props = apigatewayv2.WebSocketAuthorizerProps( identity_source=["identitySource"], type=apigatewayv2.WebSocketAuthorizerType.LAMBDA, web_socket_api=web_socket_api, # the properties below are optional authorizer_name="authorizerName", authorizer_uri="authorizerUri" ) - Attributes - authorizer_name
- Name of the authorizer. - Default:
- id of the WebSocketAuthorizer construct. 
 
 
 - authorizer_uri
- The authorizer’s Uniform Resource Identifier (URI). - For REQUEST authorizers, this must be a well-formed Lambda function URI. - Default:
- required for Request authorizer types 
 
 
 - identity_source
- The identity source for which authorization is requested. 
 - type
- The type of authorizer. 
 - web_socket_api
- WebSocket Api to attach the authorizer to.