Class ExternalKey
-
- All Implemented Interfaces:
public final class ExternalKeyCMEK external key config belonging to the caller's organization.
Configs are organization-scoped. Workspaces attach to a config; once any workspace references it, the provider fields become effectively immutable (existing encrypted data needs the config for decrypt).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classExternalKey.BuilderA builder for ExternalKey.
public final classExternalKey.AttachmentWhether any workspace uses this config to encrypt its data — counting live and archived workspaces (an archived workspace's data remains encrypted under the config), excluding deleted ones. Only an attached config is used by the encryption path; an
unattachedconfig is inert and can be deleted.public final classExternalKey.ProviderConfigKMS provider identity and auth coordinates.
-
Method Summary
Modifier and Type Method Description final Stringid()Identifier of the external key config: a tagged ID prefixed ekey_, or, on Claude Platform on AWS, an AWS KMS key's ARN.final ExternalKey.Attachmentattachment()Whether any workspace uses this config to encrypt its data — counting live and archived workspaces (an archived workspace's data remains encrypted under the config), excluding deleted ones. final OffsetDateTimecreatedAt()final Optional<String>displayName()Human-friendly display name. final Stringgeo()Data residency geo. final ExternalKey.ProviderConfigproviderConfig()KMS provider identity and auth coordinates. final OffsetDateTimeupdatedAt()final Optional<String>userProfileId()ID of the user profile the key is bound to, or null if the key is not bound to one. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("external_key")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<ExternalKey.Attachment>_attachment()Returns the raw JSON value of attachment. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_displayName()Returns the raw JSON value of displayName. final JsonField<String>_geo()Returns the raw JSON value of geo. final JsonField<ExternalKey.ProviderConfig>_providerConfig()Returns the raw JSON value of providerConfig. final JsonField<OffsetDateTime>_updatedAt()Returns the raw JSON value of updatedAt. final JsonField<String>_userProfileId()Returns the raw JSON value of userProfileId. final Map<String, JsonValue>_additionalProperties()final ExternalKey.BuildertoBuilder()final ExternalKeyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ExternalKey.Builderbuilder()Returns a mutable builder for constructing an instance of ExternalKey. -
-
Method Detail
-
id
final String id()
Identifier of the external key config: a tagged ID prefixed
ekey_, or, on Claude Platform on AWS, an AWS KMS key's ARN.
-
attachment
final ExternalKey.Attachment attachment()
Whether any workspace uses this config to encrypt its data — counting live and archived workspaces (an archived workspace's data remains encrypted under the config), excluding deleted ones. Only an attached config is used by the encryption path; an
unattachedconfig is inert and can be deleted.
-
createdAt
final OffsetDateTime createdAt()
-
displayName
final Optional<String> displayName()
Human-friendly display name. Null if none was set.
-
providerConfig
final ExternalKey.ProviderConfig providerConfig()
KMS provider identity and auth coordinates.
-
updatedAt
final OffsetDateTime updatedAt()
-
userProfileId
final Optional<String> userProfileId()
ID of the user profile the key is bound to, or null if the key is not bound to one. A key bound to a user profile can only be attached to a Workspace that has the same user profile. A key that isn't bound can only be attached to a Workspace that has no user profile.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("external_key")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.
-
_attachment
final JsonField<ExternalKey.Attachment> _attachment()
Returns the raw JSON value of attachment.
Unlike attachment, 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.
-
_displayName
final JsonField<String> _displayName()
Returns the raw JSON value of displayName.
Unlike displayName, this method doesn't throw if the JSON field has an unexpected type.
-
_geo
final JsonField<String> _geo()
Returns the raw JSON value of geo.
Unlike geo, this method doesn't throw if the JSON field has an unexpected type.
-
_providerConfig
final JsonField<ExternalKey.ProviderConfig> _providerConfig()
Returns the raw JSON value of providerConfig.
Unlike providerConfig, this method doesn't throw if the JSON field has an unexpected type.
-
_updatedAt
final JsonField<OffsetDateTime> _updatedAt()
Returns the raw JSON value of updatedAt.
Unlike updatedAt, 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ExternalKey.Builder toBuilder()
-
validate
final ExternalKey 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 ExternalKey.Builder builder()
Returns a mutable builder for constructing an instance of ExternalKey.
The following fields are required:
.id() .attachment() .createdAt() .displayName() .geo() .providerConfig() .updatedAt() .userProfileId()
-
-
-
-