{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/LogGroupName"
 ],
 "definitions": {
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/LogGroupName"
 ],
 "properties": {
  "Arn": {
   "type": "string"
  },
  "BearerTokenAuthenticationEnabled": {
   "default": false,
   "type": "boolean"
  },
  "DataProtectionPolicy": {
   "format": "json",
   "type": [
    "object",
    "string"
   ]
  },
  "DeletionProtectionEnabled": {
   "default": false,
   "type": "boolean"
  },
  "FieldIndexPolicies": {
   "insertionOrder": false,
   "items": {
    "type": "object"
   },
   "type": "array",
   "uniqueItems": true
  },
  "KmsKeyId": {
   "anyOf": [
    {
     "format": "AWS::KMS::Key.Arn"
    },
    {
     "format": "AWS::KMS::Key.Id"
    },
    {
     "format": "AWS::KMS::Alias.AliasName"
    }
   ],
   "maxLength": 256,
   "minLength": 0,
   "pattern": "^arn:[a-z0-9-]+:kms:[a-z0-9-]+:\\d{12}:(key|alias)/.+\\Z",
   "type": "string"
  },
  "LogGroupClass": {
   "default": "STANDARD",
   "enum": [
    "STANDARD",
    "INFREQUENT_ACCESS",
    "DELIVERY"
   ],
   "type": "string"
  },
  "LogGroupName": {
   "format": "AWS::Logs::LogGroup.Name",
   "maxLength": 512,
   "minLength": 1,
   "pattern": "^[.\\-_/#A-Za-z0-9]{1,512}\\Z",
   "type": "string"
  },
  "ResourcePolicyDocument": {
   "type": "object"
  },
  "RetentionInDays": {
   "enum": [
    1,
    3,
    5,
    7,
    14,
    30,
    60,
    90,
    120,
    150,
    180,
    365,
    400,
    545,
    731,
    1096,
    1827,
    2192,
    2557,
    2922,
    3288,
    3653
   ],
   "type": "integer"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": true
  }
 },
 "readOnlyProperties": [
  "/properties/Arn"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-logs.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::Logs::LogGroup"
}
