{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2/json-schema/amazon-ec2-image-attribute-schema.json",
  "title": "ImageAttribute",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-image-attribute-api-openapi.yml#/components/schemas/ImageAttribute",
  "type": "object",
  "properties": {
    "Description": {
      "$ref": "#/$defs/AttributeValue"
    },
    "KernelId": {
      "$ref": "#/$defs/AttributeValue"
    },
    "RamdiskId": {
      "$ref": "#/$defs/AttributeValue"
    },
    "SriovNetSupport": {
      "$ref": "#/$defs/AttributeValue"
    },
    "BootMode": {
      "$ref": "#/$defs/AttributeValue"
    },
    "TpmSupport": {
      "$ref": "#/$defs/AttributeValue"
    },
    "UefiData": {
      "$ref": "#/$defs/AttributeValue"
    },
    "LastLaunchedTime": {
      "$ref": "#/$defs/AttributeValue"
    },
    "ImdsSupport": {
      "$ref": "#/$defs/AttributeValue"
    },
    "DeregistrationProtection": {
      "$ref": "#/$defs/AttributeValue"
    },
    "ImageId": {
      "type": "string",
      "description": "The ID of the AMI."
    },
    "LaunchPermissions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LaunchPermission"
      },
      "description": "The launch permissions."
    },
    "ProductCodes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProductCode"
      },
      "description": "The product codes."
    },
    "BlockDeviceMappings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BlockDeviceMapping"
      },
      "description": "The block device mapping entries."
    }
  },
  "$defs": {
    "AttributeValue": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "string",
          "description": "The attribute value. The value is case-sensitive."
        }
      }
    },
    "BlockDeviceMapping": {
      "type": "object",
      "properties": {
        "Ebs": {
          "$ref": "#/$defs/EbsBlockDevice"
        },
        "NoDevice": {
          "type": "string",
          "description": "To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value."
        },
        "DeviceName": {
          "type": "string",
          "description": "The device name. For available device names, see Device names for volumes."
        },
        "VirtualName": {
          "type": "string",
          "description": "The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume. NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect. Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. "
        }
      }
    },
    "EbsBlockDevice": {
      "type": "object",
      "properties": {
        "DeleteOnTermination": {
          "type": "boolean",
          "description": "Indicates whether the EBS volume is deleted on instance termination. For more information, see Preserving Amazon EBS volumes on instance termination in the Amazon EC2 User Guide."
        },
        "Iops": {
          "type": "integer",
          "description": "The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. The following are the supported values for each volume type: gp3: 3,000 - 80,000 IOPS io1: 100 - 64,000 IOPS io2: 100 - 256,000 IOPS For io2 volumes, you can achieve up to 256,000 IOPS on instances built on the Nitro System. On other instances, you can achieve performance up to 32,000 IOPS. This parameter"
        },
        "SnapshotId": {
          "type": "string",
          "description": "The ID of the snapshot."
        },
        "VolumeSize": {
          "type": "integer",
          "description": "The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size. The following are the supported sizes for each volume type: gp2: 1 - 16,384 GiB gp3: 1 - 65,536 GiB io1: 4 - 16,384 GiB io2: 4 - 65,536 GiB st1 and sc1: 125 - 16,384 GiB standard: 1 - 1024 GiB"
        },
        "VolumeType": {
          "type": "string",
          "enum": [
            "standard",
            "io1",
            "io2",
            "gp2",
            "sc1",
            "st1",
            "gp3"
          ],
          "description": "The volume type. For more information, see Amazon EBS volume types in the Amazon EBS User Guide."
        },
        "KmsKeyId": {
          "type": "string",
          "description": "Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key to use for EBS encryption. This parameter is only supported on BlockDeviceMapping objects called by RunInstances, RequestSpotFleet, and RequestSpotInstances."
        },
        "Throughput": {
          "type": "integer",
          "description": "The throughput that the volume supports, in MiB/s. This parameter is valid only for gp3 volumes. Valid Range: Minimum value of 125. Maximum value of 2,000."
        },
        "OutpostArn": {
          "type": "string",
          "description": "The ARN of the Outpost on which the snapshot is stored. This parameter is not supported when using CreateImage."
        },
        "AvailabilityZone": {
          "type": "string",
          "description": "The Availability Zone where the EBS volume will be created (for example, us-east-1a). Either AvailabilityZone or AvailabilityZoneId can be specified, but not both. If neither is specified, Amazon EC2 automatically selects an Availability Zone within the Region. This parameter is not supported when using CreateFleet, CreateImage, DescribeImages, RequestSpotFleet, RequestSpotInstances, and RunInstances."
        },
        "Encrypted": {
          "type": "boolean",
          "description": "Indicates whether the encryption state of an EBS volume is changed while being restored from a backing snapshot. The effect of setting the encryption state to true depends on the volume origin (new or from a snapshot), starting encryption state, ownership, and whether encryption by default is enabled. For more information, see Amazon EBS encryption in the Amazon EBS User Guide. In no case can you remove encryption from an encrypted volume. Encrypted volumes can only be attached to instances that support Amazon EBS encryption. For more information, see Supported instance types. This parameter i"
        },
        "VolumeInitializationRate": {
          "type": "integer",
          "description": "Specifies the Amazon EBS Provisioned Rate for Volume Initialization (volume initialization rate), in MiB/s, at which to download the snapshot blocks from Amazon S3 to the volume. This is also known as volume initialization. Specifying a volume initialization rate ensures that the volume is initialized at a predictable and consistent rate after creation. For more information, see Initialize Amazon EBS volumes in the Amazon EC2 User Guide. This parameter is supported only for volumes created from snapshots. Omit this parameter if: You want to create the volume using fast snapshot restore. You mu"
        },
        "AvailabilityZoneId": {
          "type": "string",
          "description": "The ID of the Availability Zone where the EBS volume will be created (for example, use1-az1). Either AvailabilityZone or AvailabilityZoneId can be specified, but not both. If neither is specified, Amazon EC2 automatically selects an Availability Zone within the Region. This parameter is not supported when using CreateFleet, CreateImage, DescribeImages, RequestSpotFleet, RequestSpotInstances, and RunInstances."
        },
        "EbsCardIndex": {
          "type": "integer",
          "description": "The index of the EBS card. Some instance types support multiple EBS cards. The default EBS card index is 0."
        }
      }
    },
    "LaunchPermission": {
      "type": "object",
      "properties": {
        "OrganizationArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of an organization."
        },
        "OrganizationalUnitArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of an organizational unit (OU)."
        },
        "UserId": {
          "type": "string",
          "description": "The Amazon Web Services account ID. Constraints: Up to 10 000 account IDs can be specified in a single request."
        },
        "Group": {
          "type": "string",
          "enum": [
            "all"
          ],
          "description": "The name of the group."
        }
      }
    },
    "ProductCode": {
      "type": "object",
      "properties": {
        "ProductCodeId": {
          "type": "string",
          "description": "The product code."
        },
        "ProductCodeType": {
          "type": "string",
          "enum": [
            "devpay",
            "marketplace"
          ],
          "description": "The type of product code."
        }
      }
    }
  }
}