CreateImageRequest

Amazon Web ServicesAutomationContainer ImagesEC2Image BuildingVirtual Machine Images

Properties

Name Type Description
imageRecipeArn string The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed. You must specify either this property or containerRecipeArn, but not both.
containerRecipeArn string The Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested. You must specify either this property or imageRecipeArn, but not both.
distributionConfigurationArn string The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of the image build. If you don't specify a distribution configuration, Image Builder creates th
infrastructureConfigurationArn string The Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.
imageTestsConfiguration object
enhancedImageMetadataEnabled boolean Specifies whether to collect additional information about the image being created, including the operating system (OS) version and package list. Defaults to true.
tags object The tags of the image.
clientToken string A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time. If you retry a request with the same client token, Image Builder returns the original response
imageScanningConfiguration object
workflows array The array of workflow configuration objects for the build. If you specify workflows, they replace the default workflows that Image Builder otherwise runs for the build, and you must also provide an ex
executionRole string The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions. This property is required if you specify workflows. If you don't provid
loggingConfiguration object
View JSON Schema on GitHub

JSON Schema

amazon-ec2-image-builder-create-image-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2-image-builder/json-schema/amazon-ec2-image-builder-create-image-request-schema.json",
  "title": "CreateImageRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-image-builder-create-image-api-openapi.yml#/components/schemas/CreateImageRequest",
  "type": "object",
  "properties": {
    "imageRecipeArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed. You must specify either this property or containerRecipeArn, but not both."
    },
    "containerRecipeArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested. You must specify either this property or imageRecipeArn, but not both."
    },
    "distributionConfigurationArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of the image build. If you don't specify a distribution configuration, Image Builder creates the output image only in the account and Amazon Web Services Region where the build runs."
    },
    "infrastructureConfigurationArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested."
    },
    "imageTestsConfiguration": {
      "$ref": "#/$defs/ImageTestsConfiguration"
    },
    "enhancedImageMetadataEnabled": {
      "type": "boolean",
      "description": "Specifies whether to collect additional information about the image being created, including the operating system (OS) version and package list. Defaults to true."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags of the image."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time. If you retry a request with the same client token, Image Builder returns the original response without running the operation again. For more information, see Ensuring idempotency in the Amazon EC2 API Reference."
    },
    "imageScanningConfiguration": {
      "$ref": "#/$defs/ImageScanningConfiguration"
    },
    "workflows": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WorkflowConfiguration"
      },
      "description": "The array of workflow configuration objects for the build. If you specify workflows, they replace the default workflows that Image Builder otherwise runs for the build, and you must also provide an executionRole."
    },
    "executionRole": {
      "type": "string",
      "description": "The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions. This property is required if you specify workflows. If you don't provide a role, Image Builder uses the Image Builder service-linked role in your account, and creates it if it doesn't exist."
    },
    "loggingConfiguration": {
      "$ref": "#/$defs/ImageLoggingConfiguration"
    }
  },
  "required": [
    "infrastructureConfigurationArn",
    "clientToken"
  ],
  "$defs": {
    "EcrConfiguration": {
      "type": "object",
      "properties": {
        "repositoryName": {
          "type": "string",
          "description": "The name of the container repository where Image Builder pushes the container image for the vulnerability scan. Provide the repository name only (a namespace path is allowed, but not the registry hostname); the repository must already exist in your account. If you don't specify a repository name, Image Builder creates the default repository image-builder-image-scanning-repository in your account."
        },
        "containerTags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Tags for Image Builder to apply to the output container image that Amazon Inspector scans. Tags can help you identify and manage your scanned images."
        }
      }
    },
    "ImageLoggingConfiguration": {
      "type": "object",
      "properties": {
        "logGroupName": {
          "type": "string",
          "description": "The log group name that Image Builder uses for image creation. If not specified, the log group name defaults to /aws/imagebuilder/image-name."
        }
      }
    },
    "ImageScanningConfiguration": {
      "type": "object",
      "properties": {
        "imageScanningEnabled": {
          "type": "boolean",
          "description": "Specifies whether Amazon Inspector scans for vulnerabilities when you create a new image. You must also enable image tests. For AMI output, imageScanningTypes sets whether Amazon Inspector scans the test instance or the output AMI. For container output, Amazon Inspector scans the container image that Image Builder pushes to the Amazon ECR repository from your ecrConfiguration settings. To use container image scans, you must activate Amazon Inspector for Amazon ECR scanning in your account. The Image Builder ListImageScanFindings operation returns the findings of these scans."
        },
        "ecrConfiguration": {
          "$ref": "#/$defs/EcrConfiguration"
        },
        "imageScanningTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "TEST_INSTANCE_CVE",
              "ON_DEMAND_AMI_CVE"
            ]
          },
          "description": "The type of vulnerability scan that Image Builder runs for AMI output when imageScanningEnabled is true. Specify a single value. If you omit imageScanningTypes, Image Builder uses TEST_INSTANCE_CVE. The scan types work as follows: With TEST_INSTANCE_CVE, Amazon Inspector scans the test instance during image tests. To use this scan, you must activate Amazon Inspector for Amazon EC2 scanning in your account. The Image Builder ListImageScanFindings operation returns the findings. With ON_DEMAND_AMI_CVE, Amazon Inspector starts an on-demand scan of the output AMI during image tests. To use this sc"
        },
        "scanResultCondition": {
          "$ref": "#/$defs/ScanResultCondition"
        }
      }
    },
    "ImageTestsConfiguration": {
      "type": "object",
      "properties": {
        "imageTestsEnabled": {
          "type": "boolean",
          "description": "Specifies whether tests run after building the image. When enabled, tests run after the image build and before image distribution. Defaults to true."
        },
        "timeoutMinutes": {
          "type": "integer",
          "description": "The maximum time in minutes that tests are permitted to run. If you don't specify a value, Image Builder stores and returns 720. The timeout property is not currently active. This value is ignored."
        }
      }
    },
    "ScanResultCondition": {
      "type": "object",
      "properties": {
        "maximumSeverityLabel": {
          "type": "string",
          "enum": [
            "INFORMATIONAL",
            "LOW",
            "MEDIUM",
            "HIGH"
          ],
          "description": "The maximum severity allowed for findings on the output AMI. A finding above this severity fails the image, unless fixAvailable excludes it. Valid values are INFORMATIONAL, LOW, MEDIUM, and HIGH. A CRITICAL finding that counts always fails the image."
        },
        "fixAvailable": {
          "type": "boolean",
          "description": "Specifies whether only findings that have a fix available count toward maximumSeverityLabel. When false, Image Builder counts every finding. The default is true."
        }
      },
      "required": [
        "maximumSeverityLabel"
      ]
    },
    "WorkflowConfiguration": {
      "type": "object",
      "properties": {
        "workflowArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the workflow resource."
        },
        "parameters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WorkflowParameter"
          },
          "description": "Contains parameter values for each of the parameters that the workflow document defined for the workflow resource."
        },
        "parallelGroup": {
          "type": "string",
          "description": "Test workflows are defined within named runtime groups called parallel groups. The parallel group is the named group that contains this test workflow. Test workflows within a parallel group can run at the same time. Image Builder starts up to five test workflows in the group at the same time, and starts additional workflows as others complete, until all workflows in the group have completed. This field only applies for test workflows."
        },
        "onFailure": {
          "type": "string",
          "enum": [
            "CONTINUE",
            "ABORT"
          ],
          "description": "The action to take if the workflow fails. With CONTINUE, a failed workflow is logged and image creation proceeds to the next workflow. If you don't set a value, the image build fails when the workflow fails. You can only set this property for test workflows."
        }
      },
      "required": [
        "workflowArn"
      ]
    },
    "WorkflowParameter": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the workflow parameter to set."
        },
        "value": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Sets the value for the named workflow parameter."
        }
      },
      "required": [
        "name",
        "value"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-ec2-image-builder-create-image-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.