Configuration for running a transfer.
| JSON representation | 
|---|
| { "objectConditions" : { object ( | 
objectConditions 
 object (  
 ObjectConditions 
 
)
Only objects that satisfy these object conditions are included in the set of data source and data sink objects. Object conditions based on objects' "last modification time" do not exclude objects in a data sink.
transferManifest 
 object (  
 TransferManifest 
 
)
A manifest file provides a list of objects to be transferred from the data source. This field points to the location of the manifest file. Otherwise, the entire source bucket is used. ObjectConditions still apply.
sourceAgentPoolName 
 string 
Specifies the agent pool name associated with the posix data source. When unspecified, the default name is used.
sinkAgentPoolName 
 string 
Specifies the agent pool name associated with the posix data sink. When unspecified, the default name is used.
data_sink 
. The write sink for the data. data_sink 
can be only one of the following:gcsDataSink 
 object (  
 GcsData 
 
)
A Cloud Storage data sink.
posixDataSink 
 object (  
 PosixFilesystem 
 
)
A POSIX Filesystem data sink.
data_source 
. The read source of the data. data_source 
can be only one of the following:gcsDataSource 
 object (  
 GcsData 
 
)
A Cloud Storage data source.
awsS3DataSource 
 object (  
 AwsS3Data 
 
)
An AWS S3 data source.
httpDataSource 
 object (  
 HttpData 
 
)
An HTTP URL data source.
posixDataSource 
 object (  
 PosixFilesystem 
 
)
A POSIX Filesystem data source.
azureBlobStorageDataSource 
 object (  
 AzureBlobStorageData 
 
)
An Azure Blob Storage data source.
awsS3CompatibleDataSource 
 object (  
 AwsS3CompatibleData 
 
)
An AWS S3 compatible data source.
hdfsDataSource 
 object (  
 HdfsData 
 
)
An HDFS cluster data source.
Union field intermediate_data_location 
.
 intermediate_data_location 
can be only one of the following:
gcsIntermediateDataLocation 
 object (  
 GcsData 
 
)
For transfers between file systems, specifies a Cloud Storage bucket to be used as an intermediate location through which to transfer data.
See Transfer data between file systems for more information.
PosixFilesystem
A POSIX filesystem resource.
| JSON representation | 
|---|
| { "rootDirectory" : string } | 
| Fields | |
|---|---|
| rootDirectory |   Root directory path to the filesystem. | 
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.
| JSON representation | 
|---|
| { "bucketName" : string , "awsAccessKey" : { object ( | 
bucketName 
 string 
Required. S3 Bucket name (see Creating a bucket ).
awsAccessKey 
 object (  
 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 .
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 '/'.
roleArn 
 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.
cloudfrontDomain 
 string 
Optional. The CloudFront distribution domain name pointing to this bucket, to use when fetching.
See Transfer from S3 via CloudFront for more information.
Format: https://{id}.cloudfront.net 
or any valid custom domain. Must begin with https:// 
.
credentialsSecret 
 string 
Optional. The Resource name of a secret in Secret Manager.
AWS credentials must be stored in Secret Manager in JSON format:
{ "accessKeyId": "ACCESS_KEY_ID", "secretAccessKey": "SECRET_ACCESS_KEY" }
  GoogleServiceAccount 
 
must be granted roles/secretmanager.secretAccessor 
for the resource.
See Configure access to a source: Amazon S3 for more information.
If credentialsSecret 
is specified, do not specify  roleArn 
 
or  awsAccessKey 
 
.
Format: projects/{projectNumber}/secrets/{secret_name} 
Union field private_network 
.
 private_network 
can be only one of the following:
managedPrivateNetwork 
 boolean 
Egress bytes over a Google-managed private network. This network is shared between other users of Storage Transfer Service.
AwsAccessKey
AWS access key (see AWS Security Credentials ).
For information on our data retention policy for user credentials, see User credentials .
| JSON representation | 
|---|
| { "accessKeyId" : string , "secretAccessKey" : string } | 
| Fields | |
|---|---|
| accessKeyId |   Required. AWS access key ID. | 
| secretAccessKey |   Required. AWS secret access key. This field is not returned in RPC responses. | 
HttpData
An HttpData resource specifies a list of objects on the web to be  transferred over HTTP. The information of the objects to be transferred is  contained in a file referenced by a URL. The first line in the file must be "TsvHttpData-1.0" 
, which specifies the format of the file. Subsequent  lines specify the information of the list of objects, one object per list  entry. Each entry has the following tab-delimited fields:
-  HTTP URL— The location of the object. 
-  Length— The size of the object in bytes. 
-  MD5— The base64-encoded MD5 hash of the object. 
For an example of a valid TSV file, see Transferring data from URLs .
When transferring data based on a URL list, keep the following in mind:
-  When an object located at http(s)://hostname:port/<URL-path>is transferred to a data sink, the name of the object at the data sink is<hostname>/<URL-path>.
-  If the specified size of an object does not match the actual size of the object fetched, the object is not transferred. 
-  If the specified MD5 does not match the MD5 computed from the transferred bytes, the object transfer fails. 
-  Ensure that each URL you specify is publicly accessible. For example, in Cloud Storage you can share an object publicly and get a link to it. 
-  Storage Transfer Service obeys robots.txtrules and requires the source HTTP server to supportRangerequests and to return aContent-Lengthheader in each response.
-  ObjectConditionshave no effect when filtering objects to transfer.
| JSON representation | 
|---|
| { "listUrl" : string } | 
| Fields | |
|---|---|
| listUrl |   Required. The URL that points to the file that stores the object list entries. This file must allow public access. The URL is either an HTTP/HTTPS address (e.g.  | 
AzureBlobStorageData
An AzureBlobStorageData resource can be a data source, but not a data sink. An AzureBlobStorageData resource represents one Azure container. The storage account determines the Azure endpoint . In an AzureBlobStorageData resource, a blobs's name is the Azure Blob Storage blob's key name .
| JSON representation | 
|---|
| { "storageAccount" : string , "azureCredentials" : { object ( | 
| Fields | |
|---|---|
| storageAccount |   Required. The name of the Azure Storage account. | 
| azureCredentials |   Required. Input only. Credentials used to authenticate API requests to Azure. For information on our data retention policy for user credentials, see User credentials . | 
| container |   Required. The container to transfer from the Azure Storage account. | 
| path |   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 '/'. | 
| credentialsSecret |   Optional. The Resource name of a secret in Secret Manager. The Azure SAS token must be stored in Secret Manager in JSON format: { "sasToken" : "SAS_TOKEN" }   See Configure access to a source: Microsoft Azure Blob Storage for more information. If  Format:  | 
| federatedIdentityConfig |   Optional. Federated identity config of a user registered Azure application. If  | 
AzureCredentials
Azure credentials
For information on our data retention policy for user credentials, see User credentials .
| JSON representation | 
|---|
| { "sasToken" : string } | 
| Fields | |
|---|---|
| sasToken |   Required. Azure shared access signature (SAS). For more information about SAS, see Grant limited access to Azure Storage resources using shared access signatures (SAS) . | 
FederatedIdentityConfig
The identity of an Azure application through which Storage Transfer Service can authenticate requests using Azure workload identity federation.
Storage Transfer Service can issue requests to Azure Storage through registered Azure applications, eliminating the need to pass credentials to Storage Transfer Service directly.
To configure federated identity, see Configure access to Microsoft Azure Storage .
| JSON representation | 
|---|
| { "clientId" : string , "tenantId" : string } | 
| Fields | |
|---|---|
| clientId |   Required. The client (application) ID of the application with federated credentials. | 
| tenantId |   Required. The tenant (directory) ID of the application with federated credentials. | 
AwsS3CompatibleData
An AwsS3CompatibleData resource.
| JSON representation | 
|---|
| { "bucketName" : string , "path" : string , "endpoint" : string , "region" : string , // Union field | 
bucketName 
 string 
Required. Specifies the name of the bucket.
path 
 string 
Specifies the 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 '/'.
endpoint 
 string 
Required. Specifies the endpoint of the storage service.
region 
 string 
Specifies the region to sign requests with. This can be left blank if requests should be signed with an empty region.
data_provider 
. Specifies the metadata of the S3 compatible data provider. Each provider may contain some attributes that do not apply to all S3-compatible data providers. When not specified, S3CompatibleMetadata is used by default. data_provider 
can be only one of the following:S3CompatibleMetadata
S3CompatibleMetadata contains the metadata fields that apply to the basic types of S3-compatible data providers.
| JSON representation | 
|---|
| { "authMethod" : enum ( | 
| Fields | |
|---|---|
| authMethod |   Specifies the authentication and authorization method used by the storage service. When not specified, Transfer Service will attempt to determine right auth method to use. | 
| requestModel |   Specifies the API request model used to call the storage service. When not specified, the default value of RequestModel REQUEST_MODEL_VIRTUAL_HOSTED_STYLE is used. | 
| protocol |   Specifies the network protocol of the agent. When not specified, the default value of NetworkProtocol NETWORK_PROTOCOL_HTTPS is used. | 
| listApi |   The Listing API to use for discovering objects. When not specified, Transfer Service will attempt to determine the right API to use. | 
AuthMethod
The authentication and authorization method used by the storage service.
| Enums | |
|---|---|
| AUTH_METHOD_UNSPECIFIED | AuthMethod is not specified. | 
| AUTH_METHOD_AWS_SIGNATURE_V4 | Auth requests with AWS SigV4. | 
| AUTH_METHOD_AWS_SIGNATURE_V2 | Auth requests with AWS SigV2. | 
RequestModel
The request model of the API.
| Enums | |
|---|---|
| REQUEST_MODEL_UNSPECIFIED | RequestModel is not specified. | 
| REQUEST_MODEL_VIRTUAL_HOSTED_STYLE | Perform requests using Virtual Hosted Style. Example: https://bucket-name.s3.region.amazonaws.com/key-name | 
| REQUEST_MODEL_PATH_STYLE | Perform requests using Path Style. Example: https://s3.region.amazonaws.com/bucket-name/key-name | 
NetworkProtocol
The agent network protocol to access the storage service.
| Enums | |
|---|---|
| NETWORK_PROTOCOL_UNSPECIFIED | NetworkProtocol is not specified. | 
| NETWORK_PROTOCOL_HTTPS | Perform requests using HTTPS. | 
| NETWORK_PROTOCOL_HTTP | Not recommended: This sends data in clear-text. This is only appropriate within a closed network or for publicly available data. Perform requests using HTTP. | 
ListApi
The Listing API to use for discovering objects.
| Enums | |
|---|---|
| LIST_API_UNSPECIFIED | ListApi is not specified. | 
| LIST_OBJECTS_V2 | Perform listing using ListObjectsV2 API. | 
| LIST_OBJECTS | Legacy ListObjects API. | 
HdfsData
An HdfsData resource specifies a path within an HDFS entity (e.g. a cluster). All cluster-specific settings, such as namenodes and ports, are configured on the transfer agents servicing requests, so HdfsData only contains the root path to the data in our transfer.
| JSON representation | 
|---|
| { "path" : string } | 
| Fields | |
|---|---|
| path |   Root path to transfer files. | 
TransferManifest
Specifies where the manifest is located.
| JSON representation | 
|---|
| { "location" : string } | 
| Fields | |
|---|---|
| location |   Specifies the path to the manifest in Cloud Storage. The Google-managed service account for the transfer must have  | 

