{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-config-configrule.json",
  "title": "AWSConfigConfigRuleProperties",
  "description": "Resource Type definition for AWS::Config::ConfigRule. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-config-configrule.json",
    "sourceSha256": "f3154d42cf957689e94da339e9b8fc4e1ecb7d50c1bf84305c51ba1b46f5fb39"
  },
  "type": "object",
  "properties": {
    "Description": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Scope": {
      "$ref": "#/$defs/Scope"
    },
    "ComplianceType": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ConfigRuleName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "MaximumExecutionFrequency": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Source": {
      "$ref": "#/$defs/Source"
    },
    "InputParameters": {
      "type": "object"
    }
  },
  "typeName": "AWS::Config::ConfigRule",
  "readOnlyProperties": [
    "/properties/ConfigRuleId",
    "/properties/Compliance.Type",
    "/properties/Arn"
  ],
  "$defs": {
    "Scope": {
      "type": "object",
      "title": "AWSConfigConfigRuleScopeDefinition",
      "properties": {
        "TagKey": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ComplianceResourceTypes": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "TagValue": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ComplianceResourceId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "CustomPolicyDetails": {
      "type": "object",
      "title": "AWSConfigConfigRuleCustomPolicyDetailsDefinition",
      "properties": {
        "EnableDebugLogDelivery": {
          "type": "boolean"
        },
        "PolicyText": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "PolicyRuntime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "SourceDetail": {
      "type": "object",
      "title": "AWSConfigConfigRuleSourceDetailDefinition",
      "properties": {
        "EventSource": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "MaximumExecutionFrequency": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "MessageType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "EventSource",
        "MessageType"
      ],
      "additionalProperties": false
    },
    "Source": {
      "type": "object",
      "title": "AWSConfigConfigRuleSourceDefinition",
      "properties": {
        "CustomPolicyDetails": {
          "$ref": "#/$defs/CustomPolicyDetails"
        },
        "SourceIdentifier": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Owner": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SourceDetails": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/SourceDetail"
          }
        }
      },
      "required": [
        "Owner"
      ],
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/ConfigRuleId"
  ],
  "additionalProperties": false,
  "required": [
    "Source"
  ],
  "createOnlyProperties": [
    "/properties/ConfigRuleName"
  ]
}
