1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
use aws_sdk_ec2 as ec2;

use super::*;

impl Show for ec2::types::Vpc {
    fn _fmt(&self) -> Box<dyn fmt::Display> {
        // VPCS	172.31.0.0/16	dopt-0231e8f83a4087151	default	True	143766252400	available	vpc-0dc4d0edfa9577e0e
        // CIDRBLOCKASSOCIATIONSET	vpc-cidr-assoc-0cba32e6145fb987c	172.31.0.0/16
        // CIDRBLOCKSTATE	associated

        Box::new(fmtools::format!(
            "VPCS\t" { self.cidr_block()._fmt() } "\t"
            { self.dhcp_options_id()._fmt() } "\t"
            { self.instance_tenancy()._fmt() } "\t"
            { self.is_default()._fmt() } "\t"
            { self.owner_id()._fmt() } "\t"
            { self.state()._fmt() } "\t"
            { self.vpc_id()._fmt() } "\t\n"
            { self.ipv6_cidr_block_association_set()._fmt() }
            { self.cidr_block_association_set()._fmt() }
        ))
    }
}

impl Show for ec2::types::VpcState {
    fn _fmt(&self) -> Box<dyn fmt::Display + '_> {
        Box::new(self.as_str())
    }
}

impl Show for ec2::types::Tenancy {
    fn _fmt(&self) -> Box<dyn fmt::Display + '_> {
        Box::new(self.as_str())
    }
}

impl Show for ec2::types::VpcIpv6CidrBlockAssociation {
    fn _fmt(&self) -> Box<dyn fmt::Display + '_> {
        Box::new(fmtools::fmt!(
            "IPV6CIDRBLOCKASSOCIATIONSET\t"
            { self.association_id()._fmt() } "\t"
            { self.ipv6_cidr_block()._fmt() } "\t"
            { self.ipv6_cidr_block_state()._fmt() } "\t"
            { self.network_border_group()._fmt() } "\t"
            { self.ipv6_pool()._fmt() }
        ))
    }
}

impl Show for ec2::types::VpcCidrBlockAssociation {
    fn _fmt(&self) -> Box<dyn fmt::Display + '_> {
        Box::new(fmtools::fmt!(
            "CIDRBLOCKASSOCIATIONSET\t"
            { self.association_id()._fmt() } "\t"
            { self.cidr_block()._fmt() } "\t\n"
            { self.cidr_block_state()._fmt() }
        ))
    }
}

impl Show for ec2::types::VpcCidrBlockState {
    fn _fmt(&self) -> Box<dyn fmt::Display + '_> {
        Box::new(fmtools::fmt!(
            "CIDRBLOCKSTATE\t"
            { self.state()._fmt() } "\t"
            { self.status_message()._fmt() } "\t"

        ))
    }
}

impl Show for ec2::types::VpcCidrBlockStateCode {
    fn _fmt(&self) -> Box<dyn fmt::Display + '_> {
        Box::new(self.as_str())
    }
}