AWS SDK

AWS SDK

rev. aa190e630077955f0bc8f58dee6a16530c1e0578

Files changed:

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

@@ -0,1 +0,400 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The request body of the UpdateServiceSetting API operation.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct UpdateServiceSettingInput {
           7  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to update. For example, <code>arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled</code>. The setting ID can be one of the following.</p>
           8  +
    /// <ul>
           9  +
    /// <li>
          10  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
          11  +
    /// <li>
          12  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
          13  +
    /// <li>
          14  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
          15  +
    /// <li>
          16  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
          17  +
    /// <li>
          18  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
          19  +
    /// <li>
          20  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
          21  +
    /// <li>
          22  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
          23  +
    /// <li>
          24  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
          25  +
    /// <li>
          26  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
          27  +
    /// <li>
          28  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
          29  +
    /// </ul><note>
          30  +
    /// <p>Permissions to update the <code>/ssm/managed-instance/default-ec2-instance-management-role</code> setting should only be provided to administrators. Implement least privilege access when allowing individuals to configure or modify the Default Host Management Configuration.</p>
          31  +
    /// </note>
          32  +
    pub setting_id: ::std::option::Option<::std::string::String>,
          33  +
    /// <p>The new value to specify for the service setting. The following list specifies the available values for each setting.</p>
          34  +
    /// <ul>
          35  +
    /// <li>
          36  +
    /// <p>For <code>/ssm/appmanager/appmanager-enabled</code>, enter <code>True</code> or <code>False</code>.</p></li>
          37  +
    /// <li>
          38  +
    /// <p>For <code>/ssm/automation/customer-script-log-destination</code>, enter <code>CloudWatch</code>.</p></li>
          39  +
    /// <li>
          40  +
    /// <p>For <code>/ssm/automation/customer-script-log-group-name</code>, enter the name of an Amazon CloudWatch Logs log group.</p></li>
          41  +
    /// <li>
          42  +
    /// <p>For <code>/ssm/documents/console/public-sharing-permission</code>, enter <code>Enable</code> or <code>Disable</code>.</p></li>
          43  +
    /// <li>
          44  +
    /// <p>For <code>/ssm/managed-instance/activation-tier</code>, enter <code>standard</code> or <code>advanced</code>.</p></li>
          45  +
    /// <li>
          46  +
    /// <p>For <code>/ssm/managed-instance/default-ec2-instance-management-role</code>, enter the name of an IAM role.</p></li>
          47  +
    /// <li>
          48  +
    /// <p>For <code>/ssm/opsinsights/opscenter</code>, enter <code>Enabled</code> or <code>Disabled</code>.</p></li>
          49  +
    /// <li>
          50  +
    /// <p>For <code>/ssm/parameter-store/default-parameter-tier</code>, enter <code>Standard</code>, <code>Advanced</code>, or <code>Intelligent-Tiering</code></p></li>
          51  +
    /// <li>
          52  +
    /// <p>For <code>/ssm/parameter-store/high-throughput-enabled</code>, enter <code>true</code> or <code>false</code>.</p></li>
          53  +
    /// </ul>
          54  +
    pub setting_value: ::std::option::Option<::std::string::String>,
          55  +
}
          56  +
impl UpdateServiceSettingInput {
          57  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to update. For example, <code>arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled</code>. The setting ID can be one of the following.</p>
          58  +
    /// <ul>
          59  +
    /// <li>
          60  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
          61  +
    /// <li>
          62  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
          63  +
    /// <li>
          64  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
          65  +
    /// <li>
          66  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
          67  +
    /// <li>
          68  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
          69  +
    /// <li>
          70  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
          71  +
    /// <li>
          72  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
          73  +
    /// <li>
          74  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
          75  +
    /// <li>
          76  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
          77  +
    /// <li>
          78  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
          79  +
    /// </ul><note>
          80  +
    /// <p>Permissions to update the <code>/ssm/managed-instance/default-ec2-instance-management-role</code> setting should only be provided to administrators. Implement least privilege access when allowing individuals to configure or modify the Default Host Management Configuration.</p>
          81  +
    /// </note>
          82  +
    pub fn setting_id(&self) -> ::std::option::Option<&str> {
          83  +
        self.setting_id.as_deref()
          84  +
    }
          85  +
    /// <p>The new value to specify for the service setting. The following list specifies the available values for each setting.</p>
          86  +
    /// <ul>
          87  +
    /// <li>
          88  +
    /// <p>For <code>/ssm/appmanager/appmanager-enabled</code>, enter <code>True</code> or <code>False</code>.</p></li>
          89  +
    /// <li>
          90  +
    /// <p>For <code>/ssm/automation/customer-script-log-destination</code>, enter <code>CloudWatch</code>.</p></li>
          91  +
    /// <li>
          92  +
    /// <p>For <code>/ssm/automation/customer-script-log-group-name</code>, enter the name of an Amazon CloudWatch Logs log group.</p></li>
          93  +
    /// <li>
          94  +
    /// <p>For <code>/ssm/documents/console/public-sharing-permission</code>, enter <code>Enable</code> or <code>Disable</code>.</p></li>
          95  +
    /// <li>
          96  +
    /// <p>For <code>/ssm/managed-instance/activation-tier</code>, enter <code>standard</code> or <code>advanced</code>.</p></li>
          97  +
    /// <li>
          98  +
    /// <p>For <code>/ssm/managed-instance/default-ec2-instance-management-role</code>, enter the name of an IAM role.</p></li>
          99  +
    /// <li>
         100  +
    /// <p>For <code>/ssm/opsinsights/opscenter</code>, enter <code>Enabled</code> or <code>Disabled</code>.</p></li>
         101  +
    /// <li>
         102  +
    /// <p>For <code>/ssm/parameter-store/default-parameter-tier</code>, enter <code>Standard</code>, <code>Advanced</code>, or <code>Intelligent-Tiering</code></p></li>
         103  +
    /// <li>
         104  +
    /// <p>For <code>/ssm/parameter-store/high-throughput-enabled</code>, enter <code>true</code> or <code>false</code>.</p></li>
         105  +
    /// </ul>
         106  +
    pub fn setting_value(&self) -> ::std::option::Option<&str> {
         107  +
        self.setting_value.as_deref()
         108  +
    }
         109  +
}
         110  +
