{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-imagebuilder-infrastructureconfiguration.json",
  "title": "AWSImageBuilderInfrastructureConfigurationProperties",
  "description": "Resource schema for AWS::ImageBuilder::InfrastructureConfiguration. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-imagebuilder.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-imagebuilder-infrastructureconfiguration.json",
    "sourceSha256": "df22fd3af22953e45171d102518296151726c02226cde04d24466bfefcd0b36f"
  },
  "type": "object",
  "properties": {
    "Name": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the infrastructure configuration."
    },
    "Description": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The description of the infrastructure configuration."
    },
    "InstanceTypes": {
      "description": "The instance types of the infrastructure configuration.",
      "type": "array",
      "insertionOrder": true,
      "items": {
        "type": "string"
      }
    },
    "SecurityGroupIds": {
      "description": "The security group IDs of the infrastructure configuration.",
      "type": "array",
      "insertionOrder": false,
      "items": {
        "type": "string"
      }
    },
    "Logging": {
      "description": "The logging configuration of the infrastructure configuration.",
      "$ref": "#/$defs/Logging"
    },
    "SubnetId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The subnet ID of the infrastructure configuration."
    },
    "KeyPair": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The EC2 key pair of the infrastructure configuration.."
    },
    "TerminateInstanceOnFailure": {
      "description": "The terminate instance on failure configuration of the infrastructure configuration.",
      "type": "boolean"
    },
    "InstanceProfileName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The instance profile of the infrastructure configuration."
    },
    "InstanceMetadataOptions": {
      "description": "The instance metadata option settings for the infrastructure configuration.",
      "$ref": "#/$defs/InstanceMetadataOptions"
    },
    "SnsTopicArn": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The SNS Topic Amazon Resource Name (ARN) of the infrastructure configuration."
    },
    "ResourceTags": {
      "description": "The tags attached to the resource created by Image Builder.",
      "type": "object",
      "additionalProperties": false,
      "patternProperties": {
        ".{1,}": {
          "type": "string"
        }
      }
    },
    "Tags": {
      "description": "The tags associated with the component.",
      "type": "object",
      "additionalProperties": false,
      "patternProperties": {
        ".{1,}": {
          "type": "string"
        }
      }
    }
  },
  "typeName": "AWS::ImageBuilder::InfrastructureConfiguration",
  "$defs": {
    "TagMap": {
      "description": "TagMap",
      "type": "object",
      "title": "AWSImageBuilderInfrastructureConfigurationTagMapDefinition",
      "properties": {
        "TagKey": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "TagKey"
        },
        "TagValue": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "TagValue"
        }
      },
      "additionalProperties": false
    },
    "Logging": {
      "description": "The logging configuration of the infrastructure configuration.",
      "type": "object",
      "title": "AWSImageBuilderInfrastructureConfigurationLoggingDefinition",
      "properties": {
        "S3Logs": {
          "$ref": "#/$defs/S3Logs"
        }
      },
      "additionalProperties": false
    },
    "InstanceMetadataOptions": {
      "description": "The instance metadata option settings for the infrastructure configuration.",
      "type": "object",
      "title": "AWSImageBuilderInfrastructureConfigurationInstanceMetadataOptionsDefinition",
      "properties": {
        "HttpPutResponseHopLimit": {
          "description": "Limit the number of hops that an instance metadata request can traverse to reach its destination.",
          "type": "integer"
        },
        "HttpTokens": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "required",
                "optional"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Indicates whether a signed token header is required for instance metadata retrieval requests. The values affect the response as follows: "
        }
      },
      "additionalProperties": false
    },
    "S3Logs": {
      "description": "The S3 path in which to store the logs.",
      "type": "object",
      "title": "AWSImageBuilderInfrastructureConfigurationS3LogsDefinition",
      "properties": {
        "S3BucketName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "S3BucketName"
        },
        "S3KeyPrefix": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "S3KeyPrefix"
        }
      },
      "additionalProperties": false
    }
  },
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-imagebuilder.git",
  "tagging": {
    "taggable": false
  },
  "additionalProperties": false,
  "required": [
    "Name",
    "InstanceProfileName"
  ],
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "readOnlyProperties": [
    "/properties/Arn"
  ],
  "createOnlyProperties": [
    "/properties/Name"
  ]
}
