{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-global-accelerator/json-schema/amazon-global-accelerator-update-cross-account-attachment-request-schema.json",
  "title": "UpdateCrossAccountAttachmentRequest",
  "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/UpdateCrossAccountAttachmentRequest",
  "type": "object",
  "properties": {
    "AttachmentArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the cross-account attachment to update."
    },
    "Name": {
      "type": "string",
      "description": "The name of the cross-account attachment."
    },
    "AddPrincipals": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The principals to add to the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment. To add more than one principal, separate the account numbers or accelerator ARNs, or both, with commas."
    },
    "RemovePrincipals": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The principals to remove from the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment. To remove more than one principal, separate the account numbers or accelerator ARNs, or both, with commas."
    },
    "AddResources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Resource"
      },
      "description": "The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment. To add more than one resource, separate the resource ARNs with commas."
    },
    "RemoveResources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Resource"
      },
      "description": "The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment. To remove more than one resource, separate the resource ARNs with commas."
    }
  },
  "required": [
    "AttachmentArn"
  ],
  "$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."
        }
      }
    }
  }
}