capo-datasync 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (370) hide show
  1. capo_datasync/__init__.py +70 -0
  2. capo_datasync/_async.py +25 -0
  3. capo_datasync/_auth/_identity.py +16 -0
  4. capo_datasync/_auth/_providers.py +886 -0
  5. capo_datasync/_auth/_signers.py +88 -0
  6. capo_datasync/_auth/_sigv4.py +434 -0
  7. capo_datasync/_auth/_zapros_handler.py +80 -0
  8. capo_datasync/_iter.py +113 -0
  9. capo_datasync/_operations/fmrs_service/cancel_task_execution.py +147 -0
  10. capo_datasync/_operations/fmrs_service/create_agent.py +154 -0
  11. capo_datasync/_operations/fmrs_service/create_location_azure_blob.py +159 -0
  12. capo_datasync/_operations/fmrs_service/create_location_efs.py +156 -0
  13. capo_datasync/_operations/fmrs_service/create_location_fsx_lustre.py +153 -0
  14. capo_datasync/_operations/fmrs_service/create_location_fsx_ontap.py +154 -0
  15. capo_datasync/_operations/fmrs_service/create_location_fsx_open_zfs.py +154 -0
  16. capo_datasync/_operations/fmrs_service/create_location_fsx_windows.py +155 -0
  17. capo_datasync/_operations/fmrs_service/create_location_hdfs.py +158 -0
  18. capo_datasync/_operations/fmrs_service/create_location_nfs.py +156 -0
  19. capo_datasync/_operations/fmrs_service/create_location_object_storage.py +157 -0
  20. capo_datasync/_operations/fmrs_service/create_location_s3.py +157 -0
  21. capo_datasync/_operations/fmrs_service/create_location_smb.py +162 -0
  22. capo_datasync/_operations/fmrs_service/create_task.py +158 -0
  23. capo_datasync/_operations/fmrs_service/delete_agent.py +143 -0
  24. capo_datasync/_operations/fmrs_service/delete_location.py +143 -0
  25. capo_datasync/_operations/fmrs_service/delete_task.py +143 -0
  26. capo_datasync/_operations/fmrs_service/describe_agent.py +156 -0
  27. capo_datasync/_operations/fmrs_service/describe_location_azure_blob.py +159 -0
  28. capo_datasync/_operations/fmrs_service/describe_location_efs.py +154 -0
  29. capo_datasync/_operations/fmrs_service/describe_location_fsx_lustre.py +153 -0
  30. capo_datasync/_operations/fmrs_service/describe_location_fsx_ontap.py +154 -0
  31. capo_datasync/_operations/fmrs_service/describe_location_fsx_open_zfs.py +154 -0
  32. capo_datasync/_operations/fmrs_service/describe_location_fsx_windows.py +156 -0
  33. capo_datasync/_operations/fmrs_service/describe_location_hdfs.py +159 -0
  34. capo_datasync/_operations/fmrs_service/describe_location_nfs.py +154 -0
  35. capo_datasync/_operations/fmrs_service/describe_location_object_storage.py +158 -0
  36. capo_datasync/_operations/fmrs_service/describe_location_s3.py +153 -0
  37. capo_datasync/_operations/fmrs_service/describe_location_smb.py +159 -0
  38. capo_datasync/_operations/fmrs_service/describe_task.py +162 -0
  39. capo_datasync/_operations/fmrs_service/describe_task_execution.py +164 -0
  40. capo_datasync/_operations/fmrs_service/list_agents.py +152 -0
  41. capo_datasync/_operations/fmrs_service/list_locations.py +153 -0
  42. capo_datasync/_operations/fmrs_service/list_tags_for_resource.py +152 -0
  43. capo_datasync/_operations/fmrs_service/list_task_executions.py +150 -0
  44. capo_datasync/_operations/fmrs_service/list_tasks.py +149 -0
  45. capo_datasync/_operations/fmrs_service/start_task_execution.py +154 -0
  46. capo_datasync/_operations/fmrs_service/tag_resource.py +144 -0
  47. capo_datasync/_operations/fmrs_service/untag_resource.py +144 -0
  48. capo_datasync/_operations/fmrs_service/update_agent.py +143 -0
  49. capo_datasync/_operations/fmrs_service/update_location_azure_blob.py +154 -0
  50. capo_datasync/_operations/fmrs_service/update_location_efs.py +146 -0
  51. capo_datasync/_operations/fmrs_service/update_location_fsx_lustre.py +147 -0
  52. capo_datasync/_operations/fmrs_service/update_location_fsx_ontap.py +148 -0
  53. capo_datasync/_operations/fmrs_service/update_location_fsx_open_zfs.py +148 -0
  54. capo_datasync/_operations/fmrs_service/update_location_fsx_windows.py +149 -0
  55. capo_datasync/_operations/fmrs_service/update_location_hdfs.py +153 -0
  56. capo_datasync/_operations/fmrs_service/update_location_nfs.py +147 -0
  57. capo_datasync/_operations/fmrs_service/update_location_object_storage.py +152 -0
  58. capo_datasync/_operations/fmrs_service/update_location_s3.py +147 -0
  59. capo_datasync/_operations/fmrs_service/update_location_smb.py +153 -0
  60. capo_datasync/_operations/fmrs_service/update_task.py +148 -0
  61. capo_datasync/_operations/fmrs_service/update_task_execution.py +148 -0
  62. capo_datasync/_pagination.py +21 -0
  63. capo_datasync/_protocol/__init__.py +1 -0
  64. capo_datasync/_protocol/errors.py +93 -0
  65. capo_datasync/_protocol/eventstream.py +238 -0
  66. capo_datasync/_protocol/serialize.py +47 -0
  67. capo_datasync/_protocol/xml.py +33 -0
  68. capo_datasync/_rule_engine/__init__.py +0 -0
  69. capo_datasync/_rule_engine/_aws_partition.py +160 -0
  70. capo_datasync/_rule_engine/_endpoint_rule_set.py +136 -0
  71. capo_datasync/_rule_engine/_endpoint_runtime.py +389 -0
  72. capo_datasync/_services/_aws_config.py +160 -0
  73. capo_datasync/_services/_pipeline.py +198 -0
  74. capo_datasync/_services/async_data_sync.py +3793 -0
  75. capo_datasync/_services/data_sync.py +3742 -0
  76. capo_datasync/errors/__init__.py +27 -0
  77. capo_datasync/errors/_base.py +94 -0
  78. capo_datasync/errors/internal_exception.py +56 -0
  79. capo_datasync/errors/invalid_request_exception.py +61 -0
  80. capo_datasync/py.typed +0 -0
  81. capo_datasync/types/_prelude/blob.py +12 -0
  82. capo_datasync/types/_prelude/timestamp.py +17 -0
  83. capo_datasync/types/activation_key.py +5 -0
  84. capo_datasync/types/agent_arn.py +5 -0
  85. capo_datasync/types/agent_arn_list.py +17 -0
  86. capo_datasync/types/agent_list.py +29 -0
  87. capo_datasync/types/agent_list_entry.py +65 -0
  88. capo_datasync/types/agent_status.py +17 -0
  89. capo_datasync/types/agent_version.py +5 -0
  90. capo_datasync/types/atime.py +17 -0
  91. capo_datasync/types/azure_access_tier.py +18 -0
  92. capo_datasync/types/azure_blob_authentication_type.py +17 -0
  93. capo_datasync/types/azure_blob_container_url.py +5 -0
  94. capo_datasync/types/azure_blob_sas_configuration.py +31 -0
  95. capo_datasync/types/azure_blob_sas_token.py +5 -0
  96. capo_datasync/types/azure_blob_subdirectory.py +5 -0
  97. capo_datasync/types/azure_blob_type.py +14 -0
  98. capo_datasync/types/bytes_per_second.py +5 -0
  99. capo_datasync/types/cancel_task_execution_request.py +33 -0
  100. capo_datasync/types/cancel_task_execution_response.py +18 -0
  101. capo_datasync/types/cmk_secret_config.py +35 -0
  102. capo_datasync/types/create_agent_request.py +100 -0
  103. capo_datasync/types/create_agent_response.py +28 -0
  104. capo_datasync/types/create_location_azure_blob_request.py +193 -0
  105. capo_datasync/types/create_location_azure_blob_response.py +28 -0
  106. capo_datasync/types/create_location_efs_request.py +110 -0
  107. capo_datasync/types/create_location_efs_response.py +28 -0
  108. capo_datasync/types/create_location_fsx_lustre_request.py +81 -0
  109. capo_datasync/types/create_location_fsx_lustre_response.py +28 -0
  110. capo_datasync/types/create_location_fsx_ontap_request.py +98 -0
  111. capo_datasync/types/create_location_fsx_ontap_response.py +28 -0
  112. capo_datasync/types/create_location_fsx_open_zfs_request.py +97 -0
  113. capo_datasync/types/create_location_fsx_open_zfs_response.py +28 -0
  114. capo_datasync/types/create_location_fsx_windows_request.py +145 -0
  115. capo_datasync/types/create_location_fsx_windows_response.py +28 -0
  116. capo_datasync/types/create_location_hdfs_request.py +249 -0
  117. capo_datasync/types/create_location_hdfs_response.py +28 -0
  118. capo_datasync/types/create_location_nfs_request.py +91 -0
  119. capo_datasync/types/create_location_nfs_response.py +28 -0
  120. capo_datasync/types/create_location_object_storage_request.py +193 -0
  121. capo_datasync/types/create_location_object_storage_response.py +28 -0
  122. capo_datasync/types/create_location_s3_request.py +102 -0
  123. capo_datasync/types/create_location_s3_response.py +28 -0
  124. capo_datasync/types/create_location_smb_request.py +241 -0
  125. capo_datasync/types/create_location_smb_response.py +28 -0
  126. capo_datasync/types/create_task_request.py +185 -0
  127. capo_datasync/types/create_task_response.py +28 -0
  128. capo_datasync/types/custom_secret_config.py +37 -0
  129. capo_datasync/types/delete_agent_request.py +31 -0
  130. capo_datasync/types/delete_agent_response.py +18 -0
  131. capo_datasync/types/delete_location_request.py +31 -0
  132. capo_datasync/types/delete_location_response.py +18 -0
  133. capo_datasync/types/delete_task_request.py +31 -0
  134. capo_datasync/types/delete_task_response.py +18 -0
  135. capo_datasync/types/describe_agent_request.py +31 -0
  136. capo_datasync/types/describe_agent_response.py +132 -0
  137. capo_datasync/types/describe_location_azure_blob_request.py +33 -0
  138. capo_datasync/types/describe_location_azure_blob_response.py +183 -0
  139. capo_datasync/types/describe_location_efs_request.py +31 -0
  140. capo_datasync/types/describe_location_efs_response.py +103 -0
  141. capo_datasync/types/describe_location_fsx_lustre_request.py +33 -0
  142. capo_datasync/types/describe_location_fsx_lustre_response.py +71 -0
  143. capo_datasync/types/describe_location_fsx_ontap_request.py +33 -0
  144. capo_datasync/types/describe_location_fsx_ontap_response.py +103 -0
  145. capo_datasync/types/describe_location_fsx_open_zfs_request.py +33 -0
  146. capo_datasync/types/describe_location_fsx_open_zfs_response.py +86 -0
  147. capo_datasync/types/describe_location_fsx_windows_request.py +33 -0
  148. capo_datasync/types/describe_location_fsx_windows_response.py +148 -0
  149. capo_datasync/types/describe_location_hdfs_request.py +31 -0
  150. capo_datasync/types/describe_location_hdfs_response.py +230 -0
  151. capo_datasync/types/describe_location_nfs_request.py +31 -0
  152. capo_datasync/types/describe_location_nfs_response.py +85 -0
  153. capo_datasync/types/describe_location_object_storage_request.py +33 -0
  154. capo_datasync/types/describe_location_object_storage_response.py +188 -0
  155. capo_datasync/types/describe_location_s3_request.py +31 -0
  156. capo_datasync/types/describe_location_s3_response.py +98 -0
  157. capo_datasync/types/describe_location_smb_request.py +31 -0
  158. capo_datasync/types/describe_location_smb_response.py +208 -0
  159. capo_datasync/types/describe_task_execution_request.py +33 -0
  160. capo_datasync/types/describe_task_execution_response.py +435 -0
  161. capo_datasync/types/describe_task_request.py +31 -0
  162. capo_datasync/types/describe_task_response.py +288 -0
  163. capo_datasync/types/destination_network_interface_arns.py +19 -0
  164. capo_datasync/types/dns_ip_list.py +17 -0
  165. capo_datasync/types/duration.py +5 -0
  166. capo_datasync/types/ec2_config.py +53 -0
  167. capo_datasync/types/ec2_security_group_arn.py +5 -0
  168. capo_datasync/types/ec2_security_group_arn_list.py +19 -0
  169. capo_datasync/types/ec2_subnet_arn.py +5 -0
  170. capo_datasync/types/efs_access_point_arn.py +5 -0
  171. capo_datasync/types/efs_filesystem_arn.py +5 -0
  172. capo_datasync/types/efs_in_transit_encryption.py +17 -0
  173. capo_datasync/types/efs_subdirectory.py +5 -0
  174. capo_datasync/types/endpoint.py +5 -0
  175. capo_datasync/types/endpoint_type.py +19 -0
  176. capo_datasync/types/filter_attribute_value.py +5 -0
  177. capo_datasync/types/filter_list.py +29 -0
  178. capo_datasync/types/filter_rule.py +43 -0
  179. capo_datasync/types/filter_type.py +14 -0
  180. capo_datasync/types/filter_value.py +5 -0
  181. capo_datasync/types/filter_values.py +19 -0
  182. capo_datasync/types/fsx_filesystem_arn.py +5 -0
  183. capo_datasync/types/fsx_lustre_subdirectory.py +5 -0
  184. capo_datasync/types/fsx_ontap_subdirectory.py +5 -0
  185. capo_datasync/types/fsx_open_zfs_subdirectory.py +5 -0
  186. capo_datasync/types/fsx_protocol.py +51 -0
  187. capo_datasync/types/fsx_protocol_nfs.py +39 -0
  188. capo_datasync/types/fsx_protocol_smb.py +127 -0
  189. capo_datasync/types/fsx_update_protocol.py +52 -0
  190. capo_datasync/types/fsx_update_protocol_smb.py +102 -0
  191. capo_datasync/types/fsx_windows_subdirectory.py +5 -0
  192. capo_datasync/types/gid.py +19 -0
  193. capo_datasync/types/hdfs_authentication_type.py +17 -0
  194. capo_datasync/types/hdfs_block_size.py +5 -0
  195. capo_datasync/types/hdfs_data_transfer_protection.py +19 -0
  196. capo_datasync/types/hdfs_name_node.py +39 -0
  197. capo_datasync/types/hdfs_name_node_list.py +29 -0
  198. capo_datasync/types/hdfs_replication_factor.py +5 -0
  199. capo_datasync/types/hdfs_rpc_protection.py +19 -0
  200. capo_datasync/types/hdfs_server_hostname.py +5 -0
  201. capo_datasync/types/hdfs_server_port.py +5 -0
  202. capo_datasync/types/hdfs_subdirectory.py +5 -0
  203. capo_datasync/types/hdfs_user.py +5 -0
  204. capo_datasync/types/iam_role_arn.py +5 -0
  205. capo_datasync/types/iam_role_arn_or_empty_string.py +5 -0
  206. capo_datasync/types/input_tag_list.py +29 -0
  207. capo_datasync/types/item_count.py +5 -0
  208. capo_datasync/types/kerberos_keytab_file.py +15 -0
  209. capo_datasync/types/kerberos_krb5_conf_file.py +15 -0
  210. capo_datasync/types/kerberos_principal.py +5 -0
  211. capo_datasync/types/kms_key_arn.py +5 -0
  212. capo_datasync/types/kms_key_provider_uri.py +5 -0
  213. capo_datasync/types/list_agents_request.py +35 -0
  214. capo_datasync/types/list_agents_response.py +43 -0
  215. capo_datasync/types/list_locations_request.py +50 -0
  216. capo_datasync/types/list_locations_response.py +43 -0
  217. capo_datasync/types/list_tags_for_resource_request.py +45 -0
  218. capo_datasync/types/list_tags_for_resource_response.py +43 -0
  219. capo_datasync/types/list_task_executions_request.py +42 -0
  220. capo_datasync/types/list_task_executions_response.py +49 -0
  221. capo_datasync/types/list_tasks_request.py +50 -0
  222. capo_datasync/types/list_tasks_response.py +43 -0
  223. capo_datasync/types/location_arn.py +5 -0
  224. capo_datasync/types/location_filter.py +71 -0
  225. capo_datasync/types/location_filter_name.py +18 -0
  226. capo_datasync/types/location_filters.py +29 -0
  227. capo_datasync/types/location_list.py +33 -0
  228. capo_datasync/types/location_list_entry.py +35 -0
  229. capo_datasync/types/location_uri.py +5 -0
  230. capo_datasync/types/log_group_arn.py +5 -0
  231. capo_datasync/types/log_level.py +18 -0
  232. capo_datasync/types/long.py +5 -0
  233. capo_datasync/types/managed_secret_config.py +28 -0
  234. capo_datasync/types/manifest_action.py +14 -0
  235. capo_datasync/types/manifest_config.py +72 -0
  236. capo_datasync/types/manifest_format.py +14 -0
  237. capo_datasync/types/max_results.py +5 -0
  238. capo_datasync/types/mtime.py +17 -0
  239. capo_datasync/types/network_interface_arn.py +5 -0
  240. capo_datasync/types/next_token.py +5 -0
  241. capo_datasync/types/nfs_mount_options.py +36 -0
  242. capo_datasync/types/nfs_subdirectory.py +5 -0
  243. capo_datasync/types/nfs_version.py +19 -0
  244. capo_datasync/types/object_storage_access_key.py +5 -0
  245. capo_datasync/types/object_storage_bucket_name.py +5 -0
  246. capo_datasync/types/object_storage_certificate.py +15 -0
  247. capo_datasync/types/object_storage_secret_key.py +5 -0
  248. capo_datasync/types/object_storage_server_port.py +5 -0
  249. capo_datasync/types/object_storage_server_protocol.py +17 -0
  250. capo_datasync/types/object_tags.py +17 -0
  251. capo_datasync/types/object_version_ids.py +17 -0
  252. capo_datasync/types/on_prem_config.py +39 -0
  253. capo_datasync/types/operator.py +25 -0
  254. capo_datasync/types/options.py +254 -0
  255. capo_datasync/types/output_tag_list.py +29 -0
  256. capo_datasync/types/overwrite_mode.py +17 -0
  257. capo_datasync/types/phase_status.py +18 -0
  258. capo_datasync/types/pl_security_group_arn_list.py +19 -0
  259. capo_datasync/types/pl_subnet_arn_list.py +17 -0
  260. capo_datasync/types/platform.py +28 -0
  261. capo_datasync/types/posix_permissions.py +17 -0
  262. capo_datasync/types/preserve_deleted_files.py +17 -0
  263. capo_datasync/types/preserve_devices.py +17 -0
  264. capo_datasync/types/private_link_config.py +75 -0
  265. capo_datasync/types/qop_configuration.py +63 -0
  266. capo_datasync/types/report_destination.py +36 -0
  267. capo_datasync/types/report_destination_s3.py +48 -0
  268. capo_datasync/types/report_level.py +17 -0
  269. capo_datasync/types/report_output_type.py +17 -0
  270. capo_datasync/types/report_override.py +36 -0
  271. capo_datasync/types/report_overrides.py +80 -0
  272. capo_datasync/types/report_result.py +49 -0
  273. capo_datasync/types/s3_bucket_arn.py +5 -0
  274. capo_datasync/types/s3_config.py +31 -0
  275. capo_datasync/types/s3_manifest_config.py +56 -0
  276. capo_datasync/types/s3_object_version_id.py +5 -0
  277. capo_datasync/types/s3_storage_class.py +23 -0
  278. capo_datasync/types/s3_subdirectory.py +5 -0
  279. capo_datasync/types/schedule_disabled_by.py +17 -0
  280. capo_datasync/types/schedule_disabled_reason.py +5 -0
  281. capo_datasync/types/schedule_expression_cron.py +5 -0
  282. capo_datasync/types/schedule_status.py +17 -0
  283. capo_datasync/types/secret_arn.py +5 -0
  284. capo_datasync/types/server_hostname.py +5 -0
  285. capo_datasync/types/server_ip_address.py +5 -0
  286. capo_datasync/types/smb_authentication_type.py +17 -0
  287. capo_datasync/types/smb_domain.py +5 -0
  288. capo_datasync/types/smb_mount_options.py +36 -0
  289. capo_datasync/types/smb_password.py +5 -0
  290. capo_datasync/types/smb_security_descriptor_copy_flags.py +18 -0
  291. capo_datasync/types/smb_subdirectory.py +5 -0
  292. capo_datasync/types/smb_user.py +5 -0
  293. capo_datasync/types/smb_version.py +20 -0
  294. capo_datasync/types/source_manifest_config.py +39 -0
  295. capo_datasync/types/source_network_interface_arns.py +19 -0
  296. capo_datasync/types/start_task_execution_request.py +129 -0
  297. capo_datasync/types/start_task_execution_response.py +30 -0
  298. capo_datasync/types/storage_virtual_machine_arn.py +5 -0
  299. capo_datasync/types/string.py +5 -0
  300. capo_datasync/types/tag_key.py +5 -0
  301. capo_datasync/types/tag_key_list.py +17 -0
  302. capo_datasync/types/tag_list_entry.py +38 -0
  303. capo_datasync/types/tag_resource_request.py +47 -0
  304. capo_datasync/types/tag_resource_response.py +18 -0
  305. capo_datasync/types/tag_value.py +5 -0
  306. capo_datasync/types/taggable_resource_arn.py +5 -0
  307. capo_datasync/types/task_arn.py +5 -0
  308. capo_datasync/types/task_execution_arn.py +5 -0
  309. capo_datasync/types/task_execution_files_failed_detail.py +50 -0
  310. capo_datasync/types/task_execution_files_listed_detail.py +36 -0
  311. capo_datasync/types/task_execution_folders_failed_detail.py +57 -0
  312. capo_datasync/types/task_execution_folders_listed_detail.py +36 -0
  313. capo_datasync/types/task_execution_list.py +35 -0
  314. capo_datasync/types/task_execution_list_entry.py +64 -0
  315. capo_datasync/types/task_execution_result_detail.py +108 -0
  316. capo_datasync/types/task_execution_status.py +23 -0
  317. capo_datasync/types/task_filter.py +71 -0
  318. capo_datasync/types/task_filter_name.py +17 -0
  319. capo_datasync/types/task_filters.py +29 -0
  320. capo_datasync/types/task_list.py +29 -0
  321. capo_datasync/types/task_list_entry.py +65 -0
  322. capo_datasync/types/task_mode.py +17 -0
  323. capo_datasync/types/task_queueing.py +17 -0
  324. capo_datasync/types/task_report_config.py +112 -0
  325. capo_datasync/types/task_schedule.py +48 -0
  326. capo_datasync/types/task_schedule_details.py +66 -0
  327. capo_datasync/types/task_status.py +20 -0
  328. capo_datasync/types/time.py +20 -0
  329. capo_datasync/types/transfer_mode.py +17 -0
  330. capo_datasync/types/uid.py +19 -0
  331. capo_datasync/types/untag_resource_request.py +45 -0
  332. capo_datasync/types/untag_resource_response.py +18 -0
  333. capo_datasync/types/update_agent_request.py +38 -0
  334. capo_datasync/types/update_agent_response.py +18 -0
  335. capo_datasync/types/update_location_azure_blob_request.py +175 -0
  336. capo_datasync/types/update_location_azure_blob_response.py +18 -0
  337. capo_datasync/types/update_location_efs_request.py +77 -0
  338. capo_datasync/types/update_location_efs_response.py +18 -0
  339. capo_datasync/types/update_location_fsx_lustre_request.py +40 -0
  340. capo_datasync/types/update_location_fsx_lustre_response.py +18 -0
  341. capo_datasync/types/update_location_fsx_ontap_request.py +61 -0
  342. capo_datasync/types/update_location_fsx_ontap_response.py +18 -0
  343. capo_datasync/types/update_location_fsx_open_zfs_request.py +54 -0
  344. capo_datasync/types/update_location_fsx_open_zfs_response.py +18 -0
  345. capo_datasync/types/update_location_fsx_windows_request.py +105 -0
  346. capo_datasync/types/update_location_fsx_windows_response.py +18 -0
  347. capo_datasync/types/update_location_hdfs_request.py +239 -0
  348. capo_datasync/types/update_location_hdfs_response.py +18 -0
  349. capo_datasync/types/update_location_nfs_request.py +79 -0
  350. capo_datasync/types/update_location_nfs_response.py +18 -0
  351. capo_datasync/types/update_location_object_storage_request.py +173 -0
  352. capo_datasync/types/update_location_object_storage_response.py +18 -0
  353. capo_datasync/types/update_location_s3_request.py +71 -0
  354. capo_datasync/types/update_location_s3_response.py +18 -0
  355. capo_datasync/types/update_location_smb_request.py +230 -0
  356. capo_datasync/types/update_location_smb_response.py +18 -0
  357. capo_datasync/types/update_smb_domain.py +5 -0
  358. capo_datasync/types/update_task_execution_request.py +48 -0
  359. capo_datasync/types/update_task_execution_response.py +18 -0
  360. capo_datasync/types/update_task_request.py +145 -0
  361. capo_datasync/types/update_task_response.py +18 -0
  362. capo_datasync/types/updated_efs_access_point_arn.py +5 -0
  363. capo_datasync/types/updated_efs_iam_role_arn.py +5 -0
  364. capo_datasync/types/verify_mode.py +18 -0
  365. capo_datasync/types/vpc_endpoint_id.py +5 -0
  366. capo_datasync-0.1.0.dist-info/METADATA +101 -0
  367. capo_datasync-0.1.0.dist-info/RECORD +370 -0
  368. capo_datasync-0.1.0.dist-info/WHEEL +5 -0
  369. capo_datasync-0.1.0.dist-info/licenses/LICENSE +21 -0
  370. capo_datasync-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,435 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#DescribeTaskExecutionResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_datasync.types.filter_list
