# Storage Transfer Service V1 API - Class Google::Cloud::StorageTransfer::V1::AwsS3Data (v1.11.0)

1.11.0 (latest) 1.10.0 1.9.0 1.8.1 1.7.0 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.1 1.0.0 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Storage Transfer Service V1 API class Google::Cloud::StorageTransfer::V1::AwsS3Data.

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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #aws_access_key

    def aws_access_key() -> ::Google::Cloud::StorageTransfer::V1::AwsAccessKey

**Returns**

- ([::Google::Cloud::StorageTransfer::V1::AwsAccessKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-AwsAccessKey)) --- Input only. AWS access key used to sign the API requests to the AWS S3 bucket. Permissions on the bucket must be granted to the access ID of the AWS access key.


  For information on our data retention policy for user credentials, see
  [User credentials](https://docs.cloud.google.com/storage-transfer/docs/data-retention#user-credentials).

### #aws_access_key=

    def aws_access_key=(value) -> ::Google::Cloud::StorageTransfer::V1::AwsAccessKey

**Parameter**

- **value** ([::Google::Cloud::StorageTransfer::V1::AwsAccessKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-AwsAccessKey)) --- Input only. AWS access key used to sign the API requests to the AWS S3 bucket. Permissions on the bucket must be granted to the access ID of the AWS access key.


  For information on our data retention policy for user credentials, see
  [User credentials](https://docs.cloud.google.com/storage-transfer/docs/data-retention#user-credentials).
**Returns**

- ([::Google::Cloud::StorageTransfer::V1::AwsAccessKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-AwsAccessKey)) --- Input only. AWS access key used to sign the API requests to the AWS S3 bucket. Permissions on the bucket must be granted to the access ID of the AWS access key.


  For information on our data retention policy for user credentials, see
  [User credentials](https://docs.cloud.google.com/storage-transfer/docs/data-retention#user-credentials).

### #bucket_name

    def bucket_name() -> ::String

**Returns**

- (::String) --- Required. S3 Bucket name (see [Creating a
  bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)).

### #bucket_name=

    def bucket_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. S3 Bucket name (see [Creating a
  bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)).
**Returns**

- (::String) --- Required. S3 Bucket name (see [Creating a
  bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)).

### #cloudfront_domain

    def cloudfront_domain() -> ::String

**Returns**

- (::String) --- Optional. The CloudFront distribution domain name pointing to this bucket, to use when fetching.

  See
  [Transfer from S3 via
  CloudFront](https://cloud.google.com/storage-transfer/docs/s3-cloudfront)
  for more information.

  Format: `https://{id}.cloudfront.net` or any valid custom domain. Must
  begin with `https://`.

### #cloudfront_domain=

    def cloudfront_domain=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The CloudFront distribution domain name pointing to this bucket, to use when fetching.


  See
  [Transfer from S3 via
  CloudFront](https://cloud.google.com/storage-transfer/docs/s3-cloudfront)
  for more information.

  Format: `https://{id}.cloudfront.net` or any valid custom domain. Must
  begin with `https://`.
**Returns**

- (::String) --- Optional. The CloudFront distribution domain name pointing to this bucket, to use when fetching.

  See
  [Transfer from S3 via
  CloudFront](https://cloud.google.com/storage-transfer/docs/s3-cloudfront)
  for more information.

  Format: `https://{id}.cloudfront.net` or any valid custom domain. Must
  begin with `https://`.

### #credentials_secret

    def credentials_secret() -> ::String

**Returns**

- (::String) --- Optional. The Resource name of a secret in Secret Manager.

  AWS credentials must be stored in Secret Manager in JSON format:

  {
  "access_key_id": "ACCESS_KEY_ID",
  "secret_access_key": "SECRET_ACCESS_KEY"
  }

  [GoogleServiceAccount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-GoogleServiceAccount "Google::Cloud::StorageTransfer::V1::GoogleServiceAccount (class)") must
  be granted `roles/secretmanager.secretAccessor` for the resource.

  See [Configure access to a source: Amazon S3](https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager)
  for more information.

  If `credentials_secret` is specified, do not specify
  [role_arn](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-AwsS3Data#Google__Cloud__StorageTransfer__V1__AwsS3Data_role_arn_instance_ "Google::Cloud::StorageTransfer::V1::AwsS3Data#role_arn (method)") or
  [aws_access_key](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-AwsS3Data#Google__Cloud__StorageTransfer__V1__AwsS3Data_aws_access_key_instance_ "Google::Cloud::StorageTransfer::V1::AwsS3Data#aws_access_key (method)").

  Format: `projects/{project_number}/secrets/{secret_name}`

### #credentials_secret=

    def credentials_secret=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The Resource name of a secret in Secret Manager.


  AWS credentials must be stored in Secret Manager in JSON format:

  {
  "access_key_id": "ACCESS_KEY_ID",
  "secret_access_key": "SECRET_ACCESS_KEY"
  }

  [GoogleServiceAccount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-GoogleServiceAccount "Google::Cloud::StorageTransfer::V1::GoogleServiceAccount (class)") must
  be granted `roles/secretmanager.secretAccessor` for the resource.

  See [Configure access to a source: Amazon S3](https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager)
  for more information.

  If `credentials_secret` is specified, do not specify
  [role_arn](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-AwsS3Data#Google__Cloud__StorageTransfer__V1__AwsS3Data_role_arn_instance_ "Google::Cloud::StorageTransfer::V1::AwsS3Data#role_arn (method)") or
  [aws_access_key](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-AwsS3Data#Google__Cloud__StorageTransfer__V1__AwsS3Data_aws_access_key_instance_ "Google::Cloud::StorageTransfer::V1::AwsS3Data#aws_access_key (method)").

  Format: `projects/{project_number}/secrets/{secret_name}`
**Returns**

- (::String) --- Optional. The Resource name of a secret in Secret Manager.

  AWS credentials must be stored in Secret Manager in JSON format:

  {
  "access_key_id": "ACCESS_KEY_ID",
  "secret_access_key": "SECRET_ACCESS_KEY"
  }

  [GoogleServiceAccount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-GoogleServiceAccount "Google::Cloud::StorageTransfer::V1::GoogleServiceAccount (class)") must
  be granted `roles/secretmanager.secretAccessor` for the resource.

  See [Configure access to a source: Amazon S3](https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager)
  for more information.

  If `credentials_secret` is specified, do not specify
  [role_arn](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-AwsS3Data#Google__Cloud__StorageTransfer__V1__AwsS3Data_role_arn_instance_ "Google::Cloud::StorageTransfer::V1::AwsS3Data#role_arn (method)") or
  [aws_access_key](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-AwsS3Data#Google__Cloud__StorageTransfer__V1__AwsS3Data_aws_access_key_instance_ "Google::Cloud::StorageTransfer::V1::AwsS3Data#aws_access_key (method)").

  Format: `projects/{project_number}/secrets/{secret_name}`

### #managed_private_network

    def managed_private_network() -> ::Boolean

**Returns**

- (::Boolean) --- Egress bytes over a Google-managed private network. This network is shared between other users of Storage Transfer Service.

### #managed_private_network=

    def managed_private_network=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Egress bytes over a Google-managed private network. This network is shared between other users of Storage Transfer Service.
**Returns**

- (::Boolean) --- Egress bytes over a Google-managed private network. This network is shared between other users of Storage Transfer Service.

### #path

    def path() -> ::String

**Returns**

- (::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 '/'.

### #path=

    def path=(value) -> ::String

**Parameter**

- **value** (::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 '/'.
**Returns**

- (::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 '/'.

### #role_arn

    def role_arn() -> ::String

**Returns**

- (::String) --- The Amazon Resource Name (ARN) of the role to support temporary credentials via `AssumeRoleWithWebIdentity`. For more information about ARNs, see [IAM
  ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-GoogleServiceAccount "Google::Cloud::StorageTransfer::V1::GoogleServiceAccount (class)") for
  this project.

### #role_arn=

    def role_arn=(value) -> ::String

**Parameter**

- **value** (::String) --- The Amazon Resource Name (ARN) of the role to support temporary credentials via `AssumeRoleWithWebIdentity`. For more information about ARNs, see [IAM
  ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-GoogleServiceAccount "Google::Cloud::StorageTransfer::V1::GoogleServiceAccount (class)") for
  this project.
**Returns**

- (::String) --- The Amazon Resource Name (ARN) of the role to support temporary credentials via `AssumeRoleWithWebIdentity`. For more information about ARNs, see [IAM
  ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-GoogleServiceAccount "Google::Cloud::StorageTransfer::V1::GoogleServiceAccount (class)") for
  this project.