AWS SDK

AWS SDK

rev. bbca34fa2eddb4be623fbbc6b6df1a2401de0029 (ignoring whitespace)

Files changed:

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

@@ -0,1 +0,148 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// Paginator for [`DescribeOpsItems`](crate::operation::describe_ops_items::DescribeOpsItems)
           3  +
pub struct DescribeOpsItemsPaginator {
           4  +
    handle: std::sync::Arc<crate::client::Handle>,
           5  +
    builder: crate::operation::describe_ops_items::builders::DescribeOpsItemsInputBuilder,
           6  +
    stop_on_duplicate_token: bool,
           7  +
}
           8  +
           9  +
impl DescribeOpsItemsPaginator {
          10  +
    /// Create a new paginator-wrapper
          11  +
    pub(crate) fn new(
          12  +
        handle: std::sync::Arc<crate::client::Handle>,
          13  +
        builder: crate::operation::describe_ops_items::builders::DescribeOpsItemsInputBuilder,
          14  +
    ) -> Self {
          15  +
        Self {
          16  +
            handle,
          17  +
            builder,
          18  +
            stop_on_duplicate_token: true,
          19  +
        }
          20  +
    }
          21  +
          22  +
    /// Set the page size
          23  +
    ///
          24  +
    /// _Note: this method will override any previously set value for `max_results`_
          25  +
    pub fn page_size(mut self, limit: i32) -> Self {
          26  +
        self.builder.max_results = ::std::option::Option::Some(limit);
          27  +
        self
          28  +
    }
          29  +
          30  +
    /// Create a flattened paginator
          31  +
    ///
          32  +
    /// This paginator automatically flattens results using `ops_item_summaries`. Queries to the underlying service
          33  +
    /// are dispatched lazily.
          34  +
    pub fn items(self) -> crate::operation::describe_ops_items::paginator::DescribeOpsItemsPaginatorItems {
          35  +
        crate::operation::describe_ops_items::paginator::DescribeOpsItemsPaginatorItems(self)
          36  +
    }
          37  +
          38  +
    /// Stop paginating when the service returns the same pagination token twice in a row.
          39  +
    ///
          40  +
    /// Defaults to true.
          41  +
    ///
          42  +
    /// For certain operations, it may be useful to continue on duplicate token. For example,
          43  +
    /// if an operation is for tailing a log file in real-time, then continuing may be desired.
          44  +
    /// This option can be set to `false` to accommodate these use cases.
          45  +
    pub fn stop_on_duplicate_token(mut self, stop_on_duplicate_token: bool) -> Self {
          46  +
        self.stop_on_duplicate_token = stop_on_duplicate_token;
          47  +
        self
          48  +
    }
          49  +
          50  +
    /// Create the pagination stream
          51  +
    ///
          52  +
    /// _Note:_ No requests will be dispatched until the stream is used
          53  +
    /// (e.g. with the [`.next().await`](aws_smithy_async::future::pagination_stream::PaginationStream::next) method).
          54  +
    pub fn send(
          55  +
        self,
          56  +
    ) -> ::aws_smithy_async::future::pagination_stream::PaginationStream<
          57  +
        ::std::result::Result<
          58  +
            crate::operation::describe_ops_items::DescribeOpsItemsOutput,
          59  +
            ::aws_smithy_runtime_api::client::result::SdkError<
          60  +
                crate::operation::describe_ops_items::DescribeOpsItemsError,
          61  +
                ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          62  +
            >,
          63  +
        >,
          64  +
    > {
          65  +
        // Move individual fields out of self for the borrow checker
          66  +
        let builder = self.builder;
          67  +
        let handle = self.handle;
          68  +
        let runtime_plugins = crate::operation::describe_ops_items::DescribeOpsItems::operation_runtime_plugins(
          69  +
            handle.runtime_plugins.clone(),
          70  +
            &handle.conf,
          71  +
            ::std::option::Option::None,
          72  +
        )
          73  +
        .with_operation_plugin(crate::sdk_feature_tracker::paginator::PaginatorFeatureTrackerRuntimePlugin::new());
          74  +
        ::aws_smithy_async::future::pagination_stream::PaginationStream::new(::aws_smithy_async::future::pagination_stream::fn_stream::FnStream::new(
          75  +
            move |tx| {
          76  +
                ::std::boxed::Box::pin(async move {
          77  +
                    // Build the input for the first time. If required fields are missing, this is where we'll produce an early error.
          78  +
                    let mut input = match builder
          79  +
                        .build()
          80  +
                        .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)
          81  +
                    {
          82  +
                        ::std::result::Result::Ok(input) => input,
          83  +
                        ::std::result::Result::Err(e) => {
          84  +
                            let _ = tx.send(::std::result::Result::Err(e)).await;
          85  +
                            return;
          86  +
                        }
          87  +
                    };
          88  +
                    loop {
          89  +
                        let resp = crate::operation::describe_ops_items::DescribeOpsItems::orchestrate(&runtime_plugins, input.clone()).await;
          90  +
                        // If the input member is None or it was an error
          91  +
                        let done = match resp {
          92  +
                            ::std::result::Result::Ok(ref resp) => {
          93  +
                                let new_token = crate::lens::reflens_describe_ops_items_output_output_next_token(resp);
          94  +
                                // Pagination is exhausted when the next token is an empty string
          95  +
                                let is_empty = new_token.map(|token| token.is_empty()).unwrap_or(true);
          96  +
                                if !is_empty && new_token == input.next_token.as_ref() && self.stop_on_duplicate_token {
          97  +
                                    true
          98  +
                                } else {
          99  +
                                    input.next_token = new_token.cloned();
         100  +
                                    is_empty
         101  +
                                }
         102  +
                            }
         103  +
                            ::std::result::Result::Err(_) => true,
         104  +
                        };
         105  +
                        if tx.send(resp).await.is_err() {
         106  +
                            // receiving end was dropped
         107  +
                            return;
         108  +
                        }
         109  +
                        if done {
         110  +
                            return;
         111  +
                        }
         112  +
                    }
         113  +
                })
         114  +
            },
         115  +
        ))
         116  +
    }
         117  +
}
         118  +
         119  +
