Module Smaws_Client_DataSync.Types

type nonrec string_ = string
type nonrec long = Smaws_Lib.CoreTypes.Int64.t
type nonrec vpc_endpoint_id = string
type nonrec verify_mode =
  1. | NONE
  2. | ONLY_FILES_TRANSFERRED
  3. | POINT_IN_TIME_CONSISTENT
type nonrec updated_efs_iam_role_arn = string
type nonrec updated_efs_access_point_arn = string
type nonrec update_task_response = unit
type nonrec task_arn = string
type nonrec overwrite_mode =
  1. | NEVER
  2. | ALWAYS
type nonrec atime =
  1. | BEST_EFFORT
  2. | NONE
type nonrec mtime =
  1. | PRESERVE
  2. | NONE
type nonrec uid =
  1. | BOTH
  2. | NAME
  3. | INT_VALUE
  4. | NONE
type nonrec gid =
  1. | BOTH
  2. | NAME
  3. | INT_VALUE
  4. | NONE
type nonrec preserve_deleted_files =
  1. | REMOVE
  2. | PRESERVE
type nonrec preserve_devices =
  1. | PRESERVE
  2. | NONE
type nonrec posix_permissions =
  1. | PRESERVE
  2. | NONE
type nonrec bytes_per_second = Smaws_Lib.CoreTypes.Int64.t
type nonrec task_queueing =
  1. | DISABLED
  2. | ENABLED
type nonrec log_level =
  1. | TRANSFER
  2. | BASIC
  3. | OFF
type nonrec transfer_mode =
  1. | ALL
  2. | CHANGED
type nonrec smb_security_descriptor_copy_flags =
  1. | OWNER_DACL_SACL
  2. | OWNER_DACL
  3. | NONE
type nonrec object_tags =
  1. | NONE
  2. | PRESERVE
type nonrec options = {
  1. object_tags : object_tags option;
    (*

    Specifies whether you want DataSync to PRESERVE object tags (default behavior) when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify the NONE value.

    *)
  2. security_descriptor_copy_flags : smb_security_descriptor_copy_flags option;
    (*

    Specifies which components of the SMB security descriptor are copied from source to destination objects.

    This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations or between two FSx for Windows File Server locations. For more information, see Understanding how DataSync handles file and object metadata.

    • OWNER_DACL (default) - For each copied object, DataSync copies the following metadata:

      • The object owner.
      • NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.

        DataSync won't copy NTFS system access control lists (SACLs) with this option.

    • OWNER_DACL_SACL - For each copied object, DataSync copies the following metadata:

      • The object owner.
      • NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.
      • SACLs, which are used by administrators to log attempts to access a secured object.

        Copying SACLs requires granting additional permissions to the Windows user that DataSync uses to access your SMB location. For information about choosing a user with the right permissions, see required permissions for SMB, FSx for Windows File Server, or FSx for ONTAP (depending on the type of location in your transfer).

    • NONE - None of the SMB security descriptor components are copied. Destination objects are owned by the user that was provided for accessing the destination location. DACLs and SACLs are set based on the destination server’s configuration.
    *)
  3. transfer_mode : transfer_mode option;
    (*

    Specifies whether DataSync transfers only the data (including metadata) that differs between locations following an initial copy or transfers all data every time you run the task. If you're planning on recurring transfers, you might only want to transfer what's changed since your previous task execution.

    • CHANGED (default) - After your initial full transfer, DataSync copies only the data and metadata that differs between the source and destination location.
    • ALL - DataSync copies everything in the source to the destination without comparing differences between the locations.
    *)
  4. log_level : log_level option;
    (*

    Specifies the type of logs that DataSync publishes to a Amazon CloudWatch Logs log group. To specify the log group, see CloudWatchLogGroupArn.

    • BASIC - Publishes logs with only basic information (such as transfer errors).
    • TRANSFER - Publishes logs for all files or objects that your DataSync task transfers and performs data-integrity checks on.
    • OFF - No logs are published.
    *)
  5. task_queueing : task_queueing option;
    (*

    Specifies whether your transfer tasks should be put into a queue during certain scenarios when running multiple tasks. This is ENABLED by default.

    *)
  6. bytes_per_second : bytes_per_second option;
    (*

    Limits the bandwidth used by a DataSync task. For example, if you want DataSync to use a maximum of 1 MB, set this value to 1048576 (=1024*1024).

    *)
  7. posix_permissions : posix_permissions option;
    (*

    Specifies which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.

    For more information, see Understanding how DataSync handles file and object metadata.

    • PRESERVE (default) - Preserves POSIX-style permissions, which is recommended.
    • NONE - Ignores POSIX-style permissions.

    DataSync can preserve extant permissions of a source location.

    *)
  8. preserve_devices : preserve_devices option;
    (*

    Specifies whether DataSync should preserve the metadata of block and character devices in the source location and recreate the files with that device name and metadata on the destination. DataSync copies only the name and metadata of such devices.

    DataSync can't copy the actual contents of these devices because they're nonterminal and don't return an end-of-file (EOF) marker.

    • NONE (default) - Ignores special devices (recommended).
    • PRESERVE - Preserves character and block device metadata. This option currently isn't supported for Amazon EFS.
    *)
  9. preserve_deleted_files : preserve_deleted_files option;
    (*

    Specifies whether files in the destination location that don't exist in the source should be preserved. This option can affect your Amazon S3 storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see Considerations when working with Amazon S3 storage classes in DataSync.

    • PRESERVE (default) - Ignores such destination files, which is recommended.
    • REMOVE - Deletes destination files that aren’t present in the source.

    If you set this parameter to REMOVE, you can't set TransferMode to ALL. When you transfer all data, DataSync doesn't scan your destination location and doesn't know what to delete.

    *)
  10. gid : gid option;
    (*

    Specifies the POSIX group ID (GID) of the file's owners.

    • INT_VALUE (default) - Preserves the integer value of user ID (UID) and GID, which is recommended.
    • NONE - Ignores UID and GID.

    For more information, see Understanding how DataSync handles file and object metadata.

    *)
  11. uid : uid option;
    (*

    Specifies the POSIX user ID (UID) of the file's owner.

    • INT_VALUE (default) - Preserves the integer value of UID and group ID (GID), which is recommended.
    • NONE - Ignores UID and GID.

    For more information, see Metadata copied by DataSync.

    *)
  12. mtime : mtime option;
    (*

    Specifies whether to preserve metadata indicating the last time that a file was written to before the PREPARING step of your task execution. This option is required when you need to run the a task more than once.

    • PRESERVE (default) - Preserves original Mtime, which is recommended.
    • NONE - Ignores Mtime.

    If Mtime is set to PRESERVE, Atime must be set to BEST_EFFORT.

    If Mtime is set to NONE, Atime must also be set to NONE.

    *)
  13. atime : atime option;
    (*

    Specifies whether to preserve metadata indicating the last time a file was read or written to.

    The behavior of Atime isn't fully standard across platforms, so DataSync can only do this on a best-effort basis.

    • BEST_EFFORT (default) - DataSync attempts to preserve the original Atime attribute on all source files (that is, the version before the PREPARING steps of the task execution). This option is recommended.
    • NONE - Ignores Atime.

    If Atime is set to BEST_EFFORT, Mtime must be set to PRESERVE.

    If Atime is set to NONE, Mtime must also be NONE.

    *)
  14. overwrite_mode : overwrite_mode option;
    (*

    Specifies whether DataSync should modify or preserve data at the destination location.

    • ALWAYS (default) - DataSync modifies data in the destination location when source data (including metadata) has changed.

      If DataSync overwrites objects, you might incur additional charges for certain Amazon S3 storage classes (for example, for retrieval or early deletion). For more information, see Storage class considerations with Amazon S3 transfers.

    • NEVER - DataSync doesn't overwrite data in the destination location even if the source data has changed. You can use this option to protect against overwriting changes made to files or objects in the destination.
    *)
  15. verify_mode : verify_mode option;
    (*

    Specifies if and how DataSync checks the integrity of your data at the end of your transfer.

    • ONLY_FILES_TRANSFERRED (recommended) - DataSync calculates the checksum of transferred data (including metadata) at the source location. At the end of the transfer, DataSync then compares this checksum to the checksum calculated on that data at the destination.

      This is the default option for Enhanced mode tasks.

      We recommend this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.

    • POINT_IN_TIME_CONSISTENT - At the end of the transfer, DataSync checks the entire source and destination to verify that both locations are fully synchronized.

      The is the default option for Basic mode tasks and isn't currently supported with Enhanced mode tasks.

      If you use a manifest, DataSync only scans and verifies what's listed in the manifest.

      You can't use this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.

    • NONE - DataSync performs data integrity checks only during your transfer. Unlike other options, there's no additional verification at the end of your transfer.
    *)
}

Indicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options.

Each option has a default value. Unless you need to, you don't have to configure any option before calling StartTaskExecution.

You also can override your task options for each task execution. For example, you might want to adjust the LogLevel for an individual execution.

type nonrec filter_type =
  1. | SIMPLE_PATTERN
type nonrec filter_value = string
type nonrec filter_rule = {
  1. value : filter_value option;
    (*

    A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2

    *)
  2. filter_type : filter_type option;
    (*

    The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.

    *)
}

Specifies which files, folders, and objects to include or exclude when transferring files from source to destination.

type nonrec filter_list = filter_rule list
type nonrec schedule_expression_cron = string
type nonrec schedule_status =
  1. | DISABLED
  2. | ENABLED
type nonrec task_schedule = {
  1. status : schedule_status option;
    (*

    Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer to fix an issue with your task or perform maintenance on your storage system.

    DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails.

    *)
  2. schedule_expression : schedule_expression_cron;
    (*

    Specifies your task schedule by using a cron or rate expression.

    Use cron expressions for task schedules that run on a specific time and day. For example, the following cron expression creates a task schedule that runs at 8 AM on the first Wednesday of every month:

    cron(0 8 * * 3#1)

    Use rate expressions for task schedules that run on a regular interval. For example, the following rate expression creates a task schedule that runs every 12 hours:

    rate(12 hours)

    For information about cron and rate expression syntax, see the Amazon EventBridge User Guide.

    *)
}

Configures your DataSync task to run on a schedule (at a minimum interval of 1 hour).

type nonrec tag_value = string
type nonrec log_group_arn = string
type nonrec manifest_action =
  1. | TRANSFER
type nonrec manifest_format =
  1. | CSV
type nonrec s3_subdirectory = string
type nonrec iam_role_arn = string
type nonrec s3_bucket_arn = string
type nonrec s3_object_version_id = string
type nonrec s3_manifest_config = {
  1. manifest_object_version_id : s3_object_version_id option;
    (*

    Specifies the object version ID of the manifest that you want DataSync to use. If you don't set this, DataSync uses the latest version of the object.

    *)
  2. s3_bucket_arn : s3_bucket_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the S3 bucket where you're hosting your manifest.

    *)
  3. bucket_access_role_arn : iam_role_arn;
    (*

    Specifies the Identity and Access Management (IAM) role that allows DataSync to access your manifest. For more information, see Providing DataSync access to your manifest.

    *)
  4. manifest_object_path : s3_subdirectory;
    (*

    Specifies the Amazon S3 object key of your manifest. This can include a prefix (for example, prefix/my-manifest.csv).

    *)
}

Specifies the S3 bucket where you're hosting the manifest that you want DataSync to use. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.

type nonrec source_manifest_config = {
  1. s3 : s3_manifest_config;
    (*

    Specifies the S3 bucket where you're hosting your manifest.

    *)
}

Specifies the manifest that you want DataSync to use and where it's hosted. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.

type nonrec manifest_config = {
  1. source : source_manifest_config option;
    (*

    Specifies the manifest that you want DataSync to use and where it's hosted.

    You must specify this parameter if you're configuring a new manifest on or after February 7, 2024.

    If you don't, you'll get a 400 status code and ValidationException error stating that you're missing the IAM role for DataSync to access the S3 bucket where you're hosting your manifest. For more information, see Providing DataSync access to your manifest.

    *)
  2. format : manifest_format option;
    (*

    Specifies the file format of your manifest. For more information, see Creating a manifest.

    *)
  3. action : manifest_action option;
    (*

    Specifies what DataSync uses the manifest for.

    *)
}

Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.

type nonrec report_destination_s3 = {
  1. bucket_access_role_arn : iam_role_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the IAM policy that allows DataSync to upload a task report to your S3 bucket. For more information, see Allowing DataSync to upload a task report to an Amazon S3 bucket.

    *)
  2. s3_bucket_arn : s3_bucket_arn;
    (*

    Specifies the ARN of the S3 bucket where DataSync uploads your report.

    *)
  3. subdirectory : s3_subdirectory option;
    (*

    Specifies a bucket prefix for your report.

    *)
}

Specifies the Amazon S3 bucket where DataSync uploads your task report.

type nonrec report_destination = {
  1. s3 : report_destination_s3 option;
    (*

    Specifies the Amazon S3 bucket where DataSync uploads your task report.

    *)
}

Specifies where DataSync uploads your task report.

type nonrec report_output_type =
  1. | STANDARD
  2. | SUMMARY_ONLY
type nonrec report_level =
  1. | SUCCESSES_AND_ERRORS
  2. | ERRORS_ONLY
type nonrec object_version_ids =
  1. | NONE
  2. | INCLUDE
type nonrec report_override = {
  1. report_level : report_level option;
    (*

    Specifies whether your task report includes errors only or successes and errors.

    For example, your report might mostly include only what didn't go well in your transfer (ERRORS_ONLY). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS).

    *)
}

Specifies the level of detail for a particular aspect of your DataSync task report.

type nonrec report_overrides = {
  1. skipped : report_override option;
    (*

    Specifies the level of reporting for the files, objects, and directories that DataSync attempted to skip during your transfer.

    *)
  2. deleted : report_override option;
    (*

    Specifies the level of reporting for the files, objects, and directories that DataSync attempted to delete in your destination location. This only applies if you configure your task to delete data in the destination that isn't in the source.

    *)
  3. verified : report_override option;
    (*

    Specifies the level of reporting for the files, objects, and directories that DataSync attempted to verify at the end of your transfer.

    *)
  4. transferred : report_override option;
    (*

    Specifies the level of reporting for the files, objects, and directories that DataSync attempted to transfer.

    *)
}

The level of detail included in each aspect of your DataSync task report.

type nonrec task_report_config = {
  1. overrides : report_overrides option;
    (*

    Customizes the reporting level for aspects of your task report. For example, your report might generally only include errors, but you could specify that you want a list of successes and errors just for the files that DataSync attempted to delete in your destination location.

    *)
  2. object_version_ids : object_version_ids option;
    (*

    Specifies whether your task report includes the new version of each object transferred into an S3 bucket. This only applies if you enable versioning on your bucket. Keep in mind that setting this to INCLUDE can increase the duration of your task execution.

    *)
  3. report_level : report_level option;
    (*

    Specifies whether you want your task report to include only what went wrong with your transfer or a list of what succeeded and didn't.

    • ERRORS_ONLY: A report shows what DataSync was unable to transfer, skip, verify, and delete.
    • SUCCESSES_AND_ERRORS: A report shows what DataSync was able and unable to transfer, skip, verify, and delete.
    *)
  4. output_type : report_output_type option;
    (*

    Specifies the type of task report that you want:

    • SUMMARY_ONLY: Provides necessary details about your task, including the number of files, objects, and directories transferred and transfer duration.
    • STANDARD: Provides complete details about your task, including a full list of files, objects, and directories that were transferred, skipped, verified, and more.
    *)
  5. destination : report_destination option;
    (*

    Specifies the Amazon S3 bucket where DataSync uploads your task report. For more information, see Task reports.

    *)
}