static UPDATESERVICESETTINGINPUT_MEMBER_SETTING_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         111  +
    ::aws_smithy_schema::ShapeId::from_parts(
         112  +
        "com.amazonaws.ssm.synthetic#UpdateServiceSettingInput$SettingId",
         113  +
        "com.amazonaws.ssm.synthetic",
         114  +
        "UpdateServiceSettingInput",
         115  +
    ),
         116  +
    ::aws_smithy_schema::ShapeType::String,
         117  +
    "SettingId",
         118  +
    0,
         119  +
);
         120  +
static UPDATESERVICESETTINGINPUT_MEMBER_SETTING_VALUE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         121  +
    ::aws_smithy_schema::ShapeId::from_parts(
         122  +
        "com.amazonaws.ssm.synthetic#UpdateServiceSettingInput$SettingValue",
         123  +
        "com.amazonaws.ssm.synthetic",
         124  +
        "UpdateServiceSettingInput",
         125  +
    ),
         126  +
    ::aws_smithy_schema::ShapeType::String,
         127  +
    "SettingValue",
         128  +
    1,
         129  +
);
         130  +
static UPDATESERVICESETTINGINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
         131  +
    ::aws_smithy_schema::ShapeId::from_parts(
         132  +
        "com.amazonaws.ssm.synthetic#UpdateServiceSettingInput",
         133  +
        "com.amazonaws.ssm.synthetic",
         134  +
        "UpdateServiceSettingInput",
         135  +
    ),
         136  +
    ::aws_smithy_schema::ShapeType::Structure,
         137  +
    &[
         138  +
        &UPDATESERVICESETTINGINPUT_MEMBER_SETTING_ID,
         139  +
        &UPDATESERVICESETTINGINPUT_MEMBER_SETTING_VALUE,
         140  +
    ],
         141  +
)
         142  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
         143  +
.with_original_name("UpdateServiceSettingRequest");
         144  +
impl UpdateServiceSettingInput {
         145  +
    /// The schema for this shape.
         146  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &UPDATESERVICESETTINGINPUT_SCHEMA;
         147  +
}
         148  +
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateServiceSettingInput {
         149  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         150  +
    fn serialize_members(
         151  +
        &self,
         152  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         153  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         154  +
        if let Some(ref val) = self.setting_id {
         155  +
            ser.write_string(&UPDATESERVICESETTINGINPUT_MEMBER_SETTING_ID, val)?;
         156  +
        }
         157  +
        if let Some(ref val) = self.setting_value {
         158  +
            ser.write_string(&UPDATESERVICESETTINGINPUT_MEMBER_SETTING_VALUE, val)?;
         159  +
        }
         160  +
        Ok(())
         161  +
    }
         162  +
}
         163  +
impl UpdateServiceSettingInput {
         164  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         165  +
    pub fn deserialize(
         166  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         167  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         168  +
        #[allow(unused_variables, unused_mut)]
         169  +
        let mut builder = Self::builder();
         170  +
        #[allow(
         171  +
            unused_variables,
         172  +
            unreachable_code,
         173  +
            clippy::single_match,
         174  +
            clippy::match_single_binding,
         175  +
            clippy::diverging_sub_expression
         176  +
        )]
         177  +
        deserializer.read_struct(&UPDATESERVICESETTINGINPUT_SCHEMA, &mut |member, deser| {
         178  +
            match member.member_index() {
         179  +
                Some(0) => {
         180  +
                    if deser.is_null() {
         181  +
                        deser.read_null()?;
         182  +
                    } else {
         183  +
                        builder.setting_id = Some(deser.read_string(member)?);
         184  +
                    }
         185  +
                }
         186  +
                Some(1) => {
         187  +
                    if deser.is_null() {
         188  +
                        deser.read_null()?;
         189  +
                    } else {
         190  +
                        builder.setting_value = Some(deser.read_string(member)?);
         191  +
                    }
         192  +
                }
         193  +
                _ => {}
         194  +
            }
         195  +
            Ok(())
         196  +
        })?;
         197  +
        builder.setting_id = builder.setting_id.or(Some(String::new()));
         198  +
        builder.setting_value = builder.setting_value.or(Some(String::new()));
         199  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         200  +
    }
         201  +
}
         202  +
impl UpdateServiceSettingInput {
         203  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         204  +
    pub fn deserialize_with_response(
         205  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         206  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         207  +
        _status: u16,
         208  +
        _body: &[u8],
         209  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         210  +
        Self::deserialize(deserializer)
         211  +
    }
         212  +
}
         213  +
impl UpdateServiceSettingInput {
         214  +
    /// Creates a new builder-style object to manufacture [`UpdateServiceSettingInput`](crate::operation::update_service_setting::UpdateServiceSettingInput).
         215  +
    pub fn builder() -> crate::operation::update_service_setting::builders::UpdateServiceSettingInputBuilder {
         216  +
        crate::operation::update_service_setting::builders::UpdateServiceSettingInputBuilder::default()
         217  +
    }
         218  +
}
         219  +
         220  +
/// A builder for [`UpdateServiceSettingInput`](crate::operation::update_service_setting::UpdateServiceSettingInput).
         221  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         222  +
#[non_exhaustive]
         223  +
pub struct UpdateServiceSettingInputBuilder {
         224  +
    pub(crate) setting_id: ::std::option::Option<::std::string::String>,
         225  +
    pub(crate) setting_value: ::std::option::Option<::std::string::String>,
         226  +
}
         227  +
