Class: Anthropic::Models::Organization::ExternalKey
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Organization::ExternalKey
- Defined in:
- lib/anthropic/models/organization/external_key.rb,
sig/anthropic/models/organization/external_key.rbs
Overview
Defined Under Namespace
Modules: Attachment, ProviderConfig
Instance Attribute Summary collapse
-
#attachment ⇒ Anthropic::Models::Organization::ExternalKeyAttachedAttachment, Anthropic::Models::Organization::ExternalKeyUnattachedAttachment
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.
- #created_at ⇒ Time
-
#display_name ⇒ String?
Human-friendly display name.
-
#geo ⇒ String
Data residency geo.
-
#id ⇒ String
Identifier of the external key config: a tagged ID prefixed
ekey_, or, on Claude Platform on AWS, an AWS KMS key's ARN. -
#provider_config ⇒ Anthropic::Models::Organization::AWSExternalKeyConfig, ...
KMS provider identity and auth coordinates.
- #type ⇒ Symbol, :external_key
- #updated_at ⇒ Time
-
#user_profile_id ⇒ String?
ID of the user profile the key is bound to, or null if the key is not bound to one.
Instance Method Summary collapse
-
#initialize(id:, attachment:, created_at:, display_name:, geo:, provider_config:, updated_at:, user_profile_id:, type: :external_key) ⇒ ExternalKey
constructor
CMEK external key config belonging to the caller's organization.
- #to_hash ⇒ { id: String, attachment: Anthropic::Models::Organization::ExternalKey::attachment, created_at: Time, display_name: String?, geo: String, provider_config: Anthropic::Models::Organization::ExternalKey::provider_config, type: :external_key, updated_at: Time, user_profile_id: String? }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, attachment:, created_at:, display_name:, geo:, provider_config:, updated_at:, user_profile_id:, type: :external_key) ⇒ ExternalKey
CMEK 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).
Some parameter documentations has been truncated, see Anthropic::Models::Organization::ExternalKey for more details.
|
|
# File 'lib/anthropic/models/organization/external_key.rb', line 66
|
Instance Attribute Details
#attachment ⇒ Anthropic::Models::Organization::ExternalKeyAttachedAttachment, Anthropic::Models::Organization::ExternalKeyUnattachedAttachment
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 unattached config is inert and can be deleted.
22 |
# File 'lib/anthropic/models/organization/external_key.rb', line 22 required :attachment, union: -> { Anthropic::Organization::ExternalKey::Attachment } |
#created_at ⇒ Time
27 |
# File 'lib/anthropic/models/organization/external_key.rb', line 27 required :created_at, Time |
#display_name ⇒ String?
Human-friendly display name. Null if none was set.
33 |
# File 'lib/anthropic/models/organization/external_key.rb', line 33 required :display_name, String, nil?: true |
#geo ⇒ String
Data residency geo. Selects the region this key is used in.
39 |
# File 'lib/anthropic/models/organization/external_key.rb', line 39 required :geo, String |
#id ⇒ String
Identifier of the external key config: a tagged ID prefixed ekey_, or, on
Claude Platform on AWS, an AWS KMS key's ARN.
13 |
# File 'lib/anthropic/models/organization/external_key.rb', line 13 required :id, String |
#provider_config ⇒ Anthropic::Models::Organization::AWSExternalKeyConfig, ...
KMS provider identity and auth coordinates.
45 |
# File 'lib/anthropic/models/organization/external_key.rb', line 45 required :provider_config, union: -> { Anthropic::Organization::ExternalKey::ProviderConfig } |
#type ⇒ Symbol, :external_key
50 |
# File 'lib/anthropic/models/organization/external_key.rb', line 50 required :type, const: :external_key |
#updated_at ⇒ Time
55 |
# File 'lib/anthropic/models/organization/external_key.rb', line 55 required :updated_at, Time |
#user_profile_id ⇒ String?
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.
64 |
# File 'lib/anthropic/models/organization/external_key.rb', line 64 required :user_profile_id, String, nil?: true |
Instance Method Details
#to_hash ⇒ { id: String, attachment: Anthropic::Models::Organization::ExternalKey::attachment, created_at: Time, display_name: String?, geo: String, provider_config: Anthropic::Models::Organization::ExternalKey::provider_config, type: :external_key, updated_at: Time, user_profile_id: String? }
48 49 50 51 52 53 54 55 56 57 58 |
# File 'sig/anthropic/models/organization/external_key.rbs', line 48
def to_hash: -> {
id: String,
attachment: Anthropic::Models::Organization::ExternalKey::attachment,
created_at: Time,
display_name: String?,
geo: String,
provider_config: Anthropic::Models::Organization::ExternalKey::provider_config,
type: :external_key,
updated_at: Time,
user_profile_id: String?
}
|