{
  "typeName" : "AWS::Route53GlobalResolver::AccessToken",
  "description" : "Resource schema for AWS::Route53GlobalResolver::AccessToken",
  "primaryIdentifier" : [ "/properties/AccessTokenId" ],
  "additionalIdentifiers" : [ [ "/properties/Arn" ] ],
  "readOnlyProperties" : [ "/properties/Arn", "/properties/AccessTokenId", "/properties/CreatedAt", "/properties/UpdatedAt", "/properties/Status", "/properties/Value", "/properties/GlobalResolverId" ],
  "createOnlyProperties" : [ "/properties/DnsViewId", "/properties/ExpiresAt", "/properties/ClientToken" ],
  "writeOnlyProperties" : [ "/properties/ClientToken" ],
  "required" : [ "DnsViewId" ],
  "additionalProperties" : false,
  "definitions" : {
    "ResourceName" : {
      "type" : "string",
      "maxLength" : 64,
      "minLength" : 1,
      "pattern" : "(?!^[0-9]+$)([a-zA-Z0-9-_' ']+)"
    },
    "TokenStatus" : {
      "type" : "string",
      "enum" : [ "CREATING", "OPERATIONAL", "DELETING" ]
    },
    "AccessToken" : {
      "type" : "string",
      "maxLength" : 100,
      "minLength" : 0
    },
    "Tag" : {
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string",
          "maxLength" : 128,
          "minLength" : 1
        },
        "Value" : {
          "type" : "string",
          "maxLength" : 256,
          "minLength" : 0
        }
      },
      "required" : [ "Key", "Value" ],
      "additionalProperties" : false
    }
  },
  "properties" : {
    "AccessTokenId" : {
      "type" : "string",
      "maxLength" : 64,
      "minLength" : 1
    },
    "Arn" : {
      "type" : "string",
      "maxLength" : 2048,
      "minLength" : 1
    },
    "Name" : {
      "$ref" : "#/definitions/ResourceName"
    },
    "DnsViewId" : {
      "type" : "string",
      "maxLength" : 64,
      "minLength" : 1
    },
    "GlobalResolverId" : {
      "type" : "string",
      "maxLength" : 64,
      "minLength" : 1
    },
    "ExpiresAt" : {
      "type" : "string"
    },
    "Status" : {
      "$ref" : "#/definitions/TokenStatus"
    },
    "Value" : {
      "$ref" : "#/definitions/AccessToken"
    },
    "CreatedAt" : {
      "type" : "string"
    },
    "UpdatedAt" : {
      "type" : "string"
    },
    "ClientToken" : {
      "type" : "string",
      "maxLength" : 256,
      "minLength" : 1
    },
    "Tags" : {
      "type" : "array",
      "items" : {
        "$ref" : "#/definitions/Tag"
      },
      "maxItems" : 50
    }
  },
  "handlers" : {
    "create" : {
      "permissions" : [ "route53globalresolver:CreateAccessToken", "route53globalresolver:GetAccessToken", "route53globalresolver:TagResource", "route53globalresolver:UntagResource", "route53globalresolver:ListTagsForResource" ]
    },
    "read" : {
      "permissions" : [ "route53globalresolver:GetAccessToken", "route53globalresolver:ListTagsForResource" ]
    },
    "update" : {
      "permissions" : [ "route53globalresolver:UpdateAccessToken", "route53globalresolver:GetAccessToken", "route53globalresolver:TagResource", "route53globalresolver:UntagResource", "route53globalresolver:ListTagsForResource" ]
    },
    "delete" : {
      "permissions" : [ "route53globalresolver:DeleteAccessToken", "route53globalresolver:GetAccessToken" ]
    },
    "list" : {
      "permissions" : [ "route53globalresolver:ListAccessTokens" ],
      "handlerSchema" : {
        "properties" : {
          "DnsViewId" : {
            "$ref" : "resource-schema.json#/properties/DnsViewId"
          }
        },
        "required" : [ "DnsViewId" ]
      }
    }
  },
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "route53globalresolver:TagResource", "route53globalresolver:UntagResource", "route53globalresolver:ListTagsForResource" ]
  }
}