AWS SDK

AWS SDK

rev. 3388bf5e18f4269f2b46f39cdc814c5c39d413d0

Files changed:

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

@@ -0,1 +0,466 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::update_maintenance_window_task::_update_maintenance_window_task_input::UpdateMaintenanceWindowTaskInputBuilder;
           3  +
           4  +
pub use crate::operation::update_maintenance_window_task::_update_maintenance_window_task_output::UpdateMaintenanceWindowTaskOutputBuilder;
           5  +
           6  +
impl crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskInputBuilder {
           7  +
    /// Sends a request with this input using the given client.
           8  +
    pub async fn send_with(
           9  +
        self,
          10  +
        client: &crate::Client,
          11  +
    ) -> ::std::result::Result<
          12  +
        crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.update_maintenance_window_task();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `UpdateMaintenanceWindowTask`.
          24  +
///
          25  +
/// <p>Modifies a task assigned to a maintenance window. You can't change the task type, but you can change the following values:</p>
          26  +
/// <ul>
          27  +
/// <li>
          28  +
/// <p><code>TaskARN</code>. For example, you can change a <code>RUN_COMMAND</code> task from <code>AWS-RunPowerShellScript</code> to <code>AWS-RunShellScript</code>.</p></li>
          29  +
/// <li>
          30  +
/// <p><code>ServiceRoleArn</code></p></li>
          31  +
/// <li>
          32  +
/// <p><code>TaskInvocationParameters</code></p></li>
          33  +
/// <li>
          34  +
/// <p><code>Priority</code></p></li>
          35  +
/// <li>
          36  +
/// <p><code>MaxConcurrency</code></p></li>
          37  +
/// <li>
          38  +
/// <p><code>MaxErrors</code></p></li>
          39  +
/// </ul><note>
          40  +
/// <p>One or more targets must be specified for maintenance window Run Command-type tasks. Depending on the task, targets are optional for other maintenance window task types (Automation, Lambda, and Step Functions). For more information about running tasks that don't specify targets, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">Registering maintenance window tasks without targets</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
          41  +
/// </note>
          42  +
/// <p>If the value for a parameter in <code>UpdateMaintenanceWindowTask</code> is null, then the corresponding field isn't modified. If you set <code>Replace</code> to true, then all fields required by the <code>RegisterTaskWithMaintenanceWindow</code> operation are required for this request. Optional fields that aren't specified are set to null.</p><important>
          43  +
/// <p>When you update a maintenance window task that has options specified in <code>TaskInvocationParameters</code>, you must provide again all the <code>TaskInvocationParameters</code> values that you want to retain. The values you don't specify again are removed. For example, suppose that when you registered a Run Command task, you specified <code>TaskInvocationParameters</code> values for <code>Comment</code>, <code>NotificationConfig</code>, and <code>OutputS3BucketName</code>. If you update the maintenance window task and specify only a different <code>OutputS3BucketName</code> value, the values for <code>Comment</code> and <code>NotificationConfig</code> are removed.</p>
          44  +
/// </important>
          45  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          46  +
pub struct UpdateMaintenanceWindowTaskFluentBuilder {
          47  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          48  +
    inner: crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskInputBuilder,
          49  +
    config_override: ::std::option::Option<crate::config::Builder>,
          50  +
}
          51  +
impl
          52  +
    crate::client::customize::internal::CustomizableSend<
          53  +
        crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput,
          54  +
        crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError,
          55  +
    > for UpdateMaintenanceWindowTaskFluentBuilder
          56  +
{
          57  +
    fn send(
          58  +
        self,
          59  +
        config_override: crate::config::Builder,
          60  +
    ) -> crate::client::customize::internal::BoxFuture<
          61  +
        crate::client::customize::internal::SendResult<
          62  +
            crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput,
          63  +
            crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError,
          64  +
        >,
          65  +
    > {
          66  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          67  +
    }
          68  +
}
          69  +
impl UpdateMaintenanceWindowTaskFluentBuilder {
          70  +
    /// Creates a new `UpdateMaintenanceWindowTaskFluentBuilder`.
          71  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          72  +
        Self {
          73  +
            handle,
          74  +
            inner: ::std::default::Default::default(),
          75  +
            config_override: ::std::option::Option::None,
          76  +
        }
          77  +
    }
          78  +
    /// Access the UpdateMaintenanceWindowTask as a reference.
          79  +
    pub fn as_input(&self) -> &crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskInputBuilder {
          80  +
        &self.inner
          81  +
    }
          82  +
    /// Sends the request and returns the response.
          83  +
    ///
          84  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          85  +
    /// can be matched against.
          86  +
    ///
          87  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          88  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          89  +
    /// set when configuring the client.
          90  +
    pub async fn send(
          91  +
        self,
          92  +
    ) -> ::std::result::Result<
          93  +
        crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput,
          94  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          95  +
            crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError,
          96  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          97  +
        >,
          98  +
    > {
          99  +
        let input = self
         100  +
            .inner
         101  +
            .build()
         102  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
         103  +
        let runtime_plugins = crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTask::operation_runtime_plugins(
         104  +
            self.handle.runtime_plugins.clone(),
         105  +
            &self.handle.conf,
         106  +
            self.config_override,
         107  +
        );
         108  +
        crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTask::orchestrate(&runtime_plugins, input).await
         109  +
    }
         110  +
         111  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
         112  +
    pub fn customize(
         113  +
        self,
         114  +
    ) -> crate::client::customize::CustomizableOperation<
         115  +
        crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput,
         116  +
        crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskError,
         117  +
        Self,
         118  +
    > {
         119  +
        crate::client::customize::CustomizableOperation::new(self)
         120  +
    }
         121  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         122  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         123  +
        self
         124  +
    }
         125  +
         126  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         127  +
        self.config_override = config_override;
         128  +
        self
         129  +
    }
         130  +
    /// <p>The maintenance window ID that contains the task to modify.</p>
         131  +
    pub fn window_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         132  +
        self.inner = self.inner.window_id(input.into());
         133  +
        self
         134  +
    }
         135  +
    /// <p>The maintenance window ID that contains the task to modify.</p>
         136  +
    pub fn set_window_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         137  +
        self.inner = self.inner.set_window_id(input);
         138  +
        self
         139  +
    }
         140  +
    /// <p>The maintenance window ID that contains the task to modify.</p>
         141  +
    pub fn get_window_id(&self) -> &::std::option::Option<::std::string::String> {
         142  +
        self.inner.get_window_id()
         143  +
    }
         144  +
    /// <p>The task ID to modify.</p>
         145  +
    pub fn window_task_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         146  +
        self.inner = self.inner.window_task_id(input.into());
         147  +
        self
         148  +
    }
         149  +
    /// <p>The task ID to modify.</p>
         150  +
    pub fn set_window_task_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         151  +
        self.inner = self.inner.set_window_task_id(input);
         152  +
        self
         153  +
    }
         154  +
    /// <p>The task ID to modify.</p>
         155  +
    pub fn get_window_task_id(&self) -> &::std::option::Option<::std::string::String> {
         156  +
        self.inner.get_window_task_id()
         157  +
    }
         158  +
    ///
         159  +
    /// Appends an item to `Targets`.
         160  +
    ///
         161  +
    /// To override the contents of this collection use [`set_targets`](Self::set_targets).
         162  +
    ///
         163  +
    /// <p>The targets (either managed nodes or tags) to modify. Managed nodes are specified using the format <code>Key=instanceids,Values=instanceID_1,instanceID_2</code>. Tags are specified using the format <code> Key=tag_name,Values=tag_value</code>.</p><note>
         164  +
    /// <p>One or more targets must be specified for maintenance window Run Command-type tasks. Depending on the task, targets are optional for other maintenance window task types (Automation, Lambda, and Step Functions). For more information about running tasks that don't specify targets, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">Registering maintenance window tasks without targets</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         165  +
    /// </note>
         166  +
    pub fn targets(mut self, input: crate::types::Target) -> Self {
         167  +
        self.inner = self.inner.targets(input);
         168  +
        self
         169  +
    }
         170  +
    /// <p>The targets (either managed nodes or tags) to modify. Managed nodes are specified using the format <code>Key=instanceids,Values=instanceID_1,instanceID_2</code>. Tags are specified using the format <code> Key=tag_name,Values=tag_value</code>.</p><note>
         171  +
    /// <p>One or more targets must be specified for maintenance window Run Command-type tasks. Depending on the task, targets are optional for other maintenance window task types (Automation, Lambda, and Step Functions). For more information about running tasks that don't specify targets, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">Registering maintenance window tasks without targets</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         172  +
    /// </note>
         173  +
    pub fn set_targets(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Target>>) -> Self {
         174  +
        self.inner = self.inner.set_targets(input);
         175  +
        self
         176  +
    }
         177  +
    /// <p>The targets (either managed nodes or tags) to modify. Managed nodes are specified using the format <code>Key=instanceids,Values=instanceID_1,instanceID_2</code>. Tags are specified using the format <code> Key=tag_name,Values=tag_value</code>.</p><note>
         178  +
    /// <p>One or more targets must be specified for maintenance window Run Command-type tasks. Depending on the task, targets are optional for other maintenance window task types (Automation, Lambda, and Step Functions). For more information about running tasks that don't specify targets, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">Registering maintenance window tasks without targets</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         179  +
    /// </note>
         180  +
    pub fn get_targets(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Target>> {
         181  +
        self.inner.get_targets()
         182  +
    }
         183  +
    /// <p>The task ARN to modify.</p>
         184  +
    pub fn task_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         185  +
        self.inner = self.inner.task_arn(input.into());
         186  +
        self
         187  +
    }
         188  +
    /// <p>The task ARN to modify.</p>
         189  +
    pub fn set_task_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         190  +
        self.inner = self.inner.set_task_arn(input);
         191  +
        self
         192  +
    }
         193  +
    /// <p>The task ARN to modify.</p>
         194  +
    pub fn get_task_arn(&self) -> &::std::option::Option<::std::string::String> {
         195  +
        self.inner.get_task_arn()
         196  +
    }
         197  +
    /// <p>The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run <code>RegisterTaskWithMaintenanceWindow</code>.</p>
         198  +
    /// <p>However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html">Setting up Maintenance Windows</a> in the in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         199  +
    pub fn service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         200  +
        self.inner = self.inner.service_role_arn(input.into());
         201  +
        self
         202  +
    }
         203  +
    /// <p>The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run <code>RegisterTaskWithMaintenanceWindow</code>.</p>
         204  +
    /// <p>However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html">Setting up Maintenance Windows</a> in the in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         205  +
    pub fn set_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         206  +
        self.inner = self.inner.set_service_role_arn(input);
         207  +
        self
         208  +
    }
         209  +
    /// <p>The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run <code>RegisterTaskWithMaintenanceWindow</code>.</p>
         210  +
    /// <p>However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html">Setting up Maintenance Windows</a> in the in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         211  +
    pub fn get_service_role_arn(&self) -> &::std::option::Option<::std::string::String> {
         212  +
        self.inner.get_service_role_arn()
         213  +
    }
         214  +
    ///
         215  +
    /// Adds a key-value pair to `TaskParameters`.
         216  +
    ///
         217  +
    /// To override the contents of this collection use [`set_task_parameters`](Self::set_task_parameters).
         218  +
    ///
         219  +
    /// <p>The parameters to modify.</p><note>
         220  +
    /// <p><code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs, instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
         221  +
    /// </note>
         222  +
    /// <p>The map has the following format:</p>
         223  +
    /// <p>Key: string, between 1 and 255 characters</p>
         224  +
    /// <p>Value: an array of strings, each string is between 1 and 255 characters</p>
         225  +
    pub fn task_parameters(
         226  +
        mut self,
         227  +
        k: impl ::std::convert::Into<::std::string::String>,
         228  +
        v: crate::types::MaintenanceWindowTaskParameterValueExpression,
         229  +
    ) -> Self {
         230  +
        self.inner = self.inner.task_parameters(k.into(), v);
         231  +
        self
         232  +
    }
         233  +
    /// <p>The parameters to modify.</p><note>
         234  +
    /// <p><code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs, instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
         235  +
    /// </note>
         236  +
    /// <p>The map has the following format:</p>
         237  +
    /// <p>Key: string, between 1 and 255 characters</p>
         238  +
    /// <p>Value: an array of strings, each string is between 1 and 255 characters</p>
         239  +
    pub fn set_task_parameters(
         240  +
        mut self,
         241  +
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::MaintenanceWindowTaskParameterValueExpression>>,
         242  +
    ) -> Self {
         243  +
        self.inner = self.inner.set_task_parameters(input);
         244  +
        self
         245  +
    }
         246  +
    /// <p>The parameters to modify.</p><note>
         247  +
    /// <p><code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs, instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
         248  +
    /// </note>
         249  +
    /// <p>The map has the following format:</p>
         250  +
    /// <p>Key: string, between 1 and 255 characters</p>
         251  +
    /// <p>Value: an array of strings, each string is between 1 and 255 characters</p>
         252  +
    pub fn get_task_parameters(
         253  +
        &self,
         254  +
    ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::MaintenanceWindowTaskParameterValueExpression>> {
         255  +
        self.inner.get_task_parameters()
         256  +
    }
         257  +
    /// <p>The parameters that the task should use during execution. Populate only the fields that match the task type. All other fields should be empty.</p><important>
         258  +
    /// <p>When you update a maintenance window task that has options specified in <code>TaskInvocationParameters</code>, you must provide again all the <code>TaskInvocationParameters</code> values that you want to retain. The values you don't specify again are removed. For example, suppose that when you registered a Run Command task, you specified <code>TaskInvocationParameters</code> values for <code>Comment</code>, <code>NotificationConfig</code>, and <code>OutputS3BucketName</code>. If you update the maintenance window task and specify only a different <code>OutputS3BucketName</code> value, the values for <code>Comment</code> and <code>NotificationConfig</code> are removed.</p>
         259  +
    /// </important>
         260  +
    pub fn task_invocation_parameters(mut self, input: crate::types::MaintenanceWindowTaskInvocationParameters) -> Self {
         261  +
        self.inner = self.inner.task_invocation_parameters(input);
         262  +
        self
         263  +
    }
         264  +
    /// <p>The parameters that the task should use during execution. Populate only the fields that match the task type. All other fields should be empty.</p><important>
         265  +
    /// <p>When you update a maintenance window task that has options specified in <code>TaskInvocationParameters</code>, you must provide again all the <code>TaskInvocationParameters</code> values that you want to retain. The values you don't specify again are removed. For example, suppose that when you registered a Run Command task, you specified <code>TaskInvocationParameters</code> values for <code>Comment</code>, <code>NotificationConfig</code>, and <code>OutputS3BucketName</code>. If you update the maintenance window task and specify only a different <code>OutputS3BucketName</code> value, the values for <code>Comment</code> and <code>NotificationConfig</code> are removed.</p>
         266  +
    /// </important>
         267  +
    pub fn set_task_invocation_parameters(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowTaskInvocationParameters>) -> Self {
         268  +
        self.inner = self.inner.set_task_invocation_parameters(input);
         269  +
        self
         270  +
    }
         271  +
    /// <p>The parameters that the task should use during execution. Populate only the fields that match the task type. All other fields should be empty.</p><important>
         272  +
    /// <p>When you update a maintenance window task that has options specified in <code>TaskInvocationParameters</code>, you must provide again all the <code>TaskInvocationParameters</code> values that you want to retain. The values you don't specify again are removed. For example, suppose that when you registered a Run Command task, you specified <code>TaskInvocationParameters</code> values for <code>Comment</code>, <code>NotificationConfig</code>, and <code>OutputS3BucketName</code>. If you update the maintenance window task and specify only a different <code>OutputS3BucketName</code> value, the values for <code>Comment</code> and <code>NotificationConfig</code> are removed.</p>
         273  +
    /// </important>
         274  +
    pub fn get_task_invocation_parameters(&self) -> &::std::option::Option<crate::types::MaintenanceWindowTaskInvocationParameters> {
         275  +
        self.inner.get_task_invocation_parameters()
         276  +
    }
         277  +
    /// <p>The new task priority to specify. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.</p>
         278  +
    pub fn priority(mut self, input: i32) -> Self {
         279  +
        self.inner = self.inner.priority(input);
         280  +
        self
         281  +
    }
         282  +
    /// <p>The new task priority to specify. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.</p>
         283  +
    pub fn set_priority(mut self, input: ::std::option::Option<i32>) -> Self {
         284  +
        self.inner = self.inner.set_priority(input);
         285  +
        self
         286  +
    }
         287  +
    /// <p>The new task priority to specify. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.</p>
         288  +
    pub fn get_priority(&self) -> &::std::option::Option<i32> {
         289  +
        self.inner.get_priority()
         290  +
    }
         291  +
    /// <p>The new <code>MaxConcurrency</code> value you want to specify. <code>MaxConcurrency</code> is the number of targets that are allowed to run this task, in parallel.</p><note>
         292  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
         293  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
         294  +
    /// </note>
         295  +
    pub fn max_concurrency(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         296  +
        self.inner = self.inner.max_concurrency(input.into());
         297  +
        self
         298  +
    }
         299  +
    /// <p>The new <code>MaxConcurrency</code> value you want to specify. <code>MaxConcurrency</code> is the number of targets that are allowed to run this task, in parallel.</p><note>
         300  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
         301  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
         302  +
    /// </note>
         303  +
    pub fn set_max_concurrency(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         304  +
        self.inner = self.inner.set_max_concurrency(input);
         305  +
        self
         306  +
    }
         307  +
    /// <p>The new <code>MaxConcurrency</code> value you want to specify. <code>MaxConcurrency</code> is the number of targets that are allowed to run this task, in parallel.</p><note>
         308  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
         309  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
         310  +
    /// </note>
         311  +
    pub fn get_max_concurrency(&self) -> &::std::option::Option<::std::string::String> {
         312  +
        self.inner.get_max_concurrency()
         313  +
    }
         314  +
    /// <p>The new <code>MaxErrors</code> value to specify. <code>MaxErrors</code> is the maximum number of errors that are allowed before the task stops being scheduled.</p><note>
         315  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
         316  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
         317  +
    /// </note>
         318  +
    pub fn max_errors(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         319  +
        self.inner = self.inner.max_errors(input.into());
         320  +
        self
         321  +
    }
         322  +
    /// <p>The new <code>MaxErrors</code> value to specify. <code>MaxErrors</code> is the maximum number of errors that are allowed before the task stops being scheduled.</p><note>
         323  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
         324  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
         325  +
    /// </note>
         326  +
    pub fn set_max_errors(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         327  +
        self.inner = self.inner.set_max_errors(input);
         328  +
        self
         329  +
    }
         330  +
    /// <p>The new <code>MaxErrors</code> value to specify. <code>MaxErrors</code> is the maximum number of errors that are allowed before the task stops being scheduled.</p><note>
         331  +
    /// <p>Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html">targetless task</a> You must provide a value in all other cases.</p>
         332  +
    /// <p>For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of <code>1</code>. This value doesn't affect the running of your task.</p>
         333  +
    /// </note>
         334  +
    pub fn get_max_errors(&self) -> &::std::option::Option<::std::string::String> {
         335  +
        self.inner.get_max_errors()
         336  +
    }
         337  +
    /// <p>The new logging location in Amazon S3 to specify.</p><note>
         338  +
    /// <p><code>LoggingInfo</code> has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the <code>OutputS3BucketName</code> and <code>OutputS3KeyPrefix</code> options in the <code>TaskInvocationParameters</code> structure. For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
         339  +
    /// </note>
         340  +
    pub fn logging_info(mut self, input: crate::types::LoggingInfo) -> Self {
         341  +
        self.inner = self.inner.logging_info(input);
         342  +
        self
         343  +
    }
         344  +
    /// <p>The new logging location in Amazon S3 to specify.</p><note>
         345  +
    /// <p><code>LoggingInfo</code> has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the <code>OutputS3BucketName</code> and <code>OutputS3KeyPrefix</code> options in the <code>TaskInvocationParameters</code> structure. For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
         346  +
    /// </note>
         347  +
    pub fn set_logging_info(mut self, input: ::std::option::Option<crate::types::LoggingInfo>) -> Self {
         348  +
        self.inner = self.inner.set_logging_info(input);
         349  +
        self
         350  +
    }
         351  +
    /// <p>The new logging location in Amazon S3 to specify.</p><note>
         352  +
    /// <p><code>LoggingInfo</code> has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the <code>OutputS3BucketName</code> and <code>OutputS3KeyPrefix</code> options in the <code>TaskInvocationParameters</code> structure. For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
         353  +
    /// </note>
         354  +
    pub fn get_logging_info(&self) -> &::std::option::Option<crate::types::LoggingInfo> {
         355  +
        self.inner.get_logging_info()
         356  +
    }
         357  +
    /// <p>The new task name to specify.</p>
         358  +
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         359  +
        self.inner = self.inner.name(input.into());
         360  +
        self
         361  +
    }
         362  +
    /// <p>The new task name to specify.</p>
         363  +
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         364  +
        self.inner = self.inner.set_name(input);
         365  +
        self
         366  +
    }
         367  +
    /// <p>The new task name to specify.</p>
         368  +
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
         369  +
        self.inner.get_name()
         370  +
    }
         371  +
    /// <p>The new task description to specify.</p>
         372  +
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         373  +
        self.inner = self.inner.description(input.into());
         374  +
        self
         375  +
    }
         376  +
    /// <p>The new task description to specify.</p>
         377  +
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         378  +
        self.inner = self.inner.set_description(input);
         379  +
        self
         380  +
    }
         381  +
    /// <p>The new task description to specify.</p>
         382  +
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
         383  +
        self.inner.get_description()
         384  +
    }
         385  +
    /// <p>If True, then all fields that are required by the <code>RegisterTaskWithMaintenanceWindow</code> operation are also required for this API request. Optional fields that aren't specified are set to null.</p>
         386  +
    pub fn replace(mut self, input: bool) -> Self {
         387  +
        self.inner = self.inner.replace(input);
         388  +
        self
         389  +
    }
         390  +
    /// <p>If True, then all fields that are required by the <code>RegisterTaskWithMaintenanceWindow</code> operation are also required for this API request. Optional fields that aren't specified are set to null.</p>
         391  +
    pub fn set_replace(mut self, input: ::std::option::Option<bool>) -> Self {
         392  +
        self.inner = self.inner.set_replace(input);
         393  +
        self
         394  +
    }
         395  +
    /// <p>If True, then all fields that are required by the <code>RegisterTaskWithMaintenanceWindow</code> operation are also required for this API request. Optional fields that aren't specified are set to null.</p>
         396  +
    pub fn get_replace(&self) -> &::std::option::Option<bool> {
         397  +
        self.inner.get_replace()
         398  +
    }
         399  +
    /// <p>Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.</p>
         400  +
    /// <ul>
         401  +
    /// <li>
         402  +
    /// <p><code>CONTINUE_TASK</code>: When the cutoff time is reached, any tasks that are running continue. The default value.</p></li>
         403  +
    /// <li>
         404  +
    /// <p><code>CANCEL_TASK</code>:</p>
         405  +
    /// <ul>
         406  +
    /// <li>
         407  +
    /// <p>For Automation, Lambda, Step Functions tasks: When the cutoff time is reached, any task invocations that are already running continue, but no new task invocations are started.</p></li>
         408  +
    /// <li>
         409  +
    /// <p>For Run Command tasks: When the cutoff time is reached, the system sends a <code>CancelCommand</code> operation that attempts to cancel the command associated with the task. However, there is no guarantee that the command will be terminated and the underlying process stopped.</p></li>
         410  +
    /// </ul>
         411  +
    /// <p>The status for tasks that are not completed is <code>TIMED_OUT</code>.</p></li>
         412  +
    /// </ul>
         413  +
    pub fn cutoff_behavior(mut self, input: crate::types::MaintenanceWindowTaskCutoffBehavior) -> Self {
         414  +
        self.inner = self.inner.cutoff_behavior(input);
         415  +
        self
         416  +
    }
         417  +
    /// <p>Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.</p>
         418  +
    /// <ul>
         419  +
    /// <li>
         420  +
    /// <p><code>CONTINUE_TASK</code>: When the cutoff time is reached, any tasks that are running continue. The default value.</p></li>
         421  +
    /// <li>
         422  +
    /// <p><code>CANCEL_TASK</code>:</p>
         423  +
    /// <ul>
         424  +
    /// <li>
         425  +
    /// <p>For Automation, Lambda, Step Functions tasks: When the cutoff time is reached, any task invocations that are already running continue, but no new task invocations are started.</p></li>
         426  +
    /// <li>
         427  +
    /// <p>For Run Command tasks: When the cutoff time is reached, the system sends a <code>CancelCommand</code> operation that attempts to cancel the command associated with the task. However, there is no guarantee that the command will be terminated and the underlying process stopped.</p></li>
         428  +
    /// </ul>
         429  +
    /// <p>The status for tasks that are not completed is <code>TIMED_OUT</code>.</p></li>
         430  +
    /// </ul>
         431  +
    pub fn set_cutoff_behavior(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowTaskCutoffBehavior>) -> Self {
         432  +
        self.inner = self.inner.set_cutoff_behavior(input);
         433  +
        self
         434  +
    }
         435  +
    /// <p>Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.</p>
         436  +
    /// <ul>
         437  +
    /// <li>
         438  +
    /// <p><code>CONTINUE_TASK</code>: When the cutoff time is reached, any tasks that are running continue. The default value.</p></li>
         439  +
    /// <li>
         440  +
    /// <p><code>CANCEL_TASK</code>:</p>
         441  +
    /// <ul>
         442  +
    /// <li>
         443  +
    /// <p>For Automation, Lambda, Step Functions tasks: When the cutoff time is reached, any task invocations that are already running continue, but no new task invocations are started.</p></li>
         444  +
    /// <li>
         445  +
    /// <p>For Run Command tasks: When the cutoff time is reached, the system sends a <code>CancelCommand</code> operation that attempts to cancel the command associated with the task. However, there is no guarantee that the command will be terminated and the underlying process stopped.</p></li>
         446  +
    /// </ul>
         447  +
    /// <p>The status for tasks that are not completed is <code>TIMED_OUT</code>.</p></li>
         448  +
    /// </ul>
         449  +
    pub fn get_cutoff_behavior(&self) -> &::std::option::Option<crate::types::MaintenanceWindowTaskCutoffBehavior> {
         450  +
        self.inner.get_cutoff_behavior()
         451  +
    }
         452  +
    /// <p>The CloudWatch alarm you want to apply to your maintenance window task.</p>
         453  +
    pub fn alarm_configuration(mut self, input: crate::types::AlarmConfiguration) -> Self {
         454  +
        self.inner = self.inner.alarm_configuration(input);
         455  +
        self
         456  +
    }
         457  +
    /// <p>The CloudWatch alarm you want to apply to your maintenance window task.</p>
         458  +
    pub fn set_alarm_configuration(mut self, input: ::std::option::Option<crate::types::AlarmConfiguration>) -> Self {
         459  +
        self.inner = self.inner.set_alarm_configuration(input);
         460  +
        self
         461  +
    }
         462  +
    /// <p>The CloudWatch alarm you want to apply to your maintenance window task.</p>
         463  +
    pub fn get_alarm_configuration(&self) -> &::std::option::Option<crate::types::AlarmConfiguration> {
         464  +
        self.inner.get_alarm_configuration()
         465  +
    }
         466  +
}

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

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