139 139 | }
|
140 140 | static VERIFIEDACCESSENDPOINT_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
|
141 141 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VerifiedAccessEndpoint", "com.amazonaws.ec2", "VerifiedAccessEndpoint");
|
142 142 | static VERIFIEDACCESSENDPOINT_MEMBER_VERIFIED_ACCESS_INSTANCE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
143 143 | ::aws_smithy_schema::ShapeId::from_static(
|
144 144 | "com.amazonaws.ec2#VerifiedAccessEndpoint$VerifiedAccessInstanceId",
|
145 145 | "com.amazonaws.ec2",
|
146 146 | "VerifiedAccessEndpoint",
|
147 147 | ),
|
148 148 | ::aws_smithy_schema::ShapeType::String,
|
149 - | "verified_access_instance_id",
|
149 + | "VerifiedAccessInstanceId",
|
150 150 | 0,
|
151 151 | )
|
152 152 | .with_xml_name("verifiedAccessInstanceId");
|
153 153 | static VERIFIEDACCESSENDPOINT_MEMBER_VERIFIED_ACCESS_GROUP_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
154 154 | ::aws_smithy_schema::ShapeId::from_static(
|
155 155 | "com.amazonaws.ec2#VerifiedAccessEndpoint$VerifiedAccessGroupId",
|
156 156 | "com.amazonaws.ec2",
|
157 157 | "VerifiedAccessEndpoint",
|
158 158 | ),
|
159 159 | ::aws_smithy_schema::ShapeType::String,
|
160 - | "verified_access_group_id",
|
160 + | "VerifiedAccessGroupId",
|
161 161 | 1,
|
162 162 | )
|
163 163 | .with_xml_name("verifiedAccessGroupId");
|
164 164 | static VERIFIEDACCESSENDPOINT_MEMBER_VERIFIED_ACCESS_ENDPOINT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
165 165 | ::aws_smithy_schema::ShapeId::from_static(
|
166 166 | "com.amazonaws.ec2#VerifiedAccessEndpoint$VerifiedAccessEndpointId",
|
167 167 | "com.amazonaws.ec2",
|
168 168 | "VerifiedAccessEndpoint",
|
169 169 | ),
|
170 170 | ::aws_smithy_schema::ShapeType::String,
|
171 - | "verified_access_endpoint_id",
|
171 + | "VerifiedAccessEndpointId",
|
172 172 | 2,
|
173 173 | )
|
174 174 | .with_xml_name("verifiedAccessEndpointId");
|
175 175 | static VERIFIEDACCESSENDPOINT_MEMBER_APPLICATION_DOMAIN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
176 176 | ::aws_smithy_schema::ShapeId::from_static(
|
177 177 | "com.amazonaws.ec2#VerifiedAccessEndpoint$ApplicationDomain",
|
178 178 | "com.amazonaws.ec2",
|
179 179 | "VerifiedAccessEndpoint",
|
180 180 | ),
|
181 181 | ::aws_smithy_schema::ShapeType::String,
|
182 - | "application_domain",
|
182 + | "ApplicationDomain",
|
183 183 | 3,
|
184 184 | )
|
185 185 | .with_xml_name("applicationDomain");
|
186 186 | static VERIFIEDACCESSENDPOINT_MEMBER_ENDPOINT_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
187 187 | ::aws_smithy_schema::ShapeId::from_static(
|
188 188 | "com.amazonaws.ec2#VerifiedAccessEndpoint$EndpointType",
|
189 189 | "com.amazonaws.ec2",
|
190 190 | "VerifiedAccessEndpoint",
|
191 191 | ),
|
192 192 | ::aws_smithy_schema::ShapeType::String,
|
193 - | "endpoint_type",
|
193 + | "EndpointType",
|
194 194 | 4,
|
195 195 | )
|
196 196 | .with_xml_name("endpointType");
|
197 197 | static VERIFIEDACCESSENDPOINT_MEMBER_ATTACHMENT_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
198 198 | ::aws_smithy_schema::ShapeId::from_static(
|
199 199 | "com.amazonaws.ec2#VerifiedAccessEndpoint$AttachmentType",
|
200 200 | "com.amazonaws.ec2",
|
201 201 | "VerifiedAccessEndpoint",
|
202 202 | ),
|
203 203 | ::aws_smithy_schema::ShapeType::String,
|
204 - | "attachment_type",
|
204 + | "AttachmentType",
|
205 205 | 5,
|
206 206 | )
|
207 207 | .with_xml_name("attachmentType");
|
208 208 | static VERIFIEDACCESSENDPOINT_MEMBER_DOMAIN_CERTIFICATE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
209 209 | ::aws_smithy_schema::ShapeId::from_static(
|
210 210 | "com.amazonaws.ec2#VerifiedAccessEndpoint$DomainCertificateArn",
|
211 211 | "com.amazonaws.ec2",
|
212 212 | "VerifiedAccessEndpoint",
|
213 213 | ),
|
214 214 | ::aws_smithy_schema::ShapeType::String,
|
215 - | "domain_certificate_arn",
|
215 + | "DomainCertificateArn",
|
216 216 | 6,
|
217 217 | )
|
218 218 | .with_xml_name("domainCertificateArn");
|
219 219 | static VERIFIEDACCESSENDPOINT_MEMBER_ENDPOINT_DOMAIN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
220 220 | ::aws_smithy_schema::ShapeId::from_static(
|
221 221 | "com.amazonaws.ec2#VerifiedAccessEndpoint$EndpointDomain",
|
222 222 | "com.amazonaws.ec2",
|
223 223 | "VerifiedAccessEndpoint",
|
224 224 | ),
|
225 225 | ::aws_smithy_schema::ShapeType::String,
|
226 - | "endpoint_domain",
|
226 + | "EndpointDomain",
|
227 227 | 7,
|
228 228 | )
|
229 229 | .with_xml_name("endpointDomain");
|
230 230 | static VERIFIEDACCESSENDPOINT_MEMBER_DEVICE_VALIDATION_DOMAIN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
231 231 | ::aws_smithy_schema::ShapeId::from_static(
|
232 232 | "com.amazonaws.ec2#VerifiedAccessEndpoint$DeviceValidationDomain",
|
233 233 | "com.amazonaws.ec2",
|
234 234 | "VerifiedAccessEndpoint",
|
235 235 | ),
|
236 236 | ::aws_smithy_schema::ShapeType::String,
|
237 - | "device_validation_domain",
|
237 + | "DeviceValidationDomain",
|
238 238 | 8,
|
239 239 | )
|
240 240 | .with_xml_name("deviceValidationDomain");
|
241 241 | static VERIFIEDACCESSENDPOINT_MEMBER_SECURITY_GROUP_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
242 242 | ::aws_smithy_schema::ShapeId::from_static(
|
243 243 | "com.amazonaws.ec2#VerifiedAccessEndpoint$SecurityGroupIds",
|
244 244 | "com.amazonaws.ec2",
|
245 245 | "VerifiedAccessEndpoint",
|
246 246 | ),
|
247 247 | ::aws_smithy_schema::ShapeType::List,
|
248 - | "security_group_ids",
|
248 + | "SecurityGroupIds",
|
249 249 | 9,
|
250 250 | )
|
251 251 | .with_xml_name("securityGroupIdSet");
|
252 252 | static VERIFIEDACCESSENDPOINT_MEMBER_LOAD_BALANCER_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
253 253 | ::aws_smithy_schema::ShapeId::from_static(
|
254 254 | "com.amazonaws.ec2#VerifiedAccessEndpoint$LoadBalancerOptions",
|
255 255 | "com.amazonaws.ec2",
|
256 256 | "VerifiedAccessEndpoint",
|
257 257 | ),
|
258 258 | ::aws_smithy_schema::ShapeType::Structure,
|
259 - | "load_balancer_options",
|
259 + | "LoadBalancerOptions",
|
260 260 | 10,
|
261 261 | )
|
262 262 | .with_xml_name("loadBalancerOptions");
|
263 263 | static VERIFIEDACCESSENDPOINT_MEMBER_NETWORK_INTERFACE_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
264 264 | ::aws_smithy_schema::ShapeId::from_static(
|
265 265 | "com.amazonaws.ec2#VerifiedAccessEndpoint$NetworkInterfaceOptions",
|
266 266 | "com.amazonaws.ec2",
|
267 267 | "VerifiedAccessEndpoint",
|
268 268 | ),
|
269 269 | ::aws_smithy_schema::ShapeType::Structure,
|
270 - | "network_interface_options",
|
270 + | "NetworkInterfaceOptions",
|
271 271 | 11,
|
272 272 | )
|
273 273 | .with_xml_name("networkInterfaceOptions");
|
274 274 | static VERIFIEDACCESSENDPOINT_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
275 275 | ::aws_smithy_schema::ShapeId::from_static(
|
276 276 | "com.amazonaws.ec2#VerifiedAccessEndpoint$Status",
|
277 277 | "com.amazonaws.ec2",
|
278 278 | "VerifiedAccessEndpoint",
|
279 279 | ),
|
280 280 | ::aws_smithy_schema::ShapeType::Structure,
|
281 - | "status",
|
281 + | "Status",
|
282 282 | 12,
|
283 283 | )
|
284 284 | .with_xml_name("status");
|
285 285 | static VERIFIEDACCESSENDPOINT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
286 286 | ::aws_smithy_schema::ShapeId::from_static(
|
287 287 | "com.amazonaws.ec2#VerifiedAccessEndpoint$Description",
|
288 288 | "com.amazonaws.ec2",
|
289 289 | "VerifiedAccessEndpoint",
|
290 290 | ),
|
291 291 | ::aws_smithy_schema::ShapeType::String,
|
292 - | "description",
|
292 + | "Description",
|
293 293 | 13,
|
294 294 | )
|
295 295 | .with_xml_name("description");
|
296 296 | static VERIFIEDACCESSENDPOINT_MEMBER_CREATION_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
297 297 | ::aws_smithy_schema::ShapeId::from_static(
|
298 298 | "com.amazonaws.ec2#VerifiedAccessEndpoint$CreationTime",
|
299 299 | "com.amazonaws.ec2",
|
300 300 | "VerifiedAccessEndpoint",
|
301 301 | ),
|
302 302 | ::aws_smithy_schema::ShapeType::String,
|
303 - | "creation_time",
|
303 + | "CreationTime",
|
304 304 | 14,
|
305 305 | )
|
306 306 | .with_xml_name("creationTime");
|
307 307 | static VERIFIEDACCESSENDPOINT_MEMBER_LAST_UPDATED_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
308 308 | ::aws_smithy_schema::ShapeId::from_static(
|
309 309 | "com.amazonaws.ec2#VerifiedAccessEndpoint$LastUpdatedTime",
|
310 310 | "com.amazonaws.ec2",
|
311 311 | "VerifiedAccessEndpoint",
|
312 312 | ),
|
313 313 | ::aws_smithy_schema::ShapeType::String,
|
314 - | "last_updated_time",
|
314 + | "LastUpdatedTime",
|
315 315 | 15,
|
316 316 | )
|
317 317 | .with_xml_name("lastUpdatedTime");
|
318 318 | static VERIFIEDACCESSENDPOINT_MEMBER_DELETION_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
319 319 | ::aws_smithy_schema::ShapeId::from_static(
|
320 320 | "com.amazonaws.ec2#VerifiedAccessEndpoint$DeletionTime",
|
321 321 | "com.amazonaws.ec2",
|
322 322 | "VerifiedAccessEndpoint",
|
323 323 | ),
|
324 324 | ::aws_smithy_schema::ShapeType::String,
|
325 - | "deletion_time",
|
325 + | "DeletionTime",
|
326 326 | 16,
|
327 327 | )
|
328 328 | .with_xml_name("deletionTime");
|
329 329 | static VERIFIEDACCESSENDPOINT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
330 330 | ::aws_smithy_schema::ShapeId::from_static(
|
331 331 | "com.amazonaws.ec2#VerifiedAccessEndpoint$Tags",
|
332 332 | "com.amazonaws.ec2",
|
333 333 | "VerifiedAccessEndpoint",
|
334 334 | ),
|
335 335 | ::aws_smithy_schema::ShapeType::List,
|
336 - | "tags",
|
336 + | "Tags",
|
337 337 | 17,
|
338 338 | )
|
339 339 | .with_xml_name("tagSet");
|
340 340 | static VERIFIEDACCESSENDPOINT_MEMBER_SSE_SPECIFICATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
341 341 | ::aws_smithy_schema::ShapeId::from_static(
|
342 342 | "com.amazonaws.ec2#VerifiedAccessEndpoint$SseSpecification",
|
343 343 | "com.amazonaws.ec2",
|
344 344 | "VerifiedAccessEndpoint",
|
345 345 | ),
|
346 346 | ::aws_smithy_schema::ShapeType::Structure,
|
347 - | "sse_specification",
|
347 + | "SseSpecification",
|
348 348 | 18,
|
349 349 | )
|
350 350 | .with_xml_name("sseSpecification");
|
351 351 | static VERIFIEDACCESSENDPOINT_MEMBER_RDS_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
352 352 | ::aws_smithy_schema::ShapeId::from_static(
|
353 353 | "com.amazonaws.ec2#VerifiedAccessEndpoint$RdsOptions",
|
354 354 | "com.amazonaws.ec2",
|
355 355 | "VerifiedAccessEndpoint",
|
356 356 | ),
|
357 357 | ::aws_smithy_schema::ShapeType::Structure,
|
358 - | "rds_options",
|
358 + | "RdsOptions",
|
359 359 | 19,
|
360 360 | )
|
361 361 | .with_xml_name("rdsOptions");
|
362 362 | static VERIFIEDACCESSENDPOINT_MEMBER_CIDR_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
363 363 | ::aws_smithy_schema::ShapeId::from_static(
|
364 364 | "com.amazonaws.ec2#VerifiedAccessEndpoint$CidrOptions",
|
365 365 | "com.amazonaws.ec2",
|
366 366 | "VerifiedAccessEndpoint",
|
367 367 | ),
|
368 368 | ::aws_smithy_schema::ShapeType::Structure,
|
369 - | "cidr_options",
|
369 + | "CidrOptions",
|
370 370 | 20,
|
371 371 | )
|
372 372 | .with_xml_name("cidrOptions");
|
373 373 | static VERIFIEDACCESSENDPOINT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
374 374 | VERIFIEDACCESSENDPOINT_SCHEMA_ID,
|
375 375 | ::aws_smithy_schema::ShapeType::Structure,
|
376 376 | &[
|
377 377 | &VERIFIEDACCESSENDPOINT_MEMBER_VERIFIED_ACCESS_INSTANCE_ID,
|
378 378 | &VERIFIEDACCESSENDPOINT_MEMBER_VERIFIED_ACCESS_GROUP_ID,
|
379 379 | &VERIFIEDACCESSENDPOINT_MEMBER_VERIFIED_ACCESS_ENDPOINT_ID,
|
484 484 | ser.write_struct(&VERIFIEDACCESSENDPOINT_MEMBER_RDS_OPTIONS, val)?;
|
485 485 | }
|
486 486 | if let Some(ref val) = self.cidr_options {
|
487 487 | ser.write_struct(&VERIFIEDACCESSENDPOINT_MEMBER_CIDR_OPTIONS, val)?;
|
488 488 | }
|
489 489 | Ok(())
|
490 490 | }
|
491 491 | }
|
492 492 | impl VerifiedAccessEndpoint {
|
493 493 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
494 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
495 - | deserializer: &mut D,
|
494 + | pub fn deserialize(
|
495 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
496 496 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
497 497 | #[allow(unused_variables, unused_mut)]
|
498 498 | let mut builder = Self::builder();
|
499 499 | #[allow(
|
500 500 | unused_variables,
|
501 501 | unreachable_code,
|
502 502 | clippy::single_match,
|
503 503 | clippy::match_single_binding,
|
504 504 | clippy::diverging_sub_expression
|
505 505 | )]
|
506 - | deserializer.read_struct(&VERIFIEDACCESSENDPOINT_SCHEMA, (), |_, member, deser| {
|
506 + | deserializer.read_struct(&VERIFIEDACCESSENDPOINT_SCHEMA, &mut |member, deser| {
|
507 507 | match member.member_index() {
|
508 508 | Some(0) => {
|
509 509 | builder.verified_access_instance_id = Some(deser.read_string(member)?);
|
510 510 | }
|
511 511 | Some(1) => {
|
512 512 | builder.verified_access_group_id = Some(deser.read_string(member)?);
|
513 513 | }
|
514 514 | Some(2) => {
|
515 515 | builder.verified_access_endpoint_id = Some(deser.read_string(member)?);
|
516 516 | }
|
517 517 | Some(3) => {
|
518 518 | builder.application_domain = Some(deser.read_string(member)?);
|
519 519 | }
|
520 520 | Some(4) => {
|
521 521 | builder.endpoint_type = Some(crate::types::VerifiedAccessEndpointType::from(deser.read_string(member)?.as_str()));
|
522 522 | }
|
523 523 | Some(5) => {
|
524 524 | builder.attachment_type = Some(crate::types::VerifiedAccessEndpointAttachmentType::from(
|
525 525 | deser.read_string(member)?.as_str(),
|
526 526 | ));
|
527 527 | }
|
528 528 | Some(6) => {
|
529 529 | builder.domain_certificate_arn = Some(deser.read_string(member)?);
|
530 530 | }
|
531 531 | Some(7) => {
|
532 532 | builder.endpoint_domain = Some(deser.read_string(member)?);
|
533 533 | }
|
534 534 | Some(8) => {
|
535 535 | builder.device_validation_domain = Some(deser.read_string(member)?);
|
536 536 | }
|
537 537 | Some(9) => {
|
538 - | builder.security_group_ids = Some({
|
539 - | let container = if let Some(cap) = deser.container_size() {
|
540 - | Vec::with_capacity(cap)
|
541 - | } else {
|
542 - | Vec::new()
|
543 - | };
|
544 - | deser.read_list(member, container, |mut list, deser| {
|
545 - | list.push(deser.read_string(member)?);
|
546 - | Ok(list)
|
547 - | })?
|
548 - | });
|
538 + | builder.security_group_ids = Some(deser.read_string_list(member)?);
|
549 539 | }
|
550 540 | Some(10) => {
|
551 541 | builder.load_balancer_options = Some(crate::types::VerifiedAccessEndpointLoadBalancerOptions::deserialize(deser)?);
|
552 542 | }
|
553 543 | Some(11) => {
|
554 544 | builder.network_interface_options = Some(crate::types::VerifiedAccessEndpointEniOptions::deserialize(deser)?);
|
555 545 | }
|
556 546 | Some(12) => {
|
557 547 | builder.status = Some(crate::types::VerifiedAccessEndpointStatus::deserialize(deser)?);
|
558 548 | }
|
559 549 | Some(13) => {
|
560 550 | builder.description = Some(deser.read_string(member)?);
|
561 551 | }
|
562 552 | Some(14) => {
|
563 553 | builder.creation_time = Some(deser.read_string(member)?);
|
564 554 | }
|
565 555 | Some(15) => {
|
566 556 | builder.last_updated_time = Some(deser.read_string(member)?);
|
567 557 | }
|
568 558 | Some(16) => {
|
569 559 | builder.deletion_time = Some(deser.read_string(member)?);
|
570 560 | }
|
571 561 | Some(17) => {
|
572 562 | builder.tags = Some({
|
573 - | let container = if let Some(cap) = deser.container_size() {
|
574 - | Vec::with_capacity(cap)
|
575 - | } else {
|
576 - | Vec::new()
|
577 - | };
|
578 - | deser.read_list(member, container, |mut list, deser| {
|
579 - | list.push(crate::types::Tag::deserialize(deser)?);
|
580 - | Ok(list)
|
581 - | })?
|
563 + | let mut container = Vec::new();
|
564 + | deser.read_list(member, &mut |deser| {
|
565 + | container.push(crate::types::Tag::deserialize(deser)?);
|
566 + | Ok(())
|
567 + | })?;
|
568 + | container
|
582 569 | });
|
583 570 | }
|
584 571 | Some(18) => {
|
585 572 | builder.sse_specification = Some(crate::types::VerifiedAccessSseSpecificationResponse::deserialize(deser)?);
|
586 573 | }
|
587 574 | Some(19) => {
|
588 575 | builder.rds_options = Some(crate::types::VerifiedAccessEndpointRdsOptions::deserialize(deser)?);
|
589 576 | }
|
590 577 | Some(20) => {
|
591 578 | builder.cidr_options = Some(crate::types::VerifiedAccessEndpointCidrOptions::deserialize(deser)?);
|
592 579 | }
|
593 580 | _ => {}
|
594 581 | }
|
595 582 | Ok(())
|
596 583 | })?;
|
597 584 | Ok(builder.build())
|
598 585 | }
|
599 586 | }
|
587 + | impl VerifiedAccessEndpoint {
|
588 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
589 + | pub fn deserialize_with_response(
|
590 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
591 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
592 + | _status: u16,
|
593 + | _body: &[u8],
|
594 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
595 + | Self::deserialize(deserializer)
|
596 + | }
|
597 + | }
|
600 598 | impl VerifiedAccessEndpoint {
|
601 599 | /// Creates a new builder-style object to manufacture [`VerifiedAccessEndpoint`](crate::types::VerifiedAccessEndpoint).
|
602 600 | pub fn builder() -> crate::types::builders::VerifiedAccessEndpointBuilder {
|
603 601 | crate::types::builders::VerifiedAccessEndpointBuilder::default()
|
604 602 | }
|
605 603 | }
|
606 604 |
|
607 605 | /// A builder for [`VerifiedAccessEndpoint`](crate::types::VerifiedAccessEndpoint).
|
608 606 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
609 607 | #[non_exhaustive]
|