44 44 | "com.amazonaws.s3.synthetic",
|
45 45 | "GetBucketNotificationConfigurationOutput",
|
46 46 | );
|
47 47 | static GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_TOPIC_CONFIGURATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
48 48 | ::aws_smithy_schema::ShapeId::from_static(
|
49 49 | "com.amazonaws.s3.synthetic#GetBucketNotificationConfigurationOutput$TopicConfigurations",
|
50 50 | "com.amazonaws.s3.synthetic",
|
51 51 | "GetBucketNotificationConfigurationOutput",
|
52 52 | ),
|
53 53 | ::aws_smithy_schema::ShapeType::List,
|
54 - | "topic_configurations",
|
54 + | "TopicConfigurations",
|
55 55 | 0,
|
56 56 | )
|
57 57 | .with_xml_name("TopicConfiguration")
|
58 58 | .with_xml_flattened();
|
59 59 | static GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_QUEUE_CONFIGURATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
60 60 | ::aws_smithy_schema::ShapeId::from_static(
|
61 61 | "com.amazonaws.s3.synthetic#GetBucketNotificationConfigurationOutput$QueueConfigurations",
|
62 62 | "com.amazonaws.s3.synthetic",
|
63 63 | "GetBucketNotificationConfigurationOutput",
|
64 64 | ),
|
65 65 | ::aws_smithy_schema::ShapeType::List,
|
66 - | "queue_configurations",
|
66 + | "QueueConfigurations",
|
67 67 | 1,
|
68 68 | )
|
69 69 | .with_xml_name("QueueConfiguration")
|
70 70 | .with_xml_flattened();
|
71 71 | static GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_LAMBDA_FUNCTION_CONFIGURATIONS: ::aws_smithy_schema::Schema =
|
72 72 | ::aws_smithy_schema::Schema::new_member(
|
73 73 | ::aws_smithy_schema::ShapeId::from_static(
|
74 74 | "com.amazonaws.s3.synthetic#GetBucketNotificationConfigurationOutput$LambdaFunctionConfigurations",
|
75 75 | "com.amazonaws.s3.synthetic",
|
76 76 | "GetBucketNotificationConfigurationOutput",
|
77 77 | ),
|
78 78 | ::aws_smithy_schema::ShapeType::List,
|
79 - | "lambda_function_configurations",
|
79 + | "LambdaFunctionConfigurations",
|
80 80 | 2,
|
81 81 | )
|
82 82 | .with_xml_name("CloudFunctionConfiguration")
|
83 83 | .with_xml_flattened();
|
84 84 | static GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_EVENT_BRIDGE_CONFIGURATION: ::aws_smithy_schema::Schema =
|
85 85 | ::aws_smithy_schema::Schema::new_member(
|
86 86 | ::aws_smithy_schema::ShapeId::from_static(
|
87 87 | "com.amazonaws.s3.synthetic#GetBucketNotificationConfigurationOutput$EventBridgeConfiguration",
|
88 88 | "com.amazonaws.s3.synthetic",
|
89 89 | "GetBucketNotificationConfigurationOutput",
|
90 90 | ),
|
91 91 | ::aws_smithy_schema::ShapeType::Structure,
|
92 - | "event_bridge_configuration",
|
92 + | "EventBridgeConfiguration",
|
93 93 | 3,
|
94 94 | );
|
95 + | static GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
96 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
97 + | ::aws_smithy_schema::ShapeType::String,
|
98 + | "request_id",
|
99 + | 4,
|
100 + | )
|
101 + | .with_http_header("x-amzn-requestid");
|
95 102 | static GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
96 103 | GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_SCHEMA_ID,
|
97 104 | ::aws_smithy_schema::ShapeType::Structure,
|
98 105 | &[
|
99 106 | &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_TOPIC_CONFIGURATIONS,
|
100 107 | &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_QUEUE_CONFIGURATIONS,
|
101 108 | &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_LAMBDA_FUNCTION_CONFIGURATIONS,
|
102 109 | &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_EVENT_BRIDGE_CONFIGURATION,
|
110 + | &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER__REQUEST_ID,
|
103 111 | ],
|
104 112 | );
|
105 113 | impl GetBucketNotificationConfigurationOutput {
|
106 114 | /// The schema for this shape.
|
107 115 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_SCHEMA;
|
108 116 | }
|
109 117 | impl ::aws_smithy_schema::serde::SerializableStruct for GetBucketNotificationConfigurationOutput {
|
110 118 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
111 119 | fn serialize_members(
|
112 120 | &self,
|
113 121 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
114 122 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
115 123 | if let Some(ref val) = self.topic_configurations {
|
116 124 | ser.write_list(
|
117 125 | &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_TOPIC_CONFIGURATIONS,
|
118 126 | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
119 127 | for item in val {
|
120 128 | ser.write_struct(crate::types::TopicConfiguration::SCHEMA, item)?;
|
121 129 | }
|
122 130 | Ok(())
|
123 131 | },
|
124 132 | )?;
|
125 133 | }
|
126 134 | if let Some(ref val) = self.queue_configurations {
|
127 135 | ser.write_list(
|
128 136 | &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_QUEUE_CONFIGURATIONS,
|
129 137 | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
130 138 | for item in val {
|
131 139 | ser.write_struct(crate::types::QueueConfiguration::SCHEMA, item)?;
|
132 140 | }
|
133 141 | Ok(())
|
134 142 | },
|
135 143 | )?;
|
136 144 | }
|
137 145 | if let Some(ref val) = self.lambda_function_configurations {
|
138 146 | ser.write_list(
|
139 147 | &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_LAMBDA_FUNCTION_CONFIGURATIONS,
|
140 148 | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
141 149 | for item in val {
|
142 150 | ser.write_struct(crate::types::LambdaFunctionConfiguration::SCHEMA, item)?;
|
143 151 | }
|
144 152 | Ok(())
|
145 153 | },
|
146 154 | )?;
|
147 155 | }
|
148 156 | if let Some(ref val) = self.event_bridge_configuration {
|
149 157 | ser.write_struct(&GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_EVENT_BRIDGE_CONFIGURATION, val)?;
|
150 158 | }
|
151 159 | Ok(())
|
152 160 | }
|
153 161 | }
|
154 162 | impl GetBucketNotificationConfigurationOutput {
|
155 163 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
156 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
157 - | deserializer: &mut D,
|
164 + | pub fn deserialize(
|
165 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
158 166 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
159 167 | #[allow(unused_variables, unused_mut)]
|
160 168 | let mut builder = Self::builder();
|
161 169 | #[allow(
|
162 170 | unused_variables,
|
163 171 | unreachable_code,
|
164 172 | clippy::single_match,
|
165 173 | clippy::match_single_binding,
|
166 174 | clippy::diverging_sub_expression
|
167 175 | )]
|
168 - | deserializer.read_struct(&GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_SCHEMA, (), |_, member, deser| {
|
176 + | deserializer.read_struct(&GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_SCHEMA, &mut |member, deser| {
|
169 177 | match member.member_index() {
|
170 178 | Some(0) => {
|
171 179 | builder.topic_configurations = Some({
|
172 - | let container = if let Some(cap) = deser.container_size() {
|
173 - | Vec::with_capacity(cap)
|
174 - | } else {
|
175 - | Vec::new()
|
176 - | };
|
177 - | deser.read_list(member, container, |mut list, deser| {
|
178 - | list.push(crate::types::TopicConfiguration::deserialize(deser)?);
|
179 - | Ok(list)
|
180 - | })?
|
180 + | let mut container = Vec::new();
|
181 + | deser.read_list(member, &mut |deser| {
|
182 + | container.push(crate::types::TopicConfiguration::deserialize(deser)?);
|
183 + | Ok(())
|
184 + | })?;
|
185 + | container
|
181 186 | });
|
182 187 | }
|
183 188 | Some(1) => {
|
184 189 | builder.queue_configurations = Some({
|
185 - | let container = if let Some(cap) = deser.container_size() {
|
186 - | Vec::with_capacity(cap)
|
187 - | } else {
|
188 - | Vec::new()
|
189 - | };
|
190 - | deser.read_list(member, container, |mut list, deser| {
|
191 - | list.push(crate::types::QueueConfiguration::deserialize(deser)?);
|
192 - | Ok(list)
|
193 - | })?
|
190 + | let mut container = Vec::new();
|
191 + | deser.read_list(member, &mut |deser| {
|
192 + | container.push(crate::types::QueueConfiguration::deserialize(deser)?);
|
193 + | Ok(())
|
194 + | })?;
|
195 + | container
|
194 196 | });
|
195 197 | }
|
196 198 | Some(2) => {
|
197 199 | builder.lambda_function_configurations = Some({
|
198 - | let container = if let Some(cap) = deser.container_size() {
|
199 - | Vec::with_capacity(cap)
|
200 - | } else {
|
201 - | Vec::new()
|
202 - | };
|
203 - | deser.read_list(member, container, |mut list, deser| {
|
204 - | list.push(crate::types::LambdaFunctionConfiguration::deserialize(deser)?);
|
205 - | Ok(list)
|
206 - | })?
|
200 + | let mut container = Vec::new();
|
201 + | deser.read_list(member, &mut |deser| {
|
202 + | container.push(crate::types::LambdaFunctionConfiguration::deserialize(deser)?);
|
203 + | Ok(())
|
204 + | })?;
|
205 + | container
|
206 + | });
|
207 + | }
|
208 + | Some(3) => {
|
209 + | builder.event_bridge_configuration = Some(crate::types::EventBridgeConfiguration::deserialize(deser)?);
|
210 + | }
|
211 + | Some(4) => {
|
212 + | builder._request_id = Some(deser.read_string(member)?);
|
213 + | }
|
214 + | _ => {}
|
215 + | }
|
216 + | Ok(())
|
217 + | })?;
|
218 + | Ok(builder.build())
|
219 + | }
|
220 + | }
|
221 + | impl GetBucketNotificationConfigurationOutput {
|
222 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
223 + | /// Header-bound members are read directly from headers, avoiding runtime
|
224 + | /// member iteration overhead. Body members are read via the deserializer.
|
225 + | pub fn deserialize_with_response(
|
226 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
227 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
228 + | _status: u16,
|
229 + | _body: &[u8],
|
230 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
231 + | #[allow(unused_variables, unused_mut)]
|
232 + | let mut builder = Self::builder();
|
233 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
234 + | builder._request_id = Some(val.to_string());
|
235 + | }
|
236 + | #[allow(
|
237 + | unused_variables,
|
238 + | unreachable_code,
|
239 + | clippy::single_match,
|
240 + | clippy::match_single_binding,
|
241 + | clippy::diverging_sub_expression
|
242 + | )]
|
243 + | deserializer.read_struct(&GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_SCHEMA, &mut |member, deser| {
|
244 + | match member.member_index() {
|
245 + | Some(0) => {
|
246 + | builder.topic_configurations = Some({
|
247 + | let mut container = Vec::new();
|
248 + | deser.read_list(member, &mut |deser| {
|
249 + | container.push(crate::types::TopicConfiguration::deserialize(deser)?);
|
250 + | Ok(())
|
251 + | })?;
|
252 + | container
|
253 + | });
|
254 + | }
|
255 + | Some(1) => {
|
256 + | builder.queue_configurations = Some({
|
257 + | let mut container = Vec::new();
|
258 + | deser.read_list(member, &mut |deser| {
|
259 + | container.push(crate::types::QueueConfiguration::deserialize(deser)?);
|
260 + | Ok(())
|
261 + | })?;
|
262 + | container
|
263 + | });
|
264 + | }
|
265 + | Some(2) => {
|
266 + | builder.lambda_function_configurations = Some({
|
267 + | let mut container = Vec::new();
|
268 + | deser.read_list(member, &mut |deser| {
|
269 + | container.push(crate::types::LambdaFunctionConfiguration::deserialize(deser)?);
|
270 + | Ok(())
|
271 + | })?;
|
272 + | container
|
207 273 | });
|
208 274 | }
|
209 275 | Some(3) => {
|
210 276 | builder.event_bridge_configuration = Some(crate::types::EventBridgeConfiguration::deserialize(deser)?);
|
211 277 | }
|
212 278 | _ => {}
|
213 279 | }
|
214 280 | Ok(())
|
215 281 | })?;
|
216 282 | Ok(builder.build())
|