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