251 251 | struct ListSourceRepositoryBranchesEndpointParamsInterceptor;
|
252 252 |
|
253 253 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListSourceRepositoryBranchesEndpointParamsInterceptor {
|
254 254 | fn name(&self) -> &'static str {
|
255 255 | "ListSourceRepositoryBranchesEndpointParamsInterceptor"
|
256 256 | }
|
257 257 |
|
258 258 | fn read_before_execution(
|
259 259 | &self,
|
260 260 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
261 261 | '_,
|
262 262 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
263 263 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
264 264 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
265 265 | >,
|
266 266 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
267 267 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
268 268 | let _input = context
|
269 269 | .input()
|
270 270 | .downcast_ref::<ListSourceRepositoryBranchesInput>()
|
271 271 | .ok_or("failed to downcast to ListSourceRepositoryBranchesInput")?;
|
272 272 |
|
273 273 | let params = crate::config::endpoint::Params::builder()
|
274 274 | .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
|
275 275 | .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
|
276 276 | .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
|
277 277 | .build()
|
278 278 | .map_err(|err| {
|
279 279 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
280 280 | })?;
|
281 + |
|
281 282 | cfg.interceptor_state()
|
282 283 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
284 + |
|
283 285 | ::std::result::Result::Ok(())
|
284 286 | }
|
285 287 | }
|
286 288 |
|
287 289 | // The get_* functions below are generated from JMESPath expressions in the
|
288 290 | // operationContextParams trait. They target the operation's input shape.
|
289 291 |
|
290 292 | /// Error type for the `ListSourceRepositoryBranchesError` operation.
|
291 293 | #[non_exhaustive]
|
292 294 | #[derive(::std::fmt::Debug)]
|
293 295 | pub enum ListSourceRepositoryBranchesError {
|
294 296 | /// <p>The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action.</p>
|
295 297 | AccessDeniedException(crate::types::error::AccessDeniedException),
|
296 298 | /// <p>The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request. Another user might have updated the resource. Reload, make sure you have the latest data, and then try again.</p>
|
297 299 | ConflictException(crate::types::error::ConflictException),
|
298 300 | /// <p>The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource.</p>
|
299 301 | ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
|
300 302 | /// <p>The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce the number of resources, or change the tier if applicable.</p>
|
301 303 | ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
|
302 304 | /// <p>The request was denied due to request throttling.</p>
|
303 305 | ThrottlingException(crate::types::error::ThrottlingException),
|
304 306 | /// <p>The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again.</p>
|
305 307 | ValidationException(crate::types::error::ValidationException),
|
306 308 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
307 309 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
308 310 | variable wildcard pattern and check `.code()`:
|
309 311 | \
|
310 312 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
311 313 | \
|
312 314 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ListSourceRepositoryBranchesError) for what information is available for the error.")]
|