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

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AwsS3Data

Returns a new instance of AwsS3Data.



87
88
89
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 87

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

Instance Attribute Details

#aws_access_keyGoogle::Apis::StoragetransferV1::AwsAccessKey

AWS access key (see AWS Security Credentials). For information on our data retention policy for user credentials, see User credentials. Corresponds to the JSON property awsAccessKey



64
65
66
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 64

def aws_access_key
  @aws_access_key
end

#bucket_nameString

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

Returns:

  • (String)


70
71
72
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 70

def bucket_name
  @bucket_name
end

#pathString

Root path to transfer objects. Must be an empty string or full path name that ends with a '/'. This field is treated as an object prefix. As such, it should generally not begin with a '/'. Corresponds to the JSON property path

Returns:

  • (String)


77
78
79
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 77

def path
  @path
end

#role_arnString

Input only. Role arn to support temporary credentials via AssumeRoleWithWebIdentity. When role arn is provided, transfer service will fetch temporary credentials for the session using AssumeRoleWithWebIdentity call for the provided role using the [GoogleServiceAccount] for this project. Corresponds to the JSON property roleArn

Returns:

  • (String)


85
86
87
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 85

def role_arn
  @role_arn
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



92
93
94
95
96
97
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 92

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