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