{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-appsync/json-schema/amazon-appsync-associate-merged-graphql-api-request-schema.json",
  "title": "AssociateMergedGraphqlApiRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-appsync-operations-api-openapi.yml#/components/schemas/AssociateMergedGraphqlApiRequest",
  "type": "object",
  "properties": {
    "sourceApiIdentifier": {
      "type": "string",
      "description": "The identifier of the AppSync Source API. This is generated by the AppSync service. In most cases, source APIs (especially in your account) only require the API ID value or ARN of the source API. However, source APIs from other accounts (cross-account use cases) strictly require the full resource ARN of the source API."
    },
    "mergedApiIdentifier": {
      "type": "string",
      "description": "The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API."
    },
    "description": {
      "type": "string",
      "description": "The description field."
    },
    "sourceApiAssociationConfig": {
      "$ref": "#/$defs/SourceApiAssociationConfig"
    }
  },
  "required": [
    "sourceApiIdentifier",
    "mergedApiIdentifier"
  ],
  "$defs": {
    "SourceApiAssociationConfig": {
      "type": "object",
      "properties": {
        "mergeType": {
          "type": "string",
          "enum": [
            "MANUAL_MERGE",
            "AUTO_MERGE"
          ],
          "description": "The property that indicates which merging option is enabled in the source API association. Valid merge types are MANUAL_MERGE (default) and AUTO_MERGE. Manual merges are the default behavior and require the user to trigger any changes from the source APIs to the merged API manually. Auto merges subscribe the merged API to the changes performed on the source APIs so that any change in the source APIs are also made to the merged API. Auto merges use MergedApiExecutionRoleArn to perform merge operations."
        }
      }
    }
  }
}