{
  "typeName" : "AWS::GuardDuty::IPSet",
  "description" : "Resource Type definition for AWS::GuardDuty::IPSet",
  "additionalProperties" : false,
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "guardduty:TagResource", "guardduty:UntagResource", "guardduty:ListTagsForResource" ]
  },
  "properties" : {
    "Id" : {
      "type" : "string"
    },
    "Format" : {
      "type" : "string"
    },
    "Activate" : {
      "type" : "boolean"
    },
    "DetectorId" : {
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 300
    },
    "Name" : {
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 300
    },
    "Location" : {
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 300
    },
    "ExpectedBucketOwner" : {
      "type" : "string"
    },
    "Tags" : {
      "type" : "array",
      "insertionOrder" : false,
      "items" : {
        "$ref" : "#/definitions/TagItem"
      }
    }
  },
  "definitions" : {
    "TagItem" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Key" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 128
        },
        "Value" : {
          "type" : "string",
          "minLength" : 0,
          "maxLength" : 256
        }
      },
      "required" : [ "Key", "Value" ]
    }
  },
  "required" : [ "Format", "Location" ],
  "createOnlyProperties" : [ "/properties/Format", "/properties/DetectorId" ],
  "writeOnlyProperties" : [ "/properties/Activate" ],
  "primaryIdentifier" : [ "/properties/Id", "/properties/DetectorId" ],
  "readOnlyProperties" : [ "/properties/Id" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "guardduty:CreateIPSet", "guardduty:GetIPSet", "guardduty:TagResource", "iam:PutRolePolicy" ]
    },
    "read" : {
      "permissions" : [ "guardduty:GetIPSet" ]
    },
    "delete" : {
      "permissions" : [ "guardduty:GetDetector", "guardduty:ListDetectors", "guardduty:ListIPSets", "guardduty:GetIPSet", "guardduty:DeleteIPSet", "iam:DeleteRolePolicy" ]
    },
    "update" : {
      "permissions" : [ "guardduty:UpdateIPSet", "guardduty:GetIPSet", "guardduty:ListIPSets", "iam:PutRolePolicy", "guardduty:TagResource", "guardduty:UntagResource" ]
    },
    "list" : {
      "handlerSchema" : {
        "properties" : {
          "DetectorId" : {
            "type" : "string"
          }
        }
      },
      "permissions" : [ "guardduty:ListIPSets" ]
    }
  }
}