@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:46.090Z") @Stability(value=Experimental) public class TokenAuthorizer extends Authorizer implements IAuthorizer
Based on the token, authorization is performed by a lambda function.
Modifier and Type | Class and Description |
---|---|
static class |
TokenAuthorizer.Builder
(experimental) A fluent builder for
TokenAuthorizer . |
software.amazon.jsii.JsiiObject.InitializationMode
IAuthorizer.Jsii$Default, IAuthorizer.Jsii$Proxy
IResource.Jsii$Default
Modifier | Constructor and Description |
---|---|
|
TokenAuthorizer(software.constructs.Construct scope,
String id,
TokenAuthorizerProps props) |
protected |
TokenAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
TokenAuthorizer(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, isAuthorizer
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAuthorizationType
protected TokenAuthorizer(software.amazon.jsii.JsiiObjectRef objRef)
protected TokenAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) public TokenAuthorizer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull TokenAuthorizerProps 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 IAuthorizer
getAuthorizerId
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.