impl UpdateServiceSettingInputBuilder {
         228  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to update. For example, <code>arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled</code>. The setting ID can be one of the following.</p>
         229  +
    /// <ul>
         230  +
    /// <li>
         231  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
         232  +
    /// <li>
         233  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
         234  +
    /// <li>
         235  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
         236  +
    /// <li>
         237  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
         238  +
    /// <li>
         239  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
         240  +
    /// <li>
         241  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
         242  +
    /// <li>
         243  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
         244  +
    /// <li>
         245  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
         246  +
    /// <li>
         247  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
         248  +
    /// <li>
         249  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
         250  +
    /// </ul><note>
         251  +
    /// <p>Permissions to update the <code>/ssm/managed-instance/default-ec2-instance-management-role</code> setting should only be provided to administrators. Implement least privilege access when allowing individuals to configure or modify the Default Host Management Configuration.</p>
         252  +
    /// </note>
         253  +
    /// This field is required.
         254  +
    pub fn setting_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         255  +
        self.setting_id = ::std::option::Option::Some(input.into());
         256  +
        self
         257  +
    }
         258  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to update. For example, <code>arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled</code>. The setting ID can be one of the following.</p>
         259  +
    /// <ul>
         260  +
    /// <li>
         261  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
         262  +
    /// <li>
         263  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
         264  +
    /// <li>
         265  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
         266  +
    /// <li>
         267  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
         268  +
    /// <li>
         269  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
         270  +
    /// <li>
         271  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
         272  +
    /// <li>
         273  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
         274  +
    /// <li>
         275  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
         276  +
    /// <li>
         277  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
         278  +
    /// <li>
         279  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
         280  +
    /// </ul><note>
         281  +
    /// <p>Permissions to update the <code>/ssm/managed-instance/default-ec2-instance-management-role</code> setting should only be provided to administrators. Implement least privilege access when allowing individuals to configure or modify the Default Host Management Configuration.</p>
         282  +
    /// </note>
         283  +
    pub fn set_setting_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         284  +
        self.setting_id = input;
         285  +
        self
         286  +
    }
         287  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to update. For example, <code>arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled</code>. The setting ID can be one of the following.</p>
         288  +
    /// <ul>
         289  +
    /// <li>
         290  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
         291  +
    /// <li>
         292  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
         293  +
    /// <li>
         294  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
         295  +
    /// <li>
         296  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
         297  +
    /// <li>
         298  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
         299  +
    /// <li>
         300  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
         301  +
    /// <li>
         302  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
         303  +
    /// <li>
         304  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
         305  +
    /// <li>
         306  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
         307  +
    /// <li>
         308  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
         309  +
    /// </ul><note>
         310  +
    /// <p>Permissions to update the <code>/ssm/managed-instance/default-ec2-instance-management-role</code> setting should only be provided to administrators. Implement least privilege access when allowing individuals to configure or modify the Default Host Management Configuration.</p>
         311  +
    /// </note>
         312  +
    pub fn get_setting_id(&self) -> &::std::option::Option<::std::string::String> {
         313  +
        &self.setting_id
         314  +
    }
         315  +
    /// <p>The new value to specify for the service setting. The following list specifies the available values for each setting.</p>
         316  +
    /// <ul>
         317  +
    /// <li>
         318  +
    /// <p>For <code>/ssm/appmanager/appmanager-enabled</code>, enter <code>True</code> or <code>False</code>.</p></li>
         319  +
    /// <li>
         320  +
    /// <p>For <code>/ssm/automation/customer-script-log-destination</code>, enter <code>CloudWatch</code>.</p></li>
         321  +
    /// <li>
         322  +
    /// <p>For <code>/ssm/automation/customer-script-log-group-name</code>, enter the name of an Amazon CloudWatch Logs log group.</p></li>
         323  +
    /// <li>
         324  +
    /// <p>For <code>/ssm/documents/console/public-sharing-permission</code>, enter <code>Enable</code> or <code>Disable</code>.</p></li>
         325  +
    /// <li>
         326  +
    /// <p>For <code>/ssm/managed-instance/activation-tier</code>, enter <code>standard</code> or <code>advanced</code>.</p></li>
         327  +
    /// <li>
         328  +
    /// <p>For <code>/ssm/managed-instance/default-ec2-instance-management-role</code>, enter the name of an IAM role.</p></li>
         329  +
    /// <li>
         330  +
    /// <p>For <code>/ssm/opsinsights/opscenter</code>, enter <code>Enabled</code> or <code>Disabled</code>.</p></li>
         331  +
    /// <li>
         332  +
    /// <p>For <code>/ssm/parameter-store/default-parameter-tier</code>, enter <code>Standard</code>, <code>Advanced</code>, or <code>Intelligent-Tiering</code></p></li>
         333  +
    /// <li>
         334  +
    /// <p>For <code>/ssm/parameter-store/high-throughput-enabled</code>, enter <code>true</code> or <code>false</code>.</p></li>
         335  +
    /// </ul>
         336  +
    /// This field is required.
         337  +
    pub fn setting_value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         338  +
        self.setting_value = ::std::option::Option::Some(input.into());
         339  +
        self
         340  +
    }
         341  +
    /// <p>The new value to specify for the service setting. The following list specifies the available values for each setting.</p>
         342  +
    /// <ul>
         343  +
    /// <li>
         344  +
    /// <p>For <code>/ssm/appmanager/appmanager-enabled</code>, enter <code>True</code> or <code>False</code>.</p></li>
         345  +
    /// <li>
         346  +
    /// <p>For <code>/ssm/automation/customer-script-log-destination</code>, enter <code>CloudWatch</code>.</p></li>
         347  +
    /// <li>
         348  +
    /// <p>For <code>/ssm/automation/customer-script-log-group-name</code>, enter the name of an Amazon CloudWatch Logs log group.</p></li>
         349  +
    /// <li>
         350  +
    /// <p>For <code>/ssm/documents/console/public-sharing-permission</code>, enter <code>Enable</code> or <code>Disable</code>.</p></li>
         351  +
    /// <li>
         352  +
    /// <p>For <code>/ssm/managed-instance/activation-tier</code>, enter <code>standard</code> or <code>advanced</code>.</p></li>
         353  +
    /// <li>
         354  +
    /// <p>For <code>/ssm/managed-instance/default-ec2-instance-management-role</code>, enter the name of an IAM role.</p></li>
         355  +
    /// <li>
         356  +
    /// <p>For <code>/ssm/opsinsights/opscenter</code>, enter <code>Enabled</code> or <code>Disabled</code>.</p></li>
         357  +
    /// <li>
         358  +
    /// <p>For <code>/ssm/parameter-store/default-parameter-tier</code>, enter <code>Standard</code>, <code>Advanced</code>, or <code>Intelligent-Tiering</code></p></li>
         359  +
    /// <li>
         360  +
    /// <p>For <code>/ssm/parameter-store/high-throughput-enabled</code>, enter <code>true</code> or <code>false</code>.</p></li>
         361  +
    /// </ul>
         362  +
    pub fn set_setting_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         363  +
        self.setting_value = input;
         364  +
        self
         365  +
    }
         366  +
    /// <p>The new value to specify for the service setting. The following list specifies the available values for each setting.</p>
         367  +
    /// <ul>
         368  +
    /// <li>
         369  +
    /// <p>For <code>/ssm/appmanager/appmanager-enabled</code>, enter <code>True</code> or <code>False</code>.</p></li>
         370  +
    /// <li>
         371  +
    /// <p>For <code>/ssm/automation/customer-script-log-destination</code>, enter <code>CloudWatch</code>.</p></li>
         372  +
    /// <li>
         373  +
    /// <p>For <code>/ssm/automation/customer-script-log-group-name</code>, enter the name of an Amazon CloudWatch Logs log group.</p></li>
         374  +
    /// <li>
         375  +
    /// <p>For <code>/ssm/documents/console/public-sharing-permission</code>, enter <code>Enable</code> or <code>Disable</code>.</p></li>
         376  +
    /// <li>
         377  +
    /// <p>For <code>/ssm/managed-instance/activation-tier</code>, enter <code>standard</code> or <code>advanced</code>.</p></li>
         378  +
    /// <li>
         379  +
    /// <p>For <code>/ssm/managed-instance/default-ec2-instance-management-role</code>, enter the name of an IAM role.</p></li>
         380  +
    /// <li>
         381  +
    /// <p>For <code>/ssm/opsinsights/opscenter</code>, enter <code>Enabled</code> or <code>Disabled</code>.</p></li>
         382  +
    /// <li>
         383  +
    /// <p>For <code>/ssm/parameter-store/default-parameter-tier</code>, enter <code>Standard</code>, <code>Advanced</code>, or <code>Intelligent-Tiering</code></p></li>
         384  +
    /// <li>
         385  +
    /// <p>For <code>/ssm/parameter-store/high-throughput-enabled</code>, enter <code>true</code> or <code>false</code>.</p></li>
         386  +
    /// </ul>
         387  +
    pub fn get_setting_value(&self) -> &::std::option::Option<::std::string::String> {
         388  +
        &self.setting_value
         389  +
    }
         390  +
    /// Consumes the builder and constructs a [`UpdateServiceSettingInput`](crate::operation::update_service_setting::UpdateServiceSettingInput).
         391  +
    pub fn build(
         392  +
        self,
         393  +
    ) -> ::std::result::Result<crate::operation::update_service_setting::UpdateServiceSettingInput, ::aws_smithy_types::error::operation::BuildError>
         394  +
    {
         395  +
        ::std::result::Result::Ok(crate::operation::update_service_setting::UpdateServiceSettingInput {
         396  +
            setting_id: self.setting_id,
         397  +
            setting_value: self.setting_value,
         398  +
        })
         399  +
    }
         400  +
}

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

