Interface HttpAuthorizerProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HttpAuthorizerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:10.748Z")
@Stability(Stable)
public interface HttpAuthorizerProps
extends software.amazon.jsii.JsiiSerializable
Properties to initialize an instance of
HttpAuthorizer
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; import software.amazon.awscdk.services.apigatewayv2.*; HttpApi httpApi; HttpAuthorizerProps httpAuthorizerProps = HttpAuthorizerProps.builder() .httpApi(httpApi) .identitySource(List.of("identitySource")) .type(HttpAuthorizerType.IAM) // the properties below are optional .authorizerName("authorizerName") .authorizerUri("authorizerUri") .enableSimpleResponses(false) .jwtAudience(List.of("jwtAudience")) .jwtIssuer("jwtIssuer") .payloadFormatVersion(AuthorizerPayloadVersion.VERSION_1_0) .resultsCacheTtl(Duration.minutes(30)) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forHttpAuthorizerProps
static final class
An implementation forHttpAuthorizerProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpAuthorizerProps.Builder
builder()
default String
Name of the authorizer.default String
The authorizer's Uniform Resource Identifier (URI).default Boolean
Specifies whether a Lambda authorizer returns a response in a simple format.HTTP Api to attach the authorizer to.The identity source for which authorization is requested.A list of the intended recipients of the JWT.default String
The base domain of the identity provider that issues JWT.default AuthorizerPayloadVersion
Specifies the format of the payload sent to an HTTP API Lambda authorizer.default Duration
How long APIGateway should cache the results.getType()
The type of authorizer.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHttpApi
HTTP Api to attach the authorizer to. -
getIdentitySource
The identity source for which authorization is requested.- See Also:
-
getType
The type of authorizer. -
getAuthorizerName
Name of the authorizer.Default: - id of the HttpAuthorizer construct.
-
getAuthorizerUri
The authorizer's Uniform Resource Identifier (URI).For REQUEST authorizers, this must be a well-formed Lambda function URI.
Default: - required for Request authorizer types
-
getEnableSimpleResponses
Specifies 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.
Default: - The lambda authorizer must return an IAM policy as its response
-
getJwtAudience
A list of the intended recipients of the JWT.A valid JWT must provide an aud that matches at least one entry in this list.
Default: - required for JWT authorizer typess.
-
getJwtIssuer
The base domain of the identity provider that issues JWT.Default: - required for JWT authorizer types.
-
getPayloadFormatVersion
Specifies the format of the payload sent to an HTTP API Lambda authorizer.Default: AuthorizerPayloadVersion.VERSION_2_0 if the authorizer type is HttpAuthorizerType.LAMBDA
-
getResultsCacheTtl
How long APIGateway should cache the results.Max 1 hour.
Default: - API Gateway will not cache authorizer responses
-
builder
- Returns:
- a
HttpAuthorizerProps.Builder
ofHttpAuthorizerProps
-