83 92 | runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
|
84 93 | }
|
85 94 | runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
|
86 95 | config_override,
|
87 96 | client_config.config.clone(),
|
88 97 | &client_config.runtime_components,
|
89 98 | ));
|
90 99 | }
|
91 100 | runtime_plugins
|
92 101 | }
|
102 + | /* OperationGenerator.kt:85 */
|
93 103 | }
|
104 + | /* OperationRuntimePluginGenerator.kt:55 */
|
94 105 | impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for DisableKinesisStreamingDestination {
|
95 106 | fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
|
96 107 | let mut cfg = ::aws_smithy_types::config_bag::Layer::new("DisableKinesisStreamingDestination");
|
97 108 |
|
98 109 | cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
|
99 110 | DisableKinesisStreamingDestinationRequestSerializer,
|
100 111 | ));
|
101 112 | cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
|
102 113 | DisableKinesisStreamingDestinationResponseDeserializer,
|
103 114 | ));
|
104 115 |
|
105 116 | cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
|
106 117 | ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
|
107 118 | ));
|
108 119 |
|
109 120 | cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
|
110 121 | "DisableKinesisStreamingDestination",
|
111 122 | "DynamoDB",
|
112 123 | ));
|
113 124 |
|
114 125 | ::std::option::Option::Some(cfg.freeze())
|
115 126 | }
|
116 127 |
|
117 128 | fn runtime_components(
|
118 129 | &self,
|
119 130 | _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
|
120 131 | ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
|
121 132 | #[allow(unused_mut)]
|
122 133 | let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("DisableKinesisStreamingDestination")
|
123 134 | .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
|
124 135 | .with_interceptor(DisableKinesisStreamingDestinationEndpointParamsInterceptor)
|
125 136 | .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
|
126 137 | crate::operation::disable_kinesis_streaming_destination::DisableKinesisStreamingDestinationError,
|
127 138 | >::new())
|
128 139 | .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
|
129 140 | crate::operation::disable_kinesis_streaming_destination::DisableKinesisStreamingDestinationError,
|
130 141 | >::new());
|
131 142 |
|
132 143 | ::std::borrow::Cow::Owned(rcb)
|
133 144 | }
|
134 145 | }
|
135 146 |
|
147 + | /* ResponseDeserializerGenerator.kt:64 */
|
136 148 | #[derive(Debug)]
|
137 149 | struct DisableKinesisStreamingDestinationResponseDeserializer;
|
138 150 | impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DisableKinesisStreamingDestinationResponseDeserializer {
|
139 151 | fn deserialize_nonstreaming(
|
140 152 | &self,
|
141 153 | response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
142 154 | ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
|
143 155 | let (success, status) = (response.status().is_success(), response.status().as_u16());
|
144 156 | let headers = response.headers();
|
145 157 | let body = response.body().bytes().expect("body loaded");
|
146 158 | #[allow(unused_mut)]
|
147 159 | let mut force_error = false;
|
148 160 |
|
149 161 | let parse_result = if !success && status != 200 || force_error {
|
150 162 | crate::protocol_serde::shape_disable_kinesis_streaming_destination::de_disable_kinesis_streaming_destination_http_error(
|
151 163 | status, headers, body,
|
152 164 | )
|
153 165 | } else {
|
154 166 | crate::protocol_serde::shape_disable_kinesis_streaming_destination::de_disable_kinesis_streaming_destination_http_response(
|
155 167 | status, headers, body,
|
156 168 | )
|
157 169 | };
|
158 170 | crate::protocol_serde::type_erase_result(parse_result)
|
159 171 | }
|
160 172 | }
|
173 + | /* RequestSerializerGenerator.kt:67 */
|
161 174 | #[derive(Debug)]
|
162 175 | struct DisableKinesisStreamingDestinationRequestSerializer;
|
163 176 | impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DisableKinesisStreamingDestinationRequestSerializer {
|
164 177 | #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
|
165 178 | fn serialize_input(
|
166 179 | &self,
|
167 180 | input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
168 181 | _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
169 182 | ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
|
170 183 | let input = input
|
171 184 | .downcast::<crate::operation::disable_kinesis_streaming_destination::DisableKinesisStreamingDestinationInput>()
|
172 185 | .expect("correct type");
|
173 186 | let _header_serialization_settings = _cfg
|
174 187 | .load::<crate::serialization_settings::HeaderSerializationSettings>()
|
175 188 | .cloned()
|
176 189 | .unwrap_or_default();
|
177 190 | let mut request_builder = {
|
178 191 | fn uri_base(
|
179 192 | _input: &crate::operation::disable_kinesis_streaming_destination::DisableKinesisStreamingDestinationInput,
|
180 193 | output: &mut ::std::string::String,
|
181 194 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
182 195 | use ::std::fmt::Write as _;
|
183 196 | ::std::write!(output, "/").expect("formatting should succeed");
|
184 197 | ::std::result::Result::Ok(())
|
185 198 | }
|
186 199 | #[allow(clippy::unnecessary_wraps)]
|
187 200 | fn update_http_builder(
|
188 201 | input: &crate::operation::disable_kinesis_streaming_destination::DisableKinesisStreamingDestinationInput,
|
189 202 | builder: ::http::request::Builder,
|
190 203 | ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
191 204 | let mut uri = ::std::string::String::new();
|
192 205 | uri_base(input, &mut uri)?;
|
193 206 | ::std::result::Result::Ok(builder.method("POST").uri(uri))
|
194 207 | }
|
195 208 | let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
|
196 209 | builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-amz-json-1.0");
|
197 210 | builder = _header_serialization_settings.set_default_header(
|
198 211 | builder,
|
199 212 | ::http::header::HeaderName::from_static("x-amz-target"),
|
200 213 | "DynamoDB_20120810.DisableKinesisStreamingDestination",
|
201 214 | );
|
202 215 | builder
|
203 216 | };
|
204 217 | let body = ::aws_smithy_types::body::SdkBody::from(
|
205 218 | crate::protocol_serde::shape_disable_kinesis_streaming_destination::ser_disable_kinesis_streaming_destination_input(&input)?,
|
206 219 | );
|
207 220 | if let Some(content_length) = body.content_length() {
|
208 221 | let content_length = content_length.to_string();
|
209 222 | request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
|
210 223 | }
|
211 224 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
212 225 | }
|
213 226 | }
|
227 + | /* EndpointParamsInterceptorGenerator.kt:86 */
|
214 228 | #[derive(Debug)]
|
215 229 | struct DisableKinesisStreamingDestinationEndpointParamsInterceptor;
|
216 230 |
|
217 231 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DisableKinesisStreamingDestinationEndpointParamsInterceptor {
|
218 232 | fn name(&self) -> &'static str {
|
219 233 | "DisableKinesisStreamingDestinationEndpointParamsInterceptor"
|
220 234 | }
|
221 235 |
|
222 236 | fn read_before_execution(
|
223 237 | &self,
|
224 238 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
225 239 | '_,
|
226 240 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
227 241 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
228 242 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
229 243 | >,
|
230 244 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
231 245 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
232 246 | let _input = context
|
233 247 | .input()
|
234 248 | .downcast_ref::<DisableKinesisStreamingDestinationInput>()
|
235 249 | .ok_or("failed to downcast to DisableKinesisStreamingDestinationInput")?;
|
236 250 |
|
237 251 | let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
|
238 252 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
239 253 | })?;
|
240 254 | cfg.interceptor_state()
|
241 255 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
242 256 | ::std::result::Result::Ok(())
|
243 257 | }
|
244 258 | }
|
245 259 |
|
246 260 | // The get_* functions below are generated from JMESPath expressions in the
|
247 261 | // operationContextParams trait. They target the operation's input shape.
|
248 262 |
|
263 + | /* OperationErrorGenerator.kt:79 */
|
249 264 | /// Error type for the `DisableKinesisStreamingDestinationError` operation.
|
265 + | /* RustType.kt:516 */
|
250 266 | #[non_exhaustive]
|
267 + | /* RustType.kt:516 */
|
251 268 | #[derive(::std::fmt::Debug)]
|
252 - | pub enum DisableKinesisStreamingDestinationError {
|
253 - | /// <p>An error occurred on the server side.</p>
|
269 + | pub /* OperationErrorGenerator.kt:81 */ enum DisableKinesisStreamingDestinationError {
|
270 + | /// /* OperationErrorGenerator.kt:83 */<p>An error occurred on the server side.</p>
|
271 + | /* OperationErrorGenerator.kt:86 */
|
254 272 | InternalServerError(crate::types::error::InternalServerError),
|
273 + | /* OperationErrorGenerator.kt:83 */
|
255 274 | #[allow(missing_docs)] // documentation missing in model
|
275 + | /* OperationErrorGenerator.kt:86 */
|
256 276 | InvalidEndpointError(crate::types::error::InvalidEndpointError),
|
257 - | /// <p>There is no limit to the number of daily on-demand backups that can be taken.</p>
|
277 + | /// /* OperationErrorGenerator.kt:83 */<p>There is no limit to the number of daily on-demand backups that can be taken.</p>
|
258 278 | /// <p>Up to 50 simultaneous table operations are allowed per account. These operations include <code>CreateTable</code>, <code>UpdateTable</code>, <code>DeleteTable</code>,<code>UpdateTimeToLive</code>, <code>RestoreTableFromBackup</code>, and <code>RestoreTableToPointInTime</code>.</p>
|
259 279 | /// <p>The only exception is when you are creating a table with one or more secondary indexes. You can have up to 25 such requests running at a time; however, if the table or index specifications are complex, DynamoDB might temporarily reduce the number of concurrent operations.</p>
|
260 280 | /// <p>There is a soft account quota of 256 tables.</p>
|
281 + | /* OperationErrorGenerator.kt:86 */
|
261 282 | LimitExceededError(crate::types::error::LimitExceededError),
|
262 - | /// <p>The operation conflicts with the resource's availability. For example, you attempted to recreate an existing table, or tried to delete a table currently in the <code>CREATING</code> state.</p>
|
283 + | /// /* OperationErrorGenerator.kt:83 */<p>The operation conflicts with the resource's availability. For example, you attempted to recreate an existing table, or tried to delete a table currently in the <code>CREATING</code> state.</p>
|
284 + | /* OperationErrorGenerator.kt:86 */
|
263 285 | ResourceInUseError(crate::types::error::ResourceInUseError),
|
264 - | /// <p>The operation tried to access a nonexistent table or index. The resource might not be specified correctly, or its status might not be <code>ACTIVE</code>.</p>
|
286 + | /// /* OperationErrorGenerator.kt:83 */<p>The operation tried to access a nonexistent table or index. The resource might not be specified correctly, or its status might not be <code>ACTIVE</code>.</p>
|
287 + | /* OperationErrorGenerator.kt:86 */
|
265 288 | ResourceNotFoundError(crate::types::error::ResourceNotFoundError),
|
289 + | /* OperationErrorGenerator.kt:88 */
|
266 290 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
267 291 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
268 292 | variable wildcard pattern and check `.code()`:
|
269 293 | \
|
270 294 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
271 295 | \
|
272 296 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-DisableKinesisStreamingDestinationError) for what information is available for the error.")]
|
273 297 | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
298 + | /* OperationErrorGenerator.kt:81 */
|
274 299 | }
|
300 + | /* OperationErrorGenerator.kt:218 */
|
275 301 | impl DisableKinesisStreamingDestinationError {
|
302 + | /* OperationErrorGenerator.kt:219 */
|
276 303 | /// Creates the `DisableKinesisStreamingDestinationError::Unhandled` variant from any error type.
|
277 304 | pub fn unhandled(
|
278 305 | err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
|
279 306 | ) -> Self {
|
280 307 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
281 308 | source: err.into(),
|
282 309 | meta: ::std::default::Default::default(),
|
283 310 | })
|
284 311 | }
|
285 312 |
|
286 313 | /// Creates the `DisableKinesisStreamingDestinationError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
|
287 314 | pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
|
288 315 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
289 316 | source: err.clone().into(),
|
290 317 | meta: err,
|
291 318 | })
|
292 319 | }
|
293 - | ///
|
320 + | /// /* OperationErrorGenerator.kt:236 */
|
294 321 | /// Returns error metadata, which includes the error code, message,
|
295 322 | /// request ID, and potentially additional information.
|
296 323 | ///
|
324 + | /* OperationErrorGenerator.kt:242 */
|
297 325 | pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
326 + | /* OperationErrorGenerator.kt:243 */
|
298 327 | match self {
|
328 + | /* OperationErrorGenerator.kt:246 */
|
299 329 | Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
330 + | /* OperationErrorGenerator.kt:246 */
|
300 331 | Self::InvalidEndpointError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
332 + | /* OperationErrorGenerator.kt:246 */
|
301 333 | Self::LimitExceededError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
334 + | /* OperationErrorGenerator.kt:246 */
|
302 335 | Self::ResourceInUseError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
336 + | /* OperationErrorGenerator.kt:246 */
|
303 337 | Self::ResourceNotFoundError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
304 - | Self::Unhandled(e) => &e.meta,
|
338 + | /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
|
339 + | /* OperationErrorGenerator.kt:243 */
|
305 340 | }
|
341 + | /* OperationErrorGenerator.kt:242 */
|
306 342 | }
|
343 + | /* OperationErrorGenerator.kt:257 */
|
307 344 | /// Returns `true` if the error kind is `DisableKinesisStreamingDestinationError::InternalServerError`.
|
345 + | /* OperationErrorGenerator.kt:258 */
|
308 346 | pub fn is_internal_server_error(&self) -> bool {
|
347 + | /* OperationErrorGenerator.kt:259 */
|
309 348 | matches!(self, Self::InternalServerError(_))
|
349 + | /* OperationErrorGenerator.kt:258 */
|
310 350 | }
|
351 + | /* OperationErrorGenerator.kt:257 */
|
311 352 | /// Returns `true` if the error kind is `DisableKinesisStreamingDestinationError::InvalidEndpointError`.
|
353 + | /* OperationErrorGenerator.kt:258 */
|
312 354 | pub fn is_invalid_endpoint_error(&self) -> bool {
|
355 + | /* OperationErrorGenerator.kt:259 */
|
313 356 | matches!(self, Self::InvalidEndpointError(_))
|
357 + | /* OperationErrorGenerator.kt:258 */
|
314 358 | }
|
359 + | /* OperationErrorGenerator.kt:257 */
|
315 360 | /// Returns `true` if the error kind is `DisableKinesisStreamingDestinationError::LimitExceededError`.
|
361 + | /* OperationErrorGenerator.kt:258 */
|
316 362 | pub fn is_limit_exceeded_error(&self) -> bool {
|
363 + | /* OperationErrorGenerator.kt:259 */
|
317 364 | matches!(self, Self::LimitExceededError(_))
|
365 + | /* OperationErrorGenerator.kt:258 */
|
318 366 | }
|
367 + | /* OperationErrorGenerator.kt:257 */
|
319 368 | /// Returns `true` if the error kind is `DisableKinesisStreamingDestinationError::ResourceInUseError`.
|
369 + | /* OperationErrorGenerator.kt:258 */
|
320 370 | pub fn is_resource_in_use_error(&self) -> bool {
|
371 + | /* OperationErrorGenerator.kt:259 */
|
321 372 | matches!(self, Self::ResourceInUseError(_))
|
373 + | /* OperationErrorGenerator.kt:258 */
|
322 374 | }
|
375 + | /* OperationErrorGenerator.kt:257 */
|
323 376 | /// Returns `true` if the error kind is `DisableKinesisStreamingDestinationError::ResourceNotFoundError`.
|
377 + | /* OperationErrorGenerator.kt:258 */
|
324 378 | pub fn is_resource_not_found_error(&self) -> bool {
|
379 + | /* OperationErrorGenerator.kt:259 */
|
325 380 | matches!(self, Self::ResourceNotFoundError(_))
|
381 + | /* OperationErrorGenerator.kt:258 */
|
326 382 | }
|
383 + | /* OperationErrorGenerator.kt:218 */
|
327 384 | }
|
385 + | /* OperationErrorGenerator.kt:269 */
|
328 386 | impl ::std::error::Error for DisableKinesisStreamingDestinationError {
|
387 + | /* OperationErrorGenerator.kt:270 */
|
329 388 | fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
389 + | /* OperationErrorGenerator.kt:318 */
|
330 390 | match self {
|
331 - | Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
|
332 - | Self::InvalidEndpointError(_inner) => ::std::option::Option::Some(_inner),
|
333 - | Self::LimitExceededError(_inner) => ::std::option::Option::Some(_inner),
|
334 - | Self::ResourceInUseError(_inner) => ::std::option::Option::Some(_inner),
|
335 - | Self::ResourceNotFoundError(_inner) => ::std::option::Option::Some(_inner),
|
336 - | Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
|
391 + | /* OperationErrorGenerator.kt:321 */
|
392 + | Self::InternalServerError(_inner) =>
|
393 + | /* OperationErrorGenerator.kt:283 */
|
394 + | {
|
395 + | ::std::option::Option::Some(_inner)
|
396 + | }
|
397 + | ,
|
398 + | /* OperationErrorGenerator.kt:321 */
|
399 + | Self::InvalidEndpointError(_inner) =>
|
400 + | /* OperationErrorGenerator.kt:283 */
|
401 + | {
|
402 + | ::std::option::Option::Some(_inner)
|
403 + | }
|
404 + | ,
|
405 + | /* OperationErrorGenerator.kt:321 */
|
406 + | Self::LimitExceededError(_inner) =>
|
407 + | /* OperationErrorGenerator.kt:283 */
|
408 + | {
|
409 + | ::std::option::Option::Some(_inner)
|
410 + | }
|
411 + | ,
|
412 + | /* OperationErrorGenerator.kt:321 */
|
413 + | Self::ResourceInUseError(_inner) =>
|
414 + | /* OperationErrorGenerator.kt:283 */
|
415 + | {
|
416 + | ::std::option::Option::Some(_inner)
|
417 + | }
|
418 + | ,
|
419 + | /* OperationErrorGenerator.kt:321 */
|
420 + | Self::ResourceNotFoundError(_inner) =>
|
421 + | /* OperationErrorGenerator.kt:283 */
|
422 + | {
|
423 + | ::std::option::Option::Some(_inner)
|
424 + | }
|
425 + | ,
|
426 + | /* OperationErrorGenerator.kt:326 */
|
427 + | Self::Unhandled(_inner) => {
|
428 + | /* OperationErrorGenerator.kt:279 */
|
429 + | ::std::option::Option::Some(&*_inner.source)
|
430 + | /* OperationErrorGenerator.kt:326 */
|
431 + | } /* OperationErrorGenerator.kt:318 */
|
337 432 | }
|
433 + | /* OperationErrorGenerator.kt:270 */
|
338 434 | }
|
435 + | /* OperationErrorGenerator.kt:269 */
|
339 436 | }
|
437 + | /* OperationErrorGenerator.kt:133 */
|
340 438 | impl ::std::fmt::Display for DisableKinesisStreamingDestinationError {
|
439 + | /* OperationErrorGenerator.kt:134 */
|
341 440 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
441 + | /* OperationErrorGenerator.kt:318 */
|
342 442 | match self {
|
343 - | Self::InternalServerError(_inner) => _inner.fmt(f),
|
344 - | Self::InvalidEndpointError(_inner) => _inner.fmt(f),
|
345 - | Self::LimitExceededError(_inner) => _inner.fmt(f),
|
346 - | Self::ResourceInUseError(_inner) => _inner.fmt(f),
|
347 - | Self::ResourceNotFoundError(_inner) => _inner.fmt(f),
|
443 + | /* OperationErrorGenerator.kt:321 */
|
444 + | Self::InternalServerError(_inner) =>
|
445 + | /* OperationErrorGenerator.kt:151 */
|
446 + | {
|
447 + | _inner.fmt(f)
|
448 + | }
|
449 + | ,
|
450 + | /* OperationErrorGenerator.kt:321 */
|
451 + | Self::InvalidEndpointError(_inner) =>
|
452 + | /* OperationErrorGenerator.kt:151 */
|
453 + | {
|
454 + | _inner.fmt(f)
|
455 + | }
|
456 + | ,
|
457 + | /* OperationErrorGenerator.kt:321 */
|
458 + | Self::LimitExceededError(_inner) =>
|
459 + | /* OperationErrorGenerator.kt:151 */
|
460 + | {
|
461 + | _inner.fmt(f)
|
462 + | }
|
463 + | ,
|
464 + | /* OperationErrorGenerator.kt:321 */
|
465 + | Self::ResourceInUseError(_inner) =>
|
466 + | /* OperationErrorGenerator.kt:151 */
|
467 + | {
|
468 + | _inner.fmt(f)
|
469 + | }
|
470 + | ,
|
471 + | /* OperationErrorGenerator.kt:321 */
|
472 + | Self::ResourceNotFoundError(_inner) =>
|
473 + | /* OperationErrorGenerator.kt:151 */
|
474 + | {
|
475 + | _inner.fmt(f)
|
476 + | }
|
477 + | ,
|
478 + | /* OperationErrorGenerator.kt:326 */
|
348 479 | Self::Unhandled(_inner) => {
|
480 + | /* OperationErrorGenerator.kt:139 */
|
349 481 | if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
|
350 482 | write!(f, "unhandled error ({code})")
|
351 483 | } else {
|
352 484 | f.write_str("unhandled error")
|
353 485 | }
|
486 + | /* OperationErrorGenerator.kt:326 */
|
487 + | } /* OperationErrorGenerator.kt:318 */
|
354 488 | }
|
489 + | /* OperationErrorGenerator.kt:134 */
|
355 490 | }
|
356 - | }
|
491 + | /* OperationErrorGenerator.kt:133 */
|
357 492 | }
|
493 + | /* OperationErrorGenerator.kt:182 */
|
358 494 | impl ::aws_smithy_types::retry::ProvideErrorKind for DisableKinesisStreamingDestinationError {
|
495 + | /* OperationErrorGenerator.kt:186 */
|
359 496 | fn code(&self) -> ::std::option::Option<&str> {
|
497 + | /* OperationErrorGenerator.kt:187 */
|
360 498 | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
|
499 + | /* OperationErrorGenerator.kt:186 */
|
361 500 | }
|
501 + | /* OperationErrorGenerator.kt:190 */
|
362 502 | fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
|
503 + | /* OperationErrorGenerator.kt:197 */
|
363 504 | ::std::option::Option::None
|
505 + | /* OperationErrorGenerator.kt:190 */
|
364 506 | }
|
507 + | /* OperationErrorGenerator.kt:182 */
|
365 508 | }
|
509 + | /* OperationErrorGenerator.kt:163 */
|
366 510 | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DisableKinesisStreamingDestinationError {
|
511 + | /* OperationErrorGenerator.kt:164 */
|
367 512 | fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
513 + | /* OperationErrorGenerator.kt:318 */
|
368 514 | match self {
|
369 - | Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
370 - | Self::InvalidEndpointError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
371 - | Self::LimitExceededError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
372 - | Self::ResourceInUseError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
373 - | Self::ResourceNotFoundError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
374 - | Self::Unhandled(_inner) => &_inner.meta,
|
515 + | /* OperationErrorGenerator.kt:321 */
|
516 + | Self::InternalServerError(_inner) =>
|
517 + | /* OperationErrorGenerator.kt:169 */
|
518 + | {
|
519 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
520 + | }
|
521 + | ,
|
522 + | /* OperationErrorGenerator.kt:321 */
|
523 + | Self::InvalidEndpointError(_inner) =>
|
524 + | /* OperationErrorGenerator.kt:169 */
|
525 + | {
|
526 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
527 + | }
|
528 + | ,
|
529 + | /* OperationErrorGenerator.kt:321 */
|
530 + | Self::LimitExceededError(_inner) =>
|
531 + | /* OperationErrorGenerator.kt:169 */
|
532 + | {
|
533 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
534 + | }
|
535 + | ,
|
536 + | /* OperationErrorGenerator.kt:321 */
|
537 + | Self::ResourceInUseError(_inner) =>
|
538 + | /* OperationErrorGenerator.kt:169 */
|
539 + | {
|
540 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
541 + | }
|
542 + | ,
|
543 + | /* OperationErrorGenerator.kt:321 */
|
544 + | Self::ResourceNotFoundError(_inner) =>
|
545 + | /* OperationErrorGenerator.kt:169 */
|
546 + | {
|
547 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
548 + | }
|
549 + | ,
|
550 + | /* OperationErrorGenerator.kt:326 */
|
551 + | Self::Unhandled(_inner) => {
|
552 + | /* OperationErrorGenerator.kt:168 */
|
553 + | &_inner.meta
|
554 + | /* OperationErrorGenerator.kt:326 */
|
555 + | } /* OperationErrorGenerator.kt:318 */
|
375 556 | }
|
557 + | /* OperationErrorGenerator.kt:164 */
|
376 558 | }
|
559 + | /* OperationErrorGenerator.kt:163 */
|
377 560 | }
|
561 + | /* OperationErrorGenerator.kt:109 */
|
378 562 | impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for DisableKinesisStreamingDestinationError {
|
563 + | /* OperationErrorGenerator.kt:110 */
|
379 564 | fn create_unhandled_error(
|
380 565 | source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
|
381 566 | meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
|
382 567 | ) -> Self {
|
568 + | /* OperationErrorGenerator.kt:121 */
|
383 569 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
384 570 | source,
|
385 571 | meta: meta.unwrap_or_default(),
|
386 572 | })
|
573 + | /* OperationErrorGenerator.kt:110 */
|
387 574 | }
|
575 + | /* OperationErrorGenerator.kt:109 */
|
388 576 | }
|
389 577 |
|
578 + | /* CodegenDelegator.kt:255 */
|
390 579 | pub use crate::operation::disable_kinesis_streaming_destination::_disable_kinesis_streaming_destination_output::DisableKinesisStreamingDestinationOutput;
|
391 580 |
|
581 + | /* CodegenDelegator.kt:255 */
|
392 582 | pub use crate::operation::disable_kinesis_streaming_destination::_disable_kinesis_streaming_destination_input::DisableKinesisStreamingDestinationInput;
|
393 583 |
|
584 + | /* RustModule.kt:172 */
|
394 585 | mod _disable_kinesis_streaming_destination_input;
|
395 586 |
|
587 + | /* RustModule.kt:172 */
|
396 588 | mod _disable_kinesis_streaming_destination_output;
|
397 589 |
|
398 - | /// Builders
|
590 + | /// /* CodegenDelegator.kt:51 */Builders
|
399 591 | pub mod builders;
|