@@ -0,1 +0,123 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The result body of the UpdateServiceSetting API operation.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct UpdateServiceSettingOutput {
           7  +
    _request_id: Option<String>,
           8  +
}
           9  +
static UPDATESERVICESETTINGOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          10  +
    ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
          11  +
    ::aws_smithy_schema::ShapeType::String,
          12  +
    "request_id",
          13  +
    0,
          14  +
)
          15  +
.with_http_header("x-amzn-requestid");
          16  +
static UPDATESERVICESETTINGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          17  +
    ::aws_smithy_schema::ShapeId::from_parts(
          18  +
        "com.amazonaws.ssm.synthetic#UpdateServiceSettingOutput",
          19  +
        "com.amazonaws.ssm.synthetic",
          20  +
        "UpdateServiceSettingOutput",
          21  +
    ),
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&UPDATESERVICESETTINGOUTPUT_MEMBER__REQUEST_ID],
          24  +
)
          25  +
.with_original_name("UpdateServiceSettingResult");
          26  +
impl UpdateServiceSettingOutput {
          27  +
    /// The schema for this shape.
          28  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &UPDATESERVICESETTINGOUTPUT_SCHEMA;
          29  +
}
          30  +
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateServiceSettingOutput {
          31  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          32  +
    fn serialize_members(
          33  +
        &self,
          34  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          35  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          36  +
        Ok(())
          37  +
    }
          38  +
}
          39  +
impl UpdateServiceSettingOutput {
          40  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          41  +
    pub fn deserialize(
          42  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          43  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          44  +
        #[allow(unused_variables, unused_mut)]
          45  +
        let mut builder = Self::builder();
          46  +
        #[allow(
          47  +
            unused_variables,
          48  +
            unreachable_code,
          49  +
            clippy::single_match,
          50  +
            clippy::match_single_binding,
          51  +
            clippy::diverging_sub_expression
          52  +
        )]
          53  +
        deserializer.read_struct(&UPDATESERVICESETTINGOUTPUT_SCHEMA, &mut |member, deser| {
          54  +
            match member.member_index() {
          55  +
                Some(0) => {
          56  +
                    builder._request_id = Some(deser.read_string(member)?);
          57  +
                }
          58  +
                _ => {}
          59  +
            }
          60  +
            Ok(())
          61  +
        })?;
          62  +
        Ok(builder.build())
          63  +
    }
          64  +
}
          65  +
impl UpdateServiceSettingOutput {
          66  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          67  +
    /// Header-bound members are read directly from headers, avoiding runtime
          68  +
    /// member iteration overhead. Body members are read via the deserializer.
          69  +
    pub fn deserialize_with_response(
          70  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          71  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          72  +
        _status: u16,
          73  +
        _body: &[u8],
          74  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          75  +
        #[allow(unused_variables, unused_mut)]
          76  +
        let mut builder = Self::builder();
          77  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          78  +
            builder._request_id = Some(val.to_string());
          79  +
        }
          80  +
        Ok(builder.build())
          81  +
    }
          82  +
}
          83  +
impl ::aws_types::request_id::RequestId for UpdateServiceSettingOutput {
          84  +
    fn request_id(&self) -> Option<&str> {
          85  +
        self._request_id.as_deref()
          86  +
    }
          87  +
}
          88  +
impl UpdateServiceSettingOutput {
          89  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
          90  +
        self._request_id = request_id;
          91  +
        self
          92  +
    }
          93  +
}
          94  +
impl UpdateServiceSettingOutput {
          95  +
    /// Creates a new builder-style object to manufacture [`UpdateServiceSettingOutput`](crate::operation::update_service_setting::UpdateServiceSettingOutput).
          96  +
    pub fn builder() -> crate::operation::update_service_setting::builders::UpdateServiceSettingOutputBuilder {
          97  +
        crate::operation::update_service_setting::builders::UpdateServiceSettingOutputBuilder::default()
          98  +
    }
          99  +
}
         100  +
         101  +
/// A builder for [`UpdateServiceSettingOutput`](crate::operation::update_service_setting::UpdateServiceSettingOutput).
         102  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         103  +
#[non_exhaustive]
         104  +
pub struct UpdateServiceSettingOutputBuilder {
         105  +
    _request_id: Option<String>,
         106  +
}
         107  +
