1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 2 | /// The service builder for [`ConstraintsService`].
|
3 3 | ///
|
4 4 | /// Constructed via [`ConstraintsService::builder`].
|
5 5 | pub struct ConstraintsServiceBuilder<Body, L, HttpPl, ModelPl> {
|
6 6 | constrained_http_bound_shapes_operation: Option<::aws_smithy_http_server::routing::Route<Body>>,
|
7 7 | constrained_http_payload_bound_shape_operation:
|
8 8 | Option<::aws_smithy_http_server::routing::Route<Body>>,
|
9 + | constrained_list_with_indirectly_constrained_aggregate_operation:
|
10 + | Option<::aws_smithy_http_server::routing::Route<Body>>,
|
9 11 | constrained_recursive_shapes_operation: Option<::aws_smithy_http_server::routing::Route<Body>>,
|
10 12 | constrained_shapes_only_in_output_operation:
|
11 13 | Option<::aws_smithy_http_server::routing::Route<Body>>,
|
12 14 | constrained_shapes_operation: Option<::aws_smithy_http_server::routing::Route<Body>>,
|
13 15 | event_streams_operation: Option<::aws_smithy_http_server::routing::Route<Body>>,
|
14 16 | http_prefix_headers_targeting_length_map_operation:
|
15 17 | Option<::aws_smithy_http_server::routing::Route<Body>>,
|
16 18 | non_streaming_blob_operation: Option<::aws_smithy_http_server::routing::Route<Body>>,
|
17 19 | query_params_targeting_length_map_operation:
|
18 20 | Option<::aws_smithy_http_server::routing::Route<Body>>,
|
19 21 | query_params_targeting_map_of_enum_string_operation:
|
20 22 | Option<::aws_smithy_http_server::routing::Route<Body>>,
|
21 23 | query_params_targeting_map_of_length_list_of_pattern_string_operation:
|
22 24 | Option<::aws_smithy_http_server::routing::Route<Body>>,
|
23 25 | query_params_targeting_map_of_length_pattern_string_operation:
|
24 26 | Option<::aws_smithy_http_server::routing::Route<Body>>,
|
25 27 | query_params_targeting_map_of_length_string_operation:
|
26 28 | Option<::aws_smithy_http_server::routing::Route<Body>>,
|
27 29 | query_params_targeting_map_of_list_of_enum_string_operation:
|
28 30 | Option<::aws_smithy_http_server::routing::Route<Body>>,
|
29 31 | query_params_targeting_map_of_list_of_length_pattern_string_operation:
|
30 32 | Option<::aws_smithy_http_server::routing::Route<Body>>,
|
31 33 | query_params_targeting_map_of_list_of_length_string_operation:
|
32 34 | Option<::aws_smithy_http_server::routing::Route<Body>>,
|
33 35 | query_params_targeting_map_of_list_of_pattern_string_operation:
|
34 36 | Option<::aws_smithy_http_server::routing::Route<Body>>,
|
35 37 | query_params_targeting_map_of_pattern_string_operation:
|
36 38 | Option<::aws_smithy_http_server::routing::Route<Body>>,
|
37 39 | query_params_targeting_map_of_set_of_length_string_operation:
|
38 40 | Option<::aws_smithy_http_server::routing::Route<Body>>,
|
344 346 | > + Clone
|
345 347 | + Send
|
346 348 | + 'static,
|
347 349 | S::Future: Send + 'static,
|
348 350 | {
|
349 351 | self.constrained_http_payload_bound_shape_operation =
|
350 352 | Some(::aws_smithy_http_server::routing::Route::new(svc));
|
351 353 | self
|
352 354 | }
|
353 355 |
|
356 + | /// Sets the [`ConstrainedListWithIndirectlyConstrainedAggregateOperation`](crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation) operation.
|
357 + | ///
|
358 + | /// This should be an async function satisfying the [`Handler`](::aws_smithy_http_server::operation::Handler) trait.
|
359 + | /// See the [operation module documentation](::aws_smithy_http_server::operation) for more information.
|
360 + | ///
|
361 + | /// # Example
|
362 + | ///
|
363 + | /// ```no_run
|
364 + | /// use constraints_without_public_constrained_types::{ConstraintsService, ConstraintsServiceConfig};
|
365 + | ///
|
366 + | /// use constraints_without_public_constrained_types::{input, output, error};
|
367 + | ///
|
368 + | /// async fn handler(input: input::ConstrainedListWithIndirectlyConstrainedAggregateOperationInput) -> Result<output::ConstrainedListWithIndirectlyConstrainedAggregateOperationOutput, error::ConstrainedListWithIndirectlyConstrainedAggregateOperationError> {
|
369 + | /// todo!()
|
370 + | /// }
|
371 + | ///
|
372 + | /// let config = ConstraintsServiceConfig::builder().build();
|
373 + | /// let app = ConstraintsService::builder(config)
|
374 + | /// .constrained_list_with_indirectly_constrained_aggregate_operation(handler)
|
375 + | /// /* Set other handlers */
|
376 + | /// .build()
|
377 + | /// .unwrap();
|
378 + | /// # let app: ConstraintsService<::aws_smithy_http_server::routing::RoutingService<::aws_smithy_http_server::protocol::rest::router::RestRouter<::aws_smithy_http_server::routing::Route>, ::aws_smithy_http_server::protocol::rest_json_1::RestJson1>> = app;
|
379 + | /// ```
|
380 + | ///
|
381 + | pub fn constrained_list_with_indirectly_constrained_aggregate_operation<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
|
382 + | where
|
383 + | HandlerType: ::aws_smithy_http_server::operation::Handler<crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation, HandlerExtractors>,
|
384 + |
|
385 + | ModelPl: ::aws_smithy_http_server::plugin::Plugin<
|
386 + | ConstraintsService<L>,
|
387 + | crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation,
|
388 + | ::aws_smithy_http_server::operation::IntoService<crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation, HandlerType>
|
389 + | >,
|
390 + | ::aws_smithy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_http_server::plugin::Plugin<
|
391 + | ConstraintsService<L>,
|
392 + | crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation,
|
393 + | ModelPl::Output
|
394 + | >,
|
395 + | HttpPl: ::aws_smithy_http_server::plugin::Plugin<
|
396 + | ConstraintsService<L>,
|
397 + | crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation,
|
398 + | <
|
399 + | ::aws_smithy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
|
400 + | as ::aws_smithy_http_server::plugin::Plugin<
|
401 + | ConstraintsService<L>,
|
402 + | crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation,
|
403 + | ModelPl::Output
|
404 + | >
|
405 + | >::Output
|
406 + | >,
|
407 + |
|
408 + | HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
|
409 + | <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
|
410 + |
|
411 + | {
|
412 + | use ::aws_smithy_http_server::operation::OperationShapeExt;
|
413 + | use ::aws_smithy_http_server::plugin::Plugin;
|
414 + | let svc = crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation::from_handler(handler);
|
415 + | let svc = self.model_plugin.apply(svc);
|
416 + | let svc = ::aws_smithy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
|
417 + | .apply(svc);
|
418 + | let svc = self.http_plugin.apply(svc);
|
419 + | self.constrained_list_with_indirectly_constrained_aggregate_operation_custom(svc)
|
420 + | }
|
421 + |
|
422 + | /// Sets the [`ConstrainedListWithIndirectlyConstrainedAggregateOperation`](crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation) operation.
|
423 + | ///
|
424 + | /// This should be an async function satisfying the [`Handler`](::aws_smithy_http_server::operation::Handler) trait.
|
425 + | /// See the [operation module documentation](::aws_smithy_http_server::operation) for more information.
|
426 + | ///
|
427 + | /// # Example
|
428 + | ///
|
429 + | /// ```no_run
|
430 + | /// use constraints_without_public_constrained_types::{ConstraintsService, ConstraintsServiceConfig};
|
431 + | ///
|
432 + | /// use constraints_without_public_constrained_types::{input, output, error};
|
433 + | ///
|
434 + | /// async fn handler(input: input::ConstrainedListWithIndirectlyConstrainedAggregateOperationInput) -> Result<output::ConstrainedListWithIndirectlyConstrainedAggregateOperationOutput, error::ConstrainedListWithIndirectlyConstrainedAggregateOperationError> {
|
435 + | /// todo!()
|
436 + | /// }
|
437 + | ///
|
438 + | /// let config = ConstraintsServiceConfig::builder().build();
|
439 + | /// let svc = ::tower::util::service_fn(handler);
|
440 + | /// let app = ConstraintsService::builder(config)
|
441 + | /// .constrained_list_with_indirectly_constrained_aggregate_operation_service(svc)
|
442 + | /// /* Set other handlers */
|
443 + | /// .build()
|
444 + | /// .unwrap();
|
445 + | /// # let app: ConstraintsService<::aws_smithy_http_server::routing::RoutingService<::aws_smithy_http_server::protocol::rest::router::RestRouter<::aws_smithy_http_server::routing::Route>, ::aws_smithy_http_server::protocol::rest_json_1::RestJson1>> = app;
|
446 + | /// ```
|
447 + | ///
|
448 + | pub fn constrained_list_with_indirectly_constrained_aggregate_operation_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
|
449 + | where
|
450 + | S: ::aws_smithy_http_server::operation::OperationService<crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation, ServiceExtractors>,
|
451 + |
|
452 + | ModelPl: ::aws_smithy_http_server::plugin::Plugin<
|
453 + | ConstraintsService<L>,
|
454 + | crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation,
|
455 + | ::aws_smithy_http_server::operation::Normalize<crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation, S>
|
456 + | >,
|
457 + | ::aws_smithy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_http_server::plugin::Plugin<
|
458 + | ConstraintsService<L>,
|
459 + | crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation,
|
460 + | ModelPl::Output
|
461 + | >,
|
462 + | HttpPl: ::aws_smithy_http_server::plugin::Plugin<
|
463 + | ConstraintsService<L>,
|
464 + | crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation,
|
465 + | <
|
466 + | ::aws_smithy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
|
467 + | as ::aws_smithy_http_server::plugin::Plugin<
|
468 + | ConstraintsService<L>,
|
469 + | crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation,
|
470 + | ModelPl::Output
|
471 + | >
|
472 + | >::Output
|
473 + | >,
|
474 + |
|
475 + | HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
|
476 + | <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
|
477 + |
|
478 + | {
|
479 + | use ::aws_smithy_http_server::operation::OperationShapeExt;
|
480 + | use ::aws_smithy_http_server::plugin::Plugin;
|
481 + | let svc = crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation::from_service(service);
|
482 + | let svc = self.model_plugin.apply(svc);
|
483 + | let svc = ::aws_smithy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
|
484 + | .apply(svc);
|
485 + | let svc = self.http_plugin.apply(svc);
|
486 + | self.constrained_list_with_indirectly_constrained_aggregate_operation_custom(svc)
|
487 + | }
|
488 + |
|
489 + | /// Sets the [`ConstrainedListWithIndirectlyConstrainedAggregateOperation`](crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation) to a custom [`Service`](tower::Service).
|
490 + | /// not constrained by the Smithy contract.
|
491 + | fn constrained_list_with_indirectly_constrained_aggregate_operation_custom<S>(
|
492 + | mut self,
|
493 + | svc: S,
|
494 + | ) -> Self
|
495 + | where
|
496 + | S: ::tower::Service<
|
497 + | ::http::Request<Body>,
|
498 + | Response = ::http::Response<::aws_smithy_http_server::body::BoxBody>,
|
499 + | Error = ::std::convert::Infallible,
|
500 + | > + Clone
|
501 + | + Send
|
502 + | + 'static,
|
503 + | S::Future: Send + 'static,
|
504 + | {
|
505 + | self.constrained_list_with_indirectly_constrained_aggregate_operation =
|
506 + | Some(::aws_smithy_http_server::routing::Route::new(svc));
|
507 + | self
|
508 + | }
|
509 + |
|
354 510 | /// Sets the [`ConstrainedRecursiveShapesOperation`](crate::operation_shape::ConstrainedRecursiveShapesOperation) operation.
|
355 511 | ///
|
356 512 | /// This should be an async function satisfying the [`Handler`](::aws_smithy_http_server::operation::Handler) trait.
|
357 513 | /// See the [operation module documentation](::aws_smithy_http_server::operation) for more information.
|
358 514 | ///
|
359 515 | /// # Example
|
360 516 | ///
|
361 517 | /// ```no_run
|
362 518 | /// use constraints_without_public_constrained_types::{ConstraintsService, ConstraintsServiceConfig};
|
363 519 | ///
|
3289 3451 | operation_names2setter_methods: missing_operation_names,
|
3290 3452 | });
|
3291 3453 | }
|
3292 3454 | let unexpected_error_msg = "this should never panic since we are supposed to check beforehand that a handler has been registered for this operation; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues";
|
3293 3455 |
|
3294 3456 | crate::model::LengthPatternString::compile_regex();
|
3295 3457 | crate::model::PatternString::compile_regex();
|
3296 3458 |
|
3297 3459 | ::aws_smithy_http_server::protocol::rest::router::RestRouter::from_iter([(request_specs::constrained_http_bound_shapes_operation(), self.constrained_http_bound_shapes_operation.expect(unexpected_error_msg)),
|
3298 3460 | (request_specs::constrained_http_payload_bound_shape_operation(), self.constrained_http_payload_bound_shape_operation.expect(unexpected_error_msg)),
|
3461 + | (request_specs::constrained_list_with_indirectly_constrained_aggregate_operation(), self.constrained_list_with_indirectly_constrained_aggregate_operation.expect(unexpected_error_msg)),
|
3299 3462 | (request_specs::constrained_recursive_shapes_operation(), self.constrained_recursive_shapes_operation.expect(unexpected_error_msg)),
|
3300 3463 | (request_specs::constrained_shapes_only_in_output_operation(), self.constrained_shapes_only_in_output_operation.expect(unexpected_error_msg)),
|
3301 3464 | (request_specs::constrained_shapes_operation(), self.constrained_shapes_operation.expect(unexpected_error_msg)),
|
3302 3465 | (request_specs::event_streams_operation(), self.event_streams_operation.expect(unexpected_error_msg)),
|
3303 3466 | (request_specs::http_prefix_headers_targeting_length_map_operation(), self.http_prefix_headers_targeting_length_map_operation.expect(unexpected_error_msg)),
|
3304 3467 | (request_specs::non_streaming_blob_operation(), self.non_streaming_blob_operation.expect(unexpected_error_msg)),
|
3305 3468 | (request_specs::query_params_targeting_length_map_operation(), self.query_params_targeting_length_map_operation.expect(unexpected_error_msg)),
|
3306 3469 | (request_specs::query_params_targeting_map_of_enum_string_operation(), self.query_params_targeting_map_of_enum_string_operation.expect(unexpected_error_msg)),
|
3307 3470 | (request_specs::query_params_targeting_map_of_length_list_of_pattern_string_operation(), self.query_params_targeting_map_of_length_list_of_pattern_string_operation.expect(unexpected_error_msg)),
|
3308 3471 | (request_specs::query_params_targeting_map_of_length_pattern_string_operation(), self.query_params_targeting_map_of_length_pattern_string_operation.expect(unexpected_error_msg)),
|
3309 3472 | (request_specs::query_params_targeting_map_of_length_string_operation(), self.query_params_targeting_map_of_length_string_operation.expect(unexpected_error_msg)),
|
3310 3473 | (request_specs::query_params_targeting_map_of_list_of_enum_string_operation(), self.query_params_targeting_map_of_list_of_enum_string_operation.expect(unexpected_error_msg)),
|
3311 3474 | (request_specs::query_params_targeting_map_of_list_of_length_pattern_string_operation(), self.query_params_targeting_map_of_list_of_length_pattern_string_operation.expect(unexpected_error_msg)),
|
3312 3475 | (request_specs::query_params_targeting_map_of_list_of_length_string_operation(), self.query_params_targeting_map_of_list_of_length_string_operation.expect(unexpected_error_msg)),
|
3313 3476 | (request_specs::query_params_targeting_map_of_list_of_pattern_string_operation(), self.query_params_targeting_map_of_list_of_pattern_string_operation.expect(unexpected_error_msg)),
|
3314 3477 | (request_specs::query_params_targeting_map_of_pattern_string_operation(), self.query_params_targeting_map_of_pattern_string_operation.expect(unexpected_error_msg)),
|
3315 3478 | (request_specs::query_params_targeting_map_of_set_of_length_string_operation(), self.query_params_targeting_map_of_set_of_length_string_operation.expect(unexpected_error_msg)),
|
3316 3479 | (request_specs::streaming_blob_operation(), self.streaming_blob_operation.expect(unexpected_error_msg)),])
|
3317 3480 | };
|
3318 3481 | let svc = ::aws_smithy_http_server::routing::RoutingService::new(router);
|
3319 3482 | let svc = svc.map(|s| s.layer(self.layer));
|
3320 3483 | Ok(ConstraintsService { svc })
|
3321 3484 | }
|
3322 3485 |
|
3323 3486 | /// Constructs a [`ConstraintsService`] from the arguments provided to the builder.
|
3324 3487 | /// Operations without a handler default to returning 500 Internal Server Error to the caller.
|
3325 3488 | ///
|
3326 3489 | /// Check out [`ConstraintsServiceBuilder::build`] if you'd prefer the builder to fail if one or more operations do
|
3327 3490 | /// not have a registered handler.
|
3328 3491 | pub fn build_unchecked(self) -> ConstraintsService<L::Service>
|
3329 3492 | where
|
3330 3493 | Body: Send + 'static,
|
3331 3494 | L: ::tower::Layer<
|
3332 3495 | ::aws_smithy_http_server::routing::RoutingService<
|
3333 3496 | ::aws_smithy_http_server::protocol::rest::router::RestRouter<
|
3334 3497 | ::aws_smithy_http_server::routing::Route<Body>,
|
3335 3498 | >,
|
3336 3499 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
3337 3500 | >,
|
3338 3501 | >,
|
3339 3502 | {
|
3340 3503 | let router = ::aws_smithy_http_server::protocol::rest::router::RestRouter::from_iter([(
|
3341 3504 | request_specs::constrained_http_bound_shapes_operation(),
|
3342 3505 | self.constrained_http_bound_shapes_operation.unwrap_or_else(|| {
|
3343 3506 | let svc = ::aws_smithy_http_server::operation::MissingFailure::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::default();
|
3344 3507 | ::aws_smithy_http_server::routing::Route::new(svc)
|
3345 3508 | })
|
3346 3509 | ),
|
3347 3510 | (
|
3348 3511 | request_specs::constrained_http_payload_bound_shape_operation(),
|
3349 3512 | self.constrained_http_payload_bound_shape_operation.unwrap_or_else(|| {
|
3350 3513 | let svc = ::aws_smithy_http_server::operation::MissingFailure::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::default();
|
3351 3514 | ::aws_smithy_http_server::routing::Route::new(svc)
|
3352 3515 | })
|
3353 3516 | ),
|
3517 + | (
|
3518 + | request_specs::constrained_list_with_indirectly_constrained_aggregate_operation(),
|
3519 + | self.constrained_list_with_indirectly_constrained_aggregate_operation.unwrap_or_else(|| {
|
3520 + | let svc = ::aws_smithy_http_server::operation::MissingFailure::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::default();
|
3521 + | ::aws_smithy_http_server::routing::Route::new(svc)
|
3522 + | })
|
3523 + | ),
|
3354 3524 | (
|
3355 3525 | request_specs::constrained_recursive_shapes_operation(),
|
3356 3526 | self.constrained_recursive_shapes_operation.unwrap_or_else(|| {
|
3357 3527 | let svc = ::aws_smithy_http_server::operation::MissingFailure::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::default();
|
3358 3528 | ::aws_smithy_http_server::routing::Route::new(svc)
|
3359 3529 | })
|
3360 3530 | ),
|
3361 3531 | (
|
3362 3532 | request_specs::constrained_shapes_only_in_output_operation(),
|
3363 3533 | self.constrained_shapes_only_in_output_operation.unwrap_or_else(|| {
|
3848 4033 | Body,
|
3849 4034 | L,
|
3850 4035 | HttpPl: ::aws_smithy_http_server::plugin::HttpMarker,
|
3851 4036 | ModelPl: ::aws_smithy_http_server::plugin::ModelMarker,
|
3852 4037 | >(
|
3853 4038 | config: ConstraintsServiceConfig<L, HttpPl, ModelPl>,
|
3854 4039 | ) -> ConstraintsServiceBuilder<Body, L, HttpPl, ModelPl> {
|
3855 4040 | ConstraintsServiceBuilder {
|
3856 4041 | constrained_http_bound_shapes_operation: None,
|
3857 4042 | constrained_http_payload_bound_shape_operation: None,
|
4043 + | constrained_list_with_indirectly_constrained_aggregate_operation: None,
|
3858 4044 | constrained_recursive_shapes_operation: None,
|
3859 4045 | constrained_shapes_only_in_output_operation: None,
|
3860 4046 | constrained_shapes_operation: None,
|
3861 4047 | event_streams_operation: None,
|
3862 4048 | http_prefix_headers_targeting_length_map_operation: None,
|
3863 4049 | non_streaming_blob_operation: None,
|
3864 4050 | query_params_targeting_length_map_operation: None,
|
3865 4051 | query_params_targeting_map_of_enum_string_operation: None,
|
3866 4052 | query_params_targeting_map_of_length_list_of_pattern_string_operation: None,
|
3867 4053 | query_params_targeting_map_of_length_pattern_string_operation: None,
|
3868 4054 | query_params_targeting_map_of_length_string_operation: None,
|
3869 4055 | query_params_targeting_map_of_list_of_enum_string_operation: None,
|
3870 4056 | query_params_targeting_map_of_list_of_length_pattern_string_operation: None,
|
3871 4057 | query_params_targeting_map_of_list_of_length_string_operation: None,
|
3872 4058 | query_params_targeting_map_of_list_of_pattern_string_operation: None,
|
3873 4059 | query_params_targeting_map_of_pattern_string_operation: None,
|
3874 4060 | query_params_targeting_map_of_set_of_length_string_operation: None,
|
3875 4061 | streaming_blob_operation: None,
|
3876 4062 | layer: config.layers,
|
3877 4063 | http_plugin: config.http_plugins,
|
3878 4064 | model_plugin: config.model_plugins,
|
3879 4065 | }
|
3880 4066 | }
|
3881 4067 |
|
3882 4068 | /// Constructs a builder for [`ConstraintsService`].
|
3883 4069 | /// You must specify what plugins should be applied to the operations in this service.
|
3884 4070 | ///
|
3885 4071 | /// Use [`ConstraintsService::builder_without_plugins`] if you don't need to apply plugins.
|
3886 4072 | ///
|
3887 4073 | /// Check out [`HttpPlugins`](::aws_smithy_http_server::plugin::HttpPlugins) and
|
3888 4074 | /// [`ModelPlugins`](::aws_smithy_http_server::plugin::ModelPlugins) if you need to apply
|
3889 4075 | /// multiple plugins.
|
3890 4076 | #[deprecated(
|
3891 4077 | since = "0.57.0",
|
3892 4078 | note = "please use the `builder` constructor and register plugins on the `ConstraintsServiceConfig` object instead; see https://github.com/smithy-lang/smithy-rs/discussions/3096"
|
3893 4079 | )]
|
3894 4080 | pub fn builder_with_plugins<
|
3895 4081 | Body,
|
3896 4082 | HttpPl: ::aws_smithy_http_server::plugin::HttpMarker,
|
3897 4083 | ModelPl: ::aws_smithy_http_server::plugin::ModelMarker,
|
3898 4084 | >(
|
3899 4085 | http_plugin: HttpPl,
|
3900 4086 | model_plugin: ModelPl,
|
3901 4087 | ) -> ConstraintsServiceBuilder<Body, ::tower::layer::util::Identity, HttpPl, ModelPl> {
|
3902 4088 | ConstraintsServiceBuilder {
|
3903 4089 | constrained_http_bound_shapes_operation: None,
|
3904 4090 | constrained_http_payload_bound_shape_operation: None,
|
4091 + | constrained_list_with_indirectly_constrained_aggregate_operation: None,
|
3905 4092 | constrained_recursive_shapes_operation: None,
|
3906 4093 | constrained_shapes_only_in_output_operation: None,
|
3907 4094 | constrained_shapes_operation: None,
|
3908 4095 | event_streams_operation: None,
|
3909 4096 | http_prefix_headers_targeting_length_map_operation: None,
|
3910 4097 | non_streaming_blob_operation: None,
|
3911 4098 | query_params_targeting_length_map_operation: None,
|
3912 4099 | query_params_targeting_map_of_enum_string_operation: None,
|
3913 4100 | query_params_targeting_map_of_length_list_of_pattern_string_operation: None,
|
3914 4101 | query_params_targeting_map_of_length_pattern_string_operation: None,
|
4037 4224 | self.svc.call(request)
|
4038 4225 | }
|
4039 4226 | }
|
4040 4227 |
|
4041 4228 | /// An enumeration of all [operations](https://smithy.io/2.0/spec/service-types.html#operation) in ConstraintsService.
|
4042 4229 | #[allow(clippy::enum_variant_names)]
|
4043 4230 | #[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
4044 4231 | pub enum Operation {
|
4045 4232 | ConstrainedHttpBoundShapesOperation,
|
4046 4233 | ConstrainedHttpPayloadBoundShapeOperation,
|
4234 + | ConstrainedListWithIndirectlyConstrainedAggregateOperation,
|
4047 4235 | ConstrainedRecursiveShapesOperation,
|
4048 4236 | ConstrainedShapesOnlyInOutputOperation,
|
4049 4237 | ConstrainedShapesOperation,
|
4050 4238 | EventStreamsOperation,
|
4051 4239 | HttpPrefixHeadersTargetingLengthMapOperation,
|
4052 4240 | NonStreamingBlobOperation,
|
4053 4241 | QueryParamsTargetingLengthMapOperation,
|
4054 4242 | QueryParamsTargetingMapOfEnumStringOperation,
|
4055 4243 | QueryParamsTargetingMapOfLengthListOfPatternStringOperation,
|
4056 4244 | QueryParamsTargetingMapOfLengthPatternStringOperation,
|
4057 4245 | QueryParamsTargetingMapOfLengthStringOperation,
|
4058 4246 | QueryParamsTargetingMapOfListOfEnumStringOperation,
|
4059 4247 | QueryParamsTargetingMapOfListOfLengthPatternStringOperation,
|
4060 4248 | QueryParamsTargetingMapOfListOfLengthStringOperation,
|
4061 4249 | QueryParamsTargetingMapOfListOfPatternStringOperation,
|
4062 4250 | QueryParamsTargetingMapOfPatternStringOperation,
|
4063 4251 | QueryParamsTargetingMapOfSetOfLengthStringOperation,
|
4064 4252 | StreamingBlobOperation,
|
4065 4253 | }
|
4066 4254 |
|
4067 4255 | impl Operation {
|
4068 4256 | /// Returns the [operations](https://smithy.io/2.0/spec/service-types.html#operation) [`ShapeId`](::aws_smithy_http_server::shape_id::ShapeId).
|
4069 4257 | pub fn shape_id(&self) -> ::aws_smithy_http_server::shape_id::ShapeId {
|
4070 4258 | match self {
|
4071 4259 | Operation::ConstrainedHttpBoundShapesOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#ConstrainedHttpBoundShapesOperation", "com.amazonaws.constraints", "ConstrainedHttpBoundShapesOperation")
|
4072 4260 | ,Operation::ConstrainedHttpPayloadBoundShapeOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#ConstrainedHttpPayloadBoundShapeOperation", "com.amazonaws.constraints", "ConstrainedHttpPayloadBoundShapeOperation")
|
4261 + | ,Operation::ConstrainedListWithIndirectlyConstrainedAggregateOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#ConstrainedListWithIndirectlyConstrainedAggregateOperation", "com.amazonaws.constraints", "ConstrainedListWithIndirectlyConstrainedAggregateOperation")
|
4073 4262 | ,Operation::ConstrainedRecursiveShapesOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#ConstrainedRecursiveShapesOperation", "com.amazonaws.constraints", "ConstrainedRecursiveShapesOperation")
|
4074 4263 | ,Operation::ConstrainedShapesOnlyInOutputOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#ConstrainedShapesOnlyInOutputOperation", "com.amazonaws.constraints", "ConstrainedShapesOnlyInOutputOperation")
|
4075 4264 | ,Operation::ConstrainedShapesOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#ConstrainedShapesOperation", "com.amazonaws.constraints", "ConstrainedShapesOperation")
|
4076 4265 | ,Operation::EventStreamsOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#EventStreamsOperation", "com.amazonaws.constraints", "EventStreamsOperation")
|
4077 4266 | ,Operation::HttpPrefixHeadersTargetingLengthMapOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#HttpPrefixHeadersTargetingLengthMapOperation", "com.amazonaws.constraints", "HttpPrefixHeadersTargetingLengthMapOperation")
|
4078 4267 | ,Operation::NonStreamingBlobOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#NonStreamingBlobOperation", "com.amazonaws.constraints", "NonStreamingBlobOperation")
|
4079 4268 | ,Operation::QueryParamsTargetingLengthMapOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#QueryParamsTargetingLengthMapOperation", "com.amazonaws.constraints", "QueryParamsTargetingLengthMapOperation")
|
4080 4269 | ,Operation::QueryParamsTargetingMapOfEnumStringOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#QueryParamsTargetingMapOfEnumStringOperation", "com.amazonaws.constraints", "QueryParamsTargetingMapOfEnumStringOperation")
|
4081 4270 | ,Operation::QueryParamsTargetingMapOfLengthListOfPatternStringOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#QueryParamsTargetingMapOfLengthListOfPatternStringOperation", "com.amazonaws.constraints", "QueryParamsTargetingMapOfLengthListOfPatternStringOperation")
|
4082 4271 | ,Operation::QueryParamsTargetingMapOfLengthPatternStringOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#QueryParamsTargetingMapOfLengthPatternStringOperation", "com.amazonaws.constraints", "QueryParamsTargetingMapOfLengthPatternStringOperation")
|
4083 4272 | ,Operation::QueryParamsTargetingMapOfLengthStringOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#QueryParamsTargetingMapOfLengthStringOperation", "com.amazonaws.constraints", "QueryParamsTargetingMapOfLengthStringOperation")
|
4084 4273 | ,Operation::QueryParamsTargetingMapOfListOfEnumStringOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#QueryParamsTargetingMapOfListOfEnumStringOperation", "com.amazonaws.constraints", "QueryParamsTargetingMapOfListOfEnumStringOperation")
|
4085 4274 | ,Operation::QueryParamsTargetingMapOfListOfLengthPatternStringOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#QueryParamsTargetingMapOfListOfLengthPatternStringOperation", "com.amazonaws.constraints", "QueryParamsTargetingMapOfListOfLengthPatternStringOperation")
|
4086 4275 | ,Operation::QueryParamsTargetingMapOfListOfLengthStringOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#QueryParamsTargetingMapOfListOfLengthStringOperation", "com.amazonaws.constraints", "QueryParamsTargetingMapOfListOfLengthStringOperation")
|
4087 4276 | ,Operation::QueryParamsTargetingMapOfListOfPatternStringOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#QueryParamsTargetingMapOfListOfPatternStringOperation", "com.amazonaws.constraints", "QueryParamsTargetingMapOfListOfPatternStringOperation")
|
4088 4277 | ,Operation::QueryParamsTargetingMapOfPatternStringOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#QueryParamsTargetingMapOfPatternStringOperation", "com.amazonaws.constraints", "QueryParamsTargetingMapOfPatternStringOperation")
|
4089 4278 | ,Operation::QueryParamsTargetingMapOfSetOfLengthStringOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#QueryParamsTargetingMapOfSetOfLengthStringOperation", "com.amazonaws.constraints", "QueryParamsTargetingMapOfSetOfLengthStringOperation")
|
4090 4279 | ,Operation::StreamingBlobOperation => ::aws_smithy_http_server::shape_id::ShapeId::new("com.amazonaws.constraints#StreamingBlobOperation", "com.amazonaws.constraints", "StreamingBlobOperation")
|
4091 4280 | }
|
4092 4281 | }
|
4093 4282 | }
|
4094 4283 | impl<L>
|
4095 4284 | ::aws_smithy_http_server::service::ContainsOperation<
|
4096 4285 | crate::operation_shape::ConstrainedHttpBoundShapesOperation,
|
4097 4286 | > for ConstraintsService<L>
|
4098 4287 | {
|
4099 4288 | const VALUE: Operation = Operation::ConstrainedHttpBoundShapesOperation;
|
4100 4289 | }
|
4101 4290 | impl<L>
|
4102 4291 | ::aws_smithy_http_server::service::ContainsOperation<
|
4103 4292 | crate::operation_shape::ConstrainedHttpPayloadBoundShapeOperation,
|
4104 4293 | > for ConstraintsService<L>
|
4105 4294 | {
|
4106 4295 | const VALUE: Operation = Operation::ConstrainedHttpPayloadBoundShapeOperation;
|
4107 4296 | }
|
4297 + | impl<L>
|
4298 + | ::aws_smithy_http_server::service::ContainsOperation<
|
4299 + | crate::operation_shape::ConstrainedListWithIndirectlyConstrainedAggregateOperation,
|
4300 + | > for ConstraintsService<L>
|
4301 + | {
|
4302 + | const VALUE: Operation = Operation::ConstrainedListWithIndirectlyConstrainedAggregateOperation;
|
4303 + | }
|
4108 4304 | impl<L>
|
4109 4305 | ::aws_smithy_http_server::service::ContainsOperation<
|
4110 4306 | crate::operation_shape::ConstrainedRecursiveShapesOperation,
|
4111 4307 | > for ConstraintsService<L>
|
4112 4308 | {
|
4113 4309 | const VALUE: Operation = Operation::ConstrainedRecursiveShapesOperation;
|
4114 4310 | }
|
4115 4311 | impl<L>
|
4116 4312 | ::aws_smithy_http_server::service::ContainsOperation<
|
4117 4313 | crate::operation_shape::ConstrainedShapesOnlyInOutputOperation,
|
4431 4627 |
|
4432 4628 | // ConstrainedHttpPayloadBoundShapeOperation match found, pop from both `member` and `not_member`
|
4433 4629 | (@ $ name: ident, $ contains: ident (ConstrainedHttpPayloadBoundShapeOperation $($ member: ident)*) ($($ temp: ident)*) (ConstrainedHttpPayloadBoundShapeOperation $($ not_member: ident)*)) => {
|
4434 4630 | scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
|
4435 4631 | };
|
4436 4632 | // ConstrainedHttpPayloadBoundShapeOperation match not found, pop from `not_member` into `temp` stack
|
4437 4633 | (@ $ name: ident, $ contains: ident (ConstrainedHttpPayloadBoundShapeOperation $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
|
4438 4634 | scope! { @ $ name, $ contains (ConstrainedHttpPayloadBoundShapeOperation $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
|
4439 4635 | };
|
4440 4636 |
|
4637 + | // ConstrainedListWithIndirectlyConstrainedAggregateOperation match found, pop from both `member` and `not_member`
|
4638 + | (@ $ name: ident, $ contains: ident (ConstrainedListWithIndirectlyConstrainedAggregateOperation $($ member: ident)*) ($($ temp: ident)*) (ConstrainedListWithIndirectlyConstrainedAggregateOperation $($ not_member: ident)*)) => {
|
4639 + | scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
|
4640 + | };
|
4641 + | // ConstrainedListWithIndirectlyConstrainedAggregateOperation match not found, pop from `not_member` into `temp` stack
|
4642 + | (@ $ name: ident, $ contains: ident (ConstrainedListWithIndirectlyConstrainedAggregateOperation $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
|
4643 + | scope! { @ $ name, $ contains (ConstrainedListWithIndirectlyConstrainedAggregateOperation $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
|
4644 + | };
|
4645 + |
|
4441 4646 | // ConstrainedRecursiveShapesOperation match found, pop from both `member` and `not_member`
|
4442 4647 | (@ $ name: ident, $ contains: ident (ConstrainedRecursiveShapesOperation $($ member: ident)*) ($($ temp: ident)*) (ConstrainedRecursiveShapesOperation $($ not_member: ident)*)) => {
|
4443 4648 | scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
|
4444 4649 | };
|
4445 4650 | // ConstrainedRecursiveShapesOperation match not found, pop from `not_member` into `temp` stack
|
4446 4651 | (@ $ name: ident, $ contains: ident (ConstrainedRecursiveShapesOperation $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
|
4447 4652 | scope! { @ $ name, $ contains (ConstrainedRecursiveShapesOperation $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
|
4448 4653 | };
|
4449 4654 |
|
4450 4655 | // ConstrainedShapesOnlyInOutputOperation match found, pop from both `member` and `not_member`
|