/// Flattened paginator for `DescribeOpsItemsPaginator`
         120  +
///
         121  +
/// This is created with [`.items()`](DescribeOpsItemsPaginator::items)
         122  +
pub struct DescribeOpsItemsPaginatorItems(DescribeOpsItemsPaginator);
         123  +
         124  +
impl DescribeOpsItemsPaginatorItems {
         125  +
    /// Create the pagination stream
         126  +
    ///
         127  +
    /// _Note_: No requests will be dispatched until the stream is used
         128  +
    /// (e.g. with the [`.next().await`](aws_smithy_async::future::pagination_stream::PaginationStream::next) method).
         129  +
    ///
         130  +
    /// To read the entirety of the paginator, use [`.collect::<Result<Vec<_>, _>()`](aws_smithy_async::future::pagination_stream::PaginationStream::collect).
         131  +
    pub fn send(
         132  +
        self,
         133  +
    ) -> ::aws_smithy_async::future::pagination_stream::PaginationStream<
         134  +
        ::std::result::Result<
         135  +
            crate::types::OpsItemSummary,
         136  +
            ::aws_smithy_runtime_api::client::result::SdkError<
         137  +
                crate::operation::describe_ops_items::DescribeOpsItemsError,
         138  +
                ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         139  +
            >,
         140  +
        >,
         141  +
    > {
         142  +
        ::aws_smithy_async::future::pagination_stream::TryFlatMap::new(self.0.send()).flat_map(|page| {
         143  +
            crate::lens::lens_describe_ops_items_output_output_ops_item_summaries(page)
         144  +
                .unwrap_or_default()
         145  +
                .into_iter()
         146  +
        })
         147  +
    }
         148  +
}

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

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

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

@@ -0,1 +0,386 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(missing_docs)] // documentation missing in model
           3  +
#[non_exhaustive]
           4  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           5  +