impl UpdateServiceSettingOutputBuilder {
         108  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
         109  +
        self._request_id = Some(request_id.into());
         110  +
        self
         111  +
    }
         112  +
         113  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         114  +
        self._request_id = request_id;
         115  +
        self
         116  +
    }
         117  +
    /// Consumes the builder and constructs a [`UpdateServiceSettingOutput`](crate::operation::update_service_setting::UpdateServiceSettingOutput).
         118  +
    pub fn build(self) -> crate::operation::update_service_setting::UpdateServiceSettingOutput {
         119  +
        crate::operation::update_service_setting::UpdateServiceSettingOutput {
         120  +
            _request_id: self._request_id,
         121  +
        }
         122  +
    }
         123  +
}

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

@@ -0,1 +0,273 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::update_service_setting::_update_service_setting_input::UpdateServiceSettingInputBuilder;
           3  +
           4  +
pub use crate::operation::update_service_setting::_update_service_setting_output::UpdateServiceSettingOutputBuilder;
           5  +
           6  +
impl crate::operation::update_service_setting::builders::UpdateServiceSettingInputBuilder {
           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_service_setting::UpdateServiceSettingOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::update_service_setting::UpdateServiceSettingError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.update_service_setting();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `UpdateServiceSetting`.
          24  +
///
          25  +
/// <p><code>ServiceSetting</code> is an account-level setting for an Amazon Web Services service. This setting defines how a user interacts with or uses a service or a feature of a service. For example, if an Amazon Web Services service charges money to the account based on feature or service usage, then the Amazon Web Services service team might create a default setting of "false". This means the user can't use this feature unless they change the setting to "true" and intentionally opt in for a paid feature.</p>
          26  +
/// <p>Services map a <code>SettingId</code> object to a setting value. Amazon Web Services services teams define the default value for a <code>SettingId</code>. You can't create a new <code>SettingId</code>, but you can overwrite the default value if you have the <code>ssm:UpdateServiceSetting</code> permission for the setting. Use the <code>GetServiceSetting</code> API operation to view the current value. Or, use the <code>ResetServiceSetting</code> to change the value back to the original value defined by the Amazon Web Services service team.</p>
          27  +
/// <p>Update the service setting for the account.</p>
          28  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          29  +
pub struct UpdateServiceSettingFluentBuilder {
          30  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          31  +
    inner: crate::operation::update_service_setting::builders::UpdateServiceSettingInputBuilder,
          32  +
    config_override: ::std::option::Option<crate::config::Builder>,
          33  +
}
          34  +
impl
          35  +
    crate::client::customize::internal::CustomizableSend<
          36  +
        crate::operation::update_service_setting::UpdateServiceSettingOutput,
          37  +
        crate::operation::update_service_setting::UpdateServiceSettingError,
          38  +
    > for UpdateServiceSettingFluentBuilder
          39  +
{
          40  +
    fn send(
          41  +
        self,
          42  +
        config_override: crate::config::Builder,
          43  +
    ) -> crate::client::customize::internal::BoxFuture<
          44  +
        crate::client::customize::internal::SendResult<
          45  +
            crate::operation::update_service_setting::UpdateServiceSettingOutput,
          46  +
            crate::operation::update_service_setting::UpdateServiceSettingError,
          47  +
        >,
          48  +
    > {
          49  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          50  +
    }
          51  +
}
          52  +
impl UpdateServiceSettingFluentBuilder {
          53  +
    /// Creates a new `UpdateServiceSettingFluentBuilder`.
          54  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          55  +
        Self {
          56  +
            handle,
          57  +
            inner: ::std::default::Default::default(),
          58  +
            config_override: ::std::option::Option::None,
          59  +
        }
          60  +
    }
          61  +
    /// Access the UpdateServiceSetting as a reference.
          62  +
    pub fn as_input(&self) -> &crate::operation::update_service_setting::builders::UpdateServiceSettingInputBuilder {
          63  +
        &self.inner
          64  +
    }
          65  +
    /// Sends the request and returns the response.
          66  +
    ///
          67  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          68  +
    /// can be matched against.
          69  +
    ///
          70  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          71  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          72  +
    /// set when configuring the client.
          73  +
    pub async fn send(
          74  +
        self,
          75  +
    ) -> ::std::result::Result<
          76  +
        crate::operation::update_service_setting::UpdateServiceSettingOutput,
          77  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          78  +
            crate::operation::update_service_setting::UpdateServiceSettingError,
          79  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          80  +
        >,
          81  +
    > {
          82  +
        let input = self
          83  +
            .inner
          84  +
            .build()
          85  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          86  +
        let runtime_plugins = crate::operation::update_service_setting::UpdateServiceSetting::operation_runtime_plugins(
          87  +
            self.handle.runtime_plugins.clone(),
          88  +
            &self.handle.conf,
          89  +
            self.config_override,
          90  +
        );
          91  +
        crate::operation::update_service_setting::UpdateServiceSetting::orchestrate(&runtime_plugins, input).await
          92  +
    }
          93  +
          94  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          95  +
    pub fn customize(
          96  +
        self,
          97  +
    ) -> crate::client::customize::CustomizableOperation<
          98  +
        crate::operation::update_service_setting::UpdateServiceSettingOutput,
          99  +
        crate::operation::update_service_setting::UpdateServiceSettingError,
         100  +
        Self,
         101  +
    > {
         102  +
        crate::client::customize::CustomizableOperation::new(self)
         103  +
    }
         104  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         105  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         106  +
        self
         107  +
    }
         108  +
         109  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         110  +
        self.config_override = config_override;
         111  +
        self
         112  +
    }
         113  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to update. For example, <code>arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled</code>. The setting ID can be one of the following.</p>
         114  +
    /// <ul>
         115  +
    /// <li>
         116  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
         117  +
    /// <li>
         118  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
         119  +
    /// <li>
         120  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
         121  +
    /// <li>
         122  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
         123  +
    /// <li>
         124  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
         125  +
    /// <li>
         126  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
         127  +
    /// <li>
         128  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
         129  +
    /// <li>
         130  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
         131  +
    /// <li>
         132  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
         133  +
    /// <li>
         134  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
         135  +
    /// </ul><note>
         136  +
    /// <p>Permissions to update the <code>/ssm/managed-instance/default-ec2-instance-management-role</code> setting should only be provided to administrators. Implement least privilege access when allowing individuals to configure or modify the Default Host Management Configuration.</p>
         137  +
    /// </note>
         138  +
    pub fn setting_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         139  +
        self.inner = self.inner.setting_id(input.into());
         140  +
        self
         141  +
    }
         142  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to update. For example, <code>arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled</code>. The setting ID can be one of the following.</p>
         143  +
    /// <ul>
         144  +
    /// <li>
         145  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
         146  +
    /// <li>
         147  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
         148  +
    /// <li>
         149  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
         150  +
    /// <li>
         151  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
         152  +
    /// <li>
         153  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
         154  +
    /// <li>
         155  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
         156  +
    /// <li>
         157  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
         158  +
    /// <li>
         159  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
         160  +
    /// <li>
         161  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
         162  +
    /// <li>
         163  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
         164  +
    /// </ul><note>
         165  +
    /// <p>Permissions to update the <code>/ssm/managed-instance/default-ec2-instance-management-role</code> setting should only be provided to administrators. Implement least privilege access when allowing individuals to configure or modify the Default Host Management Configuration.</p>
         166  +
    /// </note>
         167  +
    pub fn set_setting_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         168  +
        self.inner = self.inner.set_setting_id(input);
         169  +
        self
         170  +
    }
         171  +
    /// <p>The Amazon Resource Name (ARN) of the service setting to update. For example, <code>arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled</code>. The setting ID can be one of the following.</p>
         172  +
    /// <ul>
         173  +
    /// <li>
         174  +
    /// <p><code>/ssm/appmanager/appmanager-enabled</code></p></li>
         175  +
    /// <li>
         176  +
    /// <p><code>/ssm/automation/customer-script-log-destination</code></p></li>
         177  +
    /// <li>
         178  +
    /// <p><code>/ssm/automation/customer-script-log-group-name</code></p></li>
         179  +
    /// <li>
         180  +
    /// <p>/ssm/automation/enable-adaptive-concurrency</p></li>
         181  +
    /// <li>
         182  +
    /// <p><code>/ssm/documents/console/public-sharing-permission</code></p></li>
         183  +
    /// <li>
         184  +
    /// <p><code>/ssm/managed-instance/activation-tier</code></p></li>
         185  +
    /// <li>
         186  +
    /// <p><code>/ssm/managed-instance/default-ec2-instance-management-role</code></p></li>
         187  +
    /// <li>
         188  +
    /// <p><code>/ssm/opsinsights/opscenter</code></p></li>
         189  +
    /// <li>
         190  +
    /// <p><code>/ssm/parameter-store/default-parameter-tier</code></p></li>
         191  +
    /// <li>
         192  +
    /// <p><code>/ssm/parameter-store/high-throughput-enabled</code></p></li>
         193  +
    /// </ul><note>
         194  +
    /// <p>Permissions to update the <code>/ssm/managed-instance/default-ec2-instance-management-role</code> setting should only be provided to administrators. Implement least privilege access when allowing individuals to configure or modify the Default Host Management Configuration.</p>
         195  +
    /// </note>
         196  +
    pub fn get_setting_id(&self) -> &::std::option::Option<::std::string::String> {
         197  +
        self.inner.get_setting_id()
         198  +
    }
         199  +
    /// <p>The new value to specify for the service setting. The following list specifies the available values for each setting.</p>
         200  +
    /// <ul>
         201  +
    /// <li>
         202  +
    /// <p>For <code>/ssm/appmanager/appmanager-enabled</code>, enter <code>True</code> or <code>False</code>.</p></li>
         203  +
    /// <li>
         204  +
    /// <p>For <code>/ssm/automation/customer-script-log-destination</code>, enter <code>CloudWatch</code>.</p></li>
         205  +
    /// <li>
         206  +
    /// <p>For <code>/ssm/automation/customer-script-log-group-name</code>, enter the name of an Amazon CloudWatch Logs log group.</p></li>
         207  +
    /// <li>
         208  +
    /// <p>For <code>/ssm/documents/console/public-sharing-permission</code>, enter <code>Enable</code> or <code>Disable</code>.</p></li>
         209  +
    /// <li>
         210  +
    /// <p>For <code>/ssm/managed-instance/activation-tier</code>, enter <code>standard</code> or <code>advanced</code>.</p></li>
         211  +
    /// <li>
         212  +
    /// <p>For <code>/ssm/managed-instance/default-ec2-instance-management-role</code>, enter the name of an IAM role.</p></li>
         213  +
    /// <li>
         214  +
    /// <p>For <code>/ssm/opsinsights/opscenter</code>, enter <code>Enabled</code> or <code>Disabled</code>.</p></li>
         215  +
    /// <li>
         216  +
    /// <p>For <code>/ssm/parameter-store/default-parameter-tier</code>, enter <code>Standard</code>, <code>Advanced</code>, or <code>Intelligent-Tiering</code></p></li>
         217  +
    /// <li>
         218  +
    /// <p>For <code>/ssm/parameter-store/high-throughput-enabled</code>, enter <code>true</code> or <code>false</code>.</p></li>
         219  +
    /// </ul>
         220  +
    pub fn setting_value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         221  +
        self.inner = self.inner.setting_value(input.into());
         222  +
        self
         223  +
    }
         224  +
    /// <p>The new value to specify for the service setting. The following list specifies the available values for each setting.</p>
         225  +
    /// <ul>
         226  +
    /// <li>
         227  +
    /// <p>For <code>/ssm/appmanager/appmanager-enabled</code>, enter <code>True</code> or <code>False</code>.</p></li>
         228  +
    /// <li>
         229  +
    /// <p>For <code>/ssm/automation/customer-script-log-destination</code>, enter <code>CloudWatch</code>.</p></li>
         230  +
    /// <li>
         231  +
    /// <p>For <code>/ssm/automation/customer-script-log-group-name</code>, enter the name of an Amazon CloudWatch Logs log group.</p></li>
         232  +
    /// <li>
         233  +
    /// <p>For <code>/ssm/documents/console/public-sharing-permission</code>, enter <code>Enable</code> or <code>Disable</code>.</p></li>
         234  +
    /// <li>
         235  +
    /// <p>For <code>/ssm/managed-instance/activation-tier</code>, enter <code>standard</code> or <code>advanced</code>.</p></li>
         236  +
    /// <li>
         237  +
    /// <p>For <code>/ssm/managed-instance/default-ec2-instance-management-role</code>, enter the name of an IAM role.</p></li>
         238  +
    /// <li>
         239  +
    /// <p>For <code>/ssm/opsinsights/opscenter</code>, enter <code>Enabled</code> or <code>Disabled</code>.</p></li>
         240  +
    /// <li>
         241  +
    /// <p>For <code>/ssm/parameter-store/default-parameter-tier</code>, enter <code>Standard</code>, <code>Advanced</code>, or <code>Intelligent-Tiering</code></p></li>
         242  +
    /// <li>
         243  +
    /// <p>For <code>/ssm/parameter-store/high-throughput-enabled</code>, enter <code>true</code> or <code>false</code>.</p></li>
         244  +
    /// </ul>
         245  +
    pub fn set_setting_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         246  +
        self.inner = self.inner.set_setting_value(input);
         247  +
        self
         248  +
    }
         249  +
    /// <p>The new value to specify for the service setting. The following list specifies the available values for each setting.</p>
         250  +
    /// <ul>
         251  +
    /// <li>
         252  +
    /// <p>For <code>/ssm/appmanager/appmanager-enabled</code>, enter <code>True</code> or <code>False</code>.</p></li>
         253  +
    /// <li>
         254  +
    /// <p>For <code>/ssm/automation/customer-script-log-destination</code>, enter <code>CloudWatch</code>.</p></li>
         255  +
    /// <li>
         256  +
    /// <p>For <code>/ssm/automation/customer-script-log-group-name</code>, enter the name of an Amazon CloudWatch Logs log group.</p></li>
         257  +
    /// <li>
         258  +
    /// <p>For <code>/ssm/documents/console/public-sharing-permission</code>, enter <code>Enable</code> or <code>Disable</code>.</p></li>
         259  +
    /// <li>
         260  +
    /// <p>For <code>/ssm/managed-instance/activation-tier</code>, enter <code>standard</code> or <code>advanced</code>.</p></li>
         261  +
    /// <li>
         262  +
    /// <p>For <code>/ssm/managed-instance/default-ec2-instance-management-role</code>, enter the name of an IAM role.</p></li>
         263  +
    /// <li>
         264  +
    /// <p>For <code>/ssm/opsinsights/opscenter</code>, enter <code>Enabled</code> or <code>Disabled</code>.</p></li>
         265  +
    /// <li>
         266  +
    /// <p>For <code>/ssm/parameter-store/default-parameter-tier</code>, enter <code>Standard</code>, <code>Advanced</code>, or <code>Intelligent-Tiering</code></p></li>
         267  +
    /// <li>
         268  +
    /// <p>For <code>/ssm/parameter-store/high-throughput-enabled</code>, enter <code>true</code> or <code>false</code>.</p></li>
         269  +
    /// </ul>
         270  +
    pub fn get_setting_value(&self) -> &::std::option::Option<::std::string::String> {
         271  +
        self.inner.get_setting_value()
         272  +
    }
         273  +
}

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

