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,129 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#StartTaskExecutionRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ from capo_datasync.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_datasync.types.filter_list
11
+ import capo_datasync.types.input_tag_list
12
+ import capo_datasync.types.manifest_config
13
+ import capo_datasync.types.options
14
+ import capo_datasync.types.task_arn
15
+ import capo_datasync.types.task_report_config
16
+
17
+
18
+ class StartTaskExecutionRequest(TypedDict, closed=True):
19
+ task_arn: "capo_datasync.types.task_arn.TaskArn"
20
+ """<p>Specifies the Amazon Resource Name (ARN) of the task that you want to start.</p>"""
21
+ override_options: NotRequired["capo_datasync.types.options.Options"]
22
+ includes: NotRequired["capo_datasync.types.filter_list.FilterList"]
23
+ r"""<p>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, <code>\"/folder1|/folder2\"</code>. </p>"""
24
+ excludes: NotRequired["capo_datasync.types.filter_list.FilterList"]
25
+ r"""<p>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, <code>\"/folder1|/folder2\"</code>. </p>"""
26
+ manifest_config: NotRequired["capo_datasync.types.manifest_config.ManifestConfig"]
27
+ r"""<p>Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, 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> <p>When using this parameter, your caller identity (the role that you're using DataSync with) must have the <code>iam:PassRole</code> permission. The <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess\">AWSDataSyncFullAccess</a> policy includes this permission.</p> <p>To remove a manifest configuration, specify this parameter with an empty value.</p>"""
28
+ task_report_config: NotRequired[
29
+ "capo_datasync.types.task_report_config.TaskReportConfig"
30
+ ]
31
+ r"""<p>Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html\">Monitoring your DataSync transfers with task reports</a>.</p> <p>When using this parameter, your caller identity (the role that you're using DataSync with) must have the <code>iam:PassRole</code> permission. The <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess\">AWSDataSyncFullAccess</a> policy includes this permission.</p> <p>To remove a task report configuration, specify this parameter as empty.</p>"""
32
+ tags: NotRequired["capo_datasync.types.input_tag_list.InputTagList"]
33
+ """<p>Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task execution.</p> <p> <i>Tags</i> are key-value pairs that help you manage, filter, and search for your DataSync resources.</p>"""
34
+
35
+
36
+ # --- awsJson1_1 ser/de ---
37
+ def serialize_aws_json_1_1(value: StartTaskExecutionRequest) -> dict:
38
+ out: dict = {}
39
+ out["TaskArn"] = value["task_arn"]
40
+ if "override_options" in value:
41
+ import capo_datasync.types.options
42
+
43
+ out["OverrideOptions"] = capo_datasync.types.options.serialize_aws_json_1_1(
44
+ value["override_options"]
45
+ )
46
+ if "includes" in value:
47
+ import capo_datasync.types.filter_list
48
+
49
+ out["Includes"] = capo_datasync.types.filter_list.serialize_aws_json_1_1(
50
+ value["includes"]
51
+ )
52
+ if "excludes" in value:
53
+ import capo_datasync.types.filter_list
54
+
55
+ out["Excludes"] = capo_datasync.types.filter_list.serialize_aws_json_1_1(
56
+ value["excludes"]
57
+ )
58
+ if "manifest_config" in value:
59
+ import capo_datasync.types.manifest_config
60
+
61
+ out["ManifestConfig"] = (
62
+ capo_datasync.types.manifest_config.serialize_aws_json_1_1(
63
+ value["manifest_config"]
64
+ )
65
+ )
66
+ if "task_report_config" in value:
67
+ import capo_datasync.types.task_report_config
68
+
69
+ out["TaskReportConfig"] = (
70
+ capo_datasync.types.task_report_config.serialize_aws_json_1_1(
71
+ value["task_report_config"]
72
+ )
73
+ )
74
+ if "tags" in value:
75
+ import capo_datasync.types.input_tag_list
76
+
77
+ out["Tags"] = capo_datasync.types.input_tag_list.serialize_aws_json_1_1(
78
+ value["tags"]
79
+ )
80
+ return out
81
+
82
+
83
+ def deserialize_aws_json_1_1(data: dict) -> StartTaskExecutionRequest:
84
+ out: StartTaskExecutionRequest = {} # type: ignore[typeddict-item]
85
+ if data.get("TaskArn") is not None:
86
+ out["task_arn"] = data["TaskArn"]
87
+ else:
88
+ raise DeserializationError("StartTaskExecutionRequest.task_arn required")
89
+ if data.get("OverrideOptions") is not None:
90
+ import capo_datasync.types.options
91
+
92
+ out["override_options"] = capo_datasync.types.options.deserialize_aws_json_1_1(
93
+ data["OverrideOptions"]
94
+ )
95
+ if data.get("Includes") is not None:
96
+ import capo_datasync.types.filter_list
97
+
98
+ out["includes"] = capo_datasync.types.filter_list.deserialize_aws_json_1_1(
99
+ data["Includes"]
100
+ )
101
+ if data.get("Excludes") is not None:
102
+ import capo_datasync.types.filter_list
103
+
104
+ out["excludes"] = capo_datasync.types.filter_list.deserialize_aws_json_1_1(
105
+ data["Excludes"]
106
+ )
107
+ if data.get("ManifestConfig") is not None:
108
+ import capo_datasync.types.manifest_config
109
+
110
+ out["manifest_config"] = (
111
+ capo_datasync.types.manifest_config.deserialize_aws_json_1_1(
112
+ data["ManifestConfig"]
113
+ )
114
+ )
115
+ if data.get("TaskReportConfig") is not None:
116
+ import capo_datasync.types.task_report_config
117
+
118
+ out["task_report_config"] = (
119
+ capo_datasync.types.task_report_config.deserialize_aws_json_1_1(
120
+ data["TaskReportConfig"]
121
+ )
122
+ )
123
+ if data.get("Tags") is not None:
124
+ import capo_datasync.types.input_tag_list
125
+
126
+ out["tags"] = capo_datasync.types.input_tag_list.deserialize_aws_json_1_1(
127
+ data["Tags"]
128
+ )
129
+ return out
@@ -0,0 +1,30 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#StartTaskExecutionResponse``."""
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.task_execution_arn
9
+
10
+
11
+ class StartTaskExecutionResponse(TypedDict, closed=True):
12
+ task_execution_arn: NotRequired[
13
+ "capo_datasync.types.task_execution_arn.TaskExecutionArn"
14
+ ]
15
+ """<p>The ARN of the running task execution.</p>"""
16
+
17
+
18
+ # --- awsJson1_1 ser/de ---
19
+ def serialize_aws_json_1_1(value: StartTaskExecutionResponse) -> dict:
20
+ out: dict = {}
21
+ if "task_execution_arn" in value:
22
+ out["TaskExecutionArn"] = value["task_execution_arn"]
23
+ return out
24
+
25
+
26
+ def deserialize_aws_json_1_1(data: dict) -> StartTaskExecutionResponse:
27
+ out: StartTaskExecutionResponse = {} # type: ignore[typeddict-item]
28
+ if data.get("TaskExecutionArn") is not None:
29
+ out["task_execution_arn"] = data["TaskExecutionArn"]
30
+ return out
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#StorageVirtualMachineArn``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ StorageVirtualMachineArn: TypeAlias = str
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#string``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ string: TypeAlias = str
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#TagKey``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ TagKey: TypeAlias = str
@@ -0,0 +1,17 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#TagKeyList``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_datasync.types.tag_key
7
+
8
+ TagKeyList: TypeAlias = list["capo_datasync.types.tag_key.TagKey"]
9
+
10
+
11
+ # --- awsJson1_1 ser/de ---
12
+ def serialize_aws_json_1_1(value: TagKeyList) -> list:
13
+ return list(value)
14
+
15
+
16
+ def deserialize_aws_json_1_1(data: list) -> TagKeyList:
17
+ return [item for item in data if item is not None]
@@ -0,0 +1,38 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#TagListEntry``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ from capo_datasync.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_datasync.types.tag_key
11
+ import capo_datasync.types.tag_value
12
+
13
+
14
+ class TagListEntry(TypedDict, closed=True):
15
+ key: "capo_datasync.types.tag_key.TagKey"
16
+ """<p>The key for an Amazon Web Services resource tag.</p>"""
17
+ value: NotRequired["capo_datasync.types.tag_value.TagValue"]
18
+ """<p>The value for an Amazon Web Services resource tag.</p>"""
19
+
20
+
21
+ # --- awsJson1_1 ser/de ---
22
+ def serialize_aws_json_1_1(value: TagListEntry) -> dict:
23
+ out: dict = {}
24
+ out["Key"] = value["key"]
25
+ if "value" in value:
26
+ out["Value"] = value["value"]
27
+ return out
28
+
29
+
30
+ def deserialize_aws_json_1_1(data: dict) -> TagListEntry:
31
+ out: TagListEntry = {} # type: ignore[typeddict-item]
32
+ if data.get("Key") is not None:
33
+ out["key"] = data["Key"]
34
+ else:
35
+ raise DeserializationError("TagListEntry.key required")
36
+ if data.get("Value") is not None:
37
+ out["value"] = data["Value"]
38
+ return out
@@ -0,0 +1,47 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#TagResourceRequest``."""
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.input_tag_list
11
+ import capo_datasync.types.taggable_resource_arn
12
+
13
+
14
+ class TagResourceRequest(TypedDict, closed=True):
15
+ resource_arn: "capo_datasync.types.taggable_resource_arn.TaggableResourceArn"
16
+ """<p>Specifies the Amazon Resource Name (ARN) of the resource to apply the tag to.</p>"""
17
+ tags: "capo_datasync.types.input_tag_list.InputTagList"
18
+ """<p>Specifies the tags that you want to apply to the resource.</p>"""
19
+
20
+
21
+ # --- awsJson1_1 ser/de ---
22
+ def serialize_aws_json_1_1(value: TagResourceRequest) -> dict:
23
+ out: dict = {}
24
+ out["ResourceArn"] = value["resource_arn"]
25
+ import capo_datasync.types.input_tag_list
26
+
27
+ out["Tags"] = capo_datasync.types.input_tag_list.serialize_aws_json_1_1(
28
+ value["tags"]
29
+ )
30
+ return out
31
+
32
+
33
+ def deserialize_aws_json_1_1(data: dict) -> TagResourceRequest:
34
+ out: TagResourceRequest = {} # type: ignore[typeddict-item]
35
+ if data.get("ResourceArn") is not None:
36
+ out["resource_arn"] = data["ResourceArn"]
37
+ else:
38
+ raise DeserializationError("TagResourceRequest.resource_arn required")
39
+ if data.get("Tags") is not None:
40
+ import capo_datasync.types.input_tag_list
41
+
42
+ out["tags"] = capo_datasync.types.input_tag_list.deserialize_aws_json_1_1(
43
+ data["Tags"]
44
+ )
45
+ else:
46
+ raise DeserializationError("TagResourceRequest.tags required")
47
+ return out
@@ -0,0 +1,18 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#TagResourceResponse``."""
2
+
3
+ from typing_extensions import TypedDict
4
+
5
+
6
+ class TagResourceResponse(TypedDict, closed=True):
7
+ pass
8
+
9
+
10
+ # --- awsJson1_1 ser/de ---
11
+ def serialize_aws_json_1_1(value: TagResourceResponse) -> dict:
12
+ out: dict = {}
13
+ return out
14
+
15
+
16
+ def deserialize_aws_json_1_1(data: dict) -> TagResourceResponse:
17
+ out: TagResourceResponse = {} # type: ignore[typeddict-item]
18
+ return out
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#TagValue``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ TagValue: TypeAlias = str
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#TaggableResourceArn``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ TaggableResourceArn: TypeAlias = str
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#TaskArn``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ TaskArn: TypeAlias = str
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#TaskExecutionArn``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ TaskExecutionArn: TypeAlias = str
@@ -0,0 +1,50 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#TaskExecutionFilesFailedDetail``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_datasync.types.long
9
+
10
+
11
+ class TaskExecutionFilesFailedDetail(TypedDict, closed=True):
12
+ prepare: "capo_datasync.types.long.long"
13
+ """<p>The number of files or objects that DataSync fails to prepare during your task execution.</p>"""
14
+ transfer: "capo_datasync.types.long.long"
15
+ """<p>The number of files or objects that DataSync fails to transfer during your task execution.</p>"""
16
+ verify: "capo_datasync.types.long.long"
17
+ """<p>The number of files or objects that DataSync fails to verify during your task execution.</p>"""
18
+ delete: "capo_datasync.types.long.long"
19
+ """<p>The number of files or objects that DataSync fails to delete during your task execution.</p>"""
20
+
21
+
22
+ # --- awsJson1_1 ser/de ---
23
+ def serialize_aws_json_1_1(value: TaskExecutionFilesFailedDetail) -> dict:
24
+ out: dict = {}
25
+ out["Prepare"] = value.get("prepare", 0)
26
+ out["Transfer"] = value.get("transfer", 0)
27
+ out["Verify"] = value.get("verify", 0)
28
+ out["Delete"] = value.get("delete", 0)
29
+ return out
30
+
31
+
32
+ def deserialize_aws_json_1_1(data: dict) -> TaskExecutionFilesFailedDetail:
33
+ out: TaskExecutionFilesFailedDetail = {} # type: ignore[typeddict-item]
34
+ if data.get("Prepare") is not None:
35
+ out["prepare"] = data["Prepare"]
36
+ else:
37
+ out["prepare"] = 0
38
+ if data.get("Transfer") is not None:
39
+ out["transfer"] = data["Transfer"]
40
+ else:
41
+ out["transfer"] = 0
42
+ if data.get("Verify") is not None:
43
+ out["verify"] = data["Verify"]
44
+ else:
45
+ out["verify"] = 0
46
+ if data.get("Delete") is not None:
47
+ out["delete"] = data["Delete"]
48
+ else:
49
+ out["delete"] = 0
50
+ return out
@@ -0,0 +1,36 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#TaskExecutionFilesListedDetail``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_datasync.types.long
9
+
10
+
11
+ class TaskExecutionFilesListedDetail(TypedDict, closed=True):
12
+ at_source: "capo_datasync.types.long.long"
13
+ r"""<p>The number of files or objects that DataSync finds at your source location.</p> <ul> <li> <p>With a <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html\">manifest</a>, DataSync lists only what's in your manifest (and not everything at your source location).</p> </li> <li> <p>With an include <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html\">filter</a>, DataSync lists only what matches the filter at your source location.</p> </li> <li> <p>With an exclude filter, DataSync lists everything at your source location before applying the filter.</p> </li> </ul>"""
14
+ at_destination_for_delete: "capo_datasync.types.long.long"
15
+ r"""<p>The number of files or objects that DataSync finds at your destination location. This counter is only applicable if you <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html#task-option-file-object-handling\">configure your task</a> to delete data in the destination that isn't in the source.</p>"""
16
+
17
+
18
+ # --- awsJson1_1 ser/de ---
19
+ def serialize_aws_json_1_1(value: TaskExecutionFilesListedDetail) -> dict:
20
+ out: dict = {}
21
+ out["AtSource"] = value.get("at_source", 0)
22
+ out["AtDestinationForDelete"] = value.get("at_destination_for_delete", 0)
23
+ return out
24
+
25
+
26
+ def deserialize_aws_json_1_1(data: dict) -> TaskExecutionFilesListedDetail:
27
+ out: TaskExecutionFilesListedDetail = {} # type: ignore[typeddict-item]
28
+ if data.get("AtSource") is not None:
29
+ out["at_source"] = data["AtSource"]
30
+ else:
31
+ out["at_source"] = 0
32
+ if data.get("AtDestinationForDelete") is not None:
33
+ out["at_destination_for_delete"] = data["AtDestinationForDelete"]
34
+ else:
35
+ out["at_destination_for_delete"] = 0
36
+ return out
@@ -0,0 +1,57 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#TaskExecutionFoldersFailedDetail``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_datasync.types.long
9
+
10
+
11
+ class TaskExecutionFoldersFailedDetail(TypedDict, closed=True):
12
+ list: "capo_datasync.types.long.long"
13
+ """<p>The number of directories that DataSync fails to list during your task execution.</p>"""
14
+ prepare: "capo_datasync.types.long.long"
15
+ """<p>The number of directories that DataSync fails to prepare during your task execution.</p>"""
16
+ transfer: "capo_datasync.types.long.long"
17
+ """<p>The number of directories that DataSync fails to transfer during your task execution.</p>"""
18
+ verify: "capo_datasync.types.long.long"
19
+ """<p>The number of directories that DataSync fails to verify during your task execution.</p>"""
20
+ delete: "capo_datasync.types.long.long"
21
+ """<p>The number of directories that DataSync fails to delete during your task execution.</p>"""
22
+
23
+
24
+ # --- awsJson1_1 ser/de ---
25
+ def serialize_aws_json_1_1(value: TaskExecutionFoldersFailedDetail) -> dict:
26
+ out: dict = {}
27
+ out["List"] = value.get("list", 0)
28
+ out["Prepare"] = value.get("prepare", 0)
29
+ out["Transfer"] = value.get("transfer", 0)
30
+ out["Verify"] = value.get("verify", 0)
31
+ out["Delete"] = value.get("delete", 0)
32
+ return out
33
+
34
+
35
+ def deserialize_aws_json_1_1(data: dict) -> TaskExecutionFoldersFailedDetail:
36
+ out: TaskExecutionFoldersFailedDetail = {} # type: ignore[typeddict-item]
37
+ if data.get("List") is not None:
38
+ out["list"] = data["List"]
39
+ else:
40
+ out["list"] = 0
41
+ if data.get("Prepare") is not None:
42
+ out["prepare"] = data["Prepare"]
43
+ else:
44
+ out["prepare"] = 0
45
+ if data.get("Transfer") is not None:
46
+ out["transfer"] = data["Transfer"]
47
+ else:
48
+ out["transfer"] = 0
49
+ if data.get("Verify") is not None:
50
+ out["verify"] = data["Verify"]
51
+ else:
52
+ out["verify"] = 0
53
+ if data.get("Delete") is not None:
54
+ out["delete"] = data["Delete"]
55
+ else:
56
+ out["delete"] = 0
57
+ return out
@@ -0,0 +1,36 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#TaskExecutionFoldersListedDetail``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_datasync.types.long
9
+
10
+
11
+ class TaskExecutionFoldersListedDetail(TypedDict, closed=True):
12
+ at_source: "capo_datasync.types.long.long"
13
+ r"""<p>The number of directories that DataSync finds at your source location.</p> <ul> <li> <p>With a <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html\">manifest</a>, DataSync lists only what's in your manifest (and not everything at your source location).</p> </li> <li> <p>With an include <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html\">filter</a>, DataSync lists only what matches the filter at your source location.</p> </li> <li> <p>With an exclude filter, DataSync lists everything at your source location before applying the filter.</p> </li> </ul>"""
14
+ at_destination_for_delete: "capo_datasync.types.long.long"
15
+ r"""<p>The number of directories that DataSync finds at your destination location. This counter is only applicable if you <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html#task-option-file-object-handling\">configure your task</a> to delete data in the destination that isn't in the source.</p>"""
16
+
17
+
18
+ # --- awsJson1_1 ser/de ---
19
+ def serialize_aws_json_1_1(value: TaskExecutionFoldersListedDetail) -> dict:
20
+ out: dict = {}
21
+ out["AtSource"] = value.get("at_source", 0)
22
+ out["AtDestinationForDelete"] = value.get("at_destination_for_delete", 0)
23
+ return out
24
+
25
+
26
+ def deserialize_aws_json_1_1(data: dict) -> TaskExecutionFoldersListedDetail:
27
+ out: TaskExecutionFoldersListedDetail = {} # type: ignore[typeddict-item]
28
+ if data.get("AtSource") is not None:
29
+ out["at_source"] = data["AtSource"]
30
+ else:
31
+ out["at_source"] = 0
32
+ if data.get("AtDestinationForDelete") is not None:
33
+ out["at_destination_for_delete"] = data["AtDestinationForDelete"]
34
+ else:
35
+ out["at_destination_for_delete"] = 0
36
+ return out
@@ -0,0 +1,35 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#TaskExecutionList``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_datasync.types.task_execution_list_entry
7
+
8
+ TaskExecutionList: TypeAlias = list[
9
+ "capo_datasync.types.task_execution_list_entry.TaskExecutionListEntry"
10
+ ]
11
+
12
+
13
+ # --- awsJson1_1 ser/de ---
14
+ def serialize_aws_json_1_1(value: TaskExecutionList) -> list:
15
+ import capo_datasync.types.task_execution_list_entry
16
+
17
+ out: list = []
18
+ for item in value:
19
+ out.append(
20
+ capo_datasync.types.task_execution_list_entry.serialize_aws_json_1_1(item)
21
+ )
22
+ return out
23
+
24
+
25
+ def deserialize_aws_json_1_1(data: list) -> TaskExecutionList:
26
+ import capo_datasync.types.task_execution_list_entry
27
+
28
+ out: TaskExecutionList = []
29
+ for item in data:
30
+ if item is None:
31
+ continue
32
+ out.append(
33
+ capo_datasync.types.task_execution_list_entry.deserialize_aws_json_1_1(item)
34
+ )
35
+ return out
@@ -0,0 +1,64 @@
1
+ """Generated from Smithy shape ``com.amazonaws.datasync#TaskExecutionListEntry``."""
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.task_execution_arn
9
+ import capo_datasync.types.task_execution_status
10
+ import capo_datasync.types.task_mode
11
+
12
+
13
+ class TaskExecutionListEntry(TypedDict, closed=True):
14
+ task_execution_arn: NotRequired[
15
+ "capo_datasync.types.task_execution_arn.TaskExecutionArn"
16
+ ]
17
+ """<p>The Amazon Resource Name (ARN) of a task execution.</p>"""
18
+ status: NotRequired["capo_datasync.types.task_execution_status.TaskExecutionStatus"]
19
+ r"""<p>The status of a task execution. For more information, see <a href=\"https://docs.aws.amazon.com/datasync/latest/userguide/run-task.html#understand-task-execution-statuses\">Task execution statuses</a>.</p>"""
20
+ task_mode: NotRequired["capo_datasync.types.task_mode.TaskMode"]
21
+ 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>"""
22
+
23
+
24
+ # --- awsJson1_1 ser/de ---
25
+ def serialize_aws_json_1_1(value: TaskExecutionListEntry) -> dict:
26
+ out: dict = {}
27
+ if "task_execution_arn" in value:
28
+ out["TaskExecutionArn"] = value["task_execution_arn"]
29
+ if "status" in value:
30
+ import capo_datasync.types.task_execution_status
31
+
32
+ out["Status"] = (
33
+ capo_datasync.types.task_execution_status.serialize_aws_json_1_1(
34
+ value["status"]
35
+ )
36
+ )
37
+ if "task_mode" in value:
38
+ import capo_datasync.types.task_mode
39
+
40
+ out["TaskMode"] = capo_datasync.types.task_mode.serialize_aws_json_1_1(
41
+ value["task_mode"]
42
+ )
43
+ return out
44
+
45
+
46
+ def deserialize_aws_json_1_1(data: dict) -> TaskExecutionListEntry:
47
+ out: TaskExecutionListEntry = {} # type: ignore[typeddict-item]
48
+ if data.get("TaskExecutionArn") is not None:
49
+ out["task_execution_arn"] = data["TaskExecutionArn"]
50
+ if data.get("Status") is not None:
51
+ import capo_datasync.types.task_execution_status
52
+
53
+ out["status"] = (
54
+ capo_datasync.types.task_execution_status.deserialize_aws_json_1_1(
55
+ data["Status"]
56
+ )
57
+ )
58
+ if data.get("TaskMode") is not None:
59
+ import capo_datasync.types.task_mode
60
+
61
+ out["task_mode"] = capo_datasync.types.task_mode.deserialize_aws_json_1_1(
62
+ data["TaskMode"]
63
+ )
64
+ return out