AWS SDK

AWS SDK

rev. bbca34fa2eddb4be623fbbc6b6df1a2401de0029

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssm/src/meta.rs

@@ -0,1 +0,5 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) static API_METADATA: ::aws_runtime::user_agent::ApiMetadata = ::aws_runtime::user_agent::ApiMetadata::new("ssm", crate::meta::PKG_VERSION);
           3  +
           4  +
/// Crate version number.
           5  +
pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION");

tmp-codegen-diff/aws-sdk/sdk/ssm/src/observability_feature.rs

@@ -0,1 +0,37 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/*
           3  +
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
           4  +
 * SPDX-License-Identifier: Apache-2.0
           5  +
 */
           6  +
           7  +
use aws_smithy_runtime::client::sdk_feature::SmithySdkFeature;
           8  +
use aws_smithy_runtime_api::{
           9  +
    box_error::BoxError,
          10  +
    client::interceptors::{context::BeforeSerializationInterceptorContextRef, dyn_dispatch_hint, Intercept},
          11  +
};
          12  +
use aws_smithy_types::config_bag::ConfigBag;
          13  +
          14  +
// Interceptor that tracks Smithy SDK features for observability (tracing/metrics).
          15  +
#[derive(Debug, Default)]
          16  +
pub(crate) struct ObservabilityFeatureTrackerInterceptor;
          17  +
          18  +
#[dyn_dispatch_hint]
          19  +
impl Intercept for ObservabilityFeatureTrackerInterceptor {
          20  +
    fn name(&self) -> &'static str {
          21  +
        "ObservabilityFeatureTrackerInterceptor"
          22  +
    }
          23  +
          24  +
    fn read_before_execution(&self, _context: &BeforeSerializationInterceptorContextRef<'_>, cfg: &mut ConfigBag) -> Result<(), BoxError> {
          25  +
        // Check if an OpenTelemetry meter provider is configured via the global provider
          26  +
        if let Ok(telemetry_provider) = aws_smithy_observability::global::get_telemetry_provider() {
          27  +
            let meter_provider = telemetry_provider.meter_provider();
          28  +
          29  +
            // Use provider_name() to detect OpenTelemetry without importing the otel crate.
          30  +
            if meter_provider.provider_name() == "AwsSmithyObservabilityOtelProvider" {
          31  +
                cfg.interceptor_state().store_append(SmithySdkFeature::ObservabilityOtelMetrics);
          32  +
            }
          33  +
        }
          34  +
          35  +
        Ok(())
          36  +
    }
          37  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation.rs

@@ -0,1 +0,458 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use ::aws_types::request_id::RequestId;
           3  +
           4  +
/// Types for the `AddTagsToResource` operation.
           5  +
pub mod add_tags_to_resource;
           6  +
           7  +
/// Types for the `AssociateOpsItemRelatedItem` operation.
           8  +
pub mod associate_ops_item_related_item;
           9  +
          10  +
/// Types for the `CancelCommand` operation.
          11  +
pub mod cancel_command;
          12  +
          13  +
/// Types for the `CancelMaintenanceWindowExecution` operation.
          14  +
pub mod cancel_maintenance_window_execution;
          15  +
          16  +
/// Types for the `CreateActivation` operation.
          17  +
pub mod create_activation;
          18  +
          19  +
/// Types for the `CreateAssociation` operation.
          20  +
pub mod create_association;
          21  +
          22  +
/// Types for the `CreateAssociationBatch` operation.
          23  +
pub mod create_association_batch;
          24  +
          25  +
/// Types for the `CreateCloudConnector` operation.
          26  +
pub mod create_cloud_connector;
          27  +
          28  +
/// Types for the `CreateDocument` operation.
          29  +
pub mod create_document;
          30  +
          31  +
/// Types for the `CreateMaintenanceWindow` operation.
          32  +
pub mod create_maintenance_window;
          33  +
          34  +
/// Types for the `CreateOpsItem` operation.
          35  +
pub mod create_ops_item;
          36  +
          37  +
/// Types for the `CreateOpsMetadata` operation.
          38  +
pub mod create_ops_metadata;
          39  +
          40  +
/// Types for the `CreatePatchBaseline` operation.
          41  +
pub mod create_patch_baseline;
          42  +
          43  +
/// Types for the `CreateResourceDataSync` operation.
          44  +
pub mod create_resource_data_sync;
          45  +
          46  +
/// Types for the `DeleteActivation` operation.
          47  +
pub mod delete_activation;
          48  +
          49  +
/// Types for the `DeleteAssociation` operation.
          50  +
pub mod delete_association;
          51  +
          52  +
/// Types for the `DeleteCloudConnector` operation.
          53  +
pub mod delete_cloud_connector;
          54  +
          55  +
/// Types for the `DeleteDocument` operation.
          56  +
pub mod delete_document;
          57  +
          58  +
/// Types for the `DeleteInventory` operation.
          59  +
pub mod delete_inventory;
          60  +
          61  +
/// Types for the `DeleteMaintenanceWindow` operation.
          62  +
pub mod delete_maintenance_window;
          63  +
          64  +
/// Types for the `DeleteOpsItem` operation.
          65  +
pub mod delete_ops_item;
          66  +
          67  +
/// Types for the `DeleteOpsMetadata` operation.
          68  +
pub mod delete_ops_metadata;
          69  +
          70  +
/// Types for the `DeleteParameter` operation.
          71  +
pub mod delete_parameter;
          72  +
          73  +
/// Types for the `DeleteParameters` operation.
          74  +
pub mod delete_parameters;
          75  +
          76  +
/// Types for the `DeletePatchBaseline` operation.
          77  +
pub mod delete_patch_baseline;
          78  +
          79  +
/// Types for the `DeleteResourceDataSync` operation.
          80  +
pub mod delete_resource_data_sync;
          81  +
          82  +
/// Types for the `DeleteResourcePolicy` operation.
          83  +
pub mod delete_resource_policy;
          84  +
          85  +
/// Types for the `DeregisterManagedInstance` operation.
          86  +
pub mod deregister_managed_instance;
          87  +
          88  +
/// Types for the `DeregisterPatchBaselineForPatchGroup` operation.
          89  +
