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,1081 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Optional
|
|
2
|
+
|
|
3
|
+
import aws_sdk_lambda._auth._signers
|
|
4
|
+
import aws_sdk_lambda._auth._sigv4
|
|
5
|
+
from aws_sdk_lambda._services._pipeline import (
|
|
6
|
+
AsyncOperationRequest,
|
|
7
|
+
AsyncOperationResponse,
|
|
8
|
+
OperationRequest,
|
|
9
|
+
OperationResponse,
|
|
10
|
+
aexecute_pipeline,
|
|
11
|
+
execute_pipeline,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
if TYPE_CHECKING:
|
|
15
|
+
import aws_sdk_lambda.types.amazon_managed_kafka_event_source_config
|
|
16
|
+
import aws_sdk_lambda.types.arn
|
|
17
|
+
import aws_sdk_lambda.types.batch_size
|
|
18
|
+
import aws_sdk_lambda.types.bisect_batch_on_function_error
|
|
19
|
+
import aws_sdk_lambda.types.create_event_source_mapping_request
|
|
20
|
+
import aws_sdk_lambda.types.date
|
|
21
|
+
import aws_sdk_lambda.types.delete_event_source_mapping_request
|
|
22
|
+
import aws_sdk_lambda.types.destination_config
|
|
23
|
+
import aws_sdk_lambda.types.document_db_event_source_config
|
|
24
|
+
import aws_sdk_lambda.types.enabled
|
|
25
|
+
import aws_sdk_lambda.types.event_source_mapping_configuration
|
|
26
|
+
import aws_sdk_lambda.types.event_source_mapping_logging_config
|
|
27
|
+
import aws_sdk_lambda.types.event_source_mapping_metrics_config
|
|
28
|
+
import aws_sdk_lambda.types.event_source_position
|
|
29
|
+
import aws_sdk_lambda.types.filter_criteria
|
|
30
|
+
import aws_sdk_lambda.types.function_response_type_list
|
|
31
|
+
import aws_sdk_lambda.types.get_event_source_mapping_request
|
|
32
|
+
import aws_sdk_lambda.types.kms_key_arn
|
|
33
|
+
import aws_sdk_lambda.types.list_event_source_mappings_request
|
|
34
|
+
import aws_sdk_lambda.types.list_event_source_mappings_response
|
|
35
|
+
import aws_sdk_lambda.types.max_list_items
|
|
36
|
+
import aws_sdk_lambda.types.maximum_batching_window_in_seconds
|
|
37
|
+
import aws_sdk_lambda.types.maximum_record_age_in_seconds
|
|
38
|
+
import aws_sdk_lambda.types.maximum_retry_attempts_event_source_mapping
|
|
39
|
+
import aws_sdk_lambda.types.namespaced_function_name
|
|
40
|
+
import aws_sdk_lambda.types.parallelization_factor
|
|
41
|
+
import aws_sdk_lambda.types.provisioned_poller_config
|
|
42
|
+
import aws_sdk_lambda.types.queues
|
|
43
|
+
import aws_sdk_lambda.types.scaling_config
|
|
44
|
+
import aws_sdk_lambda.types.self_managed_event_source
|
|
45
|
+
import aws_sdk_lambda.types.self_managed_kafka_event_source_config
|
|
46
|
+
import aws_sdk_lambda.types.source_access_configurations
|
|
47
|
+
import aws_sdk_lambda.types.string
|
|
48
|
+
import aws_sdk_lambda.types.tags
|
|
49
|
+
import aws_sdk_lambda.types.topics
|
|
50
|
+
import aws_sdk_lambda.types.tumbling_window_in_seconds
|
|
51
|
+
import aws_sdk_lambda.types.update_event_source_mapping_request
|
|
52
|
+
from aws_sdk_lambda._services._lambda import LambdaClient, LambdaClientConfig
|
|
53
|
+
from aws_sdk_lambda._services.async__lambda import (
|
|
54
|
+
AsyncLambdaClient,
|
|
55
|
+
AsyncLambdaClientConfig,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class EventSourceMapping:
|
|
60
|
+
def __init__(self, service: LambdaClient) -> None:
|
|
61
|
+
self._service = service
|
|
62
|
+
|
|
63
|
+
def create(
|
|
64
|
+
self,
|
|
65
|
+
function_name: "aws_sdk_lambda.types.namespaced_function_name.NamespacedFunctionName",
|
|
66
|
+
*,
|
|
67
|
+
config_overrides: Optional[LambdaClientConfig] = None,
|
|
68
|
+
event_source_arn: Optional["aws_sdk_lambda.types.arn.Arn"] = None,
|
|
69
|
+
enabled: Optional["aws_sdk_lambda.types.enabled.Enabled"] = None,
|
|
70
|
+
batch_size: Optional["aws_sdk_lambda.types.batch_size.BatchSize"] = None,
|
|
71
|
+
filter_criteria: Optional[
|
|
72
|
+
"aws_sdk_lambda.types.filter_criteria.FilterCriteria"
|
|
73
|
+
] = None,
|
|
74
|
+
maximum_batching_window_in_seconds: Optional[
|
|
75
|
+
"aws_sdk_lambda.types.maximum_batching_window_in_seconds.MaximumBatchingWindowInSeconds"
|
|
76
|
+
] = None,
|
|
77
|
+
parallelization_factor: Optional[
|
|
78
|
+
"aws_sdk_lambda.types.parallelization_factor.ParallelizationFactor"
|
|
79
|
+
] = None,
|
|
80
|
+
starting_position: Optional[
|
|
81
|
+
"aws_sdk_lambda.types.event_source_position.EventSourcePosition"
|
|
82
|
+
] = None,
|
|
83
|
+
starting_position_timestamp: Optional["aws_sdk_lambda.types.date.Date"] = None,
|
|
84
|
+
destination_config: Optional[
|
|
85
|
+
"aws_sdk_lambda.types.destination_config.DestinationConfig"
|
|
86
|
+
] = None,
|
|
87
|
+
maximum_record_age_in_seconds: Optional[
|
|
88
|
+
"aws_sdk_lambda.types.maximum_record_age_in_seconds.MaximumRecordAgeInSeconds"
|
|
89
|
+
] = None,
|
|
90
|
+
bisect_batch_on_function_error: Optional[
|
|
91
|
+
"aws_sdk_lambda.types.bisect_batch_on_function_error.BisectBatchOnFunctionError"
|
|
92
|
+
] = None,
|
|
93
|
+
maximum_retry_attempts: Optional[
|
|
94
|
+
"aws_sdk_lambda.types.maximum_retry_attempts_event_source_mapping.MaximumRetryAttemptsEventSourceMapping"
|
|
95
|
+
] = None,
|
|
96
|
+
tags: Optional["aws_sdk_lambda.types.tags.Tags"] = None,
|
|
97
|
+
tumbling_window_in_seconds: Optional[
|
|
98
|
+
"aws_sdk_lambda.types.tumbling_window_in_seconds.TumblingWindowInSeconds"
|
|
99
|
+
] = None,
|
|
100
|
+
topics: Optional["aws_sdk_lambda.types.topics.Topics"] = None,
|
|
101
|
+
queues: Optional["aws_sdk_lambda.types.queues.Queues"] = None,
|
|
102
|
+
source_access_configurations: Optional[
|
|
103
|
+
"aws_sdk_lambda.types.source_access_configurations.SourceAccessConfigurations"
|
|
104
|
+
] = None,
|
|
105
|
+
self_managed_event_source: Optional[
|
|
106
|
+
"aws_sdk_lambda.types.self_managed_event_source.SelfManagedEventSource"
|
|
107
|
+
] = None,
|
|
108
|
+
function_response_types: Optional[
|
|
109
|
+
"aws_sdk_lambda.types.function_response_type_list.FunctionResponseTypeList"
|
|
110
|
+
] = None,
|
|
111
|
+
amazon_managed_kafka_event_source_config: Optional[
|
|
112
|
+
"aws_sdk_lambda.types.amazon_managed_kafka_event_source_config.AmazonManagedKafkaEventSourceConfig"
|
|
113
|
+
] = None,
|
|
114
|
+
self_managed_kafka_event_source_config: Optional[
|
|
115
|
+
"aws_sdk_lambda.types.self_managed_kafka_event_source_config.SelfManagedKafkaEventSourceConfig"
|
|
116
|
+
] = None,
|
|
117
|
+
scaling_config: Optional[
|
|
118
|
+
"aws_sdk_lambda.types.scaling_config.ScalingConfig"
|
|
119
|
+
] = None,
|
|
120
|
+
document_db_event_source_config: Optional[
|
|
121
|
+
"aws_sdk_lambda.types.document_db_event_source_config.DocumentDBEventSourceConfig"
|
|
122
|
+
] = None,
|
|
123
|
+
kms_key_arn: Optional["aws_sdk_lambda.types.kms_key_arn.KMSKeyArn"] = None,
|
|
124
|
+
metrics_config: Optional[
|
|
125
|
+
"aws_sdk_lambda.types.event_source_mapping_metrics_config.EventSourceMappingMetricsConfig"
|
|
126
|
+
] = None,
|
|
127
|
+
logging_config: Optional[
|
|
128
|
+
"aws_sdk_lambda.types.event_source_mapping_logging_config.EventSourceMappingLoggingConfig"
|
|
129
|
+
] = None,
|
|
130
|
+
provisioned_poller_config: Optional[
|
|
131
|
+
"aws_sdk_lambda.types.provisioned_poller_config.ProvisionedPollerConfig"
|
|
132
|
+
] = None,
|
|
133
|
+
) -> "aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration":
|
|
134
|
+
"""<p>Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function.</p> <p>For details about how to configure different event sources, see the following topics. </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping\"> Amazon DynamoDB Streams</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping\"> Amazon Kinesis</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource\"> Amazon SQS</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping\"> Amazon MQ and RabbitMQ</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html\"> Amazon MSK</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html\"> Apache Kafka</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html\"> Amazon DocumentDB</a> </p> </li> </ul> <p>The following error handling options are available for stream sources (DynamoDB, Kinesis, Amazon MSK, and self-managed Apache Kafka):</p> <ul> <li> <p> <code>BisectBatchOnFunctionError</code> – If the function returns an error, split the batch in two and retry.</p> </li> <li> <p> <code>MaximumRecordAgeInSeconds</code> – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires</p> </li> <li> <p> <code>MaximumRetryAttempts</code> – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p> </li> <li> <p> <code>OnFailure</code> – Send discarded records to an Amazon SQS queue, Amazon SNS topic, Kafka topic, or Amazon S3 bucket. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-async-destinations\">Adding a destination</a>.</p> </li> </ul> <p>The following option is available only for DynamoDB and Kinesis event sources:</p> <ul> <li> <p> <code>ParallelizationFactor</code> – Process multiple batches from each shard concurrently.</p> </li> </ul> <p>For information about which configuration parameters apply to each event source, see the following topics.</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params\"> Amazon DynamoDB Streams</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params\"> Amazon Kinesis</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params\"> Amazon SQS</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params\"> Amazon MQ and RabbitMQ</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms\"> Amazon MSK</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms\"> Apache Kafka</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html#docdb-configuration\"> Amazon DocumentDB</a> </p> </li> </ul>
|
|
135
|
+
|
|
136
|
+
Args:
|
|
137
|
+
event_source_arn: <p>The Amazon Resource Name (ARN) of the event source.</p> <ul> <li> <p> <b>Amazon Kinesis</b> – The ARN of the data stream or a stream consumer.</p> </li> <li> <p> <b>Amazon DynamoDB Streams</b> – The ARN of the stream.</p> </li> <li> <p> <b>Amazon Simple Queue Service</b> – The ARN of the queue.</p> </li> <li> <p> <b>Amazon Managed Streaming for Apache Kafka</b> – The ARN of the cluster or the ARN of the VPC connection (for <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc\">cross-account event source mappings</a>).</p> </li> <li> <p> <b>Amazon MQ</b> – The ARN of the broker.</p> </li> <li> <p> <b>Amazon DocumentDB</b> – The ARN of the DocumentDB change stream.</p> </li> </ul>
|
|
138
|
+
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>MyFunction</code>.</p> </li> <li> <p> <b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p> </li> <li> <p> <b>Version or Alias ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p> </li> <li> <p> <b>Partial ARN</b> – <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.</p>
|
|
139
|
+
enabled: <p>When true, the event source mapping is active. When false, Lambda pauses polling and invocation.</p> <p>Default: True</p>
|
|
140
|
+
batch_size: <p>The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).</p> <ul> <li> <p> <b>Amazon Kinesis</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon DynamoDB Streams</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon Simple Queue Service</b> – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.</p> </li> <li> <p> <b>Amazon Managed Streaming for Apache Kafka</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Self-managed Apache Kafka</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon MQ (ActiveMQ and RabbitMQ)</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>DocumentDB</b> – Default 100. Max 10,000.</p> </li> </ul>
|
|
141
|
+
filter_criteria: <p>An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html\">Lambda event filtering</a>.</p>
|
|
142
|
+
maximum_batching_window_in_seconds: <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p> <p>For Kinesis, DynamoDB, and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.</p> <p>Related setting: For Kinesis, DynamoDB, and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
|
|
143
|
+
parallelization_factor: <p>(Kinesis and DynamoDB Streams only) The number of batches to process from each shard concurrently.</p>
|
|
144
|
+
starting_position: <p>The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Stream event sources. <code>AT_TIMESTAMP</code> is supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and self-managed Apache Kafka.</p>
|
|
145
|
+
starting_position_timestamp: <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time from which to start reading. <code>StartingPositionTimestamp</code> cannot be in the future.</p>
|
|
146
|
+
destination_config: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it.</p>
|
|
147
|
+
maximum_record_age_in_seconds: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records older than the specified age. The default value is infinite (-1).</p>
|
|
148
|
+
bisect_batch_on_function_error: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) If the function returns an error, split the batch in two and retry.</p>
|
|
149
|
+
maximum_retry_attempts: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p>
|
|
150
|
+
tags: <p>A list of tags to apply to the event source mapping.</p>
|
|
151
|
+
tumbling_window_in_seconds: <p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.</p>
|
|
152
|
+
topics: <p>The name of the Kafka topic.</p>
|
|
153
|
+
queues: <p> (MQ) The name of the Amazon MQ broker destination queue to consume. </p>
|
|
154
|
+
source_access_configurations: <p>An array of authentication protocols or VPC components required to secure your event source.</p>
|
|
155
|
+
self_managed_event_source: <p>The self-managed Apache Kafka cluster to receive records from.</p>
|
|
156
|
+
function_response_types: <p>(Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, and Amazon SQS) A list of current response type enums applied to the event source mapping.</p>
|
|
157
|
+
amazon_managed_kafka_event_source_config: <p>Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.</p>
|
|
158
|
+
self_managed_kafka_event_source_config: <p>Specific configuration settings for a self-managed Apache Kafka event source.</p>
|
|
159
|
+
scaling_config: <p>(Amazon SQS only) The scaling configuration for the event source. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency\">Configuring maximum concurrency for Amazon SQS event sources</a>.</p>
|
|
160
|
+
document_db_event_source_config: <p>Specific configuration settings for a DocumentDB event source.</p>
|
|
161
|
+
kms_key_arn: <p> The ARN of the Key Management Service (KMS) customer managed key that Lambda uses to encrypt your function's <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics\">filter criteria</a>. By default, Lambda does not encrypt your filter criteria object. Specify this property to encrypt data using your own customer managed key. </p>
|
|
162
|
+
metrics_config: <p>The metrics configuration for your event source. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics\">Event source mapping metrics</a>.</p>
|
|
163
|
+
logging_config: <p>(Amazon MSK, and self-managed Apache Kafka only) The logging configuration for your event source. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/esm-logging.html\">Event source mapping logging</a>.</p>
|
|
164
|
+
provisioned_poller_config: <p>(Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode\">provisioned mode</a>.</p>
|
|
165
|
+
|
|
166
|
+
Examples:
|
|
167
|
+
To create a mapping between an event source and an AWS Lambda function
|
|
168
|
+
The following example creates a mapping between an SQS queue and the my-function Lambda function.
|
|
169
|
+
|
|
170
|
+
>>> client.create(event_source_arn='arn:aws:sqs:us-west-2:123456789012:my-queue', function_name='my-function', batch_size=5)
|
|
171
|
+
"""
|
|
172
|
+
|
|
173
|
+
def _handler(
|
|
174
|
+
req: "OperationRequest[aws_sdk_lambda.types.create_event_source_mapping_request.CreateEventSourceMappingRequest]",
|
|
175
|
+
) -> OperationResponse[
|
|
176
|
+
"aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration"
|
|
177
|
+
]:
|
|
178
|
+
import aws_sdk_lambda._operations.aws_gir_api_service.create_event_source_mapping
|
|
179
|
+
|
|
180
|
+
output, http_response = (
|
|
181
|
+
aws_sdk_lambda._operations.aws_gir_api_service.create_event_source_mapping.create_event_source_mapping(
|
|
182
|
+
req.options, req.input
|
|
183
|
+
)
|
|
184
|
+
)
|
|
185
|
+
return OperationResponse(output=output, response=http_response)
|
|
186
|
+
|
|
187
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
188
|
+
input: aws_sdk_lambda.types.create_event_source_mapping_request.CreateEventSourceMappingRequest = {} # type: ignore[typeddict-item]
|
|
189
|
+
if event_source_arn is not None:
|
|
190
|
+
input["event_source_arn"] = event_source_arn
|
|
191
|
+
input["function_name"] = function_name
|
|
192
|
+
if enabled is not None:
|
|
193
|
+
input["enabled"] = enabled
|
|
194
|
+
if batch_size is not None:
|
|
195
|
+
input["batch_size"] = batch_size
|
|
196
|
+
if filter_criteria is not None:
|
|
197
|
+
input["filter_criteria"] = filter_criteria
|
|
198
|
+
if maximum_batching_window_in_seconds is not None:
|
|
199
|
+
input["maximum_batching_window_in_seconds"] = (
|
|
200
|
+
maximum_batching_window_in_seconds
|
|
201
|
+
)
|
|
202
|
+
if parallelization_factor is not None:
|
|
203
|
+
input["parallelization_factor"] = parallelization_factor
|
|
204
|
+
if starting_position is not None:
|
|
205
|
+
input["starting_position"] = starting_position
|
|
206
|
+
if starting_position_timestamp is not None:
|
|
207
|
+
input["starting_position_timestamp"] = starting_position_timestamp
|
|
208
|
+
if destination_config is not None:
|
|
209
|
+
input["destination_config"] = destination_config
|
|
210
|
+
if maximum_record_age_in_seconds is not None:
|
|
211
|
+
input["maximum_record_age_in_seconds"] = maximum_record_age_in_seconds
|
|
212
|
+
if bisect_batch_on_function_error is not None:
|
|
213
|
+
input["bisect_batch_on_function_error"] = bisect_batch_on_function_error
|
|
214
|
+
if maximum_retry_attempts is not None:
|
|
215
|
+
input["maximum_retry_attempts"] = maximum_retry_attempts
|
|
216
|
+
if tags is not None:
|
|
217
|
+
input["tags"] = tags
|
|
218
|
+
if tumbling_window_in_seconds is not None:
|
|
219
|
+
input["tumbling_window_in_seconds"] = tumbling_window_in_seconds
|
|
220
|
+
if topics is not None:
|
|
221
|
+
input["topics"] = topics
|
|
222
|
+
if queues is not None:
|
|
223
|
+
input["queues"] = queues
|
|
224
|
+
if source_access_configurations is not None:
|
|
225
|
+
input["source_access_configurations"] = source_access_configurations
|
|
226
|
+
if self_managed_event_source is not None:
|
|
227
|
+
input["self_managed_event_source"] = self_managed_event_source
|
|
228
|
+
if function_response_types is not None:
|
|
229
|
+
input["function_response_types"] = function_response_types
|
|
230
|
+
if amazon_managed_kafka_event_source_config is not None:
|
|
231
|
+
input["amazon_managed_kafka_event_source_config"] = (
|
|
232
|
+
amazon_managed_kafka_event_source_config
|
|
233
|
+
)
|
|
234
|
+
if self_managed_kafka_event_source_config is not None:
|
|
235
|
+
input["self_managed_kafka_event_source_config"] = (
|
|
236
|
+
self_managed_kafka_event_source_config
|
|
237
|
+
)
|
|
238
|
+
if scaling_config is not None:
|
|
239
|
+
input["scaling_config"] = scaling_config
|
|
240
|
+
if document_db_event_source_config is not None:
|
|
241
|
+
input["document_db_event_source_config"] = document_db_event_source_config
|
|
242
|
+
if kms_key_arn is not None:
|
|
243
|
+
input["kms_key_arn"] = kms_key_arn
|
|
244
|
+
if metrics_config is not None:
|
|
245
|
+
input["metrics_config"] = metrics_config
|
|
246
|
+
if logging_config is not None:
|
|
247
|
+
input["logging_config"] = logging_config
|
|
248
|
+
if provisioned_poller_config is not None:
|
|
249
|
+
input["provisioned_poller_config"] = provisioned_poller_config
|
|
250
|
+
|
|
251
|
+
response = execute_pipeline(
|
|
252
|
+
OperationRequest(input=input, options=options_),
|
|
253
|
+
handler=_handler,
|
|
254
|
+
interceptors=list(interceptors_),
|
|
255
|
+
)
|
|
256
|
+
return response.output
|
|
257
|
+
|
|
258
|
+
def read(
|
|
259
|
+
self,
|
|
260
|
+
uuid: "aws_sdk_lambda.types.string.String",
|
|
261
|
+
*,
|
|
262
|
+
config_overrides: Optional[LambdaClientConfig] = None,
|
|
263
|
+
) -> "aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration":
|
|
264
|
+
"""<p>Returns details about an event source mapping. You can get the identifier of a mapping from the output of <a>ListEventSourceMappings</a>.</p>
|
|
265
|
+
|
|
266
|
+
Args:
|
|
267
|
+
uuid: <p>The identifier of the event source mapping.</p>
|
|
268
|
+
|
|
269
|
+
Examples:
|
|
270
|
+
To get a Lambda function's event source mapping
|
|
271
|
+
The following example returns details about an event source mapping. To get a mapping's UUID, use ListEventSourceMappings.
|
|
272
|
+
|
|
273
|
+
>>> client.read(uuid='14e0db71-xmpl-4eb5-b481-8945cf9d10c2')
|
|
274
|
+
"""
|
|
275
|
+
|
|
276
|
+
def _handler(
|
|
277
|
+
req: "OperationRequest[aws_sdk_lambda.types.get_event_source_mapping_request.GetEventSourceMappingRequest]",
|
|
278
|
+
) -> OperationResponse[
|
|
279
|
+
"aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration"
|
|
280
|
+
]:
|
|
281
|
+
import aws_sdk_lambda._operations.aws_gir_api_service.get_event_source_mapping
|
|
282
|
+
|
|
283
|
+
output, http_response = (
|
|
284
|
+
aws_sdk_lambda._operations.aws_gir_api_service.get_event_source_mapping.get_event_source_mapping(
|
|
285
|
+
req.options, req.input
|
|
286
|
+
)
|
|
287
|
+
)
|
|
288
|
+
return OperationResponse(output=output, response=http_response)
|
|
289
|
+
|
|
290
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
291
|
+
input: aws_sdk_lambda.types.get_event_source_mapping_request.GetEventSourceMappingRequest = {} # type: ignore[typeddict-item]
|
|
292
|
+
input["uuid"] = uuid
|
|
293
|
+
|
|
294
|
+
response = execute_pipeline(
|
|
295
|
+
OperationRequest(input=input, options=options_),
|
|
296
|
+
handler=_handler,
|
|
297
|
+
interceptors=list(interceptors_),
|
|
298
|
+
)
|
|
299
|
+
return response.output
|
|
300
|
+
|
|
301
|
+
def update(
|
|
302
|
+
self,
|
|
303
|
+
uuid: "aws_sdk_lambda.types.string.String",
|
|
304
|
+
*,
|
|
305
|
+
config_overrides: Optional[LambdaClientConfig] = None,
|
|
306
|
+
function_name: Optional[
|
|
307
|
+
"aws_sdk_lambda.types.namespaced_function_name.NamespacedFunctionName"
|
|
308
|
+
] = None,
|
|
309
|
+
enabled: Optional["aws_sdk_lambda.types.enabled.Enabled"] = None,
|
|
310
|
+
batch_size: Optional["aws_sdk_lambda.types.batch_size.BatchSize"] = None,
|
|
311
|
+
filter_criteria: Optional[
|
|
312
|
+
"aws_sdk_lambda.types.filter_criteria.FilterCriteria"
|
|
313
|
+
] = None,
|
|
314
|
+
maximum_batching_window_in_seconds: Optional[
|
|
315
|
+
"aws_sdk_lambda.types.maximum_batching_window_in_seconds.MaximumBatchingWindowInSeconds"
|
|
316
|
+
] = None,
|
|
317
|
+
destination_config: Optional[
|
|
318
|
+
"aws_sdk_lambda.types.destination_config.DestinationConfig"
|
|
319
|
+
] = None,
|
|
320
|
+
maximum_record_age_in_seconds: Optional[
|
|
321
|
+
"aws_sdk_lambda.types.maximum_record_age_in_seconds.MaximumRecordAgeInSeconds"
|
|
322
|
+
] = None,
|
|
323
|
+
bisect_batch_on_function_error: Optional[
|
|
324
|
+
"aws_sdk_lambda.types.bisect_batch_on_function_error.BisectBatchOnFunctionError"
|
|
325
|
+
] = None,
|
|
326
|
+
maximum_retry_attempts: Optional[
|
|
327
|
+
"aws_sdk_lambda.types.maximum_retry_attempts_event_source_mapping.MaximumRetryAttemptsEventSourceMapping"
|
|
328
|
+
] = None,
|
|
329
|
+
parallelization_factor: Optional[
|
|
330
|
+
"aws_sdk_lambda.types.parallelization_factor.ParallelizationFactor"
|
|
331
|
+
] = None,
|
|
332
|
+
source_access_configurations: Optional[
|
|
333
|
+
"aws_sdk_lambda.types.source_access_configurations.SourceAccessConfigurations"
|
|
334
|
+
] = None,
|
|
335
|
+
tumbling_window_in_seconds: Optional[
|
|
336
|
+
"aws_sdk_lambda.types.tumbling_window_in_seconds.TumblingWindowInSeconds"
|
|
337
|
+
] = None,
|
|
338
|
+
function_response_types: Optional[
|
|
339
|
+
"aws_sdk_lambda.types.function_response_type_list.FunctionResponseTypeList"
|
|
340
|
+
] = None,
|
|
341
|
+
scaling_config: Optional[
|
|
342
|
+
"aws_sdk_lambda.types.scaling_config.ScalingConfig"
|
|
343
|
+
] = None,
|
|
344
|
+
amazon_managed_kafka_event_source_config: Optional[
|
|
345
|
+
"aws_sdk_lambda.types.amazon_managed_kafka_event_source_config.AmazonManagedKafkaEventSourceConfig"
|
|
346
|
+
] = None,
|
|
347
|
+
self_managed_kafka_event_source_config: Optional[
|
|
348
|
+
"aws_sdk_lambda.types.self_managed_kafka_event_source_config.SelfManagedKafkaEventSourceConfig"
|
|
349
|
+
] = None,
|
|
350
|
+
document_db_event_source_config: Optional[
|
|
351
|
+
"aws_sdk_lambda.types.document_db_event_source_config.DocumentDBEventSourceConfig"
|
|
352
|
+
] = None,
|
|
353
|
+
kms_key_arn: Optional["aws_sdk_lambda.types.kms_key_arn.KMSKeyArn"] = None,
|
|
354
|
+
metrics_config: Optional[
|
|
355
|
+
"aws_sdk_lambda.types.event_source_mapping_metrics_config.EventSourceMappingMetricsConfig"
|
|
356
|
+
] = None,
|
|
357
|
+
logging_config: Optional[
|
|
358
|
+
"aws_sdk_lambda.types.event_source_mapping_logging_config.EventSourceMappingLoggingConfig"
|
|
359
|
+
] = None,
|
|
360
|
+
provisioned_poller_config: Optional[
|
|
361
|
+
"aws_sdk_lambda.types.provisioned_poller_config.ProvisionedPollerConfig"
|
|
362
|
+
] = None,
|
|
363
|
+
) -> "aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration":
|
|
364
|
+
"""<p>Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location.</p> <p>For details about how to configure different event sources, see the following topics. </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping\"> Amazon DynamoDB Streams</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping\"> Amazon Kinesis</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource\"> Amazon SQS</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping\"> Amazon MQ and RabbitMQ</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html\"> Amazon MSK</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html\"> Apache Kafka</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html\"> Amazon DocumentDB</a> </p> </li> </ul> <p>The following error handling options are available for stream sources (DynamoDB, Kinesis, Amazon MSK, and self-managed Apache Kafka):</p> <ul> <li> <p> <code>BisectBatchOnFunctionError</code> – If the function returns an error, split the batch in two and retry.</p> </li> <li> <p> <code>MaximumRecordAgeInSeconds</code> – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires</p> </li> <li> <p> <code>MaximumRetryAttempts</code> – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p> </li> <li> <p> <code>OnFailure</code> – Send discarded records to an Amazon SQS queue, Amazon SNS topic, Kafka topic, or Amazon S3 bucket. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-async-destinations\">Adding a destination</a>.</p> </li> </ul> <p>The following option is available only for DynamoDB and Kinesis event sources:</p> <ul> <li> <p> <code>ParallelizationFactor</code> – Process multiple batches from each shard concurrently.</p> </li> </ul> <p>For information about which configuration parameters apply to each event source, see the following topics.</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params\"> Amazon DynamoDB Streams</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params\"> Amazon Kinesis</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params\"> Amazon SQS</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params\"> Amazon MQ and RabbitMQ</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms\"> Amazon MSK</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms\"> Apache Kafka</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html#docdb-configuration\"> Amazon DocumentDB</a> </p> </li> </ul>
|
|
365
|
+
|
|
366
|
+
Args:
|
|
367
|
+
uuid: <p>The identifier of the event source mapping.</p>
|
|
368
|
+
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>MyFunction</code>.</p> </li> <li> <p> <b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p> </li> <li> <p> <b>Version or Alias ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p> </li> <li> <p> <b>Partial ARN</b> – <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.</p>
|
|
369
|
+
enabled: <p>When true, the event source mapping is active. When false, Lambda pauses polling and invocation.</p> <p>Default: True</p>
|
|
370
|
+
batch_size: <p>The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).</p> <ul> <li> <p> <b>Amazon Kinesis</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon DynamoDB Streams</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon Simple Queue Service</b> – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.</p> </li> <li> <p> <b>Amazon Managed Streaming for Apache Kafka</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Self-managed Apache Kafka</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon MQ (ActiveMQ and RabbitMQ)</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>DocumentDB</b> – Default 100. Max 10,000.</p> </li> </ul>
|
|
371
|
+
filter_criteria: <p>An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html\">Lambda event filtering</a>.</p>
|
|
372
|
+
maximum_batching_window_in_seconds: <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p> <p>For Kinesis, DynamoDB, and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.</p> <p>Related setting: For Kinesis, DynamoDB, and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
|
|
373
|
+
destination_config: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it.</p>
|
|
374
|
+
maximum_record_age_in_seconds: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records older than the specified age. The default value is infinite (-1).</p>
|
|
375
|
+
bisect_batch_on_function_error: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) If the function returns an error, split the batch in two and retry.</p>
|
|
376
|
+
maximum_retry_attempts: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p>
|
|
377
|
+
parallelization_factor: <p>(Kinesis and DynamoDB Streams only) The number of batches to process from each shard concurrently.</p>
|
|
378
|
+
source_access_configurations: <p>An array of authentication protocols or VPC components required to secure your event source.</p>
|
|
379
|
+
tumbling_window_in_seconds: <p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.</p>
|
|
380
|
+
function_response_types: <p>(Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, and Amazon SQS) A list of current response type enums applied to the event source mapping.</p>
|
|
381
|
+
scaling_config: <p>(Amazon SQS only) The scaling configuration for the event source. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency\">Configuring maximum concurrency for Amazon SQS event sources</a>.</p>
|
|
382
|
+
document_db_event_source_config: <p>Specific configuration settings for a DocumentDB event source.</p>
|
|
383
|
+
kms_key_arn: <p> The ARN of the Key Management Service (KMS) customer managed key that Lambda uses to encrypt your function's <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics\">filter criteria</a>. By default, Lambda does not encrypt your filter criteria object. Specify this property to encrypt data using your own customer managed key. </p>
|
|
384
|
+
metrics_config: <p>The metrics configuration for your event source. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics\">Event source mapping metrics</a>.</p>
|
|
385
|
+
provisioned_poller_config: <p>(Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode\">provisioned mode</a>.</p>
|
|
386
|
+
|
|
387
|
+
Examples:
|
|
388
|
+
To update a Lambda function event source mapping
|
|
389
|
+
This operation updates a Lambda function event source mapping
|
|
390
|
+
|
|
391
|
+
>>> client.update(uuid='1234xCy789012', function_name='myFunction', enabled=True, batch_size=123)
|
|
392
|
+
"""
|
|
393
|
+
|
|
394
|
+
def _handler(
|
|
395
|
+
req: "OperationRequest[aws_sdk_lambda.types.update_event_source_mapping_request.UpdateEventSourceMappingRequest]",
|
|
396
|
+
) -> OperationResponse[
|
|
397
|
+
"aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration"
|
|
398
|
+
]:
|
|
399
|
+
import aws_sdk_lambda._operations.aws_gir_api_service.update_event_source_mapping
|
|
400
|
+
|
|
401
|
+
output, http_response = (
|
|
402
|
+
aws_sdk_lambda._operations.aws_gir_api_service.update_event_source_mapping.update_event_source_mapping(
|
|
403
|
+
req.options, req.input
|
|
404
|
+
)
|
|
405
|
+
)
|
|
406
|
+
return OperationResponse(output=output, response=http_response)
|
|
407
|
+
|
|
408
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
409
|
+
input: aws_sdk_lambda.types.update_event_source_mapping_request.UpdateEventSourceMappingRequest = {} # type: ignore[typeddict-item]
|
|
410
|
+
input["uuid"] = uuid
|
|
411
|
+
if function_name is not None:
|
|
412
|
+
input["function_name"] = function_name
|
|
413
|
+
if enabled is not None:
|
|
414
|
+
input["enabled"] = enabled
|
|
415
|
+
if batch_size is not None:
|
|
416
|
+
input["batch_size"] = batch_size
|
|
417
|
+
if filter_criteria is not None:
|
|
418
|
+
input["filter_criteria"] = filter_criteria
|
|
419
|
+
if maximum_batching_window_in_seconds is not None:
|
|
420
|
+
input["maximum_batching_window_in_seconds"] = (
|
|
421
|
+
maximum_batching_window_in_seconds
|
|
422
|
+
)
|
|
423
|
+
if destination_config is not None:
|
|
424
|
+
input["destination_config"] = destination_config
|
|
425
|
+
if maximum_record_age_in_seconds is not None:
|
|
426
|
+
input["maximum_record_age_in_seconds"] = maximum_record_age_in_seconds
|
|
427
|
+
if bisect_batch_on_function_error is not None:
|
|
428
|
+
input["bisect_batch_on_function_error"] = bisect_batch_on_function_error
|
|
429
|
+
if maximum_retry_attempts is not None:
|
|
430
|
+
input["maximum_retry_attempts"] = maximum_retry_attempts
|
|
431
|
+
if parallelization_factor is not None:
|
|
432
|
+
input["parallelization_factor"] = parallelization_factor
|
|
433
|
+
if source_access_configurations is not None:
|
|
434
|
+
input["source_access_configurations"] = source_access_configurations
|
|
435
|
+
if tumbling_window_in_seconds is not None:
|
|
436
|
+
input["tumbling_window_in_seconds"] = tumbling_window_in_seconds
|
|
437
|
+
if function_response_types is not None:
|
|
438
|
+
input["function_response_types"] = function_response_types
|
|
439
|
+
if scaling_config is not None:
|
|
440
|
+
input["scaling_config"] = scaling_config
|
|
441
|
+
if amazon_managed_kafka_event_source_config is not None:
|
|
442
|
+
input["amazon_managed_kafka_event_source_config"] = (
|
|
443
|
+
amazon_managed_kafka_event_source_config
|
|
444
|
+
)
|
|
445
|
+
if self_managed_kafka_event_source_config is not None:
|
|
446
|
+
input["self_managed_kafka_event_source_config"] = (
|
|
447
|
+
self_managed_kafka_event_source_config
|
|
448
|
+
)
|
|
449
|
+
if document_db_event_source_config is not None:
|
|
450
|
+
input["document_db_event_source_config"] = document_db_event_source_config
|
|
451
|
+
if kms_key_arn is not None:
|
|
452
|
+
input["kms_key_arn"] = kms_key_arn
|
|
453
|
+
if metrics_config is not None:
|
|
454
|
+
input["metrics_config"] = metrics_config
|
|
455
|
+
if logging_config is not None:
|
|
456
|
+
input["logging_config"] = logging_config
|
|
457
|
+
if provisioned_poller_config is not None:
|
|
458
|
+
input["provisioned_poller_config"] = provisioned_poller_config
|
|
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 delete(
|
|
468
|
+
self,
|
|
469
|
+
uuid: "aws_sdk_lambda.types.string.String",
|
|
470
|
+
*,
|
|
471
|
+
config_overrides: Optional[LambdaClientConfig] = None,
|
|
472
|
+
) -> "aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration":
|
|
473
|
+
"""<p>Deletes an <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/intro-invocation-modes.html\">event source mapping</a>. You can get the identifier of a mapping from the output of <a>ListEventSourceMappings</a>.</p> <p>When you delete an event source mapping, it enters a <code>Deleting</code> state and might not be completely deleted for several seconds.</p>
|
|
474
|
+
|
|
475
|
+
Args:
|
|
476
|
+
uuid: <p>The identifier of the event source mapping.</p>
|
|
477
|
+
|
|
478
|
+
Examples:
|
|
479
|
+
To delete a Lambda function event source mapping
|
|
480
|
+
The following example deletes an event source mapping. To get a mapping's UUID, use ListEventSourceMappings.
|
|
481
|
+
|
|
482
|
+
>>> client.delete(uuid='14e0db71-xmpl-4eb5-b481-8945cf9d10c2')
|
|
483
|
+
"""
|
|
484
|
+
|
|
485
|
+
def _handler(
|
|
486
|
+
req: "OperationRequest[aws_sdk_lambda.types.delete_event_source_mapping_request.DeleteEventSourceMappingRequest]",
|
|
487
|
+
) -> OperationResponse[
|
|
488
|
+
"aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration"
|
|
489
|
+
]:
|
|
490
|
+
import aws_sdk_lambda._operations.aws_gir_api_service.delete_event_source_mapping
|
|
491
|
+
|
|
492
|
+
output, http_response = (
|
|
493
|
+
aws_sdk_lambda._operations.aws_gir_api_service.delete_event_source_mapping.delete_event_source_mapping(
|
|
494
|
+
req.options, req.input
|
|
495
|
+
)
|
|
496
|
+
)
|
|
497
|
+
return OperationResponse(output=output, response=http_response)
|
|
498
|
+
|
|
499
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
500
|
+
input: aws_sdk_lambda.types.delete_event_source_mapping_request.DeleteEventSourceMappingRequest = {} # type: ignore[typeddict-item]
|
|
501
|
+
input["uuid"] = uuid
|
|
502
|
+
|
|
503
|
+
response = execute_pipeline(
|
|
504
|
+
OperationRequest(input=input, options=options_),
|
|
505
|
+
handler=_handler,
|
|
506
|
+
interceptors=list(interceptors_),
|
|
507
|
+
)
|
|
508
|
+
return response.output
|
|
509
|
+
|
|
510
|
+
def list(
|
|
511
|
+
self,
|
|
512
|
+
*,
|
|
513
|
+
config_overrides: Optional[LambdaClientConfig] = None,
|
|
514
|
+
event_source_arn: Optional["aws_sdk_lambda.types.arn.Arn"] = None,
|
|
515
|
+
function_name: Optional[
|
|
516
|
+
"aws_sdk_lambda.types.namespaced_function_name.NamespacedFunctionName"
|
|
517
|
+
] = None,
|
|
518
|
+
marker: Optional["aws_sdk_lambda.types.string.String"] = None,
|
|
519
|
+
max_items: Optional["aws_sdk_lambda.types.max_list_items.MaxListItems"] = None,
|
|
520
|
+
) -> "aws_sdk_lambda.types.list_event_source_mappings_response.ListEventSourceMappingsResponse":
|
|
521
|
+
"""<p>Lists event source mappings. Specify an <code>EventSourceArn</code> to show only event source mappings for a single event source.</p>
|
|
522
|
+
|
|
523
|
+
Args:
|
|
524
|
+
event_source_arn: <p>The Amazon Resource Name (ARN) of the event source.</p> <ul> <li> <p> <b>Amazon Kinesis</b> – The ARN of the data stream or a stream consumer.</p> </li> <li> <p> <b>Amazon DynamoDB Streams</b> – The ARN of the stream.</p> </li> <li> <p> <b>Amazon Simple Queue Service</b> – The ARN of the queue.</p> </li> <li> <p> <b>Amazon Managed Streaming for Apache Kafka</b> – The ARN of the cluster or the ARN of the VPC connection (for <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc\">cross-account event source mappings</a>).</p> </li> <li> <p> <b>Amazon MQ</b> – The ARN of the broker.</p> </li> <li> <p> <b>Amazon DocumentDB</b> – The ARN of the DocumentDB change stream.</p> </li> </ul>
|
|
525
|
+
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>MyFunction</code>.</p> </li> <li> <p> <b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p> </li> <li> <p> <b>Version or Alias ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p> </li> <li> <p> <b>Partial ARN</b> – <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.</p>
|
|
526
|
+
marker: <p>A pagination token returned by a previous call.</p>
|
|
527
|
+
max_items: <p>The maximum number of event source mappings to return. Note that ListEventSourceMappings returns a maximum of 100 items in each response, even if you set the number higher.</p>
|
|
528
|
+
|
|
529
|
+
Examples:
|
|
530
|
+
To list the event source mappings for a function
|
|
531
|
+
The following example returns a list of the event source mappings for a function named my-function.
|
|
532
|
+
|
|
533
|
+
>>> client.list(function_name='my-function')
|
|
534
|
+
"""
|
|
535
|
+
|
|
536
|
+
def _handler(
|
|
537
|
+
req: "OperationRequest[aws_sdk_lambda.types.list_event_source_mappings_request.ListEventSourceMappingsRequest]",
|
|
538
|
+
) -> OperationResponse[
|
|
539
|
+
"aws_sdk_lambda.types.list_event_source_mappings_response.ListEventSourceMappingsResponse"
|
|
540
|
+
]:
|
|
541
|
+
import aws_sdk_lambda._operations.aws_gir_api_service.list_event_source_mappings
|
|
542
|
+
|
|
543
|
+
output, http_response = (
|
|
544
|
+
aws_sdk_lambda._operations.aws_gir_api_service.list_event_source_mappings.list_event_source_mappings(
|
|
545
|
+
req.options, req.input
|
|
546
|
+
)
|
|
547
|
+
)
|
|
548
|
+
return OperationResponse(output=output, response=http_response)
|
|
549
|
+
|
|
550
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
551
|
+
input: aws_sdk_lambda.types.list_event_source_mappings_request.ListEventSourceMappingsRequest = {} # type: ignore[typeddict-item]
|
|
552
|
+
if event_source_arn is not None:
|
|
553
|
+
input["event_source_arn"] = event_source_arn
|
|
554
|
+
if function_name is not None:
|
|
555
|
+
input["function_name"] = function_name
|
|
556
|
+
if marker is not None:
|
|
557
|
+
input["marker"] = marker
|
|
558
|
+
if max_items is not None:
|
|
559
|
+
input["max_items"] = max_items
|
|
560
|
+
|
|
561
|
+
response = execute_pipeline(
|
|
562
|
+
OperationRequest(input=input, options=options_),
|
|
563
|
+
handler=_handler,
|
|
564
|
+
interceptors=list(interceptors_),
|
|
565
|
+
)
|
|
566
|
+
return response.output
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
class AsyncEventSourceMapping:
|
|
570
|
+
def __init__(self, service: AsyncLambdaClient) -> None:
|
|
571
|
+
self._service = service
|
|
572
|
+
|
|
573
|
+
async def create(
|
|
574
|
+
self,
|
|
575
|
+
function_name: "aws_sdk_lambda.types.namespaced_function_name.NamespacedFunctionName",
|
|
576
|
+
*,
|
|
577
|
+
config_overrides: Optional[AsyncLambdaClientConfig] = None,
|
|
578
|
+
event_source_arn: Optional["aws_sdk_lambda.types.arn.Arn"] = None,
|
|
579
|
+
enabled: Optional["aws_sdk_lambda.types.enabled.Enabled"] = None,
|
|
580
|
+
batch_size: Optional["aws_sdk_lambda.types.batch_size.BatchSize"] = None,
|
|
581
|
+
filter_criteria: Optional[
|
|
582
|
+
"aws_sdk_lambda.types.filter_criteria.FilterCriteria"
|
|
583
|
+
] = None,
|
|
584
|
+
maximum_batching_window_in_seconds: Optional[
|
|
585
|
+
"aws_sdk_lambda.types.maximum_batching_window_in_seconds.MaximumBatchingWindowInSeconds"
|
|
586
|
+
] = None,
|
|
587
|
+
parallelization_factor: Optional[
|
|
588
|
+
"aws_sdk_lambda.types.parallelization_factor.ParallelizationFactor"
|
|
589
|
+
] = None,
|
|
590
|
+
starting_position: Optional[
|
|
591
|
+
"aws_sdk_lambda.types.event_source_position.EventSourcePosition"
|
|
592
|
+
] = None,
|
|
593
|
+
starting_position_timestamp: Optional["aws_sdk_lambda.types.date.Date"] = None,
|
|
594
|
+
destination_config: Optional[
|
|
595
|
+
"aws_sdk_lambda.types.destination_config.DestinationConfig"
|
|
596
|
+
] = None,
|
|
597
|
+
maximum_record_age_in_seconds: Optional[
|
|
598
|
+
"aws_sdk_lambda.types.maximum_record_age_in_seconds.MaximumRecordAgeInSeconds"
|
|
599
|
+
] = None,
|
|
600
|
+
bisect_batch_on_function_error: Optional[
|
|
601
|
+
"aws_sdk_lambda.types.bisect_batch_on_function_error.BisectBatchOnFunctionError"
|
|
602
|
+
] = None,
|
|
603
|
+
maximum_retry_attempts: Optional[
|
|
604
|
+
"aws_sdk_lambda.types.maximum_retry_attempts_event_source_mapping.MaximumRetryAttemptsEventSourceMapping"
|
|
605
|
+
] = None,
|
|
606
|
+
tags: Optional["aws_sdk_lambda.types.tags.Tags"] = None,
|
|
607
|
+
tumbling_window_in_seconds: Optional[
|
|
608
|
+
"aws_sdk_lambda.types.tumbling_window_in_seconds.TumblingWindowInSeconds"
|
|
609
|
+
] = None,
|
|
610
|
+
topics: Optional["aws_sdk_lambda.types.topics.Topics"] = None,
|
|
611
|
+
queues: Optional["aws_sdk_lambda.types.queues.Queues"] = None,
|
|
612
|
+
source_access_configurations: Optional[
|
|
613
|
+
"aws_sdk_lambda.types.source_access_configurations.SourceAccessConfigurations"
|
|
614
|
+
] = None,
|
|
615
|
+
self_managed_event_source: Optional[
|
|
616
|
+
"aws_sdk_lambda.types.self_managed_event_source.SelfManagedEventSource"
|
|
617
|
+
] = None,
|
|
618
|
+
function_response_types: Optional[
|
|
619
|
+
"aws_sdk_lambda.types.function_response_type_list.FunctionResponseTypeList"
|
|
620
|
+
] = None,
|
|
621
|
+
amazon_managed_kafka_event_source_config: Optional[
|
|
622
|
+
"aws_sdk_lambda.types.amazon_managed_kafka_event_source_config.AmazonManagedKafkaEventSourceConfig"
|
|
623
|
+
] = None,
|
|
624
|
+
self_managed_kafka_event_source_config: Optional[
|
|
625
|
+
"aws_sdk_lambda.types.self_managed_kafka_event_source_config.SelfManagedKafkaEventSourceConfig"
|
|
626
|
+
] = None,
|
|
627
|
+
scaling_config: Optional[
|
|
628
|
+
"aws_sdk_lambda.types.scaling_config.ScalingConfig"
|
|
629
|
+
] = None,
|
|
630
|
+
document_db_event_source_config: Optional[
|
|
631
|
+
"aws_sdk_lambda.types.document_db_event_source_config.DocumentDBEventSourceConfig"
|
|
632
|
+
] = None,
|
|
633
|
+
kms_key_arn: Optional["aws_sdk_lambda.types.kms_key_arn.KMSKeyArn"] = None,
|
|
634
|
+
metrics_config: Optional[
|
|
635
|
+
"aws_sdk_lambda.types.event_source_mapping_metrics_config.EventSourceMappingMetricsConfig"
|
|
636
|
+
] = None,
|
|
637
|
+
logging_config: Optional[
|
|
638
|
+
"aws_sdk_lambda.types.event_source_mapping_logging_config.EventSourceMappingLoggingConfig"
|
|
639
|
+
] = None,
|
|
640
|
+
provisioned_poller_config: Optional[
|
|
641
|
+
"aws_sdk_lambda.types.provisioned_poller_config.ProvisionedPollerConfig"
|
|
642
|
+
] = None,
|
|
643
|
+
) -> "aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration":
|
|
644
|
+
"""<p>Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function.</p> <p>For details about how to configure different event sources, see the following topics. </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping\"> Amazon DynamoDB Streams</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping\"> Amazon Kinesis</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource\"> Amazon SQS</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping\"> Amazon MQ and RabbitMQ</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html\"> Amazon MSK</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html\"> Apache Kafka</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html\"> Amazon DocumentDB</a> </p> </li> </ul> <p>The following error handling options are available for stream sources (DynamoDB, Kinesis, Amazon MSK, and self-managed Apache Kafka):</p> <ul> <li> <p> <code>BisectBatchOnFunctionError</code> – If the function returns an error, split the batch in two and retry.</p> </li> <li> <p> <code>MaximumRecordAgeInSeconds</code> – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires</p> </li> <li> <p> <code>MaximumRetryAttempts</code> – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p> </li> <li> <p> <code>OnFailure</code> – Send discarded records to an Amazon SQS queue, Amazon SNS topic, Kafka topic, or Amazon S3 bucket. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-async-destinations\">Adding a destination</a>.</p> </li> </ul> <p>The following option is available only for DynamoDB and Kinesis event sources:</p> <ul> <li> <p> <code>ParallelizationFactor</code> – Process multiple batches from each shard concurrently.</p> </li> </ul> <p>For information about which configuration parameters apply to each event source, see the following topics.</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params\"> Amazon DynamoDB Streams</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params\"> Amazon Kinesis</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params\"> Amazon SQS</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params\"> Amazon MQ and RabbitMQ</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms\"> Amazon MSK</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms\"> Apache Kafka</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html#docdb-configuration\"> Amazon DocumentDB</a> </p> </li> </ul>
|
|
645
|
+
|
|
646
|
+
Args:
|
|
647
|
+
event_source_arn: <p>The Amazon Resource Name (ARN) of the event source.</p> <ul> <li> <p> <b>Amazon Kinesis</b> – The ARN of the data stream or a stream consumer.</p> </li> <li> <p> <b>Amazon DynamoDB Streams</b> – The ARN of the stream.</p> </li> <li> <p> <b>Amazon Simple Queue Service</b> – The ARN of the queue.</p> </li> <li> <p> <b>Amazon Managed Streaming for Apache Kafka</b> – The ARN of the cluster or the ARN of the VPC connection (for <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc\">cross-account event source mappings</a>).</p> </li> <li> <p> <b>Amazon MQ</b> – The ARN of the broker.</p> </li> <li> <p> <b>Amazon DocumentDB</b> – The ARN of the DocumentDB change stream.</p> </li> </ul>
|
|
648
|
+
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>MyFunction</code>.</p> </li> <li> <p> <b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p> </li> <li> <p> <b>Version or Alias ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p> </li> <li> <p> <b>Partial ARN</b> – <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.</p>
|
|
649
|
+
enabled: <p>When true, the event source mapping is active. When false, Lambda pauses polling and invocation.</p> <p>Default: True</p>
|
|
650
|
+
batch_size: <p>The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).</p> <ul> <li> <p> <b>Amazon Kinesis</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon DynamoDB Streams</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon Simple Queue Service</b> – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.</p> </li> <li> <p> <b>Amazon Managed Streaming for Apache Kafka</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Self-managed Apache Kafka</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon MQ (ActiveMQ and RabbitMQ)</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>DocumentDB</b> – Default 100. Max 10,000.</p> </li> </ul>
|
|
651
|
+
filter_criteria: <p>An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html\">Lambda event filtering</a>.</p>
|
|
652
|
+
maximum_batching_window_in_seconds: <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p> <p>For Kinesis, DynamoDB, and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.</p> <p>Related setting: For Kinesis, DynamoDB, and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
|
|
653
|
+
parallelization_factor: <p>(Kinesis and DynamoDB Streams only) The number of batches to process from each shard concurrently.</p>
|
|
654
|
+
starting_position: <p>The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Stream event sources. <code>AT_TIMESTAMP</code> is supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and self-managed Apache Kafka.</p>
|
|
655
|
+
starting_position_timestamp: <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time from which to start reading. <code>StartingPositionTimestamp</code> cannot be in the future.</p>
|
|
656
|
+
destination_config: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it.</p>
|
|
657
|
+
maximum_record_age_in_seconds: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records older than the specified age. The default value is infinite (-1).</p>
|
|
658
|
+
bisect_batch_on_function_error: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) If the function returns an error, split the batch in two and retry.</p>
|
|
659
|
+
maximum_retry_attempts: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p>
|
|
660
|
+
tags: <p>A list of tags to apply to the event source mapping.</p>
|
|
661
|
+
tumbling_window_in_seconds: <p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.</p>
|
|
662
|
+
topics: <p>The name of the Kafka topic.</p>
|
|
663
|
+
queues: <p> (MQ) The name of the Amazon MQ broker destination queue to consume. </p>
|
|
664
|
+
source_access_configurations: <p>An array of authentication protocols or VPC components required to secure your event source.</p>
|
|
665
|
+
self_managed_event_source: <p>The self-managed Apache Kafka cluster to receive records from.</p>
|
|
666
|
+
function_response_types: <p>(Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, and Amazon SQS) A list of current response type enums applied to the event source mapping.</p>
|
|
667
|
+
amazon_managed_kafka_event_source_config: <p>Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.</p>
|
|
668
|
+
self_managed_kafka_event_source_config: <p>Specific configuration settings for a self-managed Apache Kafka event source.</p>
|
|
669
|
+
scaling_config: <p>(Amazon SQS only) The scaling configuration for the event source. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency\">Configuring maximum concurrency for Amazon SQS event sources</a>.</p>
|
|
670
|
+
document_db_event_source_config: <p>Specific configuration settings for a DocumentDB event source.</p>
|
|
671
|
+
kms_key_arn: <p> The ARN of the Key Management Service (KMS) customer managed key that Lambda uses to encrypt your function's <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics\">filter criteria</a>. By default, Lambda does not encrypt your filter criteria object. Specify this property to encrypt data using your own customer managed key. </p>
|
|
672
|
+
metrics_config: <p>The metrics configuration for your event source. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics\">Event source mapping metrics</a>.</p>
|
|
673
|
+
logging_config: <p>(Amazon MSK, and self-managed Apache Kafka only) The logging configuration for your event source. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/esm-logging.html\">Event source mapping logging</a>.</p>
|
|
674
|
+
provisioned_poller_config: <p>(Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode\">provisioned mode</a>.</p>
|
|
675
|
+
|
|
676
|
+
Examples:
|
|
677
|
+
To create a mapping between an event source and an AWS Lambda function
|
|
678
|
+
The following example creates a mapping between an SQS queue and the my-function Lambda function.
|
|
679
|
+
|
|
680
|
+
>>> await client.create(event_source_arn='arn:aws:sqs:us-west-2:123456789012:my-queue', function_name='my-function', batch_size=5)
|
|
681
|
+
"""
|
|
682
|
+
|
|
683
|
+
async def _handler(
|
|
684
|
+
req: "AsyncOperationRequest[aws_sdk_lambda.types.create_event_source_mapping_request.CreateEventSourceMappingRequest]",
|
|
685
|
+
) -> AsyncOperationResponse[
|
|
686
|
+
"aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration"
|
|
687
|
+
]:
|
|
688
|
+
import aws_sdk_lambda._operations.aws_gir_api_service.create_event_source_mapping
|
|
689
|
+
|
|
690
|
+
(
|
|
691
|
+
output,
|
|
692
|
+
http_response,
|
|
693
|
+
) = await aws_sdk_lambda._operations.aws_gir_api_service.create_event_source_mapping.async_create_event_source_mapping(
|
|
694
|
+
req.options, req.input
|
|
695
|
+
)
|
|
696
|
+
return AsyncOperationResponse(output=output, response=http_response)
|
|
697
|
+
|
|
698
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
699
|
+
input: aws_sdk_lambda.types.create_event_source_mapping_request.CreateEventSourceMappingRequest = {} # type: ignore[typeddict-item]
|
|
700
|
+
if event_source_arn is not None:
|
|
701
|
+
input["event_source_arn"] = event_source_arn
|
|
702
|
+
input["function_name"] = function_name
|
|
703
|
+
if enabled is not None:
|
|
704
|
+
input["enabled"] = enabled
|
|
705
|
+
if batch_size is not None:
|
|
706
|
+
input["batch_size"] = batch_size
|
|
707
|
+
if filter_criteria is not None:
|
|
708
|
+
input["filter_criteria"] = filter_criteria
|
|
709
|
+
if maximum_batching_window_in_seconds is not None:
|
|
710
|
+
input["maximum_batching_window_in_seconds"] = (
|
|
711
|
+
maximum_batching_window_in_seconds
|
|
712
|
+
)
|
|
713
|
+
if parallelization_factor is not None:
|
|
714
|
+
input["parallelization_factor"] = parallelization_factor
|
|
715
|
+
if starting_position is not None:
|
|
716
|
+
input["starting_position"] = starting_position
|
|
717
|
+
if starting_position_timestamp is not None:
|
|
718
|
+
input["starting_position_timestamp"] = starting_position_timestamp
|
|
719
|
+
if destination_config is not None:
|
|
720
|
+
input["destination_config"] = destination_config
|
|
721
|
+
if maximum_record_age_in_seconds is not None:
|
|
722
|
+
input["maximum_record_age_in_seconds"] = maximum_record_age_in_seconds
|
|
723
|
+
if bisect_batch_on_function_error is not None:
|
|
724
|
+
input["bisect_batch_on_function_error"] = bisect_batch_on_function_error
|
|
725
|
+
if maximum_retry_attempts is not None:
|
|
726
|
+
input["maximum_retry_attempts"] = maximum_retry_attempts
|
|
727
|
+
if tags is not None:
|
|
728
|
+
input["tags"] = tags
|
|
729
|
+
if tumbling_window_in_seconds is not None:
|
|
730
|
+
input["tumbling_window_in_seconds"] = tumbling_window_in_seconds
|
|
731
|
+
if topics is not None:
|
|
732
|
+
input["topics"] = topics
|
|
733
|
+
if queues is not None:
|
|
734
|
+
input["queues"] = queues
|
|
735
|
+
if source_access_configurations is not None:
|
|
736
|
+
input["source_access_configurations"] = source_access_configurations
|
|
737
|
+
if self_managed_event_source is not None:
|
|
738
|
+
input["self_managed_event_source"] = self_managed_event_source
|
|
739
|
+
if function_response_types is not None:
|
|
740
|
+
input["function_response_types"] = function_response_types
|
|
741
|
+
if amazon_managed_kafka_event_source_config is not None:
|
|
742
|
+
input["amazon_managed_kafka_event_source_config"] = (
|
|
743
|
+
amazon_managed_kafka_event_source_config
|
|
744
|
+
)
|
|
745
|
+
if self_managed_kafka_event_source_config is not None:
|
|
746
|
+
input["self_managed_kafka_event_source_config"] = (
|
|
747
|
+
self_managed_kafka_event_source_config
|
|
748
|
+
)
|
|
749
|
+
if scaling_config is not None:
|
|
750
|
+
input["scaling_config"] = scaling_config
|
|
751
|
+
if document_db_event_source_config is not None:
|
|
752
|
+
input["document_db_event_source_config"] = document_db_event_source_config
|
|
753
|
+
if kms_key_arn is not None:
|
|
754
|
+
input["kms_key_arn"] = kms_key_arn
|
|
755
|
+
if metrics_config is not None:
|
|
756
|
+
input["metrics_config"] = metrics_config
|
|
757
|
+
if logging_config is not None:
|
|
758
|
+
input["logging_config"] = logging_config
|
|
759
|
+
if provisioned_poller_config is not None:
|
|
760
|
+
input["provisioned_poller_config"] = provisioned_poller_config
|
|
761
|
+
|
|
762
|
+
response = await aexecute_pipeline(
|
|
763
|
+
AsyncOperationRequest(input=input, options=options_),
|
|
764
|
+
handler=_handler,
|
|
765
|
+
interceptors=list(interceptors_),
|
|
766
|
+
)
|
|
767
|
+
return response.output
|
|
768
|
+
|
|
769
|
+
async def read(
|
|
770
|
+
self,
|
|
771
|
+
uuid: "aws_sdk_lambda.types.string.String",
|
|
772
|
+
*,
|
|
773
|
+
config_overrides: Optional[AsyncLambdaClientConfig] = None,
|
|
774
|
+
) -> "aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration":
|
|
775
|
+
"""<p>Returns details about an event source mapping. You can get the identifier of a mapping from the output of <a>ListEventSourceMappings</a>.</p>
|
|
776
|
+
|
|
777
|
+
Args:
|
|
778
|
+
uuid: <p>The identifier of the event source mapping.</p>
|
|
779
|
+
|
|
780
|
+
Examples:
|
|
781
|
+
To get a Lambda function's event source mapping
|
|
782
|
+
The following example returns details about an event source mapping. To get a mapping's UUID, use ListEventSourceMappings.
|
|
783
|
+
|
|
784
|
+
>>> await client.read(uuid='14e0db71-xmpl-4eb5-b481-8945cf9d10c2')
|
|
785
|
+
"""
|
|
786
|
+
|
|
787
|
+
async def _handler(
|
|
788
|
+
req: "AsyncOperationRequest[aws_sdk_lambda.types.get_event_source_mapping_request.GetEventSourceMappingRequest]",
|
|
789
|
+
) -> AsyncOperationResponse[
|
|
790
|
+
"aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration"
|
|
791
|
+
]:
|
|
792
|
+
import aws_sdk_lambda._operations.aws_gir_api_service.get_event_source_mapping
|
|
793
|
+
|
|
794
|
+
(
|
|
795
|
+
output,
|
|
796
|
+
http_response,
|
|
797
|
+
) = await aws_sdk_lambda._operations.aws_gir_api_service.get_event_source_mapping.async_get_event_source_mapping(
|
|
798
|
+
req.options, req.input
|
|
799
|
+
)
|
|
800
|
+
return AsyncOperationResponse(output=output, response=http_response)
|
|
801
|
+
|
|
802
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
803
|
+
input: aws_sdk_lambda.types.get_event_source_mapping_request.GetEventSourceMappingRequest = {} # type: ignore[typeddict-item]
|
|
804
|
+
input["uuid"] = uuid
|
|
805
|
+
|
|
806
|
+
response = await aexecute_pipeline(
|
|
807
|
+
AsyncOperationRequest(input=input, options=options_),
|
|
808
|
+
handler=_handler,
|
|
809
|
+
interceptors=list(interceptors_),
|
|
810
|
+
)
|
|
811
|
+
return response.output
|
|
812
|
+
|
|
813
|
+
async def update(
|
|
814
|
+
self,
|
|
815
|
+
uuid: "aws_sdk_lambda.types.string.String",
|
|
816
|
+
*,
|
|
817
|
+
config_overrides: Optional[AsyncLambdaClientConfig] = None,
|
|
818
|
+
function_name: Optional[
|
|
819
|
+
"aws_sdk_lambda.types.namespaced_function_name.NamespacedFunctionName"
|
|
820
|
+
] = None,
|
|
821
|
+
enabled: Optional["aws_sdk_lambda.types.enabled.Enabled"] = None,
|
|
822
|
+
batch_size: Optional["aws_sdk_lambda.types.batch_size.BatchSize"] = None,
|
|
823
|
+
filter_criteria: Optional[
|
|
824
|
+
"aws_sdk_lambda.types.filter_criteria.FilterCriteria"
|
|
825
|
+
] = None,
|
|
826
|
+
maximum_batching_window_in_seconds: Optional[
|
|
827
|
+
"aws_sdk_lambda.types.maximum_batching_window_in_seconds.MaximumBatchingWindowInSeconds"
|
|
828
|
+
] = None,
|
|
829
|
+
destination_config: Optional[
|
|
830
|
+
"aws_sdk_lambda.types.destination_config.DestinationConfig"
|
|
831
|
+
] = None,
|
|
832
|
+
maximum_record_age_in_seconds: Optional[
|
|
833
|
+
"aws_sdk_lambda.types.maximum_record_age_in_seconds.MaximumRecordAgeInSeconds"
|
|
834
|
+
] = None,
|
|
835
|
+
bisect_batch_on_function_error: Optional[
|
|
836
|
+
"aws_sdk_lambda.types.bisect_batch_on_function_error.BisectBatchOnFunctionError"
|
|
837
|
+
] = None,
|
|
838
|
+
maximum_retry_attempts: Optional[
|
|
839
|
+
"aws_sdk_lambda.types.maximum_retry_attempts_event_source_mapping.MaximumRetryAttemptsEventSourceMapping"
|
|
840
|
+
] = None,
|
|
841
|
+
parallelization_factor: Optional[
|
|
842
|
+
"aws_sdk_lambda.types.parallelization_factor.ParallelizationFactor"
|
|
843
|
+
] = None,
|
|
844
|
+
source_access_configurations: Optional[
|
|
845
|
+
"aws_sdk_lambda.types.source_access_configurations.SourceAccessConfigurations"
|
|
846
|
+
] = None,
|
|
847
|
+
tumbling_window_in_seconds: Optional[
|
|
848
|
+
"aws_sdk_lambda.types.tumbling_window_in_seconds.TumblingWindowInSeconds"
|
|
849
|
+
] = None,
|
|
850
|
+
function_response_types: Optional[
|
|
851
|
+
"aws_sdk_lambda.types.function_response_type_list.FunctionResponseTypeList"
|
|
852
|
+
] = None,
|
|
853
|
+
scaling_config: Optional[
|
|
854
|
+
"aws_sdk_lambda.types.scaling_config.ScalingConfig"
|
|
855
|
+
] = None,
|
|
856
|
+
amazon_managed_kafka_event_source_config: Optional[
|
|
857
|
+
"aws_sdk_lambda.types.amazon_managed_kafka_event_source_config.AmazonManagedKafkaEventSourceConfig"
|
|
858
|
+
] = None,
|
|
859
|
+
self_managed_kafka_event_source_config: Optional[
|
|
860
|
+
"aws_sdk_lambda.types.self_managed_kafka_event_source_config.SelfManagedKafkaEventSourceConfig"
|
|
861
|
+
] = None,
|
|
862
|
+
document_db_event_source_config: Optional[
|
|
863
|
+
"aws_sdk_lambda.types.document_db_event_source_config.DocumentDBEventSourceConfig"
|
|
864
|
+
] = None,
|
|
865
|
+
kms_key_arn: Optional["aws_sdk_lambda.types.kms_key_arn.KMSKeyArn"] = None,
|
|
866
|
+
metrics_config: Optional[
|
|
867
|
+
"aws_sdk_lambda.types.event_source_mapping_metrics_config.EventSourceMappingMetricsConfig"
|
|
868
|
+
] = None,
|
|
869
|
+
logging_config: Optional[
|
|
870
|
+
"aws_sdk_lambda.types.event_source_mapping_logging_config.EventSourceMappingLoggingConfig"
|
|
871
|
+
] = None,
|
|
872
|
+
provisioned_poller_config: Optional[
|
|
873
|
+
"aws_sdk_lambda.types.provisioned_poller_config.ProvisionedPollerConfig"
|
|
874
|
+
] = None,
|
|
875
|
+
) -> "aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration":
|
|
876
|
+
"""<p>Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location.</p> <p>For details about how to configure different event sources, see the following topics. </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping\"> Amazon DynamoDB Streams</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping\"> Amazon Kinesis</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource\"> Amazon SQS</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping\"> Amazon MQ and RabbitMQ</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html\"> Amazon MSK</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html\"> Apache Kafka</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html\"> Amazon DocumentDB</a> </p> </li> </ul> <p>The following error handling options are available for stream sources (DynamoDB, Kinesis, Amazon MSK, and self-managed Apache Kafka):</p> <ul> <li> <p> <code>BisectBatchOnFunctionError</code> – If the function returns an error, split the batch in two and retry.</p> </li> <li> <p> <code>MaximumRecordAgeInSeconds</code> – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires</p> </li> <li> <p> <code>MaximumRetryAttempts</code> – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p> </li> <li> <p> <code>OnFailure</code> – Send discarded records to an Amazon SQS queue, Amazon SNS topic, Kafka topic, or Amazon S3 bucket. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-async-destinations\">Adding a destination</a>.</p> </li> </ul> <p>The following option is available only for DynamoDB and Kinesis event sources:</p> <ul> <li> <p> <code>ParallelizationFactor</code> – Process multiple batches from each shard concurrently.</p> </li> </ul> <p>For information about which configuration parameters apply to each event source, see the following topics.</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params\"> Amazon DynamoDB Streams</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params\"> Amazon Kinesis</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params\"> Amazon SQS</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params\"> Amazon MQ and RabbitMQ</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms\"> Amazon MSK</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms\"> Apache Kafka</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html#docdb-configuration\"> Amazon DocumentDB</a> </p> </li> </ul>
|
|
877
|
+
|
|
878
|
+
Args:
|
|
879
|
+
uuid: <p>The identifier of the event source mapping.</p>
|
|
880
|
+
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>MyFunction</code>.</p> </li> <li> <p> <b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p> </li> <li> <p> <b>Version or Alias ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p> </li> <li> <p> <b>Partial ARN</b> – <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.</p>
|
|
881
|
+
enabled: <p>When true, the event source mapping is active. When false, Lambda pauses polling and invocation.</p> <p>Default: True</p>
|
|
882
|
+
batch_size: <p>The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).</p> <ul> <li> <p> <b>Amazon Kinesis</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon DynamoDB Streams</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon Simple Queue Service</b> – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.</p> </li> <li> <p> <b>Amazon Managed Streaming for Apache Kafka</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Self-managed Apache Kafka</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>Amazon MQ (ActiveMQ and RabbitMQ)</b> – Default 100. Max 10,000.</p> </li> <li> <p> <b>DocumentDB</b> – Default 100. Max 10,000.</p> </li> </ul>
|
|
883
|
+
filter_criteria: <p>An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html\">Lambda event filtering</a>.</p>
|
|
884
|
+
maximum_batching_window_in_seconds: <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p> <p>For Kinesis, DynamoDB, and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.</p> <p>Related setting: For Kinesis, DynamoDB, and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
|
|
885
|
+
destination_config: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it.</p>
|
|
886
|
+
maximum_record_age_in_seconds: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records older than the specified age. The default value is infinite (-1).</p>
|
|
887
|
+
bisect_batch_on_function_error: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) If the function returns an error, split the batch in two and retry.</p>
|
|
888
|
+
maximum_retry_attempts: <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p>
|
|
889
|
+
parallelization_factor: <p>(Kinesis and DynamoDB Streams only) The number of batches to process from each shard concurrently.</p>
|
|
890
|
+
source_access_configurations: <p>An array of authentication protocols or VPC components required to secure your event source.</p>
|
|
891
|
+
tumbling_window_in_seconds: <p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.</p>
|
|
892
|
+
function_response_types: <p>(Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, and Amazon SQS) A list of current response type enums applied to the event source mapping.</p>
|
|
893
|
+
scaling_config: <p>(Amazon SQS only) The scaling configuration for the event source. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency\">Configuring maximum concurrency for Amazon SQS event sources</a>.</p>
|
|
894
|
+
document_db_event_source_config: <p>Specific configuration settings for a DocumentDB event source.</p>
|
|
895
|
+
kms_key_arn: <p> The ARN of the Key Management Service (KMS) customer managed key that Lambda uses to encrypt your function's <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics\">filter criteria</a>. By default, Lambda does not encrypt your filter criteria object. Specify this property to encrypt data using your own customer managed key. </p>
|
|
896
|
+
metrics_config: <p>The metrics configuration for your event source. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics\">Event source mapping metrics</a>.</p>
|
|
897
|
+
provisioned_poller_config: <p>(Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode\">provisioned mode</a>.</p>
|
|
898
|
+
|
|
899
|
+
Examples:
|
|
900
|
+
To update a Lambda function event source mapping
|
|
901
|
+
This operation updates a Lambda function event source mapping
|
|
902
|
+
|
|
903
|
+
>>> await client.update(uuid='1234xCy789012', function_name='myFunction', enabled=True, batch_size=123)
|
|
904
|
+
"""
|
|
905
|
+
|
|
906
|
+
async def _handler(
|
|
907
|
+
req: "AsyncOperationRequest[aws_sdk_lambda.types.update_event_source_mapping_request.UpdateEventSourceMappingRequest]",
|
|
908
|
+
) -> AsyncOperationResponse[
|
|
909
|
+
"aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration"
|
|
910
|
+
]:
|
|
911
|
+
import aws_sdk_lambda._operations.aws_gir_api_service.update_event_source_mapping
|
|
912
|
+
|
|
913
|
+
(
|
|
914
|
+
output,
|
|
915
|
+
http_response,
|
|
916
|
+
) = await aws_sdk_lambda._operations.aws_gir_api_service.update_event_source_mapping.async_update_event_source_mapping(
|
|
917
|
+
req.options, req.input
|
|
918
|
+
)
|
|
919
|
+
return AsyncOperationResponse(output=output, response=http_response)
|
|
920
|
+
|
|
921
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
922
|
+
input: aws_sdk_lambda.types.update_event_source_mapping_request.UpdateEventSourceMappingRequest = {} # type: ignore[typeddict-item]
|
|
923
|
+
input["uuid"] = uuid
|
|
924
|
+
if function_name is not None:
|
|
925
|
+
input["function_name"] = function_name
|
|
926
|
+
if enabled is not None:
|
|
927
|
+
input["enabled"] = enabled
|
|
928
|
+
if batch_size is not None:
|
|
929
|
+
input["batch_size"] = batch_size
|
|
930
|
+
if filter_criteria is not None:
|
|
931
|
+
input["filter_criteria"] = filter_criteria
|
|
932
|
+
if maximum_batching_window_in_seconds is not None:
|
|
933
|
+
input["maximum_batching_window_in_seconds"] = (
|
|
934
|
+
maximum_batching_window_in_seconds
|
|
935
|
+
)
|
|
936
|
+
if destination_config is not None:
|
|
937
|
+
input["destination_config"] = destination_config
|
|
938
|
+
if maximum_record_age_in_seconds is not None:
|
|
939
|
+
input["maximum_record_age_in_seconds"] = maximum_record_age_in_seconds
|
|
940
|
+
if bisect_batch_on_function_error is not None:
|
|
941
|
+
input["bisect_batch_on_function_error"] = bisect_batch_on_function_error
|
|
942
|
+
if maximum_retry_attempts is not None:
|
|
943
|
+
input["maximum_retry_attempts"] = maximum_retry_attempts
|
|
944
|
+
if parallelization_factor is not None:
|
|
945
|
+
input["parallelization_factor"] = parallelization_factor
|
|
946
|
+
if source_access_configurations is not None:
|
|
947
|
+
input["source_access_configurations"] = source_access_configurations
|
|
948
|
+
if tumbling_window_in_seconds is not None:
|
|
949
|
+
input["tumbling_window_in_seconds"] = tumbling_window_in_seconds
|
|
950
|
+
if function_response_types is not None:
|
|
951
|
+
input["function_response_types"] = function_response_types
|
|
952
|
+
if scaling_config is not None:
|
|
953
|
+
input["scaling_config"] = scaling_config
|
|
954
|
+
if amazon_managed_kafka_event_source_config is not None:
|
|
955
|
+
input["amazon_managed_kafka_event_source_config"] = (
|
|
956
|
+
amazon_managed_kafka_event_source_config
|
|
957
|
+
)
|
|
958
|
+
if self_managed_kafka_event_source_config is not None:
|
|
959
|
+
input["self_managed_kafka_event_source_config"] = (
|
|
960
|
+
self_managed_kafka_event_source_config
|
|
961
|
+
)
|
|
962
|
+
if document_db_event_source_config is not None:
|
|
963
|
+
input["document_db_event_source_config"] = document_db_event_source_config
|
|
964
|
+
if kms_key_arn is not None:
|
|
965
|
+
input["kms_key_arn"] = kms_key_arn
|
|
966
|
+
if metrics_config is not None:
|
|
967
|
+
input["metrics_config"] = metrics_config
|
|
968
|
+
if logging_config is not None:
|
|
969
|
+
input["logging_config"] = logging_config
|
|
970
|
+
if provisioned_poller_config is not None:
|
|
971
|
+
input["provisioned_poller_config"] = provisioned_poller_config
|
|
972
|
+
|
|
973
|
+
response = await aexecute_pipeline(
|
|
974
|
+
AsyncOperationRequest(input=input, options=options_),
|
|
975
|
+
handler=_handler,
|
|
976
|
+
interceptors=list(interceptors_),
|
|
977
|
+
)
|
|
978
|
+
return response.output
|
|
979
|
+
|
|
980
|
+
async def delete(
|
|
981
|
+
self,
|
|
982
|
+
uuid: "aws_sdk_lambda.types.string.String",
|
|
983
|
+
*,
|
|
984
|
+
config_overrides: Optional[AsyncLambdaClientConfig] = None,
|
|
985
|
+
) -> "aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration":
|
|
986
|
+
"""<p>Deletes an <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/intro-invocation-modes.html\">event source mapping</a>. You can get the identifier of a mapping from the output of <a>ListEventSourceMappings</a>.</p> <p>When you delete an event source mapping, it enters a <code>Deleting</code> state and might not be completely deleted for several seconds.</p>
|
|
987
|
+
|
|
988
|
+
Args:
|
|
989
|
+
uuid: <p>The identifier of the event source mapping.</p>
|
|
990
|
+
|
|
991
|
+
Examples:
|
|
992
|
+
To delete a Lambda function event source mapping
|
|
993
|
+
The following example deletes an event source mapping. To get a mapping's UUID, use ListEventSourceMappings.
|
|
994
|
+
|
|
995
|
+
>>> await client.delete(uuid='14e0db71-xmpl-4eb5-b481-8945cf9d10c2')
|
|
996
|
+
"""
|
|
997
|
+
|
|
998
|
+
async def _handler(
|
|
999
|
+
req: "AsyncOperationRequest[aws_sdk_lambda.types.delete_event_source_mapping_request.DeleteEventSourceMappingRequest]",
|
|
1000
|
+
) -> AsyncOperationResponse[
|
|
1001
|
+
"aws_sdk_lambda.types.event_source_mapping_configuration.EventSourceMappingConfiguration"
|
|
1002
|
+
]:
|
|
1003
|
+
import aws_sdk_lambda._operations.aws_gir_api_service.delete_event_source_mapping
|
|
1004
|
+
|
|
1005
|
+
(
|
|
1006
|
+
output,
|
|
1007
|
+
http_response,
|
|
1008
|
+
) = await aws_sdk_lambda._operations.aws_gir_api_service.delete_event_source_mapping.async_delete_event_source_mapping(
|
|
1009
|
+
req.options, req.input
|
|
1010
|
+
)
|
|
1011
|
+
return AsyncOperationResponse(output=output, response=http_response)
|
|
1012
|
+
|
|
1013
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
1014
|
+
input: aws_sdk_lambda.types.delete_event_source_mapping_request.DeleteEventSourceMappingRequest = {} # type: ignore[typeddict-item]
|
|
1015
|
+
input["uuid"] = uuid
|
|
1016
|
+
|
|
1017
|
+
response = await aexecute_pipeline(
|
|
1018
|
+
AsyncOperationRequest(input=input, options=options_),
|
|
1019
|
+
handler=_handler,
|
|
1020
|
+
interceptors=list(interceptors_),
|
|
1021
|
+
)
|
|
1022
|
+
return response.output
|
|
1023
|
+
|
|
1024
|
+
async def list(
|
|
1025
|
+
self,
|
|
1026
|
+
*,
|
|
1027
|
+
config_overrides: Optional[AsyncLambdaClientConfig] = None,
|
|
1028
|
+
event_source_arn: Optional["aws_sdk_lambda.types.arn.Arn"] = None,
|
|
1029
|
+
function_name: Optional[
|
|
1030
|
+
"aws_sdk_lambda.types.namespaced_function_name.NamespacedFunctionName"
|
|
1031
|
+
] = None,
|
|
1032
|
+
marker: Optional["aws_sdk_lambda.types.string.String"] = None,
|
|
1033
|
+
max_items: Optional["aws_sdk_lambda.types.max_list_items.MaxListItems"] = None,
|
|
1034
|
+
) -> "aws_sdk_lambda.types.list_event_source_mappings_response.ListEventSourceMappingsResponse":
|
|
1035
|
+
"""<p>Lists event source mappings. Specify an <code>EventSourceArn</code> to show only event source mappings for a single event source.</p>
|
|
1036
|
+
|
|
1037
|
+
Args:
|
|
1038
|
+
event_source_arn: <p>The Amazon Resource Name (ARN) of the event source.</p> <ul> <li> <p> <b>Amazon Kinesis</b> – The ARN of the data stream or a stream consumer.</p> </li> <li> <p> <b>Amazon DynamoDB Streams</b> – The ARN of the stream.</p> </li> <li> <p> <b>Amazon Simple Queue Service</b> – The ARN of the queue.</p> </li> <li> <p> <b>Amazon Managed Streaming for Apache Kafka</b> – The ARN of the cluster or the ARN of the VPC connection (for <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc\">cross-account event source mappings</a>).</p> </li> <li> <p> <b>Amazon MQ</b> – The ARN of the broker.</p> </li> <li> <p> <b>Amazon DocumentDB</b> – The ARN of the DocumentDB change stream.</p> </li> </ul>
|
|
1039
|
+
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>MyFunction</code>.</p> </li> <li> <p> <b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p> </li> <li> <p> <b>Version or Alias ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p> </li> <li> <p> <b>Partial ARN</b> – <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.</p>
|
|
1040
|
+
marker: <p>A pagination token returned by a previous call.</p>
|
|
1041
|
+
max_items: <p>The maximum number of event source mappings to return. Note that ListEventSourceMappings returns a maximum of 100 items in each response, even if you set the number higher.</p>
|
|
1042
|
+
|
|
1043
|
+
Examples:
|
|
1044
|
+
To list the event source mappings for a function
|
|
1045
|
+
The following example returns a list of the event source mappings for a function named my-function.
|
|
1046
|
+
|
|
1047
|
+
>>> await client.list(function_name='my-function')
|
|
1048
|
+
"""
|
|
1049
|
+
|
|
1050
|
+
async def _handler(
|
|
1051
|
+
req: "AsyncOperationRequest[aws_sdk_lambda.types.list_event_source_mappings_request.ListEventSourceMappingsRequest]",
|
|
1052
|
+
) -> AsyncOperationResponse[
|
|
1053
|
+
"aws_sdk_lambda.types.list_event_source_mappings_response.ListEventSourceMappingsResponse"
|
|
1054
|
+
]:
|
|
1055
|
+
import aws_sdk_lambda._operations.aws_gir_api_service.list_event_source_mappings
|
|
1056
|
+
|
|
1057
|
+
(
|
|
1058
|
+
output,
|
|
1059
|
+
http_response,
|
|
1060
|
+
) = await aws_sdk_lambda._operations.aws_gir_api_service.list_event_source_mappings.async_list_event_source_mappings(
|
|
1061
|
+
req.options, req.input
|
|
1062
|
+
)
|
|
1063
|
+
return AsyncOperationResponse(output=output, response=http_response)
|
|
1064
|
+
|
|
1065
|
+
interceptors_, options_ = self._service.operation_options(config_overrides)
|
|
1066
|
+
input: aws_sdk_lambda.types.list_event_source_mappings_request.ListEventSourceMappingsRequest = {} # type: ignore[typeddict-item]
|
|
1067
|
+
if event_source_arn is not None:
|
|
1068
|
+
input["event_source_arn"] = event_source_arn
|
|
1069
|
+
if function_name is not None:
|
|
1070
|
+
input["function_name"] = function_name
|
|
1071
|
+
if marker is not None:
|
|
1072
|
+
input["marker"] = marker
|
|
1073
|
+
if max_items is not None:
|
|
1074
|
+
input["max_items"] = max_items
|
|
1075
|
+
|
|
1076
|
+
response = await aexecute_pipeline(
|
|
1077
|
+
AsyncOperationRequest(input=input, options=options_),
|
|
1078
|
+
handler=_handler,
|
|
1079
|
+
interceptors=list(interceptors_),
|
|
1080
|
+
)
|
|
1081
|
+
return response.output
|