File Coverage

blib/lib/Paws/RDS/RestoreDBInstanceFromDBSnapshot.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::RDS::RestoreDBInstanceFromDBSnapshot;
3 1     1   756 use Moose;
  1         4  
  1         11  
4             has AutoMinorVersionUpgrade => (is => 'ro', isa => 'Bool');
5             has AvailabilityZone => (is => 'ro', isa => 'Str');
6             has CopyTagsToSnapshot => (is => 'ro', isa => 'Bool');
7             has DBInstanceClass => (is => 'ro', isa => 'Str');
8             has DBInstanceIdentifier => (is => 'ro', isa => 'Str', required => 1);
9             has DBName => (is => 'ro', isa => 'Str');
10             has DBSnapshotIdentifier => (is => 'ro', isa => 'Str', required => 1);
11             has DBSubnetGroupName => (is => 'ro', isa => 'Str');
12             has Domain => (is => 'ro', isa => 'Str');
13             has DomainIAMRoleName => (is => 'ro', isa => 'Str');
14             has EnableIAMDatabaseAuthentication => (is => 'ro', isa => 'Bool');
15             has Engine => (is => 'ro', isa => 'Str');
16             has Iops => (is => 'ro', isa => 'Int');
17             has LicenseModel => (is => 'ro', isa => 'Str');
18             has MultiAZ => (is => 'ro', isa => 'Bool');
19             has OptionGroupName => (is => 'ro', isa => 'Str');
20             has Port => (is => 'ro', isa => 'Int');
21             has PubliclyAccessible => (is => 'ro', isa => 'Bool');
22             has StorageType => (is => 'ro', isa => 'Str');
23             has Tags => (is => 'ro', isa => 'ArrayRef[Paws::RDS::Tag]');
24             has TdeCredentialArn => (is => 'ro', isa => 'Str');
25             has TdeCredentialPassword => (is => 'ro', isa => 'Str');
26              
27 1     1   8033 use MooseX::ClassAttribute;
  1         5  
  1         13  