pub mod deregister_patch_baseline_for_patch_group;
          90  +
          91  +
/// Types for the `DeregisterTargetFromMaintenanceWindow` operation.
          92  +
pub mod deregister_target_from_maintenance_window;
          93  +
          94  +
/// Types for the `DeregisterTaskFromMaintenanceWindow` operation.
          95  +
pub mod deregister_task_from_maintenance_window;
          96  +
          97  +
/// Types for the `DescribeActivations` operation.
          98  +
pub mod describe_activations;
          99  +
         100  +
/// Types for the `DescribeAssociation` operation.
         101  +
pub mod describe_association;
         102  +
         103  +
/// Types for the `DescribeAssociationExecutionTargets` operation.
         104  +
pub mod describe_association_execution_targets;
         105  +
         106  +
/// Types for the `DescribeAssociationExecutions` operation.
         107  +
pub mod describe_association_executions;
         108  +
         109  +
/// Types for the `DescribeAutomationExecutions` operation.
         110  +
pub mod describe_automation_executions;
         111  +
         112  +
/// Types for the `DescribeAutomationStepExecutions` operation.
         113  +
pub mod describe_automation_step_executions;
         114  +
         115  +
/// Types for the `DescribeAvailablePatches` operation.
         116  +
pub mod describe_available_patches;
         117  +
         118  +
/// Types for the `DescribeDocument` operation.
         119  +
pub mod describe_document;
         120  +
         121  +
/// Types for the `DescribeDocumentPermission` operation.
         122  +
pub mod describe_document_permission;
         123  +
         124  +
/// Types for the `DescribeEffectiveInstanceAssociations` operation.
         125  +
pub mod describe_effective_instance_associations;
         126  +
         127  +
/// Types for the `DescribeEffectivePatchesForPatchBaseline` operation.
         128  +
pub mod describe_effective_patches_for_patch_baseline;
         129  +
         130  +
/// Types for the `DescribeInstanceAssociationsStatus` operation.
         131  +
pub mod describe_instance_associations_status;
         132  +
         133  +
/// Types for the `DescribeInstanceInformation` operation.
         134  +
pub mod describe_instance_information;
         135  +
         136  +
/// Types for the `DescribeInstancePatchStates` operation.
         137  +
pub mod describe_instance_patch_states;
         138  +
         139  +
/// Types for the `DescribeInstancePatchStatesForPatchGroup` operation.
         140  +
pub mod describe_instance_patch_states_for_patch_group;
         141  +
         142  +
/// Types for the `DescribeInstancePatches` operation.
         143  +
pub mod describe_instance_patches;
         144  +
         145  +
/// Types for the `DescribeInstanceProperties` operation.
         146  +
pub mod describe_instance_properties;
         147  +
         148  +
/// Types for the `DescribeInventoryDeletions` operation.
         149  +
pub mod describe_inventory_deletions;
         150  +
         151  +
/// Types for the `DescribeMaintenanceWindowExecutionTaskInvocations` operation.
         152  +
pub mod describe_maintenance_window_execution_task_invocations;
         153  +
         154  +
/// Types for the `DescribeMaintenanceWindowExecutionTasks` operation.
         155  +
pub mod describe_maintenance_window_execution_tasks;
         156  +
         157  +
/// Types for the `DescribeMaintenanceWindowExecutions` operation.
         158  +
pub mod describe_maintenance_window_executions;
         159  +
         160  +
/// Types for the `DescribeMaintenanceWindowSchedule` operation.
         161  +
pub mod describe_maintenance_window_schedule;
         162  +
         163  +
/// Types for the `DescribeMaintenanceWindowTargets` operation.
         164  +
pub mod describe_maintenance_window_targets;
         165  +
         166  +
/// Types for the `DescribeMaintenanceWindowTasks` operation.
         167  +
pub mod describe_maintenance_window_tasks;
         168  +
         169  +
/// Types for the `DescribeMaintenanceWindows` operation.
         170  +
pub mod describe_maintenance_windows;
         171  +
         172  +
/// Types for the `DescribeMaintenanceWindowsForTarget` operation.
         173  +
pub mod describe_maintenance_windows_for_target;
         174  +
         175  +
/// Types for the `DescribeOpsItems` operation.
         176  +
pub mod describe_ops_items;
         177  +
         178  +
/// Types for the `DescribeParameters` operation.
         179  +
pub mod describe_parameters;
         180  +
         181  +
/// Types for the `DescribePatchBaselines` operation.
         182  +
pub mod describe_patch_baselines;
         183  +
         184  +
/// Types for the `DescribePatchGroupState` operation.
         185  +
pub mod describe_patch_group_state;
         186  +
         187  +
/// Types for the `DescribePatchGroups` operation.
         188  +
pub mod describe_patch_groups;
         189  +
         190  +
/// Types for the `DescribePatchProperties` operation.
         191  +
pub mod describe_patch_properties;
         192  +
         193  +
/// Types for the `DescribeSessions` operation.
         194  +
pub mod describe_sessions;
         195  +
         196  +
/// Types for the `DisassociateOpsItemRelatedItem` operation.
         197  +
pub mod disassociate_ops_item_related_item;
         198  +
         199  +
/// Types for the `GetAccessToken` operation.
         200  +
pub mod get_access_token;
         201  +
         202  +
/// Types for the `GetAutomationExecution` operation.
         203  +
pub mod get_automation_execution;
         204  +
         205  +
/// Types for the `GetCalendarState` operation.
         206  +
pub mod get_calendar_state;
         207  +
         208  +
/// Types for the `GetCloudConnector` operation.
         209  +
pub mod get_cloud_connector;
         210  +
         211  +
/// Types for the `GetCommandInvocation` operation.
         212  +
pub mod get_command_invocation;
         213  +
         214  +
/// Types for the `GetConnectionStatus` operation.
         215  +
pub mod get_connection_status;
         216  +
         217  +
/// Types for the `GetDefaultPatchBaseline` operation.
         218  +
pub mod get_default_patch_baseline;
         219  +
         220  +
/// Types for the `GetDeployablePatchSnapshotForInstance` operation.
         221  +
pub mod get_deployable_patch_snapshot_for_instance;
         222  +
         223  +
