{
  "typeName" : "AWS::ManagedBlockchain::Accessor",
  "description" : "Definition of AWS::ManagedBlockchain::com.amazonaws.taiga.webservice.api#Accessor Resource Type",
  "definitions" : {
    "AccessorStatus" : {
      "type" : "string",
      "enum" : [ "AVAILABLE", "PENDING_DELETION", "DELETED" ]
    },
    "AccessorType" : {
      "type" : "string",
      "enum" : [ "BILLING_TOKEN" ]
    },
    "Tag" : {
      "description" : "A key-value pair to associate with a resource.",
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string",
          "description" : "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ",
          "minLength" : 1,
          "maxLength" : 127
        },
        "Value" : {
          "type" : "string",
          "description" : "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ",
          "minLength" : 1,
          "maxLength" : 255
        }
      },
      "required" : [ "Key", "Value" ],
      "additionalProperties" : false
    }
  },
  "properties" : {
    "Arn" : {
      "type" : "string",
      "maxLength" : 1011,
      "minLength" : 1,
      "pattern" : "^arn:.+:.+:.+:.+:.+$"
    },
    "BillingToken" : {
      "type" : "string",
      "maxLength" : 42,
      "minLength" : 42
    },
    "CreationDate" : {
      "type" : "string"
    },
    "Id" : {
      "type" : "string",
      "maxLength" : 32,
      "minLength" : 1
    },
    "Status" : {
      "$ref" : "#/definitions/AccessorStatus"
    },
    "AccessorType" : {
      "$ref" : "#/definitions/AccessorType"
    },
    "Tags" : {
      "type" : "array",
      "maxItems" : 50,
      "insertionOrder" : false,
      "uniqueItems" : true,
      "description" : "An array of key-value pairs to apply to this resource.",
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    }
  },
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true
  },
  "required" : [ "AccessorType" ],
  "readOnlyProperties" : [ "/properties/Arn", "/properties/Id", "/properties/BillingToken", "/properties/CreationDate", "/properties/Status" ],
  "createOnlyProperties" : [ "/properties/AccessorType" ],
  "writeOnlyProperties" : [ "/properties/Tags" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "additionalIdentifiers" : [ [ "/properties/Arn" ] ],
  "additionalProperties" : false,
  "handlers" : {
    "create" : {
      "permissions" : [ "managedblockchain:CreateAccessor", "managedblockchain:TagResource" ]
    },
    "read" : {
      "permissions" : [ "managedblockchain:GetAccessor" ]
    },
    "update" : {
      "permissions" : [ "managedblockchain:CreateAccessor", "managedblockchain:TagResource", "managedblockchain:UntagResource" ]
    },
    "delete" : {
      "permissions" : [ "managedblockchain:DeleteAccessor" ]
    },
    "list" : {
      "permissions" : [ "managedblockchain:ListAccessors" ]
    }
  }
}