@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-02T20:25:34.827Z") public class CognitoUserPoolsAuthorizer extends Authorizer implements IAuthorizer
Example:
Resource books; UserPool userPool = new UserPool(this, "UserPool"); CognitoUserPoolsAuthorizer auth = CognitoUserPoolsAuthorizer.Builder.create(this, "booksAuthorizer") .cognitoUserPools(List.of(userPool)) .build(); books.addMethod("GET", new HttpIntegration("http://amazon.com"), MethodOptions.builder() .authorizer(auth) .authorizationType(AuthorizationType.COGNITO) .build());
Modifier and Type | Class and Description |
---|---|
static class |
CognitoUserPoolsAuthorizer.Builder
A fluent builder for
CognitoUserPoolsAuthorizer . |
IAuthorizer.Jsii$Default, IAuthorizer.Jsii$Proxy
IResource.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
CognitoUserPoolsAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CognitoUserPoolsAuthorizer(software.amazon.jsii.JsiiObjectRef objRef) |
|
CognitoUserPoolsAuthorizer(software.constructs.Construct scope,
java.lang.String id,
CognitoUserPoolsAuthorizerProps props) |
Modifier and Type | Method and Description |
---|---|
AuthorizationType |
getAuthorizationType()
The authorization type of this authorizer.
|
java.lang.String |
getAuthorizerArn()
The ARN of the authorizer to be used in permission policies, such as IAM and resource-based grants.
|
java.lang.String |
getAuthorizerId()
The id of the authorizer.
|
isAuthorizer
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNode
protected CognitoUserPoolsAuthorizer(software.amazon.jsii.JsiiObjectRef objRef)
protected CognitoUserPoolsAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CognitoUserPoolsAuthorizer(software.constructs.Construct scope, java.lang.String id, CognitoUserPoolsAuthorizerProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public java.lang.String getAuthorizerArn()
public java.lang.String getAuthorizerId()
getAuthorizerId
in interface IAuthorizer
getAuthorizerId
in class Authorizer
public AuthorizationType getAuthorizationType()
getAuthorizationType
in interface IAuthorizer
getAuthorizationType
in class Authorizer