File Coverage

blib/lib/Paws/RDS/CreateDBCluster.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::CreateDBCluster;
3 1     1   594 use Moose;
  1         2  
  1         8  
4             has AvailabilityZones => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
5             has BackupRetentionPeriod => (is => 'ro', isa => 'Int');
6             has CharacterSetName => (is => 'ro', isa => 'Str');
7             has DatabaseName => (is => 'ro', isa => 'Str');
8             has DBClusterIdentifier => (is => 'ro', isa => 'Str', required => 1);
9             has DBClusterParameterGroupName => (is => 'ro', isa => 'Str');
10             has DBSubnetGroupName => (is => 'ro', isa => 'Str');
11             has EnableIAMDatabaseAuthentication => (is => 'ro', isa => 'Bool');
12             has Engine => (is => 'ro', isa => 'Str', required => 1);
13             has EngineVersion => (is => 'ro', isa => 'Str');
14             has KmsKeyId => (is => 'ro', isa => 'Str');
15             has MasterUsername => (is => 'ro', isa => 'Str');
16             has MasterUserPassword => (is => 'ro', isa => 'Str');
17             has OptionGroupName => (is => 'ro', isa => 'Str');
18             has Port => (is => 'ro', isa => 'Int');
19             has PreferredBackupWindow => (is => 'ro', isa => 'Str');
20             has PreferredMaintenanceWindow => (is => 'ro', isa => 'Str');
21             has PreSignedUrl => (is => 'ro', isa => 'Str');
22             has ReplicationSourceIdentifier => (is => 'ro', isa => 'Str');
23             has StorageEncrypted => (is => 'ro', isa => 'Bool');
24             has Tags => (is => 'ro', isa => 'ArrayRef[Paws::RDS::Tag]');
25             has VpcSecurityGroupIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
26              
27 1     1   6813 use MooseX::ClassAttribute;
  1         3  
  1         11  
