Class: Anthropic::Models::Beta::Organization::BetaExternalKey

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_external_key.rb,
sig/anthropic/models/beta/organization/beta_external_key.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Organization::ExternalKeys#create

Defined Under Namespace

Modules: Attachment, ProviderConfig

Instance Attribute Summary collapse

Instance Method Summary collapse

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:, type: :external_key) ⇒ Object

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::Beta::Organization::BetaExternalKey for more details.

Parameters:



# File 'lib/anthropic/models/beta/organization/beta_external_key.rb', line 59

Instance Attribute Details

#attachmentAnthropic::Models::Beta::Organization::BetaExternalKeyAttachedAttachment, Anthropic::Models::Beta::Organization::BetaExternalKeyUnattachedAttachment

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.

Parameters:

  • value (Anthropic::Models::Beta::Organization::BetaExternalKey::attachment)

Returns:



23
# File 'lib/anthropic/models/beta/organization/beta_external_key.rb', line 23

required :attachment, union: -> { Anthropic::Beta::Organization::BetaExternalKey::Attachment }

#created_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


28
# File 'lib/anthropic/models/beta/organization/beta_external_key.rb', line 28

required :created_at, Time

#display_nameString?

Human-friendly display name. Null if none was set.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


34
# File 'lib/anthropic/models/beta/organization/beta_external_key.rb', line 34

required :display_name, String, nil?: true

#geoString

Data residency geo. Selects which regional validator handles this key's encrypt/decrypt roundtrips.

Parameters:

  • value (String)

Returns:

  • (String)


41
# File 'lib/anthropic/models/beta/organization/beta_external_key.rb', line 41

required :geo, String

#idString

Identifier of the external key config. A tagged ID prefixed ekey_, or — for organizations on the Claude Platform on AWS — the AWS KMS key ARN.

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/anthropic/models/beta/organization/beta_external_key.rb', line 14

required :id, String

#provider_configAnthropic::Models::Beta::Organization::BetaAWSExternalKeyConfig, ...

KMS provider identity and auth coordinates.



47
# File 'lib/anthropic/models/beta/organization/beta_external_key.rb', line 47

required :provider_config, union: -> { Anthropic::Beta::Organization::BetaExternalKey::ProviderConfig }

#typeSymbol, :external_key

Parameters:

  • value (:external_key)

Returns:

  • (Symbol, :external_key)


52
# File 'lib/anthropic/models/beta/organization/beta_external_key.rb', line 52

required :type, const: :external_key

#updated_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


57
# File 'lib/anthropic/models/beta/organization/beta_external_key.rb', line 57

required :updated_at, Time

Instance Method Details

#to_hash{

Returns:

  • ({)


45
# File 'sig/anthropic/models/beta/organization/beta_external_key.rbs', line 45

def to_hash: -> {