/// Types for the `GetDocument` operation.
         224  +
pub mod get_document;
         225  +
         226  +
/// Types for the `GetExecutionPreview` operation.
         227  +
pub mod get_execution_preview;
         228  +
         229  +
/// Types for the `GetInventory` operation.
         230  +
pub mod get_inventory;
         231  +
         232  +
/// Types for the `GetInventorySchema` operation.
         233  +
pub mod get_inventory_schema;
         234  +
         235  +
/// Types for the `GetMaintenanceWindow` operation.
         236  +
pub mod get_maintenance_window;
         237  +
         238  +
/// Types for the `GetMaintenanceWindowExecution` operation.
         239  +
pub mod get_maintenance_window_execution;
         240  +
         241  +
/// Types for the `GetMaintenanceWindowExecutionTask` operation.
         242  +
pub mod get_maintenance_window_execution_task;
         243  +
         244  +
/// Types for the `GetMaintenanceWindowExecutionTaskInvocation` operation.
         245  +
pub mod get_maintenance_window_execution_task_invocation;
         246  +
         247  +
/// Types for the `GetMaintenanceWindowTask` operation.
         248  +
pub mod get_maintenance_window_task;
         249  +
         250  +
/// Types for the `GetOpsItem` operation.
         251  +
pub mod get_ops_item;
         252  +
         253  +
/// Types for the `GetOpsMetadata` operation.
         254  +
pub mod get_ops_metadata;
         255  +
         256  +
/// Types for the `GetOpsSummary` operation.
         257  +
pub mod get_ops_summary;
         258  +
         259  +
/// Types for the `GetParameter` operation.
         260  +
pub mod get_parameter;
         261  +
         262  +
/// Types for the `GetParameterHistory` operation.
         263  +
pub mod get_parameter_history;
         264  +
         265  +
/// Types for the `GetParameters` operation.
         266  +
pub mod get_parameters;
         267  +
         268  +
/// Types for the `GetParametersByPath` operation.
         269  +
pub mod get_parameters_by_path;
         270  +
         271  +
/// Types for the `GetPatchBaseline` operation.
         272  +
pub mod get_patch_baseline;
         273  +
         274  +
/// Types for the `GetPatchBaselineForPatchGroup` operation.
         275  +
pub mod get_patch_baseline_for_patch_group;
         276  +
         277  +
/// Types for the `GetResourcePolicies` operation.
         278  +
pub mod get_resource_policies;
         279  +
         280  +
/// Types for the `GetServiceSetting` operation.
         281  +
pub mod get_service_setting;
         282  +
         283  +
/// Types for the `LabelParameterVersion` operation.
         284  +
pub mod label_parameter_version;
         285  +
         286  +
/// Types for the `ListAssociationVersions` operation.
         287  +
pub mod list_association_versions;
         288  +
         289  +
/// Types for the `ListAssociations` operation.
         290  +
pub mod list_associations;
         291  +
         292  +
/// Types for the `ListCloudConnectors` operation.
         293  +
pub mod list_cloud_connectors;
         294  +
         295  +
/// Types for the `ListCommandInvocations` operation.
         296  +
pub mod list_command_invocations;
         297  +
         298  +
/// Types for the `ListCommands` operation.
         299  +
pub mod list_commands;
         300  +
         301  +
/// Types for the `ListComplianceItems` operation.
         302  +
pub mod list_compliance_items;
         303  +
         304  +
/// Types for the `ListComplianceSummaries` operation.
         305  +
pub mod list_compliance_summaries;
         306  +
         307  +
/// Types for the `ListDocumentMetadataHistory` operation.
         308  +
pub mod list_document_metadata_history;
         309  +
         310  +
/// Types for the `ListDocumentVersions` operation.
         311  +
pub mod list_document_versions;
         312  +
         313  +
/// Types for the `ListDocuments` operation.
         314  +
pub mod list_documents;
         315  +
         316  +
/// Types for the `ListInventoryEntries` operation.
         317  +
pub mod list_inventory_entries;
         318  +
         319  +
/// Types for the `ListNodes` operation.
         320  +
pub mod list_nodes;
         321  +
         322  +
/// Types for the `ListNodesSummary` operation.
         323  +
pub mod list_nodes_summary;
         324  +
         325  +
/// Types for the `ListOpsItemEvents` operation.
         326  +
pub mod list_ops_item_events;
         327  +
         328  +
/// Types for the `ListOpsItemRelatedItems` operation.
         329  +
pub mod list_ops_item_related_items;
         330  +
         331  +
/// Types for the `ListOpsMetadata` operation.
         332  +
pub mod list_ops_metadata;
         333  +
         334  +
/// Types for the `ListResourceComplianceSummaries` operation.
         335  +
pub mod list_resource_compliance_summaries;
         336  +
         337  +
/// Types for the `ListResourceDataSync` operation.
         338  +
pub mod list_resource_data_sync;
         339  +
         340  +
/// Types for the `ListTagsForResource` operation.
         341  +
pub mod list_tags_for_resource;
         342  +
         343  +
/// Types for the `ModifyDocumentPermission` operation.
         344  +
pub mod modify_document_permission;
         345  +
         346  +
/// Types for the `PutComplianceItems` operation.
         347  +
pub mod put_compliance_items;
         348  +
         349  +
/// Types for the `PutInventory` operation.
         350  +
pub mod put_inventory;
         351  +
         352  +
/// Types for the `PutParameter` operation.
         353  +
pub mod put_parameter;
         354  +
         355  +
/// Types for the `PutResourcePolicy` operation.
         356  +
pub mod put_resource_policy;
         357  +
         358  +
/// Types for the `RegisterDefaultPatchBaseline` operation.
         359  +
pub mod register_default_patch_baseline;
         360  +
         361  +
/// Types for the `RegisterPatchBaselineForPatchGroup` operation.
         362  +
pub mod register_patch_baseline_for_patch_group;
         363  +
         364  +
/// Types for the `RegisterTargetWithMaintenanceWindow` operation.
         365  +
pub mod register_target_with_maintenance_window;
         366  +
         367  +
/// Types for the `RegisterTaskWithMaintenanceWindow` operation.
         368  +
pub mod register_task_with_maintenance_window;
         369  +
         370  +
