{
  "typeName" : "AWS::AWSExternalAnthropic::Workspace",
  "description" : "Resource type definition for AWS::AWSExternalAnthropic::Workspace",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "primaryIdentifier" : [ "/properties/Arn" ],
  "additionalIdentifiers" : [ [ "/properties/Id" ] ],
  "readOnlyProperties" : [ "/properties/Arn", "/properties/CreatedAt", "/properties/Id" ],
  "createOnlyProperties" : [ "/properties/DataResidency" ],
  "definitions" : {
    "Tag" : {
      "description" : "A key-value pair to associate with a resource.",
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string",
          "description" : "The key name of the tag.",
          "minLength" : 1,
          "maxLength" : 128
        },
        "Value" : {
          "type" : "string",
          "description" : "The value for the tag.",
          "minLength" : 0,
          "maxLength" : 256
        }
      },
      "required" : [ "Key", "Value" ],
      "additionalProperties" : false
    },
    "DataResidency" : {
      "description" : "Data residency configuration for the workspace. WorkspaceGeo is immutable after creation.",
      "type" : "object",
      "properties" : {
        "WorkspaceGeo" : {
          "description" : "Geographic region for workspace data storage. Immutable after creation. Defaults to 'us' if omitted.",
          "type" : "string"
        },
        "DefaultInferenceGeo" : {
          "description" : "Default inference geo applied when requests omit the parameter. Defaults to 'global' if omitted. Must be a member of AllowedInferenceGeos unless AllowedInferenceGeos is omitted.",
          "type" : "string"
        },
        "AllowedInferenceGeos" : {
          "description" : "Permitted inference geo values. Omit to allow all geos (the service default of 'unrestricted'); otherwise list specific geos.",
          "type" : "array",
          "items" : {
            "type" : "string"
          },
          "uniqueItems" : true,
          "insertionOrder" : false
        }
      },
      "additionalProperties" : false
    }
  },
  "properties" : {
    "Arn" : {
      "description" : "The ARN of the workspace.",
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 256,
      "pattern" : "^arn:[a-zA-Z0-9_\\-]+:aws-external-anthropic:[a-zA-Z0-9_\\-]+:[0-9]+:workspace/wrkspc_[A-Za-z0-9]+$"
    },
    "Id" : {
      "description" : "The unique identifier of the workspace.",
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 64,
      "pattern" : "^wrkspc_[A-Za-z0-9]+$"
    },
    "Name" : {
      "description" : "The name of the workspace.",
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 40
    },
    "CreatedAt" : {
      "description" : "The timestamp when the workspace was created.",
      "type" : "string",
      "format" : "date-time"
    },
    "DataResidency" : {
      "$ref" : "#/definitions/DataResidency"
    },
    "Tags" : {
      "description" : "An array of key-value pairs to apply to this resource.",
      "type" : "array",
      "uniqueItems" : true,
      "insertionOrder" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      },
      "minItems" : 0,
      "maxItems" : 200
    }
  },
  "additionalProperties" : false,
  "required" : [ "Name" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "aws-external-anthropic:CreateWorkspace", "aws-external-anthropic:GetWorkspace", "aws-external-anthropic:ListTagsForResource", "aws-external-anthropic:TagResource", "sts:GetWebIdentityToken", "sts:TagGetWebIdentityToken" ]
    },
    "read" : {
      "permissions" : [ "aws-external-anthropic:GetWorkspace", "aws-external-anthropic:ListTagsForResource", "sts:GetWebIdentityToken", "sts:TagGetWebIdentityToken" ]
    },
    "update" : {
      "permissions" : [ "aws-external-anthropic:UpdateWorkspace", "aws-external-anthropic:GetWorkspace", "aws-external-anthropic:ListTagsForResource", "aws-external-anthropic:TagResource", "aws-external-anthropic:UntagResource", "sts:GetWebIdentityToken", "sts:TagGetWebIdentityToken" ]
    },
    "delete" : {
      "permissions" : [ "aws-external-anthropic:ArchiveWorkspace", "aws-external-anthropic:GetWorkspace", "aws-external-anthropic:ListTagsForResource", "sts:GetWebIdentityToken", "sts:TagGetWebIdentityToken" ]
    },
    "list" : {
      "permissions" : [ "aws-external-anthropic:ListWorkspaces", "aws-external-anthropic:ListTagsForResource", "sts:GetWebIdentityToken", "sts:TagGetWebIdentityToken" ]
    }
  },
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "aws-external-anthropic:TagResource", "aws-external-anthropic:UntagResource", "aws-external-anthropic:ListTagsForResource" ]
  }
}