Enum Visibility

java.lang.Object
java.lang.Enum<Visibility>
software.amazon.awscdk.services.appsync.Visibility
All Implemented Interfaces:
Serializable, Comparable<Visibility>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-08-15T01:32:43.908Z") @Stability(Stable) public enum Visibility extends Enum<Visibility>
Visibility type for a GraphQL API.

Example:

 GraphqlApi api = GraphqlApi.Builder.create(this, "api")
         .name("MyPrivateAPI")
         .definition(Definition.fromFile(join(__dirname, "appsync.schema.graphql")))
         .visibility(Visibility.PRIVATE)
         .build();
 
  • Enum Constant Details

    • GLOBAL

      @Stability(Stable) public static final Visibility GLOBAL
      Public, open to the internet.
    • PRIVATE

      @Stability(Stable) public static final Visibility PRIVATE
      Only accessible through a VPC.
  • Method Details

    • values

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

      public static Visibility 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.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null