Class: Google::Apis::DatamanagerV1::AwsWrappedKeyInfo
- Inherits:
-
Object
- Object
- Google::Apis::DatamanagerV1::AwsWrappedKeyInfo
- 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
-
#encrypted_dek ⇒ String
Required.
-
#kek_uri ⇒ String
Required.
-
#key_type ⇒ String
Required.
-
#role_arn ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AwsWrappedKeyInfo
constructor
A new instance of AwsWrappedKeyInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_dek ⇒ String
Required. The base64 encoded encrypted data encryption key.
Corresponds to the JSON property encryptedDek
176 177 178 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 176 def encrypted_dek @encrypted_dek end |
#kek_uri ⇒ String
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
183 184 185 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 183 def kek_uri @kek_uri end |
#key_type ⇒ String
Required. The type of algorithm used to encrypt the data.
Corresponds to the JSON property keyType
188 189 190 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 188 def key_type @key_type end |
#role_arn ⇒ String
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`
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 |