28              
29             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDBCluster');
30             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RDS::CreateDBClusterResult');
31             class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateDBClusterResult');
32             1;
33              
34             ### main pod documentation begin ###
35              
36             =head1 NAME
37              
38             Paws::RDS::CreateDBCluster - Arguments for method CreateDBCluster on Paws::RDS
39              
40             =head1 DESCRIPTION
41              
42             This class represents the parameters used for calling the method CreateDBCluster on the
43             Amazon Relational Database Service service. Use the attributes of this class
44             as arguments to method CreateDBCluster.
45              
46             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDBCluster.
47              
48             As an example:
49              
50             $service_obj->CreateDBCluster(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 AvailabilityZones => ArrayRef[Str|Undef]
58              
59             A list of EC2 Availability Zones that instances in the DB cluster can
60             be created in. For information on regions and Availability Zones, see
61             Regions and Availability Zones.
62              
63              
64              
65             =head2 BackupRetentionPeriod => Int
66              
67             The number of days for which automated backups are retained. You must
68             specify a minimum value of 1.
69              
70             Default: 1
71              
72             Constraints:
73              
74             =over
75              
76             =item *
77              
78             Must be a value from 1 to 35
79              
80             =back
81              
82              
83              
84              
85             =head2 CharacterSetName => Str
86              
87             A value that indicates that the DB cluster should be associated with
88             the specified CharacterSet.
89              
90              
91              
92             =head2 DatabaseName => Str
93              
94             The name for your database of up to 64 alpha-numeric characters. If you
95             do not provide a name, Amazon RDS will not create a database in the DB
96             cluster you are creating.
97              
98              
99              
100             =head2 B<REQUIRED> DBClusterIdentifier => Str
101              
102             The DB cluster identifier. This parameter is stored as a lowercase
103             string.
104              
105             Constraints:
106              
107             =over
108              
109             =item *
110              
111             Must contain from 1 to 63 alphanumeric characters or hyphens.
112              
113             =item *
114              
115             First character must be a letter.
116              
117             =item *
118              
119             Cannot end with a hyphen or contain two consecutive hyphens.
120              
121             =back
122              
123             Example: C<my-cluster1>
124              
125              
126              
127             =head2 DBClusterParameterGroupName => Str
128              
129             The name of the DB cluster parameter group to associate with this DB
130             cluster. If this argument is omitted, C<default.aurora5.6> will be
131             used.
132              
133             Constraints:
134              
135             =over
136              
137             =item *
138              
139             Must be 1 to 255 alphanumeric characters
140              
141             =item *
142              
143             First character must be a letter
144              
145             =item *
146              
147             Cannot end with a hyphen or contain two consecutive hyphens
148              
149             =back
150              
151              
152              
153              
154             =head2 DBSubnetGroupName => Str
155              
156             A DB subnet group to associate with this DB cluster.
157              
158             Constraints: Must contain no more than 255 alphanumeric characters,
159             periods, underscores, spaces, or hyphens. Must not be default.
160              
161             Example: C<mySubnetgroup>
162              
163              
164              
165             =head2 EnableIAMDatabaseAuthentication => Bool
166              
167             A Boolean value that is true to enable mapping of AWS Identity and
168             Access Management (IAM) accounts to database accounts, and otherwise
169             false.
170              
171             Default: C<false>
172              
173              
174              
175             =head2 B<REQUIRED> Engine => Str
176              
177             The name of the database engine to be used for this DB cluster.
178              
179             Valid Values: C<aurora>
180              
181              
182              
183             =head2 EngineVersion => Str
184              
185             The version number of the database engine to use.
186              
187             B<Aurora>
188              
189             Example: C<5.6.10a>
190              
191              
192              
193             =head2 KmsKeyId => Str
194              
195             The KMS key identifier for an encrypted DB cluster.
196              
197             The KMS key identifier is the Amazon Resource Name (ARN) for the KMS
198             encryption key. If you are creating a DB cluster with the same AWS
199             account that owns the KMS encryption key used to encrypt the new DB
200             cluster, then you can use the KMS key alias instead of the ARN for the
201             KMS encryption key.
202              
203             If the C<StorageEncrypted> parameter is true, and you do not specify a
204             value for the C<KmsKeyId> parameter, then Amazon RDS will use your
205             default encryption key. AWS KMS creates the default encryption key for
206             your AWS account. Your AWS account has a different default encryption
207             key for each AWS region.
208              
209             If you create a Read Replica of an encrypted DB cluster in another
210             region, you must set C<KmsKeyId> to a KMS key ID that is valid in the
211             destination region. This key is used to encrypt the Read Replica in
212             that region.
213              
214              
215              
216             =head2 MasterUsername => Str
217              
218             The name of the master user for the DB cluster.
219              
220             Constraints:
221              
222             =over
223              
224             =item *
225              
226             Must be 1 to 16 alphanumeric characters.
227              
228             =item *
229              
230             First character must be a letter.
231              
232             =item *
233              
234             Cannot be a reserved word for the chosen database engine.
235              
236             =back
237              
238              
239              
240              
241             =head2 MasterUserPassword => Str
242              
243             The password for the master database user. This password can contain
244             any printable ASCII character except "/", """, or "@".
245              
246             Constraints: Must contain from 8 to 41 characters.
247              
248              
249              
250             =head2 OptionGroupName => Str
251              
252             A value that indicates that the DB cluster should be associated with
253             the specified option group.
254              
255             Permanent options cannot be removed from an option group. The option
256             group cannot be removed from a DB cluster once it is associated with a
257             DB cluster.
258              
259              
260              
261             =head2 Port => Int
262              
263             The port number on which the instances in the DB cluster accept
264             connections.
265              
266             Default: C<3306>
267              
268              
269              
270             =head2 PreferredBackupWindow => Str
271              
272             The daily time range during which automated backups are created if
273             automated backups are enabled using the C<BackupRetentionPeriod>
274             parameter.
275              
276             Default: A 30-minute window selected at random from an 8-hour block of
277             time per region. To see the time blocks available, see Adjusting the
278             Preferred Maintenance Window in the I<Amazon RDS User Guide.>
279              
280             Constraints:
281              
282             =over
283              
284             =item *
285              
286             Must be in the format C<hh24:mi-hh24:mi>.
287              
288             =item *
289              
290             Times should be in Universal Coordinated Time (UTC).
291              
292             =item *
293              
294             Must not conflict with the preferred maintenance window.
295              
296             =item *
297              
298             Must be at least 30 minutes.
299              
300             =back
301              
302              
303              
304              
305             =head2 PreferredMaintenanceWindow => Str
306              
307             The weekly time range during which system maintenance can occur, in
308             Universal Coordinated Time (UTC).
309              
310             Format: C<ddd:hh24:mi-ddd:hh24:mi>
311              
312             Default: A 30-minute window selected at random from an 8-hour block of
313             time per region, occurring on a random day of the week. To see the time
314             blocks available, see Adjusting the Preferred Maintenance Window in the
315             I<Amazon RDS User Guide.>
316              
317             Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
318              
319             Constraints: Minimum 30-minute window.
320              
321              
322              
323             =head2 PreSignedUrl => Str
324              
325             A URL that contains a Signature Version 4 signed request for the
326             C<CreateDBCluster> action to be called in the source region where the
327             DB cluster will be replicated from. You only need to specify
328             C<PreSignedUrl> when you are performing cross-region replication from
329             an encrypted DB cluster.
330              
331             The pre-signed URL must be a valid request for the C<CreateDBCluster>
332             API action that can be executed in the source region that contains the
333             encrypted DB cluster to be copied.
334              
335             The pre-signed URL request must contain the following parameter values:
336              
337             =over
338              
339             =item *
340              
341             C<KmsKeyId> - The KMS key identifier for the key to use to encrypt the
342             copy of the DB cluster in the destination region. This should refer to
343             the same KMS key for both the C<CreateDBCluster> action that is called
344             in the destination region, and the action contained in the pre-signed
345             URL.
346              
347             =item *
348              
349             C<DestinationRegion> - The name of the region that Aurora Read Replica
350             will be created in.
351              
352             =item *
353              
354             C<ReplicationSourceIdentifier> - The DB cluster identifier for the
355             encrypted DB cluster to be copied. This identifier must be in the
356             Amazon Resource Name (ARN) format for the source region. For example,
357             if you are copying an encrypted DB cluster from the us-west-2 region,
358             then your C<ReplicationSourceIdentifier> would look like Example:
359             C<arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1>.
360              
361             =back
362              
363             To learn how to generate a Signature Version 4 signed request, see
364             Authenticating Requests: Using Query Parameters (AWS Signature Version
365             4) and Signature Version 4 Signing Process.
366              
367              
368              
369             =head2 ReplicationSourceIdentifier => Str
370              
371             The Amazon Resource Name (ARN) of the source DB instance or DB cluster
372             if this DB cluster is created as a Read Replica.
373              
374              
375              
376             =head2 StorageEncrypted => Bool
377              
378             Specifies whether the DB cluster is encrypted.
379              
380              
381              
382             =head2 Tags => ArrayRef[L<Paws::RDS::Tag>]
383              
384              
385              
386              
387              
388             =head2 VpcSecurityGroupIds => ArrayRef[Str|Undef]
389              
390             A list of EC2 VPC security groups to associate with this DB cluster.
391              
392              
393              
394              
395             =head1 SEE ALSO
396              
397             This class forms part of L<Paws>, documenting arguments for method CreateDBCluster in L<Paws::RDS>
398              
399             =head1 BUGS and CONTRIBUTIONS
400              
401             The source code is located here: https://github.com/pplu/aws-sdk-perl
402              
403             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
404              
405             =cut
406