229 229 |
|
230 230 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for EnableHostedZoneDNSSECEndpointParamsInterceptor {
|
231 231 | fn name(&self) -> &'static str {
|
232 232 | "EnableHostedZoneDNSSECEndpointParamsInterceptor"
|
233 233 | }
|
234 234 |
|
235 235 | fn read_before_execution(
|
236 236 | &self,
|
237 237 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
238 238 | '_,
|
239 239 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
240 240 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
241 241 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
242 242 | >,
|
243 243 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
244 244 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
245 245 | let _input = context
|
246 246 | .input()
|
247 247 | .downcast_ref::<EnableHostedZoneDnssecInput>()
|
248 248 | .ok_or("failed to downcast to EnableHostedZoneDnssecInput")?;
|
249 249 |
|
250 250 | let params = crate::config::endpoint::Params::builder()
|
251 251 | .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
|
252 252 | .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
|
253 253 | .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
|
254 254 | .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
|
255 255 | .build()
|
256 256 | .map_err(|err| {
|
257 257 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
258 258 | })?;
|
259 + |
|
259 260 | cfg.interceptor_state()
|
260 261 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
262 + |
|
261 263 | ::std::result::Result::Ok(())
|
262 264 | }
|
263 265 | }
|
264 266 |
|
265 267 | // The get_* functions below are generated from JMESPath expressions in the
|
266 268 | // operationContextParams trait. They target the operation's input shape.
|
267 269 |
|
268 270 | /// Error type for the `EnableHostedZoneDNSSECError` operation.
|
269 271 | #[non_exhaustive]
|
270 272 | #[derive(::std::fmt::Debug)]
|
271 273 | pub enum EnableHostedZoneDNSSECError {
|
272 274 | /// <p>Another user submitted a request to create, update, or delete the object at the same time that you did. Retry the request.</p>
|
273 275 | ConcurrentModification(crate::types::error::ConcurrentModification),
|
274 276 | /// <p>The hosted zone doesn't have any DNSSEC resources.</p>
|
275 277 | DnssecNotFound(crate::types::error::DnssecNotFound),
|
276 278 | /// <p>The hosted zone nameservers don't match the parent nameservers. The hosted zone and parent must have the same nameservers.</p>
|
277 279 | HostedZonePartiallyDelegated(crate::types::error::HostedZonePartiallyDelegated),
|
278 280 | /// <p>Parameter name is not valid.</p>
|
279 281 | InvalidArgument(crate::types::error::InvalidArgument),
|
280 282 | /// <p>The input is not valid.</p>
|
281 283 | InvalidInput(crate::types::error::InvalidInput),
|
282 284 | /// <p>The key-signing key (KSK) status isn't valid or another KSK has the status <code>INTERNAL_FAILURE</code>.</p>
|
283 285 | InvalidKeySigningKeyStatus(crate::types::error::InvalidKeySigningKeyStatus),
|
284 286 | /// <p>The KeyManagementServiceArn that you specified isn't valid to use with DNSSEC signing.</p>
|
285 287 | InvalidKmsArn(crate::types::error::InvalidKmsArn),
|
286 288 | /// <p>A key-signing key (KSK) with <code>ACTIVE</code> status wasn't found.</p>
|
287 289 | KeySigningKeyWithActiveStatusNotFound(crate::types::error::KeySigningKeyWithActiveStatusNotFound),
|
288 290 | /// <p>No hosted zone exists with the ID that you specified.</p>
|
289 291 | NoSuchHostedZone(crate::types::error::NoSuchHostedZone),
|
290 292 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|