{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-global-accelerator/json-schema/amazon-global-accelerator-create-cross-account-attachment-request-schema.json",
  "title": "CreateCrossAccountAttachmentRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-global-accelerator-cross-account-attachment-api-openapi.yml#/components/schemas/CreateCrossAccountAttachmentRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The name of the cross-account attachment."
    },
    "Principals": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The principals to include in the cross-account attachment. A principal can be an Amazon Web Services account number or the Amazon Resource Name (ARN) for an accelerator."
    },
    "Resources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Resource"
      },
      "description": "The Amazon Resource Names (ARNs) for the resources to include in the cross-account attachment. A resource can be any supported Amazon Web Services resource type for Global Accelerator or a CIDR range for a bring your own IP address (BYOIP) address pool."
    },
    "IdempotencyToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Add tags for a cross-account attachment. For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide."
    }
  },
  "required": [
    "Name",
    "IdempotencyToken"
  ],
  "$defs": {
    "Resource": {
      "type": "object",
      "properties": {
        "EndpointId": {
          "type": "string",
          "description": "The endpoint ID for the endpoint that is specified as a Amazon Web Services resource. An endpoint ID for the cross-account feature is the ARN of an Amazon Web Services resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator."
        },
        "Cidr": {
          "type": "string",
          "description": "An IP address range, in CIDR format, that is specified as resource. The address must be provisioned and advertised in Global Accelerator by following the bring your own IP address (BYOIP) process for Global Accelerator For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide."
        },
        "Region": {
          "type": "string",
          "description": "The Amazon Web Services Region where a shared endpoint resource is located."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "A string that contains a Tag key."
        },
        "Value": {
          "type": "string",
          "description": "A string that contains a Tag value."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}