Class AuthorizationType
Inheritance
System.Object
AuthorizationType
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class AuthorizationType : Enum
Syntax (vb)
Public NotInheritable Class AuthorizationType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
Resource books;
var userPool = new UserPool(this, "UserPool");
var auth = new CognitoUserPoolsAuthorizer(this, "booksAuthorizer", new CognitoUserPoolsAuthorizerProps {
CognitoUserPools = new [] { userPool }
});
books.AddMethod("GET", new HttpIntegration("http://amazon.com"), new MethodOptions {
Authorizer = auth,
AuthorizationType = AuthorizationType.COGNITO
});
Synopsis
Fields
COGNITO | Use an AWS Cognito user pool. |
CUSTOM | Use a custom authorizer. |
IAM | Use AWS IAM permissions. |
NONE | Open access. |
value__ |
Fields
COGNITO
Use an AWS Cognito user pool.
public const AuthorizationType COGNITO
Field Value
Type | Description |
---|---|
AuthorizationType |
CUSTOM
Use a custom authorizer.
public const AuthorizationType CUSTOM
Field Value
Type | Description |
---|---|
AuthorizationType |
IAM
Use AWS IAM permissions.
public const AuthorizationType IAM
Field Value
Type | Description |
---|---|
AuthorizationType |
NONE
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |