Skip to content

Commit

Permalink
Revert style to the way it was
Browse files Browse the repository at this point in the history
  • Loading branch information
d0z0 committed Aug 1, 2022
1 parent 712562c commit dbc63f5
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions packages/@aws-cdk/aws-apigatewayv2/lib/websocket/authorizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,11 @@ export interface WebSocketAuthorizerAttributes {
* An authorizer for WebSocket Apis
* @resource AWS::ApiGatewayV2::Authorizer
*/
export class WebSocketAuthorizer
extends Resource
implements IWebSocketAuthorizer {
export class WebSocketAuthorizer extends Resource implements IWebSocketAuthorizer {
/**
* Import an existing WebSocket Authorizer into this CDK app.
*/
public static fromWebSocketAuthorizerAttributes(
scope: Construct,
id: string,
attrs: WebSocketAuthorizerAttributes,
): IWebSocketRouteAuthorizer {
public static fromWebSocketAuthorizerAttributes(scope: Construct, id: string, attrs: WebSocketAuthorizerAttributes): IWebSocketRouteAuthorizer {
class Import extends Resource implements IWebSocketRouteAuthorizer {
public readonly authorizerId = attrs.authorizerId;
public readonly authorizerType = attrs.authorizerType;
Expand Down Expand Up @@ -169,18 +163,14 @@ export interface IWebSocketRouteAuthorizer {
/**
* Bind this authorizer to a specified WebSocket route.
*/
bind(
options: WebSocketRouteAuthorizerBindOptions
): WebSocketRouteAuthorizerConfig;
bind(options: WebSocketRouteAuthorizerBindOptions): WebSocketRouteAuthorizerConfig;
}

/**
* Explicitly configure no authorizers on specific WebSocket API routes.
*/
export class WebSocketNoneAuthorizer implements IWebSocketRouteAuthorizer {
public bind(
_: WebSocketRouteAuthorizerBindOptions,
): WebSocketRouteAuthorizerConfig {
public bind(_: WebSocketRouteAuthorizerBindOptions): WebSocketRouteAuthorizerConfig {
return {
authorizationType: 'NONE',
};
Expand Down

0 comments on commit dbc63f5

Please sign in to comment.