Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.26 KB

cdk-rest-api-with-spec.augmentauthorizer.md

File metadata and controls

30 lines (18 loc) · 1.26 KB

Home > cdk-rest-api-with-spec > augmentAuthorizer

augmentAuthorizer() function

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Makes a given aws_apigateway.IAuthorizer an IAuthorizerWithSpec by augmenting it with a specified security scheme object.

Signature:

export declare function augmentAuthorizer(authorizer: apigateway.IAuthorizer, securitySchemeObject: SecuritySchemeObject): IAuthorizerWithSpec;

Parameters

Parameter Type Description
authorizer apigateway.IAuthorizer Authorizer to be augmented.
securitySchemeObject SecuritySchemeObject Security scheme object to add to authorizer.

Returns:

IAuthorizerWithSpec

authorizer with securitySchemeObject.