1VM::EC2::REST::private_Uispe(r3)Contributed Perl DocumenVtMa:t:iEoCn2::REST::private_ip(3)
2
3
4
7 use VM::EC2 ':vpc';
8
10 These methods allow you to control private IP addresses associated with
11 instances running in a VPC.
12
13 $result = $ec2->assign_private_ip_addresses(%args)
14 Assign one or more secondary private IP addresses to a network
15 interface. You can either set the addresses explicitly, or provide a
16 count of secondary addresses, and let Amazon select them for you.
17
18 Required arguments:
19
20 -network_interface_id The network interface to which the IP address(es)
21 will be assigned.
22
23 -private_ip_address One or more secondary IP addresses, as a scalar string
24 -private_ip_addresses or array reference. (The two arguments are equivalent).
25
26 Optional arguments:
27
28 -allow_reassignment If true, allow assignment of an IP address is already in
29 use by another network interface or instance.
30
31 The following are valid arguments to -private_ip_address:
32
33 -private_ip_address => '192.168.0.12' # single address
34 -private_ip_address => ['192.168.0.12','192.168.0.13] # multiple addresses
35 -private_ip_address => 3 # autoselect three addresses
36
37 The mixed form of address, such as ['192.168.0.12','auto'] is not
38 allowed in this call.
39
40 On success, this method returns true.
41
42 $result = $ec2->unassign_private_ip_addresses(%args)
43 Unassign one or more secondary private IP addresses from a network
44 interface.
45
46 Required arguments:
47
48 -network_interface_id The network interface to which the IP address(es)
49 will be assigned.
50
51 -private_ip_address One or more secondary IP addresses, as a scalar string
52 -private_ip_addresses or array reference. (The two arguments are equivalent).
53
54 The following are valid arguments to -private_ip_address:
55
56 -private_ip_address => '192.168.0.12' # single address
57 -private_ip_address => ['192.168.0.12','192.168.0.13] # multiple addresses
58
59 On success, this method returns true.
60
62 VM::EC2
63
65 Lincoln Stein <lincoln.stein@gmail.com>.
66
67 Copyright (c) 2011 Ontario Institute for Cancer Research
68
69 This package and its accompanying libraries is free software; you can
70 redistribute it and/or modify it under the terms of the GPL (either
71 version 1, or at your option, any later version) or the Artistic
72 License 2.0. Refer to LICENSE for the full license text. In addition,
73 please see DISCLAIMER.txt for disclaimers of warranty.
74
75
76
77perl v5.30.1 2020-02-07 VM::EC2::REST::private_ip(3)