aws-sdk-cloudformation 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aws_sdk_cloudformation/__init__.py +34 -0
- aws_sdk_cloudformation/_async.py +25 -0
- aws_sdk_cloudformation/_auth/_identity.py +16 -0
- aws_sdk_cloudformation/_auth/_providers.py +159 -0
- aws_sdk_cloudformation/_auth/_signers.py +84 -0
- aws_sdk_cloudformation/_auth/_sigv4.py +382 -0
- aws_sdk_cloudformation/_auth/_zapros_handler.py +62 -0
- aws_sdk_cloudformation/_iter.py +23 -0
- aws_sdk_cloudformation/_operations/cloud_formation/activate_organizations_access.py +153 -0
- aws_sdk_cloudformation/_operations/cloud_formation/activate_type.py +153 -0
- aws_sdk_cloudformation/_operations/cloud_formation/batch_describe_type_configurations.py +153 -0
- aws_sdk_cloudformation/_operations/cloud_formation/cancel_update_stack.py +127 -0
- aws_sdk_cloudformation/_operations/cloud_formation/continue_update_rollback.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/create_change_set.py +161 -0
- aws_sdk_cloudformation/_operations/cloud_formation/create_generated_template.py +159 -0
- aws_sdk_cloudformation/_operations/cloud_formation/create_stack.py +163 -0
- aws_sdk_cloudformation/_operations/cloud_formation/create_stack_instances.py +177 -0
- aws_sdk_cloudformation/_operations/cloud_formation/create_stack_refactor.py +143 -0
- aws_sdk_cloudformation/_operations/cloud_formation/create_stack_set.py +161 -0
- aws_sdk_cloudformation/_operations/cloud_formation/deactivate_organizations_access.py +153 -0
- aws_sdk_cloudformation/_operations/cloud_formation/deactivate_type.py +155 -0
- aws_sdk_cloudformation/_operations/cloud_formation/delete_change_set.py +149 -0
- aws_sdk_cloudformation/_operations/cloud_formation/delete_generated_template.py +133 -0
- aws_sdk_cloudformation/_operations/cloud_formation/delete_stack.py +125 -0
- aws_sdk_cloudformation/_operations/cloud_formation/delete_stack_instances.py +171 -0
- aws_sdk_cloudformation/_operations/cloud_formation/delete_stack_set.py +155 -0
- aws_sdk_cloudformation/_operations/cloud_formation/deregister_type.py +155 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_account_limits.py +141 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_change_set.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_change_set_hooks.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_events.py +143 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_generated_template.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_organizations_access.py +153 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_publisher.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_resource_scan.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_stack_drift_detection_status.py +141 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_stack_events.py +143 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_stack_instance.py +153 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_stack_refactor.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_stack_resource.py +141 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_stack_resource_drifts.py +141 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_stack_resources.py +141 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_stack_set.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_stack_set_operation.py +153 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_stacks.py +143 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_type.py +153 -0
- aws_sdk_cloudformation/_operations/cloud_formation/describe_type_registration.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/detect_stack_drift.py +141 -0
- aws_sdk_cloudformation/_operations/cloud_formation/detect_stack_resource_drift.py +141 -0
- aws_sdk_cloudformation/_operations/cloud_formation/detect_stack_set_drift.py +161 -0
- aws_sdk_cloudformation/_operations/cloud_formation/estimate_template_cost.py +141 -0
- aws_sdk_cloudformation/_operations/cloud_formation/execute_change_set.py +165 -0
- aws_sdk_cloudformation/_operations/cloud_formation/execute_stack_refactor.py +121 -0
- aws_sdk_cloudformation/_operations/cloud_formation/get_generated_template.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/get_hook_result.py +149 -0
- aws_sdk_cloudformation/_operations/cloud_formation/get_stack_policy.py +143 -0
- aws_sdk_cloudformation/_operations/cloud_formation/get_template.py +145 -0
- aws_sdk_cloudformation/_operations/cloud_formation/get_template_summary.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/import_stacks_to_stack_set.py +183 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_change_sets.py +143 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_exports.py +139 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_generated_templates.py +141 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_hook_results.py +149 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_imports.py +139 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_resource_scan_related_resources.py +153 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_resource_scan_resources.py +153 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_resource_scans.py +141 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_stack_instance_resource_drifts.py +159 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_stack_instances.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_stack_refactor_actions.py +141 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_stack_refactors.py +141 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_stack_resources.py +141 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_stack_set_auto_deployment_targets.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_stack_set_operation_results.py +153 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_stack_set_operations.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_stack_sets.py +143 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_stacks.py +139 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_type_registrations.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_type_versions.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/list_types.py +145 -0
- aws_sdk_cloudformation/_operations/cloud_formation/publish_type.py +151 -0
- aws_sdk_cloudformation/_operations/cloud_formation/record_handler_progress.py +153 -0
- aws_sdk_cloudformation/_operations/cloud_formation/register_publisher.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/register_type.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/rollback_stack.py +147 -0
- aws_sdk_cloudformation/_operations/cloud_formation/set_stack_policy.py +121 -0
- aws_sdk_cloudformation/_operations/cloud_formation/set_type_configuration.py +153 -0
- aws_sdk_cloudformation/_operations/cloud_formation/set_type_default_version.py +153 -0
- aws_sdk_cloudformation/_operations/cloud_formation/signal_resource.py +121 -0
- aws_sdk_cloudformation/_operations/cloud_formation/start_resource_scan.py +153 -0
- aws_sdk_cloudformation/_operations/cloud_formation/stop_stack_set_operation.py +159 -0
- aws_sdk_cloudformation/_operations/cloud_formation/test_type.py +151 -0
- aws_sdk_cloudformation/_operations/cloud_formation/update_generated_template.py +159 -0
- aws_sdk_cloudformation/_operations/cloud_formation/update_stack.py +151 -0
- aws_sdk_cloudformation/_operations/cloud_formation/update_stack_instances.py +177 -0
- aws_sdk_cloudformation/_operations/cloud_formation/update_stack_set.py +179 -0
- aws_sdk_cloudformation/_operations/cloud_formation/update_termination_protection.py +141 -0
- aws_sdk_cloudformation/_operations/cloud_formation/validate_template.py +141 -0
- aws_sdk_cloudformation/_pagination.py +21 -0
- aws_sdk_cloudformation/_protocol/__init__.py +1 -0
- aws_sdk_cloudformation/_protocol/errors.py +59 -0
- aws_sdk_cloudformation/_protocol/xml.py +27 -0
- aws_sdk_cloudformation/_rule_engine/__init__.py +0 -0
- aws_sdk_cloudformation/_rule_engine/_aws_partition.py +160 -0
- aws_sdk_cloudformation/_rule_engine/_endpoint_rule_set.py +154 -0
- aws_sdk_cloudformation/_rule_engine/_endpoint_runtime.py +389 -0
- aws_sdk_cloudformation/_services/_pipeline.py +195 -0
- aws_sdk_cloudformation/_services/async_cloud_formation.py +6318 -0
- aws_sdk_cloudformation/_services/cloud_formation.py +6225 -0
- aws_sdk_cloudformation/errors/__init__.py +95 -0
- aws_sdk_cloudformation/errors/_base.py +94 -0
- aws_sdk_cloudformation/errors/already_exists_exception.py +50 -0
- aws_sdk_cloudformation/errors/cfn_registry_exception.py +51 -0
- aws_sdk_cloudformation/errors/change_set_not_found_exception.py +50 -0
- aws_sdk_cloudformation/errors/concurrent_resources_limit_exceeded_exception.py +52 -0
- aws_sdk_cloudformation/errors/created_but_modified_exception.py +50 -0
- aws_sdk_cloudformation/errors/generated_template_not_found_exception.py +52 -0
- aws_sdk_cloudformation/errors/hook_result_not_found_exception.py +50 -0
- aws_sdk_cloudformation/errors/insufficient_capabilities_exception.py +50 -0
- aws_sdk_cloudformation/errors/invalid_change_set_status_exception.py +50 -0
- aws_sdk_cloudformation/errors/invalid_operation_exception.py +50 -0
- aws_sdk_cloudformation/errors/invalid_state_transition_exception.py +50 -0
- aws_sdk_cloudformation/errors/limit_exceeded_exception.py +50 -0
- aws_sdk_cloudformation/errors/name_already_exists_exception.py +50 -0
- aws_sdk_cloudformation/errors/operation_id_already_exists_exception.py +50 -0
- aws_sdk_cloudformation/errors/operation_in_progress_exception.py +50 -0
- aws_sdk_cloudformation/errors/operation_not_found_exception.py +50 -0
- aws_sdk_cloudformation/errors/operation_status_check_failed_exception.py +52 -0
- aws_sdk_cloudformation/errors/resource_scan_in_progress_exception.py +50 -0
- aws_sdk_cloudformation/errors/resource_scan_limit_exceeded_exception.py +52 -0
- aws_sdk_cloudformation/errors/resource_scan_not_found_exception.py +50 -0
- aws_sdk_cloudformation/errors/stack_instance_not_found_exception.py +50 -0
- aws_sdk_cloudformation/errors/stack_not_found_exception.py +50 -0
- aws_sdk_cloudformation/errors/stack_refactor_not_found_exception.py +50 -0
- aws_sdk_cloudformation/errors/stack_set_not_empty_exception.py +50 -0
- aws_sdk_cloudformation/errors/stack_set_not_found_exception.py +50 -0
- aws_sdk_cloudformation/errors/stale_request_exception.py +50 -0
- aws_sdk_cloudformation/errors/token_already_exists_exception.py +50 -0
- aws_sdk_cloudformation/errors/type_configuration_not_found_exception.py +53 -0
- aws_sdk_cloudformation/errors/type_not_found_exception.py +51 -0
- aws_sdk_cloudformation/py.typed +0 -0
- aws_sdk_cloudformation/types/_prelude/blob.py +22 -0
- aws_sdk_cloudformation/types/_prelude/timestamp.py +24 -0
- aws_sdk_cloudformation/types/accept_terms_and_conditions.py +5 -0
- aws_sdk_cloudformation/types/account.py +5 -0
- aws_sdk_cloudformation/types/account_filter_type.py +44 -0
- aws_sdk_cloudformation/types/account_gate_result.py +53 -0
- aws_sdk_cloudformation/types/account_gate_status.py +42 -0
- aws_sdk_cloudformation/types/account_gate_status_reason.py +5 -0
- aws_sdk_cloudformation/types/account_limit.py +39 -0
- aws_sdk_cloudformation/types/account_limit_list.py +53 -0
- aws_sdk_cloudformation/types/account_list.py +39 -0
- aws_sdk_cloudformation/types/accounts_url.py +5 -0
- aws_sdk_cloudformation/types/activate_organizations_access_input.py +21 -0
- aws_sdk_cloudformation/types/activate_organizations_access_output.py +21 -0
- aws_sdk_cloudformation/types/activate_type_input.py +138 -0
- aws_sdk_cloudformation/types/activate_type_output.py +31 -0
- aws_sdk_cloudformation/types/after_context.py +5 -0
- aws_sdk_cloudformation/types/after_value.py +5 -0
- aws_sdk_cloudformation/types/after_value_from.py +32 -0
- aws_sdk_cloudformation/types/allowed_value.py +5 -0
- aws_sdk_cloudformation/types/allowed_values.py +41 -0
- aws_sdk_cloudformation/types/annotation.py +105 -0
- aws_sdk_cloudformation/types/annotation_list.py +51 -0
- aws_sdk_cloudformation/types/annotation_name.py +5 -0
- aws_sdk_cloudformation/types/annotation_remediation_link.py +5 -0
- aws_sdk_cloudformation/types/annotation_severity_level.py +46 -0
- aws_sdk_cloudformation/types/annotation_status.py +42 -0
- aws_sdk_cloudformation/types/arn.py +5 -0
- aws_sdk_cloudformation/types/attribute_change_type.py +44 -0
- aws_sdk_cloudformation/types/auto_deployment.py +70 -0
- aws_sdk_cloudformation/types/auto_deployment_nullable.py +5 -0
- aws_sdk_cloudformation/types/auto_update.py +5 -0
- aws_sdk_cloudformation/types/batch_describe_type_configurations_error.py +65 -0
- aws_sdk_cloudformation/types/batch_describe_type_configurations_errors.py +67 -0
- aws_sdk_cloudformation/types/batch_describe_type_configurations_input.py +47 -0
- aws_sdk_cloudformation/types/batch_describe_type_configurations_output.py +87 -0
- aws_sdk_cloudformation/types/beacon_stack_operation_status.py +44 -0
- aws_sdk_cloudformation/types/before_context.py +5 -0
- aws_sdk_cloudformation/types/before_value.py +5 -0
- aws_sdk_cloudformation/types/before_value_from.py +40 -0
- aws_sdk_cloudformation/types/boxed_integer.py +5 -0
- aws_sdk_cloudformation/types/boxed_max_results.py +5 -0
- aws_sdk_cloudformation/types/call_as.py +38 -0
- aws_sdk_cloudformation/types/cancel_update_stack_input.py +43 -0
- aws_sdk_cloudformation/types/capabilities.py +51 -0
- aws_sdk_cloudformation/types/capabilities_reason.py +5 -0
- aws_sdk_cloudformation/types/capability.py +42 -0
- aws_sdk_cloudformation/types/category.py +42 -0
- aws_sdk_cloudformation/types/causing_entity.py +5 -0
- aws_sdk_cloudformation/types/change.py +69 -0
- aws_sdk_cloudformation/types/change_action.py +48 -0
- aws_sdk_cloudformation/types/change_set_hook.py +118 -0
- aws_sdk_cloudformation/types/change_set_hook_resource_target_details.py +63 -0
- aws_sdk_cloudformation/types/change_set_hook_target_details.py +63 -0
- aws_sdk_cloudformation/types/change_set_hooks.py +57 -0
- aws_sdk_cloudformation/types/change_set_hooks_status.py +42 -0
- aws_sdk_cloudformation/types/change_set_id.py +5 -0
- aws_sdk_cloudformation/types/change_set_name.py +5 -0
- aws_sdk_cloudformation/types/change_set_name_or_id.py +5 -0
- aws_sdk_cloudformation/types/change_set_status.py +52 -0
- aws_sdk_cloudformation/types/change_set_status_reason.py +5 -0
- aws_sdk_cloudformation/types/change_set_summaries.py +57 -0
- aws_sdk_cloudformation/types/change_set_summary.py +189 -0
- aws_sdk_cloudformation/types/change_set_type.py +42 -0
- aws_sdk_cloudformation/types/change_source.py +48 -0
- aws_sdk_cloudformation/types/change_type.py +32 -0
- aws_sdk_cloudformation/types/changes.py +49 -0
- aws_sdk_cloudformation/types/client_request_token.py +5 -0
- aws_sdk_cloudformation/types/client_token.py +5 -0
- aws_sdk_cloudformation/types/concurrency_mode.py +40 -0
- aws_sdk_cloudformation/types/configuration_schema.py +5 -0
- aws_sdk_cloudformation/types/connection_arn.py +5 -0
- aws_sdk_cloudformation/types/continue_update_rollback_input.py +73 -0
- aws_sdk_cloudformation/types/continue_update_rollback_output.py +21 -0
- aws_sdk_cloudformation/types/create_change_set_input.py +324 -0
- aws_sdk_cloudformation/types/create_change_set_output.py +39 -0
- aws_sdk_cloudformation/types/create_generated_template_input.py +83 -0
- aws_sdk_cloudformation/types/create_generated_template_output.py +35 -0
- aws_sdk_cloudformation/types/create_stack_input.py +272 -0
- aws_sdk_cloudformation/types/create_stack_instances_input.py +151 -0
- aws_sdk_cloudformation/types/create_stack_instances_output.py +33 -0
- aws_sdk_cloudformation/types/create_stack_output.py +39 -0
- aws_sdk_cloudformation/types/create_stack_refactor_input.py +88 -0
- aws_sdk_cloudformation/types/create_stack_refactor_output.py +33 -0
- aws_sdk_cloudformation/types/create_stack_set_input.py +225 -0
- aws_sdk_cloudformation/types/create_stack_set_output.py +31 -0
- aws_sdk_cloudformation/types/creation_time.py +27 -0
- aws_sdk_cloudformation/types/deactivate_organizations_access_input.py +21 -0
- aws_sdk_cloudformation/types/deactivate_organizations_access_output.py +23 -0
- aws_sdk_cloudformation/types/deactivate_type_input.py +55 -0
- aws_sdk_cloudformation/types/deactivate_type_output.py +21 -0
- aws_sdk_cloudformation/types/delete_change_set_input.py +43 -0
- aws_sdk_cloudformation/types/delete_change_set_output.py +21 -0
- aws_sdk_cloudformation/types/delete_generated_template_input.py +35 -0
- aws_sdk_cloudformation/types/delete_stack_input.py +91 -0
- aws_sdk_cloudformation/types/delete_stack_instances_input.py +143 -0
- aws_sdk_cloudformation/types/delete_stack_instances_output.py +33 -0
- aws_sdk_cloudformation/types/delete_stack_set_input.py +49 -0
- aws_sdk_cloudformation/types/delete_stack_set_output.py +21 -0
- aws_sdk_cloudformation/types/deletion_mode.py +40 -0
- aws_sdk_cloudformation/types/deletion_time.py +27 -0
- aws_sdk_cloudformation/types/deployment_mode.py +32 -0
- aws_sdk_cloudformation/types/deployment_targets.py +87 -0
- aws_sdk_cloudformation/types/deprecated_status.py +40 -0
- aws_sdk_cloudformation/types/deregister_type_input.py +65 -0
- aws_sdk_cloudformation/types/deregister_type_output.py +21 -0
- aws_sdk_cloudformation/types/describe_account_limits_input.py +31 -0
- aws_sdk_cloudformation/types/describe_account_limits_output.py +51 -0
- aws_sdk_cloudformation/types/describe_change_set_hooks_input.py +61 -0
- aws_sdk_cloudformation/types/describe_change_set_hooks_output.py +101 -0
- aws_sdk_cloudformation/types/describe_change_set_input.py +68 -0
- aws_sdk_cloudformation/types/describe_change_set_output.py +361 -0
- aws_sdk_cloudformation/types/describe_events_input.py +75 -0
- aws_sdk_cloudformation/types/describe_events_output.py +51 -0
- aws_sdk_cloudformation/types/describe_generated_template_input.py +35 -0
- aws_sdk_cloudformation/types/describe_generated_template_output.py +195 -0
- aws_sdk_cloudformation/types/describe_organizations_access_input.py +39 -0
- aws_sdk_cloudformation/types/describe_organizations_access_output.py +43 -0
- aws_sdk_cloudformation/types/describe_publisher_input.py +31 -0
- aws_sdk_cloudformation/types/describe_publisher_output.py +81 -0
- aws_sdk_cloudformation/types/describe_resource_scan_input.py +33 -0
- aws_sdk_cloudformation/types/describe_resource_scan_output.py +164 -0
- aws_sdk_cloudformation/types/describe_stack_drift_detection_status_input.py +37 -0
- aws_sdk_cloudformation/types/describe_stack_drift_detection_status_output.py +130 -0
- aws_sdk_cloudformation/types/describe_stack_events_input.py +39 -0
- aws_sdk_cloudformation/types/describe_stack_events_output.py +49 -0
- aws_sdk_cloudformation/types/describe_stack_instance_input.py +69 -0
- aws_sdk_cloudformation/types/describe_stack_instance_output.py +43 -0
- aws_sdk_cloudformation/types/describe_stack_refactor_input.py +33 -0
- aws_sdk_cloudformation/types/describe_stack_refactor_output.py +119 -0
- aws_sdk_cloudformation/types/describe_stack_resource_drifts_input.py +75 -0
- aws_sdk_cloudformation/types/describe_stack_resource_drifts_output.py +51 -0
- aws_sdk_cloudformation/types/describe_stack_resource_input.py +41 -0
- aws_sdk_cloudformation/types/describe_stack_resource_output.py +43 -0
- aws_sdk_cloudformation/types/describe_stack_resources_input.py +53 -0
- aws_sdk_cloudformation/types/describe_stack_resources_output.py +43 -0
- aws_sdk_cloudformation/types/describe_stack_set_input.py +49 -0
- aws_sdk_cloudformation/types/describe_stack_set_operation_input.py +59 -0
- aws_sdk_cloudformation/types/describe_stack_set_operation_output.py +43 -0
- aws_sdk_cloudformation/types/describe_stack_set_output.py +39 -0
- aws_sdk_cloudformation/types/describe_stacks_input.py +39 -0
- aws_sdk_cloudformation/types/describe_stacks_output.py +47 -0
- aws_sdk_cloudformation/types/describe_type_input.py +85 -0
- aws_sdk_cloudformation/types/describe_type_output.py +366 -0
- aws_sdk_cloudformation/types/describe_type_registration_input.py +33 -0
- aws_sdk_cloudformation/types/describe_type_registration_output.py +66 -0
- aws_sdk_cloudformation/types/description.py +5 -0
- aws_sdk_cloudformation/types/detailed_status.py +40 -0
- aws_sdk_cloudformation/types/detect_stack_drift_input.py +53 -0
- aws_sdk_cloudformation/types/detect_stack_drift_output.py +35 -0
- aws_sdk_cloudformation/types/detect_stack_resource_drift_input.py +43 -0
- aws_sdk_cloudformation/types/detect_stack_resource_drift_output.py +43 -0
- aws_sdk_cloudformation/types/detect_stack_set_drift_input.py +79 -0
- aws_sdk_cloudformation/types/detect_stack_set_drift_output.py +33 -0
- aws_sdk_cloudformation/types/detection_reason.py +5 -0
- aws_sdk_cloudformation/types/difference_type.py +42 -0
- aws_sdk_cloudformation/types/disable_rollback.py +5 -0
- aws_sdk_cloudformation/types/drift_ignored_reason.py +40 -0
- aws_sdk_cloudformation/types/drifted_stack_instances_count.py +5 -0
- aws_sdk_cloudformation/types/enable_stack_creation.py +5 -0
- aws_sdk_cloudformation/types/enable_termination_protection.py +5 -0
- aws_sdk_cloudformation/types/error_code.py +5 -0
- aws_sdk_cloudformation/types/error_message.py +5 -0
- aws_sdk_cloudformation/types/estimate_template_cost_input.py +57 -0
- aws_sdk_cloudformation/types/estimate_template_cost_output.py +31 -0
- aws_sdk_cloudformation/types/evaluation_type.py +40 -0
- aws_sdk_cloudformation/types/event_filter.py +35 -0
- aws_sdk_cloudformation/types/event_id.py +5 -0
- aws_sdk_cloudformation/types/event_type.py +46 -0
- aws_sdk_cloudformation/types/execute_change_set_input.py +87 -0
- aws_sdk_cloudformation/types/execute_change_set_output.py +21 -0
- aws_sdk_cloudformation/types/execute_stack_refactor_input.py +33 -0
- aws_sdk_cloudformation/types/execution_role_name.py +5 -0
- aws_sdk_cloudformation/types/execution_status.py +48 -0
- aws_sdk_cloudformation/types/execution_status_reason.py +5 -0
- aws_sdk_cloudformation/types/export.py +45 -0
- aws_sdk_cloudformation/types/export_name.py +5 -0
- aws_sdk_cloudformation/types/export_value.py +5 -0
- aws_sdk_cloudformation/types/exports.py +49 -0
- aws_sdk_cloudformation/types/failed_events_filter.py +5 -0
- aws_sdk_cloudformation/types/failed_stack_instances_count.py +5 -0
- aws_sdk_cloudformation/types/failure_tolerance_count.py +5 -0
- aws_sdk_cloudformation/types/failure_tolerance_percentage.py +5 -0
- aws_sdk_cloudformation/types/generated_template_deletion_policy.py +42 -0
- aws_sdk_cloudformation/types/generated_template_id.py +5 -0
- aws_sdk_cloudformation/types/generated_template_name.py +5 -0
- aws_sdk_cloudformation/types/generated_template_resource_status.py +46 -0
- aws_sdk_cloudformation/types/generated_template_status.py +52 -0
- aws_sdk_cloudformation/types/generated_template_update_replace_policy.py +44 -0
- aws_sdk_cloudformation/types/get_generated_template_input.py +51 -0
- aws_sdk_cloudformation/types/get_generated_template_output.py +53 -0
- aws_sdk_cloudformation/types/get_hook_result_input.py +33 -0
- aws_sdk_cloudformation/types/get_hook_result_output.py +203 -0
- aws_sdk_cloudformation/types/get_stack_policy_input.py +31 -0
- aws_sdk_cloudformation/types/get_stack_policy_output.py +33 -0
- aws_sdk_cloudformation/types/get_template_input.py +61 -0
- aws_sdk_cloudformation/types/get_template_output.py +51 -0
- aws_sdk_cloudformation/types/get_template_summary_input.py +97 -0
- aws_sdk_cloudformation/types/get_template_summary_output.py +175 -0
- aws_sdk_cloudformation/types/handler_error_code.py +74 -0
- aws_sdk_cloudformation/types/hook_failure_mode.py +40 -0
- aws_sdk_cloudformation/types/hook_invocation_count.py +5 -0
- aws_sdk_cloudformation/types/hook_invocation_id.py +5 -0
- aws_sdk_cloudformation/types/hook_invocation_point.py +32 -0
- aws_sdk_cloudformation/types/hook_result_id.py +5 -0
- aws_sdk_cloudformation/types/hook_result_summaries.py +57 -0
- aws_sdk_cloudformation/types/hook_result_summary.py +197 -0
- aws_sdk_cloudformation/types/hook_status.py +44 -0
- aws_sdk_cloudformation/types/hook_status_reason.py +5 -0
- aws_sdk_cloudformation/types/hook_target.py +81 -0
- aws_sdk_cloudformation/types/hook_target_action.py +44 -0
- aws_sdk_cloudformation/types/hook_target_id.py +5 -0
- aws_sdk_cloudformation/types/hook_target_type.py +32 -0
- aws_sdk_cloudformation/types/hook_target_type_name.py +5 -0
- aws_sdk_cloudformation/types/hook_type.py +5 -0
- aws_sdk_cloudformation/types/hook_type_arn.py +5 -0
- aws_sdk_cloudformation/types/hook_type_configuration_version_id.py +5 -0
- aws_sdk_cloudformation/types/hook_type_name.py +5 -0
- aws_sdk_cloudformation/types/hook_type_version_id.py +5 -0
- aws_sdk_cloudformation/types/identity_provider.py +42 -0
- aws_sdk_cloudformation/types/import_existing_resources.py +5 -0
- aws_sdk_cloudformation/types/import_stacks_to_stack_set_input.py +123 -0
- aws_sdk_cloudformation/types/import_stacks_to_stack_set_output.py +33 -0
- aws_sdk_cloudformation/types/imports.py +37 -0
- aws_sdk_cloudformation/types/in_progress_stack_instances_count.py +5 -0
- aws_sdk_cloudformation/types/in_sync_stack_instances_count.py +5 -0
- aws_sdk_cloudformation/types/include_nested_stacks.py +5 -0
- aws_sdk_cloudformation/types/include_property_values.py +5 -0
- aws_sdk_cloudformation/types/is_activated.py +5 -0
- aws_sdk_cloudformation/types/is_default_configuration.py +5 -0
- aws_sdk_cloudformation/types/is_default_version.py +5 -0
- aws_sdk_cloudformation/types/jazz_logical_resource_ids.py +41 -0
- aws_sdk_cloudformation/types/jazz_resource_identifier_properties.py +63 -0
- aws_sdk_cloudformation/types/jazz_resource_identifier_property_key.py +5 -0
- aws_sdk_cloudformation/types/jazz_resource_identifier_property_value.py +5 -0
- aws_sdk_cloudformation/types/key.py +5 -0
- aws_sdk_cloudformation/types/last_operations.py +57 -0
- aws_sdk_cloudformation/types/last_updated_time.py +27 -0
- aws_sdk_cloudformation/types/limit_name.py +5 -0
- aws_sdk_cloudformation/types/limit_value.py +5 -0
- aws_sdk_cloudformation/types/list_change_sets_input.py +41 -0
- aws_sdk_cloudformation/types/list_change_sets_output.py +51 -0
- aws_sdk_cloudformation/types/list_exports_input.py +31 -0
- aws_sdk_cloudformation/types/list_exports_output.py +47 -0
- aws_sdk_cloudformation/types/list_generated_templates_input.py +39 -0
- aws_sdk_cloudformation/types/list_generated_templates_output.py +51 -0
- aws_sdk_cloudformation/types/list_hook_results_input.py +83 -0
- aws_sdk_cloudformation/types/list_hook_results_output.py +79 -0
- aws_sdk_cloudformation/types/list_hook_results_target_type.py +44 -0
- aws_sdk_cloudformation/types/list_imports_input.py +39 -0
- aws_sdk_cloudformation/types/list_imports_output.py +47 -0
- aws_sdk_cloudformation/types/list_resource_scan_related_resources_input.py +73 -0
- aws_sdk_cloudformation/types/list_resource_scan_related_resources_output.py +53 -0
- aws_sdk_cloudformation/types/list_resource_scan_resources_input.py +91 -0
- aws_sdk_cloudformation/types/list_resource_scan_resources_output.py +51 -0
- aws_sdk_cloudformation/types/list_resource_scans_input.py +59 -0
- aws_sdk_cloudformation/types/list_resource_scans_output.py +51 -0
- aws_sdk_cloudformation/types/list_stack_instance_resource_drifts_input.py +121 -0
- aws_sdk_cloudformation/types/list_stack_instance_resource_drifts_output.py +53 -0
- aws_sdk_cloudformation/types/list_stack_instances_input.py +105 -0
- aws_sdk_cloudformation/types/list_stack_instances_output.py +51 -0
- aws_sdk_cloudformation/types/list_stack_refactor_actions_input.py +49 -0
- aws_sdk_cloudformation/types/list_stack_refactor_actions_output.py +51 -0
- aws_sdk_cloudformation/types/list_stack_refactors_input.py +59 -0
- aws_sdk_cloudformation/types/list_stack_refactors_output.py +51 -0
- aws_sdk_cloudformation/types/list_stack_resources_input.py +39 -0
- aws_sdk_cloudformation/types/list_stack_resources_output.py +51 -0
- aws_sdk_cloudformation/types/list_stack_set_auto_deployment_targets_input.py +67 -0
- aws_sdk_cloudformation/types/list_stack_set_auto_deployment_targets_output.py +53 -0
- aws_sdk_cloudformation/types/list_stack_set_operation_results_input.py +95 -0
- aws_sdk_cloudformation/types/list_stack_set_operation_results_output.py +51 -0
- aws_sdk_cloudformation/types/list_stack_set_operations_input.py +65 -0
- aws_sdk_cloudformation/types/list_stack_set_operations_output.py +51 -0
- aws_sdk_cloudformation/types/list_stack_sets_input.py +71 -0
- aws_sdk_cloudformation/types/list_stack_sets_output.py +51 -0
- aws_sdk_cloudformation/types/list_stacks_input.py +51 -0
- aws_sdk_cloudformation/types/list_stacks_output.py +51 -0
- aws_sdk_cloudformation/types/list_type_registrations_input.py +93 -0
- aws_sdk_cloudformation/types/list_type_registrations_output.py +51 -0
- aws_sdk_cloudformation/types/list_type_versions_input.py +99 -0
- aws_sdk_cloudformation/types/list_type_versions_output.py +51 -0
- aws_sdk_cloudformation/types/list_types_input.py +127 -0
- aws_sdk_cloudformation/types/list_types_output.py +51 -0
- aws_sdk_cloudformation/types/live_resource_drift.py +65 -0
- aws_sdk_cloudformation/types/log_group_name.py +5 -0
- aws_sdk_cloudformation/types/logging_config.py +41 -0
- aws_sdk_cloudformation/types/logical_id_hierarchy.py +5 -0
- aws_sdk_cloudformation/types/logical_resource_id.py +5 -0
- aws_sdk_cloudformation/types/logical_resource_ids.py +41 -0
- aws_sdk_cloudformation/types/major_version.py +5 -0
- aws_sdk_cloudformation/types/managed_by_stack.py +5 -0
- aws_sdk_cloudformation/types/managed_execution.py +33 -0
- aws_sdk_cloudformation/types/managed_execution_nullable.py +5 -0
- aws_sdk_cloudformation/types/max_concurrent_count.py +5 -0
- aws_sdk_cloudformation/types/max_concurrent_percentage.py +5 -0
- aws_sdk_cloudformation/types/max_results.py +5 -0
- aws_sdk_cloudformation/types/metadata.py +5 -0
- aws_sdk_cloudformation/types/module_info.py +45 -0
- aws_sdk_cloudformation/types/monitoring_time_in_minutes.py +5 -0
- aws_sdk_cloudformation/types/next_token.py +5 -0
- aws_sdk_cloudformation/types/no_echo.py +5 -0
- aws_sdk_cloudformation/types/notification_ar_ns.py +41 -0
- aws_sdk_cloudformation/types/notification_arn.py +5 -0
- aws_sdk_cloudformation/types/number_of_resources.py +5 -0
- aws_sdk_cloudformation/types/on_failure.py +42 -0
- aws_sdk_cloudformation/types/on_stack_failure.py +42 -0
- aws_sdk_cloudformation/types/operation_entry.py +51 -0
- aws_sdk_cloudformation/types/operation_event.py +402 -0
- aws_sdk_cloudformation/types/operation_events.py +57 -0
- aws_sdk_cloudformation/types/operation_id.py +5 -0
- aws_sdk_cloudformation/types/operation_result_filter.py +53 -0
- aws_sdk_cloudformation/types/operation_result_filter_name.py +32 -0
- aws_sdk_cloudformation/types/operation_result_filter_values.py +5 -0
- aws_sdk_cloudformation/types/operation_result_filters.py +61 -0
- aws_sdk_cloudformation/types/operation_status.py +44 -0
- aws_sdk_cloudformation/types/operation_type.py +48 -0
- aws_sdk_cloudformation/types/optional_secure_url.py +5 -0
- aws_sdk_cloudformation/types/organization_status.py +42 -0
- aws_sdk_cloudformation/types/organizational_unit_id.py +5 -0
- aws_sdk_cloudformation/types/organizational_unit_id_list.py +41 -0
- aws_sdk_cloudformation/types/output.py +53 -0
- aws_sdk_cloudformation/types/output_key.py +5 -0
- aws_sdk_cloudformation/types/output_value.py +5 -0
- aws_sdk_cloudformation/types/outputs.py +49 -0
- aws_sdk_cloudformation/types/parameter.py +69 -0
- aws_sdk_cloudformation/types/parameter_constraints.py +43 -0
- aws_sdk_cloudformation/types/parameter_declaration.py +89 -0
- aws_sdk_cloudformation/types/parameter_declarations.py +57 -0
- aws_sdk_cloudformation/types/parameter_key.py +5 -0
- aws_sdk_cloudformation/types/parameter_type.py +5 -0
- aws_sdk_cloudformation/types/parameter_value.py +5 -0
- aws_sdk_cloudformation/types/parameters.py +51 -0
- aws_sdk_cloudformation/types/percentage_completed.py +5 -0
- aws_sdk_cloudformation/types/permission_models.py +40 -0
- aws_sdk_cloudformation/types/physical_resource_id.py +5 -0
- aws_sdk_cloudformation/types/physical_resource_id_context.py +61 -0
- aws_sdk_cloudformation/types/physical_resource_id_context_key_value_pair.py +41 -0
- aws_sdk_cloudformation/types/policy_action.py +48 -0
- aws_sdk_cloudformation/types/previous_deployment_context.py +5 -0
- aws_sdk_cloudformation/types/private_type_arn.py +5 -0
- aws_sdk_cloudformation/types/properties.py +5 -0
- aws_sdk_cloudformation/types/property_description.py +5 -0
- aws_sdk_cloudformation/types/property_difference.py +72 -0
- aws_sdk_cloudformation/types/property_differences.py +57 -0
- aws_sdk_cloudformation/types/property_name.py +5 -0
- aws_sdk_cloudformation/types/property_path.py +5 -0
- aws_sdk_cloudformation/types/property_value.py +5 -0
- aws_sdk_cloudformation/types/provisioning_type.py +42 -0
- aws_sdk_cloudformation/types/public_version_number.py +5 -0
- aws_sdk_cloudformation/types/publish_type_input.py +67 -0
- aws_sdk_cloudformation/types/publish_type_output.py +31 -0
- aws_sdk_cloudformation/types/publisher_id.py +5 -0
- aws_sdk_cloudformation/types/publisher_name.py +5 -0
- aws_sdk_cloudformation/types/publisher_profile.py +5 -0
- aws_sdk_cloudformation/types/publisher_status.py +40 -0
- aws_sdk_cloudformation/types/reason.py +5 -0
- aws_sdk_cloudformation/types/record_handler_progress_input.py +122 -0
- aws_sdk_cloudformation/types/record_handler_progress_output.py +21 -0
- aws_sdk_cloudformation/types/refresh_all_resources.py +5 -0
- aws_sdk_cloudformation/types/region.py +5 -0
- aws_sdk_cloudformation/types/region_concurrency_type.py +40 -0
- aws_sdk_cloudformation/types/region_list.py +39 -0
- aws_sdk_cloudformation/types/register_publisher_input.py +50 -0
- aws_sdk_cloudformation/types/register_publisher_output.py +31 -0
- aws_sdk_cloudformation/types/register_type_input.py +97 -0
- aws_sdk_cloudformation/types/register_type_output.py +33 -0
- aws_sdk_cloudformation/types/registration_status.py +42 -0
- aws_sdk_cloudformation/types/registration_token.py +5 -0
- aws_sdk_cloudformation/types/registration_token_list.py +41 -0
- aws_sdk_cloudformation/types/registry_type.py +42 -0
- aws_sdk_cloudformation/types/related_resources.py +57 -0
- aws_sdk_cloudformation/types/remediation_message_remediation_message.py +5 -0
- aws_sdk_cloudformation/types/remediation_message_status_message.py +5 -0
- aws_sdk_cloudformation/types/replacement.py +42 -0
- aws_sdk_cloudformation/types/request_token.py +5 -0
- aws_sdk_cloudformation/types/required_activated_type.py +66 -0
- aws_sdk_cloudformation/types/required_activated_types.py +61 -0
- aws_sdk_cloudformation/types/required_property.py +5 -0
- aws_sdk_cloudformation/types/requires_recreation.py +42 -0
- aws_sdk_cloudformation/types/resource_attribute.py +50 -0
- aws_sdk_cloudformation/types/resource_change.py +244 -0
- aws_sdk_cloudformation/types/resource_change_detail.py +93 -0
- aws_sdk_cloudformation/types/resource_change_details.py +57 -0
- aws_sdk_cloudformation/types/resource_definition.py +63 -0
- aws_sdk_cloudformation/types/resource_definitions.py +57 -0
- aws_sdk_cloudformation/types/resource_detail.py +113 -0
- aws_sdk_cloudformation/types/resource_details.py +57 -0
- aws_sdk_cloudformation/types/resource_drift_actual_value.py +5 -0
- aws_sdk_cloudformation/types/resource_drift_ignored_attribute.py +53 -0
- aws_sdk_cloudformation/types/resource_drift_ignored_attributes.py +61 -0
- aws_sdk_cloudformation/types/resource_drift_previous_value.py +5 -0
- aws_sdk_cloudformation/types/resource_identifier.py +5 -0
- aws_sdk_cloudformation/types/resource_identifier_properties.py +61 -0
- aws_sdk_cloudformation/types/resource_identifier_property_key.py +5 -0
- aws_sdk_cloudformation/types/resource_identifier_property_value.py +5 -0
- aws_sdk_cloudformation/types/resource_identifier_summaries.py +61 -0
- aws_sdk_cloudformation/types/resource_identifier_summary.py +73 -0
- aws_sdk_cloudformation/types/resource_identifiers.py +41 -0
- aws_sdk_cloudformation/types/resource_location.py +41 -0
- aws_sdk_cloudformation/types/resource_mapping.py +62 -0
- aws_sdk_cloudformation/types/resource_mappings.py +57 -0
- aws_sdk_cloudformation/types/resource_model.py +5 -0
- aws_sdk_cloudformation/types/resource_properties.py +5 -0
- aws_sdk_cloudformation/types/resource_property_path.py +5 -0
- aws_sdk_cloudformation/types/resource_scan_id.py +5 -0
- aws_sdk_cloudformation/types/resource_scan_status.py +44 -0
- aws_sdk_cloudformation/types/resource_scan_status_reason.py +5 -0
- aws_sdk_cloudformation/types/resource_scan_summaries.py +57 -0
- aws_sdk_cloudformation/types/resource_scan_summary.py +122 -0
- aws_sdk_cloudformation/types/resource_scanner_max_results.py +5 -0
- aws_sdk_cloudformation/types/resource_signal_status.py +40 -0
- aws_sdk_cloudformation/types/resource_signal_unique_id.py +5 -0
- aws_sdk_cloudformation/types/resource_status.py +92 -0
- aws_sdk_cloudformation/types/resource_status_reason.py +5 -0
- aws_sdk_cloudformation/types/resource_target_definition.py +177 -0
- aws_sdk_cloudformation/types/resource_to_import.py +63 -0
- aws_sdk_cloudformation/types/resource_to_skip.py +5 -0
- aws_sdk_cloudformation/types/resource_type.py +5 -0
- aws_sdk_cloudformation/types/resource_type_filter.py +5 -0
- aws_sdk_cloudformation/types/resource_type_filters.py +41 -0
- aws_sdk_cloudformation/types/resource_type_prefix.py +5 -0
- aws_sdk_cloudformation/types/resource_types.py +41 -0
- aws_sdk_cloudformation/types/resources_failed.py +5 -0
- aws_sdk_cloudformation/types/resources_pending.py +5 -0
- aws_sdk_cloudformation/types/resources_processing.py +5 -0
- aws_sdk_cloudformation/types/resources_read.py +5 -0
- aws_sdk_cloudformation/types/resources_scanned.py +5 -0
- aws_sdk_cloudformation/types/resources_succeeded.py +5 -0
- aws_sdk_cloudformation/types/resources_to_import.py +57 -0
- aws_sdk_cloudformation/types/resources_to_skip.py +41 -0
- aws_sdk_cloudformation/types/retain_except_on_create.py +5 -0
- aws_sdk_cloudformation/types/retain_resources.py +41 -0
- aws_sdk_cloudformation/types/retain_stacks.py +5 -0
- aws_sdk_cloudformation/types/retain_stacks_nullable.py +5 -0
- aws_sdk_cloudformation/types/retain_stacks_on_account_removal_nullable.py +5 -0
- aws_sdk_cloudformation/types/role_arn.py +5 -0
- aws_sdk_cloudformation/types/role_arn2.py +5 -0
- aws_sdk_cloudformation/types/rollback_configuration.py +60 -0
- aws_sdk_cloudformation/types/rollback_stack_input.py +70 -0
- aws_sdk_cloudformation/types/rollback_stack_output.py +39 -0
- aws_sdk_cloudformation/types/rollback_trigger.py +39 -0
- aws_sdk_cloudformation/types/rollback_triggers.py +57 -0
- aws_sdk_cloudformation/types/s3_bucket.py +5 -0
- aws_sdk_cloudformation/types/s3_url.py +5 -0
- aws_sdk_cloudformation/types/scan_filter.py +43 -0
- aws_sdk_cloudformation/types/scan_filters.py +51 -0
- aws_sdk_cloudformation/types/scan_type.py +38 -0
- aws_sdk_cloudformation/types/scanned_resource.py +68 -0
- aws_sdk_cloudformation/types/scanned_resource_identifier.py +53 -0
- aws_sdk_cloudformation/types/scanned_resource_identifiers.py +61 -0
- aws_sdk_cloudformation/types/scanned_resources.py +57 -0
- aws_sdk_cloudformation/types/scope.py +55 -0
- aws_sdk_cloudformation/types/set_stack_policy_input.py +51 -0
- aws_sdk_cloudformation/types/set_type_configuration_input.py +77 -0
- aws_sdk_cloudformation/types/set_type_configuration_output.py +33 -0
- aws_sdk_cloudformation/types/set_type_default_version_input.py +65 -0
- aws_sdk_cloudformation/types/set_type_default_version_output.py +21 -0
- aws_sdk_cloudformation/types/signal_resource_input.py +73 -0
- aws_sdk_cloudformation/types/stack.py +406 -0
- aws_sdk_cloudformation/types/stack_definition.py +49 -0
- aws_sdk_cloudformation/types/stack_definitions.py +57 -0
- aws_sdk_cloudformation/types/stack_drift_detection_id.py +5 -0
- aws_sdk_cloudformation/types/stack_drift_detection_status.py +42 -0
- aws_sdk_cloudformation/types/stack_drift_detection_status_reason.py +5 -0
- aws_sdk_cloudformation/types/stack_drift_information.py +63 -0
- aws_sdk_cloudformation/types/stack_drift_information_summary.py +63 -0
- aws_sdk_cloudformation/types/stack_drift_status.py +44 -0
- aws_sdk_cloudformation/types/stack_event.py +263 -0
- aws_sdk_cloudformation/types/stack_events.py +51 -0
- aws_sdk_cloudformation/types/stack_id.py +5 -0
- aws_sdk_cloudformation/types/stack_id_list.py +39 -0
- aws_sdk_cloudformation/types/stack_ids.py +37 -0
- aws_sdk_cloudformation/types/stack_ids_url.py +5 -0
- aws_sdk_cloudformation/types/stack_instance.py +187 -0
- aws_sdk_cloudformation/types/stack_instance_comprehensive_status.py +43 -0
- aws_sdk_cloudformation/types/stack_instance_detailed_status.py +54 -0
- aws_sdk_cloudformation/types/stack_instance_filter.py +53 -0
- aws_sdk_cloudformation/types/stack_instance_filter_name.py +42 -0
- aws_sdk_cloudformation/types/stack_instance_filter_values.py +5 -0
- aws_sdk_cloudformation/types/stack_instance_filters.py +57 -0
- aws_sdk_cloudformation/types/stack_instance_resource_drifts_summaries.py +67 -0
- aws_sdk_cloudformation/types/stack_instance_resource_drifts_summary.py +143 -0
- aws_sdk_cloudformation/types/stack_instance_status.py +42 -0
- aws_sdk_cloudformation/types/stack_instance_summaries.py +57 -0
- aws_sdk_cloudformation/types/stack_instance_summary.py +167 -0
- aws_sdk_cloudformation/types/stack_name.py +5 -0
- aws_sdk_cloudformation/types/stack_name_or_id.py +5 -0
- aws_sdk_cloudformation/types/stack_policy_body.py +5 -0
- aws_sdk_cloudformation/types/stack_policy_during_update_body.py +5 -0
- aws_sdk_cloudformation/types/stack_policy_during_update_url.py +5 -0
- aws_sdk_cloudformation/types/stack_policy_url.py +5 -0
- aws_sdk_cloudformation/types/stack_refactor_action.py +185 -0
- aws_sdk_cloudformation/types/stack_refactor_action_entity.py +40 -0
- aws_sdk_cloudformation/types/stack_refactor_action_type.py +40 -0
- aws_sdk_cloudformation/types/stack_refactor_actions.py +57 -0
- aws_sdk_cloudformation/types/stack_refactor_detection.py +40 -0
- aws_sdk_cloudformation/types/stack_refactor_execution_status.py +56 -0
- aws_sdk_cloudformation/types/stack_refactor_execution_status_filter.py +63 -0
- aws_sdk_cloudformation/types/stack_refactor_id.py +5 -0
- aws_sdk_cloudformation/types/stack_refactor_resource_identifier.py +5 -0
- aws_sdk_cloudformation/types/stack_refactor_status.py +48 -0
- aws_sdk_cloudformation/types/stack_refactor_status_reason.py +5 -0
- aws_sdk_cloudformation/types/stack_refactor_summaries.py +57 -0
- aws_sdk_cloudformation/types/stack_refactor_summary.py +103 -0
- aws_sdk_cloudformation/types/stack_refactor_tag_resources.py +49 -0
- aws_sdk_cloudformation/types/stack_refactor_untag_resources.py +41 -0
- aws_sdk_cloudformation/types/stack_resource.py +163 -0
- aws_sdk_cloudformation/types/stack_resource_detail.py +175 -0
- aws_sdk_cloudformation/types/stack_resource_drift.py +188 -0
- aws_sdk_cloudformation/types/stack_resource_drift_information.py +65 -0
- aws_sdk_cloudformation/types/stack_resource_drift_information_summary.py +67 -0
- aws_sdk_cloudformation/types/stack_resource_drift_status.py +48 -0
- aws_sdk_cloudformation/types/stack_resource_drift_status_filters.py +63 -0
- aws_sdk_cloudformation/types/stack_resource_drift_status_reason.py +5 -0
- aws_sdk_cloudformation/types/stack_resource_drifts.py +57 -0
- aws_sdk_cloudformation/types/stack_resource_summaries.py +57 -0
- aws_sdk_cloudformation/types/stack_resource_summary.py +143 -0
- aws_sdk_cloudformation/types/stack_resources.py +53 -0
- aws_sdk_cloudformation/types/stack_set.py +269 -0
- aws_sdk_cloudformation/types/stack_set_arn.py +5 -0
- aws_sdk_cloudformation/types/stack_set_arn_list.py +41 -0
- aws_sdk_cloudformation/types/stack_set_auto_deployment_target_summaries.py +67 -0
- aws_sdk_cloudformation/types/stack_set_auto_deployment_target_summary.py +53 -0
- aws_sdk_cloudformation/types/stack_set_drift_detection_details.py +170 -0
- aws_sdk_cloudformation/types/stack_set_drift_detection_status.py +48 -0
- aws_sdk_cloudformation/types/stack_set_drift_status.py +42 -0
- aws_sdk_cloudformation/types/stack_set_id.py +5 -0
- aws_sdk_cloudformation/types/stack_set_name.py +5 -0
- aws_sdk_cloudformation/types/stack_set_name_or_id.py +5 -0
- aws_sdk_cloudformation/types/stack_set_operation.py +240 -0
- aws_sdk_cloudformation/types/stack_set_operation_action.py +44 -0
- aws_sdk_cloudformation/types/stack_set_operation_preferences.py +139 -0
- aws_sdk_cloudformation/types/stack_set_operation_result_status.py +48 -0
- aws_sdk_cloudformation/types/stack_set_operation_result_summaries.py +63 -0
- aws_sdk_cloudformation/types/stack_set_operation_result_summary.py +99 -0
- aws_sdk_cloudformation/types/stack_set_operation_status.py +48 -0
- aws_sdk_cloudformation/types/stack_set_operation_status_details.py +40 -0
- aws_sdk_cloudformation/types/stack_set_operation_status_reason.py +5 -0
- aws_sdk_cloudformation/types/stack_set_operation_summaries.py +61 -0
- aws_sdk_cloudformation/types/stack_set_operation_summary.py +156 -0
- aws_sdk_cloudformation/types/stack_set_status.py +40 -0
- aws_sdk_cloudformation/types/stack_set_summaries.py +57 -0
- aws_sdk_cloudformation/types/stack_set_summary.py +167 -0
- aws_sdk_cloudformation/types/stack_status.py +82 -0
- aws_sdk_cloudformation/types/stack_status_filter.py +53 -0
- aws_sdk_cloudformation/types/stack_status_reason.py +5 -0
- aws_sdk_cloudformation/types/stack_summaries.py +53 -0
- aws_sdk_cloudformation/types/stack_summary.py +193 -0
- aws_sdk_cloudformation/types/stacks.py +47 -0
- aws_sdk_cloudformation/types/stage_list.py +51 -0
- aws_sdk_cloudformation/types/start_resource_scan_input.py +53 -0
- aws_sdk_cloudformation/types/start_resource_scan_output.py +33 -0
- aws_sdk_cloudformation/types/status_message.py +5 -0
- aws_sdk_cloudformation/types/stop_stack_set_operation_input.py +59 -0
- aws_sdk_cloudformation/types/stop_stack_set_operation_output.py +21 -0
- aws_sdk_cloudformation/types/supported_major_version.py +5 -0
- aws_sdk_cloudformation/types/supported_major_versions.py +41 -0
- aws_sdk_cloudformation/types/tag.py +37 -0
- aws_sdk_cloudformation/types/tag_key.py +5 -0
- aws_sdk_cloudformation/types/tag_value.py +5 -0
- aws_sdk_cloudformation/types/tags.py +47 -0
- aws_sdk_cloudformation/types/template_body.py +5 -0
- aws_sdk_cloudformation/types/template_configuration.py +63 -0
- aws_sdk_cloudformation/types/template_description.py +5 -0
- aws_sdk_cloudformation/types/template_format.py +40 -0
- aws_sdk_cloudformation/types/template_parameter.py +59 -0
- aws_sdk_cloudformation/types/template_parameters.py +57 -0
- aws_sdk_cloudformation/types/template_progress.py +67 -0
- aws_sdk_cloudformation/types/template_stage.py +40 -0
- aws_sdk_cloudformation/types/template_status_reason.py +5 -0
- aws_sdk_cloudformation/types/template_summaries.py +57 -0
- aws_sdk_cloudformation/types/template_summary.py +127 -0
- aws_sdk_cloudformation/types/template_summary_config.py +44 -0
- aws_sdk_cloudformation/types/template_url.py +5 -0
- aws_sdk_cloudformation/types/test_type_input.py +73 -0
- aws_sdk_cloudformation/types/test_type_output.py +31 -0
- aws_sdk_cloudformation/types/third_party_type.py +42 -0
- aws_sdk_cloudformation/types/third_party_type_arn.py +5 -0
- aws_sdk_cloudformation/types/timeout_minutes.py +5 -0
- aws_sdk_cloudformation/types/timestamp.py +27 -0
- aws_sdk_cloudformation/types/total_stack_instances_count.py +5 -0
- aws_sdk_cloudformation/types/total_warnings.py +5 -0
- aws_sdk_cloudformation/types/transform_name.py +5 -0
- aws_sdk_cloudformation/types/transforms_list.py +41 -0
- aws_sdk_cloudformation/types/treat_unrecognized_resource_types_as_warnings.py +5 -0
- aws_sdk_cloudformation/types/type.py +5 -0
- aws_sdk_cloudformation/types/type_arn.py +5 -0
- aws_sdk_cloudformation/types/type_configuration.py +5 -0
- aws_sdk_cloudformation/types/type_configuration_alias.py +5 -0
- aws_sdk_cloudformation/types/type_configuration_arn.py +5 -0
- aws_sdk_cloudformation/types/type_configuration_details.py +102 -0
- aws_sdk_cloudformation/types/type_configuration_details_list.py +61 -0
- aws_sdk_cloudformation/types/type_configuration_identifier.py +79 -0
- aws_sdk_cloudformation/types/type_configuration_identifiers.py +61 -0
- aws_sdk_cloudformation/types/type_filters.py +57 -0
- aws_sdk_cloudformation/types/type_hierarchy.py +5 -0
- aws_sdk_cloudformation/types/type_name.py +5 -0
- aws_sdk_cloudformation/types/type_name_prefix.py +5 -0
- aws_sdk_cloudformation/types/type_schema.py +5 -0
- aws_sdk_cloudformation/types/type_summaries.py +51 -0
- aws_sdk_cloudformation/types/type_summary.py +167 -0
- aws_sdk_cloudformation/types/type_tests_status.py +44 -0
- aws_sdk_cloudformation/types/type_tests_status_description.py +5 -0
- aws_sdk_cloudformation/types/type_version_id.py +5 -0
- aws_sdk_cloudformation/types/type_version_summaries.py +57 -0
- aws_sdk_cloudformation/types/type_version_summary.py +118 -0
- aws_sdk_cloudformation/types/unprocessed_type_configurations.py +61 -0
- aws_sdk_cloudformation/types/update_generated_template_input.py +128 -0
- aws_sdk_cloudformation/types/update_generated_template_output.py +35 -0
- aws_sdk_cloudformation/types/update_stack_input.py +280 -0
- aws_sdk_cloudformation/types/update_stack_instances_input.py +151 -0
- aws_sdk_cloudformation/types/update_stack_instances_output.py +33 -0
- aws_sdk_cloudformation/types/update_stack_output.py +39 -0
- aws_sdk_cloudformation/types/update_stack_set_input.py +304 -0
- aws_sdk_cloudformation/types/update_stack_set_output.py +33 -0
- aws_sdk_cloudformation/types/update_termination_protection_input.py +50 -0
- aws_sdk_cloudformation/types/update_termination_protection_output.py +31 -0
- aws_sdk_cloudformation/types/url.py +5 -0
- aws_sdk_cloudformation/types/use_previous_template.py +5 -0
- aws_sdk_cloudformation/types/use_previous_value.py +5 -0
- aws_sdk_cloudformation/types/validate_template_input.py +41 -0
- aws_sdk_cloudformation/types/validate_template_output.py +101 -0
- aws_sdk_cloudformation/types/validation_name.py +5 -0
- aws_sdk_cloudformation/types/validation_path.py +5 -0
- aws_sdk_cloudformation/types/validation_status.py +40 -0
- aws_sdk_cloudformation/types/validation_status_reason.py +5 -0
- aws_sdk_cloudformation/types/value.py +5 -0
- aws_sdk_cloudformation/types/version.py +5 -0
- aws_sdk_cloudformation/types/version_bump.py +40 -0
- aws_sdk_cloudformation/types/visibility.py +40 -0
- aws_sdk_cloudformation/types/warning_detail.py +59 -0
- aws_sdk_cloudformation/types/warning_details.py +53 -0
- aws_sdk_cloudformation/types/warning_properties.py +57 -0
- aws_sdk_cloudformation/types/warning_property.py +53 -0
- aws_sdk_cloudformation/types/warning_type.py +46 -0
- aws_sdk_cloudformation/types/warnings.py +43 -0
- aws_sdk_cloudformation-0.1.0.dist-info/METADATA +112 -0
- aws_sdk_cloudformation-0.1.0.dist-info/RECORD +782 -0
- aws_sdk_cloudformation-0.1.0.dist-info/WHEEL +5 -0
- aws_sdk_cloudformation-0.1.0.dist-info/licenses/LICENSE +21 -0
- aws_sdk_cloudformation-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from ._auth._identity import Credentials as Credentials
|
|
4
|
+
from ._auth._identity import Identity as Identity
|
|
5
|
+
from ._auth._providers import (
|
|
6
|
+
CachedProvider as CachedProvider,
|
|
7
|
+
)
|
|
8
|
+
from ._auth._providers import (
|
|
9
|
+
ChainedProvider as ChainedProvider,
|
|
10
|
+
)
|
|
11
|
+
from ._auth._providers import (
|
|
12
|
+
CredentialsProvider as CredentialsProvider,
|
|
13
|
+
)
|
|
14
|
+
from ._auth._providers import (
|
|
15
|
+
EnvCredentialsProvider as EnvCredentialsProvider,
|
|
16
|
+
)
|
|
17
|
+
from ._auth._providers import (
|
|
18
|
+
IdentityNotFound as IdentityNotFound,
|
|
19
|
+
)
|
|
20
|
+
from ._auth._providers import (
|
|
21
|
+
IdentityProvider as IdentityProvider,
|
|
22
|
+
)
|
|
23
|
+
from ._auth._providers import (
|
|
24
|
+
ProfileCredentialsProvider as ProfileCredentialsProvider,
|
|
25
|
+
)
|
|
26
|
+
from ._auth._providers import (
|
|
27
|
+
StaticAwsCredentialsProvider as StaticAwsCredentialsProvider,
|
|
28
|
+
)
|
|
29
|
+
from ._auth._signers import Signer as Signer
|
|
30
|
+
from ._auth._signers import SigV4Signer as SigV4Signer
|
|
31
|
+
from ._services.async_cloud_formation import (
|
|
32
|
+
AsyncCloudFormationClient as AsyncCloudFormationClient,
|
|
33
|
+
)
|
|
34
|
+
from ._services.cloud_formation import CloudFormationClient as CloudFormationClient
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import asyncio
|
|
4
|
+
from typing import TYPE_CHECKING
|
|
5
|
+
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
import trio
|
|
8
|
+
else:
|
|
9
|
+
try:
|
|
10
|
+
import trio
|
|
11
|
+
except ImportError:
|
|
12
|
+
trio = None
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def in_trio_run() -> bool:
|
|
16
|
+
if trio is None:
|
|
17
|
+
return False
|
|
18
|
+
return trio.lowlevel.in_trio_run()
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
async def anysleep(delay: float) -> None:
|
|
22
|
+
if in_trio_run():
|
|
23
|
+
await trio.sleep(delay)
|
|
24
|
+
else:
|
|
25
|
+
await asyncio.sleep(delay)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from datetime import datetime
|
|
4
|
+
from typing import TypedDict
|
|
5
|
+
|
|
6
|
+
from typing_extensions import NotRequired
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Identity(TypedDict):
|
|
10
|
+
expiration: NotRequired[datetime | None]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Credentials(Identity):
|
|
14
|
+
access_key: str
|
|
15
|
+
secret_key: str
|
|
16
|
+
session_token: NotRequired[str | None]
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import configparser
|
|
4
|
+
import os
|
|
5
|
+
from abc import abstractmethod
|
|
6
|
+
from datetime import datetime, timezone
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
from typing import Generic, TypeVar
|
|
9
|
+
|
|
10
|
+
from aws_sdk_cloudformation._auth._identity import (
|
|
11
|
+
Credentials,
|
|
12
|
+
Identity,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class IdentityNotFound(Exception):
|
|
17
|
+
"""Raised when a provider cannot resolve an identity. Chain continues."""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
IdentityT = TypeVar("IdentityT", bound="Identity")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class IdentityProvider(Generic[IdentityT]):
|
|
24
|
+
@abstractmethod
|
|
25
|
+
def resolve_identity(self) -> IdentityT:
|
|
26
|
+
raise NotImplementedError
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class ChainedProvider(IdentityProvider[IdentityT]):
|
|
30
|
+
"""Try each provider in order; first non-`IdentityNotFound` wins."""
|
|
31
|
+
|
|
32
|
+
def __init__(self, *providers: IdentityProvider[IdentityT]) -> None:
|
|
33
|
+
if not providers:
|
|
34
|
+
raise ValueError("ChainedProvider requires at least one provider")
|
|
35
|
+
self._providers = providers
|
|
36
|
+
|
|
37
|
+
def resolve_identity(self) -> IdentityT:
|
|
38
|
+
errors: list[str] = []
|
|
39
|
+
for p in self._providers:
|
|
40
|
+
try:
|
|
41
|
+
return p.resolve_identity()
|
|
42
|
+
except IdentityNotFound as e:
|
|
43
|
+
errors.append(f"{type(p).__name__}: {e}")
|
|
44
|
+
raise IdentityNotFound("no provider succeeded: " + "; ".join(errors))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class CachedProvider(IdentityProvider[IdentityT]):
|
|
48
|
+
"""Cache an identity until its `expiration` (minus skew) elapses."""
|
|
49
|
+
|
|
50
|
+
_SKEW_SECONDS = 60
|
|
51
|
+
|
|
52
|
+
def __init__(self, inner: IdentityProvider[IdentityT]) -> None:
|
|
53
|
+
self._inner = inner
|
|
54
|
+
self._cached: IdentityT | None = None
|
|
55
|
+
|
|
56
|
+
def resolve_identity(self) -> IdentityT:
|
|
57
|
+
if self._cached is not None and not self._expired(self._cached):
|
|
58
|
+
return self._cached
|
|
59
|
+
self._cached = self._inner.resolve_identity()
|
|
60
|
+
return self._cached
|
|
61
|
+
|
|
62
|
+
@classmethod
|
|
63
|
+
def _expired(cls, ident: Identity) -> bool:
|
|
64
|
+
exp = ident.get("expiration")
|
|
65
|
+
if exp is None:
|
|
66
|
+
return False
|
|
67
|
+
return (exp - datetime.now(timezone.utc)).total_seconds() <= cls._SKEW_SECONDS
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class CredentialsProvider(IdentityProvider[Credentials]):
|
|
71
|
+
"""Base class for providers that resolve AWS `Credentials`."""
|
|
72
|
+
|
|
73
|
+
@abstractmethod
|
|
74
|
+
def resolve_identity(self) -> Credentials:
|
|
75
|
+
raise NotImplementedError
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class StaticAwsCredentialsProvider(CredentialsProvider):
|
|
79
|
+
def __init__(self, credentials: Credentials) -> None:
|
|
80
|
+
self._credentials = credentials
|
|
81
|
+
|
|
82
|
+
def resolve_identity(self) -> Credentials:
|
|
83
|
+
return self._credentials
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
class EnvCredentialsProvider(CredentialsProvider):
|
|
87
|
+
"""Read AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY / AWS_SESSION_TOKEN."""
|
|
88
|
+
|
|
89
|
+
def resolve_identity(self) -> Credentials:
|
|
90
|
+
ak = os.environ.get("AWS_ACCESS_KEY_ID")
|
|
91
|
+
sk = os.environ.get("AWS_SECRET_ACCESS_KEY")
|
|
92
|
+
if not ak or not sk:
|
|
93
|
+
raise IdentityNotFound("AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY unset")
|
|
94
|
+
out: Credentials = {"access_key": ak, "secret_key": sk}
|
|
95
|
+
token = os.environ.get("AWS_SESSION_TOKEN")
|
|
96
|
+
if token:
|
|
97
|
+
out["session_token"] = token
|
|
98
|
+
return out
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
class ProfileCredentialsProvider(CredentialsProvider):
|
|
102
|
+
"""Read ~/.aws/credentials and ~/.aws/config for the active profile."""
|
|
103
|
+
|
|
104
|
+
def __init__(
|
|
105
|
+
self,
|
|
106
|
+
profile: str | None = None,
|
|
107
|
+
credentials_file: Path | None = None,
|
|
108
|
+
config_file: Path | None = None,
|
|
109
|
+
) -> None:
|
|
110
|
+
self._profile = profile or os.environ.get("AWS_PROFILE", "default")
|
|
111
|
+
self._cred_file = credentials_file or Path(
|
|
112
|
+
os.environ.get("AWS_SHARED_CREDENTIALS_FILE")
|
|
113
|
+
or Path.home() / ".aws" / "credentials"
|
|
114
|
+
)
|
|
115
|
+
self._cfg_file = config_file or Path(
|
|
116
|
+
os.environ.get("AWS_CONFIG_FILE") or Path.home() / ".aws" / "config"
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
def resolve_identity(self) -> Credentials:
|
|
120
|
+
section = self._load_profile()
|
|
121
|
+
ak = section.get("aws_access_key_id")
|
|
122
|
+
sk = section.get("aws_secret_access_key")
|
|
123
|
+
if not ak or not sk:
|
|
124
|
+
raise IdentityNotFound(
|
|
125
|
+
f"profile {self._profile!r}: missing aws_access_key_id/aws_secret_access_key"
|
|
126
|
+
)
|
|
127
|
+
out: Credentials = {"access_key": ak, "secret_key": sk}
|
|
128
|
+
token = section.get("aws_session_token")
|
|
129
|
+
if token:
|
|
130
|
+
out["session_token"] = token
|
|
131
|
+
return out
|
|
132
|
+
|
|
133
|
+
def _load_profile(self) -> dict[str, str]:
|
|
134
|
+
merged: dict[str, str] = {}
|
|
135
|
+
if self._cfg_file.is_file():
|
|
136
|
+
cfg = configparser.ConfigParser()
|
|
137
|
+
cfg.read(self._cfg_file)
|
|
138
|
+
# config file profiles look like `[profile foo]`, except default
|
|
139
|
+
key = (
|
|
140
|
+
"default" if self._profile == "default" else f"profile {self._profile}"
|
|
141
|
+
)
|
|
142
|
+
if cfg.has_section(key):
|
|
143
|
+
merged.update(dict(cfg.items(key)))
|
|
144
|
+
if self._cred_file.is_file():
|
|
145
|
+
cfg = configparser.ConfigParser()
|
|
146
|
+
cfg.read(self._cred_file)
|
|
147
|
+
if cfg.has_section(self._profile):
|
|
148
|
+
merged.update(dict(cfg.items(self._profile)))
|
|
149
|
+
if not merged:
|
|
150
|
+
raise IdentityNotFound(
|
|
151
|
+
f"profile {self._profile!r} not found in {self._cred_file} or {self._cfg_file}"
|
|
152
|
+
)
|
|
153
|
+
return merged
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
def default_aws_credentials_chain() -> IdentityProvider[Credentials]:
|
|
157
|
+
return CachedProvider(
|
|
158
|
+
ChainedProvider(EnvCredentialsProvider(), ProfileCredentialsProvider())
|
|
159
|
+
)
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from abc import ABC, abstractmethod
|
|
4
|
+
from typing import Any, Generic, TypeVar
|
|
5
|
+
|
|
6
|
+
from zapros import Request
|
|
7
|
+
|
|
8
|
+
from aws_sdk_cloudformation._auth._identity import Credentials, Identity
|
|
9
|
+
from aws_sdk_cloudformation._auth._providers import IdentityProvider
|
|
10
|
+
from aws_sdk_cloudformation._auth._sigv4 import SigV4AuthContext, sign_sigv4
|
|
11
|
+
|
|
12
|
+
IdentityT = TypeVar("IdentityT", bound="Identity")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class Signer(ABC, Generic[IdentityT]):
|
|
16
|
+
"""Per-request request signer. Holds an IdentityProvider plus static config."""
|
|
17
|
+
|
|
18
|
+
def __init__(self, provider: IdentityProvider[IdentityT]) -> None:
|
|
19
|
+
self.provider = provider
|
|
20
|
+
|
|
21
|
+
@abstractmethod
|
|
22
|
+
async def asign(self, req: Request) -> Request: ...
|
|
23
|
+
@abstractmethod
|
|
24
|
+
def sign(self, req: Request) -> Request: ...
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class SigV4Signer(Signer[Credentials]):
|
|
28
|
+
"""aws.auth#sigv4 — AWS Signature Version 4.
|
|
29
|
+
|
|
30
|
+
The full auth scheme (``name`` variant, ``signingName``, ``signingRegion``,
|
|
31
|
+
encoding/normalization flags) is provided by the caller — either from the
|
|
32
|
+
endpoint rule-set's ``authSchemes`` property or built by the generated
|
|
33
|
+
``get_signer`` from operation defaults.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
def __init__(
|
|
37
|
+
self, provider: IdentityProvider[Credentials], *, auth_scheme: dict[str, Any]
|
|
38
|
+
) -> None:
|
|
39
|
+
super().__init__(provider)
|
|
40
|
+
self._auth_scheme = auth_scheme
|
|
41
|
+
|
|
42
|
+
async def asign(self, req: Request) -> Request:
|
|
43
|
+
creds = self.provider.resolve_identity()
|
|
44
|
+
ctx: SigV4AuthContext = {
|
|
45
|
+
"type": "sig_v4",
|
|
46
|
+
"access_key_id": creds["access_key"],
|
|
47
|
+
"secret_access_key": creds["secret_key"],
|
|
48
|
+
"session_token": creds.get("session_token"),
|
|
49
|
+
"signing_region": self._auth_scheme["signingRegion"],
|
|
50
|
+
"signing_name": self._auth_scheme["signingName"],
|
|
51
|
+
}
|
|
52
|
+
if req.body is None:
|
|
53
|
+
body: bytes | None = b""
|
|
54
|
+
elif isinstance(req.body, bytes):
|
|
55
|
+
body = req.body
|
|
56
|
+
else:
|
|
57
|
+
body = None
|
|
58
|
+
# Strip Accept-Encoding so transports/intermediaries can't transcode
|
|
59
|
+
# the response and so the value never enters the canonical request.
|
|
60
|
+
if "accept-encoding" in req.headers:
|
|
61
|
+
del req.headers["Accept-Encoding"]
|
|
62
|
+
return sign_sigv4(req, ctx, body)
|
|
63
|
+
|
|
64
|
+
def sign(self, req: Request) -> Request:
|
|
65
|
+
creds = self.provider.resolve_identity()
|
|
66
|
+
ctx: SigV4AuthContext = {
|
|
67
|
+
"type": "sig_v4",
|
|
68
|
+
"access_key_id": creds["access_key"],
|
|
69
|
+
"secret_access_key": creds["secret_key"],
|
|
70
|
+
"session_token": creds.get("session_token"),
|
|
71
|
+
"signing_region": self._auth_scheme["signingRegion"],
|
|
72
|
+
"signing_name": self._auth_scheme["signingName"],
|
|
73
|
+
}
|
|
74
|
+
if req.body is None:
|
|
75
|
+
body: bytes | None = b""
|
|
76
|
+
elif isinstance(req.body, bytes):
|
|
77
|
+
body = req.body
|
|
78
|
+
else:
|
|
79
|
+
body = None
|
|
80
|
+
# Strip Accept-Encoding so transports/intermediaries can't transcode
|
|
81
|
+
# the response and so the value never enters the canonical request.
|
|
82
|
+
if "accept-encoding" in req.headers:
|
|
83
|
+
del req.headers["Accept-Encoding"]
|
|
84
|
+
return sign_sigv4(req, ctx, body)
|
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
"""AWS Signature Version 4 — single-chunk signing.
|
|
2
|
+
|
|
3
|
+
Reference:
|
|
4
|
+
https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_sigv-create-signed-request.html
|
|
5
|
+
|
|
6
|
+
Verified byte-for-byte against ``botocore.auth.S3SigV4Auth`` / ``SigV4Auth``
|
|
7
|
+
across S3 GET/PUT/POST, query-string, session-token, and non-S3 (IAM)
|
|
8
|
+
canonicalization paths.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
import datetime as _dt
|
|
14
|
+
import hashlib
|
|
15
|
+
import hmac
|
|
16
|
+
import re
|
|
17
|
+
from typing import Any, Literal, TypedDict
|
|
18
|
+
from urllib.parse import quote, unquote
|
|
19
|
+
|
|
20
|
+
import zapros
|
|
21
|
+
from pywhatwgurl import URLSearchParams
|
|
22
|
+
from zapros import Headers, Request
|
|
23
|
+
from zapros._utils import get_host_header_value
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def build_sigv4_auth_scheme(
|
|
27
|
+
signing_name: str, region: str | None
|
|
28
|
+
) -> dict[str, Any] | None:
|
|
29
|
+
"""Return a sigv4 auth scheme dict for the given signing name and region.
|
|
30
|
+
|
|
31
|
+
Returns None when region is not set so callers can use it in an ``or`` chain.
|
|
32
|
+
"""
|
|
33
|
+
if region is None:
|
|
34
|
+
return None
|
|
35
|
+
return {
|
|
36
|
+
"name": "sigv4",
|
|
37
|
+
"signingName": signing_name,
|
|
38
|
+
"signingRegion": region,
|
|
39
|
+
"disableDoubleEncoding": False,
|
|
40
|
+
"disableNormalizePath": False,
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class SigV4AuthContext(TypedDict):
|
|
45
|
+
type: Literal["sig_v4"]
|
|
46
|
+
access_key_id: str
|
|
47
|
+
secret_access_key: str
|
|
48
|
+
session_token: str | None
|
|
49
|
+
signing_region: str
|
|
50
|
+
signing_name: str
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
_SIGV4_ALGORITHM = "AWS4-HMAC-SHA256"
|
|
54
|
+
_EMPTY_PAYLOAD_SHA256 = hashlib.sha256(b"").hexdigest()
|
|
55
|
+
|
|
56
|
+
# Headers excluded from the signed-headers set. Mirrors botocore's denylist:
|
|
57
|
+
# these are hop-by-hop / mutable in transit, so signing them would break
|
|
58
|
+
# proxies or duplicate values already added by the transport layer.
|
|
59
|
+
_UNSIGNED_HEADERS = frozenset(
|
|
60
|
+
{
|
|
61
|
+
"authorization",
|
|
62
|
+
"cache-control",
|
|
63
|
+
"connection",
|
|
64
|
+
"expect",
|
|
65
|
+
"from",
|
|
66
|
+
"keep-alive",
|
|
67
|
+
"max-forwards",
|
|
68
|
+
"pragma",
|
|
69
|
+
"referer",
|
|
70
|
+
"te",
|
|
71
|
+
"trailer",
|
|
72
|
+
"transfer-encoding",
|
|
73
|
+
"upgrade",
|
|
74
|
+
"user-agent",
|
|
75
|
+
"x-amzn-trace-id",
|
|
76
|
+
"content-length",
|
|
77
|
+
"accept",
|
|
78
|
+
"accept-encoding",
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
_MULTI_SPACE = re.compile(r" +")
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def _uri_encode(value: str) -> str:
|
|
86
|
+
"""RFC 3986 percent-encoding using only the unreserved set as safe."""
|
|
87
|
+
return quote(value, safe="-_.~")
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def _canonical_path(path: str, *, service: str) -> str:
|
|
91
|
+
"""Build CanonicalURI.
|
|
92
|
+
|
|
93
|
+
Per the SigV4 spec, every segment is URI-encoded; for services other
|
|
94
|
+
than S3 each segment is URI-encoded **twice**. S3 keeps the path
|
|
95
|
+
exactly as provided (no normalization, no double-encoding).
|
|
96
|
+
"""
|
|
97
|
+
if not path:
|
|
98
|
+
return "/"
|
|
99
|
+
if service == "s3":
|
|
100
|
+
return path if path.startswith("/") else "/" + path
|
|
101
|
+
decoded = unquote(path)
|
|
102
|
+
first = quote(decoded, safe="/~")
|
|
103
|
+
return quote(first, safe="/~")
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def _canonical_query(query: str) -> str:
|
|
107
|
+
"""Build CanonicalQueryString from a raw query string (with or without ``?``)."""
|
|
108
|
+
if not query:
|
|
109
|
+
return ""
|
|
110
|
+
if query.startswith("?"):
|
|
111
|
+
query = query[1:]
|
|
112
|
+
if not query:
|
|
113
|
+
return ""
|
|
114
|
+
sp = URLSearchParams(query)
|
|
115
|
+
encoded = sorted((_uri_encode(k), _uri_encode(v)) for k, v in sp.entries())
|
|
116
|
+
return "&".join(f"{k}={v}" for k, v in encoded)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def _trim_header_value(value: str) -> str:
|
|
120
|
+
"""Trim leading/trailing whitespace and collapse internal whitespace runs.
|
|
121
|
+
|
|
122
|
+
Spec note: the canonical form treats sequential whitespace inside an
|
|
123
|
+
unquoted value as a single space. We do not parse quoted-string syntax;
|
|
124
|
+
the conservative collapse is correct for every header AWS actually signs.
|
|
125
|
+
"""
|
|
126
|
+
return _MULTI_SPACE.sub(" ", value.strip())
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
def _canonical_headers(headers: Headers) -> tuple[str, str]:
|
|
130
|
+
"""Return ``(canonical_headers, signed_headers)``."""
|
|
131
|
+
grouped: dict[str, list[str]] = {}
|
|
132
|
+
for name in headers:
|
|
133
|
+
lname = name.lower()
|
|
134
|
+
if lname in _UNSIGNED_HEADERS:
|
|
135
|
+
continue
|
|
136
|
+
grouped[lname] = [_trim_header_value(v) for v in headers.getall(name)]
|
|
137
|
+
|
|
138
|
+
signed = sorted(grouped)
|
|
139
|
+
canonical = "".join(f"{name}:{','.join(grouped[name])}\n" for name in signed)
|
|
140
|
+
return canonical, ";".join(signed)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
def _build_canonical_request(
|
|
144
|
+
*,
|
|
145
|
+
method: str,
|
|
146
|
+
path: str,
|
|
147
|
+
query: str,
|
|
148
|
+
headers: Headers,
|
|
149
|
+
payload_hash: str,
|
|
150
|
+
service: str,
|
|
151
|
+
) -> tuple[str, str]:
|
|
152
|
+
canonical_uri = _canonical_path(path, service=service)
|
|
153
|
+
canonical_query = _canonical_query(query)
|
|
154
|
+
canonical_headers, signed_headers = _canonical_headers(headers)
|
|
155
|
+
canonical_request = (
|
|
156
|
+
f"{method}\n"
|
|
157
|
+
f"{canonical_uri}\n"
|
|
158
|
+
f"{canonical_query}\n"
|
|
159
|
+
f"{canonical_headers}\n"
|
|
160
|
+
f"{signed_headers}\n"
|
|
161
|
+
f"{payload_hash}"
|
|
162
|
+
)
|
|
163
|
+
return canonical_request, signed_headers
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
def _derive_signing_key(secret: str, date: str, region: str, service: str) -> bytes:
|
|
167
|
+
k_date = hmac.new(
|
|
168
|
+
b"AWS4" + secret.encode("utf-8"), date.encode("ascii"), hashlib.sha256
|
|
169
|
+
).digest()
|
|
170
|
+
k_region = hmac.new(k_date, region.encode("utf-8"), hashlib.sha256).digest()
|
|
171
|
+
k_service = hmac.new(k_region, service.encode("utf-8"), hashlib.sha256).digest()
|
|
172
|
+
return hmac.new(k_service, b"aws4_request", hashlib.sha256).digest()
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
def _amz_now() -> _dt.datetime:
|
|
176
|
+
return _dt.datetime.now(_dt.timezone.utc)
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
def _canonical_query_from_pairs(pairs: list[tuple[str, str]]) -> str:
|
|
180
|
+
"""CanonicalQueryString from raw (unencoded) key/value pairs."""
|
|
181
|
+
encoded = sorted((_uri_encode(k), _uri_encode(v)) for k, v in pairs)
|
|
182
|
+
return "&".join(f"{k}={v}" for k, v in encoded)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
def sign_sigv4(
|
|
186
|
+
request: Request,
|
|
187
|
+
ctx: SigV4AuthContext,
|
|
188
|
+
body: bytes | None,
|
|
189
|
+
) -> Request:
|
|
190
|
+
"""Return a new ``Request`` carrying SigV4 single-chunk auth headers.
|
|
191
|
+
|
|
192
|
+
Pass ``body=None`` to sign with ``UNSIGNED-PAYLOAD`` (streaming requests).
|
|
193
|
+
The original ``request.body`` is forwarded unchanged in that case.
|
|
194
|
+
"""
|
|
195
|
+
service = ctx["signing_name"]
|
|
196
|
+
region = ctx["signing_region"]
|
|
197
|
+
|
|
198
|
+
headers = request.headers.copy()
|
|
199
|
+
|
|
200
|
+
# X-Amz-Date — honor caller-supplied value (allows deterministic tests).
|
|
201
|
+
existing_date = headers.get("X-Amz-Date")
|
|
202
|
+
if existing_date:
|
|
203
|
+
amz_date = existing_date
|
|
204
|
+
date_stamp = amz_date[:8]
|
|
205
|
+
else:
|
|
206
|
+
now = _amz_now()
|
|
207
|
+
amz_date = now.strftime("%Y%m%dT%H%M%SZ")
|
|
208
|
+
date_stamp = now.strftime("%Y%m%d")
|
|
209
|
+
headers["X-Amz-Date"] = amz_date
|
|
210
|
+
|
|
211
|
+
# Payload hash. For S3, x-amz-content-sha256 is mandatory and must be set
|
|
212
|
+
# BEFORE computing the canonical request (it gets signed).
|
|
213
|
+
payload_hash = headers.get("X-Amz-Content-SHA256")
|
|
214
|
+
if payload_hash is None:
|
|
215
|
+
if body is None:
|
|
216
|
+
payload_hash = "UNSIGNED-PAYLOAD"
|
|
217
|
+
else:
|
|
218
|
+
payload_hash = (
|
|
219
|
+
hashlib.sha256(body).hexdigest() if body else _EMPTY_PAYLOAD_SHA256
|
|
220
|
+
)
|
|
221
|
+
if service == "s3":
|
|
222
|
+
headers["X-Amz-Content-SHA256"] = payload_hash
|
|
223
|
+
|
|
224
|
+
# Session token (STS / assumed-role credentials).
|
|
225
|
+
session_token = ctx.get("session_token")
|
|
226
|
+
if session_token:
|
|
227
|
+
headers["X-Amz-Security-Token"] = session_token
|
|
228
|
+
|
|
229
|
+
# Host header is added by Request.__init__ from the URL; defensive fallback.
|
|
230
|
+
if "host" not in headers and request.url.hostname:
|
|
231
|
+
headers["Host"] = get_host_header_value(request.url)
|
|
232
|
+
|
|
233
|
+
canonical_request, signed_headers = _build_canonical_request(
|
|
234
|
+
method=request.method.upper(),
|
|
235
|
+
path=request.url.pathname,
|
|
236
|
+
query=request.url.search,
|
|
237
|
+
headers=headers,
|
|
238
|
+
payload_hash=payload_hash,
|
|
239
|
+
service=service,
|
|
240
|
+
)
|
|
241
|
+
|
|
242
|
+
credential_scope = f"{date_stamp}/{region}/{service}/aws4_request"
|
|
243
|
+
string_to_sign = (
|
|
244
|
+
f"{_SIGV4_ALGORITHM}\n"
|
|
245
|
+
f"{amz_date}\n"
|
|
246
|
+
f"{credential_scope}\n"
|
|
247
|
+
f"{hashlib.sha256(canonical_request.encode('utf-8')).hexdigest()}"
|
|
248
|
+
)
|
|
249
|
+
|
|
250
|
+
signing_key = _derive_signing_key(
|
|
251
|
+
ctx["secret_access_key"], date_stamp, region, service
|
|
252
|
+
)
|
|
253
|
+
signature = hmac.new(
|
|
254
|
+
signing_key, string_to_sign.encode("utf-8"), hashlib.sha256
|
|
255
|
+
).hexdigest()
|
|
256
|
+
|
|
257
|
+
headers["Authorization"] = (
|
|
258
|
+
f"{_SIGV4_ALGORITHM} "
|
|
259
|
+
f"Credential={ctx['access_key_id']}/{credential_scope},"
|
|
260
|
+
f"SignedHeaders={signed_headers},"
|
|
261
|
+
f"Signature={signature}"
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
effective_body = body if body is not None else request.body
|
|
265
|
+
if effective_body is not None:
|
|
266
|
+
return Request(
|
|
267
|
+
request.url,
|
|
268
|
+
request.method,
|
|
269
|
+
headers,
|
|
270
|
+
body=effective_body,
|
|
271
|
+
context=request.context,
|
|
272
|
+
)
|
|
273
|
+
return Request(request.url, request.method, headers, context=request.context)
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
def presign_sigv4(
|
|
277
|
+
request: Request,
|
|
278
|
+
ctx: SigV4AuthContext,
|
|
279
|
+
*,
|
|
280
|
+
expires_in: int = 3600,
|
|
281
|
+
now: _dt.datetime | None = None,
|
|
282
|
+
) -> Request:
|
|
283
|
+
"""Return a new ``Request`` whose URL carries SigV4 query-string auth.
|
|
284
|
+
|
|
285
|
+
The signature travels in the URL (``X-Amz-*`` query params), so the result
|
|
286
|
+
is usable standalone (browser, curl). Payload is signed as
|
|
287
|
+
``UNSIGNED-PAYLOAD``, so the body is not bound by the signature.
|
|
288
|
+
|
|
289
|
+
``expires_in`` is the validity window in seconds; range 1..604800 (7 days),
|
|
290
|
+
bounded by the max lifetime of the derived signing key.
|
|
291
|
+
"""
|
|
292
|
+
if not 1 <= expires_in <= 604800:
|
|
293
|
+
raise ValueError(f"expires_in must be in [1, 604800], got {expires_in}")
|
|
294
|
+
|
|
295
|
+
sign_time = now or _amz_now()
|
|
296
|
+
if sign_time.tzinfo is None:
|
|
297
|
+
raise ValueError("now must be timezone-aware (UTC)")
|
|
298
|
+
|
|
299
|
+
service = ctx["signing_name"]
|
|
300
|
+
region = ctx["signing_region"]
|
|
301
|
+
|
|
302
|
+
amz_date = sign_time.strftime("%Y%m%dT%H%M%SZ")
|
|
303
|
+
date_stamp = sign_time.strftime("%Y%m%d")
|
|
304
|
+
credential_scope = f"{date_stamp}/{region}/{service}/aws4_request"
|
|
305
|
+
|
|
306
|
+
# Canonical headers: host is mandatory; anything else already on the request
|
|
307
|
+
# is signed too (and must then be sent alongside the URL). Strip the headers
|
|
308
|
+
# that belong in the query string to avoid header/query value conflicts
|
|
309
|
+
# (which AWS rejects as InvalidRequest).
|
|
310
|
+
headers = request.headers.copy()
|
|
311
|
+
for h in (
|
|
312
|
+
"Authorization",
|
|
313
|
+
"X-Amz-Date",
|
|
314
|
+
"X-Amz-Content-SHA256",
|
|
315
|
+
"X-Amz-Security-Token",
|
|
316
|
+
):
|
|
317
|
+
if h in headers:
|
|
318
|
+
del headers[h]
|
|
319
|
+
if "host" not in headers and request.url.hostname:
|
|
320
|
+
headers["Host"] = get_host_header_value(request.url)
|
|
321
|
+
|
|
322
|
+
canonical_headers, signed_headers = _canonical_headers(headers)
|
|
323
|
+
|
|
324
|
+
# Signed query params (raw values). X-Amz-Signature is appended afterwards.
|
|
325
|
+
amz_params: list[tuple[str, str]] = [
|
|
326
|
+
("X-Amz-Algorithm", _SIGV4_ALGORITHM),
|
|
327
|
+
("X-Amz-Credential", f"{ctx['access_key_id']}/{credential_scope}"),
|
|
328
|
+
("X-Amz-Date", amz_date),
|
|
329
|
+
("X-Amz-Expires", str(expires_in)),
|
|
330
|
+
("X-Amz-SignedHeaders", signed_headers),
|
|
331
|
+
]
|
|
332
|
+
session_token = ctx.get("session_token")
|
|
333
|
+
if session_token:
|
|
334
|
+
# S3 and most services require the token inside the canonical query.
|
|
335
|
+
# (A few — e.g. iotdevicegateway — want it appended post-signature
|
|
336
|
+
# instead; handle those as a special case if you ever target them.)
|
|
337
|
+
amz_params.append(("X-Amz-Security-Token", session_token))
|
|
338
|
+
|
|
339
|
+
existing = list(URLSearchParams(request.url.search).entries())
|
|
340
|
+
canonical_query = _canonical_query_from_pairs(existing + amz_params)
|
|
341
|
+
|
|
342
|
+
canonical_request = (
|
|
343
|
+
f"{request.method.upper()}\n"
|
|
344
|
+
f"{_canonical_path(request.url.pathname, service=service)}\n"
|
|
345
|
+
f"{canonical_query}\n"
|
|
346
|
+
f"{canonical_headers}\n"
|
|
347
|
+
f"{signed_headers}\n"
|
|
348
|
+
f"UNSIGNED-PAYLOAD"
|
|
349
|
+
)
|
|
350
|
+
|
|
351
|
+
string_to_sign = (
|
|
352
|
+
f"{_SIGV4_ALGORITHM}\n"
|
|
353
|
+
f"{amz_date}\n"
|
|
354
|
+
f"{credential_scope}\n"
|
|
355
|
+
f"{hashlib.sha256(canonical_request.encode('utf-8')).hexdigest()}"
|
|
356
|
+
)
|
|
357
|
+
signing_key = _derive_signing_key(
|
|
358
|
+
ctx["secret_access_key"], date_stamp, region, service
|
|
359
|
+
)
|
|
360
|
+
signature = hmac.new(
|
|
361
|
+
signing_key, string_to_sign.encode("utf-8"), hashlib.sha256
|
|
362
|
+
).hexdigest()
|
|
363
|
+
|
|
364
|
+
# X-Amz-Signature is hex (no encoding needed) and is NOT part of the
|
|
365
|
+
# canonical query. The sorted canonical query doubles as the URL query.
|
|
366
|
+
final_query = f"{canonical_query}&X-Amz-Signature={signature}"
|
|
367
|
+
|
|
368
|
+
url = request.url
|
|
369
|
+
fragment = url.hash or ""
|
|
370
|
+
presigned_href = zapros.URL(
|
|
371
|
+
f"{url.protocol}//{url.host}{url.pathname}?{final_query}{fragment}"
|
|
372
|
+
)
|
|
373
|
+
|
|
374
|
+
if request.body is not None:
|
|
375
|
+
return Request(
|
|
376
|
+
presigned_href,
|
|
377
|
+
request.method,
|
|
378
|
+
headers,
|
|
379
|
+
body=request.body,
|
|
380
|
+
context=request.context,
|
|
381
|
+
)
|
|
382
|
+
return Request(presigned_href, request.method, headers, context=request.context)
|