@aws-cdk_aws-apigatewayv2-alpha.WebSocketAuthorizerProps
interface WebSocketAuthorizerProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Apigatewayv2.Alpha.WebSocketAuthorizerProps |
![]() | github.com/aws/aws-cdk-go/awscdkapigatewayv2alpha/v2#WebSocketAuthorizerProps |
![]() | software.amazon.awscdk.services.apigatewayv2.alpha.WebSocketAuthorizerProps |
![]() | aws_cdk.aws_apigatewayv2_alpha.WebSocketAuthorizerProps |
![]() | @aws-cdk/aws-apigatewayv2-alpha ยป WebSocketAuthorizerProps |
Properties to initialize an instance of WebSocketAuthorizer
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as apigatewayv2_alpha from '@aws-cdk/aws-apigatewayv2-alpha';
declare const webSocketApi: apigatewayv2_alpha.WebSocketApi;
const webSocketAuthorizerProps: apigatewayv2_alpha.WebSocketAuthorizerProps = {
identitySource: ['identitySource'],
type: apigatewayv2_alpha.WebSocketAuthorizerType.LAMBDA,
webSocketApi: webSocketApi,
// the properties below are optional
authorizerName: 'authorizerName',
authorizerUri: 'authorizerUri',
};
Properties
Name | Type | Description |
---|---|---|
identity | string[] | The identity source for which authorization is requested. |
type | Web | The type of authorizer. |
web | IWeb | WebSocket Api to attach the authorizer to. |
authorizer | string | Name of the authorizer. |
authorizer | string | The authorizer's Uniform Resource Identifier (URI). |
identitySource
Type:
string[]
The identity source for which authorization is requested.
type
Type:
Web
The type of authorizer.
webSocketApi
Type:
IWeb
WebSocket Api to attach the authorizer to.
authorizerName?
Type:
string
(optional, default: id of the WebSocketAuthorizer construct.)
Name of the authorizer.
authorizerUri?
Type:
string
(optional, default: required for Request authorizer types)
The authorizer's Uniform Resource Identifier (URI).
For REQUEST authorizers, this must be a well-formed Lambda function URI.