Class: Anthropic::Models::Organization::AWSExternalKeyConfig

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

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(kms_arn:, region: nil, type: :aws) ⇒ AWSExternalKeyConfig

Some parameter documentations has been truncated, see Anthropic::Models::Organization::AWSExternalKeyConfig for more details.

Parameters:

  • kms_arn (String) —

    Full ARN of the AWS KMS key. On Claude Platform on AWS the key must be a single-

  • region (String, nil) (defaults to: nil) —

    AWS region. Derived from kms_arn if omitted.

  • type (Symbol, :aws) (defaults to: :aws)
  • kms_arn: (String)
  • region: (String, nil) (defaults to: nil)
  • type: (:aws) (defaults to: :aws)


# File 'lib/anthropic/models/organization/aws_external_key_config.rb', line 26


Instance Attribute Details

#kms_arn ⇒ String

Full ARN of the AWS KMS key. On Claude Platform on AWS the key must be a single-Region key in your organization's own AWS account; cross-account keys, multi-Region keys, and alias ARNs are rejected.

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/anthropic/models/organization/aws_external_key_config.rb', line 13

required :kms_arn, String

#region ⇒ String?

AWS region. Derived from kms_arn if omitted.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


24
# File 'lib/anthropic/models/organization/aws_external_key_config.rb', line 24

optional :region, String, nil?: true

#type ⇒ Symbol, :aws

Parameters:

  • value (:aws)

Returns:

  • (Symbol, :aws)


18
# File 'lib/anthropic/models/organization/aws_external_key_config.rb', line 18

required :type, const: :aws

Instance Method Details

#to_hash ⇒ { kms_arn: String, type: :aws, region: String? }

Returns:

  • ({ kms_arn: String, type: :aws, region: String? })


16
# File 'sig/anthropic/models/organization/aws_external_key_config.rbs', line 16

def to_hash: -> { kms_arn: String, type: :aws, region: String? }