Specifies how you want to configure a task report, which provides detailed information about for your DataSync transfer.

For more information, see Task reports.

type nonrec update_task_request = {
  1. task_report_config : task_report_config option;
    (*

    Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports.

    When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission.

    To remove a task report configuration, specify this parameter as empty.

    *)
  2. manifest_config : manifest_config option;
    (*

    Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.

    When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission.

    To remove a manifest configuration, specify this parameter as empty.

    *)
  3. includes : filter_list option;
    (*

    Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.

    *)
  4. cloud_watch_log_group_arn : log_group_arn option;
    (*

    Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.

    For Enhanced mode tasks, you must use /aws/datasync as your log group name. For example:

    arn:aws:logs:us-east-1:111222333444:log-group:/aws/datasync:*

    For more information, see Monitoring data transfers with CloudWatch Logs.

    *)
  5. name : tag_value option;
    (*

    Specifies the name of your task.

    *)
  6. schedule : task_schedule option;
    (*

    Specifies a schedule for when you want your task to run. For more information, see Scheduling your task.

    *)
  7. excludes : filter_list option;
    (*

    Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.

    *)
  8. options : options option;
  9. task_arn : task_arn;
    (*

    Specifies the ARN of the task that you want to update.

    *)
}

UpdateTaskResponse

type nonrec update_task_execution_response = unit
type nonrec task_execution_arn = string
type nonrec update_task_execution_request = {
  1. options : options;
  2. task_execution_arn : task_execution_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the task execution that you're updating.

    *)
}
type nonrec invalid_request_exception = {
  1. datasync_error_code : string_ option;
  2. error_code : string_ option;
  3. message : string_ option;
}

This exception is thrown when the client submits a malformed request.

type nonrec internal_exception = {
  1. error_code : string_ option;
  2. message : string_ option;
}

This exception is thrown when an error occurs in the DataSync service.

type nonrec update_smb_domain = string
type nonrec update_location_smb_response = unit
type nonrec location_arn = string
type nonrec smb_subdirectory = string
type nonrec server_hostname = string
type nonrec smb_user = string
type nonrec smb_domain = string
type nonrec smb_password = string
type nonrec secret_arn = string
type nonrec kms_key_arn = string
type nonrec cmk_secret_config = {
  1. kms_key_arn : kms_key_arn option;
    (*

    Specifies the ARN for the customer-managed KMS key that DataSync uses to encrypt the DataSync-managed secret stored for SecretArn. DataSync provides this key to Secrets Manager.

    *)
  2. secret_arn : secret_arn option;
    (*

    Specifies the ARN for the DataSync-managed Secrets Manager secret that that is used to access a specific storage location. This property is generated by DataSync and is read-only. DataSync encrypts this secret with the KMS key that you specify for KmsKeyArn.

    *)
}

Specifies configuration information for a DataSync-managed secret, such as an authentication token, secret key, password, or Kerberos keytab that DataSync uses to access a specific storage location, with a customer-managed KMS key.

You can use either CmkSecretConfig or CustomSecretConfig to provide credentials for a CreateLocation request. Do not provide both parameters for the same request.

type nonrec iam_role_arn_or_empty_string = string
type nonrec custom_secret_config = {
  1. secret_access_role_arn : iam_role_arn_or_empty_string option;
    (*

    Specifies the ARN for the Identity and Access Management role that DataSync uses to access the secret specified for SecretArn.

    *)
  2. secret_arn : secret_arn option;
    (*

    Specifies the ARN for an Secrets Manager secret.

    *)
}

Specifies configuration information for a customer-managed Secrets Manager secret where a storage location credentials is stored in Secrets Manager as plain text (for authentication token, secret key, or password) or as binary (for Kerberos keytab). This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret.

You can use either CmkSecretConfig or CustomSecretConfig to provide credentials for a CreateLocation request. Do not provide both parameters for the same request.

type nonrec agent_arn = string
type nonrec agent_arn_list = agent_arn list
type nonrec smb_version =
  1. | SMB2_0
  2. | SMB1
  3. | SMB3
  4. | SMB2
  5. | AUTOMATIC
type nonrec smb_mount_options = {
  1. version : smb_version option;
    (*

    By default, DataSync automatically chooses an SMB protocol version based on negotiation with your SMB file server. You also can configure DataSync to use a specific SMB version, but we recommend doing this only if DataSync has trouble negotiating with the SMB file server automatically.

    These are the following options for configuring the SMB version:

    • AUTOMATIC (default): DataSync and the SMB file server negotiate the highest version of SMB that they mutually support between 2.1 and 3.1.1.

      This is the recommended option. If you instead choose a specific version that your file server doesn't support, you may get an Operation Not Supported error.

    • SMB3: Restricts the protocol negotiation to only SMB version 3.0.2.
    • SMB2: Restricts the protocol negotiation to only SMB version 2.1.
    • SMB2_0: Restricts the protocol negotiation to only SMB version 2.0.
    • SMB1: Restricts the protocol negotiation to only SMB version 1.0.

      The SMB1 option isn't available when creating an Amazon FSx for NetApp ONTAP location.

    *)
}

Specifies the version of the Server Message Block (SMB) protocol that DataSync uses to access an SMB file server.

type nonrec smb_authentication_type =
  1. | KERBEROS
  2. | NTLM
type nonrec server_ip_address = string
type nonrec dns_ip_list = server_ip_address list
type nonrec kerberos_principal = string
type nonrec kerberos_keytab_file = bytes
type nonrec kerberos_krb5_conf_file = bytes
type nonrec update_location_smb_request = {
  1. kerberos_krb5_conf : kerberos_krb5_conf_file option;
    (*

    Specifies a Kerberos configuration file (krb5.conf) that defines your Kerberos realm configuration.

    The file must be base64 encoded. If you're using the CLI, the encoding is done for you.

    *)
  2. kerberos_keytab : kerberos_keytab_file option;
    (*

    Specifies your Kerberos key table (keytab) file, which includes mappings between your Kerberos principal and encryption keys.

    To avoid task execution errors, make sure that the Kerberos principal that you use to create the keytab file matches exactly what you specify for KerberosPrincipal.

    *)
  3. kerberos_principal : kerberos_principal option;
    (*

    Specifies a Kerberos prinicpal, which is an identity in your Kerberos realm that has permission to access the files, folders, and file metadata in your SMB file server.

    A Kerberos principal might look like HOST/kerberosuser@MYDOMAIN.ORG.

    Principal names are case sensitive. Your DataSync task execution will fail if the principal that you specify for this parameter doesn’t exactly match the principal that you use to create the keytab file.

    *)
  4. dns_ip_addresses : dns_ip_list option;
    (*

    Specifies the IP addresses (IPv4 or IPv6) for the DNS servers that your SMB file server belongs to. This parameter applies only if AuthenticationType is set to KERBEROS.

    If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right SMB file server.

    *)
  5. authentication_type : smb_authentication_type option;
    (*

    Specifies the authentication protocol that DataSync uses to connect to your SMB file server. DataSync supports NTLM (default) and KERBEROS authentication.

    For more information, see Providing DataSync access to SMB file servers.

    *)
  6. mount_options : smb_mount_options option;
  7. agent_arns : agent_arn_list option;
    (*

    Specifies the DataSync agent (or agents) that can connect to your SMB file server. You specify an agent by using its Amazon Resource Name (ARN).

    *)
  8. custom_secret_config : custom_secret_config option;
    (*

    Specifies configuration information for a customer-managed secret, such as a Password or KerberosKeytab or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed Identity and Access Management (IAM) role that provides access to the secret.

    *)
  9. cmk_secret_config : cmk_secret_config option;
    (*

    Specifies configuration information for a DataSync-managed secret, such as a Password or KerberosKeytab or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key.

    *)
  10. password : smb_password option;
    (*

    Specifies the password of the user who can mount your SMB file server and has permission to access the files and folders involved in your transfer. This parameter applies only if AuthenticationType is set to NTLM.

    *)
  11. domain : smb_domain option;
    (*

    Specifies the Windows domain name that your SMB file server belongs to. This parameter applies only if AuthenticationType is set to NTLM.

    If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right file server.

    *)
  12. user : smb_user option;
    (*

    Specifies the user name that can mount your SMB file server and has permission to access the files and folders involved in your transfer. This parameter applies only if AuthenticationType is set to NTLM.

    For information about choosing a user with the right level of access for your transfer, see Providing DataSync access to SMB file servers.

    *)
  13. server_hostname : server_hostname option;
    (*

    Specifies the domain name or IP address (IPv4 or IPv6) of the SMB file server that your DataSync agent connects to.

    If you're using Kerberos authentication, you must specify a domain name.

    *)
  14. subdirectory : smb_subdirectory option;
    (*

    Specifies the name of the share exported by your SMB file server where DataSync will read or write data. You can include a subdirectory in the share path (for example, /path/to/subdirectory). Make sure that other SMB clients in your network can also mount this path.

    To copy all data in the specified subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see Providing DataSync access to SMB file servers.

    *)
  15. location_arn : location_arn;
    (*

    Specifies the ARN of the SMB location that you want to update.

    *)
}
type nonrec update_location_s3_response = unit
type nonrec s3_storage_class =
  1. | GLACIER_INSTANT_RETRIEVAL
  2. | OUTPOSTS
  3. | DEEP_ARCHIVE
  4. | GLACIER
  5. | INTELLIGENT_TIERING
  6. | ONEZONE_IA
  7. | STANDARD_IA
  8. | STANDARD
type nonrec s3_config = {
  1. bucket_access_role_arn : iam_role_arn;
    (*

    Specifies the ARN of the IAM role that DataSync uses to access your S3 bucket.

    *)
}

Specifies the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.

For more information, see Providing DataSync access to S3 buckets.

type nonrec update_location_s3_request = {
  1. s3_config : s3_config option;
  2. s3_storage_class : s3_storage_class option;
    (*

    Specifies the storage class that you want your objects to use when Amazon S3 is a transfer destination.

    For buckets in Amazon Web Services Regions, the storage class defaults to STANDARD. For buckets on Outposts, the storage class defaults to OUTPOSTS.

    For more information, see Storage class considerations with Amazon S3 transfers.

    *)
  3. subdirectory : s3_subdirectory option;
    (*

    Specifies a prefix in the S3 bucket that DataSync reads from or writes to (depending on whether the bucket is a source or destination location).

    DataSync can't transfer objects with a prefix that begins with a slash (/) or includes //, /./, or /../ patterns. For example:

    • /photos
    • photos//2006/January
    • photos/./2006/February
    • photos/../2006/March
    *)
  4. location_arn : location_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the Amazon S3 transfer location that you're updating.

    *)
}
type nonrec update_location_object_storage_response = unit
type nonrec object_storage_server_port = int
type nonrec object_storage_server_protocol =
  1. | HTTP
  2. | HTTPS
type nonrec object_storage_access_key = string
type nonrec object_storage_secret_key = string
type nonrec object_storage_certificate = bytes
type nonrec update_location_object_storage_request = {
  1. custom_secret_config : custom_secret_config option;
    (*

    Specifies configuration information for a customer-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed Identity and Access Management (IAM) role that provides access to the secret.

    *)
  2. cmk_secret_config : cmk_secret_config option;
    (*

    Specifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key.

    *)
  3. server_certificate : object_storage_certificate option;
    (*

    Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single .pem file with a full certificate chain (for example, file:///home/user/.ssh/object_storage_certificates.pem).

    The certificate chain might include:

    • The object storage system's certificate
    • All intermediate certificates (if there are any)
    • The root certificate of the signing CA

    You can concatenate your certificates into a .pem file (which can be up to 32768 bytes before base64 encoding). The following example cat command creates an object_storage_certificates.pem file that includes three certificates:

    cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem

    To use this parameter, configure ServerProtocol to HTTPS.

    Updating this parameter doesn't interfere with tasks that you have in progress.

    *)
  4. agent_arns : agent_arn_list option;
    (*

    (Optional) Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your object storage system. If you are setting up an agentless cross-cloud transfer, you do not need to specify a value for this parameter.

    You cannot add or remove agents from a storage location after you initially create it.

    *)
  5. secret_key : object_storage_secret_key option;
    (*

    Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.

    If you provide a secret using SecretKey, but do not provide secret configuration details using CmkSecretConfig or CustomSecretConfig, then DataSync stores the token using your Amazon Web Services account's Secrets Manager secret.

    *)
  6. access_key : object_storage_access_key option;
    (*

    Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.

    *)
  7. server_hostname : server_hostname option;
    (*

    Specifies the domain name or IP address (IPv4 or IPv6) of the object storage server that your DataSync agent connects to.

    *)
  8. subdirectory : s3_subdirectory option;
    (*

    Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.

    *)
  9. server_protocol : object_storage_server_protocol option;
    (*

    Specifies the protocol that your object storage server uses to communicate.

    *)
  10. server_port : object_storage_server_port option;
    (*

    Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).

    *)
  11. location_arn : location_arn;
    (*

    Specifies the ARN of the object storage system location that you're updating.

    *)
}
type nonrec update_location_nfs_response = unit
type nonrec nfs_subdirectory = string
type nonrec on_prem_config = {
  1. agent_arns : agent_arn_list;
    (*

    The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your NFS file server.

    You can specify more than one agent. For more information, see Using multiple DataSync agents.

    *)
}

The DataSync agents that can connect to your Network File System (NFS) file server.

type nonrec nfs_version =
  1. | NFS4_1
  2. | NFS4_0
  3. | NFS3
  4. | AUTOMATIC
type nonrec nfs_mount_options = {
  1. version : nfs_version option;
    (*

    Specifies the NFS version that you want DataSync to use when mounting your NFS share. If the server refuses to use the version specified, the task fails.

    You can specify the following options:

    • AUTOMATIC (default): DataSync chooses NFS version 4.1.
    • NFS3: Stateless protocol version that allows for asynchronous writes on the server.
    • NFSv4_0: Stateful, firewall-friendly protocol version that supports delegations and pseudo file systems.
    • NFSv4_1: Stateful protocol version that supports sessions, directory delegations, and parallel data processing. NFS version 4.1 also includes all features available in version 4.0.

    DataSync currently only supports NFS version 3 with Amazon FSx for NetApp ONTAP locations.

    *)
}

Specifies how DataSync can access a location using the NFS protocol.

type nonrec update_location_nfs_request = {
  1. mount_options : nfs_mount_options option;
  2. on_prem_config : on_prem_config option;
  3. server_hostname : server_hostname option;
    (*

    Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.

    *)
  4. subdirectory : nfs_subdirectory option;
    (*

    Specifies the export path in your NFS file server that you want DataSync to mount.

    This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see Accessing NFS file servers.

    *)
  5. location_arn : location_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the NFS transfer location that you want to update.

    *)
}
type nonrec update_location_hdfs_response = unit
type nonrec hdfs_subdirectory = string
type nonrec hdfs_server_hostname = string
type nonrec hdfs_server_port = int
type nonrec hdfs_name_node = {
  1. port : hdfs_server_port;
    (*

    The port that the NameNode uses to listen to client requests.

    *)
  2. hostname : hdfs_server_hostname;
    (*

    The hostname of the NameNode in the HDFS cluster. This value is the IP address or Domain Name Service (DNS) name of the NameNode. An agent that's installed on-premises uses this hostname to communicate with the NameNode in the network.

    *)
}

