Class: Anthropic::Models::Beta::Organization::BetaAWSExternalKeyConfig

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_aws_external_key_config.rb,
sig/anthropic/models/beta/organization/beta_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, role_arn: nil, type: :aws) ⇒ BetaAWSExternalKeyConfig

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

Parameters:

  • kms_arn (String) —

    Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected,

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

    AWS region. Derived from kms_arn if omitted.

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

    IAM role ARN. Deprecated; this field is ignored.

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


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

Instance Attribute Details

#kms_arn ⇒ String

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

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/anthropic/models/beta/organization/beta_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/beta/organization/beta_aws_external_key_config.rb', line 24

optional :region, String, nil?: true

#role_arn ⇒ String?

Deprecated.

IAM role ARN. Deprecated; this field is ignored.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


32
# File 'lib/anthropic/models/beta/organization/beta_aws_external_key_config.rb', line 32

optional :role_arn, String, nil?: true

#type ⇒ Symbol, :aws

Parameters:

  • value (:aws)

Returns:

  • (Symbol, :aws)


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

required :type, const: :aws

Instance Method Details

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

Returns:

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


24
25
26
27
28
29
# File 'sig/anthropic/models/beta/organization/beta_aws_external_key_config.rbs', line 24

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