Class: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Aws

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/admin/organization/external_key_create_params.rb,
sig/openai/models/admin/organization/external_key_create_params.rbs

Defined Under Namespace

Modules: Purpose

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(external_id:, kms_arn:, name:, role_arn:, purpose: nil, type: :aws) ⇒ Aws

Returns a new instance of Aws.

Parameters:

  • external_id —

    The ExternalID that OpenAI will pass in the AssumeRole call for the customer's AWS account. This must be the OpenAI organization ID or an API project ID that belongs to the organization.

  • kms_arn —

    The Key Management System ARN for the master key you manage

  • name —

    A friendly name to identify this config

  • role_arn —

    The Role ARN that OpenAI will assume to call your KMS

  • external_id: (String)
  • kms_arn: (String)
  • name: (String)
  • role_arn: (String)
  • purpose: (OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Aws::purpose) (defaults to: nil)
  • type: (:aws) (defaults to: :aws)


# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 71

Instance Attribute Details

#external_id ⇒ String

The ExternalID that OpenAI will pass in the AssumeRole call for the customer's AWS account. This must be the OpenAI organization ID or an API project ID that belongs to the organization.

Returns:

  • (String)


41
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 41

required :external_id, String

#kms_arn ⇒ String

The Key Management System ARN for the master key you manage

Returns:

  • (String)


47
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 47

required :kms_arn, String

#name ⇒ String

A friendly name to identify this config

Returns:

  • (String)


53
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 53

required :name, String

#purpose ⇒ Symbol, ...

Parameters:

  • (OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Aws::purpose)

Returns:



69
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 69

optional :purpose, enum: -> { OpenAI::Admin::Organization::ExternalKeyCreateParams::Body::Aws::Purpose }

#role_arn ⇒ String

The Role ARN that OpenAI will assume to call your KMS

Returns:

  • (String)


59
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 59

required :role_arn, String

#type ⇒ Symbol, :aws

Parameters:

  • value (:aws)

Returns:

  • (Symbol, :aws)


64
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 64

required :type, const: :aws

Instance Method Details

#to_hash ⇒ { external_id: String, kms_arn: String, name: String, role_arn: String, ?type: :aws, ?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Aws::purpose }

Returns:

  • ({ external_id: String, kms_arn: String, name: String, role_arn: String, ?type: :aws, ?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Aws::purpose })


212
213
214
215
216
217
218
219
# File 'sig/openai/models/admin/organization/external_key_create_params.rbs', line 212

def to_hash: -> {
  external_id: String,
  kms_arn: String,
  name: String,
  role_arn: String,
  ?type: :aws,
  ?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Aws::purpose
}