1VM::EC2::Region(3) User Contributed Perl Documentation VM::EC2::Region(3)
2
3
4
6 VM::EC2::Region - Object describing an Amazon region
7
9 use VM::EC2;
10
11 $ec2 = VM::EC2->new(...);
12 @regions = $ec2->describe_regions();
13
14 $region = $regions[0];
15 $name = $region->regionName;
16 $url = $region->regionEndpoint;
17 @zones = $region->zones;
18
20 This object represents an Amazon EC2 region, and is returned by
21 VM::EC2->describe_regions().
22
24 These object methods are supported:
25
26 regionName -- Name of the region, e.g. "eu-west-1"
27 regionEndpoint -- URL endpoint for AWS API calls, e.g.
28 "ec2.eu-west-1.amazonaws.com"
29 zones -- List of availability zones within this
30 region, as VM::EC2::AvailabilityZone
31 objects.
32
33 Note that you should prefix the endpoint with http:// or https://
34 before using it to change the VM::EC2 endpoint with the endpoint()
35 call. If you do not do so, then https:// will be assumed.
36
38 When used in a string context, this object will interpolate the
39 regionName.
40
42 VM::EC2 VM::EC2::Generic
43
45 Lincoln Stein <lincoln.stein@gmail.com>.
46
47 Copyright (c) 2011 Ontario Institute for Cancer Research
48
49 This package and its accompanying libraries is free software; you can
50 redistribute it and/or modify it under the terms of the GPL (either
51 version 1, or at your option, any later version) or the Artistic
52 License 2.0. Refer to LICENSE for the full license text. In addition,
53 please see DISCLAIMER.txt for disclaimers of warranty.
54
55
56
57perl v5.32.0 2020-07-28 VM::EC2::Region(3)