pub struct DescribeParametersInput {
           6  +
    /// <p>This data type is deprecated. Instead, use <code>ParameterFilters</code>.</p>
           7  +
    pub filters: ::std::option::Option<::std::vec::Vec<crate::types::ParametersFilter>>,
           8  +
    /// <p>Filters to limit the request results.</p>
           9  +
    pub parameter_filters: ::std::option::Option<::std::vec::Vec<crate::types::ParameterStringFilter>>,
          10  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
          11  +
    pub max_results: ::std::option::Option<i32>,
          12  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
          13  +
    pub next_token: ::std::option::Option<::std::string::String>,
          14  +
    /// <p>Lists parameters that are shared with you.</p><note>
          15  +
    /// <p>By default when using this option, the command returns parameters that have been shared using a standard Resource Access Manager Resource Share. In order for a parameter that was shared using the <code>PutResourcePolicy</code> command to be returned, the associated <code>RAM Resource Share Created From Policy</code> must have been promoted to a standard Resource Share using the RAM <a href="https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html">PromoteResourceShareCreatedFromPolicy</a> API operation.</p>
          16  +
    /// <p>For more information about sharing parameters, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-shared-parameters.html">Working with shared parameters</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
          17  +
    /// </note>
          18  +
    pub shared: ::std::option::Option<bool>,
          19  +
}
          20  +
impl DescribeParametersInput {
          21  +
    /// <p>This data type is deprecated. Instead, use <code>ParameterFilters</code>.</p>
          22  +
    ///
          23  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.filters.is_none()`.
          24  +
    pub fn filters(&self) -> &[crate::types::ParametersFilter] {
          25  +
        self.filters.as_deref().unwrap_or_default()
          26  +
    }
          27  +
    /// <p>Filters to limit the request results.</p>
          28  +
    ///
          29  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.parameter_filters.is_none()`.
          30  +
    pub fn parameter_filters(&self) -> &[crate::types::ParameterStringFilter] {
          31  +
        self.parameter_filters.as_deref().unwrap_or_default()
          32  +
    }
          33  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
          34  +
    pub fn max_results(&self) -> ::std::option::Option<i32> {
          35  +
        self.max_results
          36  +
    }
          37  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
          38  +
    pub fn next_token(&self) -> ::std::option::Option<&str> {
          39  +
        self.next_token.as_deref()
          40  +
    }
          41  +
    /// <p>Lists parameters that are shared with you.</p><note>
          42  +
    /// <p>By default when using this option, the command returns parameters that have been shared using a standard Resource Access Manager Resource Share. In order for a parameter that was shared using the <code>PutResourcePolicy</code> command to be returned, the associated <code>RAM Resource Share Created From Policy</code> must have been promoted to a standard Resource Share using the RAM <a href="https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html">PromoteResourceShareCreatedFromPolicy</a> API operation.</p>
          43  +
    /// <p>For more information about sharing parameters, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-shared-parameters.html">Working with shared parameters</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
          44  +
    /// </note>
          45  +
    pub fn shared(&self) -> ::std::option::Option<bool> {
          46  +
        self.shared
          47  +
    }
          48  +
}
          49  +
static DESCRIBEPARAMETERSINPUT_MEMBER_FILTERS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          50  +
    ::aws_smithy_schema::ShapeId::from_parts(
          51  +
        "com.amazonaws.ssm#ParametersFilterList$member",
          52  +
        "com.amazonaws.ssm",
          53  +
        "ParametersFilterList",
          54  +
    ),
          55  +
    ::aws_smithy_schema::ShapeType::Structure,
          56  +
    "member",
          57  +
    0,
          58  +
);
          59  +
static DESCRIBEPARAMETERSINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          60  +
    ::aws_smithy_schema::ShapeId::from_parts(
          61  +
        "com.amazonaws.ssm.synthetic#DescribeParametersInput$Filters",
          62  +
        "com.amazonaws.ssm.synthetic",
          63  +
        "DescribeParametersInput",
          64  +
    ),
          65  +
    ::aws_smithy_schema::ShapeType::List,
          66  +
    "Filters",
          67  +
    0,
          68  +
)
          69  +
