Class: Google::Apis::StoragetransferV1::AwsS3Data

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

Overview

An AwsS3Data can be a data source, but not a data sink. In an AwsS3Data, an object's name is the S3 object's key name.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AwsS3Data

Returns a new instance of AwsS3Data.



230
231
232
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 230

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

Instance Attribute Details

#aws_access_keyGoogle::Apis::StoragetransferV1::AwsAccessKey

AWS access key (see AWS Security Credentials). Corresponds to the JSON property awsAccessKey



228
229
230
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 228

def aws_access_key
  @aws_access_key
end

#bucket_nameString

S3 Bucket name (see Creating a bucket). Required. Corresponds to the JSON property bucketName

Returns:

  • (String)


222
223
224
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 222

def bucket_name
  @bucket_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



235
236
237
238
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 235

def update!(**args)
  @bucket_name = args[:bucket_name] if args.key?(:bucket_name)
  @aws_access_key = args[:aws_access_key] if args.key?(:aws_access_key)
end