WebSocketAuthorizerAttributes Struct
Reference to an WebSocket authorizer.
| Source | aws-apigatewayv2/lib/websocket/authorizer.ts |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
const webSocketAuthorizerAttributes: apigatewayv2.WebSocketAuthorizerAttributes = {
authorizerId: 'authorizerId',
authorizerType: 'authorizerType',
};
python
# 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_authorizer_attributes = apigatewayv2.WebSocketAuthorizerAttributes(
authorizer_id="authorizerId",
authorizer_type="authorizerType"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigatewayv2.*;
WebSocketAuthorizerAttributes webSocketAuthorizerAttributes = WebSocketAuthorizerAttributes.builder()
.authorizerId("authorizerId")
.authorizerType("authorizerType")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Apigatewayv2;
var webSocketAuthorizerAttributes = new WebSocketAuthorizerAttributes {
AuthorizerId = "authorizerId",
AuthorizerType = "authorizerType"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
webSocketAuthorizerAttributes := &WebSocketAuthorizerAttributes{
AuthorizerId: jsii.String("authorizerId"),
AuthorizerType: jsii.String("authorizerType"),
}
Properties
authorizerIdstringauthorizer_idstrauthorizerIdStringAuthorizerIdstringAuthorizerId*string required #Id of the Authorizer.
authorizerTypestringauthorizer_typestrauthorizerTypeStringAuthorizerTypestringAuthorizerType*string required #Type of authorizer.
Possible values are:
- CUSTOM - Lambda Authorizer
- NONE - No Authorization