/// Types for the `RemoveTagsFromResource` operation.
         371  +
pub mod remove_tags_from_resource;
         372  +
         373  +
/// Types for the `ResetServiceSetting` operation.
         374  +
pub mod reset_service_setting;
         375  +
         376  +
/// Types for the `ResumeSession` operation.
         377  +
pub mod resume_session;
         378  +
         379  +
/// Types for the `SendAutomationSignal` operation.
         380  +
pub mod send_automation_signal;
         381  +
         382  +
/// Types for the `SendCommand` operation.
         383  +
pub mod send_command;
         384  +
         385  +
/// Types for the `StartAccessRequest` operation.
         386  +
pub mod start_access_request;
         387  +
         388  +
/// Types for the `StartAssociationsOnce` operation.
         389  +
pub mod start_associations_once;
         390  +
         391  +
/// Types for the `StartAutomationExecution` operation.
         392  +
pub mod start_automation_execution;
         393  +
         394  +
/// Types for the `StartChangeRequestExecution` operation.
         395  +
pub mod start_change_request_execution;
         396  +
         397  +
/// Types for the `StartExecutionPreview` operation.
         398  +
pub mod start_execution_preview;
         399  +
         400  +
/// Types for the `StartSession` operation.
         401  +
pub mod start_session;
         402  +
         403  +
/// Types for the `StopAutomationExecution` operation.
         404  +
pub mod stop_automation_execution;
         405  +
         406  +
/// Types for the `TerminateSession` operation.
         407  +
pub mod terminate_session;
         408  +
         409  +
/// Types for the `UnlabelParameterVersion` operation.
         410  +
pub mod unlabel_parameter_version;
         411  +
         412  +
/// Types for the `UpdateAssociation` operation.
         413  +
pub mod update_association;
         414  +
         415  +
/// Types for the `UpdateAssociationStatus` operation.
         416  +
pub mod update_association_status;
         417  +
         418  +
/// Types for the `UpdateCloudConnector` operation.
         419  +
pub mod update_cloud_connector;
         420  +
         421  +
/// Types for the `UpdateDocument` operation.
         422  +
pub mod update_document;
         423  +
         424  +
/// Types for the `UpdateDocumentDefaultVersion` operation.
         425  +
pub mod update_document_default_version;
         426  +
         427  +
/// Types for the `UpdateDocumentMetadata` operation.
         428  +
pub mod update_document_metadata;
         429  +
         430  +
/// Types for the `UpdateMaintenanceWindow` operation.
         431  +
pub mod update_maintenance_window;
         432  +
         433  +
/// Types for the `UpdateMaintenanceWindowTarget` operation.
         434  +
pub mod update_maintenance_window_target;
         435  +
         436  +
/// Types for the `UpdateMaintenanceWindowTask` operation.
         437  +
pub mod update_maintenance_window_task;
         438  +
         439  +
/// Types for the `UpdateManagedInstanceRole` operation.
         440  +
pub mod update_managed_instance_role;
         441  +
         442  +
/// Types for the `UpdateOpsItem` operation.
         443  +
pub mod update_ops_item;
         444  +
         445  +
/// Types for the `UpdateOpsMetadata` operation.
         446  +
pub mod update_ops_metadata;
         447  +
         448  +
/// Types for the `UpdatePatchBaseline` operation.
         449  +
pub mod update_patch_baseline;
         450  +
         451  +
/// Types for the `UpdateResourceDataSync` operation.
         452  +
pub mod update_resource_data_sync;
         453  +
         454  +
/// Types for the `UpdateServiceSetting` operation.
         455  +
pub mod update_service_setting;
         456  +
         457  +
/// Types for the `ValidateCloudConnector` operation.
         458  +
pub mod validate_cloud_connector;

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/add_tags_to_resource.rs

@@ -0,1 +0,680 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// Orchestration and serialization glue logic for `AddTagsToResource`.
           3  +
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
           4  +
#[non_exhaustive]
           5  +
pub struct AddTagsToResource;
           6  +
impl AddTagsToResource {
           7  +
    /// Creates a new `AddTagsToResource`
           8  +
    pub fn new() -> Self {
           9  +
        Self
          10  +
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::add_tags_to_resource::AddTagsToResourceInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::add_tags_to_resource::AddTagsToResourceOutput::SCHEMA;
          15  +
    pub(crate) async fn orchestrate(
          16  +
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          17  +
        input: crate::operation::add_tags_to_resource::AddTagsToResourceInput,
          18  +
    ) -> ::std::result::Result<
          19  +
        crate::operation::add_tags_to_resource::AddTagsToResourceOutput,
          20  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          21  +
            crate::operation::add_tags_to_resource::AddTagsToResourceError,
          22  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          23  +
        >,
          24  +
    > {
          25  +
        let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
          26  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
          27  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          28  +
        >| {
          29  +
            err.map_service_error(|err| {
          30  +
                err.downcast::<crate::operation::add_tags_to_resource::AddTagsToResourceError>()
          31  +
                    .expect("correct error type")
          32  +
            })
          33  +
        };
          34  +
        let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
          35  +
            .await
          36  +
            .map_err(map_err)?;
          37  +
        let output = context.finalize().map_err(map_err)?;
          38  +
        ::std::result::Result::Ok(
          39  +
            output
          40  +
                .downcast::<crate::operation::add_tags_to_resource::AddTagsToResourceOutput>()
          41  +
                .expect("correct output type"),
          42  +
        )
          43  +
    }
          44  +
          45  +
    pub(crate) async fn orchestrate_with_stop_point(
          46  +
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          47  +
        input: crate::operation::add_tags_to_resource::AddTagsToResourceInput,
          48  +
        stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
          49  +
    ) -> ::std::result::Result<
          50  +
        ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
          51  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          52  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
          53  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          54  +
        >,
          55  +
    > {
          56  +
        let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
          57  +
        use ::tracing::Instrument;
          58  +
        ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("SSM", "AddTagsToResource", input, runtime_plugins, stop_point)
          59  +
            // Create a parent span for the entire operation. Includes a random, internal-only,
          60  +
            // seven-digit ID for the operation orchestration so that it can be correlated in the logs.
          61  +
            .instrument(::tracing::debug_span!(
          62  +
                "SSM.AddTagsToResource",
          63  +
                "rpc.service" = "SSM",
          64  +
                "rpc.method" = "AddTagsToResource",
          65  +
                "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
          66  +
                "rpc.system" = "aws-api",
          67  +
            ))
          68  +
            .await
          69  +
    }
          70  +
          71  +
    pub(crate) fn operation_runtime_plugins(
          72  +
        client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          73  +
        client_config: &crate::config::Config,
          74  +
        config_override: ::std::option::Option<crate::config::Builder>,
          75  +
    ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
          76  +
        let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
          77  +
          78  +
        if let ::std::option::Option::Some(config_override) = config_override {
          79  +
            for plugin in config_override.runtime_plugins.iter().cloned() {
          80  +
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
          81  +
            }
          82  +
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
          83  +
                config_override,
          84  +
                client_config.config.clone(),
          85  +
                &client_config.runtime_components,
          86  +
            ));
          87  +
        }
          88  +
        runtime_plugins
          89  +
    }
          90  +
}
          91  +
