Interface HttpAuthorizerProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HttpAuthorizerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:43.254Z")
@Stability(Experimental)
public interface HttpAuthorizerProps
extends software.amazon.jsii.JsiiSerializable
(experimental) 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.services.apigatewayv2.*; import software.amazon.awscdk.core.*; 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
(experimental) Name of the authorizer.default String
(experimental) The authorizer's Uniform Resource Identifier (URI).default Boolean
(experimental) Specifies whether a Lambda authorizer returns a response in a simple format.(experimental) HTTP Api to attach the authorizer to.(experimental) The identity source for which authorization is requested.(experimental) A list of the intended recipients of the JWT.default String
(experimental) The base domain of the identity provider that issues JWT.default AuthorizerPayloadVersion
(experimental) Specifies the format of the payload sent to an HTTP API Lambda authorizer.default Duration
(experimental) How long APIGateway should cache the results.getType()
(experimental) The type of authorizer.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHttpApi
(experimental) HTTP Api to attach the authorizer to. -
getIdentitySource
(experimental) The identity source for which authorization is requested.- See Also:
-
getType
(experimental) The type of authorizer. -
getAuthorizerName
(experimental) Name of the authorizer.Default: - id of the HttpAuthorizer construct.
-
getAuthorizerUri
(experimental) 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
(experimental) 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
(experimental) 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
(experimental) The base domain of the identity provider that issues JWT.Default: - required for JWT authorizer types.
-
getPayloadFormatVersion
(experimental) 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
(experimental) How long APIGateway should cache the results.Max 1 hour.
Default: - API Gateway will not cache authorizer responses
-
builder
- Returns:
- a
HttpAuthorizerProps.Builder
ofHttpAuthorizerProps
-