.with_list_member(&DESCRIBEPARAMETERSINPUT_MEMBER_FILTERS_MEMBER);
          70  +
static DESCRIBEPARAMETERSINPUT_MEMBER_PARAMETER_FILTERS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          71  +
    ::aws_smithy_schema::ShapeId::from_parts(
          72  +
        "com.amazonaws.ssm#ParameterStringFilterList$member",
          73  +
        "com.amazonaws.ssm",
          74  +
        "ParameterStringFilterList",
          75  +
    ),
          76  +
    ::aws_smithy_schema::ShapeType::Structure,
          77  +
    "member",
          78  +
    0,
          79  +
);
          80  +
static DESCRIBEPARAMETERSINPUT_MEMBER_PARAMETER_FILTERS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          81  +
    ::aws_smithy_schema::ShapeId::from_parts(
          82  +
        "com.amazonaws.ssm.synthetic#DescribeParametersInput$ParameterFilters",
          83  +
        "com.amazonaws.ssm.synthetic",
          84  +
        "DescribeParametersInput",
          85  +
    ),
          86  +
    ::aws_smithy_schema::ShapeType::List,
          87  +
    "ParameterFilters",
          88  +
    1,
          89  +
)
          90  +
.with_list_member(&DESCRIBEPARAMETERSINPUT_MEMBER_PARAMETER_FILTERS_MEMBER);
          91  +
static DESCRIBEPARAMETERSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          92  +
    ::aws_smithy_schema::ShapeId::from_parts(
          93  +
        "com.amazonaws.ssm.synthetic#DescribeParametersInput$MaxResults",
          94  +
        "com.amazonaws.ssm.synthetic",
          95  +
        "DescribeParametersInput",
          96  +
    ),
          97  +
    ::aws_smithy_schema::ShapeType::Integer,
          98  +
    "MaxResults",
          99  +
    2,
         100  +
);
         101  +
static DESCRIBEPARAMETERSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         102  +
    ::aws_smithy_schema::ShapeId::from_parts(
         103  +
        "com.amazonaws.ssm.synthetic#DescribeParametersInput$NextToken",
         104  +
        "com.amazonaws.ssm.synthetic",
         105  +
        "DescribeParametersInput",
         106  +
    ),
         107  +
    ::aws_smithy_schema::ShapeType::String,
         108  +
    "NextToken",
         109  +
    3,
         110  +
);
         111  +
static DESCRIBEPARAMETERSINPUT_MEMBER_SHARED: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         112  +
    ::aws_smithy_schema::ShapeId::from_parts(
         113  +
        "com.amazonaws.ssm.synthetic#DescribeParametersInput$Shared",
         114  +
        "com.amazonaws.ssm.synthetic",
         115  +
        "DescribeParametersInput",
         116  +
    ),
         117  +
    ::aws_smithy_schema::ShapeType::Boolean,
         118  +
    "Shared",
         119  +
    4,
         120  +
);
         121  +
static DESCRIBEPARAMETERSINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
         122  +
    ::aws_smithy_schema::ShapeId::from_parts(
         123  +
        "com.amazonaws.ssm.synthetic#DescribeParametersInput",
         124  +
        "com.amazonaws.ssm.synthetic",
         125  +
        "DescribeParametersInput",
         126  +
    ),
         127  +
    ::aws_smithy_schema::ShapeType::Structure,
         128  +
    &[
         129  +
        &DESCRIBEPARAMETERSINPUT_MEMBER_FILTERS,
         130  +
        &DESCRIBEPARAMETERSINPUT_MEMBER_PARAMETER_FILTERS,
         131  +
        &DESCRIBEPARAMETERSINPUT_MEMBER_MAX_RESULTS,
         132  +
        &DESCRIBEPARAMETERSINPUT_MEMBER_NEXT_TOKEN,
         133  +
        &DESCRIBEPARAMETERSINPUT_MEMBER_SHARED,
         134  +
    ],
         135  +
)
         136  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
         137  +
