capo-lambda 0.5.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 (681) hide show
  1. capo_lambda/__init__.py +52 -0
  2. capo_lambda/_async.py +25 -0
  3. capo_lambda/_auth/_identity.py +16 -0
  4. capo_lambda/_auth/_providers.py +318 -0
  5. capo_lambda/_auth/_signers.py +84 -0
  6. capo_lambda/_auth/_sigv4.py +382 -0
  7. capo_lambda/_auth/_zapros_handler.py +62 -0
  8. capo_lambda/_iter.py +113 -0
  9. capo_lambda/_operations/aws_gir_api_service/add_layer_version_permission.py +169 -0
  10. capo_lambda/_operations/aws_gir_api_service/add_permission.py +168 -0
  11. capo_lambda/_operations/aws_gir_api_service/checkpoint_durable_execution.py +150 -0
  12. capo_lambda/_operations/aws_gir_api_service/create_alias.py +152 -0
  13. capo_lambda/_operations/aws_gir_api_service/create_capacity_provider.py +157 -0
  14. capo_lambda/_operations/aws_gir_api_service/create_code_signing_config.py +140 -0
  15. capo_lambda/_operations/aws_gir_api_service/create_event_source_mapping.py +173 -0
  16. capo_lambda/_operations/aws_gir_api_service/create_function.py +208 -0
  17. capo_lambda/_operations/aws_gir_api_service/create_function_url_config.py +158 -0
  18. capo_lambda/_operations/aws_gir_api_service/delete_alias.py +123 -0
  19. capo_lambda/_operations/aws_gir_api_service/delete_capacity_provider.py +156 -0
  20. capo_lambda/_operations/aws_gir_api_service/delete_code_signing_config.py +146 -0
  21. capo_lambda/_operations/aws_gir_api_service/delete_event_source_mapping.py +176 -0
  22. capo_lambda/_operations/aws_gir_api_service/delete_function.py +148 -0
  23. capo_lambda/_operations/aws_gir_api_service/delete_function_code_signing_config.py +133 -0
  24. capo_lambda/_operations/aws_gir_api_service/delete_function_concurrency.py +125 -0
  25. capo_lambda/_operations/aws_gir_api_service/delete_function_event_invoke_config.py +130 -0
  26. capo_lambda/_operations/aws_gir_api_service/delete_function_url_config.py +122 -0
  27. capo_lambda/_operations/aws_gir_api_service/delete_layer_version.py +114 -0
  28. capo_lambda/_operations/aws_gir_api_service/delete_provisioned_concurrency_config.py +130 -0
  29. capo_lambda/_operations/aws_gir_api_service/get_account_settings.py +139 -0
  30. capo_lambda/_operations/aws_gir_api_service/get_alias.py +147 -0
  31. capo_lambda/_operations/aws_gir_api_service/get_capacity_provider.py +151 -0
  32. capo_lambda/_operations/aws_gir_api_service/get_code_signing_config.py +146 -0
  33. capo_lambda/_operations/aws_gir_api_service/get_durable_execution.py +154 -0
  34. capo_lambda/_operations/aws_gir_api_service/get_durable_execution_history.py +158 -0
  35. capo_lambda/_operations/aws_gir_api_service/get_durable_execution_state.py +151 -0
  36. capo_lambda/_operations/aws_gir_api_service/get_event_source_mapping.py +166 -0
  37. capo_lambda/_operations/aws_gir_api_service/get_function.py +154 -0
  38. capo_lambda/_operations/aws_gir_api_service/get_function_code_signing_config.py +148 -0
  39. capo_lambda/_operations/aws_gir_api_service/get_function_concurrency.py +145 -0
  40. capo_lambda/_operations/aws_gir_api_service/get_function_configuration.py +172 -0
  41. capo_lambda/_operations/aws_gir_api_service/get_function_event_invoke_config.py +156 -0
  42. capo_lambda/_operations/aws_gir_api_service/get_function_recursion_config.py +149 -0
  43. capo_lambda/_operations/aws_gir_api_service/get_function_scaling_config.py +151 -0
  44. capo_lambda/_operations/aws_gir_api_service/get_function_url_config.py +150 -0
  45. capo_lambda/_operations/aws_gir_api_service/get_layer_version.py +156 -0
  46. capo_lambda/_operations/aws_gir_api_service/get_layer_version_by_arn.py +152 -0
  47. capo_lambda/_operations/aws_gir_api_service/get_layer_version_policy.py +149 -0
  48. capo_lambda/_operations/aws_gir_api_service/get_policy.py +145 -0
  49. capo_lambda/_operations/aws_gir_api_service/get_provisioned_concurrency_config.py +156 -0
  50. capo_lambda/_operations/aws_gir_api_service/get_runtime_management_config.py +151 -0
  51. capo_lambda/_operations/aws_gir_api_service/invoke.py +342 -0
  52. capo_lambda/_operations/aws_gir_api_service/invoke_async.py +153 -0
  53. capo_lambda/_operations/aws_gir_api_service/invoke_with_response_stream.py +346 -0
  54. capo_lambda/_operations/aws_gir_api_service/list_aliases.py +154 -0
  55. capo_lambda/_operations/aws_gir_api_service/list_capacity_providers.py +146 -0
  56. capo_lambda/_operations/aws_gir_api_service/list_code_signing_configs.py +142 -0
  57. capo_lambda/_operations/aws_gir_api_service/list_durable_executions_by_function.py +166 -0
  58. capo_lambda/_operations/aws_gir_api_service/list_event_source_mappings.py +152 -0
  59. capo_lambda/_operations/aws_gir_api_service/list_function_event_invoke_configs.py +153 -0
  60. capo_lambda/_operations/aws_gir_api_service/list_function_url_configs.py +154 -0
  61. capo_lambda/_operations/aws_gir_api_service/list_function_versions_by_capacity_provider.py +155 -0
  62. capo_lambda/_operations/aws_gir_api_service/list_functions.py +150 -0
  63. capo_lambda/_operations/aws_gir_api_service/list_functions_by_code_signing_config.py +150 -0
  64. capo_lambda/_operations/aws_gir_api_service/list_layer_versions.py +160 -0
  65. capo_lambda/_operations/aws_gir_api_service/list_layers.py +147 -0
  66. capo_lambda/_operations/aws_gir_api_service/list_provisioned_concurrency_configs.py +153 -0
  67. capo_lambda/_operations/aws_gir_api_service/list_tags.py +144 -0
  68. capo_lambda/_operations/aws_gir_api_service/list_versions_by_function.py +154 -0
  69. capo_lambda/_operations/aws_gir_api_service/publish_layer_version.py +157 -0
  70. capo_lambda/_operations/aws_gir_api_service/publish_version.py +192 -0
  71. capo_lambda/_operations/aws_gir_api_service/put_function_code_signing_config.py +163 -0
  72. capo_lambda/_operations/aws_gir_api_service/put_function_concurrency.py +149 -0
  73. capo_lambda/_operations/aws_gir_api_service/put_function_event_invoke_config.py +166 -0
  74. capo_lambda/_operations/aws_gir_api_service/put_function_recursion_config.py +157 -0
  75. capo_lambda/_operations/aws_gir_api_service/put_function_scaling_config.py +160 -0
  76. capo_lambda/_operations/aws_gir_api_service/put_provisioned_concurrency_config.py +161 -0
  77. capo_lambda/_operations/aws_gir_api_service/put_runtime_management_config.py +159 -0
  78. capo_lambda/_operations/aws_gir_api_service/remove_layer_version_permission.py +132 -0
  79. capo_lambda/_operations/aws_gir_api_service/remove_permission.py +133 -0
  80. capo_lambda/_operations/aws_gir_api_service/send_durable_execution_callback_failure.py +151 -0
  81. capo_lambda/_operations/aws_gir_api_service/send_durable_execution_callback_heartbeat.py +144 -0
  82. capo_lambda/_operations/aws_gir_api_service/send_durable_execution_callback_success.py +151 -0
  83. capo_lambda/_operations/aws_gir_api_service/stop_durable_execution.py +158 -0
  84. capo_lambda/_operations/aws_gir_api_service/tag_resource.py +129 -0
  85. capo_lambda/_operations/aws_gir_api_service/untag_resource.py +128 -0
  86. capo_lambda/_operations/aws_gir_api_service/update_alias.py +160 -0
  87. capo_lambda/_operations/aws_gir_api_service/update_capacity_provider.py +160 -0
  88. capo_lambda/_operations/aws_gir_api_service/update_code_signing_config.py +151 -0
  89. capo_lambda/_operations/aws_gir_api_service/update_event_source_mapping.py +179 -0
  90. capo_lambda/_operations/aws_gir_api_service/update_function_code.py +203 -0
  91. capo_lambda/_operations/aws_gir_api_service/update_function_configuration.py +204 -0
  92. capo_lambda/_operations/aws_gir_api_service/update_function_event_invoke_config.py +166 -0
  93. capo_lambda/_operations/aws_gir_api_service/update_function_url_config.py +158 -0
  94. capo_lambda/_pagination.py +21 -0
  95. capo_lambda/_protocol/__init__.py +1 -0
  96. capo_lambda/_protocol/errors.py +59 -0
  97. capo_lambda/_protocol/eventstream.py +238 -0
  98. capo_lambda/_protocol/xml.py +27 -0
  99. capo_lambda/_resources/aws_gir_api_service/capacity_provider_resource.py +713 -0
  100. capo_lambda/_resources/aws_gir_api_service/code_signing_config_resource.py +656 -0
  101. capo_lambda/_resources/aws_gir_api_service/event_source_mapping.py +1163 -0
  102. capo_lambda/_resources/aws_gir_api_service/function.py +3923 -0
  103. capo_lambda/_resources/aws_gir_api_service/function_alias.py +670 -0
  104. capo_lambda/_resources/aws_gir_api_service/function_version_resource.py +303 -0
  105. capo_lambda/_resources/aws_gir_api_service/layer_resource.py +170 -0
  106. capo_lambda/_resources/aws_gir_api_service/layer_version.py +1022 -0
  107. capo_lambda/_resources/aws_gir_api_service/permission.py +389 -0
  108. capo_lambda/_resources/aws_gir_api_service/provisioned_concurrency_config.py +376 -0
  109. capo_lambda/_resources/aws_gir_api_service/resource_policy.py +19 -0
  110. capo_lambda/_rule_engine/__init__.py +0 -0
  111. capo_lambda/_rule_engine/_aws_partition.py +160 -0
  112. capo_lambda/_rule_engine/_endpoint_rule_set.py +136 -0
  113. capo_lambda/_rule_engine/_endpoint_runtime.py +389 -0
  114. capo_lambda/_services/_aws_config.py +152 -0
  115. capo_lambda/_services/_lambda.py +1388 -0
  116. capo_lambda/_services/_pipeline.py +198 -0
  117. capo_lambda/_services/async__lambda.py +1411 -0
  118. capo_lambda/errors/__init__.py +148 -0
  119. capo_lambda/errors/_base.py +94 -0
  120. capo_lambda/errors/callback_timeout_exception.py +54 -0
  121. capo_lambda/errors/capacity_provider_limit_exceeded_exception.py +54 -0
  122. capo_lambda/errors/code_signing_config_not_found_exception.py +53 -0
  123. capo_lambda/errors/code_storage_exceeded_exception.py +54 -0
  124. capo_lambda/errors/code_verification_failed_exception.py +53 -0
  125. capo_lambda/errors/durable_execution_already_started_exception.py +54 -0
  126. capo_lambda/errors/ec2_access_denied_exception.py +53 -0
  127. capo_lambda/errors/ec2_throttled_exception.py +53 -0
  128. capo_lambda/errors/ec2_unexpected_exception.py +58 -0
  129. capo_lambda/errors/efs_mount_connectivity_exception.py +53 -0
  130. capo_lambda/errors/efs_mount_failure_exception.py +53 -0
  131. capo_lambda/errors/efs_mount_timeout_exception.py +53 -0
  132. capo_lambda/errors/efsio_exception.py +53 -0
  133. capo_lambda/errors/eni_limit_reached_exception.py +53 -0
  134. capo_lambda/errors/function_versions_per_capacity_provider_limit_exceeded_exception.py +64 -0
  135. capo_lambda/errors/invalid_code_signature_exception.py +53 -0
  136. capo_lambda/errors/invalid_parameter_value_exception.py +55 -0
  137. capo_lambda/errors/invalid_request_content_exception.py +55 -0
  138. capo_lambda/errors/invalid_runtime_exception.py +53 -0
  139. capo_lambda/errors/invalid_security_group_id_exception.py +53 -0
  140. capo_lambda/errors/invalid_subnet_id_exception.py +53 -0
  141. capo_lambda/errors/invalid_zip_file_exception.py +53 -0
  142. capo_lambda/errors/kms_access_denied_exception.py +53 -0
  143. capo_lambda/errors/kms_disabled_exception.py +53 -0
  144. capo_lambda/errors/kms_invalid_state_exception.py +53 -0
  145. capo_lambda/errors/kms_not_found_exception.py +53 -0
  146. capo_lambda/errors/no_published_version_exception.py +54 -0
  147. capo_lambda/errors/policy_length_exceeded_exception.py +53 -0
  148. capo_lambda/errors/precondition_failed_exception.py +55 -0
  149. capo_lambda/errors/provisioned_concurrency_config_not_found_exception.py +53 -0
  150. capo_lambda/errors/recursive_invocation_exception.py +55 -0
  151. capo_lambda/errors/request_too_large_exception.py +53 -0
  152. capo_lambda/errors/resource_conflict_exception.py +55 -0
  153. capo_lambda/errors/resource_in_use_exception.py +53 -0
  154. capo_lambda/errors/resource_not_found_exception.py +53 -0
  155. capo_lambda/errors/resource_not_ready_exception.py +55 -0
  156. capo_lambda/errors/s3_files_mount_connectivity_exception.py +55 -0
  157. capo_lambda/errors/s3_files_mount_failure_exception.py +55 -0
  158. capo_lambda/errors/s3_files_mount_timeout_exception.py +55 -0
  159. capo_lambda/errors/serialized_request_entity_too_large_exception.py +54 -0
  160. capo_lambda/errors/service_exception.py +53 -0
  161. capo_lambda/errors/snap_start_exception.py +53 -0
  162. capo_lambda/errors/snap_start_not_ready_exception.py +53 -0
  163. capo_lambda/errors/snap_start_timeout_exception.py +53 -0
  164. capo_lambda/errors/subnet_ip_address_limit_reached_exception.py +53 -0
  165. capo_lambda/errors/too_many_requests_exception.py +69 -0
  166. capo_lambda/errors/unsupported_media_type_exception.py +53 -0
  167. capo_lambda/py.typed +0 -0
  168. capo_lambda/types/_prelude/blob.py +12 -0
  169. capo_lambda/types/_prelude/timestamp.py +12 -0
  170. capo_lambda/types/account_limit.py +62 -0
  171. capo_lambda/types/account_usage.py +36 -0
  172. capo_lambda/types/action.py +5 -0
  173. capo_lambda/types/add_layer_version_permission_request.py +69 -0
  174. capo_lambda/types/add_layer_version_permission_response.py +34 -0
  175. capo_lambda/types/add_permission_request.py +122 -0
  176. capo_lambda/types/add_permission_response.py +28 -0
  177. capo_lambda/types/additional_version.py +5 -0
  178. capo_lambda/types/additional_version_weights.py +27 -0
  179. capo_lambda/types/alias.py +5 -0
  180. capo_lambda/types/alias_configuration.py +77 -0
  181. capo_lambda/types/alias_list.py +27 -0
  182. capo_lambda/types/alias_routing_configuration.py +42 -0
  183. capo_lambda/types/allow_credentials.py +5 -0
  184. capo_lambda/types/allow_methods_list.py +17 -0
  185. capo_lambda/types/allow_origins_list.py +17 -0
  186. capo_lambda/types/allowed_publishers.py +47 -0
  187. capo_lambda/types/amazon_managed_kafka_event_source_config.py +49 -0
  188. capo_lambda/types/application_log_level.py +21 -0
  189. capo_lambda/types/architecture.py +17 -0
  190. capo_lambda/types/architectures_list.py +27 -0
  191. capo_lambda/types/arn.py +5 -0
  192. capo_lambda/types/attempt_count.py +5 -0
  193. capo_lambda/types/batch_size.py +5 -0
  194. capo_lambda/types/binary_operation_payload.py +15 -0
  195. capo_lambda/types/bisect_batch_on_function_error.py +5 -0
  196. capo_lambda/types/blob.py +15 -0
  197. capo_lambda/types/blob_stream.py +7 -0
  198. capo_lambda/types/boolean.py +5 -0
  199. capo_lambda/types/callback_details.py +46 -0
  200. capo_lambda/types/callback_failed_details.py +35 -0
  201. capo_lambda/types/callback_id.py +5 -0
  202. capo_lambda/types/callback_options.py +36 -0
  203. capo_lambda/types/callback_started_details.py +44 -0
  204. capo_lambda/types/callback_succeeded_details.py +35 -0
  205. capo_lambda/types/callback_timed_out_details.py +35 -0
  206. capo_lambda/types/capacity_provider.py +143 -0
  207. capo_lambda/types/capacity_provider_arn.py +5 -0
  208. capo_lambda/types/capacity_provider_config.py +45 -0
  209. capo_lambda/types/capacity_provider_max_v_cpu_count.py +5 -0
  210. capo_lambda/types/capacity_provider_name.py +5 -0
  211. capo_lambda/types/capacity_provider_permissions_config.py +37 -0
  212. capo_lambda/types/capacity_provider_predefined_metric_type.py +16 -0
  213. capo_lambda/types/capacity_provider_scaling_config.py +72 -0
  214. capo_lambda/types/capacity_provider_scaling_mode.py +17 -0
  215. capo_lambda/types/capacity_provider_scaling_policies_list.py +33 -0
  216. capo_lambda/types/capacity_provider_security_group_ids.py +19 -0
  217. capo_lambda/types/capacity_provider_state.py +19 -0
  218. capo_lambda/types/capacity_provider_subnet_ids.py +17 -0
  219. capo_lambda/types/capacity_provider_vpc_config.py +65 -0
  220. capo_lambda/types/capacity_providers_list.py +29 -0
  221. capo_lambda/types/chained_invoke_details.py +39 -0
  222. capo_lambda/types/chained_invoke_failed_details.py +35 -0
  223. capo_lambda/types/chained_invoke_options.py +38 -0
  224. capo_lambda/types/chained_invoke_started_details.py +67 -0
  225. capo_lambda/types/chained_invoke_stopped_details.py +35 -0
  226. capo_lambda/types/chained_invoke_succeeded_details.py +35 -0
  227. capo_lambda/types/chained_invoke_timed_out_details.py +35 -0
  228. capo_lambda/types/checkpoint_durable_execution_request.py +58 -0
  229. capo_lambda/types/checkpoint_durable_execution_response.py +52 -0
  230. capo_lambda/types/checkpoint_token.py +5 -0
  231. capo_lambda/types/checkpoint_updated_execution_state.py +43 -0
  232. capo_lambda/types/client_token.py +5 -0
  233. capo_lambda/types/code_signing_config.py +94 -0
  234. capo_lambda/types/code_signing_config_arn.py +5 -0
  235. capo_lambda/types/code_signing_config_id.py +5 -0
  236. capo_lambda/types/code_signing_config_list.py +29 -0
  237. capo_lambda/types/code_signing_policies.py +42 -0
  238. capo_lambda/types/code_signing_policy.py +17 -0
  239. capo_lambda/types/collection_name.py +5 -0
  240. capo_lambda/types/compatible_architectures.py +27 -0
  241. capo_lambda/types/compatible_runtimes.py +27 -0
  242. capo_lambda/types/concurrency.py +30 -0
  243. capo_lambda/types/context_details.py +46 -0
  244. capo_lambda/types/context_failed_details.py +35 -0
  245. capo_lambda/types/context_options.py +28 -0
  246. capo_lambda/types/context_started_details.py +18 -0
  247. capo_lambda/types/context_succeeded_details.py +35 -0
  248. capo_lambda/types/cors.py +96 -0
  249. capo_lambda/types/create_alias_request.py +72 -0
  250. capo_lambda/types/create_capacity_provider_request.py +139 -0
  251. capo_lambda/types/create_capacity_provider_response.py +41 -0
  252. capo_lambda/types/create_code_signing_config_request.py +82 -0
  253. capo_lambda/types/create_code_signing_config_response.py +43 -0
  254. capo_lambda/types/create_event_source_mapping_request.py +426 -0
  255. capo_lambda/types/create_function_request.py +385 -0
  256. capo_lambda/types/create_function_url_config_request.py +73 -0
  257. capo_lambda/types/create_function_url_config_response.py +95 -0
  258. capo_lambda/types/database_name.py +5 -0
  259. capo_lambda/types/date.py +15 -0
  260. capo_lambda/types/dead_letter_config.py +28 -0
  261. capo_lambda/types/delete_alias_request.py +27 -0
  262. capo_lambda/types/delete_capacity_provider_request.py +26 -0
  263. capo_lambda/types/delete_capacity_provider_response.py +41 -0
  264. capo_lambda/types/delete_code_signing_config_request.py +26 -0
  265. capo_lambda/types/delete_code_signing_config_response.py +18 -0
  266. capo_lambda/types/delete_event_source_mapping_request.py +24 -0
  267. capo_lambda/types/delete_function_code_signing_config_request.py +24 -0
  268. capo_lambda/types/delete_function_concurrency_request.py +24 -0
  269. capo_lambda/types/delete_function_event_invoke_config_request.py +29 -0
  270. capo_lambda/types/delete_function_request.py +29 -0
  271. capo_lambda/types/delete_function_response.py +24 -0
  272. capo_lambda/types/delete_function_url_config_request.py +29 -0
  273. capo_lambda/types/delete_layer_version_request.py +27 -0
  274. capo_lambda/types/delete_provisioned_concurrency_config_request.py +27 -0
  275. capo_lambda/types/description.py +5 -0
  276. capo_lambda/types/destination_arn.py +5 -0
  277. capo_lambda/types/destination_config.py +51 -0
  278. capo_lambda/types/document_db_event_source_config.py +50 -0
  279. capo_lambda/types/durable_config.py +39 -0
  280. capo_lambda/types/durable_execution_arn.py +5 -0
  281. capo_lambda/types/durable_execution_name.py +5 -0
  282. capo_lambda/types/durable_executions.py +27 -0
  283. capo_lambda/types/duration_seconds.py +5 -0
  284. capo_lambda/types/enabled.py +5 -0
  285. capo_lambda/types/end_point_type.py +14 -0
  286. capo_lambda/types/endpoint.py +5 -0
  287. capo_lambda/types/endpoint_lists.py +17 -0
  288. capo_lambda/types/endpoints.py +37 -0
  289. capo_lambda/types/environment.py +38 -0
  290. capo_lambda/types/environment_error.py +35 -0
  291. capo_lambda/types/environment_response.py +53 -0
  292. capo_lambda/types/environment_variable_name.py +5 -0
  293. capo_lambda/types/environment_variable_value.py +5 -0
  294. capo_lambda/types/environment_variables.py +27 -0
  295. capo_lambda/types/ephemeral_storage.py +31 -0
  296. capo_lambda/types/ephemeral_storage_size.py +5 -0
  297. capo_lambda/types/error_data.py +5 -0
  298. capo_lambda/types/error_message.py +5 -0
  299. capo_lambda/types/error_object.py +57 -0
  300. capo_lambda/types/error_type.py +5 -0
  301. capo_lambda/types/event.py +584 -0
  302. capo_lambda/types/event_error.py +41 -0
  303. capo_lambda/types/event_id.py +5 -0
  304. capo_lambda/types/event_input.py +35 -0
  305. capo_lambda/types/event_result.py +35 -0
  306. capo_lambda/types/event_source_mapping_arn.py +5 -0
  307. capo_lambda/types/event_source_mapping_configuration.py +472 -0
  308. capo_lambda/types/event_source_mapping_logging_config.py +42 -0
  309. capo_lambda/types/event_source_mapping_metric.py +18 -0
  310. capo_lambda/types/event_source_mapping_metric_list.py +29 -0
  311. capo_lambda/types/event_source_mapping_metrics_config.py +42 -0
  312. capo_lambda/types/event_source_mapping_system_log_level.py +18 -0
  313. capo_lambda/types/event_source_mappings_list.py +33 -0
  314. capo_lambda/types/event_source_position.py +18 -0
  315. capo_lambda/types/event_source_token.py +5 -0
  316. capo_lambda/types/event_type.py +39 -0
  317. capo_lambda/types/events.py +27 -0
  318. capo_lambda/types/execution.py +95 -0
  319. capo_lambda/types/execution_details.py +28 -0
  320. capo_lambda/types/execution_environment_memory_gi_b_per_v_cpu.py +5 -0
  321. capo_lambda/types/execution_failed_details.py +35 -0
  322. capo_lambda/types/execution_started_details.py +43 -0
  323. capo_lambda/types/execution_status.py +20 -0
  324. capo_lambda/types/execution_status_list.py +29 -0
  325. capo_lambda/types/execution_stopped_details.py +35 -0
  326. capo_lambda/types/execution_succeeded_details.py +35 -0
  327. capo_lambda/types/execution_timed_out_details.py +32 -0
  328. capo_lambda/types/execution_timeout.py +5 -0
  329. capo_lambda/types/execution_timestamp.py +15 -0
  330. capo_lambda/types/file_system_arn.py +5 -0
  331. capo_lambda/types/file_system_config.py +39 -0
  332. capo_lambda/types/file_system_config_list.py +29 -0
  333. capo_lambda/types/filter.py +28 -0
  334. capo_lambda/types/filter_criteria.py +32 -0
  335. capo_lambda/types/filter_criteria_error.py +39 -0
  336. capo_lambda/types/filter_criteria_error_code.py +5 -0
  337. capo_lambda/types/filter_criteria_error_message.py +5 -0
  338. capo_lambda/types/filter_list.py +27 -0
  339. capo_lambda/types/full_document.py +17 -0
  340. capo_lambda/types/function_arn.py +5 -0
  341. capo_lambda/types/function_arn_list.py +17 -0
  342. capo_lambda/types/function_code.py +69 -0
  343. capo_lambda/types/function_code_location.py +52 -0
  344. capo_lambda/types/function_configuration.py +513 -0
  345. capo_lambda/types/function_event_invoke_config.py +80 -0
  346. capo_lambda/types/function_event_invoke_config_list.py +31 -0
  347. capo_lambda/types/function_list.py +29 -0
  348. capo_lambda/types/function_name.py +5 -0
  349. capo_lambda/types/function_response_type.py +14 -0
  350. capo_lambda/types/function_response_type_list.py +29 -0
  351. capo_lambda/types/function_scaling_config.py +38 -0
  352. capo_lambda/types/function_scaling_config_execution_environments.py +5 -0
  353. capo_lambda/types/function_url.py +5 -0
  354. capo_lambda/types/function_url_auth_type.py +17 -0
  355. capo_lambda/types/function_url_config.py +96 -0
  356. capo_lambda/types/function_url_config_list.py +29 -0
  357. capo_lambda/types/function_url_qualifier.py +5 -0
  358. capo_lambda/types/function_version.py +14 -0
  359. capo_lambda/types/function_version_latest_published.py +14 -0
  360. capo_lambda/types/function_versions_by_capacity_provider_list.py +37 -0
  361. capo_lambda/types/function_versions_by_capacity_provider_list_item.py +47 -0
  362. capo_lambda/types/get_account_settings_request.py +18 -0
  363. capo_lambda/types/get_account_settings_response.py +51 -0
  364. capo_lambda/types/get_alias_request.py +27 -0
  365. capo_lambda/types/get_capacity_provider_request.py +26 -0
  366. capo_lambda/types/get_capacity_provider_response.py +41 -0
  367. capo_lambda/types/get_code_signing_config_request.py +26 -0
  368. capo_lambda/types/get_code_signing_config_response.py +43 -0
  369. capo_lambda/types/get_durable_execution_history_request.py +38 -0
  370. capo_lambda/types/get_durable_execution_history_response.py +42 -0
  371. capo_lambda/types/get_durable_execution_request.py +24 -0
  372. capo_lambda/types/get_durable_execution_response.py +150 -0
  373. capo_lambda/types/get_durable_execution_state_request.py +33 -0
  374. capo_lambda/types/get_durable_execution_state_response.py +46 -0
  375. capo_lambda/types/get_event_source_mapping_request.py +24 -0
  376. capo_lambda/types/get_function_code_signing_config_request.py +24 -0
  377. capo_lambda/types/get_function_code_signing_config_response.py +45 -0
  378. capo_lambda/types/get_function_concurrency_request.py +24 -0
  379. capo_lambda/types/get_function_concurrency_response.py +30 -0
  380. capo_lambda/types/get_function_configuration_request.py +29 -0
  381. capo_lambda/types/get_function_event_invoke_config_request.py +29 -0
  382. capo_lambda/types/get_function_recursion_config_request.py +24 -0
  383. capo_lambda/types/get_function_recursion_config_response.py +36 -0
  384. capo_lambda/types/get_function_request.py +29 -0
  385. capo_lambda/types/get_function_response.py +96 -0
  386. capo_lambda/types/get_function_scaling_config_request.py +29 -0
  387. capo_lambda/types/get_function_scaling_config_response.py +69 -0
  388. capo_lambda/types/get_function_url_config_request.py +29 -0
  389. capo_lambda/types/get_function_url_config_response.py +100 -0
  390. capo_lambda/types/get_layer_version_by_arn_request.py +24 -0
  391. capo_lambda/types/get_layer_version_policy_request.py +27 -0
  392. capo_lambda/types/get_layer_version_policy_response.py +34 -0
  393. capo_lambda/types/get_layer_version_request.py +27 -0
  394. capo_lambda/types/get_layer_version_response.py +127 -0
  395. capo_lambda/types/get_policy_request.py +29 -0
  396. capo_lambda/types/get_policy_response.py +34 -0
  397. capo_lambda/types/get_provisioned_concurrency_config_request.py +27 -0
  398. capo_lambda/types/get_provisioned_concurrency_config_response.py +94 -0
  399. capo_lambda/types/get_runtime_management_config_request.py +29 -0
  400. capo_lambda/types/get_runtime_management_config_response.py +56 -0
  401. capo_lambda/types/handler.py +5 -0
  402. capo_lambda/types/header.py +5 -0
  403. capo_lambda/types/headers_list.py +17 -0
  404. capo_lambda/types/http_status.py +5 -0
  405. capo_lambda/types/image_config.py +55 -0
  406. capo_lambda/types/image_config_error.py +35 -0
  407. capo_lambda/types/image_config_response.py +51 -0
  408. capo_lambda/types/include_execution_data.py +5 -0
  409. capo_lambda/types/input_payload.py +5 -0
  410. capo_lambda/types/instance_requirements.py +77 -0
  411. capo_lambda/types/instance_type.py +5 -0
  412. capo_lambda/types/instance_type_set.py +17 -0
  413. capo_lambda/types/integer.py +5 -0
  414. capo_lambda/types/invocation_completed_details.py +75 -0
  415. capo_lambda/types/invocation_request.py +57 -0
  416. capo_lambda/types/invocation_response.py +48 -0
  417. capo_lambda/types/invocation_type.py +18 -0
  418. capo_lambda/types/invoke_async_request.py +16 -0
  419. capo_lambda/types/invoke_async_response.py +24 -0
  420. capo_lambda/types/invoke_mode.py +17 -0
  421. capo_lambda/types/invoke_response_stream_update.py +42 -0
  422. capo_lambda/types/invoke_with_response_stream_complete_event.py +55 -0
  423. capo_lambda/types/invoke_with_response_stream_request.py +54 -0
  424. capo_lambda/types/invoke_with_response_stream_response.py +24 -0
  425. capo_lambda/types/invoke_with_response_stream_response_event.py +78 -0
  426. capo_lambda/types/invoked_via_function_url.py +5 -0
  427. capo_lambda/types/item_count.py +5 -0
  428. capo_lambda/types/kafka_schema_registry_access_config.py +47 -0
  429. capo_lambda/types/kafka_schema_registry_access_config_list.py +33 -0
  430. capo_lambda/types/kafka_schema_registry_auth_type.py +18 -0
  431. capo_lambda/types/kafka_schema_registry_config.py +93 -0
  432. capo_lambda/types/kafka_schema_validation_attribute.py +17 -0
  433. capo_lambda/types/kafka_schema_validation_config.py +42 -0
  434. capo_lambda/types/kafka_schema_validation_config_list.py +33 -0
  435. capo_lambda/types/kms_key_arn.py +5 -0
  436. capo_lambda/types/kms_key_arn_non_empty.py +5 -0
  437. capo_lambda/types/lambda_managed_instances_capacity_provider_config.py +59 -0
  438. capo_lambda/types/last_update_status.py +18 -0
  439. capo_lambda/types/last_update_status_reason.py +5 -0
  440. capo_lambda/types/last_update_status_reason_code.py +49 -0
  441. capo_lambda/types/layer.py +49 -0
  442. capo_lambda/types/layer_arn.py +5 -0
  443. capo_lambda/types/layer_list.py +17 -0
  444. capo_lambda/types/layer_name.py +5 -0
  445. capo_lambda/types/layer_permission_allowed_action.py +5 -0
  446. capo_lambda/types/layer_permission_allowed_principal.py +5 -0
  447. capo_lambda/types/layer_version_arn.py +5 -0
  448. capo_lambda/types/layer_version_content_input.py +55 -0
  449. capo_lambda/types/layer_version_content_output.py +54 -0
  450. capo_lambda/types/layer_version_number.py +5 -0
  451. capo_lambda/types/layer_versions_list.py +29 -0
  452. capo_lambda/types/layer_versions_list_item.py +101 -0
  453. capo_lambda/types/layers_list.py +27 -0
  454. capo_lambda/types/layers_list_item.py +56 -0
  455. capo_lambda/types/layers_reference_list.py +27 -0
  456. capo_lambda/types/license_info.py +5 -0
  457. capo_lambda/types/list_aliases_request.py +35 -0
  458. capo_lambda/types/list_aliases_response.py +39 -0
  459. capo_lambda/types/list_capacity_providers_request.py +32 -0
  460. capo_lambda/types/list_capacity_providers_response.py +52 -0
  461. capo_lambda/types/list_code_signing_configs_request.py +27 -0
  462. capo_lambda/types/list_code_signing_configs_response.py +49 -0
  463. capo_lambda/types/list_durable_executions_by_function_request.py +55 -0
  464. capo_lambda/types/list_durable_executions_by_function_response.py +47 -0
  465. capo_lambda/types/list_event_source_mappings_request.py +35 -0
  466. capo_lambda/types/list_event_source_mappings_response.py +49 -0
  467. capo_lambda/types/list_function_event_invoke_configs_request.py +32 -0
  468. capo_lambda/types/list_function_event_invoke_configs_response.py +49 -0
  469. capo_lambda/types/list_function_url_configs_request.py +30 -0
  470. capo_lambda/types/list_function_url_configs_response.py +54 -0
  471. capo_lambda/types/list_function_versions_by_capacity_provider_request.py +32 -0
  472. capo_lambda/types/list_function_versions_by_capacity_provider_response.py +62 -0
  473. capo_lambda/types/list_functions_by_code_signing_config_request.py +32 -0
  474. capo_lambda/types/list_functions_by_code_signing_config_response.py +43 -0
  475. capo_lambda/types/list_functions_request.py +33 -0
  476. capo_lambda/types/list_functions_response.py +43 -0
  477. capo_lambda/types/list_layer_versions_request.py +36 -0
  478. capo_lambda/types/list_layer_versions_response.py +45 -0
  479. capo_lambda/types/list_layers_request.py +33 -0
  480. capo_lambda/types/list_layers_response.py +39 -0
  481. capo_lambda/types/list_provisioned_concurrency_configs_request.py +32 -0
  482. capo_lambda/types/list_provisioned_concurrency_configs_response.py +49 -0
  483. capo_lambda/types/list_tags_request.py +24 -0
  484. capo_lambda/types/list_tags_response.py +32 -0
  485. capo_lambda/types/list_versions_by_function_request.py +30 -0
  486. capo_lambda/types/list_versions_by_function_response.py +43 -0
  487. capo_lambda/types/local_mount_path.py +5 -0
  488. capo_lambda/types/log_format.py +17 -0
  489. capo_lambda/types/log_group.py +5 -0
  490. capo_lambda/types/log_type.py +17 -0
  491. capo_lambda/types/logging_config.py +79 -0
  492. capo_lambda/types/long.py +5 -0
  493. capo_lambda/types/master_region.py +5 -0
  494. capo_lambda/types/max_age.py +5 -0
  495. capo_lambda/types/max_fifty_list_items.py +5 -0
  496. capo_lambda/types/max_function_event_invoke_config_list_items.py +5 -0
  497. capo_lambda/types/max_items.py +5 -0
  498. capo_lambda/types/max_layer_list_items.py +5 -0
  499. capo_lambda/types/max_list_items.py +5 -0
  500. capo_lambda/types/max_provisioned_concurrency_config_list_items.py +5 -0
  501. capo_lambda/types/maximum_batching_window_in_seconds.py +5 -0
  502. capo_lambda/types/maximum_concurrency.py +5 -0
  503. capo_lambda/types/maximum_event_age_in_seconds.py +5 -0
  504. capo_lambda/types/maximum_number_of_pollers.py +5 -0
  505. capo_lambda/types/maximum_record_age_in_seconds.py +5 -0
  506. capo_lambda/types/maximum_retry_attempts.py +5 -0
  507. capo_lambda/types/maximum_retry_attempts_event_source_mapping.py +5 -0
  508. capo_lambda/types/memory_size.py +5 -0
  509. capo_lambda/types/method.py +5 -0
  510. capo_lambda/types/metric_target_value.py +5 -0
  511. capo_lambda/types/minimum_number_of_pollers.py +5 -0
  512. capo_lambda/types/name_spaced_function_arn.py +5 -0
  513. capo_lambda/types/namespaced_function_name.py +5 -0
  514. capo_lambda/types/namespaced_statement_id.py +5 -0
  515. capo_lambda/types/non_negative_integer.py +5 -0
  516. capo_lambda/types/nullable_boolean.py +5 -0
  517. capo_lambda/types/numeric_latest_published_or_alias_qualifier.py +5 -0
  518. capo_lambda/types/on_failure.py +28 -0
  519. capo_lambda/types/on_success.py +28 -0
  520. capo_lambda/types/operation.py +205 -0
  521. capo_lambda/types/operation_action.py +20 -0
  522. capo_lambda/types/operation_id.py +5 -0
  523. capo_lambda/types/operation_name.py +5 -0
  524. capo_lambda/types/operation_payload.py +5 -0
  525. capo_lambda/types/operation_status.py +23 -0
  526. capo_lambda/types/operation_sub_type.py +5 -0
  527. capo_lambda/types/operation_type.py +21 -0
  528. capo_lambda/types/operation_update.py +174 -0
  529. capo_lambda/types/operation_updates.py +27 -0
  530. capo_lambda/types/operations.py +27 -0
  531. capo_lambda/types/organization_id.py +5 -0
  532. capo_lambda/types/origin.py +5 -0
  533. capo_lambda/types/output_payload.py +5 -0
  534. capo_lambda/types/package_type.py +17 -0
  535. capo_lambda/types/parallelization_factor.py +5 -0
  536. capo_lambda/types/pattern.py +5 -0
  537. capo_lambda/types/per_execution_environment_max_concurrency.py +5 -0
  538. capo_lambda/types/positive_integer.py +5 -0
  539. capo_lambda/types/principal.py +5 -0
  540. capo_lambda/types/principal_org_id.py +5 -0
  541. capo_lambda/types/provisioned_concurrency_config_list.py +37 -0
  542. capo_lambda/types/provisioned_concurrency_config_list_item.py +101 -0
  543. capo_lambda/types/provisioned_concurrency_status_enum.py +18 -0
  544. capo_lambda/types/provisioned_poller_config.py +48 -0
  545. capo_lambda/types/provisioned_poller_group_name.py +5 -0
  546. capo_lambda/types/publish_layer_version_request.py +98 -0
  547. capo_lambda/types/publish_layer_version_response.py +127 -0
  548. capo_lambda/types/publish_version_request.py +65 -0
  549. capo_lambda/types/published_function_qualifier.py +5 -0
  550. capo_lambda/types/put_function_code_signing_config_request.py +38 -0
  551. capo_lambda/types/put_function_code_signing_config_response.py +45 -0
  552. capo_lambda/types/put_function_concurrency_request.py +38 -0
  553. capo_lambda/types/put_function_event_invoke_config_request.py +66 -0
  554. capo_lambda/types/put_function_recursion_config_request.py +44 -0
  555. capo_lambda/types/put_function_recursion_config_response.py +36 -0
  556. capo_lambda/types/put_function_scaling_config_request.py +50 -0
  557. capo_lambda/types/put_function_scaling_config_response.py +36 -0
  558. capo_lambda/types/put_provisioned_concurrency_config_request.py +43 -0
  559. capo_lambda/types/put_provisioned_concurrency_config_response.py +94 -0
  560. capo_lambda/types/put_runtime_management_config_request.py +58 -0
  561. capo_lambda/types/put_runtime_management_config_response.py +60 -0
  562. capo_lambda/types/qualifier.py +5 -0
  563. capo_lambda/types/queue.py +5 -0
  564. capo_lambda/types/queues.py +17 -0
  565. capo_lambda/types/recursive_loop.py +17 -0
  566. capo_lambda/types/remove_layer_version_permission_request.py +33 -0
  567. capo_lambda/types/remove_permission_request.py +35 -0
  568. capo_lambda/types/replay_children.py +5 -0
  569. capo_lambda/types/reserved_concurrent_executions.py +5 -0
  570. capo_lambda/types/resource_arn.py +5 -0
  571. capo_lambda/types/response_streaming_invocation_type.py +17 -0
  572. capo_lambda/types/retention_period_in_days.py +5 -0
  573. capo_lambda/types/retry_details.py +38 -0
  574. capo_lambda/types/reverse_order.py +5 -0
  575. capo_lambda/types/role_arn.py +5 -0
  576. capo_lambda/types/runtime.py +61 -0
  577. capo_lambda/types/runtime_version_arn.py +5 -0
  578. capo_lambda/types/runtime_version_config.py +45 -0
  579. capo_lambda/types/runtime_version_error.py +35 -0
  580. capo_lambda/types/s3_bucket.py +5 -0
  581. capo_lambda/types/s3_key.py +5 -0
  582. capo_lambda/types/s3_object_version.py +5 -0
  583. capo_lambda/types/scaling_config.py +30 -0
  584. capo_lambda/types/schema_registry_event_record_format.py +17 -0
  585. capo_lambda/types/schema_registry_uri.py +5 -0
  586. capo_lambda/types/security_group_id.py +5 -0
  587. capo_lambda/types/security_group_ids.py +19 -0
  588. capo_lambda/types/self_managed_event_source.py +36 -0
  589. capo_lambda/types/self_managed_kafka_event_source_config.py +49 -0
  590. capo_lambda/types/send_durable_execution_callback_failure_request.py +35 -0
  591. capo_lambda/types/send_durable_execution_callback_failure_response.py +18 -0
  592. capo_lambda/types/send_durable_execution_callback_heartbeat_request.py +24 -0
  593. capo_lambda/types/send_durable_execution_callback_heartbeat_response.py +18 -0
  594. capo_lambda/types/send_durable_execution_callback_success_request.py +41 -0
  595. capo_lambda/types/send_durable_execution_callback_success_response.py +18 -0
  596. capo_lambda/types/sensitive_string.py +5 -0
  597. capo_lambda/types/signing_profile_version_arns.py +17 -0
  598. capo_lambda/types/snap_start.py +36 -0
  599. capo_lambda/types/snap_start_apply_on.py +17 -0
  600. capo_lambda/types/snap_start_optimization_status.py +17 -0
  601. capo_lambda/types/snap_start_response.py +57 -0
  602. capo_lambda/types/source_access_configuration.py +41 -0
  603. capo_lambda/types/source_access_configurations.py +29 -0
  604. capo_lambda/types/source_access_type.py +23 -0
  605. capo_lambda/types/source_owner.py +5 -0
  606. capo_lambda/types/stack_trace_entries.py +19 -0
  607. capo_lambda/types/stack_trace_entry.py +5 -0
  608. capo_lambda/types/state.py +23 -0
  609. capo_lambda/types/state_reason.py +5 -0
  610. capo_lambda/types/state_reason_code.py +53 -0
  611. capo_lambda/types/statement_id.py +5 -0
  612. capo_lambda/types/step_details.py +68 -0
  613. capo_lambda/types/step_failed_details.py +51 -0
  614. capo_lambda/types/step_options.py +30 -0
  615. capo_lambda/types/step_started_details.py +18 -0
  616. capo_lambda/types/step_succeeded_details.py +51 -0
  617. capo_lambda/types/stop_durable_execution_request.py +35 -0
  618. capo_lambda/types/stop_durable_execution_response.py +41 -0
  619. capo_lambda/types/string.py +5 -0
  620. capo_lambda/types/string_list.py +17 -0
  621. capo_lambda/types/subnet_id.py +5 -0
  622. capo_lambda/types/subnet_ids.py +17 -0
  623. capo_lambda/types/system_log_level.py +18 -0
  624. capo_lambda/types/tag_key.py +5 -0
  625. capo_lambda/types/tag_key_list.py +17 -0
  626. capo_lambda/types/tag_resource_request.py +38 -0
  627. capo_lambda/types/tag_value.py +5 -0
  628. capo_lambda/types/taggable_resource.py +5 -0
  629. capo_lambda/types/tags.py +26 -0
  630. capo_lambda/types/tags_error.py +39 -0
  631. capo_lambda/types/tags_error_code.py +5 -0
  632. capo_lambda/types/tags_error_message.py +5 -0
  633. capo_lambda/types/target_tracking_scaling_policy.py +53 -0
  634. capo_lambda/types/tenancy_config.py +41 -0
  635. capo_lambda/types/tenant_id.py +5 -0
  636. capo_lambda/types/tenant_isolation_mode.py +14 -0
  637. capo_lambda/types/throttle_reason.py +21 -0
  638. capo_lambda/types/timeout.py +5 -0
  639. capo_lambda/types/timestamp.py +5 -0
  640. capo_lambda/types/topic.py +5 -0
  641. capo_lambda/types/topics.py +17 -0
  642. capo_lambda/types/trace_header.py +28 -0
  643. capo_lambda/types/tracing_config.py +32 -0
  644. capo_lambda/types/tracing_config_response.py +32 -0
  645. capo_lambda/types/tracing_mode.py +17 -0
  646. capo_lambda/types/truncated.py +5 -0
  647. capo_lambda/types/tumbling_window_in_seconds.py +5 -0
  648. capo_lambda/types/unqualified_function_name.py +5 -0
  649. capo_lambda/types/unreserved_concurrent_executions.py +5 -0
  650. capo_lambda/types/untag_resource_request.py +27 -0
  651. capo_lambda/types/update_alias_request.py +71 -0
  652. capo_lambda/types/update_capacity_provider_request.py +47 -0
  653. capo_lambda/types/update_capacity_provider_response.py +41 -0
  654. capo_lambda/types/update_code_signing_config_request.py +73 -0
  655. capo_lambda/types/update_code_signing_config_response.py +43 -0
  656. capo_lambda/types/update_event_source_mapping_request.py +326 -0
  657. capo_lambda/types/update_function_code_request.py +129 -0
  658. capo_lambda/types/update_function_configuration_request.py +278 -0
  659. capo_lambda/types/update_function_event_invoke_config_request.py +66 -0
  660. capo_lambda/types/update_function_url_config_request.py +72 -0
  661. capo_lambda/types/update_function_url_config_response.py +104 -0
  662. capo_lambda/types/update_runtime_on.py +18 -0
  663. capo_lambda/types/uri.py +5 -0
  664. capo_lambda/types/version.py +5 -0
  665. capo_lambda/types/version_with_latest_published.py +5 -0
  666. capo_lambda/types/vpc_config.py +64 -0
  667. capo_lambda/types/vpc_config_response.py +71 -0
  668. capo_lambda/types/vpc_id.py +5 -0
  669. capo_lambda/types/wait_cancelled_details.py +32 -0
  670. capo_lambda/types/wait_details.py +42 -0
  671. capo_lambda/types/wait_options.py +28 -0
  672. capo_lambda/types/wait_started_details.py +51 -0
  673. capo_lambda/types/wait_succeeded_details.py +28 -0
  674. capo_lambda/types/weight.py +5 -0
  675. capo_lambda/types/working_directory.py +5 -0
  676. capo_lambda/types/x_amzn_trace_id.py +5 -0
  677. capo_lambda-0.5.0.dist-info/METADATA +97 -0
  678. capo_lambda-0.5.0.dist-info/RECORD +681 -0
  679. capo_lambda-0.5.0.dist-info/WHEEL +5 -0
  680. capo_lambda-0.5.0.dist-info/licenses/LICENSE +21 -0
  681. capo_lambda-0.5.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1411 @@
