{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/Name"
 ],
 "definitions": {
  "InstanceMetadataOptions": {
   "additionalProperties": false,
   "properties": {
    "HttpPutResponseHopLimit": {
     "maximum": 64,
     "minimum": 1,
     "type": "integer"
    },
    "HttpTokens": {
     "enum": [
      "required",
      "optional"
     ],
     "type": "string"
    }
   },
   "type": "object"
  },
  "Logging": {
   "additionalProperties": false,
   "properties": {
    "S3Logs": {
     "$ref": "#/definitions/S3Logs"
    }
   },
   "type": "object"
  },
  "Placement": {
   "additionalProperties": false,
   "properties": {
    "AvailabilityZone": {
     "maxLength": 1024,
     "minLength": 1,
     "type": "string"
    },
    "HostId": {
     "maxLength": 1024,
     "minLength": 1,
     "type": "string"
    },
    "HostResourceGroupArn": {
     "maxLength": 1024,
     "minLength": 1,
     "type": "string"
    },
    "Tenancy": {
     "enum": [
      "default",
      "dedicated",
      "host"
     ],
     "type": "string"
    }
   },
   "type": "object"
  },
  "S3Logs": {
   "additionalProperties": false,
   "properties": {
    "S3BucketName": {
     "maxLength": 1024,
     "minLength": 1,
     "type": "string"
    },
    "S3KeyPrefix": {
     "maxLength": 1024,
     "minLength": 1,
     "type": "string"
    }
   },
   "type": "object"
  },
  "TagMap": {
   "additionalProperties": false,
   "properties": {
    "TagKey": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "TagValue": {
     "maxLength": 256,
     "minLength": 1,
     "type": "string"
    }
   },
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/Arn"
 ],
 "properties": {
  "Arn": {
   "type": "string"
  },
  "Description": {
   "maxLength": 1024,
   "minLength": 1,
   "type": "string"
  },
  "InstanceMetadataOptions": {
   "$ref": "#/definitions/InstanceMetadataOptions"
  },
  "InstanceProfileName": {
   "maxLength": 256,
   "minLength": 1,
   "pattern": "^[\\w+=,.@-]+$",
   "type": "string"
  },
  "InstanceTypes": {
   "insertionOrder": true,
   "items": {
    "type": "string"
   },
   "type": "array"
  },
  "KeyPair": {
   "maxLength": 1024,
   "minLength": 1,
   "type": "string"
  },
  "Logging": {
   "$ref": "#/definitions/Logging"
  },
  "Name": {
   "pattern": "^[-_A-Za-z-0-9][-_A-Za-z0-9 ]{1,126}[-_A-Za-z-0-9]$",
   "type": "string"
  },
  "Placement": {
   "$ref": "#/definitions/Placement"
  },
  "ResourceTags": {
   "additionalProperties": false,
   "patternProperties": {
    ".{1,}": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "SecurityGroupIds": {
   "format": "AWS::EC2::SecurityGroup.Ids",
   "insertionOrder": false,
   "items": {
    "format": "AWS::EC2::SecurityGroup.Id",
    "maxLength": 1024,
    "minLength": 1,
    "type": "string"
   },
   "type": "array"
  },
  "SnsTopicArn": {
   "pattern": "^arn:aws[^:]*:sns:[^:]+:[0-9]{12}:[a-zA-Z0-9-_]{1,256}$",
   "type": "string"
  },
  "SubnetId": {
   "format": "AWS::EC2::Subnet.Id",
   "maxLength": 1024,
   "minLength": 1,
   "type": "string"
  },
  "Tags": {
   "additionalProperties": false,
   "patternProperties": {
    ".{1,}": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "TerminateInstanceOnFailure": {
   "type": "boolean"
  }
 },
 "readOnlyProperties": [
  "/properties/Arn"
 ],
 "required": [
  "Name",
  "InstanceProfileName"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-imagebuilder.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::ImageBuilder::InfrastructureConfiguration"
}