.with_original_name("DescribeParametersRequest");
         138  +
impl DescribeParametersInput {
         139  +
    /// The schema for this shape.
         140  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DESCRIBEPARAMETERSINPUT_SCHEMA;
         141  +
}
         142  +
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeParametersInput {
         143  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         144  +
    fn serialize_members(
         145  +
        &self,
         146  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         147  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         148  +
        if let Some(ref val) = self.filters {
         149  +
            ser.write_list(
         150  +
                &DESCRIBEPARAMETERSINPUT_MEMBER_FILTERS,
         151  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         152  +
                    for item in val {
         153  +
                        ser.write_struct(crate::types::ParametersFilter::SCHEMA, item)?;
         154  +
                    }
         155  +
                    Ok(())
         156  +
                },
         157  +
            )?;
         158  +
        }
         159  +
        if let Some(ref val) = self.parameter_filters {
         160  +
            ser.write_list(
         161  +
                &DESCRIBEPARAMETERSINPUT_MEMBER_PARAMETER_FILTERS,
         162  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         163  +
                    for item in val {
         164  +
                        ser.write_struct(crate::types::ParameterStringFilter::SCHEMA, item)?;
         165  +
                    }
         166  +
                    Ok(())
         167  +
                },
         168  +
            )?;
         169  +
        }
         170  +
        if let Some(ref val) = self.max_results {
         171  +
            ser.write_integer(&DESCRIBEPARAMETERSINPUT_MEMBER_MAX_RESULTS, *val)?;
         172  +
        }
         173  +
        if let Some(ref val) = self.next_token {
         174  +
            ser.write_string(&DESCRIBEPARAMETERSINPUT_MEMBER_NEXT_TOKEN, val)?;
         175  +
        }
         176  +
        if let Some(ref val) = self.shared {
         177  +
            ser.write_boolean(&DESCRIBEPARAMETERSINPUT_MEMBER_SHARED, *val)?;
         178  +
        }
         179  +
        Ok(())
         180  +
    }
         181  +
}
         182  +
impl DescribeParametersInput {
         183  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         184  +
    pub fn deserialize(
         185  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         186  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         187  +
        #[allow(unused_variables, unused_mut)]
         188  +
        let mut builder = Self::builder();
         189  +
        #[allow(
         190  +
            unused_variables,
         191  +
            unreachable_code,
         192  +
            clippy::single_match,
         193  +
            clippy::match_single_binding,
         194  +
            clippy::diverging_sub_expression
         195  +
        )]
         196  +
        deserializer.read_struct(&DESCRIBEPARAMETERSINPUT_SCHEMA, &mut |member, deser| {
         197  +
            match member.member_index() {
         198  +
                Some(0) => {
         199  +
                    if deser.is_null() {
         200  +
                        deser.read_null()?;
         201  +
                    } else {
         202  +
                        builder.filters = Some({
         203  +
                            let mut container = Vec::new();
         204  +
                            deser.read_list(member, &mut |deser| {
         205  +
                                container.push(crate::types::ParametersFilter::deserialize(deser)?);
         206  +
                                Ok(())
         207  +
                            })?;
         208  +
                            container
         209  +
                        });
         210  +
                    }
         211  +
                }
         212  +
                Some(1) => {
         213  +
                    if deser.is_null() {
         214  +
                        deser.read_null()?;
         215  +
                    } else {
         216  +
                        builder.parameter_filters = Some({
         217  +
                            let mut container = Vec::new();
         218  +
                            deser.read_list(member, &mut |deser| {
         219  +
                                container.push(crate::types::ParameterStringFilter::deserialize(deser)?);
         220  +
                                Ok(())
         221  +
                            })?;
         222  +
                            container
         223  +
                        });
         224  +
                    }
         225  +
                }
         226  +
                Some(2) => {
         227  +
                    if deser.is_null() {
         228  +
                        deser.read_null()?;
         229  +
                    } else {
         230  +
                        builder.max_results = Some(deser.read_integer(member)?);
         231  +
                    }
         232  +
                }
         233  +
                Some(3) => {
         234  +
                    if deser.is_null() {
         235  +
                        deser.read_null()?;
         236  +
                    } else {
         237  +
                        builder.next_token = Some(deser.read_string(member)?);
         238  +
                    }
         239  +
                }
         240  +
                Some(4) => {
         241  +
                    if deser.is_null() {
         242  +
                        deser.read_null()?;
         243  +
                    } else {
         244  +
                        builder.shared = Some(deser.read_boolean(member)?);
         245  +
                    }
         246  +
                }
         247  +
                _ => {}
         248  +
            }
         249  +
            Ok(())
         250  +
        })?;
         251  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         252  +
    }
         253  +
}
         254  +
