blib/lib/Paws/Lightsail/CreateRelationalDatabaseFromSnapshot.pm untested

filter: Statementstmt 0.0% 0 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 29 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Lightsail::CreateRelationalDatabaseFromSnapshot;
3 use Moose;
4 has AvailabilityZone => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'availabilityZone' );
5 has PubliclyAccessible => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'publiclyAccessible' );
6 has RelationalDatabaseBundleId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'relationalDatabaseBundleId' );
7 has RelationalDatabaseName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'relationalDatabaseName' , required => 1);
8 has RelationalDatabaseSnapshotName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'relationalDatabaseSnapshotName' );
9 has RestoreTime => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'restoreTime' );
10 has SourceRelationalDatabaseName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'sourceRelationalDatabaseName' );
11 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::Lightsail::Tag]', traits => ['NameInRequest'], request_name => 'tags' );
12 has UseLatestRestorableTime => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'useLatestRestorableTime' );
13  
14 use MooseX::ClassAttribute;
15  
16 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateRelationalDatabaseFromSnapshot');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lightsail::CreateRelationalDatabaseFromSnapshotResult');
18 class_has _result_key => (isa => 'Str', is => 'ro');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::Lightsail::CreateRelationalDatabaseFromSnapshot - Arguments for method CreateRelationalDatabaseFromSnapshot on L<Paws::Lightsail>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method CreateRelationalDatabaseFromSnapshot on the
30 L<Amazon Lightsail|Paws::Lightsail> service. Use the attributes of this class
31 as arguments to method CreateRelationalDatabaseFromSnapshot.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateRelationalDatabaseFromSnapshot.
34  
35 =head1 SYNOPSIS
36  
37 my $lightsail = Paws->service('Lightsail');
38 my $CreateRelationalDatabaseFromSnapshotResult =
39 $lightsail->CreateRelationalDatabaseFromSnapshot(
40 RelationalDatabaseName => 'MyResourceName',
41 AvailabilityZone => 'Mystring', # OPTIONAL
42 PubliclyAccessible => 1, # OPTIONAL
43 RelationalDatabaseBundleId => 'Mystring', # OPTIONAL
44 RelationalDatabaseSnapshotName => 'MyResourceName', # OPTIONAL
45 RestoreTime => '1970-01-01T01:00:00', # OPTIONAL
46 SourceRelationalDatabaseName => 'MyResourceName', # OPTIONAL
47 Tags => [
48 {
49 Key => 'MyTagKey', # OPTIONAL
50 Value => 'MyTagValue', # OPTIONAL
51 },
52 ...
53 ], # OPTIONAL
54 UseLatestRestorableTime => 1, # OPTIONAL
55 );
56  
57 # Results:
58 my $Operations = $CreateRelationalDatabaseFromSnapshotResult->Operations;
59  
60 # Returns a L<Paws::Lightsail::CreateRelationalDatabaseFromSnapshotResult> object.
61  
62 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.
63 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lightsail/CreateRelationalDatabaseFromSnapshot>
64  
65 =head1 ATTRIBUTES
66  
67  
68 =head2 AvailabilityZone => Str
69  
70 The Availability Zone in which to create your new database. Use the
71 C<us-east-2a> case-sensitive format.
72  
73 You can get a list of Availability Zones by using the C<get regions>
74 operation. Be sure to add the C<include relational database
75 Availability Zones> parameter to your request.
76  
77  
78  
79 =head2 PubliclyAccessible => Bool
80  
81 Specifies the accessibility options for your new database. A value of
82 C<true> specifies a database that is available to resources outside of
83 your Lightsail account. A value of C<false> specifies a database that
84 is available only to your Lightsail resources in the same region as
85 your database.
86  
87  
88  
89 =head2 RelationalDatabaseBundleId => Str
90  
91 The bundle ID for your new database. A bundle describes the performance
92 specifications for your database.
93  
94 You can get a list of database bundle IDs by using the C<get relational
95 database bundles> operation.
96  
97 When creating a new database from a snapshot, you cannot choose a
98 bundle that is smaller than the bundle of the source database.
99  
100  
101  
102 =head2 B<REQUIRED> RelationalDatabaseName => Str
103  
104 The name to use for your new Lightsail database resource.
105  
106 Constraints:
107  
108 =over
109  
110 =item *
111  
112 Must contain from 2 to 255 alphanumeric characters, or hyphens.
113  
114 =item *
115  
116 The first and last character must be a letter or number.
117  
118 =back
119  
120  
121  
122  
123 =head2 RelationalDatabaseSnapshotName => Str
124  
125 The name of the database snapshot from which to create your new
126 database.
127  
128  
129  
130 =head2 RestoreTime => Str
131  
132 The date and time to restore your database from.
133  
134 Constraints:
135  
136 =over
137  
138 =item *
139  
140 Must be before the latest restorable time for the database.
141  
142 =item *
143  
144 Cannot be specified if the C<use latest restorable time> parameter is
145 C<true>.
146  
147 =item *
148  
149 Specified in Coordinated Universal Time (UTC).
150  
151 =item *
152  
153 Specified in the Unix time format.
154  
155 For example, if you wish to use a restore time of October 1, 2018, at 8
156 PM UTC, then you input C<1538424000> as the restore time.
157  
158 =back
159  
160  
161  
162  
163 =head2 SourceRelationalDatabaseName => Str
164  
165 The name of the source database.
166  
167  
168  
169 =head2 Tags => ArrayRef[L<Paws::Lightsail::Tag>]
170  
171 The tag keys and optional values to add to the resource during create.
172  
173 Use the C<TagResource> action to tag a resource after it's created.
174  
175  
176  
177 =head2 UseLatestRestorableTime => Bool
178  
179 Specifies whether your database is restored from the latest backup
180 time. A value of C<true> restores from the latest backup time.
181  
182 Default: C<false>
183  
184 Constraints: Cannot be specified if the C<restore time> parameter is
185 provided.
186  
187  
188  
189  
190 =head1 SEE ALSO
191  
192 This class forms part of L<Paws>, documenting arguments for method CreateRelationalDatabaseFromSnapshot in L<Paws::Lightsail>
193  
194 =head1 BUGS and CONTRIBUTIONS
195  
196 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
197  
198 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
199  
200 =cut
201