{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2/json-schema/amazon-ec2-associate-instance-event-window-request-schema.json",
  "title": "AssociateInstanceEventWindowRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-instance-event-window-api-openapi.yml#/components/schemas/AssociateInstanceEventWindowRequest",
  "type": "object",
  "properties": {
    "DryRun": {
      "type": "boolean",
      "description": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation."
    },
    "InstanceEventWindowId": {
      "type": "string",
      "description": "The ID of the event window."
    },
    "AssociationTarget": {
      "$ref": "#/$defs/InstanceEventWindowAssociationRequest"
    }
  },
  "required": [
    "InstanceEventWindowId",
    "AssociationTarget"
  ],
  "$defs": {
    "InstanceEventWindowAssociationRequest": {
      "type": "object",
      "properties": {
        "InstanceIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IDs of the instances to associate with the event window. If the instance is on a Dedicated Host, you can't specify the Instance ID parameter; you must use the Dedicated Host ID parameter."
        },
        "InstanceTags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "description": "The instance tags to associate with the event window. Any instances associated with the tags will be associated with the event window. Note that while you can't create tag keys beginning with aws:, you can specify existing Amazon Web Services managed tag keys (with the aws: prefix) when specifying them as targets to associate with the event window."
        },
        "DedicatedHostIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IDs of the Dedicated Hosts to associate with the event window."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key of the tag. Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:."
        },
        "Value": {
          "type": "string",
          "description": "The value of the tag. Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters."
        }
      }
    }
  }
}