{
  "$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-infrastructure-configuration-response-schema.json",
  "title": "GetInfrastructureConfigurationResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-image-builder-getinfrastructureconfiguration-api-openapi.yml#/components/schemas/GetInfrastructureConfigurationResponse",
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string",
      "description": "The request ID that uniquely identifies this request."
    },
    "infrastructureConfiguration": {
      "$ref": "#/$defs/InfrastructureConfiguration"
    }
  },
  "$defs": {
    "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"
      ]
    },
    "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"
        }
      }
    },
    "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."
        }
      }
    },
    "Logging": {
      "type": "object",
      "properties": {
        "s3Logs": {
          "$ref": "#/$defs/S3Logs"
        }
      }
    },
    "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."
        }
      }
    },
    "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."
        }
      }
    }
  }
}