Skip to main content

aws_sdk_cloudfront/operation/
update_distribution.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `UpdateDistribution`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct UpdateDistribution;
6impl UpdateDistribution {
7    /// Creates a new `UpdateDistribution`
8    pub fn new() -> Self {
9        Self
10    }
11    pub(crate) async fn orchestrate(
12        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
13        input: crate::operation::update_distribution::UpdateDistributionInput,
14    ) -> ::std::result::Result<
15        crate::operation::update_distribution::UpdateDistributionOutput,
16        ::aws_smithy_runtime_api::client::result::SdkError<
17            crate::operation::update_distribution::UpdateDistributionError,
18            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
19        >,
20    > {
21        let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
22            ::aws_smithy_runtime_api::client::interceptors::context::Error,
23            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
24        >| {
25            err.map_service_error(|err| {
26                err.downcast::<crate::operation::update_distribution::UpdateDistributionError>()
27                    .expect("correct error type")
28            })
29        };
30        let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
31            .await
32            .map_err(map_err)?;
33        let output = context.finalize().map_err(map_err)?;
34        ::std::result::Result::Ok(
35            output
36                .downcast::<crate::operation::update_distribution::UpdateDistributionOutput>()
37                .expect("correct output type"),
38        )
39    }
40
41    pub(crate) async fn orchestrate_with_stop_point(
42        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
43        input: crate::operation::update_distribution::UpdateDistributionInput,
44        stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
45    ) -> ::std::result::Result<
46        ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
47        ::aws_smithy_runtime_api::client::result::SdkError<
48            ::aws_smithy_runtime_api::client::interceptors::context::Error,
49            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
50        >,
51    > {
52        let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
53        use ::tracing::Instrument;
54        ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("CloudFront", "UpdateDistribution", input, runtime_plugins, stop_point)
55            // Create a parent span for the entire operation. Includes a random, internal-only,
56            // seven-digit ID for the operation orchestration so that it can be correlated in the logs.
57            .instrument(::tracing::debug_span!(
58                "CloudFront.UpdateDistribution",
59                "rpc.service" = "CloudFront",
60                "rpc.method" = "UpdateDistribution",
61                "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
62                "rpc.system" = "aws-api",
63            ))
64            .await
65    }
66
67    pub(crate) fn operation_runtime_plugins(
68        client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
69        client_config: &crate::config::Config,
70        config_override: ::std::option::Option<crate::config::Builder>,
71    ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
72        let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
73
74        if let ::std::option::Option::Some(config_override) = config_override {
75            for plugin in config_override.runtime_plugins.iter().cloned() {
76                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
77            }
78            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
79                config_override,
80                client_config.config.clone(),
81                &client_config.runtime_components,
82            ));
83        }
84        runtime_plugins
85    }
86}
87impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for UpdateDistribution {
88    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
89        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("UpdateDistribution");
90
91        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
92            UpdateDistributionRequestSerializer,
93        ));
94        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
95            UpdateDistributionResponseDeserializer,
96        ));
97
98        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
99            crate::config::auth::Params::builder()
100                .operation_name("UpdateDistribution")
101                .build()
102                .expect("required fields set"),
103        ));
104
105        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::SensitiveOutput);
106        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
107            "UpdateDistribution",
108            "CloudFront",
109        ));
110        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
111        signing_options.double_uri_encode = true;
112        signing_options.content_sha256_header = false;
113        signing_options.normalize_uri_path = true;
114        signing_options.payload_override = None;
115
116        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
117            signing_options,
118            ..::std::default::Default::default()
119        });
120
121        ::std::option::Option::Some(cfg.freeze())
122    }
123
124    fn runtime_components(
125        &self,
126        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
127    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
128        #[allow(unused_mut)]
129        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("UpdateDistribution")
130            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
131                UpdateDistributionTelemetryInputCaptureInterceptor,
132            ))
133            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
134                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
135            ))
136            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
137                UpdateDistributionEndpointParamsInterceptor,
138            ))
139            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
140                crate::operation::update_distribution::UpdateDistributionError,
141            >::new())
142            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
143                crate::operation::update_distribution::UpdateDistributionError,
144            >::new())
145            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
146                crate::operation::update_distribution::UpdateDistributionError,
147            >::new());
148
149        ::std::borrow::Cow::Owned(rcb)
150    }
151}
152
153#[derive(Debug)]
154struct UpdateDistributionTelemetryInputCaptureInterceptor;
155
156#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
157impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateDistributionTelemetryInputCaptureInterceptor {
158    fn name(&self) -> &'static str {
159        "UpdateDistributionTelemetryInputCaptureInterceptor"
160    }
161
162    fn read_before_execution(
163        &self,
164        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
165            '_,
166            ::aws_smithy_runtime_api::client::interceptors::context::Input,
167            ::aws_smithy_runtime_api::client::interceptors::context::Output,
168            ::aws_smithy_runtime_api::client::interceptors::context::Error,
169        >,
170        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
171    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
172        // Nothing to do unless the customer opted in by naming members to record.
173        let ::std::option::Option::Some(requested) = cfg
174            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
175            .filter(|r| !r.is_empty())
176        else {
177            return ::std::result::Result::Ok(());
178        };
179
180        let ::std::option::Option::Some(input) = context.input().downcast_ref::<UpdateDistributionInput>() else {
181            // A mismatched input is not this interceptor's concern; skip quietly.
182            return ::std::result::Result::Ok(());
183        };
184
185        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
186        if requested.should_capture("Id") {
187            if let ::std::option::Option::Some(value) = input.id.as_deref() {
188                captured.insert("Id", value);
189            }
190        }
191        if requested.should_capture("IfMatch") {
192            if let ::std::option::Option::Some(value) = input.if_match.as_deref() {
193                captured.insert("IfMatch", value);
194            }
195        }
196
197        cfg.interceptor_state().store_put(captured);
198        ::std::result::Result::Ok(())
199    }
200}
201#[derive(Debug)]
202struct UpdateDistributionResponseDeserializer;
203impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateDistributionResponseDeserializer {
204    fn deserialize_nonstreaming_with_config(
205        &self,
206        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
207        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
208    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
209        let (success, status) = (response.status().is_success(), response.status().as_u16());
210        let headers = response.headers();
211        let body = response.body().bytes().expect("body loaded");
212        #[allow(unused_mut)]
213        let mut force_error = false;
214        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
215        let parse_result = if !success && status != 200 || force_error {
216            crate::protocol_serde::shape_update_distribution::de_update_distribution_http_error(status, headers, body)
217        } else {
218            crate::protocol_serde::shape_update_distribution::de_update_distribution_http_response(status, headers, body)
219        };
220        crate::protocol_serde::type_erase_result(parse_result)
221    }
222}
223#[derive(Debug)]
224struct UpdateDistributionRequestSerializer;
225impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateDistributionRequestSerializer {
226    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
227    fn serialize_input(
228        &self,
229        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
230        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
231    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
232        let input = input
233            .downcast::<crate::operation::update_distribution::UpdateDistributionInput>()
234            .expect("correct type");
235        let _header_serialization_settings = _cfg
236            .load::<crate::serialization_settings::HeaderSerializationSettings>()
237            .cloned()
238            .unwrap_or_default();
239        let mut request_builder = {
240            #[allow(clippy::uninlined_format_args)]
241            fn uri_base(
242                _input: &crate::operation::update_distribution::UpdateDistributionInput,
243                output: &mut ::std::string::String,
244            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
245                use ::std::fmt::Write as _;
246                let input_1 = &_input.id;
247                let input_1 = input_1
248                    .as_ref()
249                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("id", "cannot be empty or unset"))?;
250                let id = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
251                if id.is_empty() {
252                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
253                        "id",
254                        "cannot be empty or unset",
255                    ));
256                }
257                ::std::write!(output, "/2020-05-31/distribution/{Id}/config", Id = id).expect("formatting should succeed");
258                ::std::result::Result::Ok(())
259            }
260            #[allow(clippy::unnecessary_wraps)]
261            fn update_http_builder(
262                input: &crate::operation::update_distribution::UpdateDistributionInput,
263                builder: ::http_1x::request::Builder,
264            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
265                let mut uri = ::std::string::String::new();
266                uri_base(input, &mut uri)?;
267                let builder = crate::protocol_serde::shape_update_distribution::ser_update_distribution_headers(input, builder)?;
268                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
269            }
270            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
271            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/xml");
272            builder
273        };
274        let body = ::aws_smithy_types::body::SdkBody::from(
275            crate::protocol_serde::shape_update_distribution_input::ser_distribution_config_http_payload(&input.distribution_config)?,
276        );
277        if let Some(content_length) = body.content_length() {
278            let content_length = content_length.to_string();
279            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
280        }
281        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
282    }
283}
284#[derive(Debug)]
285struct UpdateDistributionEndpointParamsInterceptor;
286
287#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
288impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateDistributionEndpointParamsInterceptor {
289    fn name(&self) -> &'static str {
290        "UpdateDistributionEndpointParamsInterceptor"
291    }
292
293    fn read_before_execution(
294        &self,
295        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
296            '_,
297            ::aws_smithy_runtime_api::client::interceptors::context::Input,
298            ::aws_smithy_runtime_api::client::interceptors::context::Output,
299            ::aws_smithy_runtime_api::client::interceptors::context::Error,
300        >,
301        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
302    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
303        let _input = context
304            .input()
305            .downcast_ref::<UpdateDistributionInput>()
306            .ok_or("failed to downcast to UpdateDistributionInput")?;
307
308        let params = crate::config::endpoint::Params::builder()
309            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
310            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
311            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
312            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
313            .build()
314            .map_err(|err| {
315                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
316            })?;
317        cfg.interceptor_state()
318            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
319        ::std::result::Result::Ok(())
320    }
321}
322
323// The get_* functions below are generated from JMESPath expressions in the
324// operationContextParams trait. They target the operation's input shape.
325
326/// Error type for the `UpdateDistributionError` operation.
327#[non_exhaustive]
328#[derive(::std::fmt::Debug)]
329pub enum UpdateDistributionError {
330    /// <p>Access denied.</p>
331    AccessDenied(crate::types::error::AccessDenied),
332    /// <p>The CNAME specified is already defined for CloudFront.</p>
333    CnameAlreadyExists(crate::types::error::CnameAlreadyExists),
334    /// <p>You cannot delete a continuous deployment policy that is associated with a primary distribution.</p>
335    ContinuousDeploymentPolicyInUse(crate::types::error::ContinuousDeploymentPolicyInUse),
336    /// <p>The entity was not found.</p>
337    EntityNotFound(crate::types::error::EntityNotFound),
338    /// <p>The specified configuration for field-level encryption can't be associated with the specified cache behavior.</p>
339    IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(crate::types::error::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior),
340    /// <p>An origin cannot contain both an origin access control (OAC) and an origin access identity (OAI).</p>
341    IllegalOriginAccessConfiguration(crate::types::error::IllegalOriginAccessConfiguration),
342    /// <p>The update contains modifications that are not allowed.</p>
343    IllegalUpdate(crate::types::error::IllegalUpdate),
344    /// <p>The value of <code>Quantity</code> and the size of <code>Items</code> don't match.</p>
345    InconsistentQuantities(crate::types::error::InconsistentQuantities),
346    /// <p>An argument is invalid.</p>
347    InvalidArgument(crate::types::error::InvalidArgument),
348    /// <p>The default root object file name is too big or contains an invalid character.</p>
349    InvalidDefaultRootObject(crate::types::error::InvalidDefaultRootObject),
350    /// <p>An origin access control is associated with an origin whose domain name is not supported.</p>
351    InvalidDomainNameForOriginAccessControl(crate::types::error::InvalidDomainNameForOriginAccessControl),
352    /// <p>An invalid error code was specified.</p>
353    InvalidErrorCode(crate::types::error::InvalidErrorCode),
354    /// <p>Your request contains forward cookies option which doesn't match with the expectation for the <code>whitelisted</code> list of cookie names. Either list of cookie names has been specified when not allowed or list of cookie names is missing when expected.</p>
355    InvalidForwardCookies(crate::types::error::InvalidForwardCookies),
356    /// <p>A CloudFront function association is invalid.</p>
357    InvalidFunctionAssociation(crate::types::error::InvalidFunctionAssociation),
358    /// <p>The specified geo restriction parameter is not valid.</p>
359    InvalidGeoRestrictionParameter(crate::types::error::InvalidGeoRestrictionParameter),
360    /// <p>The headers specified are not valid for an Amazon S3 origin.</p>
361    InvalidHeadersForS3Origin(crate::types::error::InvalidHeadersForS3Origin),
362    /// <p>The <code>If-Match</code> version is missing or not valid.</p>
363    InvalidIfMatchVersion(crate::types::error::InvalidIfMatchVersion),
364    /// <p>The specified Lambda@Edge function association is invalid.</p>
365    InvalidLambdaFunctionAssociation(crate::types::error::InvalidLambdaFunctionAssociation),
366    /// <p>The location code specified is not valid.</p>
367    InvalidLocationCode(crate::types::error::InvalidLocationCode),
368    /// <p>The minimum protocol version specified is not valid.</p>
369    InvalidMinimumProtocolVersion(crate::types::error::InvalidMinimumProtocolVersion),
370    /// <p>The origin access control is not valid.</p>
371    InvalidOriginAccessControl(crate::types::error::InvalidOriginAccessControl),
372    /// <p>The origin access identity is not valid or doesn't exist.</p>
373    InvalidOriginAccessIdentity(crate::types::error::InvalidOriginAccessIdentity),
374    /// <p>The keep alive timeout specified for the origin is not valid.</p>
375    InvalidOriginKeepaliveTimeout(crate::types::error::InvalidOriginKeepaliveTimeout),
376    /// <p>The read timeout specified for the origin is not valid.</p>
377    InvalidOriginReadTimeout(crate::types::error::InvalidOriginReadTimeout),
378    /// <p>The query string parameters specified are not valid.</p>
379    InvalidQueryStringParameters(crate::types::error::InvalidQueryStringParameters),
380    /// <p>The relative path is too big, is not URL-encoded, or does not begin with a slash (/).</p>
381    InvalidRelativePath(crate::types::error::InvalidRelativePath),
382    /// <p>This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol in your request, or omit the <code>RequiredProtocols</code> element from your distribution configuration.</p>
383    InvalidRequiredProtocol(crate::types::error::InvalidRequiredProtocol),
384    /// <p>A response code is not valid.</p>
385    InvalidResponseCode(crate::types::error::InvalidResponseCode),
386    /// <p>The TTL order specified is not valid.</p>
387    InvalidTtlOrder(crate::types::error::InvalidTtlOrder),
388    /// <p>A viewer certificate specified is not valid.</p>
389    InvalidViewerCertificate(crate::types::error::InvalidViewerCertificate),
390    /// <p>A web ACL ID specified is not valid. To specify a web ACL created using the latest version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>. To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.</p>
391    InvalidWebAclId(crate::types::error::InvalidWebAclId),
392    /// <p>This operation requires a body. Ensure that the body is present and the <code>Content-Type</code> header is set.</p>
393    MissingBody(crate::types::error::MissingBody),
394    /// <p>The cache policy does not exist.</p>
395    NoSuchCachePolicy(crate::types::error::NoSuchCachePolicy),
396    /// <p>The continuous deployment policy doesn't exist.</p>
397    NoSuchContinuousDeploymentPolicy(crate::types::error::NoSuchContinuousDeploymentPolicy),
398    /// <p>The specified distribution does not exist.</p>
399    NoSuchDistribution(crate::types::error::NoSuchDistribution),
400    /// <p>The specified configuration for field-level encryption doesn't exist.</p>
401    NoSuchFieldLevelEncryptionConfig(crate::types::error::NoSuchFieldLevelEncryptionConfig),
402    /// <p>No origin exists with the specified <code>Origin Id</code>.</p>
403    NoSuchOrigin(crate::types::error::NoSuchOrigin),
404    /// <p>The origin request policy does not exist.</p>
405    NoSuchOriginRequestPolicy(crate::types::error::NoSuchOriginRequestPolicy),
406    /// <p>The real-time log configuration does not exist.</p>
407    NoSuchRealtimeLogConfig(crate::types::error::NoSuchRealtimeLogConfig),
408    /// <p>The response headers policy does not exist.</p>
409    NoSuchResponseHeadersPolicy(crate::types::error::NoSuchResponseHeadersPolicy),
410    /// <p>The precondition in one or more of the request fields evaluated to <code>false</code>.</p>
411    PreconditionFailed(crate::types::error::PreconditionFailed),
412    /// <p>The specified real-time log configuration belongs to a different Amazon Web Services account.</p>
413    RealtimeLogConfigOwnerMismatch(crate::types::error::RealtimeLogConfigOwnerMismatch),
414    /// <p>A continuous deployment policy for this staging distribution already exists.</p>
415    StagingDistributionInUse(crate::types::error::StagingDistributionInUse),
416    /// <p>You cannot create more cache behaviors for the distribution.</p>
417    TooManyCacheBehaviors(crate::types::error::TooManyCacheBehaviors),
418    /// <p>You cannot create anymore custom SSL/TLS certificates.</p>
419    TooManyCertificates(crate::types::error::TooManyCertificates),
420    /// <p>Your request contains more cookie names in the whitelist than are allowed per cache behavior.</p>
421    TooManyCookieNamesInWhiteList(crate::types::error::TooManyCookieNamesInWhiteList),
422    /// <p>Your request contains more CNAMEs than are allowed per distribution.</p>
423    TooManyDistributionCnamEs(crate::types::error::TooManyDistributionCnamEs),
424    /// <p>The maximum number of distributions have been associated with the specified cache policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.</p>
425    TooManyDistributionsAssociatedToCachePolicy(crate::types::error::TooManyDistributionsAssociatedToCachePolicy),
426    /// <p>The maximum number of distributions have been associated with the specified configuration for field-level encryption.</p>
427    TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(crate::types::error::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig),
428    /// <p>The number of distributions that reference this key group is more than the maximum allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.</p>
429    TooManyDistributionsAssociatedToKeyGroup(crate::types::error::TooManyDistributionsAssociatedToKeyGroup),
430    /// <p>The maximum number of distributions have been associated with the specified origin access control.</p>
431    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.</p>
432    TooManyDistributionsAssociatedToOriginAccessControl(crate::types::error::TooManyDistributionsAssociatedToOriginAccessControl),
433    /// <p>The maximum number of distributions have been associated with the specified origin request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.</p>
434    TooManyDistributionsAssociatedToOriginRequestPolicy(crate::types::error::TooManyDistributionsAssociatedToOriginRequestPolicy),
435    /// <p>The maximum number of distributions have been associated with the specified response headers policy.</p>
436    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.</p>
437    TooManyDistributionsAssociatedToResponseHeadersPolicy(crate::types::error::TooManyDistributionsAssociatedToResponseHeadersPolicy),
438    /// <p>You have reached the maximum number of distributions that are associated with a CloudFront function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.</p>
439    TooManyDistributionsWithFunctionAssociations(crate::types::error::TooManyDistributionsWithFunctionAssociations),
440    /// <p>Processing your request would cause the maximum number of distributions with Lambda@Edge function associations per owner to be exceeded.</p>
441    TooManyDistributionsWithLambdaAssociations(crate::types::error::TooManyDistributionsWithLambdaAssociations),
442    /// <p>The maximum number of distributions have been associated with the specified Lambda@Edge function.</p>
443    TooManyDistributionsWithSingleFunctionArn(crate::types::error::TooManyDistributionsWithSingleFunctionArn),
444    /// <p>You have reached the maximum number of CloudFront function associations for this distribution. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.</p>
445    TooManyFunctionAssociations(crate::types::error::TooManyFunctionAssociations),
446    /// <p>Your request contains too many headers in forwarded values.</p>
447    TooManyHeadersInForwardedValues(crate::types::error::TooManyHeadersInForwardedValues),
448    /// <p>The number of key groups referenced by this distribution is more than the maximum allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.</p>
449    TooManyKeyGroupsAssociatedToDistribution(crate::types::error::TooManyKeyGroupsAssociatedToDistribution),
450    /// <p>Your request contains more Lambda@Edge function associations than are allowed per distribution.</p>
451    TooManyLambdaFunctionAssociations(crate::types::error::TooManyLambdaFunctionAssociations),
452    /// <p>Your request contains too many origin custom headers.</p>
453    TooManyOriginCustomHeaders(crate::types::error::TooManyOriginCustomHeaders),
454    /// <p>Processing your request would cause you to exceed the maximum number of origin groups allowed.</p>
455    TooManyOriginGroupsPerDistribution(crate::types::error::TooManyOriginGroupsPerDistribution),
456    /// <p>You cannot create more origins for the distribution.</p>
457    TooManyOrigins(crate::types::error::TooManyOrigins),
458    /// <p>Your request contains too many query string parameters.</p>
459    TooManyQueryStringParameters(crate::types::error::TooManyQueryStringParameters),
460    /// <p>Your request contains more trusted signers than are allowed per distribution.</p>
461    TooManyTrustedSigners(crate::types::error::TooManyTrustedSigners),
462    /// <p>The specified key group does not exist.</p>
463    TrustedKeyGroupDoesNotExist(crate::types::error::TrustedKeyGroupDoesNotExist),
464    /// <p>One or more of your trusted signers don't exist.</p>
465    TrustedSignerDoesNotExist(crate::types::error::TrustedSignerDoesNotExist),
466    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
467    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
468    variable wildcard pattern and check `.code()`:
469     \
470    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
471     \
472    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-UpdateDistributionError) for what information is available for the error.")]
473    Unhandled(crate::error::sealed_unhandled::Unhandled),
474}
475impl UpdateDistributionError {
476    /// Creates the `UpdateDistributionError::Unhandled` variant from any error type.
477    pub fn unhandled(
478        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
479    ) -> Self {
480        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
481            source: err.into(),
482            meta: ::std::default::Default::default(),
483        })
484    }
485
486    /// Creates the `UpdateDistributionError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
487    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
488        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
489            source: err.clone().into(),
490            meta: err,
491        })
492    }
493    ///
494    /// Returns error metadata, which includes the error code, message,
495    /// request ID, and potentially additional information.
496    ///
497    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
498        match self {
499            Self::AccessDenied(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
500            Self::CnameAlreadyExists(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
501            Self::ContinuousDeploymentPolicyInUse(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
502            Self::EntityNotFound(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
503            Self::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(e) => {
504                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e)
505            }
506            Self::IllegalOriginAccessConfiguration(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
507            Self::IllegalUpdate(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
508            Self::InconsistentQuantities(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
509            Self::InvalidArgument(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
510            Self::InvalidDefaultRootObject(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
511            Self::InvalidDomainNameForOriginAccessControl(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
512            Self::InvalidErrorCode(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
513            Self::InvalidForwardCookies(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
514            Self::InvalidFunctionAssociation(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
515            Self::InvalidGeoRestrictionParameter(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
516            Self::InvalidHeadersForS3Origin(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
517            Self::InvalidIfMatchVersion(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
518            Self::InvalidLambdaFunctionAssociation(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
519            Self::InvalidLocationCode(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
520            Self::InvalidMinimumProtocolVersion(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
521            Self::InvalidOriginAccessControl(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
522            Self::InvalidOriginAccessIdentity(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
523            Self::InvalidOriginKeepaliveTimeout(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
524            Self::InvalidOriginReadTimeout(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
525            Self::InvalidQueryStringParameters(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
526            Self::InvalidRelativePath(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
527            Self::InvalidRequiredProtocol(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
528            Self::InvalidResponseCode(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
529            Self::InvalidTtlOrder(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
530            Self::InvalidViewerCertificate(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
531            Self::InvalidWebAclId(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
532            Self::MissingBody(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
533            Self::NoSuchCachePolicy(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
534            Self::NoSuchContinuousDeploymentPolicy(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
535            Self::NoSuchDistribution(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
536            Self::NoSuchFieldLevelEncryptionConfig(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
537            Self::NoSuchOrigin(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
538            Self::NoSuchOriginRequestPolicy(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
539            Self::NoSuchRealtimeLogConfig(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
540            Self::NoSuchResponseHeadersPolicy(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
541            Self::PreconditionFailed(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
542            Self::RealtimeLogConfigOwnerMismatch(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
543            Self::StagingDistributionInUse(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
544            Self::TooManyCacheBehaviors(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
545            Self::TooManyCertificates(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
546            Self::TooManyCookieNamesInWhiteList(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
547            Self::TooManyDistributionCnamEs(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
548            Self::TooManyDistributionsAssociatedToCachePolicy(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
549            Self::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
550            Self::TooManyDistributionsAssociatedToKeyGroup(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
551            Self::TooManyDistributionsAssociatedToOriginAccessControl(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
552            Self::TooManyDistributionsAssociatedToOriginRequestPolicy(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
553            Self::TooManyDistributionsAssociatedToResponseHeadersPolicy(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
554            Self::TooManyDistributionsWithFunctionAssociations(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
555            Self::TooManyDistributionsWithLambdaAssociations(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
556            Self::TooManyDistributionsWithSingleFunctionArn(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
557            Self::TooManyFunctionAssociations(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
558            Self::TooManyHeadersInForwardedValues(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
559            Self::TooManyKeyGroupsAssociatedToDistribution(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
560            Self::TooManyLambdaFunctionAssociations(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
561            Self::TooManyOriginCustomHeaders(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
562            Self::TooManyOriginGroupsPerDistribution(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
563            Self::TooManyOrigins(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
564            Self::TooManyQueryStringParameters(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
565            Self::TooManyTrustedSigners(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
566            Self::TrustedKeyGroupDoesNotExist(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
567            Self::TrustedSignerDoesNotExist(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
568            Self::Unhandled(e) => &e.meta,
569        }
570    }
571    /// Returns `true` if the error kind is `UpdateDistributionError::AccessDenied`.
572    pub fn is_access_denied(&self) -> bool {
573        matches!(self, Self::AccessDenied(_))
574    }
575    /// Returns `true` if the error kind is `UpdateDistributionError::CnameAlreadyExists`.
576    pub fn is_cname_already_exists(&self) -> bool {
577        matches!(self, Self::CnameAlreadyExists(_))
578    }
579    /// Returns `true` if the error kind is `UpdateDistributionError::ContinuousDeploymentPolicyInUse`.
580    pub fn is_continuous_deployment_policy_in_use(&self) -> bool {
581        matches!(self, Self::ContinuousDeploymentPolicyInUse(_))
582    }
583    /// Returns `true` if the error kind is `UpdateDistributionError::EntityNotFound`.
584    pub fn is_entity_not_found(&self) -> bool {
585        matches!(self, Self::EntityNotFound(_))
586    }
587    /// Returns `true` if the error kind is `UpdateDistributionError::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior`.
588    pub fn is_illegal_field_level_encryption_config_association_with_cache_behavior(&self) -> bool {
589        matches!(self, Self::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(_))
590    }
591    /// Returns `true` if the error kind is `UpdateDistributionError::IllegalOriginAccessConfiguration`.
592    pub fn is_illegal_origin_access_configuration(&self) -> bool {
593        matches!(self, Self::IllegalOriginAccessConfiguration(_))
594    }
595    /// Returns `true` if the error kind is `UpdateDistributionError::IllegalUpdate`.
596    pub fn is_illegal_update(&self) -> bool {
597        matches!(self, Self::IllegalUpdate(_))
598    }
599    /// Returns `true` if the error kind is `UpdateDistributionError::InconsistentQuantities`.
600    pub fn is_inconsistent_quantities(&self) -> bool {
601        matches!(self, Self::InconsistentQuantities(_))
602    }
603    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidArgument`.
604    pub fn is_invalid_argument(&self) -> bool {
605        matches!(self, Self::InvalidArgument(_))
606    }
607    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidDefaultRootObject`.
608    pub fn is_invalid_default_root_object(&self) -> bool {
609        matches!(self, Self::InvalidDefaultRootObject(_))
610    }
611    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidDomainNameForOriginAccessControl`.
612    pub fn is_invalid_domain_name_for_origin_access_control(&self) -> bool {
613        matches!(self, Self::InvalidDomainNameForOriginAccessControl(_))
614    }
615    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidErrorCode`.
616    pub fn is_invalid_error_code(&self) -> bool {
617        matches!(self, Self::InvalidErrorCode(_))
618    }
619    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidForwardCookies`.
620    pub fn is_invalid_forward_cookies(&self) -> bool {
621        matches!(self, Self::InvalidForwardCookies(_))
622    }
623    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidFunctionAssociation`.
624    pub fn is_invalid_function_association(&self) -> bool {
625        matches!(self, Self::InvalidFunctionAssociation(_))
626    }
627    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidGeoRestrictionParameter`.
628    pub fn is_invalid_geo_restriction_parameter(&self) -> bool {
629        matches!(self, Self::InvalidGeoRestrictionParameter(_))
630    }
631    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidHeadersForS3Origin`.
632    pub fn is_invalid_headers_for_s3_origin(&self) -> bool {
633        matches!(self, Self::InvalidHeadersForS3Origin(_))
634    }
635    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidIfMatchVersion`.
636    pub fn is_invalid_if_match_version(&self) -> bool {
637        matches!(self, Self::InvalidIfMatchVersion(_))
638    }
639    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidLambdaFunctionAssociation`.
640    pub fn is_invalid_lambda_function_association(&self) -> bool {
641        matches!(self, Self::InvalidLambdaFunctionAssociation(_))
642    }
643    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidLocationCode`.
644    pub fn is_invalid_location_code(&self) -> bool {
645        matches!(self, Self::InvalidLocationCode(_))
646    }
647    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidMinimumProtocolVersion`.
648    pub fn is_invalid_minimum_protocol_version(&self) -> bool {
649        matches!(self, Self::InvalidMinimumProtocolVersion(_))
650    }
651    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidOriginAccessControl`.
652    pub fn is_invalid_origin_access_control(&self) -> bool {
653        matches!(self, Self::InvalidOriginAccessControl(_))
654    }
655    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidOriginAccessIdentity`.
656    pub fn is_invalid_origin_access_identity(&self) -> bool {
657        matches!(self, Self::InvalidOriginAccessIdentity(_))
658    }
659    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidOriginKeepaliveTimeout`.
660    pub fn is_invalid_origin_keepalive_timeout(&self) -> bool {
661        matches!(self, Self::InvalidOriginKeepaliveTimeout(_))
662    }
663    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidOriginReadTimeout`.
664    pub fn is_invalid_origin_read_timeout(&self) -> bool {
665        matches!(self, Self::InvalidOriginReadTimeout(_))
666    }
667    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidQueryStringParameters`.
668    pub fn is_invalid_query_string_parameters(&self) -> bool {
669        matches!(self, Self::InvalidQueryStringParameters(_))
670    }
671    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidRelativePath`.
672    pub fn is_invalid_relative_path(&self) -> bool {
673        matches!(self, Self::InvalidRelativePath(_))
674    }
675    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidRequiredProtocol`.
676    pub fn is_invalid_required_protocol(&self) -> bool {
677        matches!(self, Self::InvalidRequiredProtocol(_))
678    }
679    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidResponseCode`.
680    pub fn is_invalid_response_code(&self) -> bool {
681        matches!(self, Self::InvalidResponseCode(_))
682    }
683    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidTtlOrder`.
684    pub fn is_invalid_ttl_order(&self) -> bool {
685        matches!(self, Self::InvalidTtlOrder(_))
686    }
687    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidViewerCertificate`.
688    pub fn is_invalid_viewer_certificate(&self) -> bool {
689        matches!(self, Self::InvalidViewerCertificate(_))
690    }
691    /// Returns `true` if the error kind is `UpdateDistributionError::InvalidWebAclId`.
692    pub fn is_invalid_web_acl_id(&self) -> bool {
693        matches!(self, Self::InvalidWebAclId(_))
694    }
695    /// Returns `true` if the error kind is `UpdateDistributionError::MissingBody`.
696    pub fn is_missing_body(&self) -> bool {
697        matches!(self, Self::MissingBody(_))
698    }
699    /// Returns `true` if the error kind is `UpdateDistributionError::NoSuchCachePolicy`.
700    pub fn is_no_such_cache_policy(&self) -> bool {
701        matches!(self, Self::NoSuchCachePolicy(_))
702    }
703    /// Returns `true` if the error kind is `UpdateDistributionError::NoSuchContinuousDeploymentPolicy`.
704    pub fn is_no_such_continuous_deployment_policy(&self) -> bool {
705        matches!(self, Self::NoSuchContinuousDeploymentPolicy(_))
706    }
707    /// Returns `true` if the error kind is `UpdateDistributionError::NoSuchDistribution`.
708    pub fn is_no_such_distribution(&self) -> bool {
709        matches!(self, Self::NoSuchDistribution(_))
710    }
711    /// Returns `true` if the error kind is `UpdateDistributionError::NoSuchFieldLevelEncryptionConfig`.
712    pub fn is_no_such_field_level_encryption_config(&self) -> bool {
713        matches!(self, Self::NoSuchFieldLevelEncryptionConfig(_))
714    }
715    /// Returns `true` if the error kind is `UpdateDistributionError::NoSuchOrigin`.
716    pub fn is_no_such_origin(&self) -> bool {
717        matches!(self, Self::NoSuchOrigin(_))
718    }
719    /// Returns `true` if the error kind is `UpdateDistributionError::NoSuchOriginRequestPolicy`.
720    pub fn is_no_such_origin_request_policy(&self) -> bool {
721        matches!(self, Self::NoSuchOriginRequestPolicy(_))
722    }
723    /// Returns `true` if the error kind is `UpdateDistributionError::NoSuchRealtimeLogConfig`.
724    pub fn is_no_such_realtime_log_config(&self) -> bool {
725        matches!(self, Self::NoSuchRealtimeLogConfig(_))
726    }
727    /// Returns `true` if the error kind is `UpdateDistributionError::NoSuchResponseHeadersPolicy`.
728    pub fn is_no_such_response_headers_policy(&self) -> bool {
729        matches!(self, Self::NoSuchResponseHeadersPolicy(_))
730    }
731    /// Returns `true` if the error kind is `UpdateDistributionError::PreconditionFailed`.
732    pub fn is_precondition_failed(&self) -> bool {
733        matches!(self, Self::PreconditionFailed(_))
734    }
735    /// Returns `true` if the error kind is `UpdateDistributionError::RealtimeLogConfigOwnerMismatch`.
736    pub fn is_realtime_log_config_owner_mismatch(&self) -> bool {
737        matches!(self, Self::RealtimeLogConfigOwnerMismatch(_))
738    }
739    /// Returns `true` if the error kind is `UpdateDistributionError::StagingDistributionInUse`.
740    pub fn is_staging_distribution_in_use(&self) -> bool {
741        matches!(self, Self::StagingDistributionInUse(_))
742    }
743    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyCacheBehaviors`.
744    pub fn is_too_many_cache_behaviors(&self) -> bool {
745        matches!(self, Self::TooManyCacheBehaviors(_))
746    }
747    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyCertificates`.
748    pub fn is_too_many_certificates(&self) -> bool {
749        matches!(self, Self::TooManyCertificates(_))
750    }
751    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyCookieNamesInWhiteList`.
752    pub fn is_too_many_cookie_names_in_white_list(&self) -> bool {
753        matches!(self, Self::TooManyCookieNamesInWhiteList(_))
754    }
755    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyDistributionCnamEs`.
756    pub fn is_too_many_distribution_cnam_es(&self) -> bool {
757        matches!(self, Self::TooManyDistributionCnamEs(_))
758    }
759    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyDistributionsAssociatedToCachePolicy`.
760    pub fn is_too_many_distributions_associated_to_cache_policy(&self) -> bool {
761        matches!(self, Self::TooManyDistributionsAssociatedToCachePolicy(_))
762    }
763    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig`.
764    pub fn is_too_many_distributions_associated_to_field_level_encryption_config(&self) -> bool {
765        matches!(self, Self::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(_))
766    }
767    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyDistributionsAssociatedToKeyGroup`.
768    pub fn is_too_many_distributions_associated_to_key_group(&self) -> bool {
769        matches!(self, Self::TooManyDistributionsAssociatedToKeyGroup(_))
770    }
771    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyDistributionsAssociatedToOriginAccessControl`.
772    pub fn is_too_many_distributions_associated_to_origin_access_control(&self) -> bool {
773        matches!(self, Self::TooManyDistributionsAssociatedToOriginAccessControl(_))
774    }
775    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyDistributionsAssociatedToOriginRequestPolicy`.
776    pub fn is_too_many_distributions_associated_to_origin_request_policy(&self) -> bool {
777        matches!(self, Self::TooManyDistributionsAssociatedToOriginRequestPolicy(_))
778    }
779    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyDistributionsAssociatedToResponseHeadersPolicy`.
780    pub fn is_too_many_distributions_associated_to_response_headers_policy(&self) -> bool {
781        matches!(self, Self::TooManyDistributionsAssociatedToResponseHeadersPolicy(_))
782    }
783    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyDistributionsWithFunctionAssociations`.
784    pub fn is_too_many_distributions_with_function_associations(&self) -> bool {
785        matches!(self, Self::TooManyDistributionsWithFunctionAssociations(_))
786    }
787    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyDistributionsWithLambdaAssociations`.
788    pub fn is_too_many_distributions_with_lambda_associations(&self) -> bool {
789        matches!(self, Self::TooManyDistributionsWithLambdaAssociations(_))
790    }
791    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyDistributionsWithSingleFunctionArn`.
792    pub fn is_too_many_distributions_with_single_function_arn(&self) -> bool {
793        matches!(self, Self::TooManyDistributionsWithSingleFunctionArn(_))
794    }
795    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyFunctionAssociations`.
796    pub fn is_too_many_function_associations(&self) -> bool {
797        matches!(self, Self::TooManyFunctionAssociations(_))
798    }
799    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyHeadersInForwardedValues`.
800    pub fn is_too_many_headers_in_forwarded_values(&self) -> bool {
801        matches!(self, Self::TooManyHeadersInForwardedValues(_))
802    }
803    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyKeyGroupsAssociatedToDistribution`.
804    pub fn is_too_many_key_groups_associated_to_distribution(&self) -> bool {
805        matches!(self, Self::TooManyKeyGroupsAssociatedToDistribution(_))
806    }
807    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyLambdaFunctionAssociations`.
808    pub fn is_too_many_lambda_function_associations(&self) -> bool {
809        matches!(self, Self::TooManyLambdaFunctionAssociations(_))
810    }
811    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyOriginCustomHeaders`.
812    pub fn is_too_many_origin_custom_headers(&self) -> bool {
813        matches!(self, Self::TooManyOriginCustomHeaders(_))
814    }
815    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyOriginGroupsPerDistribution`.
816    pub fn is_too_many_origin_groups_per_distribution(&self) -> bool {
817        matches!(self, Self::TooManyOriginGroupsPerDistribution(_))
818    }
819    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyOrigins`.
820    pub fn is_too_many_origins(&self) -> bool {
821        matches!(self, Self::TooManyOrigins(_))
822    }
823    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyQueryStringParameters`.
824    pub fn is_too_many_query_string_parameters(&self) -> bool {
825        matches!(self, Self::TooManyQueryStringParameters(_))
826    }
827    /// Returns `true` if the error kind is `UpdateDistributionError::TooManyTrustedSigners`.
828    pub fn is_too_many_trusted_signers(&self) -> bool {
829        matches!(self, Self::TooManyTrustedSigners(_))
830    }
831    /// Returns `true` if the error kind is `UpdateDistributionError::TrustedKeyGroupDoesNotExist`.
832    pub fn is_trusted_key_group_does_not_exist(&self) -> bool {
833        matches!(self, Self::TrustedKeyGroupDoesNotExist(_))
834    }
835    /// Returns `true` if the error kind is `UpdateDistributionError::TrustedSignerDoesNotExist`.
836    pub fn is_trusted_signer_does_not_exist(&self) -> bool {
837        matches!(self, Self::TrustedSignerDoesNotExist(_))
838    }
839}
840impl ::std::error::Error for UpdateDistributionError {
841    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
842        match self {
843            Self::AccessDenied(_inner) => ::std::option::Option::Some(_inner),
844            Self::CnameAlreadyExists(_inner) => ::std::option::Option::Some(_inner),
845            Self::ContinuousDeploymentPolicyInUse(_inner) => ::std::option::Option::Some(_inner),
846            Self::EntityNotFound(_inner) => ::std::option::Option::Some(_inner),
847            Self::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(_inner) => ::std::option::Option::Some(_inner),
848            Self::IllegalOriginAccessConfiguration(_inner) => ::std::option::Option::Some(_inner),
849            Self::IllegalUpdate(_inner) => ::std::option::Option::Some(_inner),
850            Self::InconsistentQuantities(_inner) => ::std::option::Option::Some(_inner),
851            Self::InvalidArgument(_inner) => ::std::option::Option::Some(_inner),
852            Self::InvalidDefaultRootObject(_inner) => ::std::option::Option::Some(_inner),
853            Self::InvalidDomainNameForOriginAccessControl(_inner) => ::std::option::Option::Some(_inner),
854            Self::InvalidErrorCode(_inner) => ::std::option::Option::Some(_inner),
855            Self::InvalidForwardCookies(_inner) => ::std::option::Option::Some(_inner),
856            Self::InvalidFunctionAssociation(_inner) => ::std::option::Option::Some(_inner),
857            Self::InvalidGeoRestrictionParameter(_inner) => ::std::option::Option::Some(_inner),
858            Self::InvalidHeadersForS3Origin(_inner) => ::std::option::Option::Some(_inner),
859            Self::InvalidIfMatchVersion(_inner) => ::std::option::Option::Some(_inner),
860            Self::InvalidLambdaFunctionAssociation(_inner) => ::std::option::Option::Some(_inner),
861            Self::InvalidLocationCode(_inner) => ::std::option::Option::Some(_inner),
862            Self::InvalidMinimumProtocolVersion(_inner) => ::std::option::Option::Some(_inner),
863            Self::InvalidOriginAccessControl(_inner) => ::std::option::Option::Some(_inner),
864            Self::InvalidOriginAccessIdentity(_inner) => ::std::option::Option::Some(_inner),
865            Self::InvalidOriginKeepaliveTimeout(_inner) => ::std::option::Option::Some(_inner),
866            Self::InvalidOriginReadTimeout(_inner) => ::std::option::Option::Some(_inner),
867            Self::InvalidQueryStringParameters(_inner) => ::std::option::Option::Some(_inner),
868            Self::InvalidRelativePath(_inner) => ::std::option::Option::Some(_inner),
869            Self::InvalidRequiredProtocol(_inner) => ::std::option::Option::Some(_inner),
870            Self::InvalidResponseCode(_inner) => ::std::option::Option::Some(_inner),
871            Self::InvalidTtlOrder(_inner) => ::std::option::Option::Some(_inner),
872            Self::InvalidViewerCertificate(_inner) => ::std::option::Option::Some(_inner),
873            Self::InvalidWebAclId(_inner) => ::std::option::Option::Some(_inner),
874            Self::MissingBody(_inner) => ::std::option::Option::Some(_inner),
875            Self::NoSuchCachePolicy(_inner) => ::std::option::Option::Some(_inner),
876            Self::NoSuchContinuousDeploymentPolicy(_inner) => ::std::option::Option::Some(_inner),
877            Self::NoSuchDistribution(_inner) => ::std::option::Option::Some(_inner),
878            Self::NoSuchFieldLevelEncryptionConfig(_inner) => ::std::option::Option::Some(_inner),
879            Self::NoSuchOrigin(_inner) => ::std::option::Option::Some(_inner),
880            Self::NoSuchOriginRequestPolicy(_inner) => ::std::option::Option::Some(_inner),
881            Self::NoSuchRealtimeLogConfig(_inner) => ::std::option::Option::Some(_inner),
882            Self::NoSuchResponseHeadersPolicy(_inner) => ::std::option::Option::Some(_inner),
883            Self::PreconditionFailed(_inner) => ::std::option::Option::Some(_inner),
884            Self::RealtimeLogConfigOwnerMismatch(_inner) => ::std::option::Option::Some(_inner),
885            Self::StagingDistributionInUse(_inner) => ::std::option::Option::Some(_inner),
886            Self::TooManyCacheBehaviors(_inner) => ::std::option::Option::Some(_inner),
887            Self::TooManyCertificates(_inner) => ::std::option::Option::Some(_inner),
888            Self::TooManyCookieNamesInWhiteList(_inner) => ::std::option::Option::Some(_inner),
889            Self::TooManyDistributionCnamEs(_inner) => ::std::option::Option::Some(_inner),
890            Self::TooManyDistributionsAssociatedToCachePolicy(_inner) => ::std::option::Option::Some(_inner),
891            Self::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(_inner) => ::std::option::Option::Some(_inner),
892            Self::TooManyDistributionsAssociatedToKeyGroup(_inner) => ::std::option::Option::Some(_inner),
893            Self::TooManyDistributionsAssociatedToOriginAccessControl(_inner) => ::std::option::Option::Some(_inner),
894            Self::TooManyDistributionsAssociatedToOriginRequestPolicy(_inner) => ::std::option::Option::Some(_inner),
895            Self::TooManyDistributionsAssociatedToResponseHeadersPolicy(_inner) => ::std::option::Option::Some(_inner),
896            Self::TooManyDistributionsWithFunctionAssociations(_inner) => ::std::option::Option::Some(_inner),
897            Self::TooManyDistributionsWithLambdaAssociations(_inner) => ::std::option::Option::Some(_inner),
898            Self::TooManyDistributionsWithSingleFunctionArn(_inner) => ::std::option::Option::Some(_inner),
899            Self::TooManyFunctionAssociations(_inner) => ::std::option::Option::Some(_inner),
900            Self::TooManyHeadersInForwardedValues(_inner) => ::std::option::Option::Some(_inner),
901            Self::TooManyKeyGroupsAssociatedToDistribution(_inner) => ::std::option::Option::Some(_inner),
902            Self::TooManyLambdaFunctionAssociations(_inner) => ::std::option::Option::Some(_inner),
903            Self::TooManyOriginCustomHeaders(_inner) => ::std::option::Option::Some(_inner),
904            Self::TooManyOriginGroupsPerDistribution(_inner) => ::std::option::Option::Some(_inner),
905            Self::TooManyOrigins(_inner) => ::std::option::Option::Some(_inner),
906            Self::TooManyQueryStringParameters(_inner) => ::std::option::Option::Some(_inner),
907            Self::TooManyTrustedSigners(_inner) => ::std::option::Option::Some(_inner),
908            Self::TrustedKeyGroupDoesNotExist(_inner) => ::std::option::Option::Some(_inner),
909            Self::TrustedSignerDoesNotExist(_inner) => ::std::option::Option::Some(_inner),
910            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
911        }
912    }
913}
914impl ::std::fmt::Display for UpdateDistributionError {
915    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
916        match self {
917            Self::AccessDenied(_inner) => _inner.fmt(f),
918            Self::CnameAlreadyExists(_inner) => _inner.fmt(f),
919            Self::ContinuousDeploymentPolicyInUse(_inner) => _inner.fmt(f),
920            Self::EntityNotFound(_inner) => _inner.fmt(f),
921            Self::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(_inner) => _inner.fmt(f),
922            Self::IllegalOriginAccessConfiguration(_inner) => _inner.fmt(f),
923            Self::IllegalUpdate(_inner) => _inner.fmt(f),
924            Self::InconsistentQuantities(_inner) => _inner.fmt(f),
925            Self::InvalidArgument(_inner) => _inner.fmt(f),
926            Self::InvalidDefaultRootObject(_inner) => _inner.fmt(f),
927            Self::InvalidDomainNameForOriginAccessControl(_inner) => _inner.fmt(f),
928            Self::InvalidErrorCode(_inner) => _inner.fmt(f),
929            Self::InvalidForwardCookies(_inner) => _inner.fmt(f),
930            Self::InvalidFunctionAssociation(_inner) => _inner.fmt(f),
931            Self::InvalidGeoRestrictionParameter(_inner) => _inner.fmt(f),
932            Self::InvalidHeadersForS3Origin(_inner) => _inner.fmt(f),
933            Self::InvalidIfMatchVersion(_inner) => _inner.fmt(f),
934            Self::InvalidLambdaFunctionAssociation(_inner) => _inner.fmt(f),
935            Self::InvalidLocationCode(_inner) => _inner.fmt(f),
936            Self::InvalidMinimumProtocolVersion(_inner) => _inner.fmt(f),
937            Self::InvalidOriginAccessControl(_inner) => _inner.fmt(f),
938            Self::InvalidOriginAccessIdentity(_inner) => _inner.fmt(f),
939            Self::InvalidOriginKeepaliveTimeout(_inner) => _inner.fmt(f),
940            Self::InvalidOriginReadTimeout(_inner) => _inner.fmt(f),
941            Self::InvalidQueryStringParameters(_inner) => _inner.fmt(f),
942            Self::InvalidRelativePath(_inner) => _inner.fmt(f),
943            Self::InvalidRequiredProtocol(_inner) => _inner.fmt(f),
944            Self::InvalidResponseCode(_inner) => _inner.fmt(f),
945            Self::InvalidTtlOrder(_inner) => _inner.fmt(f),
946            Self::InvalidViewerCertificate(_inner) => _inner.fmt(f),
947            Self::InvalidWebAclId(_inner) => _inner.fmt(f),
948            Self::MissingBody(_inner) => _inner.fmt(f),
949            Self::NoSuchCachePolicy(_inner) => _inner.fmt(f),
950            Self::NoSuchContinuousDeploymentPolicy(_inner) => _inner.fmt(f),
951            Self::NoSuchDistribution(_inner) => _inner.fmt(f),
952            Self::NoSuchFieldLevelEncryptionConfig(_inner) => _inner.fmt(f),
953            Self::NoSuchOrigin(_inner) => _inner.fmt(f),
954            Self::NoSuchOriginRequestPolicy(_inner) => _inner.fmt(f),
955            Self::NoSuchRealtimeLogConfig(_inner) => _inner.fmt(f),
956            Self::NoSuchResponseHeadersPolicy(_inner) => _inner.fmt(f),
957            Self::PreconditionFailed(_inner) => _inner.fmt(f),
958            Self::RealtimeLogConfigOwnerMismatch(_inner) => _inner.fmt(f),
959            Self::StagingDistributionInUse(_inner) => _inner.fmt(f),
960            Self::TooManyCacheBehaviors(_inner) => _inner.fmt(f),
961            Self::TooManyCertificates(_inner) => _inner.fmt(f),
962            Self::TooManyCookieNamesInWhiteList(_inner) => _inner.fmt(f),
963            Self::TooManyDistributionCnamEs(_inner) => _inner.fmt(f),
964            Self::TooManyDistributionsAssociatedToCachePolicy(_inner) => _inner.fmt(f),
965            Self::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(_inner) => _inner.fmt(f),
966            Self::TooManyDistributionsAssociatedToKeyGroup(_inner) => _inner.fmt(f),
967            Self::TooManyDistributionsAssociatedToOriginAccessControl(_inner) => _inner.fmt(f),
968            Self::TooManyDistributionsAssociatedToOriginRequestPolicy(_inner) => _inner.fmt(f),
969            Self::TooManyDistributionsAssociatedToResponseHeadersPolicy(_inner) => _inner.fmt(f),
970            Self::TooManyDistributionsWithFunctionAssociations(_inner) => _inner.fmt(f),
971            Self::TooManyDistributionsWithLambdaAssociations(_inner) => _inner.fmt(f),
972            Self::TooManyDistributionsWithSingleFunctionArn(_inner) => _inner.fmt(f),
973            Self::TooManyFunctionAssociations(_inner) => _inner.fmt(f),
974            Self::TooManyHeadersInForwardedValues(_inner) => _inner.fmt(f),
975            Self::TooManyKeyGroupsAssociatedToDistribution(_inner) => _inner.fmt(f),
976            Self::TooManyLambdaFunctionAssociations(_inner) => _inner.fmt(f),
977            Self::TooManyOriginCustomHeaders(_inner) => _inner.fmt(f),
978            Self::TooManyOriginGroupsPerDistribution(_inner) => _inner.fmt(f),
979            Self::TooManyOrigins(_inner) => _inner.fmt(f),
980            Self::TooManyQueryStringParameters(_inner) => _inner.fmt(f),
981            Self::TooManyTrustedSigners(_inner) => _inner.fmt(f),
982            Self::TrustedKeyGroupDoesNotExist(_inner) => _inner.fmt(f),
983            Self::TrustedSignerDoesNotExist(_inner) => _inner.fmt(f),
984            Self::Unhandled(_inner) => {
985                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
986                    write!(f, "unhandled error ({code})")
987                } else {
988                    f.write_str("unhandled error")
989                }
990            }
991        }
992    }
993}
994impl ::aws_smithy_types::retry::ProvideErrorKind for UpdateDistributionError {
995    fn code(&self) -> ::std::option::Option<&str> {
996        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
997    }
998    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
999        ::std::option::Option::None
1000    }
1001}
1002impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateDistributionError {
1003    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
1004        match self {
1005            Self::AccessDenied(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1006            Self::CnameAlreadyExists(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1007            Self::ContinuousDeploymentPolicyInUse(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1008            Self::EntityNotFound(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1009            Self::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(_inner) => {
1010                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
1011            }
1012            Self::IllegalOriginAccessConfiguration(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1013            Self::IllegalUpdate(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1014            Self::InconsistentQuantities(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1015            Self::InvalidArgument(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1016            Self::InvalidDefaultRootObject(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1017            Self::InvalidDomainNameForOriginAccessControl(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1018            Self::InvalidErrorCode(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1019            Self::InvalidForwardCookies(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1020            Self::InvalidFunctionAssociation(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1021            Self::InvalidGeoRestrictionParameter(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1022            Self::InvalidHeadersForS3Origin(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1023            Self::InvalidIfMatchVersion(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1024            Self::InvalidLambdaFunctionAssociation(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1025            Self::InvalidLocationCode(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1026            Self::InvalidMinimumProtocolVersion(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1027            Self::InvalidOriginAccessControl(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1028            Self::InvalidOriginAccessIdentity(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1029            Self::InvalidOriginKeepaliveTimeout(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1030            Self::InvalidOriginReadTimeout(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1031            Self::InvalidQueryStringParameters(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1032            Self::InvalidRelativePath(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1033            Self::InvalidRequiredProtocol(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1034            Self::InvalidResponseCode(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1035            Self::InvalidTtlOrder(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1036            Self::InvalidViewerCertificate(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1037            Self::InvalidWebAclId(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1038            Self::MissingBody(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1039            Self::NoSuchCachePolicy(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1040            Self::NoSuchContinuousDeploymentPolicy(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1041            Self::NoSuchDistribution(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1042            Self::NoSuchFieldLevelEncryptionConfig(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1043            Self::NoSuchOrigin(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1044            Self::NoSuchOriginRequestPolicy(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1045            Self::NoSuchRealtimeLogConfig(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1046            Self::NoSuchResponseHeadersPolicy(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1047            Self::PreconditionFailed(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1048            Self::RealtimeLogConfigOwnerMismatch(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1049            Self::StagingDistributionInUse(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1050            Self::TooManyCacheBehaviors(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1051            Self::TooManyCertificates(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1052            Self::TooManyCookieNamesInWhiteList(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1053            Self::TooManyDistributionCnamEs(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1054            Self::TooManyDistributionsAssociatedToCachePolicy(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1055            Self::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(_inner) => {
1056                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
1057            }
1058            Self::TooManyDistributionsAssociatedToKeyGroup(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1059            Self::TooManyDistributionsAssociatedToOriginAccessControl(_inner) => {
1060                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
1061            }
1062            Self::TooManyDistributionsAssociatedToOriginRequestPolicy(_inner) => {
1063                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
1064            }
1065            Self::TooManyDistributionsAssociatedToResponseHeadersPolicy(_inner) => {
1066                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
1067            }
1068            Self::TooManyDistributionsWithFunctionAssociations(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1069            Self::TooManyDistributionsWithLambdaAssociations(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1070            Self::TooManyDistributionsWithSingleFunctionArn(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1071            Self::TooManyFunctionAssociations(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1072            Self::TooManyHeadersInForwardedValues(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1073            Self::TooManyKeyGroupsAssociatedToDistribution(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1074            Self::TooManyLambdaFunctionAssociations(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1075            Self::TooManyOriginCustomHeaders(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1076            Self::TooManyOriginGroupsPerDistribution(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1077            Self::TooManyOrigins(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1078            Self::TooManyQueryStringParameters(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1079            Self::TooManyTrustedSigners(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1080            Self::TrustedKeyGroupDoesNotExist(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1081            Self::TrustedSignerDoesNotExist(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
1082            Self::Unhandled(_inner) => &_inner.meta,
1083        }
1084    }
1085}
1086impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for UpdateDistributionError {
1087    fn create_unhandled_error(
1088        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
1089        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
1090    ) -> Self {
1091        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
1092            source,
1093            meta: meta.unwrap_or_default(),
1094        })
1095    }
1096}
1097impl ::aws_types::request_id::RequestId for crate::operation::update_distribution::UpdateDistributionError {
1098    fn request_id(&self) -> Option<&str> {
1099        self.meta().request_id()
1100    }
1101}
1102
1103pub use crate::operation::update_distribution::_update_distribution_input::UpdateDistributionInput;
1104
1105pub use crate::operation::update_distribution::_update_distribution_output::UpdateDistributionOutput;
1106
1107mod _update_distribution_input;
1108
1109mod _update_distribution_output;
1110
1111/// Builders
1112pub mod builders;