{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2/json-schema/amazon-ec2-modify-fpga-image-attribute-request-schema.json",
  "title": "ModifyFpgaImageAttributeRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-fpga-image-attribute-api-openapi.yml#/components/schemas/ModifyFpgaImageAttributeRequest",
  "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."
    },
    "FpgaImageId": {
      "type": "string",
      "description": "The ID of the AFI."
    },
    "Attribute": {
      "type": "string",
      "enum": [
        "description",
        "name",
        "loadPermission",
        "productCodes"
      ],
      "description": "The name of the attribute."
    },
    "OperationType": {
      "type": "string",
      "enum": [
        "add",
        "remove"
      ],
      "description": "The operation type."
    },
    "UserIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Amazon Web Services account IDs. This parameter is valid only when modifying the loadPermission attribute."
    },
    "UserGroups": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The user groups. This parameter is valid only when modifying the loadPermission attribute."
    },
    "ProductCodes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The product codes. After you add a product code to an AFI, it can't be removed. This parameter is valid only when modifying the productCodes attribute."
    },
    "LoadPermission": {
      "$ref": "#/$defs/LoadPermissionModifications"
    },
    "Description": {
      "type": "string",
      "description": "A description for the AFI."
    },
    "Name": {
      "type": "string",
      "description": "A name for the AFI."
    }
  },
  "required": [
    "FpgaImageId"
  ],
  "$defs": {
    "LoadPermissionModifications": {
      "type": "object",
      "properties": {
        "Add": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LoadPermissionRequest"
          },
          "description": "The load permissions to add."
        },
        "Remove": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LoadPermissionRequest"
          },
          "description": "The load permissions to remove."
        }
      }
    },
    "LoadPermissionRequest": {
      "type": "object",
      "properties": {
        "Group": {
          "type": "string",
          "enum": [
            "all"
          ],
          "description": "The name of the group."
        },
        "UserId": {
          "type": "string",
          "description": "The Amazon Web Services account ID."
        }
      }
    }
  }
}