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

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::ModifySubnetAttribute;
3 use Moose;
4 has AssignIpv6AddressOnCreation => (is => 'ro', isa => 'Paws::EC2::AttributeBooleanValue');
5 has CustomerOwnedIpv4Pool => (is => 'ro', isa => 'Str');
6 has MapCustomerOwnedIpOnLaunch => (is => 'ro', isa => 'Paws::EC2::AttributeBooleanValue');
7 has MapPublicIpOnLaunch => (is => 'ro', isa => 'Paws::EC2::AttributeBooleanValue');
8 has SubnetId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'subnetId' , required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifySubnetAttribute');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::EC2::ModifySubnetAttribute - Arguments for method ModifySubnetAttribute on L<Paws::EC2>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method ModifySubnetAttribute on the
26 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
27 as arguments to method ModifySubnetAttribute.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifySubnetAttribute.
30  
31 =head1 SYNOPSIS
32  
33 my $ec2 = Paws->service('EC2');
34 # To change a subnet's public IP addressing behavior
35 # This example modifies the specified subnet so that all instances launched into
36 # this subnet are assigned a public IP address.
37 $ec2->ModifySubnetAttribute(
38 'MapPublicIpOnLaunch' => {
39 'Value' => 1
40 },
41 'SubnetId' => 'subnet-1a2b3c4d'
42 );
43  
44  
45 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.
46 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/ModifySubnetAttribute>
47  
48 =head1 ATTRIBUTES
49  
50  
51 =head2 AssignIpv6AddressOnCreation => L<Paws::EC2::AttributeBooleanValue>
52  
53 Specify C<true> to indicate that network interfaces created in the
54 specified subnet should be assigned an IPv6 address. This includes a
55 network interface that's created when launching an instance into the
56 subnet (the instance therefore receives an IPv6 address).
57  
58 If you enable the IPv6 addressing feature for your subnet, your network
59 interface or instance only receives an IPv6 address if it's created
60 using version C<2016-11-15> or later of the Amazon EC2 API.
61  
62  
63  
64 =head2 CustomerOwnedIpv4Pool => Str
65  
66 The customer-owned IPv4 address pool associated with the subnet.
67  
68 You must set this value when you specify C<true> for
69 C<MapCustomerOwnedIpOnLaunch>.
70  
71  
72  
73 =head2 MapCustomerOwnedIpOnLaunch => L<Paws::EC2::AttributeBooleanValue>
74  
75 Specify C<true> to indicate that network interfaces attached to
76 instances created in the specified subnet should be assigned a
77 customer-owned IPv4 address.
78  
79 When this value is C<true>, you must specify the customer-owned IP pool
80 using C<CustomerOwnedIpv4Pool>.
81  
82  
83  
84 =head2 MapPublicIpOnLaunch => L<Paws::EC2::AttributeBooleanValue>
85  
86 Specify C<true> to indicate that network interfaces attached to
87 instances created in the specified subnet should be assigned a public
88 IPv4 address.
89  
90  
91  
92 =head2 B<REQUIRED> SubnetId => Str
93  
94 The ID of the subnet.
95  
96  
97  
98  
99 =head1 SEE ALSO
100  
101 This class forms part of L<Paws>, documenting arguments for method ModifySubnetAttribute in L<Paws::EC2>
102  
103 =head1 BUGS and CONTRIBUTIONS
104  
105 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
106  
107 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
108  
109 =cut
110