@Stability(value=Experimental) public static final class HttpAuthorizer.Builder extends Object implements software.amazon.jsii.Builder<HttpAuthorizer>
HttpAuthorizer.| Modifier and Type | Method and Description |
|---|---|
HttpAuthorizer.Builder |
authorizerName(String authorizerName)
(experimental) Name of the authorizer.
|
HttpAuthorizer.Builder |
authorizerUri(String authorizerUri)
(experimental) The authorizer's Uniform Resource Identifier (URI).
|
HttpAuthorizer |
build() |
static HttpAuthorizer.Builder |
create(software.constructs.Construct scope,
String id) |
HttpAuthorizer.Builder |
enableSimpleResponses(Boolean enableSimpleResponses)
(experimental) Specifies whether a Lambda authorizer returns a response in a simple format.
|
HttpAuthorizer.Builder |
httpApi(IHttpApi httpApi)
(experimental) HTTP Api to attach the authorizer to.
|
HttpAuthorizer.Builder |
identitySource(List<String> identitySource)
(experimental) The identity source for which authorization is requested.
|
HttpAuthorizer.Builder |
jwtAudience(List<String> jwtAudience)
(experimental) A list of the intended recipients of the JWT.
|
HttpAuthorizer.Builder |
jwtIssuer(String jwtIssuer)
(experimental) The base domain of the identity provider that issues JWT.
|
HttpAuthorizer.Builder |
payloadFormatVersion(AuthorizerPayloadVersion payloadFormatVersion)
(experimental) Specifies the format of the payload sent to an HTTP API Lambda authorizer.
|
HttpAuthorizer.Builder |
resultsCacheTtl(Duration resultsCacheTtl)
(experimental) How long APIGateway should cache the results.
|
HttpAuthorizer.Builder |
type(HttpAuthorizerType type)
(experimental) The type of authorizer.
|
@Stability(value=Experimental) public static HttpAuthorizer.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.HttpAuthorizer.Builder.@Stability(value=Experimental) public HttpAuthorizer.Builder httpApi(IHttpApi httpApi)
httpApi - HTTP Api to attach the authorizer to. This parameter is required.this@Stability(value=Experimental) public HttpAuthorizer.Builder identitySource(List<String> identitySource)
identitySource - The identity source for which authorization is requested. This parameter is required.thishttps://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-identitysource@Stability(value=Experimental) public HttpAuthorizer.Builder type(HttpAuthorizerType type)
type - The type of authorizer. This parameter is required.this@Stability(value=Experimental) public HttpAuthorizer.Builder authorizerName(String authorizerName)
Default: - id of the HttpAuthorizer construct.
authorizerName - Name of the authorizer. This parameter is required.this@Stability(value=Experimental) public HttpAuthorizer.Builder authorizerUri(String authorizerUri)
For REQUEST authorizers, this must be a well-formed Lambda function URI.
Default: - required for Request authorizer types
authorizerUri - The authorizer's Uniform Resource Identifier (URI). This parameter is required.this@Stability(value=Experimental) public HttpAuthorizer.Builder enableSimpleResponses(Boolean enableSimpleResponses)
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
enableSimpleResponses - Specifies whether a Lambda authorizer returns a response in a simple format. This parameter is required.this@Stability(value=Experimental) public HttpAuthorizer.Builder jwtAudience(List<String> jwtAudience)
A valid JWT must provide an aud that matches at least one entry in this list.
Default: - required for JWT authorizer typess.
jwtAudience - A list of the intended recipients of the JWT. This parameter is required.this@Stability(value=Experimental) public HttpAuthorizer.Builder jwtIssuer(String jwtIssuer)
Default: - required for JWT authorizer types.
jwtIssuer - The base domain of the identity provider that issues JWT. This parameter is required.this@Stability(value=Experimental) public HttpAuthorizer.Builder payloadFormatVersion(AuthorizerPayloadVersion payloadFormatVersion)
Default: AuthorizerPayloadVersion.VERSION_2_0 if the authorizer type is HttpAuthorizerType.LAMBDA
payloadFormatVersion - Specifies the format of the payload sent to an HTTP API Lambda authorizer. This parameter is required.this@Stability(value=Experimental) public HttpAuthorizer.Builder resultsCacheTtl(Duration resultsCacheTtl)
Max 1 hour.
Default: - API Gateway will not cache authorizer responses
resultsCacheTtl - How long APIGateway should cache the results. This parameter is required.this@Stability(value=Experimental) public HttpAuthorizer build()
build in interface software.amazon.jsii.Builder<HttpAuthorizer>Copyright © 2022. All rights reserved.