/// Per-operation error registry. Contains an entry for every modeled
          92  +
/// error this operation can throw.
          93  +
///
          94  +
/// Used by the schema-serde error path as the operation-scoped lookup
          95  +
/// for registry-backed error reification: an error code that does not
          96  +
/// match one of the operation's modeled errors directly is resolved
          97  +
/// against this registry first, then widened to the service-wide error
          98  +
/// registry.
          99  +
pub(crate) mod error_registry {
         100  +
    pub(crate) static REGISTRY: ::std::sync::LazyLock<::aws_smithy_schema::registry::TypeRegistry> = ::std::sync::LazyLock::new(|| {
         101  +
        ::aws_smithy_schema::registry::TypeRegistry::builder()
         102  +
                            .insert_error_shape(
         103  +
                        crate::types::error::InternalServerError::SCHEMA,
         104  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         105  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InternalServerError::deserialize(d)?))
         106  +
                        },
         107  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
         108  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InternalServerError::deserialize(d)?))
         109  +
                        },
         110  +
                    )
         111  +
.insert_error_shape(
         112  +
                        crate::types::error::InvalidResourceId::SCHEMA,
         113  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         114  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InvalidResourceId::deserialize(d)?))
         115  +
                        },
         116  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
         117  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InvalidResourceId::deserialize(d)?))
         118  +
                        },
         119  +
                    )
         120  +
.insert_error_shape(
         121  +
                        crate::types::error::InvalidResourceType::SCHEMA,
         122  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         123  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InvalidResourceType::deserialize(d)?))
         124  +
                        },
         125  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
         126  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InvalidResourceType::deserialize(d)?))
         127  +
                        },
         128  +
                    )
         129  +
.insert_error_shape(
         130  +
                        crate::types::error::TooManyTagsError::SCHEMA,
         131  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         132  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::TooManyTagsError::deserialize(d)?))
         133  +
                        },
         134  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
         135  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::TooManyTagsError::deserialize(d)?))
         136  +
                        },
         137  +
                    )
         138  +
.insert_error_shape(
         139  +
                        crate::types::error::TooManyUpdates::SCHEMA,
         140  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         141  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::TooManyUpdates::deserialize(d)?))
         142  +
                        },
         143  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
         144  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::TooManyUpdates::deserialize(d)?))
         145  +
                        },
         146  +
                    )
         147  +
                            .build()
         148  +
    });
         149  +
}
         150  +
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for AddTagsToResource {
         151  +
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
         152  +
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("AddTagsToResource");
         153  +
         154  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
         155  +
            AddTagsToResourceRequestSerializer,
         156  +
        ));
         157  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
         158  +
            AddTagsToResourceResponseDeserializer,
         159  +
        ));
         160  +
         161  +
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
         162  +
            crate::config::auth::Params::builder()
         163  +
                .operation_name("AddTagsToResource")
         164  +
                .build()
         165  +
                .expect("required fields set"),
         166  +
        ));
         167  +
         168  +
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("AddTagsToResource", "SSM"));
         169  +
        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
         170  +
        signing_options.double_uri_encode = true;
         171  +
        signing_options.content_sha256_header = false;
         172  +
        signing_options.normalize_uri_path = true;
         173  +
        signing_options.payload_override = None;
         174  +
         175  +
        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
         176  +
            signing_options,
         177  +
            ..::std::default::Default::default()
         178  +
        });
         179  +
         180  +
        ::std::option::Option::Some(cfg.freeze())
         181  +
    }
         182  +
         183  +
    fn runtime_components(
         184  +
        &self,
         185  +
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
         186  +
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
         187  +
        #[allow(unused_mut)]
         188  +
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("AddTagsToResource")
         189  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         190  +
                AddTagsToResourceTelemetryInputCaptureInterceptor,
         191  +
            ))
         192  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         193  +
                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
         194  +
            ))
         195  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         196  +
                AddTagsToResourceEndpointParamsInterceptor,
         197  +
            ))
         198  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
         199  +
                crate::operation::add_tags_to_resource::AddTagsToResourceError,
         200  +
            >::new())
         201  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
         202  +
                crate::operation::add_tags_to_resource::AddTagsToResourceError,
         203  +
            >::new())
         204  +
            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
         205  +
                crate::operation::add_tags_to_resource::AddTagsToResourceError,
         206  +
            >::new())
         207  +
            .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
         208  +
                crate::operation::add_tags_to_resource::AddTagsToResourceError,
         209  +
            >::new());
         210  +
         211  +
        ::std::borrow::Cow::Owned(rcb)
         212  +
    }
         213  +
}
         214  +
         215  +
#[derive(Debug)]
         216  +
