Class: Google::Apis::StoragetransferV1::AwsS3Data
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::AwsS3Data
- 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
-
#aws_access_key ⇒ Google::Apis::StoragetransferV1::AwsAccessKey
AWS access key (see AWS Security Credentials).
-
#bucket_name ⇒ String
Required.
-
#path ⇒ String
Root path to transfer objects.
-
#role_arn ⇒ String
The Amazon Resource Name (ARN) of the role to support temporary credentials via
AssumeRoleWithWebIdentity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AwsS3Data
constructor
A new instance of AwsS3Data.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AwsS3Data
Returns a new instance of AwsS3Data.
127 128 129 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 127 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aws_access_key ⇒ Google::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
102 103 104 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 102 def aws_access_key @aws_access_key end |
#bucket_name ⇒ String
Required. S3 Bucket name (see Creating a bucket).
Corresponds to the JSON property bucketName
108 109 110 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 108 def bucket_name @bucket_name end |
#path ⇒ String
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
115 116 117 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 115 def path @path end |
#role_arn ⇒ String
The Amazon Resource Name (ARN) of the role to support temporary credentials
via AssumeRoleWithWebIdentity. For more information about ARNs, see IAM
ARNs. When a role ARN is provided, Transfer Service fetches
temporary credentials for the session using a AssumeRoleWithWebIdentity call
for the provided role using the GoogleServiceAccount for this project.
Corresponds to the JSON property roleArn
125 126 127 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 125 def role_arn @role_arn end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
132 133 134 135 136 137 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 132 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 |