9
+ import capo_datasync.types.item_count
10
+ import capo_datasync.types.long
11
+ import capo_datasync.types.manifest_config
12
+ import capo_datasync.types.options
13
+ import capo_datasync.types.report_result
14
+ import capo_datasync.types.task_execution_arn
15
+ import capo_datasync.types.task_execution_files_failed_detail
16
+ import capo_datasync.types.task_execution_files_listed_detail
17
+ import capo_datasync.types.task_execution_folders_failed_detail
18
+ import capo_datasync.types.task_execution_folders_listed_detail
19
+ import capo_datasync.types.task_execution_result_detail
20
+ import capo_datasync.types.task_execution_status
21
+ import capo_datasync.types.task_mode
22
+ import capo_datasync.types.task_report_config
23
+ import capo_datasync.types.time
24
+
25
+
26
+ class DescribeTaskExecutionResponse(TypedDict, closed=True):
27
+ task_execution_arn: NotRequired[
28
+ "capo_datasync.types.task_execution_arn.TaskExecutionArn"
29
+ ]
30
+ """<p>The ARN of the task execution that you wanted information about. <code>TaskExecutionArn</code> is hierarchical and includes <code>TaskArn</code> for the task that was executed. </p> <p>For example, a <code>TaskExecution</code> value with the ARN <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b</code> executed the task with the ARN <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2</code>. </p>"""
31
+ status: NotRequired["capo_datasync.types.task_execution_status.TaskExecutionStatus"]
32
+ """<p>The status of the task execution. </p>"""
33
+ options: NotRequired["capo_datasync.types.options.Options"]
34
+ excludes: NotRequired["capo_datasync.types.filter_list.FilterList"]
35
+ r"""<p>A list of filter rules that exclude specific data during your transfer. For more information and examples, see <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html\">Filtering data transferred by DataSync</a>.</p>"""
36
+ includes: NotRequired["capo_datasync.types.filter_list.FilterList"]
37
+ r"""<p>A list of filter rules that include specific data during your transfer. For more information and examples, see <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html\">Filtering data transferred by DataSync</a>.</p>"""
38
+ manifest_config: NotRequired["capo_datasync.types.manifest_config.ManifestConfig"]
39
+ r"""<p>The configuration of the manifest that lists the files or objects to transfer. For more information, see <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html\">Specifying what DataSync transfers by using a manifest</a>.</p>"""
40
+ start_time: NotRequired["capo_datasync.types.time.Time"]
41
+ """<p>The time that DataSync sends the request to start the task execution. For non-queued tasks, <code>LaunchTime</code> and <code>StartTime</code> are typically the same. For queued tasks, <code>LaunchTime</code> is typically later than <code>StartTime</code> because previously queued tasks must finish running before newer tasks can begin.</p>"""
42
+ estimated_files_to_transfer: "capo_datasync.types.long.long"
43
+ r"""<p>The number of files, objects, and directories that DataSync expects to transfer over the network. This value is calculated while DataSync <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#understand-task-execution-statuses\">prepares</a> the transfer.</p> <p>How this gets calculated depends primarily on your task’s <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-TransferMode\">transfer mode</a> configuration:</p> <ul> <li> <p>If <code>TranserMode</code> is set to <code>CHANGED</code> - 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:</p> <ul> <li> <p>Anything that's added or modified at the source location.</p> </li> <li> <p>Anything that's in both locations and modified at the destination after an initial transfer (unless <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-OverwriteMode\">OverwriteMode</a> is set to <code>NEVER</code>).</p> </li> <li> <p> <b>(Basic task mode only)</b> The number of items that DataSync expects to delete (if <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-PreserveDeletedFiles\">PreserveDeletedFiles</a> is set to <code>REMOVE</code>).</p> </li> </ul> </li> <li> <p>If <code>TranserMode</code> is set to <code>ALL</code> - The calculation is based only on the items that DataSync finds at the source location.</p> </li> </ul> <note> <p>For <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-EstimatedFoldersToTransfer\">EstimatedFoldersToTransfer</a>. </p> </note>"""
44
+ estimated_bytes_to_transfer: "capo_datasync.types.long.long"
45
+ """<p>The number of logical bytes that DataSync expects to write to the destination location.</p>"""
46
+ files_transferred: "capo_datasync.types.long.long"
47
+ r"""<p>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.</p> <p>If DataSync fails to transfer something, this value can be less than <code>EstimatedFilesToTransfer</code>. In some cases, this value can also be greater than <code>EstimatedFilesToTransfer</code>. 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.</p> <note> <p>For <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersTransferred\">FoldersTransferred</a>. </p> </note>"""
48
+ bytes_written: "capo_datasync.types.long.long"
49
+ """<p>The number of logical bytes that DataSync actually writes to the destination location.</p>"""
50
+ bytes_transferred: "capo_datasync.types.long.long"
51
+ r"""<p>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 <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-BytesCompressed\">BytesCompressed</a>. </p>"""
52
+ bytes_compressed: "capo_datasync.types.long.long"
53
+ r"""<p>The number of physical bytes that DataSync transfers over the network after compression (if compression is possible). This number is typically less than <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-BytesTransferred\">BytesTransferred</a> unless the data isn't compressible.</p>"""
54
+ result: NotRequired[
55
+ "capo_datasync.types.task_execution_result_detail.TaskExecutionResultDetail"
56
+ ]
57
+ """<p>The result of the task execution.</p>"""
58
+ task_report_config: NotRequired[
59
+ "capo_datasync.types.task_report_config.TaskReportConfig"
60
+ ]
61
+ r"""<p>The configuration of your task report, which provides detailed information about for your DataSync transfer. For more information, see <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html\">Creating a task report</a>.</p>"""
62
+ files_deleted: "capo_datasync.types.long.long"
63
+ r"""<p>The number of files, objects, and directories that DataSync actually deletes in your destination location. If you don't configure your task to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html\">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p> <note> <p>For <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersDeleted\">FoldersDeleted</a>. </p> </note>"""
64
+ files_skipped: "capo_datasync.types.long.long"
65
+ r"""<p>The number of files, objects, and directories that DataSync skips during your transfer.</p> <note> <p>For <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersSkipped\">FoldersSkipped</a>. </p> </note>"""
66
+ files_verified: "capo_datasync.types.long.long"
67
+ r"""<p>The number of files, objects, and directories that DataSync verifies during your transfer.</p> <note> <p>When you configure your task to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/configure-data-verification-options.html\">verify only the data that's transferred</a>, DataSync doesn't verify directories in some situations or files that fail to transfer.</p> <p>For <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-FoldersVerified\">FoldersVerified</a>. </p> </note>"""
68
+ report_result: NotRequired["capo_datasync.types.report_result.ReportResult"]
69
+ r"""<p>Indicates whether DataSync generated a complete <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html\">task report</a> for your transfer.</p>"""
70
+ estimated_files_to_delete: "capo_datasync.types.long.long"
71
+ r"""<p>The number of files, objects, and directories that DataSync expects to delete in your destination location. If you don't configure your task to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html\">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p> <note> <p>For <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>, this counter only includes files or objects. Directories are counted in <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeTaskExecution.html#DataSync-DescribeTaskExecution-response-EstimatedFoldersToDelete\">EstimatedFoldersToDelete</a>. </p> </note>"""
72
+ task_mode: NotRequired["capo_datasync.types.task_mode.TaskMode"]
73
+ r"""<p>The task mode that you're using. For more information, see <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Choosing a task mode for your data transfer</a>.</p>"""
74
+ files_prepared: "capo_datasync.types.long.long"
75
+ r"""<p>The number of files or objects that DataSync will attempt to transfer after comparing your source and destination locations.</p> <note> <p>Applies only to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>.</p> </note> <p>This counter isn't applicable if you configure your task to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html#task-option-transfer-mode\">transfer all data</a>. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.</p>"""
76
+ files_listed: NotRequired[
77
+ "capo_datasync.types.task_execution_files_listed_detail.TaskExecutionFilesListedDetail"
78
+ ]
79
+ r"""<p>The number of files or objects that DataSync finds at your locations.</p> <note> <p>Applies only to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>.</p> </note>"""
80
+ files_failed: NotRequired[
81
+ "capo_datasync.types.task_execution_files_failed_detail.TaskExecutionFilesFailedDetail"
82
+ ]
83
+ r"""<p>The number of files or objects that DataSync fails to prepare, transfer, verify, and delete during your task execution.</p> <note> <p>Applies only to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>.</p> </note>"""
84
+ estimated_folders_to_delete: NotRequired["capo_datasync.types.item_count.ItemCount"]
85
+ r"""<p>The number of directories that DataSync expects to delete in your destination location. If you don't configure your task to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html\">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p> <note> <p>Applies only to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>.</p> </note>"""
86
+ estimated_folders_to_transfer: NotRequired[
87
+ "capo_datasync.types.item_count.ItemCount"
88
+ ]
89
+ r"""<p>The number of directories that DataSync expects to transfer over the network. This value is calculated as DataSync <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#understand-task-execution-statuses\">prepares</a> directories to transfer.</p> <p>How this gets calculated depends primarily on your task’s <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-TransferMode\">transfer mode</a> configuration:</p> <ul> <li> <p>If <code>TranserMode</code> is set to <code>CHANGED</code> - 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:</p> <ul> <li> <p>Anything that's added or modified at the source location.</p> </li> <li> <p>Anything that's in both locations and modified at the destination after an initial transfer (unless <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/API_Options.html#DataSync-Type-Options-OverwriteMode\">OverwriteMode</a> is set to <code>NEVER</code>).</p> </li> </ul> </li> <li> <p>If <code>TranserMode</code> is set to <code>ALL</code> - The calculation is based only on the items that DataSync finds at the source location.</p> </li> </ul> <note> <p>Applies only to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>.</p> </note>"""
90
+ folders_skipped: NotRequired["capo_datasync.types.item_count.ItemCount"]
91
+ r"""<p>The number of directories that DataSync skips during your transfer.</p> <note> <p>Applies only to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>.</p> </note>"""
92
+ folders_prepared: NotRequired["capo_datasync.types.item_count.ItemCount"]
93
+ r"""<p>The number of directories that DataSync will attempt to transfer after comparing your source and destination locations.</p> <note> <p>Applies only to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>.</p> </note> <p>This counter isn't applicable if you configure your task to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html#task-option-transfer-mode\">transfer all data</a>. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.</p>"""
94
+ folders_transferred: NotRequired["capo_datasync.types.item_count.ItemCount"]
95
+ r"""<p>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.</p> <p>If DataSync fails to transfer something, this value can be less than <code>EstimatedFoldersToTransfer</code>. In some cases, this value can also be greater than <code>EstimatedFoldersToTransfer</code>. </p> <note> <p>Applies only to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>.</p> </note>"""
96
+ folders_verified: NotRequired["capo_datasync.types.item_count.ItemCount"]
97
+ r"""<p>The number of directories that DataSync verifies during your transfer.</p> <note> <p>Applies only to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>.</p> </note>"""
98
+ folders_deleted: NotRequired["capo_datasync.types.item_count.ItemCount"]
99
+ r"""<p>The number of directories that DataSync actually deletes in your destination location. If you don't configure your task to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html\">delete data in the destination that isn't in the source</a>, the value is always <code>0</code>.</p> <note> <p>Applies only to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>.</p> </note>"""
100
+ folders_listed: NotRequired[
101
+ "capo_datasync.types.task_execution_folders_listed_detail.TaskExecutionFoldersListedDetail"
102
+ ]
103
+ r"""<p>The number of directories that DataSync finds at your locations.</p> <note> <p>Applies only to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>.</p> </note>"""
104
+ folders_failed: NotRequired[
105
+ "capo_datasync.types.task_execution_folders_failed_detail.TaskExecutionFoldersFailedDetail"
106
+ ]
107
+ r"""<p>The number of directories that DataSync fails to list, prepare, transfer, verify, and delete during your task execution.</p> <note> <p>Applies only to <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html\">Enhanced mode tasks</a>.</p> </note>"""
108
+ launch_time: NotRequired["capo_datasync.types.time.Time"]
109
+ """<p>The time that the task execution actually begins. For non-queued tasks, <code>LaunchTime</code> and <code>StartTime</code> are typically the same. For queued tasks, <code>LaunchTime</code> is typically later than <code>StartTime</code> because previously queued tasks must finish running before newer tasks can begin.</p>"""
110
+ end_time: NotRequired["capo_datasync.types.time.Time"]
111
+ """<p>The time that the transfer task ends.</p>"""
112
+
113
+
114
+ # --- awsJson1_1 ser/de ---
115
+ def serialize_aws_json_1_1(value: DescribeTaskExecutionResponse) -> dict:
116
+ out: dict = {}
117
+ if "task_execution_arn" in value:
118
+ out["TaskExecutionArn"] = value["task_execution_arn"]
119
+ if "status" in value:
120
+ import capo_datasync.types.task_execution_status
121
+
122
+ out["Status"] = (
123
+ capo_datasync.types.task_execution_status.serialize_aws_json_1_1(
124
+ value["status"]
125
+ )
126
+ )
127
+ if "options" in value:
128
+ import capo_datasync.types.options
129
+
130
+ out["Options"] = capo_datasync.types.options.serialize_aws_json_1_1(
131
+ value["options"]
132
+ )
133
+ if "excludes" in value:
134
+ import capo_datasync.types.filter_list
135
+
136
+ out["Excludes"] = capo_datasync.types.filter_list.serialize_aws_json_1_1(
137
+ value["excludes"]
138
+ )
139
+ if "includes" in value:
140
+ import capo_datasync.types.filter_list
141
+
142
+ out["Includes"] = capo_datasync.types.filter_list.serialize_aws_json_1_1(
143
+ value["includes"]
144
+ )
145
+ if "manifest_config" in value:
146
+ import capo_datasync.types.manifest_config
147
+
148
+ out["ManifestConfig"] = (
149
+ capo_datasync.types.manifest_config.serialize_aws_json_1_1(
150
+ value["manifest_config"]
151
+ )
152
+ )
153
+ if "start_time" in value:
154
+ import capo_datasync.types.time
155
+
156
+ out["StartTime"] = capo_datasync.types.time.serialize_aws_json_1_1(
157
+ value["start_time"]
158
+ )
159
+ out["EstimatedFilesToTransfer"] = value.get("estimated_files_to_transfer", 0)
160
+ out["EstimatedBytesToTransfer"] = value.get("estimated_bytes_to_transfer", 0)
161
+ out["FilesTransferred"] = value.get("files_transferred", 0)
162
+ out["BytesWritten"] = value.get("bytes_written", 0)
163
+ out["BytesTransferred"] = value.get("bytes_transferred", 0)
164
+ out["BytesCompressed"] = value.get("bytes_compressed", 0)
165
+ if "result" in value:
166
+ import capo_datasync.types.task_execution_result_detail
167
+
168
+ out["Result"] = (
169
+ capo_datasync.types.task_execution_result_detail.serialize_aws_json_1_1(
170
+ value["result"]
171
+ )
172
+ )
173
+ if "task_report_config" in value:
174
+ import capo_datasync.types.task_report_config
175
+
176
+ out["TaskReportConfig"] = (
177
+ capo_datasync.types.task_report_config.serialize_aws_json_1_1(
178
+ value["task_report_config"]
179
+ )
180
+ )
181
+ out["FilesDeleted"] = value.get("files_deleted", 0)
182
+ out["FilesSkipped"] = value.get("files_skipped", 0)
183
+ out["FilesVerified"] = value.get("files_verified", 0)
184
+ if "report_result" in value:
185
+ import capo_datasync.types.report_result
186
+
187
+ out["ReportResult"] = capo_datasync.types.report_result.serialize_aws_json_1_1(
188
+ value["report_result"]
189
+ )
190
+ out["EstimatedFilesToDelete"] = value.get("estimated_files_to_delete", 0)
191
+ if "task_mode" in value:
192
+ import capo_datasync.types.task_mode
193
+
194
+ out["TaskMode"] = capo_datasync.types.task_mode.serialize_aws_json_1_1(
195
+ value["task_mode"]
196
+ )
197
+ out["FilesPrepared"] = value.get("files_prepared", 0)
198
+ if "files_listed" in value:
199
+ import capo_datasync.types.task_execution_files_listed_detail
200
+
201
+ out["FilesListed"] = (
202
+ capo_datasync.types.task_execution_files_listed_detail.serialize_aws_json_1_1(
203
+ value["files_listed"]
204
+ )
205
+ )
206
+ if "files_failed" in value:
207
+ import capo_datasync.types.task_execution_files_failed_detail
208
+
209
+ out["FilesFailed"] = (
210
+ capo_datasync.types.task_execution_files_failed_detail.serialize_aws_json_1_1(
211
+ value["files_failed"]
212
+ )
213
+ )
214
+ if "estimated_folders_to_delete" in value:
215
+ out["EstimatedFoldersToDelete"] = value["estimated_folders_to_delete"]
216
+ if "estimated_folders_to_transfer" in value:
217
+ out["EstimatedFoldersToTransfer"] = value["estimated_folders_to_transfer"]
218
+ if "folders_skipped" in value:
219
+ out["FoldersSkipped"] = value["folders_skipped"]
220
+ if "folders_prepared" in value:
221
+ out["FoldersPrepared"] = value["folders_prepared"]
222
+ if "folders_transferred" in value:
223
+ out["FoldersTransferred"] = value["folders_transferred"]
224
+ if "folders_verified" in value:
225
+ out["FoldersVerified"] = value["folders_verified"]
226
+ if "folders_deleted" in value:
227
+ out["FoldersDeleted"] = value["folders_deleted"]
228
+ if "folders_listed" in value:
229
+ import capo_datasync.types.task_execution_folders_listed_detail
230
+
231
+ out["FoldersListed"] = (
232
+ capo_datasync.types.task_execution_folders_listed_detail.serialize_aws_json_1_1(
233
+ value["folders_listed"]
234
+ )
235
+ )
236
+ if "folders_failed" in value:
237
+ import capo_datasync.types.task_execution_folders_failed_detail
238
+
239
+ out["FoldersFailed"] = (
240
+ capo_datasync.types.task_execution_folders_failed_detail.serialize_aws_json_1_1(
241
+ value["folders_failed"]
242
+ )
243
+ )
244
+ if "launch_time" in value:
245
+ import capo_datasync.types.time
246
+
247
+ out["LaunchTime"] = capo_datasync.types.time.serialize_aws_json_1_1(
248
+ value["launch_time"]
249
+ )
250
+ if "end_time" in value:
251
+ import capo_datasync.types.time
252
+
253
+ out["EndTime"] = capo_datasync.types.time.serialize_aws_json_1_1(
254
+ value["end_time"]
255
+ )
256
+ return out
257
+
258
+
259
+ def deserialize_aws_json_1_1(data: dict) -> DescribeTaskExecutionResponse:
260
+ out: DescribeTaskExecutionResponse = {} # type: ignore[typeddict-item]
261
+ if data.get("TaskExecutionArn") is not None:
262
+ out["task_execution_arn"] = data["TaskExecutionArn"]
263
+ if data.get("Status") is not None:
264
+ import capo_datasync.types.task_execution_status
265
+
266
+ out["status"] = (
267
+ capo_datasync.types.task_execution_status.deserialize_aws_json_1_1(
268
+ data["Status"]
269
+ )
270
+ )
271
+ if data.get("Options") is not None:
272
+ import capo_datasync.types.options
273
+
274
+ out["options"] = capo_datasync.types.options.deserialize_aws_json_1_1(
275
+ data["Options"]
276
+ )
277
+ if data.get("Excludes") is not None:
278
+ import capo_datasync.types.filter_list
279
+
280
+ out["excludes"] = capo_datasync.types.filter_list.deserialize_aws_json_1_1(
281
+ data["Excludes"]
282
+ )
283
+ if data.get("Includes") is not None:
284
+ import capo_datasync.types.filter_list
285
+
286
+ out["includes"] = capo_datasync.types.filter_list.deserialize_aws_json_1_1(
287
+ data["Includes"]
288
+ )
289
+ if data.get("ManifestConfig") is not None:
290
+ import capo_datasync.types.manifest_config
291
+
292
+ out["manifest_config"] = (
293
+ capo_datasync.types.manifest_config.deserialize_aws_json_1_1(
294
+ data["ManifestConfig"]
295
+ )
296
+ )
297
+ if data.get("StartTime") is not None:
298
+ import capo_datasync.types.time
299
+
300
+ out["start_time"] = capo_datasync.types.time.deserialize_aws_json_1_1(
301
+ data["StartTime"]
302
+ )
303
+ if data.get("EstimatedFilesToTransfer") is not None:
304
+ out["estimated_files_to_transfer"] = data["EstimatedFilesToTransfer"]
305
+ else:
306
+ out["estimated_files_to_transfer"] = 0
307
+ if data.get("EstimatedBytesToTransfer") is not None:
308
+ out["estimated_bytes_to_transfer"] = data["EstimatedBytesToTransfer"]
309
+ else:
310
+ out["estimated_bytes_to_transfer"] = 0
311
+ if data.get("FilesTransferred") is not None:
312
+ out["files_transferred"] = data["FilesTransferred"]
313
+ else:
314
+ out["files_transferred"] = 0
315
+ if data.get("BytesWritten") is not None:
316
+ out["bytes_written"] = data["BytesWritten"]
317
+ else:
318
+ out["bytes_written"] = 0
319
+ if data.get("BytesTransferred") is not None:
320
+ out["bytes_transferred"] = data["BytesTransferred"]
321
+ else:
322
+ out["bytes_transferred"] = 0
323
+ if data.get("BytesCompressed") is not None:
324
+ out["bytes_compressed"] = data["BytesCompressed"]
325
+ else:
326
+ out["bytes_compressed"] = 0
327
+ if data.get("Result") is not None:
328
+ import capo_datasync.types.task_execution_result_detail
329
+
330
+ out["result"] = (
331
+ capo_datasync.types.task_execution_result_detail.deserialize_aws_json_1_1(
332
+ data["Result"]
333
+ )
334
+ )
335
+ if data.get("TaskReportConfig") is not None:
336
+ import capo_datasync.types.task_report_config
337
+
338
+ out["task_report_config"] = (
339
+ capo_datasync.types.task_report_config.deserialize_aws_json_1_1(
340
+ data["TaskReportConfig"]
341
+ )
342
+ )
343
+ if data.get("FilesDeleted") is not None:
344
+ out["files_deleted"] = data["FilesDeleted"]
345
+ else:
346
+ out["files_deleted"] = 0
347
+ if data.get("FilesSkipped") is not None:
348
+ out["files_skipped"] = data["FilesSkipped"]
349
+ else:
350
+ out["files_skipped"] = 0
351
+ if data.get("FilesVerified") is not None:
352
+ out["files_verified"] = data["FilesVerified"]
353
+ else:
354
+ out["files_verified"] = 0
355
+ if data.get("ReportResult") is not None:
356
+ import capo_datasync.types.report_result
357
+
358
+ out["report_result"] = (
359
+ capo_datasync.types.report_result.deserialize_aws_json_1_1(
360
+ data["ReportResult"]
361
+ )
362
+ )
363
+ if data.get("EstimatedFilesToDelete") is not None:
364
+ out["estimated_files_to_delete"] = data["EstimatedFilesToDelete"]
365
+ else:
366
+ out["estimated_files_to_delete"] = 0
367
+ if data.get("TaskMode") is not None:
368
+ import capo_datasync.types.task_mode
369
+
370
+ out["task_mode"] = capo_datasync.types.task_mode.deserialize_aws_json_1_1(
371
+ data["TaskMode"]
372
+ )
373
+ if data.get("FilesPrepared") is not None:
374
+ out["files_prepared"] = data["FilesPrepared"]
375
+ else:
376
+ out["files_prepared"] = 0
377
+ if data.get("FilesListed") is not None:
378
+ import capo_datasync.types.task_execution_files_listed_detail
379
+
380
+ out["files_listed"] = (
381
+ capo_datasync.types.task_execution_files_listed_detail.deserialize_aws_json_1_1(
382
+ data["FilesListed"]
383
+ )
384
+ )
385
+ if data.get("FilesFailed") is not None:
386
+ import capo_datasync.types.task_execution_files_failed_detail
387
+
388
+ out["files_failed"] = (
389
+ capo_datasync.types.task_execution_files_failed_detail.deserialize_aws_json_1_1(
390
+ data["FilesFailed"]
391
+ )
392
+ )
393
+ if data.get("EstimatedFoldersToDelete") is not None:
394
+ out["estimated_folders_to_delete"] = data["EstimatedFoldersToDelete"]
395
+ if data.get("EstimatedFoldersToTransfer") is not None:
396
+ out["estimated_folders_to_transfer"] = data["EstimatedFoldersToTransfer"]
397
+ if data.get("FoldersSkipped") is not None:
398
+ out["folders_skipped"] = data["FoldersSkipped"]
399
+ if data.get("FoldersPrepared") is not None:
400
+ out["folders_prepared"] = data["FoldersPrepared"]
401
+ if data.get("FoldersTransferred") is not None:
402
+ out["folders_transferred"] = data["FoldersTransferred"]
403
+ if data.get("FoldersVerified") is not None:
404
+ out["folders_verified"] = data["FoldersVerified"]
405
+ if data.get("FoldersDeleted") is not None:
406
+ out["folders_deleted"] = data["FoldersDeleted"]
407
+ if data.get("FoldersListed") is not None:
408
+ import capo_datasync.types.task_execution_folders_listed_detail
409
+
410
+ out["folders_listed"] = (
411
+ capo_datasync.types.task_execution_folders_listed_detail.deserialize_aws_json_1_1(
412
+ data["FoldersListed"]
413
+ )
414
+ )
415
+ if data.get("FoldersFailed") is not None:
416
+ import capo_datasync.types.task_execution_folders_failed_detail
417
+
418
+ out["folders_failed"] = (
419
+ capo_datasync.types.task_execution_folders_failed_detail.deserialize_aws_json_1_1(
420
+ data["FoldersFailed"]
421
+ )
422
+ )
423
+ if data.get("LaunchTime") is not None:
424
+ import capo_datasync.types.time
425
+
426
+ out["launch_time"] = capo_datasync.types.time.deserialize_aws_json_1_1(
427
+ data["LaunchTime"]
428
+ )
429
+ if data.get("EndTime") is not None:
430
+ import capo_datasync.types.time
431
+
432
+ out["end_time"] = capo_datasync.types.time.deserialize_aws_json_1_1(
433
+ data["EndTime"]
434
+ )
435
+ return out
@@ -0,0 +1,31 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#DescribeTaskRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ from capo_datasync.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_datasync.types.task_arn
11
+
12
+
13
+ class DescribeTaskRequest(TypedDict, closed=True):
14
+ task_arn: "capo_datasync.types.task_arn.TaskArn"
15
+ """<p>Specifies the Amazon Resource Name (ARN) of the transfer task that you want information about.</p>"""
16
+
17
+
18
+ # --- awsJson1_1 ser/de ---
19
+ def serialize_aws_json_1_1(value: DescribeTaskRequest) -> dict:
20
+ out: dict = {}
21
+ out["TaskArn"] = value["task_arn"]
22
+ return out
23
+
24
+
25
+ def deserialize_aws_json_1_1(data: dict) -> DescribeTaskRequest:
26
+ out: DescribeTaskRequest = {} # type: ignore[typeddict-item]
27
+ if data.get("TaskArn") is not None:
28
+ out["task_arn"] = data["TaskArn"]
29
+ else:
30
+ raise DeserializationError("DescribeTaskRequest.task_arn required")
31
+ return out