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