@@ -0,1 +0,570 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// Orchestration and serialization glue logic for `ValidateCloudConnector`.
           3  +
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
           4  +
#[non_exhaustive]
           5  +
pub struct ValidateCloudConnector;
           6  +
impl ValidateCloudConnector {
           7  +
    /// Creates a new `ValidateCloudConnector`
           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::validate_cloud_connector::ValidateCloudConnectorInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> =
          16  +
        crate::operation::validate_cloud_connector::ValidateCloudConnectorOutput::SCHEMA;
          17  +
    pub(crate) async fn orchestrate(
          18  +
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          19  +
        input: crate::operation::validate_cloud_connector::ValidateCloudConnectorInput,
          20  +
    ) -> ::std::result::Result<
          21  +
        crate::operation::validate_cloud_connector::ValidateCloudConnectorOutput,
          22  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          23  +
            crate::operation::validate_cloud_connector::ValidateCloudConnectorError,
          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::validate_cloud_connector::ValidateCloudConnectorError>()
          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::validate_cloud_connector::ValidateCloudConnectorOutput>()
          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::validate_cloud_connector::ValidateCloudConnectorInput,
          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", "ValidateCloudConnector", 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.ValidateCloudConnector",
          65  +
                "rpc.service" = "SSM",
          66  +
                "rpc.method" = "ValidateCloudConnector",
          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::ResourceNotFoundException::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::ResourceNotFoundException::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::ResourceNotFoundException::deserialize(d)?))
         120  +
                        },
         121  +
                    )
         122  +
                            .build()
         123  +
    });
         124  +
}
         125  +
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ValidateCloudConnector {
         126  +
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
         127  +
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("ValidateCloudConnector");
         128  +
         129  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
         130  +
            ValidateCloudConnectorRequestSerializer,
         131  +
        ));
         132  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
         133  +
            ValidateCloudConnectorResponseDeserializer,
         134  +
        ));
         135  +
         136  +
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
         137  +
            crate::config::auth::Params::builder()
         138  +
                .operation_name("ValidateCloudConnector")
         139  +
                .build()
         140  +
                .expect("required fields set"),
         141  +
        ));
         142  +
         143  +
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
         144  +
            "ValidateCloudConnector",
         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("ValidateCloudConnector")
         167  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         168  +
                ValidateCloudConnectorTelemetryInputCaptureInterceptor,
         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  +
                ValidateCloudConnectorEndpointParamsInterceptor,
         175  +
            ))
         176  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
         177  +
                crate::operation::validate_cloud_connector::ValidateCloudConnectorError,
         178  +
            >::new())
         179  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
         180  +
                crate::operation::validate_cloud_connector::ValidateCloudConnectorError,
         181  +
            >::new())
         182  +
            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
         183  +
                crate::operation::validate_cloud_connector::ValidateCloudConnectorError,
         184  +
            >::new())
         185  +
            .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
         186  +
                crate::operation::validate_cloud_connector::ValidateCloudConnectorError,
         187  +
            >::new());
         188  +
         189  +
        ::std::borrow::Cow::Owned(rcb)
         190  +
    }
         191  +
}
         192  +
         193  +