The NameNode of the Hadoop Distributed File System (HDFS). The NameNode manages the file system's namespace. The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes.

type nonrec hdfs_name_node_list = hdfs_name_node list
type nonrec hdfs_block_size = int
type nonrec hdfs_replication_factor = int
type nonrec kms_key_provider_uri = string
type nonrec hdfs_rpc_protection =
  1. | PRIVACY
  2. | INTEGRITY
  3. | AUTHENTICATION
  4. | DISABLED
type nonrec hdfs_data_transfer_protection =
  1. | PRIVACY
  2. | INTEGRITY
  3. | AUTHENTICATION
  4. | DISABLED
type nonrec qop_configuration = {
  1. data_transfer_protection : hdfs_data_transfer_protection option;
    (*

    The data transfer protection setting configured on the HDFS cluster. This setting corresponds to your dfs.data.transfer.protection setting in the hdfs-site.xml file on your Hadoop cluster.

    *)
  2. rpc_protection : hdfs_rpc_protection option;
    (*

    The RPC protection setting configured on the HDFS cluster. This setting corresponds to your hadoop.rpc.protection setting in your core-site.xml file on your Hadoop cluster.

    *)
}

The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer privacy settings configured on the Hadoop Distributed File System (HDFS) cluster.

type nonrec hdfs_authentication_type =
  1. | KERBEROS
  2. | SIMPLE
type nonrec hdfs_user = string
type nonrec update_location_hdfs_request = {
  1. custom_secret_config : custom_secret_config option;
    (*

    Specifies configuration information for a customer-managed secret, such as a KerberosKeytab or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed Identity and Access Management (IAM) role that provides access to the secret.

    *)
  2. cmk_secret_config : cmk_secret_config option;
    (*

    Specifies configuration information for a DataSync-managed secret, such as a KerberosKeytab or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key.

    *)
  3. agent_arns : agent_arn_list option;
    (*

    The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS cluster.

    *)
  4. kerberos_krb5_conf : kerberos_krb5_conf_file option;
    (*

    The krb5.conf file that contains the Kerberos configuration information. You can load the krb5.conf file by providing the file's address. If you're using the CLI, it performs the base64 encoding for you. Otherwise, provide the base64-encoded text.

    *)
  5. kerberos_keytab : kerberos_keytab_file option;
    (*

    The Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys. You can load the keytab from a file by providing the file's address.

    *)
  6. kerberos_principal : kerberos_principal option;
    (*

    The Kerberos principal with access to the files and folders on the HDFS cluster.

    *)
  7. simple_user : hdfs_user option;
    (*

    The user name used to identify the client on the host operating system.

    *)
  8. authentication_type : hdfs_authentication_type option;
    (*

    The type of authentication used to determine the identity of the user.

    *)
  9. qop_configuration : qop_configuration option;
    (*

    The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer privacy settings configured on the Hadoop Distributed File System (HDFS) cluster.

    *)
  10. kms_key_provider_uri : kms_key_provider_uri option;
    (*

    The URI of the HDFS cluster's Key Management Server (KMS).

    *)
  11. replication_factor : hdfs_replication_factor option;
    (*

    The number of DataNodes to replicate the data to when writing to the HDFS cluster.

    *)
  12. block_size : hdfs_block_size option;
    (*

    The size of the data blocks to write into the HDFS cluster.

    *)
  13. name_nodes : hdfs_name_node_list option;
    (*

    The NameNode that manages the HDFS namespace. The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes. You can use only one NameNode.

    *)
  14. subdirectory : hdfs_subdirectory option;
    (*

    A subdirectory in the HDFS cluster. This subdirectory is used to read data from or write data to the HDFS cluster.

    *)
  15. location_arn : location_arn;
    (*

    The Amazon Resource Name (ARN) of the source HDFS cluster location.

    *)
}
type nonrec update_location_fsx_windows_response = unit
type nonrec fsx_windows_subdirectory = string
type nonrec update_location_fsx_windows_request = {
  1. custom_secret_config : custom_secret_config option;
    (*

    Specifies configuration information for a customer-managed secret, such as a Password or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed Identity and Access Management (IAM) role that provides access to the secret.

    *)
  2. cmk_secret_config : cmk_secret_config option;
    (*

    Specifies configuration information for a DataSync-managed secret, such as a Password or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key.

    *)
  3. password : smb_password option;
    (*

    Specifies the password of the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system.

    *)
  4. user : smb_user option;
    (*

    Specifies the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system.

    For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations.

    *)
  5. domain : update_smb_domain option;
    (*

    Specifies the name of the Windows domain that your FSx for Windows File Server file system belongs to.

    If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file system.

    *)
  6. subdirectory : fsx_windows_subdirectory option;
    (*

    Specifies a mount path for your file system using forward slashes. DataSync uses this subdirectory to read or write data (depending on whether the file system is a source or destination location).

    *)
  7. location_arn : location_arn;
    (*

    Specifies the ARN of the FSx for Windows File Server transfer location that you're updating.

    *)
}
type nonrec update_location_fsx_open_zfs_response = unit
type nonrec fsx_protocol_nfs = {
  1. mount_options : nfs_mount_options option;
}

Specifies the Network File System (NFS) protocol configuration that DataSync uses to access your FSx for OpenZFS file system or FSx for ONTAP file system's storage virtual machine (SVM).

type nonrec managed_secret_config = {
  1. secret_arn : secret_arn option;
    (*

    Specifies the ARN for an Secrets Manager secret.

    *)
}

Specifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location. DataSync uses the default Amazon Web Services-managed KMS key to encrypt this secret in Secrets Manager.

type nonrec fsx_protocol_smb = {
  1. custom_secret_config : custom_secret_config option;
    (*

    Specifies configuration information for a customer-managed Secrets Manager secret where the password for an FSx for ONTAP storage location (using SMB) is stored in plain text, in Secrets Manager. This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. For more information, see Using a secret that you manage.

    You can use either CmkSecretConfig (with Password) or CustomSecretConfig (without Password) to provide credentials for a CreateLocationFsxOntap request. Do not provide both parameters for the same request.

    *)
  2. cmk_secret_config : cmk_secret_config option;
    (*

    Specifies configuration information for a DataSync-managed secret, which includes the password that DataSync uses to access a specific FSx for ONTAP storage location (using SMB), with a customer-managed KMS key.

    When you include this parameter as part of a CreateLocationFsxOntap request, you provide only the KMS key ARN. DataSync uses this KMS key together with the Password you specify for to create a DataSync-managed secret to store the location access credentials.

    Make sure that DataSync has permission to access the KMS key that you specify. For more information, see Using a service-managed secret encrypted with a custom KMS key.

    You can use either CmkSecretConfig (with Password) or CustomSecretConfig (without Password) to provide credentials for a CreateLocationFsxOntap request. Do not provide both parameters for the same request.

    *)
  3. managed_secret_config : managed_secret_config option;
    (*

    Describes configuration information for a DataSync-managed secret, such as a Password that DataSync uses to access a specific storage location. DataSync uses the default Amazon Web Services-managed KMS key to encrypt this secret in Secrets Manager.

    Do not provide this for a CreateLocation request. ManagedSecretConfig is a ReadOnly property and is only be populated in the DescribeLocation response.

    *)
  4. user : smb_user;
    (*

    Specifies a user that can mount and access the files, folders, and metadata in your SVM.

    For information about choosing a user with the right level of access for your transfer, see Using the SMB protocol.

    *)
  5. password : smb_password option;
    (*

    Specifies the password of a user who has permission to access your SVM.

    *)
  6. mount_options : smb_mount_options option;
  7. domain : smb_domain option;
    (*

    Specifies the name of the Windows domain that your storage virtual machine (SVM) belongs to.

    If you have multiple domains in your environment, configuring this setting makes sure that DataSync connects to the right SVM.

    If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right SVM.

    *)
}

Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your Amazon FSx for NetApp ONTAP file system's storage virtual machine (SVM). For more information, see Providing DataSync access to FSx for ONTAP file systems.

type nonrec fsx_protocol = {
  1. sm_b : fsx_protocol_smb option;
    (*

    Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your FSx for ONTAP file system's SVM.

    *)
  2. nf_s : fsx_protocol_nfs option;
    (*

    Specifies the Network File System (NFS) protocol configuration that DataSync uses to access your FSx for OpenZFS file system or FSx for ONTAP file system's storage virtual machine (SVM).

    *)
}

Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.

type nonrec update_location_fsx_open_zfs_request = {
  1. subdirectory : smb_subdirectory option;
    (*

    Specifies a subdirectory in the location's path that must begin with /fsx. DataSync uses this subdirectory to read or write data (depending on whether the file system is a source or destination location).

    *)
  2. protocol : fsx_protocol option;
  3. location_arn : location_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the FSx for OpenZFS transfer location that you're updating.

    *)
}
type nonrec update_location_fsx_ontap_response = unit
type nonrec fsx_update_protocol_smb = {
  1. custom_secret_config : custom_secret_config option;
    (*

    Specifies configuration information for a customer-managed secret, such as a Password or set of credentials that DataSync uses to access a specific transfer location. This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret.

    *)
  2. cmk_secret_config : cmk_secret_config option;
    (*

    Specifies configuration information for a DataSync-managed secret, such as a Password or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key.

    *)
  3. user : smb_user option;
    (*

    Specifies a user that can mount and access the files, folders, and metadata in your SVM.

    For information about choosing a user with the right level of access for your transfer, see Using the SMB protocol.

    *)
  4. password : smb_password option;
    (*

    Specifies the password of a user who has permission to access your SVM.

    *)
  5. mount_options : smb_mount_options option;
  6. domain : update_smb_domain option;
    (*

    Specifies the name of the Windows domain that your storage virtual machine (SVM) belongs to.

    If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right SVM.

    *)
}

Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your Amazon FSx for NetApp ONTAP file system's storage virtual machine (SVM). For more information, see Providing DataSync access to FSx for ONTAP file systems.

type nonrec fsx_update_protocol = {
  1. sm_b : fsx_update_protocol_smb option;
    (*

    Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your FSx for ONTAP file system's storage virtual machine (SVM).

    *)
  2. nf_s : fsx_protocol_nfs option;
}

Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.

You can't update the Network File System (NFS) protocol configuration for FSx for ONTAP locations. DataSync currently only supports NFS version 3 with this location type.

type nonrec fsx_ontap_subdirectory = string
type nonrec update_location_fsx_ontap_request = {
  1. subdirectory : fsx_ontap_subdirectory option;
    (*

    Specifies a path to the file share in the storage virtual machine (SVM) where you want to transfer data to or from.

    You can specify a junction path (also known as a mount point), qtree path (for NFS file shares), or share name (for SMB file shares). For example, your mount path might be /vol1, /vol1/tree1, or /share1.

    Don't specify a junction path in the SVM's root volume. For more information, see Managing FSx for ONTAP storage virtual machines in the Amazon FSx for NetApp ONTAP User Guide.

    *)
  2. protocol : fsx_update_protocol option;
    (*

    Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.

    *)
  3. location_arn : location_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the FSx for ONTAP transfer location that you're updating.

    *)
}
type nonrec update_location_fsx_lustre_response = unit
type nonrec update_location_fsx_lustre_request = {
  1. subdirectory : smb_subdirectory option;
    (*

    Specifies a mount path for your FSx for Lustre file system. The path can include subdirectories.

    When the location is used as a source, DataSync reads data from the mount path. When the location is used as a destination, DataSync writes data to the mount path. If you don't include this parameter, DataSync uses the file system's root directory (/).

    *)
  2. location_arn : location_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the FSx for Lustre transfer location that you're updating.

    *)
}
type nonrec update_location_efs_response = unit
type nonrec efs_subdirectory = string
type nonrec efs_in_transit_encryption =
  1. | TLS1_2
  2. | NONE
type nonrec update_location_efs_request = {
  1. in_transit_encryption : efs_in_transit_encryption option;
    (*

    Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it transfers data to or from your Amazon EFS file system.

    If you specify an access point using AccessPointArn or an IAM role using FileSystemAccessRoleArn, you must set this parameter to TLS1_2.

    *)
  2. file_system_access_role_arn : updated_efs_iam_role_arn option;
    (*

    Specifies an Identity and Access Management (IAM) role that allows DataSync to access your Amazon EFS file system.

    For information on creating this role, see Creating a DataSync IAM role for Amazon EFS file system access.

    *)
  3. access_point_arn : updated_efs_access_point_arn option;
    (*

    Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to mount your Amazon EFS file system.

    For more information, see Accessing restricted Amazon EFS file systems.

    *)
  4. subdirectory : efs_subdirectory option;
    (*

    Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data on your file system (depending on if this is a source or destination location).

    By default, DataSync uses the root directory (or access point if you provide one by using AccessPointArn). You can also include subdirectories using forward slashes (for example, /path/to/folder).

    *)
  5. location_arn : location_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the Amazon EFS transfer location that you're updating.

    *)
}
type nonrec update_location_azure_blob_response = unit
type nonrec azure_blob_subdirectory = string
type nonrec azure_blob_authentication_type =
  1. | NONE
  2. | SAS
type nonrec azure_blob_sas_token = string
type nonrec azure_blob_sas_configuration = {
  1. token : azure_blob_sas_token;
    (*

    Specifies a SAS token that provides permissions to access your Azure Blob Storage.

    The token is part of the SAS URI string that comes after the storage resource URI and a question mark. A token looks something like this:

    sp=r&st=2023-12-20T14:54:52Z&se=2023-12-20T22:54:52Z&spr=https&sv=2021-06-08&sr=c&sig=aBBKDWQvyuVcTPH9EBp%2FXTI9E%2F%2Fmq171%2BZU178wcwqU%3D

    *)
}

The shared access signature (SAS) configuration that allows DataSync to access your Microsoft Azure Blob Storage.

For more information, see SAS tokens for accessing your Azure Blob Storage.

type nonrec azure_blob_type =
  1. | BLOCK
type nonrec azure_access_tier =
  1. | ARCHIVE
  2. | COOL
  3. | HOT
type nonrec update_location_azure_blob_request = {
  1. custom_secret_config : custom_secret_config option;
    (*

    Specifies configuration information for a customer-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed Identity and Access Management (IAM) role that provides access to the secret.

    *)
  2. cmk_secret_config : cmk_secret_config option;
    (*

    Specifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key.

    *)
  3. agent_arns : agent_arn_list option;
    (*

    (Optional) Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob Storage container. If you are setting up an agentless cross-cloud transfer, you do not need to specify a value for this parameter.

    You can specify more than one agent. For more information, see Using multiple agents for your transfer.

    You cannot add or remove agents from a storage location after you initially create it.

    *)
  4. access_tier : azure_access_tier option;
    (*

    Specifies the access tier that you want your objects or files transferred into. This only applies when using the location as a transfer destination. For more information, see Access tiers.

    *)
  5. blob_type : azure_blob_type option;
    (*

    Specifies the type of blob that you want your objects or files to be when transferring them into Azure Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more information on blob types, see the Azure Blob Storage documentation.

    *)
  6. sas_configuration : azure_blob_sas_configuration option;
    (*

    Specifies the SAS configuration that allows DataSync to access your Azure Blob Storage.

    *)
  7. authentication_type : azure_blob_authentication_type option;
    (*

    Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob storage using a shared access signature (SAS).

    *)
  8. subdirectory : azure_blob_subdirectory option;
    (*

    Specifies path segments if you want to limit your transfer to a virtual directory in your container (for example, /my/images).

    *)
  9. location_arn : location_arn;
    (*

    Specifies the ARN of the Azure Blob Storage transfer location that you're updating.

    *)
}
type nonrec update_agent_response = unit
type nonrec update_agent_request = {
  1. name : tag_value option;
    (*

    The name that you want to use to configure the agent.

    *)
  2. agent_arn : agent_arn;
    (*

    The Amazon Resource Name (ARN) of the agent to update.

    *)
}

