interface SwaggerOperation {
    parameters?: SwaggerParameter[];
    responses?: {
        [code: string]: SwaggerResponse;
    };
    security?: Record<string, string[]>[];
    x-amazon-apigateway-auth?: ApigatewayAuth;
    x-amazon-apigateway-integration: ApigatewayIntegration;
    x-amazon-apigateway-request-validator?: RequestValidator;
}

Properties

parameters?: SwaggerParameter[]
responses?: {
    [code: string]: SwaggerResponse;
}

Type declaration

security?: Record<string, string[]>[]

security a list of objects whose keys are the names of the authorizer. Each authorizer name refers to a SecurityDefinition, defined at the top level of the swagger definition, by matching a Security Definition's name property. For Cognito User Pool Authorizers, the value of these object can be left as an empty array or used to define the resource servers and custom scopes (e.g. "resource-server/scope"). For lambda authorizers, the value of the objects is an empty array.

x-amazon-apigateway-auth?: ApigatewayAuth
x-amazon-apigateway-integration: ApigatewayIntegration
x-amazon-apigateway-request-validator?: RequestValidator

Generated using TypeDoc