#[derive(Debug)]
         194  +
struct ValidateCloudConnectorTelemetryInputCaptureInterceptor;
         195  +
         196  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         197  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ValidateCloudConnectorTelemetryInputCaptureInterceptor {
         198  +
    fn name(&self) -> &'static str {
         199  +
        "ValidateCloudConnectorTelemetryInputCaptureInterceptor"
         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::<ValidateCloudConnectorInput>() 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("CloudConnectorId") {
         227  +
            if let ::std::option::Option::Some(value) = input.cloud_connector_id.as_deref() {
         228  +
                captured.insert("CloudConnectorId", value);
         229  +
            }
         230  +
        }
         231  +
        if requested.should_capture("NextToken") {
         232  +
            if let ::std::option::Option::Some(value) = input.next_token.as_deref() {
         233  +
                captured.insert("NextToken", value);
         234  +
            }
         235  +
        }
         236  +
         237  +
        cfg.interceptor_state().store_put(captured);
         238  +
        ::std::result::Result::Ok(())
         239  +
    }
         240  +
}
         241  +
#[derive(Debug)]
         242  +
struct ValidateCloudConnectorResponseDeserializer;
         243  +
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ValidateCloudConnectorResponseDeserializer {
         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::validate_cloud_connector::ValidateCloudConnectorError::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::validate_cloud_connector::ValidateCloudConnectorError::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  +
                "ResourceNotFoundException" => crate::operation::validate_cloud_connector::ValidateCloudConnectorError::ResourceNotFoundException({
         304  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         305  +
                        crate::types::error::ResourceNotFoundException::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::validate_cloud_connector::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::validate_cloud_connector::ValidateCloudConnectorError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
         345  +
                        ::std::option::Option::None => crate::operation::validate_cloud_connector::ValidateCloudConnectorError::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, ValidateCloudConnector::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::validate_cloud_connector::ValidateCloudConnectorOutput::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 ValidateCloudConnectorRequestSerializer;
         382  +
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ValidateCloudConnectorRequestSerializer {
         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::validate_cloud_connector::ValidateCloudConnectorInput>()
         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, ValidateCloudConnector::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 ValidateCloudConnectorEndpointParamsInterceptor;
         405  +
         406  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         407  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ValidateCloudConnectorEndpointParamsInterceptor {
         408  +
    fn name(&self) -> &'static str {
         409  +
        "ValidateCloudConnectorEndpointParamsInterceptor"
         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::<ValidateCloudConnectorInput>()
         425  +
            .ok_or("failed to downcast to ValidateCloudConnectorInput")?;
         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 `ValidateCloudConnectorError` operation.
         446  +
#[non_exhaustive]
         447  +
#[derive(::std::fmt::Debug)]
         448  +
pub enum ValidateCloudConnectorError {
         449  +
    /// <p>An error occurred on the server side.</p>
         450  +
    InternalServerError(crate::types::error::InternalServerError),
         451  +
    /// <p>The specified parameter to be shared could not be found.</p>
         452  +
    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
         453  +
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
         454  +
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
         455  +
    variable wildcard pattern and check `.code()`:
         456  +
     \
         457  +
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
         458  +
     \
         459  +
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ValidateCloudConnectorError) for what information is available for the error.")]
         460  +
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         461  +
}
         462  +
impl ValidateCloudConnectorError {
         463  +
    /// Creates the `ValidateCloudConnectorError::Unhandled` variant from any error type.
         464  +
    pub fn unhandled(
         465  +
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
         466  +
    ) -> Self {
         467  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         468  +
            source: err.into(),
         469  +
            meta: ::std::default::Default::default(),
         470  +
        })
         471  +
    }
         472  +
         473  +
    /// Creates the `ValidateCloudConnectorError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
         474  +
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         475  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         476  +
            source: err.clone().into(),
         477  +
            meta: err,
         478  +
        })
         479  +
    }
         480  +
    ///
         481  +
    /// Returns error metadata, which includes the error code, message,
         482  +
    /// request ID, and potentially additional information.
         483  +
    ///
         484  +
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         485  +
        match self {
         486  +
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         487  +
            Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         488  +
            Self::Unhandled(e) => &e.meta,
         489  +
        }
         490  +
    }
         491  +
    /// Returns `true` if the error kind is `ValidateCloudConnectorError::InternalServerError`.
         492  +
    pub fn is_internal_server_error(&self) -> bool {
         493  +
        matches!(self, Self::InternalServerError(_))
         494  +
    }
         495  +
    /// Returns `true` if the error kind is `ValidateCloudConnectorError::ResourceNotFoundException`.
         496  +
    pub fn is_resource_not_found_exception(&self) -> bool {
         497  +
        matches!(self, Self::ResourceNotFoundException(_))
         498  +
    }
         499  +
}
         500  +