UpdateAgentRequest

type nonrec untag_resource_response = unit
type nonrec taggable_resource_arn = string
type nonrec tag_key = string
type nonrec tag_key_list = tag_key list
type nonrec untag_resource_request = {
  1. keys : tag_key_list;
    (*

    Specifies the keys in the tags that you want to remove.

    *)
  2. resource_arn : taggable_resource_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the resource to remove the tags from.

    *)
}

UntagResourceRequest

type nonrec time = Smaws_Lib.CoreTypes.Timestamp.t
type nonrec task_status =
  1. | UNAVAILABLE
  2. | RUNNING
  3. | QUEUED
  4. | CREATING
  5. | AVAILABLE
type nonrec schedule_disabled_reason = string
type nonrec schedule_disabled_by =
  1. | SERVICE
  2. | USER
type nonrec task_schedule_details = {
  1. disabled_by : schedule_disabled_by option;
    (*

    Indicates how your task schedule was disabled.

    • USER - Your schedule was manually disabled by using the UpdateTask operation or DataSync console.
    • SERVICE - Your schedule was automatically disabled by DataSync because the task failed repeatedly with the same error.
    *)
  2. disabled_reason : schedule_disabled_reason option;
    (*

    Provides a reason if the task schedule is disabled.

    If your schedule is disabled by USER, you see a Manually disabled by user. message.

    If your schedule is disabled by SERVICE, you see an error message to help you understand why the task keeps failing. For information on resolving DataSync errors, see Troubleshooting issues with DataSync transfers.

    *)
  3. status_update_time : time option;
    (*

    Indicates the last time the status of your task schedule changed. For example, if DataSync automatically disables your schedule because of a repeated error, you can see when the schedule was disabled.

    *)
}

Provides information about your DataSync task schedule.

type nonrec task_mode =
  1. | ENHANCED
  2. | BASIC
type nonrec task_list_entry = {
  1. task_mode : task_mode option;
    (*

    The task mode that you're using. For more information, see Choosing a task mode for your data transfer.

    *)
  2. name : tag_value option;
    (*

    The name of the task.

    *)
  3. status : task_status option;
    (*

    The status of the task.

    *)
  4. task_arn : task_arn option;
    (*

    The Amazon Resource Name (ARN) of the task.

    *)
}

Represents a single entry in a list of tasks. TaskListEntry returns an array that contains a list of tasks when the ListTasks operation is called. A task includes the source and destination file systems to sync and the options to use for the tasks.

type nonrec task_list = task_list_entry list
type nonrec task_filter_name =
  1. | CreationTime
  2. | LocationId
type nonrec filter_attribute_value = string
type nonrec filter_values = filter_attribute_value list
type nonrec operator =
  1. | BEGINS_WITH
  2. | NOT_CONTAINS
  3. | CONTAINS
  4. | GT
  5. | GE
  6. | LT
  7. | LE
  8. | IN
  9. | NE
  10. | EQ
type nonrec task_filter = {
  1. operator : operator;
    (*

    The operator that is used to compare filter values (for example, Equals or Contains).

    *)
  2. values : filter_values;
    (*

    The values that you want to filter for. For example, you might want to display only tasks for a specific destination location.

    *)
  3. name : task_filter_name;
    (*

    The name of the filter being used. Each API call supports a list of filters that are available for it. For example, LocationId for ListTasks.

    *)
}

You can use API filters to narrow down the list of resources returned by ListTasks. For example, to retrieve all tasks on a source location, you can use ListTasks with filter name LocationId and Operator Equals with the ARN for the location.

For more information, see filtering DataSync resources.

type nonrec task_filters = task_filter list
type nonrec task_execution_status =
  1. | ERROR
  2. | SUCCESS
  3. | VERIFYING
  4. | TRANSFERRING
  5. | PREPARING
  6. | LAUNCHING
  7. | CANCELLING
  8. | QUEUED
type nonrec duration = Smaws_Lib.CoreTypes.Int64.t
type nonrec phase_status =
  1. | ERROR
  2. | SUCCESS
  3. | PENDING
type nonrec task_execution_result_detail = {
  1. error_detail : string_ option;
    (*

    The detailed description of an error that DataSync encountered during your task execution. You can use this information to help troubleshoot issues.

    *)
  2. error_code : string_ option;
    (*

    An error that DataSync encountered during your task execution. You can use this information to help troubleshoot issues.

    *)
  3. verify_status : phase_status option;
    (*

    The status of the VERIFYING step for your task execution. For more information, see Task execution statuses.

    *)
  4. verify_duration : duration option;
    (*

    The time in milliseconds that your task execution was in the VERIFYING step. For more information, see Task execution statuses.

    For Enhanced mode tasks, the value is always 0. For more information, see How DataSync verifies your data's integrity.

    *)
  5. transfer_status : phase_status option;
    (*

    The status of the TRANSFERRING step for your task execution. For more information, see Task execution statuses.

    *)
  6. transfer_duration : duration option;
    (*

    The time in milliseconds that your task execution was in the TRANSFERRING step. For more information, see Task execution statuses.

    For Enhanced mode tasks, the value is always 0. For more information, see How DataSync transfers your data.

    *)
  7. total_duration : duration option;
    (*

    The time in milliseconds that your task execution ran.

    *)
  8. prepare_status : phase_status option;
    (*

    The status of the PREPARING step for your task execution. For more information, see Task execution statuses.

    *)
  9. prepare_duration : duration option;
    (*

    The time in milliseconds that your task execution was in the PREPARING step. For more information, see Task execution statuses.

    For Enhanced mode tasks, the value is always 0. For more information, see How DataSync prepares your data transfer.

    *)
}

Provides detailed information about the result of your DataSync task execution.

type nonrec task_execution_list_entry = {
  1. task_mode : task_mode option;
    (*

    The task mode that you're using. For more information, see Choosing a task mode for your data transfer.

    *)
  2. status : task_execution_status option;
    (*

    The status of a task execution. For more information, see Task execution statuses.

    *)
  3. task_execution_arn : task_execution_arn option;
    (*

    The Amazon Resource Name (ARN) of a task execution.

    *)
}

Represents a single entry in a list of DataSync task executions that's returned with the ListTaskExecutions operation.

type nonrec task_execution_list = task_execution_list_entry list
type nonrec task_execution_folders_listed_detail = {
  1. at_destination_for_delete : long option;
    (*

    The number of directories that DataSync finds at your destination location. This counter is only applicable if you configure your task to delete data in the destination that isn't in the source.

    *)
  2. at_source : long option;
    (*

    The number of directories that DataSync finds at your source location.

    • With a manifest, DataSync lists only what's in your manifest (and not everything at your source location).
    • With an include filter, DataSync lists only what matches the filter at your source location.
    • With an exclude filter, DataSync lists everything at your source location before applying the filter.
    *)
}

The number of directories that DataSync finds at your locations.

Applies only to Enhanced mode tasks.

type nonrec task_execution_folders_failed_detail = {
  1. delete : long option;
    (*

    The number of directories that DataSync fails to delete during your task execution.

    *)
  2. verify : long option;
    (*

    The number of directories that DataSync fails to verify during your task execution.

    *)
  3. transfer : long option;
    (*

    The number of directories that DataSync fails to transfer during your task execution.

    *)
  4. prepare : long option;
    (*

    The number of directories that DataSync fails to prepare during your task execution.

    *)
  5. list_ : long option;
    (*

    The number of directories that DataSync fails to list during your task execution.

    *)
}

The number of directories that DataSync fails to list, prepare, transfer, verify, and delete during your task execution.

Applies only to Enhanced mode tasks.

type nonrec task_execution_files_listed_detail = {
  1. at_destination_for_delete : long option;
    (*

    The number of files or objects that DataSync finds at your destination location. This counter is only applicable if you configure your task to delete data in the destination that isn't in the source.

    *)
  2. at_source : long option;
    (*

    The number of files or objects that DataSync finds at your source location.

    • With a manifest, DataSync lists only what's in your manifest (and not everything at your source location).
    • With an include filter, DataSync lists only what matches the filter at your source location.
    • With an exclude filter, DataSync lists everything at your source location before applying the filter.
    *)
}

The number of files or objects that DataSync finds at your locations.

Applies only to Enhanced mode tasks.

type nonrec task_execution_files_failed_detail = {
  1. delete : long option;
    (*

    The number of files or objects that DataSync fails to delete during your task execution.

    *)
  2. verify : long option;
    (*

    The number of files or objects that DataSync fails to verify during your task execution.

    *)
  3. transfer : long option;
    (*

    The number of files or objects that DataSync fails to transfer during your task execution.

    *)
  4. prepare : long option;
    (*

    The number of files or objects that DataSync fails to prepare during your task execution.

    *)
}

The number of files or objects that DataSync fails to prepare, transfer, verify, and delete during your task execution.

Applies only to Enhanced mode tasks.

type nonrec tag_resource_response = unit
type nonrec tag_list_entry = {
  1. value : tag_value option;
    (*

    The value for an Amazon Web Services resource tag.

    *)
  2. key : tag_key;
    (*

    The key for an Amazon Web Services resource tag.

    *)
}

A key-value pair representing a single tag that's been applied to an Amazon Web Services resource.

type nonrec input_tag_list = tag_list_entry list
type nonrec tag_resource_request = {
  1. tags : input_tag_list;
    (*

    Specifies the tags that you want to apply to the resource.

    *)
  2. resource_arn : taggable_resource_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the resource to apply the tag to.

    *)
}

TagResourceRequest

type nonrec storage_virtual_machine_arn = string
type nonrec start_task_execution_response = {
  1. task_execution_arn : task_execution_arn option;
    (*

    The ARN of the running task execution.

    *)
}

StartTaskExecutionResponse

type nonrec start_task_execution_request = {
  1. tags : input_tag_list option;
    (*

    Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task execution.

    Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.

    *)
  2. task_report_config : task_report_config option;
    (*

    Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports.

    When using this parameter, your caller identity (the role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission.

    To remove a task report configuration, specify this parameter as empty.

    *)
  3. manifest_config : manifest_config option;
    (*

    Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.

    When using this parameter, your caller identity (the role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission.

    To remove a manifest configuration, specify this parameter with an empty value.

    *)
  4. excludes : filter_list option;
    (*

    Specifies a list of filter rules that determines which files to exclude from a task. The list contains a single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example, "/folder1|/folder2".

    *)
  5. includes : filter_list option;
    (*

    Specifies a list of filter rules that determines which files to include when running a task. The pattern should contain a single filter string that consists of the patterns to include. The patterns are delimited by "|" (that is, a pipe), for example, "/folder1|/folder2".

    *)
  6. override_options : options option;
  7. task_arn : task_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the task that you want to start.

    *)
}

StartTaskExecutionRequest

type nonrec network_interface_arn = string
type nonrec source_network_interface_arns = network_interface_arn list
type nonrec report_result = {
  1. error_detail : string_ option;
    (*

    Provides details about issues creating a report.

    *)
  2. error_code : string_ option;
    (*

    Indicates the code associated with the error if DataSync can't create a complete report.

    *)
  3. status : phase_status option;
    (*

    Indicates whether DataSync is still working on your report, created a report, or can't create a complete report.

    *)
}

Indicates whether DataSync created a complete task report for your transfer.

type nonrec endpoint = string
type nonrec ec2_subnet_arn = string
type nonrec pl_subnet_arn_list = ec2_subnet_arn list
type nonrec ec2_security_group_arn = string
type nonrec pl_security_group_arn_list = ec2_security_group_arn list

Specifies how your DataSync agent connects to Amazon Web Services using a virtual private cloud (VPC) service endpoint. An agent that uses a VPC endpoint isn't accessible over the public internet.

type nonrec agent_version = string
type nonrec platform = {
  1. version : agent_version option;
    (*

    The version of the DataSync agent.

    *)
}

The platform-related details about the DataSync agent, such as the version number.

type nonrec output_tag_list = tag_list_entry list
type nonrec object_storage_bucket_name = string
type nonrec next_token = string
type nonrec max_results = int
type nonrec location_uri = string
type nonrec location_list_entry = {
  1. location_uri : location_uri option;
    (*

    Represents a list of URIs of a location. LocationUri returns an array that contains a list of locations when the ListLocations operation is called.

    Format: TYPE://GLOBAL_ID/SUBDIR.

    TYPE designates the type of location (for example, nfs or s3).

    GLOBAL_ID is the globally unique identifier of the resource that backs the location. An example for EFS is us-east-2.fs-abcd1234. An example for Amazon S3 is the bucket name, such as myBucket. An example for NFS is a valid IPv4 or IPv6 address or a hostname that is compliant with DNS.

    SUBDIR is a valid file system path, delimited by forward slashes as is the *nix convention. For NFS and Amazon EFS, it's the export path to mount the location. For Amazon S3, it's the prefix path that you mount to and treat as the root of the location.

    *)
  2. location_arn : location_arn option;
    (*

    The Amazon Resource Name (ARN) of the location. For Network File System (NFS) or Amazon EFS, the location is the export path. For Amazon S3, the location is the prefix path that you want to mount and use as the root of the location.

    *)
}

Represents a single entry in a list of locations. LocationListEntry returns an array that contains a list of locations when the ListLocations operation is called.

type nonrec location_list = location_list_entry list
type nonrec location_filter_name =
  1. | CreationTime
  2. | LocationType
  3. | LocationUri
type nonrec location_filter = {
  1. operator : operator;
    (*

    The operator that is used to compare filter values (for example, Equals or Contains).

    *)
  2. values : filter_values;
    (*

    The values that you want to filter for. For example, you might want to display only Amazon S3 locations.

    *)
  3. name : location_filter_name;
    (*

    The name of the filter being used. Each API call supports a list of filters that are available for it (for example, LocationType for ListLocations).

    *)
}

Narrow down the list of resources returned by ListLocations. For example, to see all your Amazon S3 locations, create a filter using "Name": "LocationType", "Operator": "Equals", and "Values": "S3".

For more information, see filtering resources.

type nonrec location_filters = location_filter list
type nonrec list_tasks_response = {
  1. next_token : next_token option;
    (*

    An opaque string that indicates the position at which to begin returning the next list of tasks.

    *)
  2. tasks : task_list option;
    (*

    A list of all the tasks that are returned.

    *)
}

ListTasksResponse

type nonrec list_tasks_request = {
  1. filters : task_filters option;
    (*

    You can use API filters to narrow down the list of resources returned by ListTasks. For example, to retrieve all tasks on a specific source location, you can use ListTasks with filter name LocationId and Operator Equals with the ARN for the location.

    *)
  2. next_token : next_token option;
    (*

    An opaque string that indicates the position at which to begin the next list of tasks.

    *)
  3. max_results : max_results option;
    (*

    The maximum number of tasks to return.

    *)
}

ListTasksRequest

type nonrec list_task_executions_response = {
  1. next_token : next_token option;
    (*

    The opaque string that indicates the position to begin the next list of results in the response.

    *)
  2. task_executions : task_execution_list option;
    (*

    A list of the task's executions.

    *)
}

ListTaskExecutionsResponse

type nonrec list_task_executions_request = {
  1. next_token : next_token option;
    (*

    Specifies an opaque string that indicates the position at which to begin the next list of results in the response.

    *)
  2. max_results : max_results option;
    (*

    Specifies how many results you want in the response.

    *)
  3. task_arn : task_arn option;
    (*

    Specifies the Amazon Resource Name (ARN) of the task that you want execution information about.

    *)
}

ListTaskExecutions

type nonrec list_tags_for_resource_response = {
  1. next_token : next_token option;
    (*

    The opaque string that indicates the position to begin the next list of results in the response.

    *)
  2. tags : output_tag_list option;
    (*

    An array of tags applied to the specified resource.

    *)
}

ListTagsForResourceResponse

type nonrec list_tags_for_resource_request = {
  1. next_token : next_token option;
    (*

    Specifies an opaque string that indicates the position to begin the next list of results in the response.

    *)
  2. max_results : max_results option;
    (*

    Specifies how many results that you want in the response.

    *)
  3. resource_arn : taggable_resource_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the resource that you want tag information on.

    *)
}

