{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/OrganizationConfigRuleName"
 ],
 "definitions": {
  "OrganizationCustomPolicyRuleMetadata": {
   "additionalProperties": false,
   "properties": {
    "DebugLogDeliveryAccounts": {
     "items": {
      "type": "string"
     },
     "type": "array",
     "uniqueItems": false
    },
    "Description": {
     "type": "string"
    },
    "InputParameters": {
     "type": "string"
    },
    "MaximumExecutionFrequency": {
     "type": "string"
    },
    "OrganizationConfigRuleTriggerTypes": {
     "items": {
      "type": "string"
     },
     "type": "array",
     "uniqueItems": false
    },
    "PolicyText": {
     "type": "string"
    },
    "ResourceIdScope": {
     "type": "string"
    },
    "ResourceTypesScope": {
     "items": {
      "type": "string"
     },
     "type": "array",
     "uniqueItems": false
    },
    "Runtime": {
     "type": "string"
    },
    "TagKeyScope": {
     "type": "string"
    },
    "TagValueScope": {
     "type": "string"
    }
   },
   "required": [
    "Runtime",
    "PolicyText"
   ],
   "type": "object"
  },
  "OrganizationCustomRuleMetadata": {
   "additionalProperties": false,
   "properties": {
    "Description": {
     "type": "string"
    },
    "InputParameters": {
     "type": "string"
    },
    "LambdaFunctionArn": {
     "format": "AWS::Lambda::Function.Arn",
     "type": "string"
    },
    "MaximumExecutionFrequency": {
     "type": "string"
    },
    "OrganizationConfigRuleTriggerTypes": {
     "items": {
      "type": "string"
     },
     "type": "array",
     "uniqueItems": false
    },
    "ResourceIdScope": {
     "type": "string"
    },
    "ResourceTypesScope": {
     "items": {
      "type": "string"
     },
     "type": "array",
     "uniqueItems": false
    },
    "TagKeyScope": {
     "type": "string"
    },
    "TagValueScope": {
     "type": "string"
    }
   },
   "required": [
    "LambdaFunctionArn",
    "OrganizationConfigRuleTriggerTypes"
   ],
   "type": "object"
  },
  "OrganizationManagedRuleMetadata": {
   "additionalProperties": false,
   "properties": {
    "Description": {
     "type": "string"
    },
    "InputParameters": {
     "type": "string"
    },
    "MaximumExecutionFrequency": {
     "type": "string"
    },
    "ResourceIdScope": {
     "type": "string"
    },
    "ResourceTypesScope": {
     "items": {
      "type": "string"
     },
     "type": "array",
     "uniqueItems": false
    },
    "RuleIdentifier": {
     "type": "string"
    },
    "TagKeyScope": {
     "type": "string"
    },
    "TagValueScope": {
     "type": "string"
    }
   },
   "required": [
    "RuleIdentifier"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/Id"
 ],
 "properties": {
  "ExcludedAccounts": {
   "items": {
    "type": "string"
   },
   "type": "array",
   "uniqueItems": false
  },
  "Id": {
   "type": "string"
  },
  "OrganizationConfigRuleName": {
   "type": "string"
  },
  "OrganizationCustomPolicyRuleMetadata": {
   "$ref": "#/definitions/OrganizationCustomPolicyRuleMetadata"
  },
  "OrganizationCustomRuleMetadata": {
   "$ref": "#/definitions/OrganizationCustomRuleMetadata"
  },
  "OrganizationManagedRuleMetadata": {
   "$ref": "#/definitions/OrganizationManagedRuleMetadata"
  }
 },
 "readOnlyProperties": [
  "/properties/Id"
 ],
 "required": [
  "OrganizationConfigRuleName"
 ],
 "typeName": "AWS::Config::OrganizationConfigRule"
}
