File Coverage

blib/lib/Paws/Lightsail/CreateInstances.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::Lightsail::CreateInstances;
3 1     1   432 use Moose;
  1         2  
  1         7  
4             has AvailabilityZone => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'availabilityZone' , required => 1);
5             has BlueprintId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'blueprintId' , required => 1);
6             has BundleId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'bundleId' , required => 1);
7             has CustomImageName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'customImageName' );
8             has InstanceNames => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'instanceNames' , required => 1);
9             has KeyPairName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'keyPairName' );
10             has UserData => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'userData' );
11              
12 1     1   8788 use MooseX::ClassAttribute;
  1         6  
  1         13  
13              
14             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateInstances');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lightsail::CreateInstancesResult');
16             class_has _result_key => (isa => 'Str', is => 'ro');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::Lightsail::CreateInstances - Arguments for method CreateInstances on Paws::Lightsail
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method CreateInstances on the
28             Amazon Lightsail service. Use the attributes of this class
29             as arguments to method CreateInstances.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateInstances.
32              
33             As an example:
34              
35             $service_obj->CreateInstances(Att1 => $value1, Att2 => $value2, ...);
36              
37             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.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 B<REQUIRED> AvailabilityZone => Str
43              
44             The Availability Zone in which to create your instance. Use the
45             following format: C<us-east-1a> (case sensitive). You can get a list of
46             availability zones by using the get regions operation. Be sure to add
47             the C<include availability zones> parameter to your request.
48              
49              
50              
51             =head2 B<REQUIRED> BlueprintId => Str
52              
53             The ID for a virtual private server image (e.g., C<app_wordpress_4_4>
54             or C<app_lamp_7_0>). Use the get blueprints operation to return a list
55             of available images (or I<blueprints>).
56              
57              
58              
59             =head2 B<REQUIRED> BundleId => Str
60              
61             The bundle of specification information for your virtual private server
62             (or I<instance>), including the pricing plan (e.g., C<micro_1_0>).
63              
64              
65              
66             =head2 CustomImageName => Str
67              
68             (Deprecated) The name for your custom image.
69              
70             In releases prior to June 12, 2017, this parameter was ignored by the
71             API. It is now deprecated.
72              
73              
74              
75             =head2 B<REQUIRED> InstanceNames => ArrayRef[Str|Undef]
76              
77             The names to use for your new Lightsail instances. Separate multiple
78             values using quotation marks and commas, for example:
79             C<["MyFirstInstance","MySecondInstance"]>
80              
81              
82              
83             =head2 KeyPairName => Str
84              
85             The name of your key pair.
86              
87              
88              
89             =head2 UserData => Str
90              
91             A launch script you can create that configures a server with additional
92             user data. For example, you might want to run C<apt-get E<ndash>y
93             update>.
94              
95             Depending on the machine image you choose, the command to get software
96             on your instance varies. Amazon Linux and CentOS use C<yum>, Debian and
97             Ubuntu use C<apt-get>, and FreeBSD uses C<pkg>. For a complete list,
98             see the Dev Guide.
99              
100              
101              
102              
103             =head1 SEE ALSO
104              
105             This class forms part of L<Paws>, documenting arguments for method CreateInstances in L<Paws::Lightsail>
106              
107             =head1 BUGS and CONTRIBUTIONS
108              
109             The source code is located here: https://github.com/pplu/aws-sdk-perl
110              
111             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
112              
113             =cut
114