impl DescribeParametersInput {
         255  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         256  +
    pub fn deserialize_with_response(
         257  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         258  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         259  +
        _status: u16,
         260  +
        _body: &[u8],
         261  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         262  +
        Self::deserialize(deserializer)
         263  +
    }
         264  +
}
         265  +
impl DescribeParametersInput {
         266  +
    /// Creates a new builder-style object to manufacture [`DescribeParametersInput`](crate::operation::describe_parameters::DescribeParametersInput).
         267  +
    pub fn builder() -> crate::operation::describe_parameters::builders::DescribeParametersInputBuilder {
         268  +
        crate::operation::describe_parameters::builders::DescribeParametersInputBuilder::default()
         269  +
    }
         270  +
}
         271  +
         272  +
/// A builder for [`DescribeParametersInput`](crate::operation::describe_parameters::DescribeParametersInput).
         273  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         274  +
#[non_exhaustive]
         275  +
pub struct DescribeParametersInputBuilder {
         276  +
    pub(crate) filters: ::std::option::Option<::std::vec::Vec<crate::types::ParametersFilter>>,
         277  +
    pub(crate) parameter_filters: ::std::option::Option<::std::vec::Vec<crate::types::ParameterStringFilter>>,
         278  +
    pub(crate) max_results: ::std::option::Option<i32>,
         279  +
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
         280  +
    pub(crate) shared: ::std::option::Option<bool>,
         281  +
}
         282  +
