{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/MembershipIdentifier",
  "/properties/PrivacyBudgetType",
  "/properties/AutoRefresh",
  "/properties/Parameters/ResourceArn"
 ],
 "definitions": {
  "BudgetParameter": {
   "additionalProperties": false,
   "properties": {
    "AutoRefresh": {
     "enum": [
      "ENABLED",
      "DISABLED"
     ],
     "type": "string"
    },
    "Budget": {
     "minimum": 0,
     "type": "integer"
    },
    "Type": {
     "enum": [
      "CALENDAR_DAY",
      "CALENDAR_MONTH",
      "CALENDAR_WEEK",
      "LIFETIME"
     ],
     "type": "string"
    }
   },
   "required": [
    "Type",
    "Budget"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "Value",
    "Key"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/PrivacyBudgetTemplateIdentifier",
  "/properties/MembershipIdentifier"
 ],
 "properties": {
  "Arn": {
   "maxLength": 200,
   "type": "string"
  },
  "AutoRefresh": {
   "enum": [
    "CALENDAR_MONTH",
    "NONE"
   ],
   "type": "string"
  },
  "CollaborationArn": {
   "maxLength": 100,
   "type": "string"
  },
  "CollaborationIdentifier": {
   "maxLength": 36,
   "minLength": 36,
   "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
   "type": "string"
  },
  "MembershipArn": {
   "maxLength": 100,
   "type": "string"
  },
  "MembershipIdentifier": {
   "maxLength": 36,
   "minLength": 36,
   "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
   "type": "string"
  },
  "Parameters": {
   "additionalProperties": false,
   "properties": {
    "BudgetParameters": {
     "insertionOrder": false,
     "items": {
      "$ref": "#/definitions/BudgetParameter"
     },
     "maxItems": 2,
     "minItems": 1,
     "type": "array"
    },
    "Epsilon": {
     "maximum": 20,
     "minimum": 1,
     "type": "integer"
    },
    "ResourceArn": {
     "maxLength": 200,
     "type": "string"
    },
    "UsersNoisePerQuery": {
     "maximum": 100,
     "minimum": 10,
     "type": "integer"
    }
   },
   "type": "object"
  },
  "PrivacyBudgetTemplateIdentifier": {
   "maxLength": 36,
   "minLength": 36,
   "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
   "type": "string"
  },
  "PrivacyBudgetType": {
   "enum": [
    "DIFFERENTIAL_PRIVACY",
    "ACCESS_BUDGET"
   ],
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array"
  }
 },
 "readOnlyProperties": [
  "/properties/CollaborationArn",
  "/properties/CollaborationIdentifier",
  "/properties/PrivacyBudgetTemplateIdentifier",
  "/properties/Arn",
  "/properties/MembershipArn"
 ],
 "replacementStrategy": "delete_then_create",
 "required": [
  "AutoRefresh",
  "PrivacyBudgetType",
  "Parameters",
  "MembershipIdentifier"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-cleanrooms",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::CleanRooms::PrivacyBudgetTemplate"
}
