{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-opsworks-layer.json",
  "title": "AWSOpsWorksLayerProperties",
  "description": "Resource Type definition for AWS::OpsWorks::Layer. 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-layer.json",
    "sourceSha256": "50ddb304204e44fc63535fc1a139deb04ff62678f30ccc06f75c81b467816728"
  },
  "type": "object",
  "properties": {
    "Attributes": {
      "type": "object",
      "patternProperties": {
        "[a-zA-Z0-9]+": {
          "type": "string"
        }
      }
    },
    "AutoAssignElasticIps": {
      "type": "boolean"
    },
    "AutoAssignPublicIps": {
      "type": "boolean"
    },
    "CustomInstanceProfileArn": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "CustomJson": {
      "type": "object"
    },
    "CustomRecipes": {
      "$ref": "#/$defs/Recipes"
    },
    "CustomSecurityGroupIds": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "type": "string"
      }
    },
    "EnableAutoHealing": {
      "type": "boolean"
    },
    "InstallUpdatesOnBoot": {
      "type": "boolean"
    },
    "LifecycleEventConfiguration": {
      "$ref": "#/$defs/LifecycleEventConfiguration"
    },
    "LoadBasedAutoScaling": {
      "$ref": "#/$defs/LoadBasedAutoScaling"
    },
    "Name": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Packages": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "type": "string"
      }
    },
    "Shortname": {
      "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"
        }
      ]
    },
    "Tags": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "Type": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "UseEbsOptimizedInstances": {
      "type": "boolean"
    },
    "VolumeConfigurations": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/VolumeConfiguration"
      }
    }
  },
  "typeName": "AWS::OpsWorks::Layer",
  "readOnlyProperties": [
    "/properties/Id"
  ],
  "$defs": {
    "LifecycleEventConfiguration": {
      "type": "object",
      "title": "AWSOpsWorksLayerLifecycleEventConfigurationDefinition",
      "properties": {
        "ShutdownEventConfiguration": {
          "$ref": "#/$defs/ShutdownEventConfiguration"
        }
      },
      "additionalProperties": false
    },
    "LoadBasedAutoScaling": {
      "type": "object",
      "title": "AWSOpsWorksLayerLoadBasedAutoScalingDefinition",
      "properties": {
        "DownScaling": {
          "$ref": "#/$defs/AutoScalingThresholds"
        },
        "Enable": {
          "type": "boolean"
        },
        "UpScaling": {
          "$ref": "#/$defs/AutoScalingThresholds"
        }
      },
      "additionalProperties": false
    },
    "Recipes": {
      "type": "object",
      "title": "AWSOpsWorksLayerRecipesDefinition",
      "properties": {
        "Configure": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "Deploy": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "Setup": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "Shutdown": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "Undeploy": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "VolumeConfiguration": {
      "type": "object",
      "title": "AWSOpsWorksLayerVolumeConfigurationDefinition",
      "properties": {
        "Encrypted": {
          "type": "boolean"
        },
        "Iops": {
          "type": "integer"
        },
        "MountPoint": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "NumberOfDisks": {
          "type": "integer"
        },
        "RaidLevel": {
          "type": "integer"
        },
        "Size": {
          "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
    },
    "Tag": {
      "type": "object",
      "title": "AWSOpsWorksLayerTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    },
    "ShutdownEventConfiguration": {
      "type": "object",
      "title": "AWSOpsWorksLayerShutdownEventConfigurationDefinition",
      "properties": {
        "DelayUntilElbConnectionsDrained": {
          "type": "boolean"
        },
        "ExecutionTimeout": {
          "type": "integer"
        }
      },
      "additionalProperties": false
    },
    "AutoScalingThresholds": {
      "type": "object",
      "title": "AWSOpsWorksLayerAutoScalingThresholdsDefinition",
      "properties": {
        "CpuThreshold": {
          "type": "number"
        },
        "IgnoreMetricsTime": {
          "type": "integer"
        },
        "InstanceCount": {
          "type": "integer"
        },
        "LoadThreshold": {
          "type": "number"
        },
        "MemoryThreshold": {
          "type": "number"
        },
        "ThresholdsWaitTime": {
          "type": "integer"
        }
      },
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "required": [
    "EnableAutoHealing",
    "Name",
    "Type",
    "AutoAssignElasticIps",
    "Shortname",
    "AutoAssignPublicIps",
    "StackId"
  ],
  "createOnlyProperties": [
    "/properties/Type",
    "/properties/StackId"
  ]
}
