Enum MergeType

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

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-09-11T18:01:11.528Z") @Stability(Stable) public enum MergeType extends Enum<MergeType>
Merge type used to associate the source API.

Example:

 import software.amazon.awscdk.*;
 // first source API
 GraphqlApi firstApi = GraphqlApi.Builder.create(this, "FirstSourceAPI")
         .name("FirstSourceAPI")
         .definition(Definition.fromFile(join(__dirname, "appsync.merged-api-1.graphql")))
         .build();
 // second source API
 GraphqlApi secondApi = GraphqlApi.Builder.create(this, "SecondSourceAPI")
         .name("SecondSourceAPI")
         .definition(Definition.fromFile(join(__dirname, "appsync.merged-api-2.graphql")))
         .build();
 // Merged API
 GraphqlApi mergedApi = GraphqlApi.Builder.create(this, "MergedAPI")
         .name("MergedAPI")
         .definition(Definition.fromSourceApis(SourceApiOptions.builder()
                 .sourceApis(List.of(SourceApi.builder()
                         .sourceApi(firstApi)
                         .mergeType(MergeType.MANUAL_MERGE)
                         .build(), SourceApi.builder()
                         .sourceApi(secondApi)
                         .mergeType(MergeType.AUTO_MERGE)
                         .build()))
                 .build()))
         .build();
 
  • Enum Constant Details

    • MANUAL_MERGE

      @Stability(Stable) public static final MergeType MANUAL_MERGE
      Manual merge.

      The merge must be triggered manually when the source API has changed.

    • AUTO_MERGE

      @Stability(Stable) public static final MergeType AUTO_MERGE
      Auto merge.

      The merge is triggered automatically when the source API has changed.

  • Method Details

    • values

      public static MergeType[] 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 MergeType 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