File Coverage

blib/lib/Paws/RDS/CreateDBInstanceReadReplica.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::CreateDBInstanceReadReplica;
3 1     1   610 use Moose;
  1         4  
  1         8  
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 DBSubnetGroupName => (is => 'ro', isa => 'Str');
10             has EnableIAMDatabaseAuthentication => (is => 'ro', isa => 'Bool');
11             has Iops => (is => 'ro', isa => 'Int');
12             has KmsKeyId => (is => 'ro', isa => 'Str');
13             has MonitoringInterval => (is => 'ro', isa => 'Int');
14             has MonitoringRoleArn => (is => 'ro', isa => 'Str');
15             has OptionGroupName => (is => 'ro', isa => 'Str');
16             has Port => (is => 'ro', isa => 'Int');
17             has PreSignedUrl => (is => 'ro', isa => 'Str');
18             has PubliclyAccessible => (is => 'ro', isa => 'Bool');
19             has SourceDBInstanceIdentifier => (is => 'ro', isa => 'Str', required => 1);
20             has StorageType => (is => 'ro', isa => 'Str');
21             has Tags => (is => 'ro', isa => 'ArrayRef[Paws::RDS::Tag]');
22              
23 1     1   6806 use MooseX::ClassAttribute;
  1         2  
  1         10  