ListTagsForResourceRequest

type nonrec list_locations_response = {
  1. next_token : next_token option;
    (*

    An opaque string that indicates the position at which to begin returning the next list of locations.

    *)
  2. locations : location_list option;
    (*

    An array that contains a list of locations.

    *)
}

ListLocationsResponse

type nonrec list_locations_request = {
  1. filters : location_filters option;
    (*

    You can use API filters to narrow down the list of resources returned by ListLocations. For example, to retrieve all tasks on a specific source location, you can use ListLocations with filter name LocationType S3 and Operator Equals.

    *)
  2. next_token : next_token option;
    (*

    An opaque string that indicates the position at which to begin the next list of locations.

    *)
  3. max_results : max_results option;
    (*

    The maximum number of locations to return.

    *)
}

ListLocationsRequest

type nonrec agent_status =
  1. | OFFLINE
  2. | ONLINE
type nonrec agent_list_entry = {
  1. platform : platform option;
    (*

    The platform-related details about the agent, such as the version number.

    *)
  2. status : agent_status option;
    (*

    The status of an agent.

    • If the status is ONLINE, the agent is configured properly and ready to use.
    • If the status is OFFLINE, the agent has been out of contact with DataSync for five minutes or longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline?
    *)
  3. name : tag_value option;
    (*

    The name of an agent.

    *)
  4. agent_arn : agent_arn option;
    (*

    The Amazon Resource Name (ARN) of a DataSync agent.

    *)
}

Represents a single entry in a list (or array) of DataSync agents when you call the ListAgents operation.

type nonrec agent_list = agent_list_entry list
type nonrec list_agents_response = {
  1. next_token : next_token option;
    (*

    The opaque string that indicates the position to begin the next list of results in the response.

    *)
  2. agents : agent_list option;
    (*

    A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).

    *)
}

ListAgentsResponse

type nonrec list_agents_request = {
  1. next_token : next_token option;
    (*

    Specifies an opaque string that indicates the position to begin the next list of results in the response.

    *)
  2. max_results : max_results option;
    (*

    Specifies the maximum number of DataSync agents to list in a response. By default, a response shows a maximum of 100 agents.

    *)
}

ListAgentsRequest

type nonrec item_count = Smaws_Lib.CoreTypes.Int64.t
type nonrec fsx_open_zfs_subdirectory = string
type nonrec fsx_lustre_subdirectory = string
type nonrec fsx_filesystem_arn = string
type nonrec describe_task_execution_response = {
  1. end_time : time option;
    (*

    The time that the transfer task ends.

    *)
  2. launch_time : time option;
    (*

    The time that the task execution actually begins. For non-queued tasks, LaunchTime and StartTime are typically the same. For queued tasks, LaunchTime is typically later than StartTime because previously queued tasks must finish running before newer tasks can begin.

    *)
  3. folders_failed : task_execution_folders_failed_detail option;
    (*

    The number of directories that DataSync fails to list, prepare, transfer, verify, and delete during your task execution.

    Applies only to Enhanced mode tasks.

    *)
  4. folders_listed : task_execution_folders_listed_detail option;
    (*

    The number of directories that DataSync finds at your locations.

    Applies only to Enhanced mode tasks.

    *)
  5. folders_deleted : item_count option;
    (*

    The number of directories that DataSync actually deletes in your destination location. If you don't configure your task to delete data in the destination that isn't in the source, the value is always 0.

    Applies only to Enhanced mode tasks.

    *)
  6. folders_verified : item_count option;
    (*

    The number of directories that DataSync verifies during your transfer.

    Applies only to Enhanced mode tasks.

    *)
  7. folders_transferred : item_count option;
    (*

    The number of directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network.

    If DataSync fails to transfer something, this value can be less than EstimatedFoldersToTransfer. In some cases, this value can also be greater than EstimatedFoldersToTransfer.

    Applies only to Enhanced mode tasks.

    *)
  8. folders_prepared : item_count option;
    (*

    The number of directories that DataSync will attempt to transfer after comparing your source and destination locations.

    Applies only to Enhanced mode tasks.

    This counter isn't applicable if you configure your task to transfer all data. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.

    *)
  9. folders_skipped : item_count option;
    (*

    The number of directories that DataSync skips during your transfer.

    Applies only to Enhanced mode tasks.

    *)
  10. estimated_folders_to_transfer : item_count option;
    (*

    The number of directories that DataSync expects to transfer over the network. This value is calculated as DataSync prepares directories to transfer.

    How this gets calculated depends primarily on your task’s transfer mode configuration:

    • If TranserMode is set to CHANGED - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include:

      • Anything that's added or modified at the source location.
      • Anything that's in both locations and modified at the destination after an initial transfer (unless OverwriteMode is set to NEVER).
    • If TranserMode is set to ALL - The calculation is based only on the items that DataSync finds at the source location.

    Applies only to Enhanced mode tasks.

    *)
  11. estimated_folders_to_delete : item_count option;
    (*

    The number of directories that DataSync expects to delete in your destination location. If you don't configure your task to delete data in the destination that isn't in the source, the value is always 0.

    Applies only to Enhanced mode tasks.

    *)
  12. files_failed : task_execution_files_failed_detail option;
    (*

    The number of files or objects that DataSync fails to prepare, transfer, verify, and delete during your task execution.

    Applies only to Enhanced mode tasks.

    *)
  13. files_listed : task_execution_files_listed_detail option;
    (*

    The number of files or objects that DataSync finds at your locations.

    Applies only to Enhanced mode tasks.

    *)
  14. files_prepared : long option;
    (*

    The number of files or objects that DataSync will attempt to transfer after comparing your source and destination locations.

    Applies only to Enhanced mode tasks.

    This counter isn't applicable if you configure your task to transfer all data. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.

    *)
  15. task_mode : task_mode option;
    (*

    The task mode that you're using. For more information, see Choosing a task mode for your data transfer.

    *)
  16. estimated_files_to_delete : long option;
    (*

    The number of files, objects, and directories that DataSync expects to delete in your destination location. If you don't configure your task to delete data in the destination that isn't in the source, the value is always 0.

    For Enhanced mode tasks, this counter only includes files or objects. Directories are counted in EstimatedFoldersToDelete.

    *)
  17. report_result : report_result option;
    (*

    Indicates whether DataSync generated a complete task report for your transfer.

    *)
  18. files_verified : long option;
    (*

    The number of files, objects, and directories that DataSync verifies during your transfer.

    When you configure your task to verify only the data that's transferred, DataSync doesn't verify directories in some situations or files that fail to transfer.

    For Enhanced mode tasks, this counter only includes files or objects. Directories are counted in FoldersVerified.

    *)
  19. files_skipped : long option;
    (*

    The number of files, objects, and directories that DataSync skips during your transfer.

    For Enhanced mode tasks, this counter only includes files or objects. Directories are counted in FoldersSkipped.

    *)
  20. files_deleted : long option;
    (*

    The number of files, objects, and directories that DataSync actually deletes in your destination location. If you don't configure your task to delete data in the destination that isn't in the source, the value is always 0.

    For Enhanced mode tasks, this counter only includes files or objects. Directories are counted in FoldersDeleted.

    *)
  21. task_report_config : task_report_config option;
    (*

    The configuration of your task report, which provides detailed information about for your DataSync transfer. For more information, see Creating a task report.

    *)
  22. result_ : task_execution_result_detail option;
    (*

    The result of the task execution.

    *)
  23. bytes_compressed : long option;
    (*

    The number of physical bytes that DataSync transfers over the network after compression (if compression is possible). This number is typically less than BytesTransferred unless the data isn't compressible.

    *)
  24. bytes_transferred : long option;
    (*

    The number of bytes that DataSync sends to the network before compression (if compression is possible). For the number of bytes transferred over the network, see BytesCompressed.

    *)
  25. bytes_written : long option;
    (*

    The number of logical bytes that DataSync actually writes to the destination location.

    *)
  26. files_transferred : long option;
    (*

    The number of files, objects, and directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network.

    If DataSync fails to transfer something, this value can be less than EstimatedFilesToTransfer. In some cases, this value can also be greater than EstimatedFilesToTransfer. This element is implementation-specific for some location types, so don't use it as an exact indication of what's transferring or to monitor your task execution.

    For Enhanced mode tasks, this counter only includes files or objects. Directories are counted in FoldersTransferred.

    *)
  27. estimated_bytes_to_transfer : long option;
    (*

    The number of logical bytes that DataSync expects to write to the destination location.

    *)
  28. estimated_files_to_transfer : long option;
    (*

    The number of files, objects, and directories that DataSync expects to transfer over the network. This value is calculated while DataSync prepares the transfer.

    How this gets calculated depends primarily on your task’s transfer mode configuration:

    • If TranserMode is set to CHANGED - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include:

      • Anything that's added or modified at the source location.
      • Anything that's in both locations and modified at the destination after an initial transfer (unless OverwriteMode is set to NEVER).
      • (Basic task mode only) The number of items that DataSync expects to delete (if PreserveDeletedFiles is set to REMOVE).
    • If TranserMode is set to ALL - The calculation is based only on the items that DataSync finds at the source location.

    For Enhanced mode tasks, this counter only includes files or objects. Directories are counted in EstimatedFoldersToTransfer.

    *)
  29. start_time : time option;
    (*

    The time that DataSync sends the request to start the task execution. For non-queued tasks, LaunchTime and StartTime are typically the same. For queued tasks, LaunchTime is typically later than StartTime because previously queued tasks must finish running before newer tasks can begin.

    *)
  30. manifest_config : manifest_config option;
    (*

    The configuration of the manifest that lists the files or objects to transfer. For more information, see Specifying what DataSync transfers by using a manifest.

    *)
  31. includes : filter_list option;
    (*

    A list of filter rules that include specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync.

    *)
  32. excludes : filter_list option;
    (*

    A list of filter rules that exclude specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync.

    *)
  33. options : options option;
  34. status : task_execution_status option;
    (*

    The status of the task execution.

    *)
  35. task_execution_arn : task_execution_arn option;
    (*

    The ARN of the task execution that you wanted information about. TaskExecutionArn is hierarchical and includes TaskArn for the task that was executed.

    For example, a TaskExecution value with the ARN arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b executed the task with the ARN arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2.

    *)
}

DescribeTaskExecutionResponse

type nonrec describe_task_execution_request = {
  1. task_execution_arn : task_execution_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the task execution that you want information about.

    *)
}

DescribeTaskExecutionRequest

type nonrec destination_network_interface_arns = network_interface_arn list
type nonrec describe_task_response = {
  1. task_mode : task_mode option;
    (*

    The task mode that you're using. For more information, see Choosing a task mode for your data transfer.

    *)
  2. schedule_details : task_schedule_details option;
    (*

    The details about your task schedule.

    *)
  3. task_report_config : task_report_config option;
    (*

    The configuration of your task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports.

    *)
  4. manifest_config : manifest_config option;
    (*

    The configuration of the manifest that lists the files or objects that you want DataSync to transfer. For more information, see Specifying what DataSync transfers by using a manifest.

    *)
  5. includes : filter_list option;
    (*

    The include filters that define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.

    *)
  6. creation_time : time option;
    (*

    The time that the task was created.

    *)
  7. error_detail : string_ option;
    (*

    If there's an issue with your task, you can use the error details to help you troubleshoot the problem. For more information, see Troubleshooting issues with DataSync transfers.

    *)
  8. error_code : string_ option;
    (*

    If there's an issue with your task, you can use the error code to help you troubleshoot the problem. For more information, see Troubleshooting issues with DataSync transfers.

    *)
  9. schedule : task_schedule option;
    (*

    The schedule for when you want your task to run. For more information, see Scheduling your task.

    *)
  10. excludes : filter_list option;
    (*

    The exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.

    *)
  11. options : options option;
    (*

    The task's settings. For example, what file metadata gets preserved, how data integrity gets verified at the end of your transfer, bandwidth limits, among other options.

    *)
  12. destination_network_interface_arns : destination_network_interface_arns option;
    (*

    The ARNs of the network interfaces that DataSync created for your destination location.

    *)
  13. source_network_interface_arns : source_network_interface_arns option;
    (*

    The ARNs of the network interfaces that DataSync created for your source location.

    *)
  14. cloud_watch_log_group_arn : log_group_arn option;
    (*

    The Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.

    For more information, see Monitoring data transfers with CloudWatch Logs.

    *)
  15. destination_location_arn : location_arn option;
    (*

    The ARN of your transfer's destination location.

    *)
  16. source_location_arn : location_arn option;
    (*

    The ARN of your transfer's source location.

    *)
  17. current_task_execution_arn : task_execution_arn option;
    (*

    The ARN of the most recent task execution.

    *)
  18. name : tag_value option;
    (*

    The name of your task.

    *)
  19. status : task_status option;
    (*

    The status of your task. For information about what each status means, see Task statuses.

    *)
  20. task_arn : task_arn option;
    (*

    The ARN of your task.

    *)
}

DescribeTaskResponse

type nonrec describe_task_request = {
  1. task_arn : task_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the transfer task that you want information about.

    *)
}

DescribeTaskRequest

type nonrec describe_location_smb_response = {
  1. custom_secret_config : custom_secret_config option;
    (*

    Describes configuration information for a customer-managed secret, such as a Password or KerberosKeytab that DataSync uses to access a specific storage location, with a customer-managed Identity and Access Management (IAM) role that provides access to the secret.

    *)
  2. cmk_secret_config : cmk_secret_config option;
    (*

    Describes configuration information for a DataSync-managed secret, such as a Password or KerberosKeytab that DataSync uses to access a specific storage location, with a customer-managed KMS key.

    *)
  3. managed_secret_config : managed_secret_config option;
    (*

    Describes configuration information for a DataSync-managed secret, such as a Password or KerberosKeytab that DataSync uses to access a specific storage location. DataSync uses the default Amazon Web Services-managed KMS key to encrypt this secret in Secrets Manager.

    *)
  4. authentication_type : smb_authentication_type option;
    (*

    The authentication protocol that DataSync uses to connect to your SMB file server.

    *)
  5. kerberos_principal : kerberos_principal option;
    (*

    The Kerberos principal that has permission to access the files, folders, and file metadata in your SMB file server.

    *)
  6. dns_ip_addresses : dns_ip_list option;
    (*

    The IPv4 or IPv6 addresses for the DNS servers that your SMB file server belongs to. This element applies only if AuthenticationType is set to KERBEROS.

    *)
  7. creation_time : time option;
    (*

    The time that the SMB location was created.

    *)
  8. mount_options : smb_mount_options option;
    (*

    The SMB protocol version that DataSync uses to access your SMB file server.

    *)
  9. domain : smb_domain option;
    (*

    The name of the Windows domain that the SMB file server belongs to. This element applies only if AuthenticationType is set to NTLM.

    *)
  10. user : smb_user option;
    (*

    The user that can mount and access the files, folders, and file metadata in your SMB file server. This element applies only if AuthenticationType is set to NTLM.

    *)
  11. agent_arns : agent_arn_list option;
    (*

    The ARNs of the DataSync agents that can connect with your SMB file server.

    *)
  12. location_uri : location_uri option;
    (*

    The URI of the SMB location.

    *)
  13. location_arn : location_arn option;
    (*

    The ARN of the SMB location.

    *)
}

