capo-appsync 0.2.0__tar.gz → 0.4.0__tar.gz
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.
- {capo_appsync-0.2.0/src/capo_appsync.egg-info → capo_appsync-0.4.0}/PKG-INFO +2 -2
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/pyproject.toml +2 -2
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_auth/_signers.py +50 -17
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_auth/_sigv4.py +164 -19
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/associate_api.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/associate_merged_graphql_api.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/associate_source_graphql_api.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/create_api.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/create_api_cache.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/create_api_key.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/create_channel_namespace.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/create_data_source.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/create_domain_name.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/create_function.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/create_graphql_api.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/create_resolver.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/create_type.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/delete_api.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/delete_api_cache.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/delete_api_key.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/delete_channel_namespace.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/delete_data_source.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/delete_domain_name.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/delete_function.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/delete_graphql_api.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/delete_resolver.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/delete_type.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/disassociate_api.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/disassociate_merged_graphql_api.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/disassociate_source_graphql_api.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/evaluate_code.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/evaluate_mapping_template.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/flush_api_cache.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/get_api.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/get_api_association.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/get_api_cache.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/get_channel_namespace.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/get_data_source.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/get_data_source_introspection.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/get_domain_name.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/get_function.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/get_graphql_api.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/get_graphql_api_environment_variables.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/get_introspection_schema.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/get_resolver.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/get_schema_creation_status.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/get_source_api_association.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/get_type.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/list_api_keys.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/list_apis.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/list_channel_namespaces.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/list_data_sources.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/list_domain_names.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/list_functions.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/list_graphql_apis.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/list_resolvers.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/list_resolvers_by_function.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/list_source_api_associations.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/list_tags_for_resource.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/list_types.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/list_types_by_association.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/put_graphql_api_environment_variables.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/start_data_source_introspection.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/start_schema_creation.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/start_schema_merge.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/tag_resource.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/untag_resource.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/update_api.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/update_api_cache.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/update_api_key.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/update_channel_namespace.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/update_data_source.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/update_domain_name.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/update_function.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/update_graphql_api.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/update_resolver.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/update_source_api_association.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_operations/aws_deepdish_control_plane_service/update_type.py +7 -3
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_protocol/eventstream.py +15 -13
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_services/_pipeline.py +17 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0/src/capo_appsync.egg-info}/PKG-INFO +2 -2
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/tests/test_sigv4.py +217 -16
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/LICENSE +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/README.md +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/setup.cfg +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/__init__.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_async.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_auth/_identity.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_auth/_providers.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_auth/_zapros_handler.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_body.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_iter.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_pagination.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_protocol/__init__.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_protocol/errors.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_protocol/serialize.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_protocol/xml.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_rule_engine/__init__.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_rule_engine/_aws_partition.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_rule_engine/_endpoint_rule_set.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_rule_engine/_endpoint_runtime.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_services/_aws_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_services/app_sync.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/_services/async_app_sync.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/errors/__init__.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/errors/_base.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/errors/access_denied_exception.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/errors/api_key_limit_exceeded_exception.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/errors/api_key_validity_out_of_bounds_exception.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/errors/api_limit_exceeded_exception.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/errors/bad_request_exception.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/errors/concurrent_modification_exception.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/errors/conflict_exception.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/errors/graph_ql_schema_exception.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/errors/internal_failure_exception.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/errors/limit_exceeded_exception.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/errors/not_found_exception.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/errors/service_quota_exceeded_exception.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/errors/unauthorized_exception.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/py.typed +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/_prelude/blob.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/_prelude/timestamp.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/additional_authentication_provider.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/additional_authentication_providers.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/api.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/api_association.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/api_cache.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/api_cache_status.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/api_cache_type.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/api_caching_behavior.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/api_key.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/api_keys.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/api_name.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/apis.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/app_sync_runtime.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/associate_api_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/associate_api_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/associate_merged_graphql_api_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/associate_merged_graphql_api_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/associate_source_graphql_api_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/associate_source_graphql_api_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/association_status.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/auth_mode.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/auth_modes.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/auth_provider.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/auth_providers.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/authentication_type.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/authorization_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/authorization_type.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/aws_iam_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/bad_request_detail.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/bad_request_reason.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/blob.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/boolean.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/boolean_value.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/cache_health_metrics_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/caching_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/caching_keys.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/certificate_arn.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/channel_namespace.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/channel_namespaces.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/code.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/code_error.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/code_error_column.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/code_error_line.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/code_error_location.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/code_error_span.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/code_errors.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/cognito_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/cognito_user_pool_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/conflict_detection_type.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/conflict_handler_type.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/context.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_api_cache_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_api_cache_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_api_key_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_api_key_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_api_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_api_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_channel_namespace_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_channel_namespace_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_data_source_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_data_source_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_domain_name_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_domain_name_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_function_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_function_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_graphql_api_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_graphql_api_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_resolver_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_resolver_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_type_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/create_type_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_source.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_source_introspection_model.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_source_introspection_model_field.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_source_introspection_model_field_type.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_source_introspection_model_field_type_values.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_source_introspection_model_fields.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_source_introspection_model_index.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_source_introspection_model_index_fields.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_source_introspection_model_indexes.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_source_introspection_models.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_source_introspection_result.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_source_introspection_status.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_source_level_metrics_behavior.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_source_level_metrics_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_source_type.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/data_sources.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/date.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/default_action.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_api_cache_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_api_cache_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_api_key_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_api_key_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_api_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_api_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_channel_namespace_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_channel_namespace_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_data_source_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_data_source_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_domain_name_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_domain_name_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_function_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_function_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_graphql_api_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_graphql_api_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_resolver_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_resolver_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_type_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delete_type_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/delta_sync_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/description.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/disassociate_api_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/disassociate_api_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/disassociate_merged_graphql_api_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/disassociate_merged_graphql_api_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/disassociate_source_graphql_api_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/disassociate_source_graphql_api_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/domain_name.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/domain_name_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/domain_name_configs.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/dynamodb_data_source_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/elasticsearch_data_source_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/enhanced_metrics_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/environment_variable_key.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/environment_variable_map.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/environment_variable_value.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/error_detail.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/error_message.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/evaluate_code_error_detail.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/evaluate_code_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/evaluate_code_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/evaluate_mapping_template_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/evaluate_mapping_template_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/evaluation_result.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/event_bridge_data_source_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/event_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/event_log_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/event_log_level.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/field_log_level.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/flush_api_cache_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/flush_api_cache_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/function_configuration.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/functions.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/functions_ids.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_api_association_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_api_association_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_api_cache_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_api_cache_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_api_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_api_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_channel_namespace_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_channel_namespace_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_data_source_introspection_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_data_source_introspection_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_data_source_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_data_source_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_domain_name_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_domain_name_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_function_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_function_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_graphql_api_environment_variables_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_graphql_api_environment_variables_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_graphql_api_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_graphql_api_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_introspection_schema_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_introspection_schema_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_resolver_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_resolver_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_schema_creation_status_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_schema_creation_status_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_source_api_association_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_source_api_association_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_type_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/get_type_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/graph_ql_api_introspection_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/graph_ql_api_type.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/graph_ql_api_visibility.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/graphql_api.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/graphql_apis.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/handler_behavior.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/handler_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/handler_configs.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/http_data_source_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/integration.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/invoke_type.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/lambda_authorizer_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/lambda_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/lambda_conflict_handler_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/lambda_data_source_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_api_keys_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_api_keys_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_apis_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_apis_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_channel_namespaces_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_channel_namespaces_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_data_sources_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_data_sources_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_domain_names_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_domain_names_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_functions_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_functions_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_graphql_apis_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_graphql_apis_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_resolvers_by_function_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_resolvers_by_function_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_resolvers_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_resolvers_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_source_api_associations_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_source_api_associations_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_tags_for_resource_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_tags_for_resource_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_types_by_association_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_types_by_association_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_types_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/list_types_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/log_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/logs.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/long.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/map_of_string_to_string.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/mapping_template.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/max_batch_size.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/max_results.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/merge_type.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/namespace.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/open_id_connect_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/open_search_service_data_source_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/operation_level_metrics_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/out_errors.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/output_type.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/owner_contact.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/ownership.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/pagination_token.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/pipeline_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/put_graphql_api_environment_variables_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/put_graphql_api_environment_variables_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/query_depth_limit.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/rds_data_api_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/rds_data_api_config_database_name.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/rds_data_api_config_resource_arn.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/rds_data_api_config_secret_arn.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/rds_http_endpoint_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/relational_database_data_source_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/relational_database_source_type.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/resolver.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/resolver_count_limit.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/resolver_kind.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/resolver_level_metrics_behavior.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/resolver_level_metrics_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/resolvers.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/resource_arn.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/resource_name.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/runtime_name.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/schema_status.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/source_api_association.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/source_api_association_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/source_api_association_status.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/source_api_association_summary.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/source_api_association_summary_list.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/start_data_source_introspection_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/start_data_source_introspection_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/start_schema_creation_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/start_schema_creation_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/start_schema_merge_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/start_schema_merge_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/stash.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/string.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/sync_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/tag_key.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/tag_key_list.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/tag_map.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/tag_resource_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/tag_resource_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/tag_value.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/template.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/timestamp.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/ttl.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/type.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/type_definition_format.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/type_list.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/untag_resource_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/untag_resource_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_api_cache_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_api_cache_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_api_key_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_api_key_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_api_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_api_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_channel_namespace_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_channel_namespace_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_data_source_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_data_source_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_domain_name_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_domain_name_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_function_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_function_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_graphql_api_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_graphql_api_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_resolver_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_resolver_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_source_api_association_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_source_api_association_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_type_request.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/update_type_response.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync/types/user_pool_config.py +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync.egg-info/SOURCES.txt +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync.egg-info/dependency_links.txt +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync.egg-info/requires.txt +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/src/capo_appsync.egg-info/top_level.txt +0 -0
- {capo_appsync-0.2.0 → capo_appsync-0.4.0}/tests/test_body.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: capo-appsync
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: Python SDK for Appsync.
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: Python SDK for AWS Appsync.
|
|
5
5
|
Classifier: Development Status :: 4 - Beta
|
|
6
6
|
Classifier: Intended Audience :: Developers
|
|
7
7
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -7,7 +7,7 @@ from zapros import Request
|
|
|
7
7
|
|
|
8
8
|
from capo_appsync._auth._identity import Credentials, Identity
|
|
9
9
|
from capo_appsync._auth._providers import IdentityProvider
|
|
10
|
-
from capo_appsync._auth._sigv4 import SigV4AuthContext, sign_sigv4
|
|
10
|
+
from capo_appsync._auth._sigv4 import S3_SIGNING_NAMES, SigV4AuthContext, sign_sigv4
|
|
11
11
|
|
|
12
12
|
IdentityT = TypeVar("IdentityT", bound="Identity")
|
|
13
13
|
|
|
@@ -30,14 +30,25 @@ class SigV4Signer(Signer[Credentials]):
|
|
|
30
30
|
The full auth scheme (``name`` variant, ``signingName``, ``signingRegion``,
|
|
31
31
|
encoding/normalization flags) is provided by the caller — either from the
|
|
32
32
|
endpoint rule-set's ``authSchemes`` property or built by the generated
|
|
33
|
-
``get_signer`` from operation defaults.
|
|
33
|
+
``get_signer`` from operation defaults. ``unsigned_payload`` mirrors the
|
|
34
|
+
operation's ``aws.auth#unsignedPayload`` trait: the body is sent but left
|
|
35
|
+
out of the signature. ``event_stream`` marks a request event stream: the
|
|
36
|
+
request is signed with the ``STREAMING-AWS4-HMAC-SHA256-EVENTS`` payload
|
|
37
|
+
marker and every event with a signature chained from it.
|
|
34
38
|
"""
|
|
35
39
|
|
|
36
40
|
def __init__(
|
|
37
|
-
self,
|
|
41
|
+
self,
|
|
42
|
+
provider: IdentityProvider[Credentials],
|
|
43
|
+
*,
|
|
44
|
+
auth_scheme: dict[str, Any],
|
|
45
|
+
unsigned_payload: bool = False,
|
|
46
|
+
event_stream: bool = False,
|
|
38
47
|
) -> None:
|
|
39
48
|
super().__init__(provider)
|
|
40
49
|
self._auth_scheme = auth_scheme
|
|
50
|
+
self._unsigned_payload = unsigned_payload
|
|
51
|
+
self._event_stream = event_stream
|
|
41
52
|
|
|
42
53
|
async def asign(self, req: Request) -> Request:
|
|
43
54
|
creds = await self.provider.aresolve_identity()
|
|
@@ -55,13 +66,24 @@ class SigV4Signer(Signer[Credentials]):
|
|
|
55
66
|
"disableNormalizePath", False
|
|
56
67
|
),
|
|
57
68
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
body
|
|
64
|
-
|
|
69
|
+
unsigned_payload = self._unsigned_payload
|
|
70
|
+
if (
|
|
71
|
+
not unsigned_payload
|
|
72
|
+
and not self._event_stream
|
|
73
|
+
and req.body is not None
|
|
74
|
+
and not isinstance(req.body, bytes)
|
|
75
|
+
):
|
|
76
|
+
if self._auth_scheme["signingName"] in S3_SIGNING_NAMES:
|
|
77
|
+
# S3 accepts UNSIGNED-PAYLOAD for any operation; streamed bodies rely on it.
|
|
78
|
+
unsigned_payload = True
|
|
79
|
+
else:
|
|
80
|
+
raise NotImplementedError(
|
|
81
|
+
"Currently we don't support signed chunked payloads, so buffer the body and "
|
|
82
|
+
"pass bytes as a workaround; chunked signed implementation coming soon"
|
|
83
|
+
)
|
|
84
|
+
return sign_sigv4(
|
|
85
|
+
req, ctx, unsigned_payload=unsigned_payload, event_stream=self._event_stream
|
|
86
|
+
)
|
|
65
87
|
|
|
66
88
|
def sign(self, req: Request) -> Request:
|
|
67
89
|
creds = self.provider.resolve_identity()
|
|
@@ -79,10 +101,21 @@ class SigV4Signer(Signer[Credentials]):
|
|
|
79
101
|
"disableNormalizePath", False
|
|
80
102
|
),
|
|
81
103
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
body
|
|
88
|
-
|
|
104
|
+
unsigned_payload = self._unsigned_payload
|
|
105
|
+
if (
|
|
106
|
+
not unsigned_payload
|
|
107
|
+
and not self._event_stream
|
|
108
|
+
and req.body is not None
|
|
109
|
+
and not isinstance(req.body, bytes)
|
|
110
|
+
):
|
|
111
|
+
if self._auth_scheme["signingName"] in S3_SIGNING_NAMES:
|
|
112
|
+
# S3 accepts UNSIGNED-PAYLOAD for any operation; streamed bodies rely on it.
|
|
113
|
+
unsigned_payload = True
|
|
114
|
+
else:
|
|
115
|
+
raise NotImplementedError(
|
|
116
|
+
"Currently we don't support signed chunked payloads, so buffer the body and "
|
|
117
|
+
"pass bytes as a workaround; chunked signed implementation coming soon"
|
|
118
|
+
)
|
|
119
|
+
return sign_sigv4(
|
|
120
|
+
req, ctx, unsigned_payload=unsigned_payload, event_stream=self._event_stream
|
|
121
|
+
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""AWS Signature Version 4 — single-chunk signing.
|
|
1
|
+
"""AWS Signature Version 4 — single-chunk and event-stream signing.
|
|
2
2
|
|
|
3
3
|
Reference:
|
|
4
4
|
https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_sigv-create-signed-request.html
|
|
@@ -15,7 +15,8 @@ import functools
|
|
|
15
15
|
import hashlib
|
|
16
16
|
import hmac
|
|
17
17
|
import re
|
|
18
|
-
from
|
|
18
|
+
from collections.abc import AsyncIterator, Iterator
|
|
19
|
+
from typing import Any, Literal, TypedDict, cast
|
|
19
20
|
from urllib.parse import quote, unquote
|
|
20
21
|
|
|
21
22
|
import zapros
|
|
@@ -23,6 +24,9 @@ from pywhatwgurl import URLSearchParams
|
|
|
23
24
|
from zapros import Headers, Request
|
|
24
25
|
from zapros._utils import get_host_header_value
|
|
25
26
|
|
|
27
|
+
from .._iter import AnyIterator
|
|
28
|
+
from .._protocol.eventstream import HeaderValue, Message, encode_headers
|
|
29
|
+
|
|
26
30
|
|
|
27
31
|
def build_sigv4_auth_scheme(
|
|
28
32
|
signing_name: str, region: str | None, endpoint_scheme: dict[str, Any] | None = None
|
|
@@ -65,6 +69,10 @@ class SigV4AuthContext(TypedDict):
|
|
|
65
69
|
|
|
66
70
|
|
|
67
71
|
_SIGV4_ALGORITHM = "AWS4-HMAC-SHA256"
|
|
72
|
+
# Per-event algorithm and request payload marker of a signed event stream.
|
|
73
|
+
_EVENT_ALGORITHM = "AWS4-HMAC-SHA256-PAYLOAD"
|
|
74
|
+
_EVENT_STREAM_PAYLOAD = "STREAMING-AWS4-HMAC-SHA256-EVENTS"
|
|
75
|
+
_AMZ_DATE_FORMAT = "%Y%m%dT%H%M%SZ"
|
|
68
76
|
_EMPTY_PAYLOAD_SHA256 = hashlib.sha256(b"").hexdigest()
|
|
69
77
|
|
|
70
78
|
# Headers excluded from the signed-headers set. Mirrors botocore's denylist:
|
|
@@ -95,9 +103,11 @@ _UNSIGNED_HEADERS = frozenset(
|
|
|
95
103
|
|
|
96
104
|
_MULTI_SPACE = re.compile(r" +")
|
|
97
105
|
|
|
98
|
-
# Services that require the payload hash to travel in ``x-amz-content-sha256
|
|
99
|
-
#
|
|
100
|
-
|
|
106
|
+
# Services that require the payload hash to travel in ``x-amz-content-sha256``
|
|
107
|
+
# on every request, and that accept ``UNSIGNED-PAYLOAD`` for any operation.
|
|
108
|
+
# Other services sign the hash into the canonical request without sending it,
|
|
109
|
+
# and only see the header when the payload is left unsigned.
|
|
110
|
+
S3_SIGNING_NAMES = frozenset({"s3", "s3express", "s3-outposts", "s3-object-lambda"})
|
|
101
111
|
|
|
102
112
|
|
|
103
113
|
def _uri_encode(value: str) -> str:
|
|
@@ -231,12 +241,20 @@ def _canonical_query_from_pairs(pairs: list[tuple[str, str]]) -> str:
|
|
|
231
241
|
def sign_sigv4(
|
|
232
242
|
request: Request,
|
|
233
243
|
ctx: SigV4AuthContext,
|
|
234
|
-
|
|
244
|
+
*,
|
|
245
|
+
unsigned_payload: bool = False,
|
|
246
|
+
event_stream: bool = False,
|
|
235
247
|
) -> Request:
|
|
236
248
|
"""Return a new ``Request`` carrying SigV4 single-chunk auth headers.
|
|
237
249
|
|
|
238
|
-
|
|
239
|
-
|
|
250
|
+
The payload hash covers ``request.body``, which must be ``bytes`` or
|
|
251
|
+
``None``. ``unsigned_payload`` signs ``UNSIGNED-PAYLOAD`` instead and
|
|
252
|
+
forwards any body unchanged (streaming S3 requests and operations carrying
|
|
253
|
+
``aws.auth#unsignedPayload``). ``event_stream`` signs a request event
|
|
254
|
+
stream: the ``STREAMING-AWS4-HMAC-SHA256-EVENTS`` marker stands in for the
|
|
255
|
+
payload hash and the body — an iterator of encoded event messages — is
|
|
256
|
+
wrapped in an :class:`EventStreamIterator` that signs every event with a
|
|
257
|
+
signature chained from this request's.
|
|
240
258
|
"""
|
|
241
259
|
service = ctx["signing_name"]
|
|
242
260
|
region = ctx["signing_region"]
|
|
@@ -250,21 +268,31 @@ def sign_sigv4(
|
|
|
250
268
|
date_stamp = amz_date[:8]
|
|
251
269
|
else:
|
|
252
270
|
now = _amz_now()
|
|
253
|
-
amz_date = now.strftime(
|
|
271
|
+
amz_date = now.strftime(_AMZ_DATE_FORMAT)
|
|
254
272
|
date_stamp = now.strftime("%Y%m%d")
|
|
255
273
|
headers["X-Amz-Date"] = amz_date
|
|
256
274
|
|
|
257
|
-
# Payload hash. For S3-family services, x-amz-content-sha256 is mandatory
|
|
258
|
-
#
|
|
275
|
+
# Payload hash. For S3-family services, x-amz-content-sha256 is mandatory;
|
|
276
|
+
# for every service it is the only way to announce an unsigned payload or
|
|
277
|
+
# an event stream.
|
|
278
|
+
# Either way it must be set BEFORE computing the canonical request (it
|
|
279
|
+
# gets signed).
|
|
259
280
|
payload_hash = headers.get("X-Amz-Content-SHA256")
|
|
260
281
|
if payload_hash is None:
|
|
261
|
-
if
|
|
282
|
+
if event_stream:
|
|
283
|
+
payload_hash = _EVENT_STREAM_PAYLOAD
|
|
284
|
+
elif unsigned_payload:
|
|
262
285
|
payload_hash = "UNSIGNED-PAYLOAD"
|
|
286
|
+
elif request.body is None:
|
|
287
|
+
payload_hash = _EMPTY_PAYLOAD_SHA256
|
|
288
|
+
elif isinstance(request.body, bytes):
|
|
289
|
+
payload_hash = hashlib.sha256(request.body).hexdigest()
|
|
263
290
|
else:
|
|
264
|
-
|
|
265
|
-
|
|
291
|
+
raise TypeError(
|
|
292
|
+
"sign_sigv4 hashes a bytes body only; pass unsigned_payload=True "
|
|
293
|
+
"to send a streamed body without a payload hash"
|
|
266
294
|
)
|
|
267
|
-
if service in
|
|
295
|
+
if service in S3_SIGNING_NAMES or unsigned_payload or event_stream:
|
|
268
296
|
headers["X-Amz-Content-SHA256"] = payload_hash
|
|
269
297
|
|
|
270
298
|
# Session token (STS / assumed-role credentials).
|
|
@@ -308,18 +336,135 @@ def sign_sigv4(
|
|
|
308
336
|
f"Signature={signature}"
|
|
309
337
|
)
|
|
310
338
|
|
|
311
|
-
|
|
312
|
-
if
|
|
339
|
+
body = request.body
|
|
340
|
+
if event_stream:
|
|
341
|
+
if not isinstance(body, (Iterator, AsyncIterator)):
|
|
342
|
+
raise TypeError(
|
|
343
|
+
"event_stream requires an iterator of encoded events as the body"
|
|
344
|
+
)
|
|
345
|
+
body = EventStreamIterator(
|
|
346
|
+
cast("Iterator[bytes] | AsyncIterator[bytes]", body), ctx, signature
|
|
347
|
+
)
|
|
348
|
+
if body is not None:
|
|
313
349
|
return Request(
|
|
314
350
|
request.url,
|
|
315
351
|
request.method,
|
|
316
352
|
headers,
|
|
317
|
-
body=
|
|
353
|
+
body=body,
|
|
318
354
|
context=request.context,
|
|
319
355
|
)
|
|
320
356
|
return Request(request.url, request.method, headers, context=request.context)
|
|
321
357
|
|
|
322
358
|
|
|
359
|
+
def _sign_event(
|
|
360
|
+
ctx: SigV4AuthContext, prior_signature: str, payload: bytes
|
|
361
|
+
) -> tuple[bytes, str]:
|
|
362
|
+
"""Wrap one encoded event in a signed outer message.
|
|
363
|
+
|
|
364
|
+
Returns ``(frame, signature)``; the hex signature seeds the next event.
|
|
365
|
+
The string to sign chains every frame to its predecessor — the first one
|
|
366
|
+
to the request's ``Authorization`` signature — so the service can verify
|
|
367
|
+
the stream incrementally::
|
|
368
|
+
|
|
369
|
+
AWS4-HMAC-SHA256-PAYLOAD
|
|
370
|
+
<date, YYYYMMDDTHHMMSSZ>
|
|
371
|
+
<credential scope>
|
|
372
|
+
<prior signature, hex>
|
|
373
|
+
<hex sha256 of the encoded ``:date`` header>
|
|
374
|
+
<hex sha256 of the payload>
|
|
375
|
+
|
|
376
|
+
The AWS SDKs (and the service) use the ``-PAYLOAD`` algorithm name; the
|
|
377
|
+
Transcribe developer guide's pseudocode omits the suffix.
|
|
378
|
+
"""
|
|
379
|
+
service = ctx["signing_name"]
|
|
380
|
+
region = ctx["signing_region"]
|
|
381
|
+
now = _amz_now()
|
|
382
|
+
amz_date = now.strftime(_AMZ_DATE_FORMAT)
|
|
383
|
+
date_stamp = amz_date[:8]
|
|
384
|
+
credential_scope = f"{date_stamp}/{region}/{service}/aws4_request"
|
|
385
|
+
date_header: dict[str, HeaderValue] = {":date": now}
|
|
386
|
+
string_to_sign = "\n".join(
|
|
387
|
+
(
|
|
388
|
+
_EVENT_ALGORITHM,
|
|
389
|
+
amz_date,
|
|
390
|
+
credential_scope,
|
|
391
|
+
prior_signature,
|
|
392
|
+
hashlib.sha256(encode_headers(date_header)).hexdigest(),
|
|
393
|
+
hashlib.sha256(payload).hexdigest(),
|
|
394
|
+
)
|
|
395
|
+
)
|
|
396
|
+
signing_key = _derive_signing_key(
|
|
397
|
+
ctx["secret_access_key"], date_stamp, region, service
|
|
398
|
+
)
|
|
399
|
+
signature = hmac.new(
|
|
400
|
+
signing_key, string_to_sign.encode("utf-8"), hashlib.sha256
|
|
401
|
+
).hexdigest()
|
|
402
|
+
frame = Message(
|
|
403
|
+
{**date_header, ":chunk-signature": bytes.fromhex(signature)}, payload
|
|
404
|
+
).encode()
|
|
405
|
+
return frame, signature
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
class EventStreamIterator(AnyIterator[bytes]):
|
|
409
|
+
"""Sign a request event stream, one frame per event.
|
|
410
|
+
|
|
411
|
+
Wraps an iterator of encoded event messages (as produced by the generated
|
|
412
|
+
``serialize_event_*`` functions). Each event becomes the payload of an
|
|
413
|
+
outer message carrying ``:date`` and ``:chunk-signature`` headers, the
|
|
414
|
+
signature chained from the previous frame's and seeded by the request's
|
|
415
|
+
``Authorization`` signature. Once the events are exhausted, one empty
|
|
416
|
+
signed frame is yielded to mark the end of the stream.
|
|
417
|
+
|
|
418
|
+
Like :class:`~capo._body.Body`, it is both a sync and an async iterator:
|
|
419
|
+
iterate it the way the wrapped source is iterable (``next`` over a sync
|
|
420
|
+
source, ``async for`` over an async one).
|
|
421
|
+
|
|
422
|
+
Reference:
|
|
423
|
+
https://docs.aws.amazon.com/transcribe/latest/dg/streaming-setting-up.html
|
|
424
|
+
"""
|
|
425
|
+
|
|
426
|
+
def __init__(
|
|
427
|
+
self,
|
|
428
|
+
events: Iterator[bytes] | AsyncIterator[bytes],
|
|
429
|
+
ctx: SigV4AuthContext,
|
|
430
|
+
seed_signature: str,
|
|
431
|
+
) -> None:
|
|
432
|
+
self._events = events
|
|
433
|
+
self._ctx = ctx
|
|
434
|
+
self._prior_signature = seed_signature
|
|
435
|
+
self._ended = False
|
|
436
|
+
|
|
437
|
+
def _frame(self, payload: bytes) -> bytes:
|
|
438
|
+
frame, self._prior_signature = _sign_event(
|
|
439
|
+
self._ctx, self._prior_signature, payload
|
|
440
|
+
)
|
|
441
|
+
return frame
|
|
442
|
+
|
|
443
|
+
def __next__(self) -> bytes:
|
|
444
|
+
if self._ended:
|
|
445
|
+
raise StopIteration
|
|
446
|
+
if not isinstance(self._events, Iterator):
|
|
447
|
+
raise TypeError("this event stream wraps an async source; use `async for`")
|
|
448
|
+
try:
|
|
449
|
+
payload = next(cast(Iterator[bytes], self._events))
|
|
450
|
+
except StopIteration:
|
|
451
|
+
self._ended = True
|
|
452
|
+
payload = b""
|
|
453
|
+
return self._frame(payload)
|
|
454
|
+
|
|
455
|
+
async def __anext__(self) -> bytes:
|
|
456
|
+
if self._ended:
|
|
457
|
+
raise StopAsyncIteration
|
|
458
|
+
if not isinstance(self._events, AsyncIterator):
|
|
459
|
+
raise TypeError("this event stream wraps a sync source; use `for`")
|
|
460
|
+
try:
|
|
461
|
+
payload = await cast(AsyncIterator[bytes], self._events).__anext__()
|
|
462
|
+
except StopAsyncIteration:
|
|
463
|
+
self._ended = True
|
|
464
|
+
payload = b""
|
|
465
|
+
return self._frame(payload)
|
|
466
|
+
|
|
467
|
+
|
|
323
468
|
def presign_sigv4(
|
|
324
469
|
request: Request,
|
|
325
470
|
ctx: SigV4AuthContext,
|
|
@@ -346,7 +491,7 @@ def presign_sigv4(
|
|
|
346
491
|
service = ctx["signing_name"]
|
|
347
492
|
region = ctx["signing_region"]
|
|
348
493
|
|
|
349
|
-
amz_date = sign_time.strftime(
|
|
494
|
+
amz_date = sign_time.strftime(_AMZ_DATE_FORMAT)
|
|
350
495
|
date_stamp = sign_time.strftime("%Y%m%d")
|
|
351
496
|
credential_scope = f"{date_stamp}/{region}/{service}/aws4_request"
|
|
352
497
|
|
|
@@ -21,7 +21,11 @@ import capo_appsync.types.associate_api_request
|
|
|
21
21
|
import capo_appsync.types.associate_api_response
|
|
22
22
|
from capo_appsync._protocol.errors import parse_error_metadata_json
|
|
23
23
|
from capo_appsync._rule_engine._endpoint_rule_set import EndpointParams, resolve
|
|
24
|
-
from capo_appsync._services._pipeline import
|
|
24
|
+
from capo_appsync._services._pipeline import (
|
|
25
|
+
AsyncOperationOptions,
|
|
26
|
+
OperationOptions,
|
|
27
|
+
raise_error,
|
|
28
|
+
)
|
|
25
29
|
from capo_appsync.errors import UnknownServiceError
|
|
26
30
|
|
|
27
31
|
|
|
@@ -138,7 +142,7 @@ def associate_api(
|
|
|
138
142
|
try:
|
|
139
143
|
if response.status >= 300:
|
|
140
144
|
response.read()
|
|
141
|
-
|
|
145
|
+
raise_error(response, handle_error)
|
|
142
146
|
return handle_response(response), response
|
|
143
147
|
except BaseException:
|
|
144
148
|
response.close()
|
|
@@ -155,7 +159,7 @@ async def async_associate_api(
|
|
|
155
159
|
try:
|
|
156
160
|
if response.status >= 300:
|
|
157
161
|
await response.aread()
|
|
158
|
-
|
|
162
|
+
raise_error(response, handle_error)
|
|
159
163
|
return await async_handle_response(response), response
|
|
160
164
|
except BaseException:
|
|
161
165
|
await response.aclose()
|
|
@@ -24,7 +24,11 @@ import capo_appsync.types.source_api_association
|
|
|
24
24
|
import capo_appsync.types.source_api_association_config
|
|
25
25
|
from capo_appsync._protocol.errors import parse_error_metadata_json
|
|
26
26
|
from capo_appsync._rule_engine._endpoint_rule_set import EndpointParams, resolve
|
|
27
|
-
from capo_appsync._services._pipeline import
|
|
27
|
+
from capo_appsync._services._pipeline import (
|
|
28
|
+
AsyncOperationOptions,
|
|
29
|
+
OperationOptions,
|
|
30
|
+
raise_error,
|
|
31
|
+
)
|
|
28
32
|
from capo_appsync.errors import UnknownServiceError
|
|
29
33
|
|
|
30
34
|
|
|
@@ -152,7 +156,7 @@ def associate_merged_graphql_api(
|
|
|
152
156
|
try:
|
|
153
157
|
if response.status >= 300:
|
|
154
158
|
response.read()
|
|
155
|
-
|
|
159
|
+
raise_error(response, handle_error)
|
|
156
160
|
return handle_response(response), response
|
|
157
161
|
except BaseException:
|
|
158
162
|
response.close()
|
|
@@ -170,7 +174,7 @@ async def async_associate_merged_graphql_api(
|
|
|
170
174
|
try:
|
|
171
175
|
if response.status >= 300:
|
|
172
176
|
await response.aread()
|
|
173
|
-
|
|
177
|
+
raise_error(response, handle_error)
|
|
174
178
|
return await async_handle_response(response), response
|
|
175
179
|
except BaseException:
|
|
176
180
|
await response.aclose()
|
|
@@ -24,7 +24,11 @@ import capo_appsync.types.source_api_association
|
|
|
24
24
|
import capo_appsync.types.source_api_association_config
|
|
25
25
|
from capo_appsync._protocol.errors import parse_error_metadata_json
|
|
26
26
|
from capo_appsync._rule_engine._endpoint_rule_set import EndpointParams, resolve
|
|
27
|
-
from capo_appsync._services._pipeline import
|
|
27
|
+
from capo_appsync._services._pipeline import (
|
|
28
|
+
AsyncOperationOptions,
|
|
29
|
+
OperationOptions,
|
|
30
|
+
raise_error,
|
|
31
|
+
)
|
|
28
32
|
from capo_appsync.errors import UnknownServiceError
|
|
29
33
|
|
|
30
34
|
|
|
@@ -152,7 +156,7 @@ def associate_source_graphql_api(
|
|
|
152
156
|
try:
|
|
153
157
|
if response.status >= 300:
|
|
154
158
|
response.read()
|
|
155
|
-
|
|
159
|
+
raise_error(response, handle_error)
|
|
156
160
|
return handle_response(response), response
|
|
157
161
|
except BaseException:
|
|
158
162
|
response.close()
|
|
@@ -170,7 +174,7 @@ async def async_associate_source_graphql_api(
|
|
|
170
174
|
try:
|
|
171
175
|
if response.status >= 300:
|
|
172
176
|
await response.aread()
|
|
173
|
-
|
|
177
|
+
raise_error(response, handle_error)
|
|
174
178
|
return await async_handle_response(response), response
|
|
175
179
|
except BaseException:
|
|
176
180
|
await response.aclose()
|
|
@@ -23,7 +23,11 @@ import capo_appsync.types.event_config
|
|
|
23
23
|
import capo_appsync.types.tag_map
|
|
24
24
|
from capo_appsync._protocol.errors import parse_error_metadata_json
|
|
25
25
|
from capo_appsync._rule_engine._endpoint_rule_set import EndpointParams, resolve
|
|
26
|
-
from capo_appsync._services._pipeline import
|
|
26
|
+
from capo_appsync._services._pipeline import (
|
|
27
|
+
AsyncOperationOptions,
|
|
28
|
+
OperationOptions,
|
|
29
|
+
raise_error,
|
|
30
|
+
)
|
|
27
31
|
from capo_appsync.errors import UnknownServiceError
|
|
28
32
|
|
|
29
33
|
|
|
@@ -141,7 +145,7 @@ def create_api(
|
|
|
141
145
|
try:
|
|
142
146
|
if response.status >= 300:
|
|
143
147
|
response.read()
|
|
144
|
-
|
|
148
|
+
raise_error(response, handle_error)
|
|
145
149
|
return handle_response(response), response
|
|
146
150
|
except BaseException:
|
|
147
151
|
response.close()
|
|
@@ -156,7 +160,7 @@ async def async_create_api(
|
|
|
156
160
|
try:
|
|
157
161
|
if response.status >= 300:
|
|
158
162
|
await response.aread()
|
|
159
|
-
|
|
163
|
+
raise_error(response, handle_error)
|
|
160
164
|
return await async_handle_response(response), response
|
|
161
165
|
except BaseException:
|
|
162
166
|
await response.aclose()
|
|
@@ -25,7 +25,11 @@ import capo_appsync.types.create_api_cache_request
|
|
|
25
25
|
import capo_appsync.types.create_api_cache_response
|
|
26
26
|
from capo_appsync._protocol.errors import parse_error_metadata_json
|
|
27
27
|
from capo_appsync._rule_engine._endpoint_rule_set import EndpointParams, resolve
|
|
28
|
-
from capo_appsync._services._pipeline import
|
|
28
|
+
from capo_appsync._services._pipeline import (
|
|
29
|
+
AsyncOperationOptions,
|
|
30
|
+
OperationOptions,
|
|
31
|
+
raise_error,
|
|
32
|
+
)
|
|
29
33
|
from capo_appsync.errors import UnknownServiceError
|
|
30
34
|
|
|
31
35
|
|
|
@@ -147,7 +151,7 @@ def create_api_cache(
|
|
|
147
151
|
try:
|
|
148
152
|
if response.status >= 300:
|
|
149
153
|
response.read()
|
|
150
|
-
|
|
154
|
+
raise_error(response, handle_error)
|
|
151
155
|
return handle_response(response), response
|
|
152
156
|
except BaseException:
|
|
153
157
|
response.close()
|
|
@@ -164,7 +168,7 @@ async def async_create_api_cache(
|
|
|
164
168
|
try:
|
|
165
169
|
if response.status >= 300:
|
|
166
170
|
await response.aread()
|
|
167
|
-
|
|
171
|
+
raise_error(response, handle_error)
|
|
168
172
|
return await async_handle_response(response), response
|
|
169
173
|
except BaseException:
|
|
170
174
|
await response.aclose()
|
|
@@ -24,7 +24,11 @@ import capo_appsync.types.create_api_key_request
|
|
|
24
24
|
import capo_appsync.types.create_api_key_response
|
|
25
25
|
from capo_appsync._protocol.errors import parse_error_metadata_json
|
|
26
26
|
from capo_appsync._rule_engine._endpoint_rule_set import EndpointParams, resolve
|
|
27
|
-
from capo_appsync._services._pipeline import
|
|
27
|
+
from capo_appsync._services._pipeline import (
|
|
28
|
+
AsyncOperationOptions,
|
|
29
|
+
OperationOptions,
|
|
30
|
+
raise_error,
|
|
31
|
+
)
|
|
28
32
|
from capo_appsync.errors import UnknownServiceError
|
|
29
33
|
|
|
30
34
|
|
|
@@ -154,7 +158,7 @@ def create_api_key(
|
|
|
154
158
|
try:
|
|
155
159
|
if response.status >= 300:
|
|
156
160
|
response.read()
|
|
157
|
-
|
|
161
|
+
raise_error(response, handle_error)
|
|
158
162
|
return handle_response(response), response
|
|
159
163
|
except BaseException:
|
|
160
164
|
response.close()
|
|
@@ -171,7 +175,7 @@ async def async_create_api_key(
|
|
|
171
175
|
try:
|
|
172
176
|
if response.status >= 300:
|
|
173
177
|
await response.aread()
|
|
174
|
-
|
|
178
|
+
raise_error(response, handle_error)
|
|
175
179
|
return await async_handle_response(response), response
|
|
176
180
|
except BaseException:
|
|
177
181
|
await response.aclose()
|
|
@@ -27,7 +27,11 @@ import capo_appsync.types.handler_configs
|
|
|
27
27
|
import capo_appsync.types.tag_map
|
|
28
28
|
from capo_appsync._protocol.errors import parse_error_metadata_json
|
|
29
29
|
from capo_appsync._rule_engine._endpoint_rule_set import EndpointParams, resolve
|
|
30
|
-
from capo_appsync._services._pipeline import
|
|
30
|
+
from capo_appsync._services._pipeline import (
|
|
31
|
+
AsyncOperationOptions,
|
|
32
|
+
OperationOptions,
|
|
33
|
+
raise_error,
|
|
34
|
+
)
|
|
31
35
|
from capo_appsync.errors import UnknownServiceError
|
|
32
36
|
|
|
33
37
|
|
|
@@ -158,7 +162,7 @@ def create_channel_namespace(
|
|
|
158
162
|
try:
|
|
159
163
|
if response.status >= 300:
|
|
160
164
|
response.read()
|
|
161
|
-
|
|
165
|
+
raise_error(response, handle_error)
|
|
162
166
|
return handle_response(response), response
|
|
163
167
|
except BaseException:
|
|
164
168
|
response.close()
|
|
@@ -176,7 +180,7 @@ async def async_create_channel_namespace(
|
|
|
176
180
|
try:
|
|
177
181
|
if response.status >= 300:
|
|
178
182
|
await response.aread()
|
|
179
|
-
|
|
183
|
+
raise_error(response, handle_error)
|
|
180
184
|
return await async_handle_response(response), response
|
|
181
185
|
except BaseException:
|
|
182
186
|
await response.aclose()
|
|
@@ -31,7 +31,11 @@ import capo_appsync.types.open_search_service_data_source_config
|
|
|
31
31
|
import capo_appsync.types.relational_database_data_source_config
|
|
32
32
|
from capo_appsync._protocol.errors import parse_error_metadata_json
|
|
33
33
|
from capo_appsync._rule_engine._endpoint_rule_set import EndpointParams, resolve
|
|
34
|
-
from capo_appsync._services._pipeline import
|
|
34
|
+
from capo_appsync._services._pipeline import (
|
|
35
|
+
AsyncOperationOptions,
|
|
36
|
+
OperationOptions,
|
|
37
|
+
raise_error,
|
|
38
|
+
)
|
|
35
39
|
from capo_appsync.errors import UnknownServiceError
|
|
36
40
|
|
|
37
41
|
|
|
@@ -154,7 +158,7 @@ def create_data_source(
|
|
|
154
158
|
try:
|
|
155
159
|
if response.status >= 300:
|
|
156
160
|
response.read()
|
|
157
|
-
|
|
161
|
+
raise_error(response, handle_error)
|
|
158
162
|
return handle_response(response), response
|
|
159
163
|
except BaseException:
|
|
160
164
|
response.close()
|
|
@@ -172,7 +176,7 @@ async def async_create_data_source(
|
|
|
172
176
|
try:
|
|
173
177
|
if response.status >= 300:
|
|
174
178
|
await response.aread()
|
|
175
|
-
|
|
179
|
+
raise_error(response, handle_error)
|
|
176
180
|
return await async_handle_response(response), response
|
|
177
181
|
except BaseException:
|
|
178
182
|
await response.aclose()
|
|
@@ -20,7 +20,11 @@ import capo_appsync.types.domain_name_config
|
|
|
20
20
|
import capo_appsync.types.tag_map
|
|
21
21
|
from capo_appsync._protocol.errors import parse_error_metadata_json
|
|
22
22
|
from capo_appsync._rule_engine._endpoint_rule_set import EndpointParams, resolve
|
|
23
|
-
from capo_appsync._services._pipeline import
|
|
23
|
+
from capo_appsync._services._pipeline import (
|
|
24
|
+
AsyncOperationOptions,
|
|
25
|
+
OperationOptions,
|
|
26
|
+
raise_error,
|
|
27
|
+
)
|
|
24
28
|
from capo_appsync.errors import UnknownServiceError
|
|
25
29
|
|
|
26
30
|
|
|
@@ -134,7 +138,7 @@ def create_domain_name(
|
|
|
134
138
|
try:
|
|
135
139
|
if response.status >= 300:
|
|
136
140
|
response.read()
|
|
137
|
-
|
|
141
|
+
raise_error(response, handle_error)
|
|
138
142
|
return handle_response(response), response
|
|
139
143
|
except BaseException:
|
|
140
144
|
response.close()
|
|
@@ -152,7 +156,7 @@ async def async_create_domain_name(
|
|
|
152
156
|
try:
|
|
153
157
|
if response.status >= 300:
|
|
154
158
|
await response.aread()
|
|
155
|
-
|
|
159
|
+
raise_error(response, handle_error)
|
|
156
160
|
return await async_handle_response(response), response
|
|
157
161
|
except BaseException:
|
|
158
162
|
await response.aclose()
|