{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2-image-builder/json-schema/amazon-ec2-image-builder-get-image-response-schema.json",
  "title": "GetImageResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-image-builder-getimage-api-openapi.yml#/components/schemas/GetImageResponse",
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string",
      "description": "The request ID that uniquely identifies this request."
    },
    "image": {
      "$ref": "#/$defs/Image"
    },
    "latestVersionReferences": {
      "$ref": "#/$defs/LatestVersionReferences"
    }
  },
  "$defs": {
    "AdditionalInstanceConfiguration": {
      "type": "object",
      "properties": {
        "systemsManagerAgent": {
          "$ref": "#/$defs/SystemsManagerAgent"
        },
        "userDataOverride": {
          "type": "string",
          "description": "Use this property to provide commands or a command script to run when you launch your build instance. The userDataOverride property replaces any commands that Image Builder might have added to ensure that Systems Manager is installed on your Linux build instance. If you override the user data, make sure that you add commands to install Systems Manager, if it is not pre-installed on your base image. The user data is always base 64 encoded. For example, the following commands are encoded as IyEvYmluL2Jhc2gKbWtkaXIgLXAgL3Zhci9iYi8KdG91Y2ggL3Zhcg==: #!/bin/bash mkdir -p /var/bb/ touch /var"
        }
      }
    },
    "Ami": {
      "type": "object",
      "properties": {
        "region": {
          "type": "string",
          "description": "The Amazon Web Services Region of the Amazon EC2 AMI."
        },
        "image": {
          "type": "string",
          "description": "The AMI ID of the Amazon EC2 AMI."
        },
        "name": {
          "type": "string",
          "description": "The name of the Amazon EC2 AMI."
        },
        "description": {
          "type": "string",
          "description": "The description of the Amazon EC2 AMI. Minimum and maximum length are in characters."
        },
        "state": {
          "$ref": "#/$defs/ImageState"
        },
        "accountId": {
          "type": "string",
          "description": "The account ID of the owner of the AMI."
        }
      }
    },
    "AmiDistributionConfiguration": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the output AMI. The name must include the {{ imagebuilder:buildDate }} dynamic tag so that each build produces a uniquely named AMI. If you don't specify a name, Image Builder names the output AMI with the image name followed by the build timestamp, for example my-image 2022-10-26T22-30-05.912619Z."
        },
        "description": {
          "type": "string",
          "description": "The description to apply to the distributed AMI. Image Builder sets this as the output AMI's description in each target Region and account. If you don't specify a description, the AMI in the build Region uses the image recipe's description, if the recipe has one. Copies distributed to other Regions and accounts don't receive a default description."
        },
        "targetAccountIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Web Services account IDs to distribute the AMI to in this Region. Each listed account receives its own copy of the output AMI. If you don't specify accounts, Image Builder distributes the AMI only to your own account."
        },
        "amiTags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags to apply to AMIs distributed to this Region."
        },
        "kmsKeyId": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) that uniquely identifies the KMS key used to encrypt the distributed image. This can be either the Key ARN or the Alias ARN. For more information, see Key identifiers (KeyId) in the Key Management Service Developer Guide."
        },
        "launchPermission": {
          "$ref": "#/$defs/LaunchPermissionConfiguration"
        }
      }
    },
    "AutoScalingGroupConfiguration": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the Auto Scaling group, in the same account and Amazon Web Services Region as the infrastructure configuration. To specify a group, you must have permissions to describe it."
        },
        "capacityWaitTimeoutSeconds": {
          "type": "integer",
          "description": "The number of seconds that Image Builder waits for an instance to become available in the group before the build fails. If you set this value to 0 or omit it, the build fails as soon as the group has no instance available."
        }
      },
      "required": [
        "name"
      ]
    },
    "ComponentConfiguration": {
      "type": "object",
      "properties": {
        "componentArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the component. You can specify a build version ARN, or a component version ARN whose version segments can use x wildcards, for example 1.x.x."
        },
        "parameters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ComponentParameter"
          },
          "description": "A group of parameter settings that Image Builder uses to configure the component for a specific recipe. You must supply a value for every component parameter that has no default value, and you can only supply parameters that the component defines."
        }
      },
      "required": [
        "componentArn"
      ]
    },
    "ComponentFailureContext": {
      "type": "object",
      "properties": {
        "componentArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the component build version that failed."
        },
        "phaseName": {
          "type": "string",
          "description": "The name of the phase in the component document where the failure occurred, such as build, validate, or test."
        },
        "stepName": {
          "type": "string",
          "description": "The name of the step in the component document that failed."
        },
        "action": {
          "type": "string",
          "description": "The action that the failed step runs, for example ExecuteBash."
        },
        "errorMessage": {
          "type": "string",
          "description": "The error message from the step that failed. Image Builder truncates messages that are longer than 1024 characters. The component log in Amazon CloudWatch Logs contains the full output."
        }
      }
    },
    "ComponentParameter": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the component parameter to set."
        },
        "value": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Sets the value for the named component parameter."
        }
      },
      "required": [
        "name",
        "value"
      ]
    },
    "Container": {
      "type": "object",
      "properties": {
        "region": {
          "type": "string",
          "description": "Containers and container images are Region-specific. This is the Region context for the container."
        },
        "imageUris": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of URIs for containers created in the context Region."
        }
      }
    },
    "ContainerDistributionConfiguration": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string",
          "description": "The description of the container distribution configuration."
        },
        "containerTags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Tags that Image Builder applies to the distributed container image in the target repository. These are repository image tags, not resource tags."
        },
        "targetRepository": {
          "$ref": "#/$defs/TargetContainerRepository"
        }
      },
      "required": [
        "targetRepository"
      ]
    },
    "ContainerRecipe": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the container recipe. Semantic versioning is included in each object's Amazon Resource Name (ARN), at the level that applies to that object as follows: Versionless ARNs and Name ARNs do not include specific values in any of the nodes. The nodes are either left off entirely, or they are specified as wildcards, for example: x.x.x. Version ARNs have only the first three nodes: .. Build version ARNs have all four nodes, and point to a specific build for a specific version of an object."
        },
        "containerType": {
          "type": "string",
          "enum": [
            "DOCKER"
          ],
          "description": "Specifies the type of container, such as Docker."
        },
        "name": {
          "type": "string",
          "description": "The name of the container recipe."
        },
        "description": {
          "type": "string",
          "description": "The description of the container recipe."
        },
        "platform": {
          "type": "string",
          "enum": [
            "Windows",
            "Linux",
            "macOS"
          ],
          "description": "The system platform for the container. Container recipes support only the Linux and Windows platforms."
        },
        "owner": {
          "type": "string",
          "description": "The owner of the container recipe."
        },
        "version": {
          "type": "string",
          "description": "The semantic version of the container recipe. The semantic version has four nodes: ../. You can assign values for the first three, and can filter on all of them. Assignment: For the first three nodes, you can assign any positive integer value, including zero. The upper limit is 2^30-1, or 1073741823, for each node. Image Builder automatically assigns the build number to the fourth node. Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such "
        },
        "components": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ComponentConfiguration"
          },
          "description": "Build and test components that are included in the container recipe. A recipe can contain a maximum of 20 build and test components in any combination, by default. This maximum is an adjustable quota. For more information, see EC2 Image Builder endpoints and quotas in the Amazon Web Services General Reference."
        },
        "instanceConfiguration": {
          "$ref": "#/$defs/InstanceConfiguration"
        },
        "dockerfileTemplateData": {
          "type": "string",
          "description": "The Dockerfile template that Image Builder uses to build the container image. The template can include contextual variables that Image Builder replaces with build information at build time. For the contextual variables that the template can include, see Create a new version of a container recipe in the EC2 Image Builder User Guide."
        },
        "kmsKeyId": {
          "type": "string",
          "description": "The KMS key that Image Builder uses to encrypt the recipe's Dockerfile template data at rest. This can be either the Key ARN or the Alias ARN. For more information, see Key identifiers (KeyId) in the Key Management Service Developer Guide. If you don't specify a key, Image Builder encrypts the template data with a KMS key that Image Builder owns. This key isn't used to encrypt the output container image."
        },
        "encrypted": {
          "type": "boolean",
          "description": "Specifies whether the recipe's Dockerfile template data is encrypted at rest. Image Builder encrypts all Dockerfile template data at rest, so this value is always true. This field is retained for backward compatibility, and doesn't describe encryption of the output container image."
        },
        "parentImage": {
          "type": "string",
          "description": "The base image for customizations specified in the container recipe. This can contain an Image Builder image resource ARN or a container image URI, for example amazonlinux:latest."
        },
        "dateCreated": {
          "type": "string",
          "description": "The date when this container recipe was created."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Tags that are attached to the container recipe."
        },
        "workingDirectory": {
          "type": "string",
          "description": "The working directory for use during build and test workflows."
        },
        "targetRepository": {
          "$ref": "#/$defs/TargetContainerRepository"
        }
      }
    },
    "Distribution": {
      "type": "object",
      "properties": {
        "region": {
          "type": "string",
          "description": "The target Region."
        },
        "amiDistributionConfiguration": {
          "$ref": "#/$defs/AmiDistributionConfiguration"
        },
        "containerDistributionConfiguration": {
          "$ref": "#/$defs/ContainerDistributionConfiguration"
        },
        "licenseConfigurationArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The License Manager Configuration to associate with the AMI in the specified Region."
        },
        "launchTemplateConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LaunchTemplateConfiguration"
          },
          "description": "A group of launchTemplateConfiguration settings that apply to image distribution for specified accounts."
        },
        "s3ExportConfiguration": {
          "$ref": "#/$defs/S3ExportConfiguration"
        },
        "fastLaunchConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FastLaunchConfiguration"
          },
          "description": "The Windows faster-launching configurations to use for AMI distribution."
        },
        "ssmParameterConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SsmParameterConfiguration"
          },
          "description": "Contains settings to update Amazon Web Services Systems Manager (SSM) Parameter Store Parameters with output AMI IDs from the build by target Region."
        }
      },
      "required": [
        "region"
      ]
    },
    "DistributionConfiguration": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the distribution configuration."
        },
        "name": {
          "type": "string",
          "description": "The name of the distribution configuration."
        },
        "description": {
          "type": "string",
          "description": "The description of the distribution configuration."
        },
        "distributions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Distribution"
          },
          "description": "The distribution objects that apply Region-specific settings for the deployment of the image to targeted Regions."
        },
        "timeoutMinutes": {
          "type": "integer",
          "description": "A property that Image Builder doesn't use. You can't set this property when you create or update a distribution configuration, and it has no effect on distribution behavior."
        },
        "dateCreated": {
          "type": "string",
          "description": "The date on which this distribution configuration was created."
        },
        "dateUpdated": {
          "type": "string",
          "description": "The date on which this distribution configuration was last updated."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags of the distribution configuration."
        }
      },
      "required": [
        "timeoutMinutes"
      ]
    },
    "DistributionFailureContext": {
      "type": "object",
      "properties": {
        "errorMessage": {
          "type": "string",
          "description": "The error message for the distribution failure."
        },
        "regionFailures": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RegionFailure"
          },
          "description": "The details about the failure for each Region where the image didn't finish distribution or configuration."
        }
      }
    },
    "EbsInstanceBlockDeviceSpecification": {
      "type": "object",
      "properties": {
        "encrypted": {
          "type": "boolean",
          "description": "Specifies whether to encrypt the device."
        },
        "deleteOnTermination": {
          "type": "boolean",
          "description": "Specifies whether to delete the associated device on termination."
        },
        "iops": {
          "type": "integer",
          "description": "The IOPS value for the device. Required only when volumeType is io1 or io2."
        },
        "kmsKeyId": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) that uniquely identifies the KMS key to use when encrypting the device. This can be either the Key ARN or the Alias ARN. For more information, see Key identifiers (KeyId) in the Key Management Service Developer Guide."
        },
        "snapshotId": {
          "type": "string",
          "description": "The snapshot that defines the device contents."
        },
        "volumeSize": {
          "type": "integer",
          "description": "Overrides the volume size for the device."
        },
        "volumeType": {
          "type": "string",
          "enum": [
            "standard",
            "io1",
            "io2",
            "gp2",
            "gp3",
            "sc1",
            "st1"
          ],
          "description": "Overrides the volume type for the device."
        },
        "throughput": {
          "type": "integer",
          "description": "For GP3 volumes only – The throughput in MiB/s that the volume supports."
        }
      }
    },
    "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."
        }
      }
    },
    "FastLaunchConfiguration": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether to enable Windows fast launch on the output AMI during distribution. A value of false means Image Builder takes no fast-launch action for this configuration."
        },
        "snapshotConfiguration": {
          "$ref": "#/$defs/FastLaunchSnapshotConfiguration"
        },
        "maxParallelLaunches": {
          "type": "integer",
          "description": "The maximum number of parallel instances that are launched for creating resources."
        },
        "launchTemplate": {
          "$ref": "#/$defs/FastLaunchLaunchTemplateSpecification"
        },
        "accountId": {
          "type": "string",
          "description": "The owner account ID for the fast-launch enabled Windows AMI."
        }
      },
      "required": [
        "enabled"
      ]
    },
    "FastLaunchLaunchTemplateSpecification": {
      "type": "object",
      "properties": {
        "launchTemplateId": {
          "type": "string",
          "description": "The ID of the launch template to use for Windows fast launch for a Windows AMI."
        },
        "launchTemplateName": {
          "type": "string",
          "description": "The name of the launch template to use for Windows fast launch for a Windows AMI."
        },
        "launchTemplateVersion": {
          "type": "string",
          "description": "The version of the launch template to use for Windows fast launch for a Windows AMI."
        }
      }
    },
    "FastLaunchSnapshotConfiguration": {
      "type": "object",
      "properties": {
        "targetResourceCount": {
          "type": "integer",
          "description": "The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI."
        }
      }
    },
    "Image": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the image. Semantic versioning is included in each object's Amazon Resource Name (ARN), at the level that applies to that object as follows: Versionless ARNs and Name ARNs do not include specific values in any of the nodes. The nodes are either left off entirely, or they are specified as wildcards, for example: x.x.x. Version ARNs have only the first three nodes: .. Build version ARNs have all four nodes, and point to a specific build for a specific version of an object."
        },
        "type": {
          "type": "string",
          "enum": [
            "AMI",
            "DOCKER"
          ],
          "description": "Specifies whether this image produces an AMI or a container image."
        },
        "name": {
          "type": "string",
          "description": "The name of the image."
        },
        "version": {
          "type": "string",
          "description": "The semantic version of the image. The semantic version has four nodes: ../. You can assign values for the first three, and can filter on all of them. Assignment: For the first three nodes, you can assign any positive integer value, including zero. The upper limit is 2^30-1, or 1073741823, for each node. Image Builder automatically assigns the build number to the fourth node. Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01."
        },
        "platform": {
          "type": "string",
          "enum": [
            "Windows",
            "Linux",
            "macOS"
          ],
          "description": "The image operating system platform, such as Linux or Windows."
        },
        "enhancedImageMetadataEnabled": {
          "type": "boolean",
          "description": "Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list."
        },
        "osVersion": {
          "type": "string",
          "description": "The operating system version for instances that launch from this image. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019."
        },
        "state": {
          "$ref": "#/$defs/ImageState"
        },
        "imageRecipe": {
          "$ref": "#/$defs/ImageRecipe"
        },
        "containerRecipe": {
          "$ref": "#/$defs/ContainerRecipe"
        },
        "sourcePipelineName": {
          "type": "string",
          "description": "The name of the image pipeline that created this image. Image Builder doesn't return this field for new images. Use sourcePipelineArn instead."
        },
        "sourcePipelineArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the image pipeline that created this image. This field is only present for images that a pipeline execution created."
        },
        "infrastructureConfiguration": {
          "$ref": "#/$defs/InfrastructureConfiguration"
        },
        "distributionConfiguration": {
          "$ref": "#/$defs/DistributionConfiguration"
        },
        "imageTestsConfiguration": {
          "$ref": "#/$defs/ImageTestsConfiguration"
        },
        "dateCreated": {
          "type": "string",
          "description": "The date on which Image Builder created this image."
        },
        "outputResources": {
          "$ref": "#/$defs/OutputResources"
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags that apply to this image."
        },
        "buildType": {
          "type": "string",
          "enum": [
            "USER_INITIATED",
            "SCHEDULED",
            "IMPORT",
            "IMPORT_ISO"
          ],
          "description": "Indicates the type of build that created this image. The build can be initiated in the following ways: USER_INITIATED – A manual pipeline build request. SCHEDULED – A pipeline build initiated by a cron expression in the Image Builder pipeline, or from EventBridge. IMPORT – A VM import created the image to use as the base image for the recipe. IMPORT_ISO – An ISO disk import created the image."
        },
        "imageSource": {
          "type": "string",
          "enum": [
            "AMAZON_MANAGED",
            "AWS_MARKETPLACE",
            "IMPORTED",
            "CUSTOM"
          ],
          "description": "The origin of the base image that Image Builder used to build this image."
        },
        "scanState": {
          "$ref": "#/$defs/ImageScanState"
        },
        "imageScanningConfiguration": {
          "$ref": "#/$defs/ImageScanningConfiguration"
        },
        "deprecationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time when deprecation occurs for an image resource. This can be a past or future date."
        },
        "lifecycleExecutionId": {
          "type": "string",
          "description": "Identifies the last runtime instance of the lifecycle policy to take action on the image."
        },
        "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."
        },
        "workflows": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WorkflowConfiguration"
          },
          "description": "The build, test, and distribution workflow configurations that are associated with the image."
        },
        "loggingConfiguration": {
          "$ref": "#/$defs/ImageLoggingConfiguration"
        }
      }
    },
    "ImageFailureContext": {
      "type": "object",
      "properties": {
        "imageStatus": {
          "type": "string",
          "enum": [
            "PENDING",
            "CREATING",
            "BUILDING",
            "TESTING",
            "DISTRIBUTING",
            "INTEGRATING",
            "AVAILABLE",
            "CANCELLED",
            "FAILED",
            "DEPRECATED",
            "DELETED",
            "DISABLED"
          ],
          "description": "The status that the image had when the failure occurred. This indicates the stage of the image creation process where the image failed, for example BUILDING or DISTRIBUTING."
        },
        "workflowExecutionId": {
          "type": "string",
          "description": "The unique identifier of the workflow execution that was running when the image failed."
        },
        "workflowArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the workflow build version that was running when the image failed."
        },
        "stepExecutionId": {
          "type": "string",
          "description": "The unique identifier of the workflow step execution that failed."
        },
        "failedStep": {
          "type": "string",
          "description": "The name of the workflow step that failed, as it appears in the workflow document."
        },
        "componentFailure": {
          "$ref": "#/$defs/ComponentFailureContext"
        },
        "distributionFailure": {
          "$ref": "#/$defs/DistributionFailureContext"
        }
      }
    },
    "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."
        }
      }
    },
    "ImageRecipe": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the image recipe."
        },
        "type": {
          "type": "string",
          "enum": [
            "AMI",
            "DOCKER"
          ],
          "description": "The output image type. For an image recipe, this is always AMI. Container images are built from container recipes, a separate resource. This field isn't currently returned in responses."
        },
        "name": {
          "type": "string",
          "description": "The name of the image recipe."
        },
        "description": {
          "type": "string",
          "description": "The description of the image recipe."
        },
        "platform": {
          "type": "string",
          "enum": [
            "Windows",
            "Linux",
            "macOS"
          ],
          "description": "The platform of the image recipe."
        },
        "owner": {
          "type": "string",
          "description": "The owner of the image recipe."
        },
        "version": {
          "type": "string",
          "description": "The version of the image recipe."
        },
        "components": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ComponentConfiguration"
          },
          "description": "The components that are included in the image recipe. A recipe can contain a maximum of 20 build and test components in any combination, by default. This maximum is an adjustable quota. For more information, see EC2 Image Builder endpoints and quotas in the Amazon Web Services General Reference."
        },
        "parentImage": {
          "type": "string",
          "description": "The base image for customizations specified in the image recipe. You can specify the parent image using one of the following options: AMI ID Image Builder image Amazon Resource Name (ARN) Amazon Web Services Systems Manager (SSM) Parameter Store Parameter, prefixed by ssm:, followed by the parameter name or ARN. Amazon Web Services Marketplace product ID"
        },
        "blockDeviceMappings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InstanceBlockDeviceMapping"
          },
          "description": "The block device mappings to apply when creating images from this recipe."
        },
        "dateCreated": {
          "type": "string",
          "description": "The date on which this image recipe was created."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags of the image recipe."
        },
        "workingDirectory": {
          "type": "string",
          "description": "The working directory used during build and test workflows. If you don't specify a working directory, Image Builder uses /tmp for Linux and macOS build instances, and C:/ for Windows build instances."
        },
        "additionalInstanceConfiguration": {
          "$ref": "#/$defs/AdditionalInstanceConfiguration"
        },
        "amiTags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Tags that are applied to the AMI that Image Builder creates during the Build phase prior to image distribution."
        },
        "amiWatermarks": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The AMI watermark names attached to the output AMI from this recipe. AMI watermarks are lineage markers that automatically propagate to derivative AMIs when the source AMI is copied or distributed."
        }
      }
    },
    "ImageScanState": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "SCANNING",
            "COLLECTING",
            "COMPLETED",
            "ABANDONED",
            "FAILED",
            "TIMED_OUT"
          ],
          "description": "The current state of vulnerability scans for the image. The scan starts as PENDING and moves through SCANNING and COLLECTING to COMPLETED. Image Builder sets the status to ABANDONED if the image reaches a terminal state before the scan finding collection completes. A scan can also end as FAILED or TIMED_OUT."
        },
        "reason": {
          "type": "string",
          "description": "The reason for the scan status for the image."
        }
      }
    },
    "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"
        }
      }
    },
    "ImageState": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "CREATING",
            "BUILDING",
            "TESTING",
            "DISTRIBUTING",
            "INTEGRATING",
            "AVAILABLE",
            "CANCELLED",
            "FAILED",
            "DEPRECATED",
            "DELETED",
            "DISABLED"
          ],
          "description": "The status of the image. A new image moves through build, test, and distribution statuses during creation, and ends in the AVAILABLE, FAILED, or CANCELLED state. The DEPRECATED, DISABLED, and DELETED statuses come from later resource management actions."
        },
        "reason": {
          "type": "string",
          "description": "The reason for the status of the image."
        },
        "failureContext": {
          "$ref": "#/$defs/ImageFailureContext"
        }
      }
    },
    "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."
        }
      }
    },
    "InfrastructureConfiguration": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the infrastructure configuration."
        },
        "name": {
          "type": "string",
          "description": "The name of the infrastructure configuration."
        },
        "description": {
          "type": "string",
          "description": "The description of the infrastructure configuration."
        },
        "instanceTypes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The instance types of the infrastructure configuration."
        },
        "instanceProfileName": {
          "type": "string",
          "description": "The instance profile of the infrastructure configuration."
        },
        "securityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The security group IDs of the infrastructure configuration."
        },
        "subnetId": {
          "type": "string",
          "description": "The subnet ID of the infrastructure configuration."
        },
        "logging": {
          "$ref": "#/$defs/Logging"
        },
        "keyPair": {
          "type": "string",
          "description": "The Amazon EC2 key pair of the infrastructure configuration."
        },
        "terminateInstanceOnFailure": {
          "type": "boolean",
          "description": "Indicates whether Image Builder terminates the build and test instances when the image build fails. When false, Image Builder retains the instance so that you can debug it."
        },
        "snsTopicArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the SNS topic to which Image Builder sends image build event notifications. Specify a standard topic. Image Builder doesn't support FIFO topics. EC2 Image Builder can't send notifications to SNS topics that are encrypted using keys from other accounts. If your SNS topic is encrypted, the key must be owned by the same account that owns your Image Builder resources."
        },
        "dateCreated": {
          "type": "string",
          "description": "The date on which the infrastructure configuration was created."
        },
        "dateUpdated": {
          "type": "string",
          "description": "The date on which the infrastructure configuration was last updated."
        },
        "resourceTags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The metadata tags assigned to the Amazon EC2 build and test instances that Image Builder launches during image creation."
        },
        "instanceMetadataOptions": {
          "$ref": "#/$defs/InstanceMetadataOptions"
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags of the infrastructure configuration."
        },
        "placement": {
          "$ref": "#/$defs/Placement"
        },
        "terminateInstanceOnCompletion": {
          "type": "boolean",
          "description": "Specifies whether Image Builder terminates build and test instances when image creation ends without a failure."
        },
        "parentInstance": {
          "$ref": "#/$defs/ParentInstanceConfiguration"
        }
      }
    },
    "InstanceBlockDeviceMapping": {
      "type": "object",
      "properties": {
        "deviceName": {
          "type": "string",
          "description": "The device to which these mappings apply."
        },
        "ebs": {
          "$ref": "#/$defs/EbsInstanceBlockDeviceSpecification"
        },
        "virtualName": {
          "type": "string",
          "description": "The virtual device name for instance ephemeral devices."
        },
        "noDevice": {
          "type": "string",
          "description": "Specifies a mapping to remove from the base image."
        }
      }
    },
    "InstanceConfiguration": {
      "type": "object",
      "properties": {
        "image": {
          "type": "string",
          "description": "The base image for a container build and test instance. This can contain an AMI ID or it can specify an Amazon Web Services Systems Manager (SSM) Parameter Store Parameter, prefixed by ssm:, followed by the parameter name or ARN. If not specified, Image Builder uses the appropriate ECS-optimized AMI as a base image."
        },
        "blockDeviceMappings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InstanceBlockDeviceMapping"
          },
          "description": "Defines the block device mappings for the EC2 instance that Image Builder launches to build and test your container image."
        }
      }
    },
    "InstanceMetadataOptions": {
      "type": "object",
      "properties": {
        "httpTokens": {
          "type": "string",
          "description": "Indicates whether a signed token header is required for instance metadata retrieval requests. The values affect the response as follows: required – When you retrieve the IAM role credentials, version 2.0 credentials are returned in all cases. optional – You can include a signed token header in your request to retrieve instance metadata, or you can leave it out. If you include it, version 2.0 credentials are returned for the IAM role. Otherwise, version 1.0 credentials are returned. If you don't set a value, the EC2 launch default applies to the build and test instances. That default depends on"
        },
        "httpPutResponseHopLimit": {
          "type": "integer",
          "description": "Limit the number of hops that an instance metadata request can traverse to reach its destination. If you don't set a value, the EC2 launch default for the instance applies. If HTTP tokens are required, container image builds need a minimum of two hops."
        }
      }
    },
    "LatestVersionReferences": {
      "type": "object",
      "properties": {
        "latestVersionArn": {
          "type": "string",
          "description": "The latest version Amazon Resource Name (ARN) of the Image Builder resource."
        },
        "latestMajorVersionArn": {
          "type": "string",
          "description": "The latest version Amazon Resource Name (ARN) with the same major version of the Image Builder resource."
        },
        "latestMinorVersionArn": {
          "type": "string",
          "description": "The latest version Amazon Resource Name (ARN) with the same minor version of the Image Builder resource."
        },
        "latestPatchVersionArn": {
          "type": "string",
          "description": "The latest version Amazon Resource Name (ARN) with the same patch version of the Image Builder resource."
        }
      }
    },
    "LaunchPermissionConfiguration": {
      "type": "object",
      "properties": {
        "userIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Web Services account IDs to grant launch permission to. Each listed account can use the distributed AMI to launch instances."
        },
        "userGroups": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The name of the group that you want to grant launch permission to. The only supported value is all, which makes the distributed AMI public."
        },
        "organizationArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more information, see What is Organizations?."
        },
        "organizationalUnitArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The ARN for an Organizations organizational unit (OU) that you want to share your AMI with. For more information about key concepts for Organizations, see Organizations terminology and concepts."
        }
      }
    },
    "LaunchTemplateConfiguration": {
      "type": "object",
      "properties": {
        "launchTemplateId": {
          "type": "string",
          "description": "Identifies the Amazon EC2 launch template to use."
        },
        "accountId": {
          "type": "string",
          "description": "The account ID that this configuration applies to."
        },
        "setDefaultVersion": {
          "type": "boolean",
          "description": "Specifies whether to make the new launch template version that Image Builder creates the default version of the launch template. If you don't set a value, Image Builder treats it as true."
        }
      },
      "required": [
        "launchTemplateId"
      ]
    },
    "Logging": {
      "type": "object",
      "properties": {
        "s3Logs": {
          "$ref": "#/$defs/S3Logs"
        }
      }
    },
    "OutputResources": {
      "type": "object",
      "properties": {
        "amis": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Ami"
          },
          "description": "The Amazon EC2 AMIs created by this image. The list contains one entry per AMI, including copies that distribution created in each target Amazon Web Services Region and account."
        },
        "containers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Container"
          },
          "description": "The container images that Image Builder created when it built this image, stored in the output Amazon ECR repository."
        }
      }
    },
    "ParentInstanceConfiguration": {
      "type": "object",
      "properties": {
        "autoScalingGroup": {
          "$ref": "#/$defs/AutoScalingGroupConfiguration"
        }
      },
      "required": [
        "autoScalingGroup"
      ]
    },
    "Placement": {
      "type": "object",
      "properties": {
        "availabilityZone": {
          "type": "string",
          "description": "The Availability Zone where your build and test instances will launch."
        },
        "tenancy": {
          "type": "string",
          "enum": [
            "default",
            "dedicated",
            "host"
          ],
          "description": "The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware. An instance with a tenancy of host runs on a Dedicated Host. If tenancy is set to host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances."
        },
        "hostId": {
          "type": "string",
          "description": "The ID of the Dedicated Host on which build and test instances run. This only applies if tenancy is host."
        },
        "hostResourceGroupArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances. This only applies if tenancy is host."
        }
      }
    },
    "RegionFailure": {
      "type": "object",
      "properties": {
        "region": {
          "type": "string",
          "description": "The Region where the failure occurred."
        },
        "status": {
          "type": "string",
          "enum": [
            "FAILED",
            "CANCELLED",
            "TIMED_OUT"
          ],
          "description": "The failure status for the Region. Indicates whether the process failed, was canceled, or timed out."
        },
        "imageConfigurationStep": {
          "type": "string",
          "enum": [
            "ASSOCIATE_LICENSES",
            "UPDATE_LAUNCH_TEMPLATES",
            "PUT_SSM_PARAMETERS",
            "UPDATE_FAST_LAUNCH_CONFIGURATIONS",
            "EXPORT_AMI"
          ],
          "description": "The image configuration step where the failure occurred. Image Builder sets this property when the failure happened during post-distribution configuration, such as launch template updates or virtual machine (VM) export. This property doesn't appear for failures that occurred while Image Builder copied the image to the Region."
        },
        "errorMessage": {
          "type": "string",
          "description": "The error message for the failure in the Region."
        },
        "targetAccountId": {
          "type": "string",
          "description": "The account ID of the account that the image was distributed to in the Region."
        }
      }
    },
    "S3ExportConfiguration": {
      "type": "object",
      "properties": {
        "roleName": {
          "type": "string",
          "description": "The name of the role that grants VM Import/Export permission to export images to your S3 bucket."
        },
        "diskImageFormat": {
          "type": "string",
          "enum": [
            "VMDK",
            "RAW",
            "VHD"
          ],
          "description": "Export the updated image to one of the following supported disk image formats: Virtual Hard Disk (VHD) – Compatible with Citrix Xen and Microsoft Hyper-V virtualization products. Stream-optimized ESX Virtual Machine Disk (VMDK) – Compatible with VMware ESX and VMware vSphere versions 4, 5, and 6. Raw – Raw format."
        },
        "s3Bucket": {
          "type": "string",
          "description": "The S3 bucket in which to store the output disk images for your VM."
        },
        "s3Prefix": {
          "type": "string",
          "description": "The Amazon S3 path for the bucket where the output disk images for your VM are stored."
        }
      },
      "required": [
        "roleName",
        "diskImageFormat",
        "s3Bucket"
      ]
    },
    "S3Logs": {
      "type": "object",
      "properties": {
        "s3BucketName": {
          "type": "string",
          "description": "The name of an existing Amazon S3 bucket where Image Builder saves build logs. The bucket isn't validated when you create or update the configuration, and Image Builder doesn't create it. The instance profile associated with this infrastructure configuration must have permission to write to the bucket."
        },
        "s3KeyPrefix": {
          "type": "string",
          "description": "The Amazon S3 key prefix under which Image Builder writes build and test logs in the bucket."
        }
      }
    },
    "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"
      ]
    },
    "SsmParameterConfiguration": {
      "type": "object",
      "properties": {
        "amiAccountId": {
          "type": "string",
          "description": "Specify the account that will own the Parameter in a given Region. During distribution, this account must be specified in distribution settings as a target account for the Region."
        },
        "parameterName": {
          "type": "string",
          "description": "This is the name of the Parameter in the target Region or account. The image distribution creates the Parameter if it doesn't already exist. Otherwise, it updates the parameter."
        },
        "dataType": {
          "type": "string",
          "enum": [
            "text",
            "aws:ec2:image"
          ],
          "description": "The type of value the parameter contains. We recommend the aws:ec2:image data type."
        }
      },
      "required": [
        "parameterName"
      ]
    },
    "SystemsManagerAgent": {
      "type": "object",
      "properties": {
        "uninstallAfterBuild": {
          "type": "boolean",
          "description": "Specifies whether the Systems Manager agent is removed from your final build image before Image Builder creates the new AMI. If true, the agent is removed. If false, the agent is kept, so that it's included in the AMI. If you don't set this property, Image Builder removes the agent only if Image Builder installed the agent during the build. An agent that was pre-installed on the base image is kept."
        }
      }
    },
    "TargetContainerRepository": {
      "type": "object",
      "properties": {
        "service": {
          "type": "string",
          "enum": [
            "ECR"
          ],
          "description": "Specifies the service in which this image was registered."
        },
        "repositoryName": {
          "type": "string",
          "description": "The name of the container repository where the output container image is stored. Provide the repository name only (a namespace path such as team-a/my-repo is allowed, but not the registry hostname)."
        }
      },
      "required": [
        "service",
        "repositoryName"
      ]
    },
    "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"
      ]
    }
  }
}