# Storage Transfer v1 API - Class AwsS3Data (2.10.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.10.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.AwsS3Data)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.9.0/Google.Cloud.StorageTransfer.V1.AwsS3Data)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.8.0/Google.Cloud.StorageTransfer.V1.AwsS3Data)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.7.0/Google.Cloud.StorageTransfer.V1.AwsS3Data)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.6.0/Google.Cloud.StorageTransfer.V1.AwsS3Data)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.5.0/Google.Cloud.StorageTransfer.V1.AwsS3Data)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.4.0/Google.Cloud.StorageTransfer.V1.AwsS3Data)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.3.0/Google.Cloud.StorageTransfer.V1.AwsS3Data)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.2.0/Google.Cloud.StorageTransfer.V1.AwsS3Data)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.1.0/Google.Cloud.StorageTransfer.V1.AwsS3Data)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.0.0/Google.Cloud.StorageTransfer.V1.AwsS3Data)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/1.2.0/Google.Cloud.StorageTransfer.V1.AwsS3Data)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/1.1.0/Google.Cloud.StorageTransfer.V1.AwsS3Data)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/1.0.0/Google.Cloud.StorageTransfer.V1.AwsS3Data)

    public sealed class AwsS3Data : IMessage<AwsS3Data>, IEquatable<AwsS3Data>, IDeepCloneable<AwsS3Data>, IBufferMessage, IMessage

Reference documentation and code samples for the Storage Transfer v1 API class 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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AwsS3Data

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AwsS3Data](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.AwsS3Data), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AwsS3Data](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.AwsS3Data), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AwsS3Data](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.AwsS3Data), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.StorageTransfer.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1)

## Assembly

Google.Cloud.StorageTransfer.V1.dll

## Constructors

### AwsS3Data()

    public AwsS3Data()

### AwsS3Data(AwsS3Data)

    public AwsS3Data(AwsS3Data other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.AwsS3Data` |

## Properties

### AwsAccessKey

    public AwsAccessKey AwsAccessKey { get; set; }

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).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.AwsAccessKey` |   |

### BucketName

    public string BucketName { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### CloudfrontDomain

    public string CloudfrontDomain { get; set; }

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://`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### CredentialsSecret

    public string CredentialsSecret { get; set; }

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\]\[google.storagetransfer.v1.GoogleServiceAccount\] 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\]\[google.storagetransfer.v1.AwsS3Data.role_arn\] or
\[aws_access_key\]\[google.storagetransfer.v1.AwsS3Data.aws_access_key\].

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### HasManagedPrivateNetwork

    public bool HasManagedPrivateNetwork { get; }

Gets whether the "managed_private_network" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### ManagedPrivateNetwork

    public bool ManagedPrivateNetwork { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### Path

    public string Path { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PrivateNetworkCase

    public AwsS3Data.PrivateNetworkOneofCase PrivateNetworkCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.AwsS3Datahttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.AwsS3Data.PrivateNetworkOneofCase` |   |

### RoleArn

    public string RoleArn { get; set; }

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\]\[google.storagetransfer.v1.GoogleServiceAccount\] for
this project.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |