Class: Google::Apis::VmmigrationV1alpha1::AccessKeyCredentials

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb

Overview

Message describing AWS Credentials using access key id and secret.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccessKeyCredentials

Returns a new instance of AccessKeyCredentials.



45
46
47
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 45

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#access_key_idString

AWS access key ID. Corresponds to the JSON property accessKeyId

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 32

def access_key_id
  @access_key_id
end

#secret_access_keyString

Input only. AWS secret access key. Corresponds to the JSON property secretAccessKey

Returns:

  • (String)


37
38
39
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 37

def secret_access_key
  @secret_access_key
end

#session_tokenString

Input only. AWS session token. Used only when AWS security token service (STS) is responsible for creating the temporary credentials. Corresponds to the JSON property sessionToken

Returns:

  • (String)


43
44
45
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 43

def session_token
  @session_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



50
51
52
53
54
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 50

def update!(**args)
  @access_key_id = args[:access_key_id] if args.key?(:access_key_id)
  @secret_access_key = args[:secret_access_key] if args.key?(:secret_access_key)
  @session_token = args[:session_token] if args.key?(:session_token)
end