Enum AuthorizationType

All Implemented Interfaces:
Serializable, Comparable<AuthorizationType>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.363Z") @Stability(Experimental) public enum AuthorizationType extends Enum<AuthorizationType>
(experimental) enum with all possible values for AppSync authorization type.


 GraphqlApi api = GraphqlApi.Builder.create(this, "Api")
         .schema(Schema.fromAsset(join(__dirname, "schema.graphql")))
 Table demoTable = Table.Builder.create(this, "DemoTable")
 DynamoDbDataSource demoDS = api.addDynamoDbDataSource("demoDataSource", demoTable);
 // Resolver for the Query "getDemos" that scans the DynamoDb table and returns the entire list.
 // Resolver for the Mutation "addDemo" that puts the item into the DynamoDb table.
         .requestMappingTemplate(MappingTemplate.dynamoDbPutItem(PrimaryKey.partition("id").auto(), Values.projecting("input")))
  • Enum Constant Details

    • API_KEY

      @Stability(Experimental) public static final AuthorizationType API_KEY
      (experimental) API Key authorization type.
    • IAM

      @Stability(Experimental) public static final AuthorizationType IAM
      (experimental) AWS IAM authorization type.

      Can be used with Cognito Identity Pool federated credentials


      @Stability(Experimental) public static final AuthorizationType USER_POOL
      (experimental) Cognito User Pool authorization type.
    • OIDC

      @Stability(Experimental) public static final AuthorizationType OIDC
      (experimental) OpenID Connect authorization type.
    • LAMBDA

      @Stability(Experimental) public static final AuthorizationType LAMBDA
      (experimental) Lambda authorization type.
  • Method Details

    • values

      public static AuthorizationType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AuthorizationType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null