{
  "typeName" : "AWS::Backup::BackupSelection",
  "description" : "Resource Type definition for AWS::Backup::BackupSelection",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "properties" : {
    "Id" : {
      "type" : "string"
    },
    "BackupPlanId" : {
      "type" : "string"
    },
    "BackupSelection" : {
      "$ref" : "#/definitions/BackupSelectionResourceType"
    },
    "SelectionId" : {
      "type" : "string"
    }
  },
  "required" : [ "BackupSelection", "BackupPlanId" ],
  "createOnlyProperties" : [ "/properties/BackupSelection", "/properties/BackupPlanId" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "readOnlyProperties" : [ "/properties/SelectionId", "/properties/Id" ],
  "tagging" : {
    "taggable" : false,
    "tagOnCreate" : false,
    "tagUpdatable" : false,
    "cloudFormationSystemTags" : false
  },
  "additionalProperties" : false,
  "definitions" : {
    "BackupSelectionResourceType" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "IamRoleArn" : {
          "type" : "string"
        },
        "ListOfTags" : {
          "type" : "array",
          "uniqueItems" : false,
          "insertionOrder" : false,
          "items" : {
            "$ref" : "#/definitions/ConditionResourceType"
          }
        },
        "Resources" : {
          "type" : "array",
          "uniqueItems" : false,
          "insertionOrder" : false,
          "items" : {
            "type" : "string"
          }
        },
        "SelectionName" : {
          "type" : "string"
        },
        "NotResources" : {
          "type" : "array",
          "uniqueItems" : false,
          "insertionOrder" : false,
          "items" : {
            "type" : "string"
          }
        },
        "Conditions" : {
          "type" : "object",
          "additionalProperties" : false,
          "properties" : {
            "StringEquals" : {
              "type" : "array",
              "uniqueItems" : false,
              "insertionOrder" : false,
              "items" : {
                "$ref" : "#/definitions/ConditionParameter"
              }
            },
            "StringNotEquals" : {
              "type" : "array",
              "uniqueItems" : false,
              "insertionOrder" : false,
              "items" : {
                "$ref" : "#/definitions/ConditionParameter"
              }
            },
            "StringLike" : {
              "type" : "array",
              "uniqueItems" : false,
              "insertionOrder" : false,
              "items" : {
                "$ref" : "#/definitions/ConditionParameter"
              }
            },
            "StringNotLike" : {
              "type" : "array",
              "uniqueItems" : false,
              "insertionOrder" : false,
              "items" : {
                "$ref" : "#/definitions/ConditionParameter"
              }
            }
          }
        }
      },
      "required" : [ "SelectionName", "IamRoleArn" ]
    },
    "ConditionParameter" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ConditionKey" : {
          "type" : "string"
        },
        "ConditionValue" : {
          "type" : "string"
        }
      }
    },
    "ConditionResourceType" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ConditionKey" : {
          "type" : "string"
        },
        "ConditionValue" : {
          "type" : "string"
        },
        "ConditionType" : {
          "type" : "string"
        }
      },
      "required" : [ "ConditionValue", "ConditionKey", "ConditionType" ]
    }
  },
  "handlers" : {
    "delete" : {
      "permissions" : [ "backup:GetBackupSelection", "backup:DeleteBackupSelection" ]
    },
    "read" : {
      "permissions" : [ "backup:GetBackupSelection" ]
    },
    "create" : {
      "permissions" : [ "backup:CreateBackupSelection", "iam:GetRole", "iam:PassRole", "iam:CreateServiceLinkedRole" ]
    },
    "list" : {
      "permissions" : [ "backup:ListBackupSelections", "backup:ListBackupPlans" ]
    }
  }
}