struct AddTagsToResourceTelemetryInputCaptureInterceptor;
         217  +
         218  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         219  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for AddTagsToResourceTelemetryInputCaptureInterceptor {
         220  +
    fn name(&self) -> &'static str {
         221  +
        "AddTagsToResourceTelemetryInputCaptureInterceptor"
         222  +
    }
         223  +
         224  +
    fn read_before_execution(
         225  +
        &self,
         226  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         227  +
            '_,
         228  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         229  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         230  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         231  +
        >,
         232  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         233  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         234  +
        // Nothing to do unless the customer opted in by naming members to record.
         235  +
        let ::std::option::Option::Some(requested) = cfg
         236  +
            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
         237  +
            .filter(|r| !r.is_empty())
         238  +
        else {
         239  +
            return ::std::result::Result::Ok(());
         240  +
        };
         241  +
         242  +
        let ::std::option::Option::Some(input) = context.input().downcast_ref::<AddTagsToResourceInput>() else {
         243  +
            // A mismatched input is not this interceptor's concern; skip quietly.
         244  +
            return ::std::result::Result::Ok(());
         245  +
        };
         246  +
         247  +
        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
         248  +
        if requested.should_capture("ResourceId") {
         249  +
            if let ::std::option::Option::Some(value) = input.resource_id.as_deref() {
         250  +
                captured.insert("ResourceId", value);
         251  +
            }
         252  +
        }
         253  +
         254  +
        cfg.interceptor_state().store_put(captured);
         255  +
        ::std::result::Result::Ok(())
         256  +
    }
         257  +
}
         258  +
#[derive(Debug)]
         259  +
struct AddTagsToResourceResponseDeserializer;
         260  +
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for AddTagsToResourceResponseDeserializer {
         261  +
    fn deserialize_nonstreaming_with_config(
         262  +
        &self,
         263  +
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         264  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
         265  +
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
         266  +
        let (success, status) = (response.status().is_success(), response.status().as_u16());
         267  +
        // Load body and headers BEFORE BeforeParseResponse so customizations
         268  +
        // (e.g., S3's `body_is_error` check that detects errors returned with
         269  +
        // HTTP 200) can inspect them. The legacy non-streaming path also
         270  +
        // loads `body` before firing this hook.
         271  +
        let body = response.body().bytes().expect("body loaded");
         272  +
        let headers = response.headers();
         273  +
        #[allow(unused_mut)]
         274  +
        let mut force_error = false;
         275  +
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
         276  +
        if !success && status != 200 || force_error {
         277  +
            let protocol = _cfg
         278  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         279  +
                .expect("a SharedClientProtocol is required");
         280  +
            #[allow(unused_mut)]
         281  +
            let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
         282  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         283  +
            })?;
         284  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         285  +
            let generic = generic_builder.build();
         286  +
            let error_code = match generic.code() {
         287  +
                ::std::option::Option::Some(code) => code,
         288  +
                ::std::option::Option::None => {
         289  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         290  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         291  +
                            crate::operation::add_tags_to_resource::AddTagsToResourceError::unhandled(generic),
         292  +
                        ),
         293  +
                    ))
         294  +
                }
         295  +
            };
         296  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         297  +
            let err = match error_code {
         298  +
                "InternalServerError" => crate::operation::add_tags_to_resource::AddTagsToResourceError::InternalServerError({
         299  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         300  +
                        crate::types::error::InternalServerError::deserialize_with_response(
         301  +
                            &mut *deser,
         302  +
                            response.headers(),
         303  +
                            response.status().into(),
         304  +
                            body,
         305  +
                        )
         306  +
                    }) {
         307  +
                        ::std::result::Result::Ok(val) => val,
         308  +
                        ::std::result::Result::Err(e) => {
         309  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         310  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         311  +
                            ))
         312  +
                        }
         313  +
                    };
         314  +
                    tmp.meta = generic;
         315  +
                    if tmp.message.is_none() {
         316  +
                        tmp.message = _error_message;
         317  +
                    }
         318  +
                    tmp
         319  +
                }),
         320  +
                "InvalidResourceId" => crate::operation::add_tags_to_resource::AddTagsToResourceError::InvalidResourceId({
         321  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         322  +
                        crate::types::error::InvalidResourceId::deserialize_with_response(
         323  +
                            &mut *deser,
         324  +
                            response.headers(),
         325  +
                            response.status().into(),
         326  +
                            body,
         327  +
                        )
         328  +
                    }) {
         329  +
                        ::std::result::Result::Ok(val) => val,
         330  +
                        ::std::result::Result::Err(e) => {
         331  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         332  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         333  +
                            ))
         334  +
                        }
         335  +
                    };
         336  +
                    tmp.meta = generic;
         337  +
                    if tmp.message.is_none() {
         338  +
                        tmp.message = _error_message;
         339  +
                    }
         340  +
                    tmp
         341  +
                }),
         342  +
                "InvalidResourceType" => crate::operation::add_tags_to_resource::AddTagsToResourceError::InvalidResourceType({
         343  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         344  +
                        crate::types::error::InvalidResourceType::deserialize_with_response(
         345  +
                            &mut *deser,
         346  +
                            response.headers(),
         347  +
                            response.status().into(),
         348  +
                            body,
         349  +
                        )
         350  +
                    }) {
         351  +
                        ::std::result::Result::Ok(val) => val,
         352  +
                        ::std::result::Result::Err(e) => {
         353  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         354  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         355  +
                            ))
         356  +
                        }
         357  +
                    };
         358  +
                    tmp.meta = generic;
         359  +
                    if tmp.message.is_none() {
         360  +
                        tmp.message = _error_message;
         361  +
                    }
         362  +
                    tmp
         363  +
                }),
         364  +
                "TooManyTagsError" => crate::operation::add_tags_to_resource::AddTagsToResourceError::TooManyTagsError({
         365  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         366  +
                        crate::types::error::TooManyTagsError::deserialize_with_response(
         367  +
                            &mut *deser,
         368  +
                            response.headers(),
         369  +
                            response.status().into(),
         370  +
                            body,
         371  +
                        )
         372  +
                    }) {
         373  +
                        ::std::result::Result::Ok(val) => val,
         374  +
                        ::std::result::Result::Err(e) => {
         375  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         376  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         377  +
                            ))
         378  +
                        }
         379  +
                    };
         380  +
                    tmp.meta = generic;
         381  +
                    if tmp.message.is_none() {
         382  +
                        tmp.message = _error_message;
         383  +
                    }
         384  +
                    tmp
         385  +
                }),
         386  +
                "TooManyUpdates" => crate::operation::add_tags_to_resource::AddTagsToResourceError::TooManyUpdates({
         387  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         388  +
                        crate::types::error::TooManyUpdates::deserialize_with_response(
         389  +
                            &mut *deser,
         390  +
                            response.headers(),
         391  +
                            response.status().into(),
         392  +
                            body,
         393  +
                        )
         394  +
                    }) {
         395  +
                        ::std::result::Result::Ok(val) => val,
         396  +
                        ::std::result::Result::Err(e) => {
         397  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         398  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         399  +
                            ))
         400  +
                        }
         401  +
                    };
         402  +
                    tmp.meta = generic;
         403  +
                    if tmp.message.is_none() {
         404  +
                        tmp.message = _error_message;
         405  +
                    }
         406  +
                    tmp
         407  +
                }),
         408  +
                _ => {
         409  +
                    // Registry-backed, operation-scoped reification of an error whose
         410  +
                    // code this operation does not model directly: the operation's own
         411  +
                    // error registry is consulted first, then the lookup widens to the
         412  +
                    // service-wide error registry. On a hit, the reified error is attached
         413  +
                    // as the source of the returned unhandled error while its metadata
         414  +
                    // (code, message, request id) is preserved; on a miss the generic
         415  +
                    // error is returned unchanged.
         416  +
                    match protocol
         417  +
                        .deserialize_error_response(response, _cfg)
         418  +
                        .ok()
         419  +
                        .and_then(|mut deser| {
         420  +
                            ::aws_smithy_schema::registry::reify_error(
         421  +
                                crate::operation::add_tags_to_resource::error_registry::REGISTRY
         422  +
                                    .or(&crate::error_type_registry::REGISTRY),
         423  +
                                error_code,
         424  +
                                &mut *deser,
         425  +
                            )
         426  +
                        }) {
         427  +
                        ::std::option::Option::Some(source) => <crate::operation::add_tags_to_resource::AddTagsToResourceError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
         428  +
                        ::std::option::Option::None => crate::operation::add_tags_to_resource::AddTagsToResourceError::generic(generic),
         429  +
                    }
         430  +
                }
         431  +
            };
         432  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         433  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         434  +
            ))
         435  +
        } else {
         436  +
            let protocol = _cfg
         437  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         438  +
                .expect("a SharedClientProtocol is required");
         439  +
            let mut deser = protocol
         440  +
                .deserialize_response(response, AddTagsToResource::OUTPUT_SCHEMA, _cfg)
         441  +
                .map_err(|e| {
         442  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         443  +
                })?;
         444  +
            // body and headers are already in scope from the top of the function;
         445  +
            // alias `headers` as `_response_headers` so MutateOutput
         446  +
            // customizations have a stable name to read from.
         447  +
            let _response_headers = headers;
         448  +
            #[allow(unused_mut)]
         449  +
            let mut output = crate::operation::add_tags_to_resource::AddTagsToResourceOutput::deserialize_with_response(
         450  +
                &mut *deser,
         451  +
                _response_headers,
         452  +
                response.status().into(),
         453  +
                body,
         454  +
            )
         455  +
            .map_err(|e| {
         456  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         457  +
            })?;
         458  +
            output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
         459  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         460  +
        }
         461  +
    }
         462  +
}
         463  +
