29 29 | "com.amazonaws.s3control.synthetic",
|
30 30 | "PutAccessPointConfigurationForObjectLambdaInput",
|
31 31 | );
|
32 32 | static PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
33 33 | ::aws_smithy_schema::ShapeId::from_static(
|
34 34 | "com.amazonaws.s3control.synthetic#PutAccessPointConfigurationForObjectLambdaInput$AccountId",
|
35 35 | "com.amazonaws.s3control.synthetic",
|
36 36 | "PutAccessPointConfigurationForObjectLambdaInput",
|
37 37 | ),
|
38 38 | ::aws_smithy_schema::ShapeType::String,
|
39 - | "account_id",
|
39 + | "AccountId",
|
40 40 | 0,
|
41 41 | )
|
42 42 | .with_host_label()
|
43 43 | .with_http_header("x-amz-account-id");
|
44 44 | static PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
45 45 | ::aws_smithy_schema::ShapeId::from_static(
|
46 46 | "com.amazonaws.s3control.synthetic#PutAccessPointConfigurationForObjectLambdaInput$Name",
|
47 47 | "com.amazonaws.s3control.synthetic",
|
48 48 | "PutAccessPointConfigurationForObjectLambdaInput",
|
49 49 | ),
|
50 50 | ::aws_smithy_schema::ShapeType::String,
|
51 - | "name",
|
51 + | "Name",
|
52 52 | 1,
|
53 53 | )
|
54 54 | .with_http_label();
|
55 55 | static PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
56 56 | ::aws_smithy_schema::ShapeId::from_static(
|
57 57 | "com.amazonaws.s3control.synthetic#PutAccessPointConfigurationForObjectLambdaInput$Configuration",
|
58 58 | "com.amazonaws.s3control.synthetic",
|
59 59 | "PutAccessPointConfigurationForObjectLambdaInput",
|
60 60 | ),
|
61 61 | ::aws_smithy_schema::ShapeType::Structure,
|
62 - | "configuration",
|
62 + | "Configuration",
|
63 63 | 2,
|
64 64 | );
|
65 65 | static PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
66 66 | PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_SCHEMA_ID,
|
67 67 | ::aws_smithy_schema::ShapeType::Structure,
|
68 68 | &[
|
69 69 | &PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_ACCOUNT_ID,
|
70 70 | &PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_NAME,
|
71 71 | &PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_CONFIGURATION,
|
72 72 | ],
|
73 - | );
|
73 + | )
|
74 + | .with_http(aws_smithy_schema::traits::HttpTrait::new(
|
75 + | "PUT",
|
76 + | "/v20180820/accesspointforobjectlambda/{Name}/configuration",
|
77 + | None,
|
78 + | ));
|
74 79 | impl PutAccessPointConfigurationForObjectLambdaInput {
|
75 80 | /// The schema for this shape.
|
76 81 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_SCHEMA;
|
77 82 | }
|
78 83 | impl ::aws_smithy_schema::serde::SerializableStruct for PutAccessPointConfigurationForObjectLambdaInput {
|
79 84 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
80 85 | fn serialize_members(
|
81 86 | &self,
|
82 87 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
83 88 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
84 89 | if let Some(ref val) = self.account_id {
|
85 90 | ser.write_string(&PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_ACCOUNT_ID, val)?;
|
86 91 | }
|
87 92 | if let Some(ref val) = self.name {
|
88 93 | ser.write_string(&PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_NAME, val)?;
|
89 94 | }
|
90 95 | if let Some(ref val) = self.configuration {
|
91 96 | ser.write_struct(&PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_CONFIGURATION, val)?;
|
92 97 | }
|
93 98 | Ok(())
|
94 99 | }
|
95 100 | }
|
96 101 | impl PutAccessPointConfigurationForObjectLambdaInput {
|
97 102 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
98 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
99 - | deserializer: &mut D,
|
103 + | pub fn deserialize(
|
104 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
100 105 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
101 106 | #[allow(unused_variables, unused_mut)]
|
102 107 | let mut builder = Self::builder();
|
103 108 | #[allow(
|
104 109 | unused_variables,
|
105 110 | unreachable_code,
|
106 111 | clippy::single_match,
|
107 112 | clippy::match_single_binding,
|
108 113 | clippy::diverging_sub_expression
|
109 114 | )]
|
110 - | deserializer.read_struct(&PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_SCHEMA, (), |_, member, deser| {
|
115 + | deserializer.read_struct(&PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_SCHEMA, &mut |member, deser| {
|
111 116 | match member.member_index() {
|
112 117 | Some(0) => {
|
113 118 | builder.account_id = Some(deser.read_string(member)?);
|
114 119 | }
|
115 120 | Some(1) => {
|
116 121 | builder.name = Some(deser.read_string(member)?);
|
117 122 | }
|
118 123 | Some(2) => {
|
119 124 | builder.configuration = Some(crate::types::ObjectLambdaConfiguration::deserialize(deser)?);
|
120 125 | }
|
121 126 | _ => {}
|
122 127 | }
|
123 128 | Ok(())
|
124 129 | })?;
|
130 + | builder.account_id = builder.account_id.or(Some(String::new()));
|
131 + | builder.name = builder.name.or(Some(String::new()));
|
132 + | builder
|
133 + | .build()
|
134 + | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
135 + | }
|
136 + | }
|
137 + | impl PutAccessPointConfigurationForObjectLambdaInput {
|
138 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
139 + | /// Header-bound members are read directly from headers, avoiding runtime
|
140 + | /// member iteration overhead. Body members are read via the deserializer.
|
141 + | pub fn deserialize_with_response(
|
142 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
143 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
144 + | _status: u16,
|
145 + | _body: &[u8],
|
146 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
147 + | #[allow(unused_variables, unused_mut)]
|
148 + | let mut builder = Self::builder();
|
149 + | if let Some(val) = headers.get("x-amz-account-id") {
|
150 + | builder.account_id = Some(val.to_string());
|
151 + | }
|
152 + | #[allow(
|
153 + | unused_variables,
|
154 + | unreachable_code,
|
155 + | clippy::single_match,
|
156 + | clippy::match_single_binding,
|
157 + | clippy::diverging_sub_expression
|
158 + | )]
|
159 + | deserializer.read_struct(&PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_SCHEMA, &mut |member, deser| {
|
160 + | match member.member_index() {
|
161 + | Some(0) => { /* read from headers above */ }
|
162 + | Some(1) => {
|
163 + | builder.name = Some(deser.read_string(member)?);
|
164 + | }
|
165 + | Some(2) => {
|
166 + | builder.configuration = Some(crate::types::ObjectLambdaConfiguration::deserialize(deser)?);
|
167 + | }
|
168 + | _ => {}
|
169 + | }
|
170 + | Ok(())
|
171 + | })?;
|
125 172 | builder
|
126 173 | .build()
|
127 174 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
128 175 | }
|
129 176 | }
|
130 177 | impl PutAccessPointConfigurationForObjectLambdaInput {
|
131 178 | /// Creates a new builder-style object to manufacture [`PutAccessPointConfigurationForObjectLambdaInput`](crate::operation::put_access_point_configuration_for_object_lambda::PutAccessPointConfigurationForObjectLambdaInput).
|
132 179 | pub fn builder(
|
133 180 | ) -> crate::operation::put_access_point_configuration_for_object_lambda::builders::PutAccessPointConfigurationForObjectLambdaInputBuilder {
|
134 181 | crate::operation::put_access_point_configuration_for_object_lambda::builders::PutAccessPointConfigurationForObjectLambdaInputBuilder::default(
|