import * as core from "@terrascript/core"; export interface JwtConfigurationArgs extends core.SchemaArgs { audience?: core.Array | core.ArrayOut; issuer?: string | core.StringOut; } export declare class JwtConfiguration extends core.Schema { audience?: core.Array | core.ArrayOut; issuer?: string | core.StringOut; } export interface AuthorizerArgs extends core.ResourceArgs { /** * (Required) The API identifier. */ apiId: string | core.StringOut; /** * (Optional) The required credentials as an IAM role for API Gateway to invoke the authorizer. */ authorizerCredentialsArn?: string | core.StringOut; /** * (Optional) The format of the payload sent to an HTTP API Lambda authorizer. Required for HTTP API La * mbda authorizers. */ authorizerPayloadFormatVersion?: string | core.StringOut; /** * (Optional) The time to live (TTL) for cached authorizer results, in seconds. If it equals 0, authori * zation caching is disabled. */ authorizerResultTtlInSeconds?: number | core.NumberOut; /** * (Required) The authorizer type. Valid values: `JWT`, `REQUEST`. */ authorizerType: string | core.StringOut; /** * (Optional) The authorizer's Uniform Resource Identifier (URI). */ authorizerUri?: string | core.StringOut; /** * (Optional) Whether a Lambda authorizer returns a response in a simple format. If enabled, the Lambda * authorizer can return a boolean value instead of an IAM policy. */ enableSimpleResponses?: boolean | core.BooleanOut; /** * (Optional) The identity sources for which authorization is requested. */ identitySources?: core.Array | core.ArrayOut; /** * (Optional) The configuration of a JWT authorizer. Required for the `JWT` authorizer type. */ jwtConfiguration?: JwtConfiguration; /** * (Required) The name of the authorizer. Must be between 1 and 128 characters in length. */ name: string | core.StringOut; } export declare class Authorizer extends core.Resource { /** * (Required) The API identifier. */ apiId: string | core.StringOut; /** * (Optional) The required credentials as an IAM role for API Gateway to invoke the authorizer. */ authorizerCredentialsArn?: string | core.StringOut; /** * (Optional) The format of the payload sent to an HTTP API Lambda authorizer. Required for HTTP API La * mbda authorizers. */ authorizerPayloadFormatVersion?: string | core.StringOut; /** * (Optional) The time to live (TTL) for cached authorizer results, in seconds. If it equals 0, authori * zation caching is disabled. */ authorizerResultTtlInSeconds?: number | core.NumberOut; /** * (Required) The authorizer type. Valid values: `JWT`, `REQUEST`. */ authorizerType: string | core.StringOut; /** * (Optional) The authorizer's Uniform Resource Identifier (URI). */ authorizerUri?: string | core.StringOut; /** * (Optional) Whether a Lambda authorizer returns a response in a simple format. If enabled, the Lambda * authorizer can return a boolean value instead of an IAM policy. */ enableSimpleResponses?: boolean | core.BooleanOut; /** * The authorizer identifier. */ id: string | core.StringOut; /** * (Optional) The identity sources for which authorization is requested. */ identitySources?: core.Array | core.ArrayOut; /** * (Optional) The configuration of a JWT authorizer. Required for the `JWT` authorizer type. */ jwtConfiguration?: JwtConfiguration; /** * (Required) The name of the authorizer. Must be between 1 and 128 characters in length. */ name: string | core.StringOut; constructor(name: string, args?: AuthorizerArgs); getNamespace(): string; } //# sourceMappingURL=authorizer.d.ts.map