1static DELETEINTEGRATIONOUTPUT_MEMBER_SOURCE_ARN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
3 ::aws_smithy_schema::ShapeId::from_parts(
4 "com.amazonaws.glue.synthetic#DeleteIntegrationOutput$SourceArn",
5 "com.amazonaws.glue.synthetic",
6 "DeleteIntegrationOutput",
7 ),
8 ::aws_smithy_schema::ShapeType::String,
9 "SourceArn",
10 0,
11);
12static DELETEINTEGRATIONOUTPUT_MEMBER_TARGET_ARN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
13 ::aws_smithy_schema::ShapeId::from_parts(
14 "com.amazonaws.glue.synthetic#DeleteIntegrationOutput$TargetArn",
15 "com.amazonaws.glue.synthetic",
16 "DeleteIntegrationOutput",
17 ),
18 ::aws_smithy_schema::ShapeType::String,
19 "TargetArn",
20 1,
21);
22static DELETEINTEGRATIONOUTPUT_MEMBER_INTEGRATION_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
23 ::aws_smithy_schema::ShapeId::from_parts(
24 "com.amazonaws.glue.synthetic#DeleteIntegrationOutput$IntegrationName",
25 "com.amazonaws.glue.synthetic",
26 "DeleteIntegrationOutput",
27 ),
28 ::aws_smithy_schema::ShapeType::String,
29 "IntegrationName",
30 2,
31);
32static DELETEINTEGRATIONOUTPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
33 ::aws_smithy_schema::ShapeId::from_parts(
34 "com.amazonaws.glue.synthetic#DeleteIntegrationOutput$Description",
35 "com.amazonaws.glue.synthetic",
36 "DeleteIntegrationOutput",
37 ),
38 ::aws_smithy_schema::ShapeType::String,
39 "Description",
40 3,
41);
42static DELETEINTEGRATIONOUTPUT_MEMBER_INTEGRATION_ARN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
43 ::aws_smithy_schema::ShapeId::from_parts(
44 "com.amazonaws.glue.synthetic#DeleteIntegrationOutput$IntegrationArn",
45 "com.amazonaws.glue.synthetic",
46 "DeleteIntegrationOutput",
47 ),
48 ::aws_smithy_schema::ShapeType::String,
49 "IntegrationArn",
50 4,
51);
52static DELETEINTEGRATIONOUTPUT_MEMBER_KMS_KEY_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
53 ::aws_smithy_schema::ShapeId::from_parts(
54 "com.amazonaws.glue.synthetic#DeleteIntegrationOutput$KmsKeyId",
55 "com.amazonaws.glue.synthetic",
56 "DeleteIntegrationOutput",
57 ),
58 ::aws_smithy_schema::ShapeType::String,
59 "KmsKeyId",
60 5,
61);
62static DELETEINTEGRATIONOUTPUT_MEMBER_ADDITIONAL_ENCRYPTION_CONTEXT_KEY: ::aws_smithy_schema::Schema<'static> =
63 ::aws_smithy_schema::Schema::new_member(
64 ::aws_smithy_schema::ShapeId::from_parts(
65 "com.amazonaws.glue#IntegrationAdditionalEncryptionContextMap$key",
66 "com.amazonaws.glue",
67 "IntegrationAdditionalEncryptionContextMap",
68 ),
69 ::aws_smithy_schema::ShapeType::String,
70 "key",
71 0,
72 );
73static DELETEINTEGRATIONOUTPUT_MEMBER_ADDITIONAL_ENCRYPTION_CONTEXT_VALUE: ::aws_smithy_schema::Schema<'static> =
74 ::aws_smithy_schema::Schema::new_member(
75 ::aws_smithy_schema::ShapeId::from_parts(
76 "com.amazonaws.glue#IntegrationAdditionalEncryptionContextMap$value",
77 "com.amazonaws.glue",
78 "IntegrationAdditionalEncryptionContextMap",
79 ),
80 ::aws_smithy_schema::ShapeType::String,
81 "value",
82 1,
83 );
84static DELETEINTEGRATIONOUTPUT_MEMBER_ADDITIONAL_ENCRYPTION_CONTEXT: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
85 ::aws_smithy_schema::ShapeId::from_parts(
86 "com.amazonaws.glue.synthetic#DeleteIntegrationOutput$AdditionalEncryptionContext",
87 "com.amazonaws.glue.synthetic",
88 "DeleteIntegrationOutput",
89 ),
90 ::aws_smithy_schema::ShapeType::Map,
91 "AdditionalEncryptionContext",
92 6,
93)
94.with_map_members(
95 &DELETEINTEGRATIONOUTPUT_MEMBER_ADDITIONAL_ENCRYPTION_CONTEXT_KEY,
96 &DELETEINTEGRATIONOUTPUT_MEMBER_ADDITIONAL_ENCRYPTION_CONTEXT_VALUE,
97);
98static DELETEINTEGRATIONOUTPUT_MEMBER_TAGS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
99 ::aws_smithy_schema::ShapeId::from_parts(
100 "com.amazonaws.glue#IntegrationTagsList$member",
101 "com.amazonaws.glue",
102 "IntegrationTagsList",
103 ),
104 ::aws_smithy_schema::ShapeType::Structure,
105 "member",
106 0,
107);
108static DELETEINTEGRATIONOUTPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
109 ::aws_smithy_schema::ShapeId::from_parts(
110 "com.amazonaws.glue.synthetic#DeleteIntegrationOutput$Tags",
111 "com.amazonaws.glue.synthetic",
112 "DeleteIntegrationOutput",
113 ),
114 ::aws_smithy_schema::ShapeType::List,
115 "Tags",
116 7,
117)
118.with_list_member(&DELETEINTEGRATIONOUTPUT_MEMBER_TAGS_MEMBER);
119static DELETEINTEGRATIONOUTPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
120 ::aws_smithy_schema::ShapeId::from_parts(
121 "com.amazonaws.glue.synthetic#DeleteIntegrationOutput$Status",
122 "com.amazonaws.glue.synthetic",
123 "DeleteIntegrationOutput",
124 ),
125 ::aws_smithy_schema::ShapeType::String,
126 "Status",
127 8,
128);
129static DELETEINTEGRATIONOUTPUT_MEMBER_CREATE_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
130 ::aws_smithy_schema::ShapeId::from_parts(
131 "com.amazonaws.glue.synthetic#DeleteIntegrationOutput$CreateTime",
132 "com.amazonaws.glue.synthetic",
133 "DeleteIntegrationOutput",
134 ),
135 ::aws_smithy_schema::ShapeType::Timestamp,
136 "CreateTime",
137 9,
138);
139static DELETEINTEGRATIONOUTPUT_MEMBER_ERRORS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
140 ::aws_smithy_schema::ShapeId::from_parts(
141 "com.amazonaws.glue#IntegrationErrorList$member",
142 "com.amazonaws.glue",
143 "IntegrationErrorList",
144 ),
145 ::aws_smithy_schema::ShapeType::Structure,
146 "member",
147 0,
148);
149static DELETEINTEGRATIONOUTPUT_MEMBER_ERRORS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
150 ::aws_smithy_schema::ShapeId::from_parts(
151 "com.amazonaws.glue.synthetic#DeleteIntegrationOutput$Errors",
152 "com.amazonaws.glue.synthetic",
153 "DeleteIntegrationOutput",
154 ),
155 ::aws_smithy_schema::ShapeType::List,
156 "Errors",
157 10,
158)
159.with_list_member(&DELETEINTEGRATIONOUTPUT_MEMBER_ERRORS_MEMBER);
160static DELETEINTEGRATIONOUTPUT_MEMBER_DATA_FILTER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
161 ::aws_smithy_schema::ShapeId::from_parts(
162 "com.amazonaws.glue.synthetic#DeleteIntegrationOutput$DataFilter",
163 "com.amazonaws.glue.synthetic",
164 "DeleteIntegrationOutput",
165 ),
166 ::aws_smithy_schema::ShapeType::String,
167 "DataFilter",
168 11,
169);
170static DELETEINTEGRATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
171 ::aws_smithy_schema::ShapeId::from_parts(
172 "com.amazonaws.glue.synthetic#DeleteIntegrationOutput",
173 "com.amazonaws.glue.synthetic",
174 "DeleteIntegrationOutput",
175 ),
176 ::aws_smithy_schema::ShapeType::Structure,
177 &[
178 &DELETEINTEGRATIONOUTPUT_MEMBER_SOURCE_ARN,
179 &DELETEINTEGRATIONOUTPUT_MEMBER_TARGET_ARN,
180 &DELETEINTEGRATIONOUTPUT_MEMBER_INTEGRATION_NAME,
181 &DELETEINTEGRATIONOUTPUT_MEMBER_DESCRIPTION,
182 &DELETEINTEGRATIONOUTPUT_MEMBER_INTEGRATION_ARN,
183 &DELETEINTEGRATIONOUTPUT_MEMBER_KMS_KEY_ID,
184 &DELETEINTEGRATIONOUTPUT_MEMBER_ADDITIONAL_ENCRYPTION_CONTEXT,
185 &DELETEINTEGRATIONOUTPUT_MEMBER_TAGS,
186 &DELETEINTEGRATIONOUTPUT_MEMBER_STATUS,
187 &DELETEINTEGRATIONOUTPUT_MEMBER_CREATE_TIME,
188 &DELETEINTEGRATIONOUTPUT_MEMBER_ERRORS,
189 &DELETEINTEGRATIONOUTPUT_MEMBER_DATA_FILTER,
190 ],
191)
192.with_original_name("DeleteIntegrationResponse");
193impl crate::operation::delete_integration::DeleteIntegrationOutput {
194 pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DELETEINTEGRATIONOUTPUT_SCHEMA;
196}
197impl ::aws_smithy_schema::serde::SerializableStruct for crate::operation::delete_integration::DeleteIntegrationOutput {
198 fn schema(&self) -> &::aws_smithy_schema::Schema<'_> {
199 Self::SCHEMA
200 }
201
202 #[allow(unused_variables, clippy::diverging_sub_expression)]
203 fn serialize_members(
204 &self,
205 ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
206 ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
207 {
208 let val = &self.source_arn;
209 ser.write_string(&DELETEINTEGRATIONOUTPUT_MEMBER_SOURCE_ARN, val)?;
210 }
211 {
212 let val = &self.target_arn;
213 ser.write_string(&DELETEINTEGRATIONOUTPUT_MEMBER_TARGET_ARN, val)?;
214 }
215 {
216 let val = &self.integration_name;
217 ser.write_string(&DELETEINTEGRATIONOUTPUT_MEMBER_INTEGRATION_NAME, val)?;
218 }
219 if let Some(ref val) = self.description {
220 ser.write_string(&DELETEINTEGRATIONOUTPUT_MEMBER_DESCRIPTION, val)?;
221 }
222 {
223 let val = &self.integration_arn;
224 ser.write_string(&DELETEINTEGRATIONOUTPUT_MEMBER_INTEGRATION_ARN, val)?;
225 }
226 if let Some(ref val) = self.kms_key_id {
227 ser.write_string(&DELETEINTEGRATIONOUTPUT_MEMBER_KMS_KEY_ID, val)?;
228 }
229 if let Some(ref val) = self.additional_encryption_context {
230 ser.write_map(
231 &DELETEINTEGRATIONOUTPUT_MEMBER_ADDITIONAL_ENCRYPTION_CONTEXT,
232 &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
233 for (key, value) in val {
234 ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
235 ser.write_string(&::aws_smithy_schema::prelude::STRING, value)?;
236 }
237 Ok(())
238 },
239 )?;
240 }
241 if let Some(ref val) = self.tags {
242 ser.write_list(
243 &DELETEINTEGRATIONOUTPUT_MEMBER_TAGS,
244 &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
245 for item in val {
246 ser.write_struct(crate::types::Tag::SCHEMA, item)?;
247 }
248 Ok(())
249 },
250 )?;
251 }
252 {
253 let val = &self.status;
254 ser.write_string(&DELETEINTEGRATIONOUTPUT_MEMBER_STATUS, val.as_str())?;
255 }
256 {
257 let val = &self.create_time;
258 ser.write_timestamp(&DELETEINTEGRATIONOUTPUT_MEMBER_CREATE_TIME, val)?;
259 }
260 if let Some(ref val) = self.errors {
261 ser.write_list(
262 &DELETEINTEGRATIONOUTPUT_MEMBER_ERRORS,
263 &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
264 for item in val {
265 ser.write_struct(crate::types::IntegrationError::SCHEMA, item)?;
266 }
267 Ok(())
268 },
269 )?;
270 }
271 if let Some(ref val) = self.data_filter {
272 ser.write_string(&DELETEINTEGRATIONOUTPUT_MEMBER_DATA_FILTER, val)?;
273 }
274 Ok(())
275 }
276}
277impl crate::operation::delete_integration::builders::DeleteIntegrationOutputBuilder {
278 #[allow(
279 unused_variables,
280 unreachable_code,
281 clippy::single_match,
282 clippy::match_single_binding,
283 clippy::diverging_sub_expression
284 )]
285 pub(crate) fn deserialize_members(
286 &mut self,
287 deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
288 ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
289 deserializer.read_struct(&DELETEINTEGRATIONOUTPUT_SCHEMA, &mut |member, deser| {
290 match member.member_index() {
291 Some(0) => {
292 self.source_arn = Some(deser.read_string(member)?);
293 }
294 Some(1) => {
295 self.target_arn = Some(deser.read_string(member)?);
296 }
297 Some(2) => {
298 self.integration_name = Some(deser.read_string(member)?);
299 }
300 Some(3) => {
301 if deser.is_null() {
302 deser.read_null()?;
303 } else {
304 self.description = Some(deser.read_string(member)?);
305 }
306 }
307 Some(4) => {
308 self.integration_arn = Some(deser.read_string(member)?);
309 }
310 Some(5) => {
311 if deser.is_null() {
312 deser.read_null()?;
313 } else {
314 self.kms_key_id = Some(deser.read_string(member)?);
315 }
316 }
317 Some(6) => {
318 if deser.is_null() {
319 deser.read_null()?;
320 } else {
321 self.additional_encryption_context = Some(deser.read_string_string_map(member)?);
322 }
323 }
324 Some(7) => {
325 if deser.is_null() {
326 deser.read_null()?;
327 } else {
328 self.tags = Some({
329 let mut container = Vec::new();
330 deser.read_list(member, &mut |deser| {
331 container.push(crate::types::Tag::deserialize(deser)?);
332 Ok(())
333 })?;
334 container
335 });
336 }
337 }
338 Some(8) => {
339 self.status = Some(crate::types::IntegrationStatus::from(deser.read_string(member)?.as_str()));
340 }
341 Some(9) => {
342 self.create_time = Some(deser.read_timestamp(member)?);
343 }
344 Some(10) => {
345 if deser.is_null() {
346 deser.read_null()?;
347 } else {
348 self.errors = Some({
349 let mut container = Vec::new();
350 deser.read_list(member, &mut |deser| {
351 container.push(crate::types::IntegrationError::deserialize(deser)?);
352 Ok(())
353 })?;
354 container
355 });
356 }
357 }
358 Some(11) => {
359 if deser.is_null() {
360 deser.read_null()?;
361 } else {
362 self.data_filter = Some(deser.read_string(member)?);
363 }
364 }
365 _ => {}
366 }
367 Ok(())
368 })
369 }
370}
371
372impl crate::operation::delete_integration::DeleteIntegrationOutput {
373 pub fn deserialize(
375 deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
376 ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
377 let mut builder = Self::builder();
378 builder.deserialize_members(deserializer)?;
379 builder.source_arn = builder.source_arn.or(Some(String::new()));
380 builder.target_arn = builder.target_arn.or(Some(String::new()));
381 builder.integration_name = builder.integration_name.or(Some(String::new()));
382 builder.integration_arn = builder.integration_arn.or(Some(String::new()));
383 builder.create_time = builder.create_time.or(Some(::aws_smithy_types::DateTime::from_secs(0)));
384 builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
385 }
386}