{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-opsworks-instance.json",
  "title": "AWSOpsWorksInstanceProperties",
  "description": "Resource Type definition for AWS::OpsWorks::Instance. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-opsworks-instance.json",
    "sourceSha256": "404a4c494ed30236a235caf2cf90fbab97fccc554e422dd42468bab172cbbe46"
  },
  "type": "object",
  "properties": {
    "AvailabilityZone": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "AgentVersion": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "AmiId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Architecture": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "AutoScalingType": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "BlockDeviceMappings": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/BlockDeviceMapping"
      }
    },
    "EbsOptimized": {
      "type": "boolean"
    },
    "ElasticIps": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    },
    "Hostname": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "InstallUpdatesOnBoot": {
      "type": "boolean"
    },
    "InstanceType": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "LayerIds": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "type": "string"
      }
    },
    "Os": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "RootDeviceType": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "SshKeyName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "StackId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "SubnetId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Tenancy": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "TimeBasedAutoScaling": {
      "$ref": "#/$defs/TimeBasedAutoScaling"
    },
    "VirtualizationType": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Volumes": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    }
  },
  "typeName": "AWS::OpsWorks::Instance",
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "$defs": {
    "BlockDeviceMapping": {
      "type": "object",
      "title": "AWSOpsWorksInstanceBlockDeviceMappingDefinition",
      "properties": {
        "DeviceName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Ebs": {
          "$ref": "#/$defs/EbsBlockDevice"
        },
        "NoDevice": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "VirtualName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "TimeBasedAutoScaling": {
      "type": "object",
      "title": "AWSOpsWorksInstanceTimeBasedAutoScalingDefinition",
      "properties": {
        "Friday": {
          "type": "object",
          "patternProperties": {
            "[a-zA-Z0-9]+": {
              "type": "string"
            }
          }
        },
        "Monday": {
          "type": "object",
          "patternProperties": {
            "[a-zA-Z0-9]+": {
              "type": "string"
            }
          }
        },
        "Saturday": {
          "type": "object",
          "patternProperties": {
            "[a-zA-Z0-9]+": {
              "type": "string"
            }
          }
        },
        "Sunday": {
          "type": "object",
          "patternProperties": {
            "[a-zA-Z0-9]+": {
              "type": "string"
            }
          }
        },
        "Thursday": {
          "type": "object",
          "patternProperties": {
            "[a-zA-Z0-9]+": {
              "type": "string"
            }
          }
        },
        "Tuesday": {
          "type": "object",
          "patternProperties": {
            "[a-zA-Z0-9]+": {
              "type": "string"
            }
          }
        },
        "Wednesday": {
          "type": "object",
          "patternProperties": {
            "[a-zA-Z0-9]+": {
              "type": "string"
            }
          }
        }
      },
      "additionalProperties": false
    },
    "EbsBlockDevice": {
      "type": "object",
      "title": "AWSOpsWorksInstanceEbsBlockDeviceDefinition",
      "properties": {
        "DeleteOnTermination": {
          "type": "boolean"
        },
        "Iops": {
          "type": "integer"
        },
        "SnapshotId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "VolumeSize": {
          "type": "integer"
        },
        "VolumeType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    }
  },
  "createOnlyProperties": [
    "/properties/Tenancy",
    "/properties/BlockDeviceMappings",
    "/properties/VirtualizationType",
    "/properties/TimeBasedAutoScaling",
    "/properties/RootDeviceType",
    "/properties/AutoScalingType",
    "/properties/StackId",
    "/properties/AvailabilityZone",
    "/properties/SubnetId",
    "/properties/EbsOptimized"
  ],
  "additionalProperties": false,
  "required": [
    "LayerIds",
    "InstanceType",
    "StackId"
  ],
  "readOnlyProperties": [
    "/properties/PublicDnsName",
    "/properties/PrivateDnsName",
    "/properties/PublicIp",
    "/properties/PrivateIp",
    "/properties/Id"
  ]
}