impl ::std::error::Error for ValidateCloudConnectorError {
         501  +
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         502  +
        match self {
         503  +
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
         504  +
            Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner),
         505  +
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         506  +
        }
         507  +
    }
         508  +
}
         509  +
impl ::std::fmt::Display for ValidateCloudConnectorError {
         510  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         511  +
        match self {
         512  +
            Self::InternalServerError(_inner) => _inner.fmt(f),
         513  +
            Self::ResourceNotFoundException(_inner) => _inner.fmt(f),
         514  +
            Self::Unhandled(_inner) => {
         515  +
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
         516  +
                    write!(f, "unhandled error ({code})")
         517  +
                } else {
         518  +
                    f.write_str("unhandled error")
         519  +
                }
         520  +
            }
         521  +
        }
         522  +
    }
         523  +
}
         524  +
impl ::aws_smithy_types::retry::ProvideErrorKind for ValidateCloudConnectorError {
         525  +
    fn code(&self) -> ::std::option::Option<&str> {
         526  +
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         527  +
    }
         528  +
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         529  +
        ::std::option::Option::None
         530  +
    }
         531  +
}
         532  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ValidateCloudConnectorError {
         533  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         534  +
        match self {
         535  +
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         536  +
            Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         537  +
            Self::Unhandled(_inner) => &_inner.meta,
         538  +
        }
         539  +
    }
         540  +
}
         541  +
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ValidateCloudConnectorError {
         542  +
    fn create_unhandled_error(
         543  +
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
         544  +
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         545  +
    ) -> Self {
         546  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         547  +
            source,
         548  +
            meta: meta.unwrap_or_default(),
         549  +
        })
         550  +
    }
         551  +
}
         552  +
impl ::aws_types::request_id::RequestId for crate::operation::validate_cloud_connector::ValidateCloudConnectorError {
         553  +
    fn request_id(&self) -> Option<&str> {
         554  +
        self.meta().request_id()
         555  +
    }
         556  +
}
         557  +
         558  +
pub use crate::operation::validate_cloud_connector::_validate_cloud_connector_input::ValidateCloudConnectorInput;
         559  +
         560  +
pub use crate::operation::validate_cloud_connector::_validate_cloud_connector_output::ValidateCloudConnectorOutput;
         561  +
         562  +
mod _validate_cloud_connector_input;
         563  +
         564  +
mod _validate_cloud_connector_output;
         565  +
         566  +
/// Builders
         567  +
pub mod builders;
         568  +
         569  +
/// Paginator for this operation
         570  +
pub mod paginator;