221 221 |
|
222 222 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeAggregateComplianceByConformancePacksEndpointParamsInterceptor {
|
223 223 | fn name(&self) -> &'static str {
|
224 224 | "DescribeAggregateComplianceByConformancePacksEndpointParamsInterceptor"
|
225 225 | }
|
226 226 |
|
227 227 | fn read_before_execution(
|
228 228 | &self,
|
229 229 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
230 230 | '_,
|
231 231 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
232 232 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
233 233 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
234 234 | >,
|
235 235 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
236 236 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
237 237 | let _input = context
|
238 238 | .input()
|
239 239 | .downcast_ref::<DescribeAggregateComplianceByConformancePacksInput>()
|
240 240 | .ok_or("failed to downcast to DescribeAggregateComplianceByConformancePacksInput")?;
|
241 241 |
|
242 242 | let params = crate::config::endpoint::Params::builder()
|
243 243 | .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
|
244 244 | .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
|
245 245 | .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
|
246 246 | .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
|
247 247 | .build()
|
248 248 | .map_err(|err| {
|
249 249 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
250 250 | })?;
|
251 + |
|
251 252 | cfg.interceptor_state()
|
252 253 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
254 + |
|
253 255 | ::std::result::Result::Ok(())
|
254 256 | }
|
255 257 | }
|
256 258 |
|
257 259 | // The get_* functions below are generated from JMESPath expressions in the
|
258 260 | // operationContextParams trait. They target the operation's input shape.
|
259 261 |
|
260 262 | /// Error type for the `DescribeAggregateComplianceByConformancePacksError` operation.
|
261 263 | #[non_exhaustive]
|
262 264 | #[derive(::std::fmt::Debug)]
|
263 265 | pub enum DescribeAggregateComplianceByConformancePacksError {
|
264 266 | /// <p>The specified limit is outside the allowable range.</p>
|
265 267 | InvalidLimitException(crate::types::error::InvalidLimitException),
|
266 268 | /// <p>The specified next token is not valid. Specify the <code>nextToken</code> string that was returned in the previous response to get the next page of results.</p>
|
267 269 | InvalidNextTokenException(crate::types::error::InvalidNextTokenException),
|
268 270 | /// <p>You have specified a configuration aggregator that does not exist.</p>
|
269 271 | NoSuchConfigurationAggregatorException(crate::types::error::NoSuchConfigurationAggregatorException),
|
270 272 | /// <p>The requested action is not valid.</p>
|
271 273 | /// <p>For PutStoredQuery, you will see this exception if there are missing required fields or if the input value fails the validation, or if you are trying to create more than 300 queries.</p>
|
272 274 | /// <p>For GetStoredQuery, ListStoredQuery, and DeleteStoredQuery you will see this exception if there are missing required fields or if the input value fails the validation.</p>
|
273 275 | ValidationException(crate::types::error::ValidationException),
|
274 276 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
275 277 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
276 278 | variable wildcard pattern and check `.code()`:
|
277 279 | \
|
278 280 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
279 281 | \
|
280 282 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-DescribeAggregateComplianceByConformancePacksError) for what information is available for the error.")]
|
281 283 | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
282 284 | }
|