82 82 | "com.amazonaws.s3control.synthetic",
|
83 83 | "GetAccessGrantOutput",
|
84 84 | );
|
85 85 | static GETACCESSGRANTOUTPUT_MEMBER_CREATED_AT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
86 86 | ::aws_smithy_schema::ShapeId::from_static(
|
87 87 | "com.amazonaws.s3control.synthetic#GetAccessGrantOutput$CreatedAt",
|
88 88 | "com.amazonaws.s3control.synthetic",
|
89 89 | "GetAccessGrantOutput",
|
90 90 | ),
|
91 91 | ::aws_smithy_schema::ShapeType::Timestamp,
|
92 - | "created_at",
|
92 + | "CreatedAt",
|
93 93 | 0,
|
94 94 | );
|
95 95 | static GETACCESSGRANTOUTPUT_MEMBER_ACCESS_GRANT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
96 96 | ::aws_smithy_schema::ShapeId::from_static(
|
97 97 | "com.amazonaws.s3control.synthetic#GetAccessGrantOutput$AccessGrantId",
|
98 98 | "com.amazonaws.s3control.synthetic",
|
99 99 | "GetAccessGrantOutput",
|
100 100 | ),
|
101 101 | ::aws_smithy_schema::ShapeType::String,
|
102 - | "access_grant_id",
|
102 + | "AccessGrantId",
|
103 103 | 1,
|
104 104 | );
|
105 105 | static GETACCESSGRANTOUTPUT_MEMBER_ACCESS_GRANT_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
106 106 | ::aws_smithy_schema::ShapeId::from_static(
|
107 107 | "com.amazonaws.s3control.synthetic#GetAccessGrantOutput$AccessGrantArn",
|
108 108 | "com.amazonaws.s3control.synthetic",
|
109 109 | "GetAccessGrantOutput",
|
110 110 | ),
|
111 111 | ::aws_smithy_schema::ShapeType::String,
|
112 - | "access_grant_arn",
|
112 + | "AccessGrantArn",
|
113 113 | 2,
|
114 114 | );
|
115 115 | static GETACCESSGRANTOUTPUT_MEMBER_GRANTEE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
116 116 | ::aws_smithy_schema::ShapeId::from_static(
|
117 117 | "com.amazonaws.s3control.synthetic#GetAccessGrantOutput$Grantee",
|
118 118 | "com.amazonaws.s3control.synthetic",
|
119 119 | "GetAccessGrantOutput",
|
120 120 | ),
|
121 121 | ::aws_smithy_schema::ShapeType::Structure,
|
122 - | "grantee",
|
122 + | "Grantee",
|
123 123 | 3,
|
124 124 | );
|
125 125 | static GETACCESSGRANTOUTPUT_MEMBER_PERMISSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
126 126 | ::aws_smithy_schema::ShapeId::from_static(
|
127 127 | "com.amazonaws.s3control.synthetic#GetAccessGrantOutput$Permission",
|
128 128 | "com.amazonaws.s3control.synthetic",
|
129 129 | "GetAccessGrantOutput",
|
130 130 | ),
|
131 131 | ::aws_smithy_schema::ShapeType::String,
|
132 - | "permission",
|
132 + | "Permission",
|
133 133 | 4,
|
134 134 | );
|
135 135 | static GETACCESSGRANTOUTPUT_MEMBER_ACCESS_GRANTS_LOCATION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
136 136 | ::aws_smithy_schema::ShapeId::from_static(
|
137 137 | "com.amazonaws.s3control.synthetic#GetAccessGrantOutput$AccessGrantsLocationId",
|
138 138 | "com.amazonaws.s3control.synthetic",
|
139 139 | "GetAccessGrantOutput",
|
140 140 | ),
|
141 141 | ::aws_smithy_schema::ShapeType::String,
|
142 - | "access_grants_location_id",
|
142 + | "AccessGrantsLocationId",
|
143 143 | 5,
|
144 144 | );
|
145 145 | static GETACCESSGRANTOUTPUT_MEMBER_ACCESS_GRANTS_LOCATION_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
146 146 | ::aws_smithy_schema::ShapeId::from_static(
|
147 147 | "com.amazonaws.s3control.synthetic#GetAccessGrantOutput$AccessGrantsLocationConfiguration",
|
148 148 | "com.amazonaws.s3control.synthetic",
|
149 149 | "GetAccessGrantOutput",
|
150 150 | ),
|
151 151 | ::aws_smithy_schema::ShapeType::Structure,
|
152 - | "access_grants_location_configuration",
|
152 + | "AccessGrantsLocationConfiguration",
|
153 153 | 6,
|
154 154 | );
|
155 155 | static GETACCESSGRANTOUTPUT_MEMBER_GRANT_SCOPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
156 156 | ::aws_smithy_schema::ShapeId::from_static(
|
157 157 | "com.amazonaws.s3control.synthetic#GetAccessGrantOutput$GrantScope",
|
158 158 | "com.amazonaws.s3control.synthetic",
|
159 159 | "GetAccessGrantOutput",
|
160 160 | ),
|
161 161 | ::aws_smithy_schema::ShapeType::String,
|
162 - | "grant_scope",
|
162 + | "GrantScope",
|
163 163 | 7,
|
164 164 | );
|
165 165 | static GETACCESSGRANTOUTPUT_MEMBER_APPLICATION_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
166 166 | ::aws_smithy_schema::ShapeId::from_static(
|
167 167 | "com.amazonaws.s3control.synthetic#GetAccessGrantOutput$ApplicationArn",
|
168 168 | "com.amazonaws.s3control.synthetic",
|
169 169 | "GetAccessGrantOutput",
|
170 170 | ),
|
171 171 | ::aws_smithy_schema::ShapeType::String,
|
172 - | "application_arn",
|
172 + | "ApplicationArn",
|
173 173 | 8,
|
174 174 | );
|
175 + | static GETACCESSGRANTOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
176 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
177 + | ::aws_smithy_schema::ShapeType::String,
|
178 + | "request_id",
|
179 + | 9,
|
180 + | )
|
181 + | .with_http_header("x-amzn-requestid");
|
175 182 | static GETACCESSGRANTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
176 183 | GETACCESSGRANTOUTPUT_SCHEMA_ID,
|
177 184 | ::aws_smithy_schema::ShapeType::Structure,
|
178 185 | &[
|
179 186 | &GETACCESSGRANTOUTPUT_MEMBER_CREATED_AT,
|
180 187 | &GETACCESSGRANTOUTPUT_MEMBER_ACCESS_GRANT_ID,
|
181 188 | &GETACCESSGRANTOUTPUT_MEMBER_ACCESS_GRANT_ARN,
|
182 189 | &GETACCESSGRANTOUTPUT_MEMBER_GRANTEE,
|
183 190 | &GETACCESSGRANTOUTPUT_MEMBER_PERMISSION,
|
184 191 | &GETACCESSGRANTOUTPUT_MEMBER_ACCESS_GRANTS_LOCATION_ID,
|
185 192 | &GETACCESSGRANTOUTPUT_MEMBER_ACCESS_GRANTS_LOCATION_CONFIGURATION,
|
186 193 | &GETACCESSGRANTOUTPUT_MEMBER_GRANT_SCOPE,
|
187 194 | &GETACCESSGRANTOUTPUT_MEMBER_APPLICATION_ARN,
|
195 + | &GETACCESSGRANTOUTPUT_MEMBER__REQUEST_ID,
|
188 196 | ],
|
189 197 | );
|
190 198 | impl GetAccessGrantOutput {
|
191 199 | /// The schema for this shape.
|
192 200 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETACCESSGRANTOUTPUT_SCHEMA;
|
193 201 | }
|
194 202 | impl ::aws_smithy_schema::serde::SerializableStruct for GetAccessGrantOutput {
|
195 203 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
196 204 | fn serialize_members(
|
197 205 | &self,
|
198 206 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
199 207 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
200 208 | if let Some(ref val) = self.created_at {
|
201 209 | ser.write_timestamp(&GETACCESSGRANTOUTPUT_MEMBER_CREATED_AT, val)?;
|
202 210 | }
|
203 211 | if let Some(ref val) = self.access_grant_id {
|
204 212 | ser.write_string(&GETACCESSGRANTOUTPUT_MEMBER_ACCESS_GRANT_ID, val)?;
|
205 213 | }
|
206 214 | if let Some(ref val) = self.access_grant_arn {
|
207 215 | ser.write_string(&GETACCESSGRANTOUTPUT_MEMBER_ACCESS_GRANT_ARN, val)?;
|
208 216 | }
|
209 217 | if let Some(ref val) = self.grantee {
|
210 218 | ser.write_struct(&GETACCESSGRANTOUTPUT_MEMBER_GRANTEE, val)?;
|
211 219 | }
|
212 220 | if let Some(ref val) = self.permission {
|
213 221 | ser.write_string(&GETACCESSGRANTOUTPUT_MEMBER_PERMISSION, val.as_str())?;
|
214 222 | }
|
215 223 | if let Some(ref val) = self.access_grants_location_id {
|
216 224 | ser.write_string(&GETACCESSGRANTOUTPUT_MEMBER_ACCESS_GRANTS_LOCATION_ID, val)?;
|
217 225 | }
|
218 226 | if let Some(ref val) = self.access_grants_location_configuration {
|
219 227 | ser.write_struct(&GETACCESSGRANTOUTPUT_MEMBER_ACCESS_GRANTS_LOCATION_CONFIGURATION, val)?;
|
220 228 | }
|
221 229 | if let Some(ref val) = self.grant_scope {
|
222 230 | ser.write_string(&GETACCESSGRANTOUTPUT_MEMBER_GRANT_SCOPE, val)?;
|
223 231 | }
|
224 232 | if let Some(ref val) = self.application_arn {
|
225 233 | ser.write_string(&GETACCESSGRANTOUTPUT_MEMBER_APPLICATION_ARN, val)?;
|
226 234 | }
|
227 235 | Ok(())
|
228 236 | }
|
229 237 | }
|
230 238 | impl GetAccessGrantOutput {
|
231 239 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
232 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
233 - | deserializer: &mut D,
|
240 + | pub fn deserialize(
|
241 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
234 242 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
235 243 | #[allow(unused_variables, unused_mut)]
|
236 244 | let mut builder = Self::builder();
|
237 245 | #[allow(
|
238 246 | unused_variables,
|
239 247 | unreachable_code,
|
240 248 | clippy::single_match,
|
241 249 | clippy::match_single_binding,
|
242 250 | clippy::diverging_sub_expression
|
243 251 | )]
|
244 - | deserializer.read_struct(&GETACCESSGRANTOUTPUT_SCHEMA, (), |_, member, deser| {
|
252 + | deserializer.read_struct(&GETACCESSGRANTOUTPUT_SCHEMA, &mut |member, deser| {
|
253 + | match member.member_index() {
|
254 + | Some(0) => {
|
255 + | builder.created_at = Some(deser.read_timestamp(member)?);
|
256 + | }
|
257 + | Some(1) => {
|
258 + | builder.access_grant_id = Some(deser.read_string(member)?);
|
259 + | }
|
260 + | Some(2) => {
|
261 + | builder.access_grant_arn = Some(deser.read_string(member)?);
|
262 + | }
|
263 + | Some(3) => {
|
264 + | builder.grantee = Some(crate::types::Grantee::deserialize(deser)?);
|
265 + | }
|
266 + | Some(4) => {
|
267 + | builder.permission = Some(crate::types::Permission::from(deser.read_string(member)?.as_str()));
|
268 + | }
|
269 + | Some(5) => {
|
270 + | builder.access_grants_location_id = Some(deser.read_string(member)?);
|
271 + | }
|
272 + | Some(6) => {
|
273 + | builder.access_grants_location_configuration = Some(crate::types::AccessGrantsLocationConfiguration::deserialize(deser)?);
|
274 + | }
|
275 + | Some(7) => {
|
276 + | builder.grant_scope = Some(deser.read_string(member)?);
|
277 + | }
|
278 + | Some(8) => {
|
279 + | builder.application_arn = Some(deser.read_string(member)?);
|
280 + | }
|
281 + | Some(9) => {
|
282 + | builder._request_id = Some(deser.read_string(member)?);
|
283 + | }
|
284 + | _ => {}
|
285 + | }
|
286 + | Ok(())
|
287 + | })?;
|
288 + | Ok(builder.build())
|
289 + | }
|
290 + | }
|
291 + | impl GetAccessGrantOutput {
|
292 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
293 + | /// Header-bound members are read directly from headers, avoiding runtime
|
294 + | /// member iteration overhead. Body members are read via the deserializer.
|
295 + | pub fn deserialize_with_response(
|
296 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
297 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
298 + | _status: u16,
|
299 + | _body: &[u8],
|
300 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
301 + | #[allow(unused_variables, unused_mut)]
|
302 + | let mut builder = Self::builder();
|
303 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
304 + | builder._request_id = Some(val.to_string());
|
305 + | }
|
306 + | #[allow(
|
307 + | unused_variables,
|
308 + | unreachable_code,
|
309 + | clippy::single_match,
|
310 + | clippy::match_single_binding,
|
311 + | clippy::diverging_sub_expression
|
312 + | )]
|
313 + | deserializer.read_struct(&GETACCESSGRANTOUTPUT_SCHEMA, &mut |member, deser| {
|
245 314 | match member.member_index() {
|
246 315 | Some(0) => {
|
247 316 | builder.created_at = Some(deser.read_timestamp(member)?);
|
248 317 | }
|
249 318 | Some(1) => {
|
250 319 | builder.access_grant_id = Some(deser.read_string(member)?);
|
251 320 | }
|
252 321 | Some(2) => {
|
253 322 | builder.access_grant_arn = Some(deser.read_string(member)?);
|
254 323 | }
|