183 183 | .downcast::<crate::operation::get_access_point_policy_status_for_object_lambda::GetAccessPointPolicyStatusForObjectLambdaInput>()
|
184 184 | .expect("correct type");
|
185 185 | let _header_serialization_settings = _cfg
|
186 186 | .load::<crate::serialization_settings::HeaderSerializationSettings>()
|
187 187 | .cloned()
|
188 188 | .unwrap_or_default();
|
189 189 | let mut request_builder = {
|
190 190 | #[allow(clippy::uninlined_format_args)]
|
191 191 | fn uri_base(
|
192 192 | _input: &crate::operation::get_access_point_policy_status_for_object_lambda::GetAccessPointPolicyStatusForObjectLambdaInput,
|
193 193 | output: &mut ::std::string::String,
|
194 194 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
195 195 | use ::std::fmt::Write as _;
|
196 196 | let input_1 = &_input.name;
|
197 197 | let input_1 = input_1
|
198 198 | .as_ref()
|
199 199 | .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("name", "cannot be empty or unset"))?;
|
200 200 | let name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
|
201 201 | if name.is_empty() {
|
202 202 | return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
|
203 203 | "name",
|
204 204 | "cannot be empty or unset",
|
205 205 | ));
|
206 206 | }
|
207 207 | ::std::write!(output, "/v20180820/accesspointforobjectlambda/{Name}/policyStatus", Name = name).expect("formatting should succeed");
|
208 208 | ::std::result::Result::Ok(())
|
209 209 | }
|
210 210 | #[allow(clippy::unnecessary_wraps)]
|
211 211 | fn update_http_builder(
|
212 212 | input: &crate::operation::get_access_point_policy_status_for_object_lambda::GetAccessPointPolicyStatusForObjectLambdaInput,
|
213 - | builder: ::http::request::Builder,
|
214 - | ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
213 + | builder: ::http_1x::request::Builder,
|
214 + | ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
215 215 | let mut uri = ::std::string::String::new();
|
216 216 | uri_base(input, &mut uri)?;
|
217 217 | let builder = crate::protocol_serde::shape_get_access_point_policy_status_for_object_lambda::ser_get_access_point_policy_status_for_object_lambda_headers(input, builder)?;
|
218 218 | ::std::result::Result::Ok(builder.method("GET").uri(uri))
|
219 219 | }
|
220 - | let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
|
220 + | let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
|
221 221 | builder
|
222 222 | };
|
223 223 | let body = ::aws_smithy_types::body::SdkBody::from("");
|
224 224 |
|
225 225 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
226 226 | }
|
227 227 | }
|
228 228 | #[derive(Debug)]
|
229 229 | struct GetAccessPointPolicyStatusForObjectLambdaEndpointParamsInterceptor;
|
230 230 |
|
231 231 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetAccessPointPolicyStatusForObjectLambdaEndpointParamsInterceptor {
|
232 232 | fn name(&self) -> &'static str {
|
233 233 | "GetAccessPointPolicyStatusForObjectLambdaEndpointParamsInterceptor"
|
234 234 | }
|
235 235 |
|
236 236 | fn read_before_execution(
|
237 237 | &self,
|
238 238 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
239 239 | '_,
|
240 240 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
241 241 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
242 242 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
243 243 | >,
|
244 244 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
245 245 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
246 246 | let _input = context
|
247 247 | .input()
|
248 248 | .downcast_ref::<GetAccessPointPolicyStatusForObjectLambdaInput>()
|
249 249 | .ok_or("failed to downcast to GetAccessPointPolicyStatusForObjectLambdaInput")?;
|
250 250 |
|