@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:46.067Z") @Stability(value=Experimental) public class RequestAuthorizer extends Authorizer implements IAuthorizer
Based on the request, authorization is performed by a lambda function.
| Modifier and Type | Class and Description |
|---|---|
static class |
RequestAuthorizer.Builder
(experimental) A fluent builder for
RequestAuthorizer. |
software.amazon.jsii.JsiiObject.InitializationModeIAuthorizer.Jsii$Default, IAuthorizer.Jsii$ProxyIResource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
RequestAuthorizer(software.constructs.Construct scope,
String id,
RequestAuthorizerProps props) |
protected |
RequestAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
RequestAuthorizer(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthorizerArn()
(experimental) The ARN of the authorizer to be used in permission policies, such as IAM and resource-based grants.
|
String |
getAuthorizerId()
(experimental) The id of the authorizer.
|
protected IFunction |
getHandler()
(experimental) The Lambda function handler that this authorizer uses.
|
protected String |
getRestApiId() |
protected IRole |
getRole()
(experimental) The IAM role that the API Gateway service assumes while invoking the Lambda function.
|
protected String |
lazyRestApiId()
(experimental) Returns a token that resolves to the Rest Api Id at the time of synthesis.
|
protected void |
setRestApiId(String value) |
protected void |
setupPermissions()
(experimental) Sets up the permissions necessary for the API Gateway service to invoke the Lambda function.
|
getAuthorizationType, isAuthorizerapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAuthorizationTypeprotected RequestAuthorizer(software.amazon.jsii.JsiiObjectRef objRef)
protected RequestAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public RequestAuthorizer(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
RequestAuthorizerProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull protected String lazyRestApiId()
Throws an error, during token resolution, if no RestApi is attached to this authorizer.
@Stability(value=Experimental) protected void setupPermissions()
@Stability(value=Experimental) @NotNull public String getAuthorizerArn()
@Stability(value=Experimental) @NotNull public String getAuthorizerId()
getAuthorizerId in interface IAuthorizergetAuthorizerId in class Authorizer@Stability(value=Experimental) @NotNull protected IFunction getHandler()
@Stability(value=Experimental) @Nullable protected IRole getRole()
@Stability(value=Experimental) @Nullable protected String getRestApiId()
@Stability(value=Experimental)
protected void setRestApiId(@Nullable
String value)
Copyright © 2021. All rights reserved.