Class: Google::Apis::DatamanagerV1::AwsWrappedKeyInfo

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

Overview

A data encryption key wrapped by an AWS KMS key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AwsWrappedKeyInfo

Returns a new instance of AwsWrappedKeyInfo.



197
198
199
# File 'lib/google/apis/datamanager_v1/classes.rb', line 197

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

Instance Attribute Details

#encrypted_dekString

Required. The base64 encoded encrypted data encryption key. Corresponds to the JSON property encryptedDek

Returns:

  • (String)


176
177
178
# File 'lib/google/apis/datamanager_v1/classes.rb', line 176

def encrypted_dek
  @encrypted_dek
end

#kek_uriString

Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in the format of arn:partition:kms:region:account_id:key/key_idor `aws-kms: //arn:`partition`:kms:`region`:`account_id`:key/`key_id Corresponds to the JSON property kekUri

Returns:

  • (String)


183
184
185
# File 'lib/google/apis/datamanager_v1/classes.rb', line 183

def kek_uri
  @kek_uri
end

#key_typeString

Required. The type of algorithm used to encrypt the data. Corresponds to the JSON property keyType

Returns:

  • (String)


188
189
190
# File 'lib/google/apis/datamanager_v1/classes.rb', line 188

def key_type
  @key_type
end

#role_arnString

Required. The Amazon Resource Name of the IAM Role to assume for KMS decryption access. Should be in the format of arn:partition:iam:: account_id:role/role_name` Corresponds to the JSON propertyroleArn`

Returns:

  • (String)


195
196
197
# File 'lib/google/apis/datamanager_v1/classes.rb', line 195

def role_arn
  @role_arn
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



202
203
204
205
206
207
# File 'lib/google/apis/datamanager_v1/classes.rb', line 202

def update!(**args)
  @encrypted_dek = args[:encrypted_dek] if args.key?(:encrypted_dek)
  @kek_uri = args[:kek_uri] if args.key?(:kek_uri)
  @key_type = args[:key_type] if args.key?(:key_type)
  @role_arn = args[:role_arn] if args.key?(:role_arn)
end