#[derive(Debug)]
         464  +
struct AddTagsToResourceRequestSerializer;
         465  +
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for AddTagsToResourceRequestSerializer {
         466  +
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
         467  +
    fn serialize_input(
         468  +
        &self,
         469  +
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
         470  +
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         471  +
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
         472  +
        let input = input
         473  +
            .downcast::<crate::operation::add_tags_to_resource::AddTagsToResourceInput>()
         474  +
            .expect("correct type");
         475  +
         476  +
        let protocol = _cfg
         477  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         478  +
            .expect("a SharedClientProtocol is required");
         479  +
        let mut request = protocol
         480  +
            .serialize_request(&input, AddTagsToResource::INPUT_SCHEMA, "/", _cfg)
         481  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         482  +
         483  +
        return ::std::result::Result::Ok(request);
         484  +
    }
         485  +
}
         486  +
#[derive(Debug)]
         487  +
struct AddTagsToResourceEndpointParamsInterceptor;
         488  +
         489  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         490  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for AddTagsToResourceEndpointParamsInterceptor {
         491  +
    fn name(&self) -> &'static str {
         492  +
        "AddTagsToResourceEndpointParamsInterceptor"
         493  +
    }
         494  +
         495  +
    fn read_before_execution(
         496  +
        &self,
         497  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         498  +
            '_,
         499  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         500  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         501  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         502  +
        >,
         503  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         504  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         505  +
        let _input = context
         506  +
            .input()
         507  +
            .downcast_ref::<AddTagsToResourceInput>()
         508  +
            .ok_or("failed to downcast to AddTagsToResourceInput")?;
         509  +
         510  +
        let params = crate::config::endpoint::Params::builder()
         511  +
            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
         512  +
            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
         513  +
            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
         514  +
            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
         515  +
            .build()
         516  +
            .map_err(|err| {
         517  +
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
         518  +
            })?;
         519  +
        cfg.interceptor_state()
         520  +
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         521  +
        ::std::result::Result::Ok(())
         522  +
    }
         523  +
}
         524  +
         525  +
// The get_* functions below are generated from JMESPath expressions in the
         526  +
// operationContextParams trait. They target the operation's input shape.
         527  +
         528  +
/// Error type for the `AddTagsToResourceError` operation.
         529  +
#[non_exhaustive]
         530  +
#[derive(::std::fmt::Debug)]
         531  +
pub enum AddTagsToResourceError {
         532  +
    /// <p>An error occurred on the server side.</p>
         533  +
    InternalServerError(crate::types::error::InternalServerError),
         534  +
    /// <p>The resource ID isn't valid. Verify that you entered the correct ID and try again.</p>
         535  +
    InvalidResourceId(crate::types::error::InvalidResourceId),
         536  +
    /// <p>The resource type isn't valid. For example, if you are attempting to tag an EC2 instance, the instance must be a registered managed node.</p>
         537  +
    InvalidResourceType(crate::types::error::InvalidResourceType),
         538  +
    /// <p>The <code>Targets</code> parameter includes too many tags. Remove one or more tags and try the command again.</p>
         539  +
    TooManyTagsError(crate::types::error::TooManyTagsError),
         540  +
    /// <p>There are concurrent updates for a resource that supports one update at a time.</p>
         541  +
    TooManyUpdates(crate::types::error::TooManyUpdates),
         542  +
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
         543  +
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
         544  +
    variable wildcard pattern and check `.code()`:
         545  +
     \
         546  +
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
         547  +
     \
         548  +
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-AddTagsToResourceError) for what information is available for the error.")]
         549  +
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         550  +
}
         551  +