24              
25             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDBInstanceReadReplica');
26             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RDS::CreateDBInstanceReadReplicaResult');
27             class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateDBInstanceReadReplicaResult');
28             1;
29              
30             ### main pod documentation begin ###
31              
32             =head1 NAME
33              
34             Paws::RDS::CreateDBInstanceReadReplica - Arguments for method CreateDBInstanceReadReplica on Paws::RDS
35              
36             =head1 DESCRIPTION
37              
38             This class represents the parameters used for calling the method CreateDBInstanceReadReplica on the
39             Amazon Relational Database Service service. Use the attributes of this class
40             as arguments to method CreateDBInstanceReadReplica.
41              
42             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDBInstanceReadReplica.
43              
44             As an example:
45              
46             $service_obj->CreateDBInstanceReadReplica(Att1 => $value1, Att2 => $value2, ...);
47              
48             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.
49              
50             =head1 ATTRIBUTES
51              
52              
53             =head2 AutoMinorVersionUpgrade => Bool
54              
55             Indicates that minor engine upgrades will be applied automatically to
56             the Read Replica during the maintenance window.
57              
58             Default: Inherits from the source DB instance
59              
60              
61              
62             =head2 AvailabilityZone => Str
63              
64             The Amazon EC2 Availability Zone that the Read Replica will be created
65             in.
66              
67             Default: A random, system-chosen Availability Zone in the endpoint's
68             region.
69              
70             Example: C<us-east-1d>
71              
72              
73              
74             =head2 CopyTagsToSnapshot => Bool
75              
76             True to copy all tags from the Read Replica to snapshots of the Read
77             Replica; otherwise false. The default is false.
78              
79              
80              
81             =head2 DBInstanceClass => Str
82              
83             The compute and memory capacity of the Read Replica. Note that not all
84             instance classes are available in all regions for all DB engines.
85              
86             Valid Values: C<db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge
87             | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium |
88             db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge
89             | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large |
90             db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge |
91             db.t2.micro | db.t2.small | db.t2.medium | db.t2.large>
92              
93             Default: Inherits from the source DB instance.
94              
95              
96              
97             =head2 B<REQUIRED> DBInstanceIdentifier => Str
98              
99             The DB instance identifier of the Read Replica. This identifier is the
100             unique key that identifies a DB instance. This parameter is stored as a
101             lowercase string.
102              
103              
104              
105             =head2 DBSubnetGroupName => Str
106              
107             Specifies a DB subnet group for the DB instance. The new DB instance
108             will be created in the VPC associated with the DB subnet group. If no
109             DB subnet group is specified, then the new DB instance is not created
110             in a VPC.
111              
112             Constraints:
113              
114             =over
115              
116             =item *
117              
118             Can only be specified if the source DB instance identifier specifies a
119             DB instance in another region.
120              
121             =item *
122              
123             The specified DB subnet group must be in the same region in which the
124             operation is running.
125              
126             =item *
127              
128             All Read Replicas in one region that are created from the same source
129             DB instance must either:E<gt>
130              
131             =over
132              
133             =item *
134              
135             Specify DB subnet groups from the same VPC. All these Read Replicas
136             will be created in the same VPC.
137              
138             =item *
139              
140             Not specify a DB subnet group. All these Read Replicas will be created
141             outside of any VPC.
142              
143             =back
144              
145             =back
146              
147             Constraints: Must contain no more than 255 alphanumeric characters,
148             periods, underscores, spaces, or hyphens. Must not be default.
149              
150             Example: C<mySubnetgroup>
151              
152              
153              
154             =head2 EnableIAMDatabaseAuthentication => Bool
155              
156             True to enable mapping of AWS Identity and Access Management (IAM)
157             accounts to database accounts; otherwise false.
158              
159             You can enable IAM database authentication for the following database
160             engines
161              
162             =over
163              
164             =item *
165              
166             For MySQL 5.6, minor version 5.6.34 or higher
167              
168             =item *
169              
170             For MySQL 5.7, minor version 5.7.16 or higher
171              
172             =item *
173              
174             Aurora 5.6 or higher.
175              
176             =back
177              
178             Default: C<false>
179              
180              
181              
182             =head2 Iops => Int
183              
184             The amount of Provisioned IOPS (input/output operations per second) to
185             be initially allocated for the DB instance.
186              
187              
188              
189             =head2 KmsKeyId => Str
190              
191             The AWS KMS key ID for an encrypted Read Replica. The KMS key ID is the
192             Amazon Resource Name (ARN), KMS key identifier, or the KMS key alias
193             for the KMS encryption key.
194              
195             If you create an unencrypted Read Replica and specify a value for the
196             C<KmsKeyId> parameter, Amazon RDS encrypts the target Read Replica
197             using the specified KMS encryption key.
198              
199             If you create an encrypted Read Replica from your AWS account, you can
200             specify a value for C<KmsKeyId> to encrypt the Read Replica with a new
201             KMS encryption key. If you don't specify a value for C<KmsKeyId>, then
202             the Read Replica is encrypted with the same KMS key as the source DB
203             instance.
204              
205             If you create an encrypted Read Replica in a different AWS region, then
206             you must specify a KMS key for the destination AWS region. KMS
207             encryption keys are specific to the region that they are created in,
208             and you cannot use encryption keys from one region in another region.
209              
210              
211              
212             =head2 MonitoringInterval => Int
213              
214             The interval, in seconds, between points when Enhanced Monitoring
215             metrics are collected for the Read Replica. To disable collecting
216             Enhanced Monitoring metrics, specify 0. The default is 0.
217              
218             If C<MonitoringRoleArn> is specified, then you must also set
219             C<MonitoringInterval> to a value other than 0.
220              
221             Valid Values: C<0, 1, 5, 10, 15, 30, 60>
222              
223              
224              
225             =head2 MonitoringRoleArn => Str
226              
227             The ARN for the IAM role that permits RDS to send enhanced monitoring
228             metrics to CloudWatch Logs. For example,
229             C<arn:aws:iam:123456789012:role/emaccess>. For information on creating
230             a monitoring role, go to To create an IAM role for Amazon RDS Enhanced
231             Monitoring.
232              
233             If C<MonitoringInterval> is set to a value other than 0, then you must
234             supply a C<MonitoringRoleArn> value.
235              
236              
237              
238             =head2 OptionGroupName => Str
239              
240             The option group the DB instance will be associated with. If omitted,
241             the default option group for the engine specified will be used.
242              
243              
244              
245             =head2 Port => Int
246              
247             The port number that the DB instance uses for connections.
248              
249             Default: Inherits from the source DB instance
250              
251             Valid Values: C<1150-65535>
252              
253              
254              
255             =head2 PreSignedUrl => Str
256              
257             The URL that contains a Signature Version 4 signed request for the C<
258             CreateDBInstanceReadReplica> API action in the AWS region that contains
259             the source DB instance. The C<PreSignedUrl> parameter must be used when
260             encrypting a Read Replica from another AWS region.
261              
262             The presigned URL must be a valid request for the
263             C<CreateDBInstanceReadReplica> API action that can be executed in the
264             source region that contains the encrypted DB instance. The presigned
265             URL request must contain the following parameter values:
266              
267             =over
268              
269             =item *
270              
271             C<DestinationRegion> - The AWS Region that the Read Replica is created
272             in. This region is the same one where the
273             C<CreateDBInstanceReadReplica> action is called that contains this
274             presigned URL.
275              
276             For example, if you create an encrypted Read Replica in the us-east-1
277             region, and the source DB instance is in the west-2 region, then you
278             call the C<CreateDBInstanceReadReplica> action in the us-east-1 region
279             and provide a presigned URL that contains a call to the
280             C<CreateDBInstanceReadReplica> action in the us-west-2 region. For this
281             example, the C<DestinationRegion> in the presigned URL must be set to
282             the us-east-1 region.
283              
284             =item *
285              
286             C<KmsKeyId> - The KMS key identifier for the key to use to encrypt the
287             Read Replica in the destination region. This is the same identifier for
288             both the C<CreateDBInstanceReadReplica> action that is called in the
289             destination region, and the action contained in the presigned URL.
290              
291             =item *
292              
293             C<SourceDBInstanceIdentifier> - The DB instance identifier for the
294             encrypted Read Replica to be created. This identifier must be in the
295             Amazon Resource Name (ARN) format for the source region. For example,
296             if you create an encrypted Read Replica from a DB instance in the
297             us-west-2 region, then your C<SourceDBInstanceIdentifier> would look
298             like this example: C<
299             arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-instance-20161115>.
300              
301             =back
302              
303             To learn how to generate a Signature Version 4 signed request, see
304             Authenticating Requests: Using Query Parameters (AWS Signature Version
305             4) and Signature Version 4 Signing Process.
306              
307              
308              
309             =head2 PubliclyAccessible => Bool
310              
311             Specifies the accessibility options for the DB instance. A value of
312             true specifies an Internet-facing instance with a publicly resolvable
313             DNS name, which resolves to a public IP address. A value of false
314             specifies an internal instance with a DNS name that resolves to a
315             private IP address.
316              
317             Default: The default behavior varies depending on whether a VPC has
318             been requested or not. The following list shows the default behavior in
319             each case.
320              
321             =over
322              
323             =item *
324              
325             B<Default VPC:>true
326              
327             =item *
328              
329             B<VPC:>false
330              
331             =back
332              
333             If no DB subnet group has been specified as part of the request and the
334             PubliclyAccessible value has not been set, the DB instance will be
335             publicly accessible. If a specific DB subnet group has been specified
336             as part of the request and the PubliclyAccessible value has not been
337             set, the DB instance will be private.
338              
339              
340              
341             =head2 B<REQUIRED> SourceDBInstanceIdentifier => Str
342              
343             The identifier of the DB instance that will act as the source for the
344             Read Replica. Each DB instance can have up to five Read Replicas.
345              
346             Constraints:
347              
348             =over
349              
350             =item *
351              
352             Must be the identifier of an existing MySQL, MariaDB, or PostgreSQL DB
353             instance.
354              
355             =item *
356              
357             Can specify a DB instance that is a MySQL Read Replica only if the
358             source is running MySQL 5.6.
359              
360             =item *
361              
362             Can specify a DB instance that is a PostgreSQL DB instance only if the
363             source is running PostgreSQL 9.3.5 or later.
364              
365             =item *
366              
367             The specified DB instance must have automatic backups enabled, its
368             backup retention period must be greater than 0.
369              
370             =item *
371              
372             If the source DB instance is in the same region as the Read Replica,
373             specify a valid DB instance identifier.
374              
375             =item *
376              
377             If the source DB instance is in a different region than the Read
378             Replica, specify a valid DB instance ARN. For more information, go to
379             Constructing a Amazon RDS Amazon Resource Name (ARN).
380              
381             =back
382              
383              
384              
385              
386             =head2 StorageType => Str
387              
388             Specifies the storage type to be associated with the Read Replica.
389              
390             Valid values: C<standard | gp2 | io1>
391              
392             If you specify C<io1>, you must also include a value for the C<Iops>
393             parameter.
394              
395             Default: C<io1> if the C<Iops> parameter is specified; otherwise
396             C<standard>
397              
398              
399              
400             =head2 Tags => ArrayRef[L<Paws::RDS::Tag>]
401              
402              
403              
404              
405              
406              
407             =head1 SEE ALSO
408              
409             This class forms part of L<Paws>, documenting arguments for method CreateDBInstanceReadReplica in L<Paws::RDS>
410              
411             =head1 BUGS and CONTRIBUTIONS
412              
413             The source code is located here: https://github.com/pplu/aws-sdk-perl
414              
415             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
416              
417             =cut
418