DescribeLocationSmbResponse

type nonrec describe_location_smb_request = {
  1. location_arn : location_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the SMB location that you want information about.

    *)
}

DescribeLocationSmbRequest

type nonrec describe_location_s3_response = {
  1. creation_time : time option;
    (*

    The time that the Amazon S3 location was created.

    *)
  2. agent_arns : agent_arn_list option;
    (*

    The ARNs of the DataSync agents deployed on your Outpost when using working with Amazon S3 on Outposts.

    For more information, see Deploy your DataSync agent on Outposts.

    *)
  3. s3_config : s3_config option;
  4. s3_storage_class : s3_storage_class option;
    (*

    When Amazon S3 is a destination location, this is the storage class that you chose for your objects.

    Some storage classes have behaviors that can affect your Amazon S3 storage costs. For more information, see Storage class considerations with Amazon S3 transfers.

    *)
  5. location_uri : location_uri option;
    (*

    The URL of the Amazon S3 location that was described.

    *)
  6. location_arn : location_arn option;
    (*

    The ARN of the Amazon S3 location.

    *)
}

DescribeLocationS3Response

type nonrec describe_location_s3_request = {
  1. location_arn : location_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the Amazon S3 location.

    *)
}

DescribeLocationS3Request

type nonrec describe_location_object_storage_response = {
  1. custom_secret_config : custom_secret_config option;
    (*

    Describes configuration information for a customer-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed Identity and Access Management (IAM) role that provides access to the secret.

    *)
  2. cmk_secret_config : cmk_secret_config option;
    (*

    Describes configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key.

    *)
  3. managed_secret_config : managed_secret_config option;
    (*

    Describes configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location. DataSync uses the default Amazon Web Services-managed KMS key to encrypt this secret in Secrets Manager.

    *)
  4. server_certificate : object_storage_certificate option;
    (*

    The certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA).

    *)
  5. creation_time : time option;
    (*

    The time that the location was created.

    *)
  6. agent_arns : agent_arn_list option;
    (*

    The ARNs of the DataSync agents that can connect with your object storage system.

    *)
  7. server_protocol : object_storage_server_protocol option;
    (*

    The protocol that your object storage system uses to communicate.

    *)
  8. server_port : object_storage_server_port option;
    (*

    The port that your object storage server accepts inbound network traffic on (for example, port 443).

    *)
  9. access_key : object_storage_access_key option;
    (*

    The access key (for example, a user name) required to authenticate with the object storage system.

    *)
  10. location_uri : location_uri option;
    (*

    The URI of the object storage system location.

    *)
  11. location_arn : location_arn option;
    (*

    The ARN of the object storage system location.

    *)
}

DescribeLocationObjectStorageResponse

type nonrec describe_location_object_storage_request = {
  1. location_arn : location_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the object storage system location.

    *)
}

DescribeLocationObjectStorageRequest

type nonrec describe_location_nfs_response = {
  1. creation_time : time option;
    (*

    The time when the NFS location was created.

    *)
  2. mount_options : nfs_mount_options option;
    (*

    The mount options that DataSync uses to mount your NFS file server.

    *)
  3. on_prem_config : on_prem_config option;
  4. location_uri : location_uri option;
    (*

    The URI of the NFS location.

    *)
  5. location_arn : location_arn option;
    (*

    The ARN of the NFS location.

    *)
}

DescribeLocationNfsResponse

type nonrec describe_location_nfs_request = {
  1. location_arn : location_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the NFS location that you want information about.

    *)
}

DescribeLocationNfsRequest

type nonrec describe_location_hdfs_response = {
  1. custom_secret_config : custom_secret_config option;
    (*

    Describes configuration information for a customer-managed secret, such as a KerberosKeytab that DataSync uses to access a specific storage location, with a customer-managed Identity and Access Management (IAM) role that provides access to the secret.

    *)
  2. cmk_secret_config : cmk_secret_config option;
    (*

    Describes configuration information for a DataSync-managed secret, such as a KerberosKeytab that DataSync uses to access a specific storage location, with a customer-managed KMS key.

    *)
  3. managed_secret_config : managed_secret_config option;
    (*

    Describes configuration information for a DataSync-managed secret, such as a KerberosKeytab that DataSync uses to access a specific storage location. DataSync uses the default Amazon Web Services-managed KMS key to encrypt this secret in Secrets Manager.

    *)
  4. creation_time : time option;
    (*

    The time that the HDFS location was created.

    *)
  5. agent_arns : agent_arn_list option;
    (*

    The ARNs of the DataSync agents that can connect with your HDFS cluster.

    *)
  6. kerberos_principal : kerberos_principal option;
    (*

    The Kerberos principal with access to the files and folders on the HDFS cluster. This parameter is used if the AuthenticationType is defined as KERBEROS.

    *)
  7. simple_user : hdfs_user option;
    (*

    The user name to identify the client on the host operating system. This parameter is used if the AuthenticationType is defined as SIMPLE.

    *)
  8. authentication_type : hdfs_authentication_type option;
    (*

    The type of authentication used to determine the identity of the user.

    *)
  9. qop_configuration : qop_configuration option;
    (*

    The Quality of Protection (QOP) configuration, which specifies the Remote Procedure Call (RPC) and data transfer protection settings configured on the HDFS cluster.

    *)
  10. kms_key_provider_uri : kms_key_provider_uri option;
    (*

    The URI of the HDFS cluster's Key Management Server (KMS).

    *)
  11. replication_factor : hdfs_replication_factor option;
    (*

    The number of DataNodes to replicate the data to when writing to the HDFS cluster.

    *)
  12. block_size : hdfs_block_size option;
    (*

    The size of the data blocks to write into the HDFS cluster.

    *)
  13. name_nodes : hdfs_name_node_list option;
    (*

    The NameNode that manages the HDFS namespace.

    *)
  14. location_uri : location_uri option;
    (*

    The URI of the HDFS location.

    *)
  15. location_arn : location_arn option;
    (*

    The ARN of the HDFS location.

    *)
}
type nonrec describe_location_hdfs_request = {
  1. location_arn : location_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the HDFS location.

    *)
}
type nonrec ec2_security_group_arn_list = ec2_security_group_arn list
type nonrec describe_location_fsx_windows_response = {
  1. custom_secret_config : custom_secret_config option;
    (*

    Describes configuration information for a customer-managed secret, such as a Password that DataSync uses to access a specific storage location, with a customer-managed Identity and Access Management (IAM) role that provides access to the secret.

    *)
  2. cmk_secret_config : cmk_secret_config option;
    (*

    Describes configuration information for a DataSync-managed secret, such as a Password that DataSync uses to access a specific storage location, with a customer-managed KMS key.

    *)
  3. managed_secret_config : managed_secret_config option;
    (*

    Describes configuration information for a DataSync-managed secret, such as a Password that DataSync uses to access a specific storage location. DataSync uses the default Amazon Web Services-managed KMS key to encrypt this secret in Secrets Manager.

    *)
  4. domain : smb_domain option;
    (*

    The name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to.

    *)
  5. user : smb_user option;
    (*

    The user with the permissions to mount and access the FSx for Windows File Server file system.

    *)
  6. creation_time : time option;
    (*

    The time that the FSx for Windows File Server location was created.

    *)
  7. security_group_arns : ec2_security_group_arn_list option;
    (*

    The ARNs of the Amazon EC2 security groups that provide access to your file system's preferred subnet.

    For information about configuring security groups for file system access, see the Amazon FSx for Windows File Server User Guide.

    *)
  8. location_uri : location_uri option;
    (*

    The uniform resource identifier (URI) of the FSx for Windows File Server location.

    *)
  9. location_arn : location_arn option;
    (*

    The ARN of the FSx for Windows File Server location.

    *)
}
type nonrec describe_location_fsx_windows_request = {
  1. location_arn : location_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the FSx for Windows File Server location.

    *)
}
type nonrec describe_location_fsx_open_zfs_response = {
  1. creation_time : time option;
    (*

    The time that the FSx for OpenZFS location was created.

    *)
  2. protocol : fsx_protocol option;
    (*

    The type of protocol that DataSync uses to access your file system.

    *)
  3. security_group_arns : ec2_security_group_arn_list option;
    (*

    The ARNs of the security groups that are configured for the FSx for OpenZFS file system.

    *)
  4. location_uri : location_uri option;
    (*

    The uniform resource identifier (URI) of the FSx for OpenZFS location that was described.

    Example: fsxz://us-west-2.fs-1234567890abcdef02/fsx/folderA/folder

    *)
  5. location_arn : location_arn option;
    (*

    The ARN of the FSx for OpenZFS location that was described.

    *)
}
type nonrec describe_location_fsx_open_zfs_request = {
  1. location_arn : location_arn;
    (*

    The Amazon Resource Name (ARN) of the FSx for OpenZFS location to describe.

    *)
}
type nonrec describe_location_fsx_ontap_response = {
  1. fsx_filesystem_arn : fsx_filesystem_arn option;
    (*

    The ARN of the FSx for ONTAP file system.

    *)
  2. storage_virtual_machine_arn : storage_virtual_machine_arn option;
    (*

    The ARN of the storage virtual machine (SVM) on your FSx for ONTAP file system where you're copying data to or from.

    *)
  3. security_group_arns : ec2_security_group_arn_list option;
    (*

    The security groups that DataSync uses to access your FSx for ONTAP file system.

    *)
  4. protocol : fsx_protocol option;
  5. location_uri : location_uri option;
    (*

    The uniform resource identifier (URI) of the FSx for ONTAP file system location.

    *)
  6. location_arn : location_arn option;
    (*

    The ARN of the FSx for ONTAP file system location.

    *)
  7. creation_time : time option;
    (*

    The time that the location was created.

    *)
}
type nonrec describe_location_fsx_ontap_request = {
  1. location_arn : location_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the FSx for ONTAP file system location that you want information about.

    *)
}
type nonrec describe_location_fsx_lustre_response = {
  1. creation_time : time option;
    (*

    The time that the FSx for Lustre location was created.

    *)
  2. security_group_arns : ec2_security_group_arn_list option;
    (*

    The Amazon Resource Names (ARNs) of the security groups that are configured for the FSx for Lustre file system.

    *)
  3. location_uri : location_uri option;
    (*

    The URI of the FSx for Lustre location that was described.

    *)
  4. location_arn : location_arn option;
    (*

    The Amazon Resource Name (ARN) of the FSx for Lustre location that was described.

    *)
}
type nonrec describe_location_fsx_lustre_request = {
  1. location_arn : location_arn;
    (*

    The Amazon Resource Name (ARN) of the FSx for Lustre location to describe.

    *)
}
type nonrec ec2_config = {
  1. security_group_arns : ec2_security_group_arn_list;
    (*

    Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target.

    *)
  2. subnet_arn : ec2_subnet_arn;
    (*

    Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer.

    The subnet must be located:

    • In the same virtual private cloud (VPC) as the Amazon EFS file system.
    • In the same Availability Zone as at least one mount target for the Amazon EFS file system.

    You don't need to specify a subnet that includes a file system mount target.

    *)
}

The subnet and security groups that DataSync uses to connect to one of your Amazon EFS file system's mount targets.

type nonrec efs_access_point_arn = string
type nonrec describe_location_efs_response = {
  1. in_transit_encryption : efs_in_transit_encryption option;
    (*

    Indicates whether DataSync uses Transport Layer Security (TLS) encryption when transferring data to or from the Amazon EFS file system.

    *)
  2. file_system_access_role_arn : iam_role_arn option;
    (*

    The Identity and Access Management (IAM) role that allows DataSync to access your Amazon EFS file system.

    For more information, see Creating a DataSync IAM role for file system access.

    *)
  3. access_point_arn : efs_access_point_arn option;
    (*

    The ARN of the access point that DataSync uses to access the Amazon EFS file system.

    For more information, see Accessing restricted file systems.

    *)
  4. creation_time : time option;
    (*

    The time that the location was created.

    *)
  5. ec2_config : ec2_config option;
  6. location_uri : location_uri option;
    (*

    The URL of the Amazon EFS file system location.

    *)
  7. location_arn : location_arn option;
    (*

    The ARN of the Amazon EFS file system location.

    *)
}

DescribeLocationEfsResponse

type nonrec describe_location_efs_request = {
  1. location_arn : location_arn;
    (*

    The Amazon Resource Name (ARN) of the Amazon EFS file system location that you want information about.

    *)
}

DescribeLocationEfsRequest

type nonrec describe_location_azure_blob_response = {
  1. custom_secret_config : custom_secret_config option;
    (*

    Describes configuration information for a customer-managed secret, such as an authentication token that DataSync uses to access a specific storage location, with a customer-managed Identity and Access Management (IAM) role that provides access to the secret.

    *)
  2. cmk_secret_config : cmk_secret_config option;
    (*

    Describes configuration information for a DataSync-managed secret, such as an authentication token that DataSync uses to access a specific storage location, with a customer-managed KMS key.

    *)
  3. managed_secret_config : managed_secret_config option;
    (*

    Describes configuration information for a DataSync-managed secret, such as an authentication token that DataSync uses to access a specific storage location. DataSync uses the default Amazon Web Services-managed KMS key to encrypt this secret in Secrets Manager.

    *)
  4. creation_time : time option;
    (*

    The time that your Azure Blob Storage transfer location was created.

    *)
  5. agent_arns : agent_arn_list option;
    (*

    The ARNs of the DataSync agents that can connect with your Azure Blob Storage container.

    *)
  6. access_tier : azure_access_tier option;
    (*

    The access tier that you want your objects or files transferred into. This only applies when using the location as a transfer destination. For more information, see Access tiers.

    *)
  7. blob_type : azure_blob_type option;
    (*

    The type of blob that you want your objects or files to be when transferring them into Azure Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more information on blob types, see the Azure Blob Storage documentation.

    *)
  8. authentication_type : azure_blob_authentication_type option;
    (*

    The authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob storage using a shared access signature (SAS).

    *)
  9. location_uri : location_uri option;
    (*

    The URL of the Azure Blob Storage container involved in your transfer.

    *)
  10. location_arn : location_arn option;
    (*

    The ARN of your Azure Blob Storage transfer location.

    *)
}
type nonrec describe_location_azure_blob_request = {
  1. location_arn : location_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of your Azure Blob Storage transfer location.

    *)
}
type nonrec endpoint_type =
  1. | FIPS
  2. | PUBLIC
type nonrec describe_agent_response = {
  1. platform : platform option;
    (*

    The platform-related details about the agent, such as the version number.

    *)
  2. endpoint_type : endpoint_type option;
    (*

    The type of service endpoint that your agent is connected to.

    *)
  3. creation_time : time option;
    (*

    The time that the agent was activated.

    *)
  4. last_connection_time : time option;
    (*

    The last time that the agent was communicating with the DataSync service.

    *)
  5. status : agent_status option;
    (*

    The status of the agent.

    • If the status is ONLINE, the agent is configured properly and ready to use.
    • If the status is OFFLINE, the agent has been out of contact with DataSync for five minutes or longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline?
    *)
  6. name : tag_value option;
    (*

    The name of the agent.

    *)
  7. agent_arn : agent_arn option;
    (*

    The ARN of the agent.

    *)
}