impl AddTagsToResourceError {
         552  +
    /// Creates the `AddTagsToResourceError::Unhandled` variant from any error type.
         553  +
    pub fn unhandled(
         554  +
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
         555  +
    ) -> Self {
         556  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         557  +
            source: err.into(),
         558  +
            meta: ::std::default::Default::default(),
         559  +
        })
         560  +
    }
         561  +
         562  +
    /// Creates the `AddTagsToResourceError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
         563  +
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         564  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         565  +
            source: err.clone().into(),
         566  +
            meta: err,
         567  +
        })
         568  +
    }
         569  +
    ///
         570  +
    /// Returns error metadata, which includes the error code, message,
         571  +
    /// request ID, and potentially additional information.
         572  +
    ///
         573  +
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         574  +
        match self {
         575  +
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         576  +
            Self::InvalidResourceId(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         577  +
            Self::InvalidResourceType(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         578  +
            Self::TooManyTagsError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         579  +
            Self::TooManyUpdates(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         580  +
            Self::Unhandled(e) => &e.meta,
         581  +
        }
         582  +
    }
         583  +
    /// Returns `true` if the error kind is `AddTagsToResourceError::InternalServerError`.
         584  +
    pub fn is_internal_server_error(&self) -> bool {
         585  +
        matches!(self, Self::InternalServerError(_))
         586  +
    }
         587  +
    /// Returns `true` if the error kind is `AddTagsToResourceError::InvalidResourceId`.
         588  +
    pub fn is_invalid_resource_id(&self) -> bool {
         589  +
        matches!(self, Self::InvalidResourceId(_))
         590  +
    }
         591  +
    /// Returns `true` if the error kind is `AddTagsToResourceError::InvalidResourceType`.
         592  +
    pub fn is_invalid_resource_type(&self) -> bool {
         593  +
        matches!(self, Self::InvalidResourceType(_))
         594  +
    }
         595  +
    /// Returns `true` if the error kind is `AddTagsToResourceError::TooManyTagsError`.
         596  +
    pub fn is_too_many_tags_error(&self) -> bool {
         597  +
        matches!(self, Self::TooManyTagsError(_))
         598  +
    }
         599  +
    /// Returns `true` if the error kind is `AddTagsToResourceError::TooManyUpdates`.
         600  +
    pub fn is_too_many_updates(&self) -> bool {
         601  +
        matches!(self, Self::TooManyUpdates(_))
         602  +
    }
         603  +
}
         604  +
impl ::std::error::Error for AddTagsToResourceError {
         605  +
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         606  +
        match self {
         607  +
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
         608  +
            Self::InvalidResourceId(_inner) => ::std::option::Option::Some(_inner),
         609  +
            Self::InvalidResourceType(_inner) => ::std::option::Option::Some(_inner),
         610  +
            Self::TooManyTagsError(_inner) => ::std::option::Option::Some(_inner),
         611  +
            Self::TooManyUpdates(_inner) => ::std::option::Option::Some(_inner),
         612  +
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         613  +
        }
         614  +
    }
         615  +
}
         616  +
impl ::std::fmt::Display for AddTagsToResourceError {
         617  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         618  +
        match self {
         619  +
            Self::InternalServerError(_inner) => _inner.fmt(f),
         620  +
            Self::InvalidResourceId(_inner) => _inner.fmt(f),
         621  +
            Self::InvalidResourceType(_inner) => _inner.fmt(f),
         622  +
            Self::TooManyTagsError(_inner) => _inner.fmt(f),
         623  +
            Self::TooManyUpdates(_inner) => _inner.fmt(f),
         624  +
            Self::Unhandled(_inner) => {
         625  +
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
         626  +
                    write!(f, "unhandled error ({code})")
         627  +
                } else {
         628  +
                    f.write_str("unhandled error")
         629  +
                }
         630  +
            }
         631  +
        }
         632  +
    }
         633  +
}
         634  +
impl ::aws_smithy_types::retry::ProvideErrorKind for AddTagsToResourceError {
         635  +
    fn code(&self) -> ::std::option::Option<&str> {
         636  +
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         637  +
    }
         638  +
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         639  +
        ::std::option::Option::None
         640  +
    }
         641  +
}
         642  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for AddTagsToResourceError {
         643  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         644  +
        match self {
         645  +
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         646  +
            Self::InvalidResourceId(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         647  +
            Self::InvalidResourceType(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         648  +
            Self::TooManyTagsError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         649  +
            Self::TooManyUpdates(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         650  +
            Self::Unhandled(_inner) => &_inner.meta,
         651  +
        }
         652  +
    }
         653  +
}
         654  +
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for AddTagsToResourceError {
         655  +
    fn create_unhandled_error(
         656  +
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
         657  +
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         658  +
    ) -> Self {
         659  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         660  +
            source,
         661  +
            meta: meta.unwrap_or_default(),
         662  +
        })
         663  +
    }
         664  +
}
         665  +
impl ::aws_types::request_id::RequestId for crate::operation::add_tags_to_resource::AddTagsToResourceError {
         666  +
    fn request_id(&self) -> Option<&str> {
         667  +
        self.meta().request_id()
         668  +
    }
         669  +
}
         670  +
         671  +
pub use crate::operation::add_tags_to_resource::_add_tags_to_resource_input::AddTagsToResourceInput;
         672  +
         673  +
pub use crate::operation::add_tags_to_resource::_add_tags_to_resource_output::AddTagsToResourceOutput;
         674  +
         675  +
mod _add_tags_to_resource_input;
         676  +
         677  +
mod _add_tags_to_resource_output;
         678  +
         679  +
/// Builders
         680  +
pub mod builders;