Class BetaWorkspace

    • Constructor Detail

    • Method Detail

      • id

         final String id()

        ID of the Workspace.

      • archivedAt

         final Optional<OffsetDateTime> archivedAt()

        RFC 3339 datetime string indicating when the Workspace was archived, or null if the Workspace is not archived.

      • compartmentId

         final String compartmentId()

        Identifier for this Workspace's encryption compartment. When you configure an AWS KMS customer-managed encryption key (CMEK) that isn't bound to a user profile, reference this value in your KMS key-policy condition so the key is scoped to this compartment. On GCP and Azure, Anthropic enforces the compartment binding automatically; you do not need to reference this value in your key configuration. See the CMEK integration guide for the required key configuration; unless your organization is on Claude Platform on AWS, it includes a separate value used during key validation. On Claude Platform on AWS there is no separate validation value: your organization's own key is validated against this Workspace's own value when it is attached, so if its key policy uses the compartment condition, add this value to it before attaching the key.

      • displayColor

         final String displayColor()

        Hex color code representing the Workspace in the Anthropic Console.

      • externalKeyId

         final Optional<String> externalKeyId()

        ID of the customer-managed encryption key (CMEK) configuration to use for this Workspace. Setting this field requires CMEK to be enabled for your organization. When set, data stored for this Workspace is encrypted with the referenced key. Create key configurations with the External Keys API. On Claude Platform on AWS the value for an AWS KMS key is the key's ARN, and your organization's own key must be a single-Region key in the same Region as the Workspace. If that key is outside the Workspace's AWS account, it can be attached only by updating an active Workspace. On that platform the key is validated against this Workspace when it is attached, so a key-policy problem is reported as an error on this request. This field is write-once: once a key is attached to a Workspace it cannot be detached or replaced. To rotate key material, rotate the underlying key on your cloud KMS; the external_key_id stays the same.

      • tags

         final BetaWorkspace.Tags tags()

        User-defined tags as string key-value pairs. Keys may not begin with anthropic.

      • userProfileId

         final Optional<String> userProfileId()

        ID of the user profile attached to the Workspace, or null if it has none. Every inference request through a Workspace that has a user profile must name that profile.

      • _type

         final JsonValue _type()

        Object type.

        For Workspaces, this is always "workspace".

        Expected to always return the following:

        JsonValue.from("workspace")

        However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).

      • _id

         final JsonField<String> _id()

        Returns the raw JSON value of id.

        Unlike id, this method doesn't throw if the JSON field has an unexpected type.

      • _archivedAt

         final JsonField<OffsetDateTime> _archivedAt()

        Returns the raw JSON value of archivedAt.

        Unlike archivedAt, this method doesn't throw if the JSON field has an unexpected type.

      • _compartmentId

         final JsonField<String> _compartmentId()

        Returns the raw JSON value of compartmentId.

        Unlike compartmentId, this method doesn't throw if the JSON field has an unexpected type.

      • _createdAt

         final JsonField<OffsetDateTime> _createdAt()

        Returns the raw JSON value of createdAt.

        Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.

      • _dataResidency

         final JsonField<BetaDataResidency> _dataResidency()

        Returns the raw JSON value of dataResidency.

        Unlike dataResidency, this method doesn't throw if the JSON field has an unexpected type.

      • _displayColor

         final JsonField<String> _displayColor()

        Returns the raw JSON value of displayColor.

        Unlike displayColor, this method doesn't throw if the JSON field has an unexpected type.

      • _externalKeyId

         final JsonField<String> _externalKeyId()

        Returns the raw JSON value of externalKeyId.

        Unlike externalKeyId, this method doesn't throw if the JSON field has an unexpected type.

      • _name

         final JsonField<String> _name()

        Returns the raw JSON value of name.

        Unlike name, this method doesn't throw if the JSON field has an unexpected type.

      • _tags

         final JsonField<BetaWorkspace.Tags> _tags()

        Returns the raw JSON value of tags.

        Unlike tags, this method doesn't throw if the JSON field has an unexpected type.

      • _userProfileId

         final JsonField<String> _userProfileId()

        Returns the raw JSON value of userProfileId.

        Unlike userProfileId, this method doesn't throw if the JSON field has an unexpected type.

      • validate

         final BetaWorkspace validate()

        Validates that the types of all values in this object match their expected types recursively.

        This method is not forwards compatible with new types from the API for existing fields.

      • builder

         final static BetaWorkspace.Builder builder()

        Returns a mutable builder for constructing an instance of BetaWorkspace.

        The following fields are required:

        .id()
        .archivedAt()
        .compartmentId()
        .createdAt()
        .dataResidency()
        .displayColor()
        .externalKeyId()
        .name()
        .tags()
        .userProfileId()