28              
29             class_has _api_call => (isa => 'Str', is => 'ro', default => 'RestoreDBInstanceFromDBSnapshot');
30             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RDS::RestoreDBInstanceFromDBSnapshotResult');
31             class_has _result_key => (isa => 'Str', is => 'ro', default => 'RestoreDBInstanceFromDBSnapshotResult');
32             1;
33              
34             ### main pod documentation begin ###
35              
36             =head1 NAME
37              
38             Paws::RDS::RestoreDBInstanceFromDBSnapshot - Arguments for method RestoreDBInstanceFromDBSnapshot on Paws::RDS
39              
40             =head1 DESCRIPTION
41              
42             This class represents the parameters used for calling the method RestoreDBInstanceFromDBSnapshot on the
43             Amazon Relational Database Service service. Use the attributes of this class
44             as arguments to method RestoreDBInstanceFromDBSnapshot.
45              
46             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to RestoreDBInstanceFromDBSnapshot.
47              
48             As an example:
49              
50             $service_obj->RestoreDBInstanceFromDBSnapshot(Att1 => $value1, Att2 => $value2, ...);
51              
52             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.
53              
54             =head1 ATTRIBUTES
55              
56              
57             =head2 AutoMinorVersionUpgrade => Bool
58              
59             Indicates that minor version upgrades will be applied automatically to
60             the DB instance during the maintenance window.
61              
62              
63              
64             =head2 AvailabilityZone => Str
65              
66             The EC2 Availability Zone that the database instance will be created
67             in.
68              
69             Default: A random, system-chosen Availability Zone.
70              
71             Constraint: You cannot specify the AvailabilityZone parameter if the
72             MultiAZ parameter is set to C<true>.
73              
74             Example: C<us-east-1a>
75              
76              
77              
78             =head2 CopyTagsToSnapshot => Bool
79              
80             True to copy all tags from the restored DB instance to snapshots of the
81             DB instance; otherwise false. The default is false.
82              
83              
84              
85             =head2 DBInstanceClass => Str
86              
87             The compute and memory capacity of the Amazon RDS DB instance.
88              
89             Valid Values: C<db.t1.micro | db.m1.small | db.m1.medium | db.m1.large
90             | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium |
91             db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge
92             | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large |
93             db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge |
94             db.t2.micro | db.t2.small | db.t2.medium | db.t2.large>
95              
96              
97              
98             =head2 B<REQUIRED> DBInstanceIdentifier => Str
99              
100             Name of the DB instance to create from the DB snapshot. This parameter
101             isn't case-sensitive.
102              
103             Constraints:
104              
105             =over
106              
107             =item *
108              
109             Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15
110             for SQL Server)
111              
112             =item *
113              
114             First character must be a letter
115              
116             =item *
117              
118             Cannot end with a hyphen or contain two consecutive hyphens
119              
120             =back
121              
122             Example: C<my-snapshot-id>
123              
124              
125              
126             =head2 DBName => Str
127              
128             The database name for the restored DB instance.
129              
130             This parameter doesn't apply to the MySQL, PostgreSQL, or MariaDB
131             engines.
132              
133              
134              
135             =head2 B<REQUIRED> DBSnapshotIdentifier => Str
136              
137             The identifier for the DB snapshot to restore from.
138              
139             Constraints:
140              
141             =over
142              
143             =item *
144              
145             Must contain from 1 to 255 alphanumeric characters or hyphens
146              
147             =item *
148              
149             First character must be a letter
150              
151             =item *
152              
153             Cannot end with a hyphen or contain two consecutive hyphens
154              
155             =back
156              
157             If you are restoring from a shared manual DB snapshot, the
158             C<DBSnapshotIdentifier> must be the ARN of the shared DB snapshot.
159              
160              
161              
162             =head2 DBSubnetGroupName => Str
163              
164             The DB subnet group name to use for the new instance.
165              
166             Constraints: Must contain no more than 255 alphanumeric characters,
167             periods, underscores, spaces, or hyphens. Must not be default.
168              
169             Example: C<mySubnetgroup>
170              
171              
172              
173             =head2 Domain => Str
174              
175             Specify the Active Directory Domain to restore the instance in.
176              
177              
178              
179             =head2 DomainIAMRoleName => Str
180              
181             Specify the name of the IAM role to be used when making API calls to
182             the Directory Service.
183              
184              
185              
186             =head2 EnableIAMDatabaseAuthentication => Bool
187              
188             True to enable mapping of AWS Identity and Access Management (IAM)
189             accounts to database accounts; otherwise false.
190              
191             You can enable IAM database authentication for the following database
192             engines
193              
194             =over
195              
196             =item *
197              
198             For MySQL 5.6, minor version 5.6.34 or higher
199              
200             =item *
201              
202             For MySQL 5.7, minor version 5.7.16 or higher
203              
204             =item *
205              
206             Aurora 5.6 or higher.
207              
208             =back
209              
210             Default: C<false>
211              
212              
213              
214             =head2 Engine => Str
215              
216             The database engine to use for the new instance.
217              
218             Default: The same as source
219              
220             Constraint: Must be compatible with the engine of the source. You can
221             restore a MariaDB 10.1 DB instance from a MySQL 5.6 snapshot.
222              
223             Valid Values: C<MySQL> | C<mariadb> | C<oracle-se1> | C<oracle-se> |
224             C<oracle-ee> | C<sqlserver-ee> | C<sqlserver-se> | C<sqlserver-ex> |
225             C<sqlserver-web> | C<postgres> | C<aurora>
226              
227              
228              
229             =head2 Iops => Int
230              
231             Specifies the amount of provisioned IOPS for the DB instance, expressed
232             in I/O operations per second. If this parameter is not specified, the
233             IOPS value will be taken from the backup. If this parameter is set to
234             0, the new instance will be converted to a non-PIOPS instance, which
235             will take additional time, though your DB instance will be available
236             for connections before the conversion starts.
237              
238             Constraints: Must be an integer greater than 1000.
239              
240             B<SQL Server>
241              
242             Setting the IOPS value for the SQL Server database engine is not
243             supported.
244              
245              
246              
247             =head2 LicenseModel => Str
248              
249             License model information for the restored DB instance.
250              
251             Default: Same as source.
252              
253             Valid values: C<license-included> | C<bring-your-own-license> |
254             C<general-public-license>
255              
256              
257              
258             =head2 MultiAZ => Bool
259              
260             Specifies if the DB instance is a Multi-AZ deployment.
261              
262             Constraint: You cannot specify the AvailabilityZone parameter if the
263             MultiAZ parameter is set to C<true>.
264              
265              
266              
267             =head2 OptionGroupName => Str
268              
269             The name of the option group to be used for the restored DB instance.
270              
271             Permanent options, such as the TDE option for Oracle Advanced Security
272             TDE, cannot be removed from an option group, and that option group
273             cannot be removed from a DB instance once it is associated with a DB
274             instance
275              
276              
277              
278             =head2 Port => Int
279              
280             The port number on which the database accepts connections.
281              
282             Default: The same port as the original DB instance
283              
284             Constraints: Value must be C<1150-65535>
285              
286              
287              
288             =head2 PubliclyAccessible => Bool
289              
290             Specifies the accessibility options for the DB instance. A value of
291             true specifies an Internet-facing instance with a publicly resolvable
292             DNS name, which resolves to a public IP address. A value of false
293             specifies an internal instance with a DNS name that resolves to a
294             private IP address.
295              
296             Default: The default behavior varies depending on whether a VPC has
297             been requested or not. The following list shows the default behavior in
298             each case.
299              
300             =over
301              
302             =item *
303              
304             B<Default VPC:> true
305              
306             =item *
307              
308             B<VPC:> false
309              
310             =back
311              
312             If no DB subnet group has been specified as part of the request and the
313             PubliclyAccessible value has not been set, the DB instance will be
314             publicly accessible. If a specific DB subnet group has been specified
315             as part of the request and the PubliclyAccessible value has not been
316             set, the DB instance will be private.
317              
318              
319              
320             =head2 StorageType => Str
321              
322             Specifies the storage type to be associated with the DB instance.
323              
324             Valid values: C<standard | gp2 | io1>
325              
326             If you specify C<io1>, you must also include a value for the C<Iops>
327             parameter.
328              
329             Default: C<io1> if the C<Iops> parameter is specified; otherwise
330             C<standard>
331              
332              
333              
334             =head2 Tags => ArrayRef[L<Paws::RDS::Tag>]
335              
336              
337              
338              
339              
340             =head2 TdeCredentialArn => Str
341              
342             The ARN from the Key Store with which to associate the instance for TDE
343             encryption.
344              
345              
346              
347             =head2 TdeCredentialPassword => Str
348              
349             The password for the given ARN from the Key Store in order to access
350             the device.
351              
352              
353              
354              
355             =head1 SEE ALSO
356              
357             This class forms part of L<Paws>, documenting arguments for method RestoreDBInstanceFromDBSnapshot in L<Paws::RDS>
358              
359             =head1 BUGS and CONTRIBUTIONS
360              
361             The source code is located here: https://github.com/pplu/aws-sdk-perl
362              
363             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
364              
365             =cut
366