blib/lib/Paws/EC2/AssociateVpcCidrBlock.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::AssociateVpcCidrBlock;
3 use Moose;
4 has AmazonProvidedIpv6CidrBlock => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'amazonProvidedIpv6CidrBlock' );
5 has CidrBlock => (is => 'ro', isa => 'Str');
6 has Ipv6CidrBlock => (is => 'ro', isa => 'Str');
7 has Ipv6CidrBlockNetworkBorderGroup => (is => 'ro', isa => 'Str');
8 has Ipv6Pool => (is => 'ro', isa => 'Str');
9 has VpcId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'vpcId' , required => 1);
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'AssociateVpcCidrBlock');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::AssociateVpcCidrBlockResult');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::EC2::AssociateVpcCidrBlock - Arguments for method AssociateVpcCidrBlock on L<Paws::EC2>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method AssociateVpcCidrBlock on the
27 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
28 as arguments to method AssociateVpcCidrBlock.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AssociateVpcCidrBlock.
31  
32 =head1 SYNOPSIS
33  
34 my $ec2 = Paws->service('EC2');
35 my $AssociateVpcCidrBlockResult = $ec2->AssociateVpcCidrBlock(
36 VpcId => 'MyVpcId',
37 AmazonProvidedIpv6CidrBlock => 1, # OPTIONAL
38 CidrBlock => 'MyString', # OPTIONAL
39 Ipv6CidrBlock => 'MyString', # OPTIONAL
40 Ipv6CidrBlockNetworkBorderGroup => 'MyString', # OPTIONAL
41 Ipv6Pool => 'MyIpv6PoolEc2Id', # OPTIONAL
42 );
43  
44 # Results:
45 my $CidrBlockAssociation =
46 $AssociateVpcCidrBlockResult->CidrBlockAssociation;
47 my $Ipv6CidrBlockAssociation =
48 $AssociateVpcCidrBlockResult->Ipv6CidrBlockAssociation;
49 my $VpcId = $AssociateVpcCidrBlockResult->VpcId;
50  
51 # Returns a L<Paws::EC2::AssociateVpcCidrBlockResult> object.
52  
53 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
54 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/AssociateVpcCidrBlock>
55  
56 =head1 ATTRIBUTES
57  
58  
59 =head2 AmazonProvidedIpv6CidrBlock => Bool
60  
61 Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length
62 for the VPC. You cannot specify the range of IPv6 addresses, or the
63 size of the CIDR block.
64  
65  
66  
67 =head2 CidrBlock => Str
68  
69 An IPv4 CIDR block to associate with the VPC.
70  
71  
72  
73 =head2 Ipv6CidrBlock => Str
74  
75 An IPv6 CIDR block from the IPv6 address pool. You must also specify
76 C<Ipv6Pool> in the request.
77  
78 To let Amazon choose the IPv6 CIDR block for you, omit this parameter.
79  
80  
81  
82 =head2 Ipv6CidrBlockNetworkBorderGroup => Str
83  
84 The name of the location from which we advertise the IPV6 CIDR block.
85 Use this parameter to limit the CIDR block to this location.
86  
87 You must set C<AmazonProvidedIpv6CidrBlock> to C<true> to use this
88 parameter.
89  
90 You can have one IPv6 CIDR block association per network border group.
91  
92  
93  
94 =head2 Ipv6Pool => Str
95  
96 The ID of an IPv6 address pool from which to allocate the IPv6 CIDR
97 block.
98  
99  
100  
101 =head2 B<REQUIRED> VpcId => Str
102  
103 The ID of the VPC.
104  
105  
106  
107  
108 =head1 SEE ALSO
109  
110 This class forms part of L<Paws>, documenting arguments for method AssociateVpcCidrBlock in L<Paws::EC2>
111  
112 =head1 BUGS and CONTRIBUTIONS
113  
114 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
115  
116 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
117  
118 =cut
119