1
+ """Generated from Smithy shape ``com.amazonaws.lambda#AWSGirApiService``."""
2
+
3
+ import warnings
4
+ from collections.abc import AsyncIterator
5
+ from typing import TYPE_CHECKING, Any, Iterable, Optional
6
+
7
+ from typing_extensions import Self, TypedDict
8
+ from zapros import AsyncBaseHandler, AsyncClient
9
+
10
+ import capo_lambda._auth._signers
11
+ import capo_lambda._auth._sigv4
12
+ from capo_lambda._auth._identity import Credentials
13
+ from capo_lambda._auth._providers import (
14
+ CredentialsProvider,
15
+ IdentityProvider,
16
+ StaticAwsCredentialsProvider,
17
+ default_aws_credentials_chain,
18
+ )
19
+ from capo_lambda._auth._zapros_handler import AuthMiddleware
20
+ from capo_lambda._pagination import resolve_path as _resolve_path
21
+ from capo_lambda._resources.aws_gir_api_service.capacity_provider_resource import (
22
+ AsyncCapacityProviderResource,
23
+ )
24
+ from capo_lambda._resources.aws_gir_api_service.code_signing_config_resource import (
25
+ AsyncCodeSigningConfigResource,
26
+ )
27
+ from capo_lambda._resources.aws_gir_api_service.event_source_mapping import (
28
+ AsyncEventSourceMapping,
29
+ )
30
+ from capo_lambda._resources.aws_gir_api_service.function import AsyncFunction
31
+ from capo_lambda._resources.aws_gir_api_service.function_alias import AsyncFunctionAlias
32
+ from capo_lambda._resources.aws_gir_api_service.function_version_resource import (
33
+ AsyncFunctionVersionResource,
34
+ )
35
+ from capo_lambda._resources.aws_gir_api_service.layer_resource import AsyncLayerResource
36
+ from capo_lambda._resources.aws_gir_api_service.layer_version import AsyncLayerVersion
37
+ from capo_lambda._resources.aws_gir_api_service.permission import AsyncPermission
38
+ from capo_lambda._resources.aws_gir_api_service.provisioned_concurrency_config import (
39
+ AsyncProvisionedConcurrencyConfig,
40
+ )
41
+ from capo_lambda._resources.aws_gir_api_service.resource_policy import (
42
+ AsyncResourcePolicy,
43
+ )
44
+ from capo_lambda._services._aws_config import aaws_config
45
+ from capo_lambda._services._pipeline import (
46
+ AsyncInterceptor,
47
+ AsyncOperationOptions,
48
+ AsyncOperationRequest,
49
+ AsyncOperationResponse,
50
+ aexecute_pipeline,
51
+ aretry,
52
+ )
53
+
54
+ if TYPE_CHECKING:
55
+ import capo_lambda.types.binary_operation_payload
56
+ import capo_lambda.types.callback_id
57
+ import capo_lambda.types.checkpoint_durable_execution_request
58
+ import capo_lambda.types.checkpoint_durable_execution_response
59
+ import capo_lambda.types.checkpoint_token
60
+ import capo_lambda.types.client_token
61
+ import capo_lambda.types.delete_function_event_invoke_config_request
62
+ import capo_lambda.types.delete_function_request
63
+ import capo_lambda.types.delete_function_response
64
+ import capo_lambda.types.destination_config
65
+ import capo_lambda.types.durable_execution_arn
66
+ import capo_lambda.types.durable_execution_name
67
+ import capo_lambda.types.error_object
68
+ import capo_lambda.types.event
69
+ import capo_lambda.types.execution
70
+ import capo_lambda.types.execution_status_list
71
+ import capo_lambda.types.execution_timestamp
72
+ import capo_lambda.types.function_event_invoke_config
73
+ import capo_lambda.types.get_account_settings_request
74
+ import capo_lambda.types.get_account_settings_response
75
+ import capo_lambda.types.get_durable_execution_history_request
76
+ import capo_lambda.types.get_durable_execution_history_response
77
+ import capo_lambda.types.get_durable_execution_request
78
+ import capo_lambda.types.get_durable_execution_response
79
+ import capo_lambda.types.get_durable_execution_state_request
80
+ import capo_lambda.types.get_durable_execution_state_response
81
+ import capo_lambda.types.get_function_event_invoke_config_request
82
+ import capo_lambda.types.include_execution_data
83
+ import capo_lambda.types.item_count
84
+ import capo_lambda.types.list_durable_executions_by_function_request
85
+ import capo_lambda.types.list_durable_executions_by_function_response
86
+ import capo_lambda.types.list_function_event_invoke_configs_request
87
+ import capo_lambda.types.list_function_event_invoke_configs_response
88
+ import capo_lambda.types.list_tags_request
89
+ import capo_lambda.types.list_tags_response
90
+ import capo_lambda.types.max_function_event_invoke_config_list_items
91
+ import capo_lambda.types.maximum_event_age_in_seconds
92
+ import capo_lambda.types.maximum_retry_attempts
93
+ import capo_lambda.types.namespaced_function_name
94
+ import capo_lambda.types.numeric_latest_published_or_alias_qualifier
95
+ import capo_lambda.types.operation
96
+ import capo_lambda.types.operation_updates
97
+ import capo_lambda.types.put_function_event_invoke_config_request
98
+ import capo_lambda.types.reverse_order
99
+ import capo_lambda.types.send_durable_execution_callback_failure_request
100
+ import capo_lambda.types.send_durable_execution_callback_failure_response
101
+ import capo_lambda.types.send_durable_execution_callback_heartbeat_request
102
+ import capo_lambda.types.send_durable_execution_callback_heartbeat_response
103
+ import capo_lambda.types.send_durable_execution_callback_success_request
104
+ import capo_lambda.types.send_durable_execution_callback_success_response
105
+ import capo_lambda.types.stop_durable_execution_request
106
+ import capo_lambda.types.stop_durable_execution_response
107
+ import capo_lambda.types.string
108
+ import capo_lambda.types.tag_key_list
109
+ import capo_lambda.types.tag_resource_request
110
+ import capo_lambda.types.taggable_resource
111
+ import capo_lambda.types.tags
112
+ import capo_lambda.types.untag_resource_request
113
+ import capo_lambda.types.update_function_event_invoke_config_request
114
+
115
+
116
+ class AsyncLambdaClientConfig(TypedDict, total=False, closed=True):
117
+ operation_interceptors: Iterable[AsyncInterceptor[Any, Any]]
118
+ retry_max_attempts: int | None
119
+ region: str | None
120
+ use_dual_stack: bool | None
121
+ use_fips: bool | None
122
+ endpoint: str | None
123
+ credentials_provider: IdentityProvider[Credentials] | None
124
+
125
+
126
+ class AsyncLambdaClient:
127
+ """A client for the ``Lambda`` service.
128
+
129
+ Args:
130
+ http_handler: HTTP handler for sending requests. If not provided, creates a default handler.
131
+ operation_interceptors: Interceptors that wrap every operation call. If not provided, defaults to an empty list.
132
+ retry_max_attempts: Maximum number of times to retry a failed operation. Defaults to 3.
133
+ region: The value of the ``AWS::Region`` endpoint parameter.
134
+ use_dual_stack: The value of the ``AWS::UseDualStack`` endpoint parameter.
135
+ use_fips: The value of the ``AWS::UseFIPS`` endpoint parameter.
136
+ endpoint: The value of the ``SDK::Endpoint`` endpoint parameter.
137
+ credentials: AWS credentials for request signing.
138
+ credentials_provider: Provider that resolves AWS credentials. Takes precedence over ``credentials``.
139
+ """
140
+
141
+ def __init__(
142
+ self,
143
+ http_handler: AsyncBaseHandler | None = None,
144
+ operation_interceptors: Iterable[AsyncInterceptor[Any, Any]] | None = None,
145
+ retry_max_attempts: int | None = None,
146
+ region: str | None = None,
147
+ use_dual_stack: bool | None = None,
148
+ use_fips: bool | None = None,
149
+ endpoint: str | None = None,
150
+ credentials: Credentials | None = None,
151
+ credentials_provider: CredentialsProvider | None = None,
152
+ ):
153
+ self._client = AsyncClient(http_handler).wrap_with_middleware(
154
+ lambda next: AuthMiddleware(next)
155
+ )
156
+ if credentials is not None and credentials_provider is not None:
157
+ warnings.warn(
158
+ "Both credentials and credentials_provider given; provider takes precedence"
159
+ )
160
+ resolved_credentials_provider: IdentityProvider[Credentials] | None = (
161
+ credentials_provider
162
+ )
163
+ if resolved_credentials_provider is None and credentials is not None:
164
+ resolved_credentials_provider = StaticAwsCredentialsProvider(credentials)
165
+ if resolved_credentials_provider is None and credentials is None:
166
+ resolved_credentials_provider = default_aws_credentials_chain(
167
+ AsyncClient(http_handler)
168
+ )
169
+ self._config = AsyncLambdaClientConfig(
170
+ {
171
+ "operation_interceptors": operation_interceptors or [],
172
+ "retry_max_attempts": retry_max_attempts,
173
+ "region": region,
174
+ "use_dual_stack": use_dual_stack,
175
+ "use_fips": use_fips,
176
+ "endpoint": endpoint,
177
+ "credentials_provider": resolved_credentials_provider,
178
+ }
179
+ )
180
+
181
+ # resources
182
+ self.capacity_provider_resource = AsyncCapacityProviderResource(self)
183
+ self.code_signing_config_resource = AsyncCodeSigningConfigResource(self)
184
+ self.event_source_mapping = AsyncEventSourceMapping(self)
185
+ self.function = AsyncFunction(self)
186
+ self.function_alias = AsyncFunctionAlias(self)
187
+ self.function_version_resource = AsyncFunctionVersionResource(self)
188
+ self.layer_resource = AsyncLayerResource(self)
189
+ self.layer_version = AsyncLayerVersion(self)
190
+ self.permission = AsyncPermission(self)
191
+ self.provisioned_concurrency_config = AsyncProvisionedConcurrencyConfig(self)
192
+ self.resource_policy = AsyncResourcePolicy(self)
193
+
194
+ def operation_options(
195
+ self, config_overrides: Optional[AsyncLambdaClientConfig] = None
196
+ ) -> tuple[Iterable[AsyncInterceptor[Any, Any]], AsyncOperationOptions]:
197
+ overrides: AsyncLambdaClientConfig = config_overrides or {}
198
+ interceptors_: list[AsyncInterceptor[Any, Any]] = [
199
+ *overrides.get(
200
+ "operation_interceptors", self._config.get("operation_interceptors", [])
201
+ ),
202
+ aaws_config(),
203
+ aretry(),
204
+ ]
205
+ options_: AsyncOperationOptions = AsyncOperationOptions(
206
+ client=self._client,
207
+ retry_max_attempts=overrides.get(
208
+ "retry_max_attempts", self._config.get("retry_max_attempts")
209
+ ),
210
+ region=overrides.get("region", self._config.get("region")),
211
+ use_dual_stack=overrides.get(
212
+ "use_dual_stack", self._config.get("use_dual_stack")
213
+ ),
214
+ use_fips=overrides.get("use_fips", self._config.get("use_fips")),
215
+ endpoint=overrides.get("endpoint", self._config.get("endpoint")),
216
+ credentials_provider=overrides.get(
217
+ "credentials_provider", self._config.get("credentials_provider")
218
+ ),
219
+ )
220
+ return interceptors_, options_
221
+
222
+ async def checkpoint_durable_execution(
223
+ self,
224
+ durable_execution_arn: "capo_lambda.types.durable_execution_arn.DurableExecutionArn",
225
+ checkpoint_token: "capo_lambda.types.checkpoint_token.CheckpointToken",
226
+ *,
227
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
228
+ updates: Optional[
229
+ "capo_lambda.types.operation_updates.OperationUpdates"
230
+ ] = None,
231
+ client_token: Optional["capo_lambda.types.client_token.ClientToken"] = None,
232
+ ) -> "capo_lambda.types.checkpoint_durable_execution_response.CheckpointDurableExecutionResponse":
233
+ r"""<p>Saves the progress of a <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html\">durable function</a> execution during runtime. This API is used by the Lambda durable functions SDK to checkpoint completed steps and schedule asynchronous operations. You typically don't need to call this API directly as the SDK handles checkpointing automatically.</p> <p>Each checkpoint operation consumes the current checkpoint token and returns a new one for the next checkpoint. This ensures that checkpoints are applied in the correct order and prevents duplicate or out-of-order state updates.</p>
234
+
235
+ Args:
236
+ durable_execution_arn: <p>The Amazon Resource Name (ARN) of the durable execution.</p>
237
+ checkpoint_token: <p>A unique token that identifies the current checkpoint state. This token is provided by the Lambda runtime and must be used to ensure checkpoints are applied in the correct order. Each checkpoint operation consumes this token and returns a new one.</p>
238
+ updates: <p>An array of state updates to apply during this checkpoint. Each update represents a change to the execution state, such as completing a step, starting a callback, or scheduling a timer. Updates are applied atomically as part of the checkpoint operation.</p>
239
+ client_token: <p>An optional idempotency token to ensure that duplicate checkpoint requests are handled correctly. If provided, Lambda uses this token to detect and handle duplicate requests within a 15-minute window.</p>
240
+
241
+ Raises:
242
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
243
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
244
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
245
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
246
+ """
247
+
248
+ async def _handler(
249
+ req: "AsyncOperationRequest[capo_lambda.types.checkpoint_durable_execution_request.CheckpointDurableExecutionRequest]",
250
+ ) -> AsyncOperationResponse[
251
+ "capo_lambda.types.checkpoint_durable_execution_response.CheckpointDurableExecutionResponse"
252
+ ]:
253
+ import capo_lambda._operations.aws_gir_api_service.checkpoint_durable_execution
254
+
255
+ (
256
+ output,
257
+ http_response,
258
+ ) = await capo_lambda._operations.aws_gir_api_service.checkpoint_durable_execution.async_checkpoint_durable_execution(
259
+ req.options, req.input
260
+ )
261
+ return AsyncOperationResponse(output=output, response=http_response)
262
+
263
+ interceptors_, options_ = self.operation_options(config_overrides)
264
+ input_: capo_lambda.types.checkpoint_durable_execution_request.CheckpointDurableExecutionRequest = {} # type: ignore[typeddict-item]
265
+ input_["durable_execution_arn"] = durable_execution_arn
266
+ input_["checkpoint_token"] = checkpoint_token
267
+ if updates is not None:
268
+ input_["updates"] = updates
269
+ if client_token is not None:
270
+ input_["client_token"] = client_token
271
+
272
+ response = await aexecute_pipeline(
273
+ AsyncOperationRequest(input=input_, options=options_),
274
+ handler=_handler,
275
+ interceptors=list(interceptors_),
276
+ )
277
+ return response.output
278
+
279
+ async def delete_function(
280
+ self,
281
+ function_name: "capo_lambda.types.namespaced_function_name.NamespacedFunctionName",
282
+ *,
283
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
284
+ qualifier: Optional[
285
+ "capo_lambda.types.numeric_latest_published_or_alias_qualifier.NumericLatestPublishedOrAliasQualifier"
286
+ ] = None,
287
+ ) -> "capo_lambda.types.delete_function_response.DeleteFunctionResponse":
288
+ r"""<p>Deletes a Lambda function. To delete a specific function version, use the <code>Qualifier</code> parameter. Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit permissions for <a>DeleteAlias</a>.</p> <note> <p>A deleted Lambda function cannot be recovered. Ensure that you specify the correct function name and version before deleting.</p> </note> <p>To delete Lambda event source mappings that invoke a function, use <a>DeleteEventSourceMapping</a>. For Amazon Web Services services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.</p>
289
+
290
+ Args:
291
+ function_name: <p>The name or ARN of the Lambda function or version.</p> <p class=\"title\"> <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> – <code>my-function</code> (name-only), <code>my-function:1</code> (with version).</p> </li> <li> <p> <b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p> </li> <li> <p> <b>Partial ARN</b> – <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
292
+ qualifier: <p>Specify a version to delete. You can't delete a version that an alias references.</p>
293
+
294
+ Raises:
295
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
296
+ capo_lambda.errors.resource_conflict_exception.ResourceConflictException: <p>The resource already exists, or another operation is in progress.</p>
297
+ capo_lambda.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request does not exist.</p>
298
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
299
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
300
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
301
+
302
+ Examples:
303
+ To delete a version of a Lambda function
304
+ The following example deletes version 1 of a Lambda function named my-function.
305
+
306
+ >>> await client.delete_function(function_name='my-function', qualifier='1')
307
+ """
308
+
309
+ async def _handler(
310
+ req: "AsyncOperationRequest[capo_lambda.types.delete_function_request.DeleteFunctionRequest]",
311
+ ) -> AsyncOperationResponse[
312
+ "capo_lambda.types.delete_function_response.DeleteFunctionResponse"
313
+ ]:
314
+ import capo_lambda._operations.aws_gir_api_service.delete_function
315
+
316
+ (
317
+ output,
318
+ http_response,
319
+ ) = await capo_lambda._operations.aws_gir_api_service.delete_function.async_delete_function(
320
+ req.options, req.input
321
+ )
322
+ return AsyncOperationResponse(output=output, response=http_response)
323
+
324
+ interceptors_, options_ = self.operation_options(config_overrides)
325
+ input_: capo_lambda.types.delete_function_request.DeleteFunctionRequest = {} # type: ignore[typeddict-item]
326
+ input_["function_name"] = function_name
327
+ if qualifier is not None:
328
+ input_["qualifier"] = qualifier
329
+
330
+ response = await aexecute_pipeline(
331
+ AsyncOperationRequest(input=input_, options=options_),
332
+ handler=_handler,
333
+ interceptors=list(interceptors_),
334
+ )
335
+ return response.output
336
+
337
+ async def delete_function_event_invoke_config(
338
+ self,
339
+ function_name: "capo_lambda.types.namespaced_function_name.NamespacedFunctionName",
340
+ *,
341
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
342
+ qualifier: Optional[
343
+ "capo_lambda.types.numeric_latest_published_or_alias_qualifier.NumericLatestPublishedOrAliasQualifier"
344
+ ] = None,
345
+ ) -> None:
346
+ r"""<p>Deletes the configuration for asynchronous invocation for a function, version, or alias.</p> <p>To configure options for asynchronous invocation, use <a>PutFunctionEventInvokeConfig</a>.</p>
347
+
348
+ Args:
349
+ function_name: <p>The name or ARN of the Lambda function, version, or alias.</p> <p class=\"title\"> <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> - <code>my-function</code> (name-only), <code>my-function:v1</code> (with alias).</p> </li> <li> <p> <b>Function ARN</b> - <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p> </li> <li> <p> <b>Partial ARN</b> - <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
350
+ qualifier: <p>A version number or alias name.</p>
351
+
352
+ Raises:
353
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
354
+ capo_lambda.errors.resource_conflict_exception.ResourceConflictException: <p>The resource already exists, or another operation is in progress.</p>
355
+ capo_lambda.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request does not exist.</p>
356
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
357
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
358
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
359
+
360
+ Examples:
361
+ To delete an asynchronous invocation configuration
362
+ The following example deletes the asynchronous invocation configuration for the GREEN alias of a function named my-function.
363
+
364
+ >>> await client.delete_function_event_invoke_config(function_name='my-function', qualifier='GREEN')
365
+ """
366
+
367
+ async def _handler(
368
+ req: "AsyncOperationRequest[capo_lambda.types.delete_function_event_invoke_config_request.DeleteFunctionEventInvokeConfigRequest]",
369
+ ) -> AsyncOperationResponse[None]:
370
+ import capo_lambda._operations.aws_gir_api_service.delete_function_event_invoke_config
371
+
372
+ (
373
+ output,
374
+ http_response,
375
+ ) = await capo_lambda._operations.aws_gir_api_service.delete_function_event_invoke_config.async_delete_function_event_invoke_config(
376
+ req.options, req.input
377
+ )
378
+ return AsyncOperationResponse(output=output, response=http_response)
379
+
380
+ interceptors_, options_ = self.operation_options(config_overrides)
381
+ input_: capo_lambda.types.delete_function_event_invoke_config_request.DeleteFunctionEventInvokeConfigRequest = {} # type: ignore[typeddict-item]
382
+ input_["function_name"] = function_name
383
+ if qualifier is not None:
384
+ input_["qualifier"] = qualifier
385
+
386
+ response = await aexecute_pipeline(
387
+ AsyncOperationRequest(input=input_, options=options_),
388
+ handler=_handler,
389
+ interceptors=list(interceptors_),
390
+ )
391
+ return response.output
392
+
393
+ async def get_account_settings(
394
+ self, *, config_overrides: Optional[AsyncLambdaClientConfig] = None
395
+ ) -> "capo_lambda.types.get_account_settings_response.GetAccountSettingsResponse":
396
+ r"""<p>Retrieves details about your account's <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/limits.html\">limits</a> and usage in an Amazon Web Services Region.</p>
397
+
398
+ Raises:
399
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
400
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
401
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
402
+
403
+ Examples:
404
+ To get account settings
405
+ This operation takes no parameters and returns details about storage and concurrency quotas in the current Region.
406
+
407
+ >>> await client.get_account_settings()
408
+ """
409
+
410
+ async def _handler(
411
+ req: "AsyncOperationRequest[capo_lambda.types.get_account_settings_request.GetAccountSettingsRequest]",
412
+ ) -> AsyncOperationResponse[
413
+ "capo_lambda.types.get_account_settings_response.GetAccountSettingsResponse"
414
+ ]:
415
+ import capo_lambda._operations.aws_gir_api_service.get_account_settings
416
+
417
+ (
418
+ output,
419
+ http_response,
420
+ ) = await capo_lambda._operations.aws_gir_api_service.get_account_settings.async_get_account_settings(
421
+ req.options, req.input
422
+ )
423
+ return AsyncOperationResponse(output=output, response=http_response)
424
+
425
+ interceptors_, options_ = self.operation_options(config_overrides)
426
+ input_: capo_lambda.types.get_account_settings_request.GetAccountSettingsRequest = {} # type: ignore[typeddict-item]
427
+
428
+ response = await aexecute_pipeline(
429
+ AsyncOperationRequest(input=input_, options=options_),
430
+ handler=_handler,
431
+ interceptors=list(interceptors_),
432
+ )
433
+ return response.output
434
+
435
+ async def get_durable_execution(
436
+ self,
437
+ durable_execution_arn: "capo_lambda.types.durable_execution_arn.DurableExecutionArn",
438
+ *,
439
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
440
+ ) -> "capo_lambda.types.get_durable_execution_response.GetDurableExecutionResponse":
441
+ r"""<p>Retrieves detailed information about a specific <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html\">durable execution</a>, including its current status, input payload, result or error information, and execution metadata such as start time and usage statistics.</p>
442
+
443
+ Args:
444
+ durable_execution_arn: <p>The Amazon Resource Name (ARN) of the durable execution.</p>
445
+
446
+ Raises:
447
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
448
+ capo_lambda.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request does not exist.</p>
449
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
450
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
451
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
452
+ """
453
+
454
+ async def _handler(
455
+ req: "AsyncOperationRequest[capo_lambda.types.get_durable_execution_request.GetDurableExecutionRequest]",
456
+ ) -> AsyncOperationResponse[
457
+ "capo_lambda.types.get_durable_execution_response.GetDurableExecutionResponse"
458
+ ]:
459
+ import capo_lambda._operations.aws_gir_api_service.get_durable_execution
460
+
461
+ (
462
+ output,
463
+ http_response,
464
+ ) = await capo_lambda._operations.aws_gir_api_service.get_durable_execution.async_get_durable_execution(
465
+ req.options, req.input
466
+ )
467
+ return AsyncOperationResponse(output=output, response=http_response)
468
+
469
+ interceptors_, options_ = self.operation_options(config_overrides)
470
+ input_: capo_lambda.types.get_durable_execution_request.GetDurableExecutionRequest = {} # type: ignore[typeddict-item]
471
+ input_["durable_execution_arn"] = durable_execution_arn
472
+
473
+ response = await aexecute_pipeline(
474
+ AsyncOperationRequest(input=input_, options=options_),
475
+ handler=_handler,
476
+ interceptors=list(interceptors_),
477
+ )
478
+ return response.output
479
+
480
+ async def get_durable_execution_history(
481
+ self,
482
+ durable_execution_arn: "capo_lambda.types.durable_execution_arn.DurableExecutionArn",
483
+ *,
484
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
485
+ include_execution_data: Optional[
486
+ "capo_lambda.types.include_execution_data.IncludeExecutionData"
487
+ ] = None,
488
+ max_items: Optional["capo_lambda.types.item_count.ItemCount"] = None,
489
+ marker: Optional["capo_lambda.types.string.String"] = None,
490
+ reverse_order: Optional["capo_lambda.types.reverse_order.ReverseOrder"] = None,
491
+ ) -> "capo_lambda.types.get_durable_execution_history_response.GetDurableExecutionHistoryResponse":
492
+ r"""<p>Retrieves the execution history for a <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html\">durable execution</a>, showing all the steps, callbacks, and events that occurred during the execution. This provides a detailed audit trail of the execution's progress over time.</p> <p>The history is available while the execution is running and for a retention period after it completes (1-90 days, default 30 days). You can control whether to include execution data such as step results and callback payloads.</p>
493
+
494
+ Args:
495
+ durable_execution_arn: <p>The Amazon Resource Name (ARN) of the durable execution.</p>
496
+ include_execution_data: <p>Specifies whether to include execution data such as step results and callback payloads in the history events. Set to <code>true</code> to include data, or <code>false</code> to exclude it for a more compact response. The default is <code>true</code>.</p>
497
+ max_items: <p>The maximum number of history events to return per call. You can use <code>Marker</code> to retrieve additional pages of results. The default is 100 and the maximum allowed is 1000. A value of 0 uses the default.</p>
498
+ marker: <p>If <code>NextMarker</code> was returned from a previous request, use this value to retrieve the next page of results. Each pagination token expires after 24 hours.</p>
499
+ reverse_order: <p>When set to <code>true</code>, returns the history events in reverse chronological order (newest first). By default, events are returned in chronological order (oldest first).</p>
500
+
501
+ Raises:
502
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
503
+ capo_lambda.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request does not exist.</p>
504
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
505
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
506
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
507
+ """
508
+
509
+ async def _handler(
510
+ req: "AsyncOperationRequest[capo_lambda.types.get_durable_execution_history_request.GetDurableExecutionHistoryRequest]",
511
+ ) -> AsyncOperationResponse[
512
+ "capo_lambda.types.get_durable_execution_history_response.GetDurableExecutionHistoryResponse"
513
+ ]:
514
+ import capo_lambda._operations.aws_gir_api_service.get_durable_execution_history
515
+
516
+ (
517
+ output,
518
+ http_response,
519
+ ) = await capo_lambda._operations.aws_gir_api_service.get_durable_execution_history.async_get_durable_execution_history(
520
+ req.options, req.input
521
+ )
522
+ return AsyncOperationResponse(output=output, response=http_response)
523
+
524
+ interceptors_, options_ = self.operation_options(config_overrides)
525
+ input_: capo_lambda.types.get_durable_execution_history_request.GetDurableExecutionHistoryRequest = {} # type: ignore[typeddict-item]
526
+ input_["durable_execution_arn"] = durable_execution_arn
527
+ if include_execution_data is not None:
528
+ input_["include_execution_data"] = include_execution_data
529
+ if max_items is not None:
530
+ input_["max_items"] = max_items
531
+ if marker is not None:
532
+ input_["marker"] = marker
533
+ if reverse_order is not None:
534
+ input_["reverse_order"] = reverse_order
535
+
536
+ response = await aexecute_pipeline(
537
+ AsyncOperationRequest(input=input_, options=options_),
538
+ handler=_handler,
539
+ interceptors=list(interceptors_),
540
+ )
541
+ return response.output
542
+
543
+ async def iter_get_durable_execution_history(
544
+ self,
545
+ durable_execution_arn: "capo_lambda.types.durable_execution_arn.DurableExecutionArn",
546
+ *,
547
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
548
+ include_execution_data: Optional[
549
+ "capo_lambda.types.include_execution_data.IncludeExecutionData"
550
+ ] = None,
551
+ max_items: Optional["capo_lambda.types.item_count.ItemCount"] = None,
552
+ marker: Optional["capo_lambda.types.string.String"] = None,
553
+ reverse_order: Optional["capo_lambda.types.reverse_order.ReverseOrder"] = None,
554
+ ) -> "AsyncIterator[capo_lambda.types.event.Event]":
555
+ _token = marker
556
+ while True:
557
+ _response = await self.get_durable_execution_history(
558
+ durable_execution_arn,
559
+ config_overrides=config_overrides,
560
+ include_execution_data=include_execution_data,
561
+ max_items=max_items,
562
+ marker=_token,
563
+ reverse_order=reverse_order,
564
+ )
565
+ _page = _resolve_path(_response, ("events",))
566
+ for _item in _page or []:
567
+ yield _item
568
+ _token = _resolve_path(_response, ("next_marker",))
569
+ if not _token:
570
+ break
571
+
572
+ async def get_durable_execution_state(
573
+ self,
574
+ durable_execution_arn: "capo_lambda.types.durable_execution_arn.DurableExecutionArn",
575
+ checkpoint_token: "capo_lambda.types.checkpoint_token.CheckpointToken",
576
+ *,
577
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
578
+ marker: Optional["capo_lambda.types.string.String"] = None,
579
+ max_items: Optional["capo_lambda.types.item_count.ItemCount"] = None,
580
+ ) -> "capo_lambda.types.get_durable_execution_state_response.GetDurableExecutionStateResponse":
581
+ r"""<p>Retrieves the current execution state required for the replay process during <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html\">durable function</a> execution. This API is used by the Lambda durable functions SDK to get state information needed for replay. You typically don't need to call this API directly as the SDK handles state management automatically.</p> <p>The response contains operations ordered by start sequence number in ascending order. Completed operations with children don't include child operation details since they don't need to be replayed.</p>
582
+
583
+ Args:
584
+ durable_execution_arn: <p>The Amazon Resource Name (ARN) of the durable execution.</p>
585
+ checkpoint_token: <p>A checkpoint token that identifies the current state of the execution. This token is provided by the Lambda runtime and ensures that state retrieval is consistent with the current execution context.</p>
586
+ marker: <p>If <code>NextMarker</code> was returned from a previous request, use this value to retrieve the next page of operations. Each pagination token expires after 24 hours.</p>
587
+ max_items: <p>The maximum number of operations to return per call. You can use <code>Marker</code> to retrieve additional pages of results. The default is 100 and the maximum allowed is 1000. A value of 0 uses the default.</p>
588
+
589
+ Raises:
590
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
591
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
592
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
593
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
594
+ """
595
+
596
+ async def _handler(
597
+ req: "AsyncOperationRequest[capo_lambda.types.get_durable_execution_state_request.GetDurableExecutionStateRequest]",
598
+ ) -> AsyncOperationResponse[
599
+ "capo_lambda.types.get_durable_execution_state_response.GetDurableExecutionStateResponse"
600
+ ]:
601
+ import capo_lambda._operations.aws_gir_api_service.get_durable_execution_state
602
+
603
+ (
604
+ output,
605
+ http_response,
606
+ ) = await capo_lambda._operations.aws_gir_api_service.get_durable_execution_state.async_get_durable_execution_state(
607
+ req.options, req.input
608
+ )
609
+ return AsyncOperationResponse(output=output, response=http_response)
610
+
611
+ interceptors_, options_ = self.operation_options(config_overrides)
612
+ input_: capo_lambda.types.get_durable_execution_state_request.GetDurableExecutionStateRequest = {} # type: ignore[typeddict-item]
613
+ input_["durable_execution_arn"] = durable_execution_arn
614
+ input_["checkpoint_token"] = checkpoint_token
615
+ if marker is not None:
616
+ input_["marker"] = marker
617
+ if max_items is not None:
618
+ input_["max_items"] = max_items
619
+
620
+ response = await aexecute_pipeline(
621
+ AsyncOperationRequest(input=input_, options=options_),
622
+ handler=_handler,
623
+ interceptors=list(interceptors_),
624
+ )
625
+ return response.output
626
+
627
+ async def iter_get_durable_execution_state(
628
+ self,
629
+ durable_execution_arn: "capo_lambda.types.durable_execution_arn.DurableExecutionArn",
630
+ checkpoint_token: "capo_lambda.types.checkpoint_token.CheckpointToken",
631
+ *,
632
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
633
+ marker: Optional["capo_lambda.types.string.String"] = None,
634
+ max_items: Optional["capo_lambda.types.item_count.ItemCount"] = None,
635
+ ) -> "AsyncIterator[capo_lambda.types.operation.Operation]":
636
+ _token = marker
637
+ while True:
638
+ _response = await self.get_durable_execution_state(
639
+ durable_execution_arn,
640
+ checkpoint_token,
641
+ config_overrides=config_overrides,
642
+ marker=_token,
643
+ max_items=max_items,
644
+ )
645
+ _page = _resolve_path(_response, ("operations",))
646
+ for _item in _page or []:
647
+ yield _item
648
+ _token = _resolve_path(_response, ("next_marker",))
649
+ if not _token:
650
+ break
651
+
652
+ async def get_function_event_invoke_config(
653
+ self,
654
+ function_name: "capo_lambda.types.namespaced_function_name.NamespacedFunctionName",
655
+ *,
656
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
657
+ qualifier: Optional[
658
+ "capo_lambda.types.numeric_latest_published_or_alias_qualifier.NumericLatestPublishedOrAliasQualifier"
659
+ ] = None,
660
+ ) -> "capo_lambda.types.function_event_invoke_config.FunctionEventInvokeConfig":
661
+ r"""<p>Retrieves the configuration for asynchronous invocation for a function, version, or alias.</p> <p>To configure options for asynchronous invocation, use <a>PutFunctionEventInvokeConfig</a>.</p>
662
+
663
+ Args:
664
+ function_name: <p>The name or ARN of the Lambda function, version, or alias.</p> <p class=\"title\"> <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> - <code>my-function</code> (name-only), <code>my-function:v1</code> (with alias).</p> </li> <li> <p> <b>Function ARN</b> - <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p> </li> <li> <p> <b>Partial ARN</b> - <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
665
+ qualifier: <p>A version number or alias name.</p>
666
+
667
+ Raises:
668
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
669
+ capo_lambda.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request does not exist.</p>
670
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
671
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
672
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
673
+
674
+ Examples:
675
+ To get an asynchronous invocation configuration
676
+ The following example returns the asynchronous invocation configuration for the BLUE alias of a function named my-function.
677
+
678
+ >>> await client.get_function_event_invoke_config(function_name='my-function', qualifier='BLUE')
679
+ """
680
+
681
+ async def _handler(
682
+ req: "AsyncOperationRequest[capo_lambda.types.get_function_event_invoke_config_request.GetFunctionEventInvokeConfigRequest]",
683
+ ) -> AsyncOperationResponse[
684
+ "capo_lambda.types.function_event_invoke_config.FunctionEventInvokeConfig"
685
+ ]:
686
+ import capo_lambda._operations.aws_gir_api_service.get_function_event_invoke_config
687
+
688
+ (
689
+ output,
690
+ http_response,
691
+ ) = await capo_lambda._operations.aws_gir_api_service.get_function_event_invoke_config.async_get_function_event_invoke_config(
692
+ req.options, req.input
693
+ )
694
+ return AsyncOperationResponse(output=output, response=http_response)
695
+
696
+ interceptors_, options_ = self.operation_options(config_overrides)
697
+ input_: capo_lambda.types.get_function_event_invoke_config_request.GetFunctionEventInvokeConfigRequest = {} # type: ignore[typeddict-item]
698
+ input_["function_name"] = function_name
699
+ if qualifier is not None:
700
+ input_["qualifier"] = qualifier
701
+
702
+ response = await aexecute_pipeline(
703
+ AsyncOperationRequest(input=input_, options=options_),
704
+ handler=_handler,
705
+ interceptors=list(interceptors_),
706
+ )
707
+ return response.output
708
+
709
+ async def list_durable_executions_by_function(
710
+ self,
711
+ function_name: "capo_lambda.types.namespaced_function_name.NamespacedFunctionName",
712
+ *,
713
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
714
+ qualifier: Optional[
715
+ "capo_lambda.types.numeric_latest_published_or_alias_qualifier.NumericLatestPublishedOrAliasQualifier"
716
+ ] = None,
717
+ durable_execution_name: Optional[
718
+ "capo_lambda.types.durable_execution_name.DurableExecutionName"
719
+ ] = None,
720
+ statuses: Optional[
721
+ "capo_lambda.types.execution_status_list.ExecutionStatusList"
722
+ ] = None,
723
+ started_after: Optional[
724
+ "capo_lambda.types.execution_timestamp.ExecutionTimestamp"
725
+ ] = None,
726
+ started_before: Optional[
727
+ "capo_lambda.types.execution_timestamp.ExecutionTimestamp"
728
+ ] = None,
729
+ reverse_order: Optional["capo_lambda.types.reverse_order.ReverseOrder"] = None,
730
+ marker: Optional["capo_lambda.types.string.String"] = None,
731
+ max_items: Optional["capo_lambda.types.item_count.ItemCount"] = None,
732
+ ) -> "capo_lambda.types.list_durable_executions_by_function_response.ListDurableExecutionsByFunctionResponse":
733
+ r"""<p>Returns a list of <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html\">durable executions</a> for a specified Lambda function. You can filter the results by execution name, status, and start time range. This API supports pagination for large result sets.</p>
734
+
735
+ Args:
736
+ function_name: <p>The name or ARN of the Lambda function. You can specify a function name, a partial ARN, or a full ARN.</p>
737
+ qualifier: <p>The function version or alias. If not specified, lists executions for the $LATEST version.</p>
738
+ durable_execution_name: <p>Filter executions by name. Only executions with names that matches this string are returned.</p>
739
+ statuses: <p>Filter executions by status. Valid values: RUNNING, SUCCEEDED, FAILED, TIMED_OUT, STOPPED.</p>
740
+ started_after: <p>Filter executions that started after this timestamp (ISO 8601 format).</p>
741
+ started_before: <p>Filter executions that started before this timestamp (ISO 8601 format).</p>
742
+ reverse_order: <p>Set to true to return results in reverse chronological order (newest first). Default is false.</p>
743
+ marker: <p>Pagination token from a previous request to continue retrieving results.</p>
744
+ max_items: <p>Maximum number of executions to return (1-1000). Default is 100.</p>
745
+
746
+ Raises:
747
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
748
+ capo_lambda.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request does not exist.</p>
749
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
750
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
751
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
752
+ """
753
+
754
+ async def _handler(
755
+ req: "AsyncOperationRequest[capo_lambda.types.list_durable_executions_by_function_request.ListDurableExecutionsByFunctionRequest]",
756
+ ) -> AsyncOperationResponse[
757
+ "capo_lambda.types.list_durable_executions_by_function_response.ListDurableExecutionsByFunctionResponse"
758
+ ]:
759
+ import capo_lambda._operations.aws_gir_api_service.list_durable_executions_by_function
760
+
761
+ (
762
+ output,
763
+ http_response,
764
+ ) = await capo_lambda._operations.aws_gir_api_service.list_durable_executions_by_function.async_list_durable_executions_by_function(
765
+ req.options, req.input
766
+ )
767
+ return AsyncOperationResponse(output=output, response=http_response)
768
+
769
+ interceptors_, options_ = self.operation_options(config_overrides)
770
+ input_: capo_lambda.types.list_durable_executions_by_function_request.ListDurableExecutionsByFunctionRequest = {} # type: ignore[typeddict-item]
771
+ input_["function_name"] = function_name
772
+ if qualifier is not None:
773
+ input_["qualifier"] = qualifier
774
+ if durable_execution_name is not None:
775
+ input_["durable_execution_name"] = durable_execution_name
776
+ if statuses is not None:
777
+ input_["statuses"] = statuses
778
+ if started_after is not None:
779
+ input_["started_after"] = started_after
780
+ if started_before is not None:
781
+ input_["started_before"] = started_before
782
+ if reverse_order is not None:
783
+ input_["reverse_order"] = reverse_order
784
+ if marker is not None:
785
+ input_["marker"] = marker
786
+ if max_items is not None:
787
+ input_["max_items"] = max_items
788
+
789
+ response = await aexecute_pipeline(
790
+ AsyncOperationRequest(input=input_, options=options_),
791
+ handler=_handler,
792
+ interceptors=list(interceptors_),
793
+ )
794
+ return response.output
795
+
796
+ async def iter_list_durable_executions_by_function(
797
+ self,
798
+ function_name: "capo_lambda.types.namespaced_function_name.NamespacedFunctionName",
799
+ *,
800
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
801
+ qualifier: Optional[
802
+ "capo_lambda.types.numeric_latest_published_or_alias_qualifier.NumericLatestPublishedOrAliasQualifier"
803
+ ] = None,
804
+ durable_execution_name: Optional[
805
+ "capo_lambda.types.durable_execution_name.DurableExecutionName"
806
+ ] = None,
807
+ statuses: Optional[
808
+ "capo_lambda.types.execution_status_list.ExecutionStatusList"
809
+ ] = None,
810
+ started_after: Optional[
811
+ "capo_lambda.types.execution_timestamp.ExecutionTimestamp"
812
+ ] = None,
813
+ started_before: Optional[
814
+ "capo_lambda.types.execution_timestamp.ExecutionTimestamp"
815
+ ] = None,
816
+ reverse_order: Optional["capo_lambda.types.reverse_order.ReverseOrder"] = None,
817
+ marker: Optional["capo_lambda.types.string.String"] = None,
818
+ max_items: Optional["capo_lambda.types.item_count.ItemCount"] = None,
819
+ ) -> "AsyncIterator[capo_lambda.types.execution.Execution]":
820
+ _token = marker
821
+ while True:
822
+ _response = await self.list_durable_executions_by_function(
823
+ function_name,
824
+ config_overrides=config_overrides,
825
+ qualifier=qualifier,
826
+ durable_execution_name=durable_execution_name,
827
+ statuses=statuses,
828
+ started_after=started_after,
829
+ started_before=started_before,
830
+ reverse_order=reverse_order,
831
+ marker=_token,
832
+ max_items=max_items,
833
+ )
834
+ _page = _resolve_path(_response, ("durable_executions",))
835
+ for _item in _page or []:
836
+ yield _item
837
+ _token = _resolve_path(_response, ("next_marker",))
838
+ if not _token:
839
+ break
840
+
841
+ async def list_function_event_invoke_configs(
842
+ self,
843
+ function_name: "capo_lambda.types.namespaced_function_name.NamespacedFunctionName",
844
+ *,
845
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
846
+ marker: Optional["capo_lambda.types.string.String"] = None,
847
+ max_items: Optional[
848
+ "capo_lambda.types.max_function_event_invoke_config_list_items.MaxFunctionEventInvokeConfigListItems"
849
+ ] = None,
850
+ ) -> "capo_lambda.types.list_function_event_invoke_configs_response.ListFunctionEventInvokeConfigsResponse":
851
+ r"""<p>Retrieves a list of configurations for asynchronous invocation for a function.</p> <p>To configure options for asynchronous invocation, use <a>PutFunctionEventInvokeConfig</a>.</p>
852
+
853
+ Args:
854
+ function_name: <p>The name or ARN of the Lambda function.</p> <p class=\"title\"> <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> - <code>my-function</code>.</p> </li> <li> <p> <b>Function ARN</b> - <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p> </li> <li> <p> <b>Partial ARN</b> - <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
855
+ marker: <p>Specify the pagination token that's returned by a previous request to retrieve the next page of results.</p>
856
+ max_items: <p>The maximum number of configurations to return.</p>
857
+
858
+ Raises:
859
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
860
+ capo_lambda.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request does not exist.</p>
861
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
862
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
863
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
864
+
865
+ Examples:
866
+ To view a list of asynchronous invocation configurations
867
+ The following example returns a list of asynchronous invocation configurations for a function named my-function.
868
+
869
+ >>> await client.list_function_event_invoke_configs(function_name='my-function')
870
+ """
871
+
872
+ async def _handler(
873
+ req: "AsyncOperationRequest[capo_lambda.types.list_function_event_invoke_configs_request.ListFunctionEventInvokeConfigsRequest]",
874
+ ) -> AsyncOperationResponse[
875
+ "capo_lambda.types.list_function_event_invoke_configs_response.ListFunctionEventInvokeConfigsResponse"
876
+ ]:
877
+ import capo_lambda._operations.aws_gir_api_service.list_function_event_invoke_configs
878
+
879
+ (
880
+ output,
881
+ http_response,
882
+ ) = await capo_lambda._operations.aws_gir_api_service.list_function_event_invoke_configs.async_list_function_event_invoke_configs(
883
+ req.options, req.input
884
+ )
885
+ return AsyncOperationResponse(output=output, response=http_response)
886
+
887
+ interceptors_, options_ = self.operation_options(config_overrides)
888
+ input_: capo_lambda.types.list_function_event_invoke_configs_request.ListFunctionEventInvokeConfigsRequest = {} # type: ignore[typeddict-item]
889
+ input_["function_name"] = function_name
890
+ if marker is not None:
891
+ input_["marker"] = marker
892
+ if max_items is not None:
893
+ input_["max_items"] = max_items
894
+
895
+ response = await aexecute_pipeline(
896
+ AsyncOperationRequest(input=input_, options=options_),
897
+ handler=_handler,
898
+ interceptors=list(interceptors_),
899
+ )
900
+ return response.output
901
+
902
+ async def list_tags(
903
+ self,
904
+ resource: "capo_lambda.types.taggable_resource.TaggableResource",
905
+ *,
906
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
907
+ ) -> "capo_lambda.types.list_tags_response.ListTagsResponse":
908
+ r"""<p>Returns a function, event source mapping, or code signing configuration's <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/tagging.html\">tags</a>. You can also view function tags with <a>GetFunction</a>.</p>
909
+
910
+ Args:
911
+ resource: <p>The resource's Amazon Resource Name (ARN). Note: Lambda does not support adding tags to function aliases or versions.</p>
912
+
913
+ Raises:
914
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
915
+ capo_lambda.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request does not exist.</p>
916
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
917
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
918
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
919
+
920
+ Examples:
921
+ To retrieve the list of tags for a Lambda function
922
+ The following example displays the tags attached to the my-function Lambda function.
923
+
924
+ >>> await client.list_tags(resource='arn:aws:lambda:us-west-2:123456789012:function:my-function')
925
+ """
926
+
927
+ async def _handler(
928
+ req: "AsyncOperationRequest[capo_lambda.types.list_tags_request.ListTagsRequest]",
929
+ ) -> AsyncOperationResponse[
930
+ "capo_lambda.types.list_tags_response.ListTagsResponse"
931
+ ]:
932
+ import capo_lambda._operations.aws_gir_api_service.list_tags
933
+
934
+ (
935
+ output,
936
+ http_response,
937
+ ) = await capo_lambda._operations.aws_gir_api_service.list_tags.async_list_tags(
938
+ req.options, req.input
939
+ )
940
+ return AsyncOperationResponse(output=output, response=http_response)
941
+
942
+ interceptors_, options_ = self.operation_options(config_overrides)
943
+ input_: capo_lambda.types.list_tags_request.ListTagsRequest = {} # type: ignore[typeddict-item]
944
+ input_["resource"] = resource
945
+
946
+ response = await aexecute_pipeline(
947
+ AsyncOperationRequest(input=input_, options=options_),
948
+ handler=_handler,
949
+ interceptors=list(interceptors_),
950
+ )
951
+ return response.output
952
+
953
+ async def put_function_event_invoke_config(
954
+ self,
955
+ function_name: "capo_lambda.types.namespaced_function_name.NamespacedFunctionName",
956
+ *,
957
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
958
+ qualifier: Optional[
959
+ "capo_lambda.types.numeric_latest_published_or_alias_qualifier.NumericLatestPublishedOrAliasQualifier"
960
+ ] = None,
961
+ maximum_retry_attempts: Optional[
962
+ "capo_lambda.types.maximum_retry_attempts.MaximumRetryAttempts"
963
+ ] = None,
964
+ maximum_event_age_in_seconds: Optional[
965
+ "capo_lambda.types.maximum_event_age_in_seconds.MaximumEventAgeInSeconds"
966
+ ] = None,
967
+ destination_config: Optional[
968
+ "capo_lambda.types.destination_config.DestinationConfig"
969
+ ] = None,
970
+ ) -> "capo_lambda.types.function_event_invoke_config.FunctionEventInvokeConfig":
971
+ r"""<p>Configures options for <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html\">asynchronous invocation</a> on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use <a>UpdateFunctionEventInvokeConfig</a>.</p> <p>By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with <a>UpdateFunctionConfiguration</a>.</p> <p>To send an invocation record to a queue, topic, S3 bucket, function, or event bus, specify a <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations\">destination</a>. You can configure separate destinations for successful invocations (on-success) and events that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a dead-letter queue.</p> <note> <p>S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.</p> </note>
972
+
973
+ Args:
974
+ function_name: <p>The name or ARN of the Lambda function, version, or alias.</p> <p class=\"title\"> <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> - <code>my-function</code> (name-only), <code>my-function:v1</code> (with alias).</p> </li> <li> <p> <b>Function ARN</b> - <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p> </li> <li> <p> <b>Partial ARN</b> - <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
975
+ qualifier: <p>A version number or alias name.</p>
976
+ maximum_retry_attempts: <p>The maximum number of times to retry when the function returns an error.</p>
977
+ maximum_event_age_in_seconds: <p>The maximum age of a request that Lambda sends to a function for processing.</p>
978
+ destination_config: <p>A destination for events after they have been sent to a function for processing.</p> <p class=\"title\"> <b>Destinations</b> </p> <ul> <li> <p> <b>Function</b> - The Amazon Resource Name (ARN) of a Lambda function.</p> </li> <li> <p> <b>Queue</b> - The ARN of a standard SQS queue.</p> </li> <li> <p> <b>Bucket</b> - The ARN of an Amazon S3 bucket.</p> </li> <li> <p> <b>Topic</b> - The ARN of a standard SNS topic.</p> </li> <li> <p> <b>Event Bus</b> - The ARN of an Amazon EventBridge event bus.</p> </li> </ul> <note> <p>S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.</p> </note>
979
+
980
+ Raises:
981
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
982
+ capo_lambda.errors.resource_conflict_exception.ResourceConflictException: <p>The resource already exists, or another operation is in progress.</p>
983
+ capo_lambda.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request does not exist.</p>
984
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
985
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
986
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
987
+
988
+ Examples:
989
+ To configure error handling for asynchronous invocation
990
+ The following example sets a maximum event age of one hour and disables retries for the specified function.
991
+
992
+ >>> await client.put_function_event_invoke_config(function_name='my-function', maximum_retry_attempts=0, maximum_event_age_in_seconds=3600)
993
+ """
994
+
995
+ async def _handler(
996
+ req: "AsyncOperationRequest[capo_lambda.types.put_function_event_invoke_config_request.PutFunctionEventInvokeConfigRequest]",
997
+ ) -> AsyncOperationResponse[
998
+ "capo_lambda.types.function_event_invoke_config.FunctionEventInvokeConfig"
999
+ ]:
1000
+ import capo_lambda._operations.aws_gir_api_service.put_function_event_invoke_config
1001
+
1002
+ (
1003
+ output,
1004
+ http_response,
1005
+ ) = await capo_lambda._operations.aws_gir_api_service.put_function_event_invoke_config.async_put_function_event_invoke_config(
1006
+ req.options, req.input
1007
+ )
1008
+ return AsyncOperationResponse(output=output, response=http_response)
1009
+
1010
+ interceptors_, options_ = self.operation_options(config_overrides)
1011
+ input_: capo_lambda.types.put_function_event_invoke_config_request.PutFunctionEventInvokeConfigRequest = {} # type: ignore[typeddict-item]
1012
+ input_["function_name"] = function_name
1013
+ if qualifier is not None:
1014
+ input_["qualifier"] = qualifier
1015
+ if maximum_retry_attempts is not None:
1016
+ input_["maximum_retry_attempts"] = maximum_retry_attempts
1017
+ if maximum_event_age_in_seconds is not None:
1018
+ input_["maximum_event_age_in_seconds"] = maximum_event_age_in_seconds
1019
+ if destination_config is not None:
1020
+ input_["destination_config"] = destination_config
1021
+
1022
+ response = await aexecute_pipeline(
1023
+ AsyncOperationRequest(input=input_, options=options_),
1024
+ handler=_handler,
1025
+ interceptors=list(interceptors_),
1026
+ )
1027
+ return response.output
1028
+
1029
+ async def send_durable_execution_callback_failure(
1030
+ self,
1031
+ callback_id: "capo_lambda.types.callback_id.CallbackId",
1032
+ *,
1033
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
1034
+ error: Optional["capo_lambda.types.error_object.ErrorObject"] = None,
1035
+ ) -> "capo_lambda.types.send_durable_execution_callback_failure_response.SendDurableExecutionCallbackFailureResponse":
1036
+ """<p>Sends a failure response for a callback operation in a durable execution. Use this API when an external system cannot complete a callback operation successfully.</p>
1037
+
1038
+ Args:
1039
+ callback_id: <p>The unique identifier for the callback operation.</p>
1040
+ error: <p>Error details describing why the callback operation failed.</p>
1041
+
1042
+ Raises:
1043
+ capo_lambda.errors.callback_timeout_exception.CallbackTimeoutException: <p>The callback ID token has either expired or the callback associated with the token has already been closed.</p>
1044
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
1045
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
1046
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
1047
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
1048
+ """
1049
+
1050
+ async def _handler(
1051
+ req: "AsyncOperationRequest[capo_lambda.types.send_durable_execution_callback_failure_request.SendDurableExecutionCallbackFailureRequest]",
1052
+ ) -> AsyncOperationResponse[
1053
+ "capo_lambda.types.send_durable_execution_callback_failure_response.SendDurableExecutionCallbackFailureResponse"
1054
+ ]:
1055
+ import capo_lambda._operations.aws_gir_api_service.send_durable_execution_callback_failure
1056
+
1057
+ (
1058
+ output,
1059
+ http_response,
1060
+ ) = await capo_lambda._operations.aws_gir_api_service.send_durable_execution_callback_failure.async_send_durable_execution_callback_failure(
1061
+ req.options, req.input
1062
+ )
1063
+ return AsyncOperationResponse(output=output, response=http_response)
1064
+
1065
+ interceptors_, options_ = self.operation_options(config_overrides)
1066
+ input_: capo_lambda.types.send_durable_execution_callback_failure_request.SendDurableExecutionCallbackFailureRequest = {} # type: ignore[typeddict-item]
1067
+ input_["callback_id"] = callback_id
1068
+ if error is not None:
1069
+ input_["error"] = error
1070
+
1071
+ response = await aexecute_pipeline(
1072
+ AsyncOperationRequest(input=input_, options=options_),
1073
+ handler=_handler,
1074
+ interceptors=list(interceptors_),
1075
+ )
1076
+ return response.output
1077
+
1078
+ async def send_durable_execution_callback_heartbeat(
1079
+ self,
1080
+ callback_id: "capo_lambda.types.callback_id.CallbackId",
1081
+ *,
1082
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
1083
+ ) -> "capo_lambda.types.send_durable_execution_callback_heartbeat_response.SendDurableExecutionCallbackHeartbeatResponse":
1084
+ """<p>Sends a heartbeat signal for a long-running callback operation to prevent timeout. Use this API to extend the callback timeout period while the external operation is still in progress.</p>
1085
+
1086
+ Args:
1087
+ callback_id: <p>The unique identifier for the callback operation.</p>
1088
+
1089
+ Raises:
1090
+ capo_lambda.errors.callback_timeout_exception.CallbackTimeoutException: <p>The callback ID token has either expired or the callback associated with the token has already been closed.</p>
1091
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
1092
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
1093
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
1094
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
1095
+ """
1096
+
1097
+ async def _handler(
1098
+ req: "AsyncOperationRequest[capo_lambda.types.send_durable_execution_callback_heartbeat_request.SendDurableExecutionCallbackHeartbeatRequest]",
1099
+ ) -> AsyncOperationResponse[
1100
+ "capo_lambda.types.send_durable_execution_callback_heartbeat_response.SendDurableExecutionCallbackHeartbeatResponse"
1101
+ ]:
1102
+ import capo_lambda._operations.aws_gir_api_service.send_durable_execution_callback_heartbeat
1103
+
1104
+ (
1105
+ output,
1106
+ http_response,
1107
+ ) = await capo_lambda._operations.aws_gir_api_service.send_durable_execution_callback_heartbeat.async_send_durable_execution_callback_heartbeat(
1108
+ req.options, req.input
1109
+ )
1110
+ return AsyncOperationResponse(output=output, response=http_response)
1111
+
1112
+ interceptors_, options_ = self.operation_options(config_overrides)
1113
+ input_: capo_lambda.types.send_durable_execution_callback_heartbeat_request.SendDurableExecutionCallbackHeartbeatRequest = {} # type: ignore[typeddict-item]
1114
+ input_["callback_id"] = callback_id
1115
+
1116
+ response = await aexecute_pipeline(
1117
+ AsyncOperationRequest(input=input_, options=options_),
1118
+ handler=_handler,
1119
+ interceptors=list(interceptors_),
1120
+ )
1121
+ return response.output
1122
+
1123
+ async def send_durable_execution_callback_success(
1124
+ self,
1125
+ callback_id: "capo_lambda.types.callback_id.CallbackId",
1126
+ *,
1127
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
1128
+ result: Optional[
1129
+ "capo_lambda.types.binary_operation_payload.BinaryOperationPayload"
1130
+ ] = None,
1131
+ ) -> "capo_lambda.types.send_durable_execution_callback_success_response.SendDurableExecutionCallbackSuccessResponse":
1132
+ """<p>Sends a successful completion response for a callback operation in a durable execution. Use this API when an external system has successfully completed a callback operation.</p>
1133
+
1134
+ Args:
1135
+ callback_id: <p>The unique identifier for the callback operation.</p>
1136
+ result: <p>The result data from the successful callback operation. Maximum size is 256 KB.</p>
1137
+
1138
+ Raises:
1139
+ capo_lambda.errors.callback_timeout_exception.CallbackTimeoutException: <p>The callback ID token has either expired or the callback associated with the token has already been closed.</p>
1140
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
1141
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
1142
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
1143
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
1144
+ """
1145
+
1146
+ async def _handler(
1147
+ req: "AsyncOperationRequest[capo_lambda.types.send_durable_execution_callback_success_request.SendDurableExecutionCallbackSuccessRequest]",
1148
+ ) -> AsyncOperationResponse[
1149
+ "capo_lambda.types.send_durable_execution_callback_success_response.SendDurableExecutionCallbackSuccessResponse"
1150
+ ]:
1151
+ import capo_lambda._operations.aws_gir_api_service.send_durable_execution_callback_success
1152
+
1153
+ (
1154
+ output,
1155
+ http_response,
1156
+ ) = await capo_lambda._operations.aws_gir_api_service.send_durable_execution_callback_success.async_send_durable_execution_callback_success(
1157
+ req.options, req.input
1158
+ )
1159
+ return AsyncOperationResponse(output=output, response=http_response)
1160
+
1161
+ interceptors_, options_ = self.operation_options(config_overrides)
1162
+ input_: capo_lambda.types.send_durable_execution_callback_success_request.SendDurableExecutionCallbackSuccessRequest = {} # type: ignore[typeddict-item]
1163
+ input_["callback_id"] = callback_id
1164
+ if result is not None:
1165
+ input_["result"] = result
1166
+
1167
+ response = await aexecute_pipeline(
1168
+ AsyncOperationRequest(input=input_, options=options_),
1169
+ handler=_handler,
1170
+ interceptors=list(interceptors_),
1171
+ )
1172
+ return response.output
1173
+
1174
+ async def stop_durable_execution(
1175
+ self,
1176
+ durable_execution_arn: "capo_lambda.types.durable_execution_arn.DurableExecutionArn",
1177
+ *,
1178
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
1179
+ error: Optional["capo_lambda.types.error_object.ErrorObject"] = None,
1180
+ ) -> (
1181
+ "capo_lambda.types.stop_durable_execution_response.StopDurableExecutionResponse"
1182
+ ):
1183
+ r"""<p>Stops a running <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html\">durable execution</a>. The execution transitions to STOPPED status and cannot be resumed. Any in-progress operations are terminated.</p>
1184
+
1185
+ Args:
1186
+ durable_execution_arn: <p>The Amazon Resource Name (ARN) of the durable execution.</p>
1187
+ error: <p>Optional error details explaining why the execution is being stopped.</p>
1188
+
1189
+ Raises:
1190
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
1191
+ capo_lambda.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request does not exist.</p>
1192
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
1193
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
1194
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
1195
+ """
1196
+
1197
+ async def _handler(
1198
+ req: "AsyncOperationRequest[capo_lambda.types.stop_durable_execution_request.StopDurableExecutionRequest]",
1199
+ ) -> AsyncOperationResponse[
1200
+ "capo_lambda.types.stop_durable_execution_response.StopDurableExecutionResponse"
1201
+ ]:
1202
+ import capo_lambda._operations.aws_gir_api_service.stop_durable_execution
1203
+
1204
+ (
1205
+ output,
1206
+ http_response,
1207
+ ) = await capo_lambda._operations.aws_gir_api_service.stop_durable_execution.async_stop_durable_execution(
1208
+ req.options, req.input
1209
+ )
1210
+ return AsyncOperationResponse(output=output, response=http_response)
1211
+
1212
+ interceptors_, options_ = self.operation_options(config_overrides)
1213
+ input_: capo_lambda.types.stop_durable_execution_request.StopDurableExecutionRequest = {} # type: ignore[typeddict-item]
1214
+ input_["durable_execution_arn"] = durable_execution_arn
1215
+ if error is not None:
1216
+ input_["error"] = error
1217
+
1218
+ response = await aexecute_pipeline(
1219
+ AsyncOperationRequest(input=input_, options=options_),
1220
+ handler=_handler,
1221
+ interceptors=list(interceptors_),
1222
+ )
1223
+ return response.output
1224
+
1225
+ async def tag_resource(
1226
+ self,
1227
+ resource: "capo_lambda.types.taggable_resource.TaggableResource",
1228
+ tags: "capo_lambda.types.tags.Tags",
1229
+ *,
1230
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
1231
+ ) -> None:
1232
+ r"""<p>Adds <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/tagging.html\">tags</a> to a function, event source mapping, or code signing configuration.</p>
1233
+
1234
+ Args:
1235
+ resource: <p>The resource's Amazon Resource Name (ARN).</p>
1236
+ tags: <p>A list of tags to apply to the resource.</p>
1237
+
1238
+ Raises:
1239
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
1240
+ capo_lambda.errors.resource_conflict_exception.ResourceConflictException: <p>The resource already exists, or another operation is in progress.</p>
1241
+ capo_lambda.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request does not exist.</p>
1242
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
1243
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
1244
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
1245
+
1246
+ Examples:
1247
+ To add tags to an existing Lambda function
1248
+ The following example adds a tag with the key name DEPARTMENT and a value of 'Department A' to the specified Lambda function.
1249
+
1250
+ >>> await client.tag_resource(resource='arn:aws:lambda:us-west-2:123456789012:function:my-function', tags={'DEPARTMENT': 'Department A'})
1251
+ """
1252
+
1253
+ async def _handler(
1254
+ req: "AsyncOperationRequest[capo_lambda.types.tag_resource_request.TagResourceRequest]",
1255
+ ) -> AsyncOperationResponse[None]:
1256
+ import capo_lambda._operations.aws_gir_api_service.tag_resource
1257
+
1258
+ (
1259
+ output,
1260
+ http_response,
1261
+ ) = await capo_lambda._operations.aws_gir_api_service.tag_resource.async_tag_resource(
1262
+ req.options, req.input
1263
+ )
1264
+ return AsyncOperationResponse(output=output, response=http_response)
1265
+
1266
+ interceptors_, options_ = self.operation_options(config_overrides)
1267
+ input_: capo_lambda.types.tag_resource_request.TagResourceRequest = {} # type: ignore[typeddict-item]
1268
+ input_["resource"] = resource
1269
+ input_["tags"] = tags
1270
+
1271
+ response = await aexecute_pipeline(
1272
+ AsyncOperationRequest(input=input_, options=options_),
1273
+ handler=_handler,
1274
+ interceptors=list(interceptors_),
1275
+ )
1276
+ return response.output
1277
+
1278
+ async def untag_resource(
1279
+ self,
1280
+ resource: "capo_lambda.types.taggable_resource.TaggableResource",
1281
+ tag_keys: "capo_lambda.types.tag_key_list.TagKeyList",
1282
+ *,
1283
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
1284
+ ) -> None:
1285
+ r"""<p>Removes <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/tagging.html\">tags</a> from a function, event source mapping, or code signing configuration.</p>
1286
+
1287
+ Args:
1288
+ resource: <p>The resource's Amazon Resource Name (ARN).</p>
1289
+ tag_keys: <p>A list of tag keys to remove from the resource.</p>
1290
+
1291
+ Raises:
1292
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
1293
+ capo_lambda.errors.resource_conflict_exception.ResourceConflictException: <p>The resource already exists, or another operation is in progress.</p>
1294
+ capo_lambda.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request does not exist.</p>
1295
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
1296
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
1297
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
1298
+
1299
+ Examples:
1300
+ To remove tags from an existing Lambda function
1301
+ The following example removes the tag with the key name DEPARTMENT tag from the my-function Lambda function.
1302
+
1303
+ >>> await client.untag_resource(resource='arn:aws:lambda:us-west-2:123456789012:function:my-function', tag_keys=['DEPARTMENT'])
1304
+ """
1305
+
1306
+ async def _handler(
1307
+ req: "AsyncOperationRequest[capo_lambda.types.untag_resource_request.UntagResourceRequest]",
1308
+ ) -> AsyncOperationResponse[None]:
1309
+ import capo_lambda._operations.aws_gir_api_service.untag_resource
1310
+
1311
+ (
1312
+ output,
1313
+ http_response,
1314
+ ) = await capo_lambda._operations.aws_gir_api_service.untag_resource.async_untag_resource(
1315
+ req.options, req.input
1316
+ )
1317
+ return AsyncOperationResponse(output=output, response=http_response)
1318
+
1319
+ interceptors_, options_ = self.operation_options(config_overrides)
1320
+ input_: capo_lambda.types.untag_resource_request.UntagResourceRequest = {} # type: ignore[typeddict-item]
1321
+ input_["resource"] = resource
1322
+ input_["tag_keys"] = tag_keys
1323
+
1324
+ response = await aexecute_pipeline(
1325
+ AsyncOperationRequest(input=input_, options=options_),
1326
+ handler=_handler,
1327
+ interceptors=list(interceptors_),
1328
+ )
1329
+ return response.output
1330
+
1331
+ async def update_function_event_invoke_config(
1332
+ self,
1333
+ function_name: "capo_lambda.types.namespaced_function_name.NamespacedFunctionName",
1334
+ *,
1335
+ config_overrides: Optional[AsyncLambdaClientConfig] = None,
1336
+ qualifier: Optional[
1337
+ "capo_lambda.types.numeric_latest_published_or_alias_qualifier.NumericLatestPublishedOrAliasQualifier"
1338
+ ] = None,
1339
+ maximum_retry_attempts: Optional[
1340
+ "capo_lambda.types.maximum_retry_attempts.MaximumRetryAttempts"
1341
+ ] = None,
1342
+ maximum_event_age_in_seconds: Optional[
1343
+ "capo_lambda.types.maximum_event_age_in_seconds.MaximumEventAgeInSeconds"
1344
+ ] = None,
1345
+ destination_config: Optional[
1346
+ "capo_lambda.types.destination_config.DestinationConfig"
1347
+ ] = None,
1348
+ ) -> "capo_lambda.types.function_event_invoke_config.FunctionEventInvokeConfig":
1349
+ r"""<p>Updates the configuration for asynchronous invocation for a function, version, or alias.</p> <p>To configure options for asynchronous invocation, use <a>PutFunctionEventInvokeConfig</a>.</p>
1350
+
1351
+ Args:
1352
+ function_name: <p>The name or ARN of the Lambda function, version, or alias.</p> <p class=\"title\"> <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> - <code>my-function</code> (name-only), <code>my-function:v1</code> (with alias).</p> </li> <li> <p> <b>Function ARN</b> - <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p> </li> <li> <p> <b>Partial ARN</b> - <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
1353
+ qualifier: <p>A version number or alias name.</p>
1354
+ maximum_retry_attempts: <p>The maximum number of times to retry when the function returns an error.</p>
1355
+ maximum_event_age_in_seconds: <p>The maximum age of a request that Lambda sends to a function for processing.</p>
1356
+ destination_config: <p>A destination for events after they have been sent to a function for processing.</p> <p class=\"title\"> <b>Destinations</b> </p> <ul> <li> <p> <b>Function</b> - The Amazon Resource Name (ARN) of a Lambda function.</p> </li> <li> <p> <b>Queue</b> - The ARN of a standard SQS queue.</p> </li> <li> <p> <b>Bucket</b> - The ARN of an Amazon S3 bucket.</p> </li> <li> <p> <b>Topic</b> - The ARN of a standard SNS topic.</p> </li> <li> <p> <b>Event Bus</b> - The ARN of an Amazon EventBridge event bus.</p> </li> </ul> <note> <p>S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.</p> </note>
1357
+
1358
+ Raises:
1359
+ capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
1360
+ capo_lambda.errors.resource_conflict_exception.ResourceConflictException: <p>The resource already exists, or another operation is in progress.</p>
1361
+ capo_lambda.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request does not exist.</p>
1362
+ capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
1363
+ capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests\">Lambda quotas</a>.</p>
1364
+ capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
1365
+
1366
+ Examples:
1367
+ To update an asynchronous invocation configuration
1368
+ The following example adds an on-failure destination to the existing asynchronous invocation configuration for a function named my-function.
1369
+
1370
+ >>> await client.update_function_event_invoke_config(function_name='my-function', destination_config={'OnFailure': {'Destination': 'arn:aws:sqs:us-east-2:123456789012:destination'}})
1371
+ """
1372
+
1373
+ async def _handler(
1374
+ req: "AsyncOperationRequest[capo_lambda.types.update_function_event_invoke_config_request.UpdateFunctionEventInvokeConfigRequest]",
1375
+ ) -> AsyncOperationResponse[
1376
+ "capo_lambda.types.function_event_invoke_config.FunctionEventInvokeConfig"
1377
+ ]:
1378
+ import capo_lambda._operations.aws_gir_api_service.update_function_event_invoke_config
1379
+
1380
+ (
1381
+ output,
1382
+ http_response,
1383
+ ) = await capo_lambda._operations.aws_gir_api_service.update_function_event_invoke_config.async_update_function_event_invoke_config(
1384
+ req.options, req.input
1385
+ )
1386
+ return AsyncOperationResponse(output=output, response=http_response)
1387
+
1388
+ interceptors_, options_ = self.operation_options(config_overrides)
1389
+ input_: capo_lambda.types.update_function_event_invoke_config_request.UpdateFunctionEventInvokeConfigRequest = {} # type: ignore[typeddict-item]
1390
+ input_["function_name"] = function_name
1391
+ if qualifier is not None:
1392
+ input_["qualifier"] = qualifier
1393
+ if maximum_retry_attempts is not None:
1394
+ input_["maximum_retry_attempts"] = maximum_retry_attempts
1395
+ if maximum_event_age_in_seconds is not None:
1396
+ input_["maximum_event_age_in_seconds"] = maximum_event_age_in_seconds
1397
+ if destination_config is not None:
1398
+ input_["destination_config"] = destination_config
1399
+
1400
+ response = await aexecute_pipeline(
1401
+ AsyncOperationRequest(input=input_, options=options_),
1402
+ handler=_handler,
1403
+ interceptors=list(interceptors_),
1404
+ )
1405
+ return response.output
1406
+
1407
+ async def __aenter__(self) -> Self:
1408
+ return self
1409
+
1410
+ async def __aexit__(self, exc_type: Any, exc: Any, tb: Any):
1411
+ await self._client.aclose()