DescribeAgentResponse

type nonrec describe_agent_request = {
  1. agent_arn : agent_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the DataSync agent that you want information about.

    *)
}

DescribeAgent

type nonrec delete_task_response = unit
type nonrec delete_task_request = {
  1. task_arn : task_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the task that you want to delete.

    *)
}

DeleteTask

type nonrec delete_location_response = unit
type nonrec delete_location_request = {
  1. location_arn : location_arn;
    (*

    The Amazon Resource Name (ARN) of the location to delete.

    *)
}

DeleteLocation

type nonrec delete_agent_response = unit
type nonrec delete_agent_request = {
  1. agent_arn : agent_arn;
    (*

    The Amazon Resource Name (ARN) of the agent to delete. Use the ListAgents operation to return a list of agents for your account and Amazon Web Services Region.

    *)
}

DeleteAgentRequest

type nonrec create_task_response = {
  1. task_arn : task_arn option;
    (*

    The Amazon Resource Name (ARN) of the task.

    *)
}

CreateTaskResponse

type nonrec create_task_request = {
  1. task_mode : task_mode option;
    (*

    Specifies one of the following task modes for your data transfer:

    • ENHANCED - Transfer virtually unlimited numbers of objects with higher performance than Basic mode. Enhanced mode tasks optimize the data transfer process by listing, preparing, transferring, and verifying data in parallel. Enhanced mode is currently available for transfers between Amazon S3 locations, transfers between Azure Blob and Amazon S3 without an agent, and transfers between other clouds and Amazon S3 without an agent.

      To create an Enhanced mode task, the IAM role that you use to call the CreateTask operation must have the iam:CreateServiceLinkedRole permission.

    • BASIC (default) - Transfer files or objects between Amazon Web Services storage and all other supported DataSync locations. Basic mode tasks are subject to quotas on the number of files, objects, and directories in a dataset. Basic mode sequentially prepares, transfers, and verifies data, making it slower than Enhanced mode for most workloads.

    For more information, see Understanding task mode differences.

    *)
  2. task_report_config : task_report_config option;
    (*

    Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports.

    When using this parameter, your caller identity (the role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission.

    *)
  3. manifest_config : manifest_config option;
    (*

    Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.

    When using this parameter, your caller identity (the role that you're using DataSync with) must have the iam:PassRole permission. The AWSDataSyncFullAccess policy includes this permission.

    *)
  4. includes : filter_list option;
    (*

    Specifies include filters that define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.

    *)
  5. tags : input_tag_list option;
    (*

    Specifies the tags that you want to apply to your task.

    Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.

    *)
  6. schedule : task_schedule option;
    (*

    Specifies a schedule for when you want your task to run. For more information, see Scheduling your task.

    *)
  7. excludes : filter_list option;
    (*

    Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.

    *)
  8. options : options option;
    (*

    Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.

    *)
  9. name : tag_value option;
    (*

    Specifies the name of your task.

    *)
  10. cloud_watch_log_group_arn : log_group_arn option;
    (*

    Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.

    For Enhanced mode tasks, you don't need to specify anything. DataSync automatically sends logs to a CloudWatch log group named /aws/datasync.

    *)
  11. destination_location_arn : location_arn;
    (*

    Specifies the ARN of your transfer's destination location.

    *)
  12. source_location_arn : location_arn;
    (*

    Specifies the ARN of your transfer's source location.

    *)
}

CreateTaskRequest

type nonrec create_location_smb_response = {
  1. location_arn : location_arn option;
    (*

    The ARN of the SMB location that you created.

    *)
}

CreateLocationSmbResponse

type nonrec create_location_smb_request = {
  1. kerberos_krb5_conf : kerberos_krb5_conf_file option;
    (*

    Specifies a Kerberos configuration file (krb5.conf) that defines your Kerberos realm configuration.

    The file must be base64 encoded. If you're using the CLI, the encoding is done for you.

    *)
  2. kerberos_keytab : kerberos_keytab_file option;
    (*

    Specifies your Kerberos key table (keytab) file, which includes mappings between your Kerberos principal and encryption keys.

    To avoid task execution errors, make sure that the Kerberos principal that you use to create the keytab file matches exactly what you specify for KerberosPrincipal.

    *)
  3. kerberos_principal : kerberos_principal option;
    (*

    Specifies a Kerberos principal, which is an identity in your Kerberos realm that has permission to access the files, folders, and file metadata in your SMB file server.

    A Kerberos principal might look like HOST/kerberosuser@MYDOMAIN.ORG.

    Principal names are case sensitive. Your DataSync task execution will fail if the principal that you specify for this parameter doesn’t exactly match the principal that you use to create the keytab file.

    *)
  4. dns_ip_addresses : dns_ip_list option;
    (*

    Specifies the IPv4 or IPv6 addresses for the DNS servers that your SMB file server belongs to. This parameter applies only if AuthenticationType is set to KERBEROS.

    If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right SMB file server.

    *)
  5. authentication_type : smb_authentication_type option;
    (*

    Specifies the authentication protocol that DataSync uses to connect to your SMB file server. DataSync supports NTLM (default) and KERBEROS authentication.

    For more information, see Providing DataSync access to SMB file servers.

    *)
  6. tags : input_tag_list option;
    (*

    Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.

    *)
  7. mount_options : smb_mount_options option;
    (*

    Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.

    *)
  8. agent_arns : agent_arn_list;
    (*

    Specifies the DataSync agent (or agents) that can connect to your SMB file server. You specify an agent by using its Amazon Resource Name (ARN).

    *)
  9. custom_secret_config : custom_secret_config option;
    (*

    Specifies configuration information for a customer-managed Secrets Manager secret where the SMB storage location credentials is stored in Secrets Manager as plain text (for Password) or binary (for KerberosKeytab). This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. For more information, see Using a secret that you manage.

    You can use either CmkSecretConfig (with SasConfiguration) or CustomSecretConfig (without SasConfiguration) to provide credentials for a CreateLocationSmbRequest request. Do not provide both parameters for the same request.

    *)
  10. cmk_secret_config : cmk_secret_config option;
    (*

    Specifies configuration information for a DataSync-managed secret, either a Password or KerberosKeytab (for NTLM (default) and KERBEROS authentication types, respectively) that DataSync uses to access a specific SMB storage location, with a customer-managed KMS key.

    When you include this parameter as part of a CreateLocationSmbRequest request, you provide only the KMS key ARN. DataSync uses this KMS key together with either the Password or KerberosKeytab you specify to create a DataSync-managed secret to store the location access credentials.

    Make sure that DataSync has permission to access the KMS key that you specify. For more information, see Using a service-managed secret encrypted with a custom KMS key.

    You can use either CmkSecretConfig (with either Password or KerberosKeytab) or CustomSecretConfig (without any Password and KerberosKeytab) to provide credentials for a CreateLocationSmbRequest request. Do not provide both CmkSecretConfig and CustomSecretConfig parameters for the same request.

    *)
  11. password : smb_password option;
    (*

    Specifies the password of the user who can mount your SMB file server and has permission to access the files and folders involved in your transfer. This parameter applies only if AuthenticationType is set to NTLM.

    *)
  12. domain : smb_domain option;
    (*

    Specifies the Windows domain name that your SMB file server belongs to. This parameter applies only if AuthenticationType is set to NTLM.

    If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right file server.

    *)
  13. user : smb_user option;
    (*

    Specifies the user that can mount and access the files, folders, and file metadata in your SMB file server. This parameter applies only if AuthenticationType is set to NTLM.

    For information about choosing a user with the right level of access for your transfer, see Providing DataSync access to SMB file servers.

    *)
  14. server_hostname : server_hostname;
    (*

    Specifies the domain name or IP address (IPv4 or IPv6) of the SMB file server that your DataSync agent connects to.

    If you're using Kerberos authentication, you must specify a domain name.

    *)
  15. subdirectory : smb_subdirectory;
    (*

    Specifies the name of the share exported by your SMB file server where DataSync will read or write data. You can include a subdirectory in the share path (for example, /path/to/subdirectory). Make sure that other SMB clients in your network can also mount this path.

    To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see Providing DataSync access to SMB file servers.

    *)
}

CreateLocationSmbRequest

type nonrec create_location_s3_response = {
  1. location_arn : location_arn option;
    (*

    The ARN of the S3 location that you created.

    *)
}

CreateLocationS3Response

type nonrec create_location_s3_request = {
  1. tags : input_tag_list option;
    (*

    Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your transfer location.

    *)
  2. agent_arns : agent_arn_list option;
    (*

    (Amazon S3 on Outposts only) Specifies the Amazon Resource Name (ARN) of the DataSync agent on your Outpost.

    For more information, see Deploy your DataSync agent on Outposts.

    *)
  3. s3_config : s3_config;
  4. s3_storage_class : s3_storage_class option;
    (*

    Specifies the storage class that you want your objects to use when Amazon S3 is a transfer destination.

    For buckets in Amazon Web Services Regions, the storage class defaults to STANDARD. For buckets on Outposts, the storage class defaults to OUTPOSTS.

    For more information, see Storage class considerations with Amazon S3 transfers.

    *)
  5. s3_bucket_arn : s3_bucket_arn;
    (*

    Specifies the ARN of the S3 bucket that you want to use as a location. (When creating your DataSync task later, you specify whether this location is a transfer source or destination.)

    If your S3 bucket is located on an Outposts resource, you must specify an Amazon S3 access point. For more information, see Managing data access with Amazon S3 access points in the Amazon S3 User Guide.

    *)
  6. subdirectory : s3_subdirectory option;
    (*

    Specifies a prefix in the S3 bucket that DataSync reads from or writes to (depending on whether the bucket is a source or destination location).

    DataSync can't transfer objects with a prefix that begins with a slash (/) or includes //, /./, or /../ patterns. For example:

    • /photos
    • photos//2006/January
    • photos/./2006/February
    • photos/../2006/March
    *)
}

CreateLocationS3Request

type nonrec create_location_object_storage_response = {
  1. location_arn : location_arn option;
    (*

    Specifies the ARN of the object storage system location that you create.

    *)
}

CreateLocationObjectStorageResponse

type nonrec create_location_object_storage_request = {
  1. custom_secret_config : custom_secret_config option;
    (*

    Specifies configuration information for a customer-managed Secrets Manager secret where the secret key for a specific object storage location is stored in plain text, in Secrets Manager. This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. For more information, see Using a secret that you manage.

    You can use either CmkSecretConfig (with SecretKey) or CustomSecretConfig (without SecretKey) to provide credentials for a CreateLocationObjectStorage request. Do not provide both parameters for the same request.

    *)
  2. cmk_secret_config : cmk_secret_config option;
    (*

    Specifies configuration information for a DataSync-managed secret, which includes the SecretKey that DataSync uses to access a specific object storage location, with a customer-managed KMS key.

    When you include this parameter as part of a CreateLocationObjectStorage request, you provide only the KMS key ARN. DataSync uses this KMS key together with the value you specify for the SecretKey parameter to create a DataSync-managed secret to store the location access credentials.

    Make sure that DataSync has permission to access the KMS key that you specify. For more information, see Using a service-managed secret encrypted with a custom KMS key.

    You can use either CmkSecretConfig (with SecretKey) or CustomSecretConfig (without SecretKey) to provide credentials for a CreateLocationObjectStorage request. Do not provide both parameters for the same request.

    *)
  3. server_certificate : object_storage_certificate option;
    (*

    Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single .pem file with a full certificate chain (for example, file:///home/user/.ssh/object_storage_certificates.pem).

    The certificate chain might include:

    • The object storage system's certificate
    • All intermediate certificates (if there are any)
    • The root certificate of the signing CA

    You can concatenate your certificates into a .pem file (which can be up to 32768 bytes before base64 encoding). The following example cat command creates an object_storage_certificates.pem file that includes three certificates:

    cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem

    To use this parameter, configure ServerProtocol to HTTPS.

    *)
  4. tags : input_tag_list option;
    (*

    Specifies the key-value pair that represents a tag that you want to add to the resource. Tags can help you manage, filter, and search for your resources. We recommend creating a name tag for your location.

    *)
  5. agent_arns : agent_arn_list option;
    (*

    (Optional) Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your object storage system. If you are setting up an agentless cross-cloud transfer, you do not need to specify a value for this parameter.

    Make sure you configure this parameter correctly when you first create your storage location. You cannot add or remove agents from a storage location after you create it.

    *)
  6. secret_key : object_storage_secret_key option;
    (*

    Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.

    If you provide a secret using SecretKey, but do not provide secret configuration details using CmkSecretConfig or CustomSecretConfig, then DataSync stores the token using your Amazon Web Services account's Secrets Manager secret.

    *)
  7. access_key : object_storage_access_key option;
    (*

    Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.

    *)
  8. bucket_name : object_storage_bucket_name;
    (*

    Specifies the name of the object storage bucket involved in the transfer.

    *)
  9. subdirectory : s3_subdirectory option;
    (*

    Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.

    *)
  10. server_protocol : object_storage_server_protocol option;
    (*

    Specifies the protocol that your object storage server uses to communicate. If not specified, the default value is HTTPS.

    *)
  11. server_port : object_storage_server_port option;
    (*

    Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).

    *)
  12. server_hostname : server_hostname;
    (*

    Specifies the domain name or IP address (IPv4 or IPv6) of the object storage server that your DataSync agent connects to.

    *)
}

CreateLocationObjectStorageRequest

type nonrec create_location_nfs_response = {
  1. location_arn : location_arn option;
    (*

    The ARN of the transfer location that you created for your NFS file server.

    *)
}

CreateLocationNfsResponse

type nonrec create_location_nfs_request = {
  1. tags : input_tag_list option;
    (*

    Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.

    *)
  2. mount_options : nfs_mount_options option;
    (*

    Specifies the options that DataSync can use to mount your NFS file server.

    *)
  3. on_prem_config : on_prem_config;
    (*

    Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server.

    You can specify more than one agent. For more information, see Using multiple DataSync agents.

    *)
  4. server_hostname : server_hostname;
    (*

    Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.

    *)
  5. subdirectory : nfs_subdirectory;
    (*

    Specifies the export path in your NFS file server that you want DataSync to mount.

    This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see Accessing NFS file servers.

    *)
}

CreateLocationNfsRequest

type nonrec create_location_hdfs_response = {
  1. location_arn : location_arn option;
    (*

    The ARN of the source HDFS cluster location that you create.

    *)
}
type nonrec create_location_hdfs_request = {
  1. custom_secret_config : custom_secret_config option;
    (*

    Specifies configuration information for a customer-managed Secrets Manager secret where the Kerberos keytab for the HDFS storage location is stored in binary, in Secrets Manager. This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. For more information, see Using a secret that you manage.

    You can use either CmkSecretConfig (with KerberosKeytab) or CustomSecretConfig (without KerberosKeytab) to provide credentials for a CreateLocationHdfs request. Do not provide both parameters for the same request.

    *)
  2. cmk_secret_config : cmk_secret_config option;
    (*

    Specifies configuration information for a DataSync-managed secret, which includes the Kerberos keytab that DataSync uses to access a specific Hadoop Distributed File System (HDFS) storage location, with a customer-managed KMS key.

    When you include this parameter as part of a CreateLocationHdfs request, you provide only the KMS key ARN. DataSync uses this KMS key together with the KerberosKeytab you specify for to create a DataSync-managed secret to store the location access credentials.

    Make sure that DataSync has permission to access the KMS key that you specify. For more information, see Using a service-managed secret encrypted with a custom KMS key.

    You can use either CmkSecretConfig (with KerberosKeytab) or CustomSecretConfig (without KerberosKeytab) to provide credentials for a CreateLocationHdfs request. Do not provide both parameters for the same request.

    *)
  3. tags : input_tag_list option;
    (*

    The key-value pair that represents the tag that you want to add to the location. The value can be an empty string. We recommend using tags to name your resources.

    *)
  4. agent_arns : agent_arn_list;
    (*

    The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS cluster.

    *)
  5. kerberos_krb5_conf : kerberos_krb5_conf_file option;
    (*

    The krb5.conf file that contains the Kerberos configuration information. You can load the krb5.conf file by providing the file's address. If you're using the CLI, it performs the base64 encoding for you. Otherwise, provide the base64-encoded text.

    If KERBEROS is specified for AuthenticationType, this parameter is required.

    *)
  6. kerberos_keytab : kerberos_keytab_file option;
    (*

    The Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys. You can load the keytab from a file by providing the file's address.

    If KERBEROS is specified for AuthenticationType, this parameter is required.

    *)
  7. kerberos_principal : kerberos_principal option;
    (*

    The Kerberos principal with access to the files and folders on the HDFS cluster.

    If KERBEROS is specified for AuthenticationType, this parameter is required.

    *)
  8. simple_user : hdfs_user option;
    (*

    The user name used to identify the client on the host operating system.

    If SIMPLE is specified for AuthenticationType, this parameter is required.

    *)
  9. authentication_type : hdfs_authentication_type;
    (*

    The type of authentication used to determine the identity of the user.

    *)
  10. qop_configuration : qop_configuration option;
    (*

    The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer protection settings configured on the Hadoop Distributed File System (HDFS) cluster. If QopConfiguration isn't specified, RpcProtection and DataTransferProtection default to PRIVACY. If you set RpcProtection or DataTransferProtection, the other parameter assumes the same value.

    *)
  11. kms_key_provider_uri : kms_key_provider_uri option;
    (*

    The URI of the HDFS cluster's Key Management Server (KMS).

    *)
  12. replication_factor : hdfs_replication_factor option;
    (*

    The number of DataNodes to replicate the data to when writing to the HDFS cluster. By default, data is replicated to three DataNodes.

    *)
  13. block_size : hdfs_block_size option;
    (*

    The size of data blocks to write into the HDFS cluster. The block size must be a multiple of 512 bytes. The default block size is 128 mebibytes (MiB).

    *)
  14. name_nodes : hdfs_name_node_list;
    (*

    The NameNode that manages the HDFS namespace. The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes. You can use only one NameNode.

    *)
  15. subdirectory : hdfs_subdirectory option;
    (*

    A subdirectory in the HDFS cluster. This subdirectory is used to read data from or write data to the HDFS cluster. If the subdirectory isn't specified, it will default to /.

    *)
}
type nonrec create_location_fsx_windows_response = {
  1. location_arn : location_arn option;
    (*

    The ARN of the FSx for Windows File Server file system location you created.

    *)
}
type nonrec create_location_fsx_windows_request = {
  1. custom_secret_config : custom_secret_config option;
    (*

    Specifies configuration information for a customer-managed Secrets Manager secret where the password for an FSx for Windows File Server storage location is stored in plain text, in Secrets Manager. This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. For more information, see Using a secret that you manage.

    You can use either CmkSecretConfig (with Password) or CustomSecretConfig (without Password) to provide credentials for a CreateLocationFsxWindows request. Do not provide both parameters for the same request.

    *)
  2. cmk_secret_config : cmk_secret_config option;
    (*

    Specifies configuration information for a DataSync-managed secret, which includes the password that DataSync uses to access a specific FSx Windows storage location, with a customer-managed KMS key.

    When you include this parameter as part of a CreateLocationFsxWindows request, you provide only the KMS key ARN. DataSync uses this KMS key together with the Password you specify for to create a DataSync-managed secret to store the location access credentials.

    Make sure that DataSync has permission to access the KMS key that you specify. For more information, see Using a service-managed secret encrypted with a custom KMS key.

    You can use either CmkSecretConfig (with Password) or CustomSecretConfig (without Password) to provide credentials for a CreateLocationFsxWindows request. Do not provide both parameters for the same request.

    *)
  3. password : smb_password option;
    (*

    Specifies the password of the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system.

    *)
  4. domain : smb_domain option;
    (*

    Specifies the name of the Windows domain that the FSx for Windows File Server file system belongs to.

    If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file system.

    *)
  5. user : smb_user;
    (*

    Specifies the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system.

    For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations.

    *)
  6. tags : input_tag_list option;
    (*

    Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.

    *)
  7. security_group_arns : ec2_security_group_arn_list;
    (*

    Specifies the ARNs of the Amazon EC2 security groups that provide access to your file system's preferred subnet.

    The security groups that you specify must be able to communicate with your file system's security groups. For information about configuring security groups for file system access, see the Amazon FSx for Windows File Server User Guide.

    If you choose a security group that doesn't allow connections from within itself, do one of the following:

    • Configure the security group to allow it to communicate within itself.
    • Choose a different security group that can communicate with the mount target's security group.
    *)
  8. fsx_filesystem_arn : fsx_filesystem_arn;
    (*

    Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server file system.

    *)
  9. subdirectory : fsx_windows_subdirectory option;
    (*

    Specifies a mount path for your file system using forward slashes. This is where DataSync reads or writes data (depending on if this is a source or destination location).

    *)
}
type nonrec create_location_fsx_open_zfs_response = {
  1. location_arn : location_arn option;
    (*

    The ARN of the FSx for OpenZFS file system location that you created.

    *)
}
type nonrec create_location_fsx_open_zfs_request = {
  1. tags : input_tag_list option;
    (*

    The key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.

    *)
  2. subdirectory : fsx_open_zfs_subdirectory option;
    (*

    A subdirectory in the location's path that must begin with /fsx. DataSync uses this subdirectory to read or write data (depending on whether the file system is a source or destination location).

    *)
  3. security_group_arns : ec2_security_group_arn_list;
    (*

    The ARNs of the security groups that are used to configure the FSx for OpenZFS file system.

    *)
  4. protocol : fsx_protocol;
    (*

    The type of protocol that DataSync uses to access your file system.

    *)
  5. fsx_filesystem_arn : fsx_filesystem_arn;
    (*

    The Amazon Resource Name (ARN) of the FSx for OpenZFS file system.

    *)
}
type nonrec create_location_fsx_ontap_response = {
  1. location_arn : location_arn option;
    (*

    Specifies the ARN of the FSx for ONTAP file system location that you create.

    *)
}
type nonrec create_location_fsx_ontap_request = {
  1. tags : input_tag_list option;
    (*

    Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.

    *)
  2. subdirectory : fsx_ontap_subdirectory option;
    (*

    Specifies a path to the file share in the SVM where you want to transfer data to or from.

    You can specify a junction path (also known as a mount point), qtree path (for NFS file shares), or share name (for SMB file shares). For example, your mount path might be /vol1, /vol1/tree1, or /share1.

    Don't specify a junction path in the SVM's root volume. For more information, see Managing FSx for ONTAP storage virtual machines in the Amazon FSx for NetApp ONTAP User Guide.

    *)
  3. storage_virtual_machine_arn : storage_virtual_machine_arn;
    (*

    Specifies the ARN of the storage virtual machine (SVM) in your file system where you want to copy data to or from.

    *)
  4. security_group_arns : ec2_security_group_arn_list;
    (*

    Specifies the Amazon EC2 security groups that provide access to your file system's preferred subnet.

    The security groups must allow outbound traffic on the following ports (depending on the protocol you use):

    • Network File System (NFS): TCP ports 111, 635, and 2049
    • Server Message Block (SMB): TCP port 445

    Your file system's security groups must also allow inbound traffic on the same ports.

    *)
  5. protocol : fsx_protocol;
}
type nonrec create_location_fsx_lustre_response = {
  1. location_arn : location_arn option;
    (*

    The Amazon Resource Name (ARN) of the FSx for Lustre file system location that you created.

    *)
}
type nonrec create_location_fsx_lustre_request = {
  1. tags : input_tag_list option;
    (*

    Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.

    *)
  2. subdirectory : fsx_lustre_subdirectory option;
    (*

    Specifies a mount path for your FSx for Lustre file system. The path can include subdirectories.

    When the location is used as a source, DataSync reads data from the mount path. When the location is used as a destination, DataSync writes data to the mount path. If you don't include this parameter, DataSync uses the file system's root directory (/).

    *)
  3. security_group_arns : ec2_security_group_arn_list;
    (*

    Specifies the Amazon Resource Names (ARNs) of up to five security groups that provide access to your FSx for Lustre file system.

    The security groups must be able to access the file system's ports. The file system must also allow access from the security groups. For information about file system access, see the Amazon FSx for Lustre User Guide.

    *)
  4. fsx_filesystem_arn : fsx_filesystem_arn;
    (*

    Specifies the Amazon Resource Name (ARN) of the FSx for Lustre file system.

    *)
}
type nonrec create_location_efs_response = {
  1. location_arn : location_arn option;
    (*

    The Amazon Resource Name (ARN) of the Amazon EFS file system location that you create.

    *)
}

CreateLocationEfs

type nonrec efs_filesystem_arn = string
type nonrec create_location_efs_request = {
  1. in_transit_encryption : efs_in_transit_encryption option;
    (*

    Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it transfers data to or from your Amazon EFS file system.

    If you specify an access point using AccessPointArn or an IAM role using FileSystemAccessRoleArn, you must set this parameter to TLS1_2.

    *)
  2. file_system_access_role_arn : iam_role_arn option;
    (*

    Specifies an Identity and Access Management (IAM) role that allows DataSync to access your Amazon EFS file system.

    For information on creating this role, see Creating a DataSync IAM role for file system access.

    *)
  3. access_point_arn : efs_access_point_arn option;
    (*

    Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to mount your Amazon EFS file system.

    For more information, see Accessing restricted file systems.

    *)
  4. tags : input_tag_list option;
    (*

    Specifies the key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.

    *)
  5. ec2_config : ec2_config;
    (*

    Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS file system's mount targets.

    *)
  6. efs_filesystem_arn : efs_filesystem_arn;
    (*

    Specifies the ARN for your Amazon EFS file system.

    *)
  7. subdirectory : efs_subdirectory option;
    (*

    Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data on your file system (depending on if this is a source or destination location).

    By default, DataSync uses the root directory (or access point if you provide one by using AccessPointArn). You can also include subdirectories using forward slashes (for example, /path/to/folder).

    *)
}

CreateLocationEfsRequest

type nonrec create_location_azure_blob_response = {
  1. location_arn : location_arn option;
    (*

    The ARN of the Azure Blob Storage transfer location that you created.

    *)
}
type nonrec azure_blob_container_url = string
type nonrec create_location_azure_blob_request = {
  1. custom_secret_config : custom_secret_config option;
    (*

    Specifies configuration information for a customer-managed Secrets Manager secret where the authentication token for an AzureBlob storage location is stored in plain text, in Secrets Manager. This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret. For more information, see Using a secret that you manage.

    You can use either CmkSecretConfig (with SasConfiguration) or CustomSecretConfig (without SasConfiguration) to provide credentials for a CreateLocationAzureBlob request. Do not provide both parameters for the same request.

    *)
  2. cmk_secret_config : cmk_secret_config option;
    (*

    Specifies configuration information for a DataSync-managed secret, which includes the authentication token that DataSync uses to access a specific AzureBlob storage location, with a customer-managed KMS key.

    When you include this parameter as part of a CreateLocationAzureBlob request, you provide only the KMS key ARN. DataSync uses this KMS key together with the authentication token you specify for SasConfiguration to create a DataSync-managed secret to store the location access credentials.

    Make sure that DataSync has permission to access the KMS key that you specify. For more information, see Using a service-managed secret encrypted with a custom KMS key.

    You can use either CmkSecretConfig (with SasConfiguration) or CustomSecretConfig (without SasConfiguration) to provide credentials for a CreateLocationAzureBlob request. Do not provide both parameters for the same request.

    *)
  3. tags : input_tag_list option;
    (*

    Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your transfer location.

    *)
  4. agent_arns : agent_arn_list option;
    (*

    (Optional) Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob Storage container. If you are setting up an agentless cross-cloud transfer, you do not need to specify a value for this parameter.

    You can specify more than one agent. For more information, see Using multiple agents for your transfer.

    Make sure you configure this parameter correctly when you first create your storage location. You cannot add or remove agents from a storage location after you create it.

    *)
  5. subdirectory : azure_blob_subdirectory option;
    (*

    Specifies path segments if you want to limit your transfer to a virtual directory in your container (for example, /my/images).

    *)
  6. access_tier : azure_access_tier option;
    (*

    Specifies the access tier that you want your objects or files transferred into. This only applies when using the location as a transfer destination. For more information, see Access tiers.

    *)
  7. blob_type : azure_blob_type option;
    (*

    Specifies the type of blob that you want your objects or files to be when transferring them into Azure Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more information on blob types, see the Azure Blob Storage documentation.

    *)
  8. sas_configuration : azure_blob_sas_configuration option;
    (*

    Specifies the SAS configuration that allows DataSync to access your Azure Blob Storage.

    If you provide an authentication token using SasConfiguration, but do not provide secret configuration details using CmkSecretConfig or CustomSecretConfig, then DataSync stores the token using your Amazon Web Services account's secrets manager secret.

    *)
  9. authentication_type : azure_blob_authentication_type;
    (*

    Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob storage using a shared access signature (SAS).

    *)
  10. container_url : azure_blob_container_url;
    (*

    Specifies the URL of the Azure Blob Storage container involved in your transfer.

    *)
}
type nonrec create_agent_response = {
  1. agent_arn : agent_arn option;
    (*

    The ARN of the agent that you just activated. Use the ListAgents operation to return a list of agents in your Amazon Web Services account and Amazon Web Services Region.

    *)
}

CreateAgentResponse

type nonrec activation_key = string
type nonrec create_agent_request = {
  1. security_group_arns : pl_security_group_arn_list option;
    (*

    Specifies the Amazon Resource Name (ARN) of the security group that allows traffic between your agent and VPC service endpoint. You can only specify one ARN.

    *)
  2. subnet_arns : pl_subnet_arn_list option;
    (*

    Specifies the ARN of the subnet where your VPC service endpoint is located. You can only specify one ARN.

    *)
  3. vpc_endpoint_id : vpc_endpoint_id option;
    (*

    Specifies the ID of the VPC service endpoint that you're using. For example, a VPC endpoint ID looks like vpce-01234d5aff67890e1.

    The VPC service endpoint you use must include the DataSync service name (for example, com.amazonaws.us-east-2.datasync).

    *)
  4. tags : input_tag_list option;
    (*

    Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least one tag for your agent.

    *)
  5. agent_name : tag_value option;
    (*

    Specifies a name for your agent. We recommend specifying a name that you can remember.

    *)
  6. activation_key : activation_key;
    (*

    Specifies your DataSync agent's activation key. If you don't have an activation key, see Activating your agent.

    *)
}

CreateAgentRequest

type nonrec cancel_task_execution_response = unit
type nonrec cancel_task_execution_request = {
  1. task_execution_arn : task_execution_arn;
    (*

    The Amazon Resource Name (ARN) of the task execution to stop.

    *)
}

CancelTaskExecutionRequest