impl DescribeParametersInputBuilder {
         283  +
    /// Appends an item to `filters`.
         284  +
    ///
         285  +
    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
         286  +
    ///
         287  +
    /// <p>This data type is deprecated. Instead, use <code>ParameterFilters</code>.</p>
         288  +
    pub fn filters(mut self, input: crate::types::ParametersFilter) -> Self {
         289  +
        let mut v = self.filters.unwrap_or_default();
         290  +
        v.push(input);
         291  +
        self.filters = ::std::option::Option::Some(v);
         292  +
        self
         293  +
    }
         294  +
    /// <p>This data type is deprecated. Instead, use <code>ParameterFilters</code>.</p>
         295  +
    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ParametersFilter>>) -> Self {
         296  +
        self.filters = input;
         297  +
        self
         298  +
    }
         299  +
    /// <p>This data type is deprecated. Instead, use <code>ParameterFilters</code>.</p>
         300  +
    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ParametersFilter>> {
         301  +
        &self.filters
         302  +
    }
         303  +
    /// Appends an item to `parameter_filters`.
         304  +
    ///
         305  +
    /// To override the contents of this collection use [`set_parameter_filters`](Self::set_parameter_filters).
         306  +
    ///
         307  +
    /// <p>Filters to limit the request results.</p>
         308  +
    pub fn parameter_filters(mut self, input: crate::types::ParameterStringFilter) -> Self {
         309  +
        let mut v = self.parameter_filters.unwrap_or_default();
         310  +
        v.push(input);
         311  +
        self.parameter_filters = ::std::option::Option::Some(v);
         312  +
        self
         313  +
    }
         314  +
    /// <p>Filters to limit the request results.</p>
         315  +
    pub fn set_parameter_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ParameterStringFilter>>) -> Self {
         316  +
        self.parameter_filters = input;
         317  +
        self
         318  +
    }
         319  +
    /// <p>Filters to limit the request results.</p>
         320  +
    pub fn get_parameter_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ParameterStringFilter>> {
         321  +
        &self.parameter_filters
         322  +
    }
         323  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         324  +
    pub fn max_results(mut self, input: i32) -> Self {
         325  +
        self.max_results = ::std::option::Option::Some(input);
         326  +
        self
         327  +
    }
         328  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         329  +
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         330  +
        self.max_results = input;
         331  +
        self
         332  +
    }
         333  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         334  +
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         335  +
        &self.max_results
         336  +
    }
         337  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         338  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         339  +
        self.next_token = ::std::option::Option::Some(input.into());
         340  +
        self
         341  +
    }
         342  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         343  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         344  +
        self.next_token = input;
         345  +
        self
         346  +
    }
         347  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         348  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         349  +
        &self.next_token
         350  +
    }
         351  +
    /// <p>Lists parameters that are shared with you.</p><note>
         352  +
    /// <p>By default when using this option, the command returns parameters that have been shared using a standard Resource Access Manager Resource Share. In order for a parameter that was shared using the <code>PutResourcePolicy</code> command to be returned, the associated <code>RAM Resource Share Created From Policy</code> must have been promoted to a standard Resource Share using the RAM <a href="https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html">PromoteResourceShareCreatedFromPolicy</a> API operation.</p>
         353  +
    /// <p>For more information about sharing parameters, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-shared-parameters.html">Working with shared parameters</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         354  +
    /// </note>
         355  +
    pub fn shared(mut self, input: bool) -> Self {
         356  +
        self.shared = ::std::option::Option::Some(input);
         357  +
        self
         358  +
    }
         359  +
    /// <p>Lists parameters that are shared with you.</p><note>
         360  +
    /// <p>By default when using this option, the command returns parameters that have been shared using a standard Resource Access Manager Resource Share. In order for a parameter that was shared using the <code>PutResourcePolicy</code> command to be returned, the associated <code>RAM Resource Share Created From Policy</code> must have been promoted to a standard Resource Share using the RAM <a href="https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html">PromoteResourceShareCreatedFromPolicy</a> API operation.</p>
         361  +
    /// <p>For more information about sharing parameters, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-shared-parameters.html">Working with shared parameters</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         362  +
    /// </note>
         363  +
    pub fn set_shared(mut self, input: ::std::option::Option<bool>) -> Self {
         364  +
        self.shared = input;
         365  +
        self
         366  +
    }
         367  +
    /// <p>Lists parameters that are shared with you.</p><note>
         368  +
    /// <p>By default when using this option, the command returns parameters that have been shared using a standard Resource Access Manager Resource Share. In order for a parameter that was shared using the <code>PutResourcePolicy</code> command to be returned, the associated <code>RAM Resource Share Created From Policy</code> must have been promoted to a standard Resource Share using the RAM <a href="https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html">PromoteResourceShareCreatedFromPolicy</a> API operation.</p>
         369  +
    /// <p>For more information about sharing parameters, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-shared-parameters.html">Working with shared parameters</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
         370  +
    /// </note>
         371  +
    pub fn get_shared(&self) -> &::std::option::Option<bool> {
         372  +
        &self.shared
         373  +
    }
         374  +
    /// Consumes the builder and constructs a [`DescribeParametersInput`](crate::operation::describe_parameters::DescribeParametersInput).
         375  +
    pub fn build(
         376  +
        self,
         377  +
    ) -> ::std::result::Result<crate::operation::describe_parameters::DescribeParametersInput, ::aws_smithy_types::error::operation::BuildError> {
         378  +
        ::std::result::Result::Ok(crate::operation::describe_parameters::DescribeParametersInput {
         379  +
            filters: self.filters,
         380  +
            parameter_filters: self.parameter_filters,
         381  +
            max_results: self.max_results,
         382  +
            next_token: self.next_token,
         383  +
            shared: self.shared,
         384  +
        })
         385  +
    }
         386  +
}