blib/lib/Paws/DynamoDB/RestoreTableFromBackup.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::DynamoDB::RestoreTableFromBackup;
3 use Moose;
4 has BackupArn => (is => 'ro', isa => 'Str', required => 1);
5 has BillingModeOverride => (is => 'ro', isa => 'Str');
6 has GlobalSecondaryIndexOverride => (is => 'ro', isa => 'ArrayRef[Paws::DynamoDB::GlobalSecondaryIndex]');
7 has LocalSecondaryIndexOverride => (is => 'ro', isa => 'ArrayRef[Paws::DynamoDB::LocalSecondaryIndex]');
8 has ProvisionedThroughputOverride => (is => 'ro', isa => 'Paws::DynamoDB::ProvisionedThroughput');
9 has SSESpecificationOverride => (is => 'ro', isa => 'Paws::DynamoDB::SSESpecification');
10 has TargetTableName => (is => 'ro', isa => 'Str', required => 1);
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'RestoreTableFromBackup');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::DynamoDB::RestoreTableFromBackupOutput');
16 class_has _result_key => (isa => 'Str', is => 'ro');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::DynamoDB::RestoreTableFromBackup - Arguments for method RestoreTableFromBackup on L<Paws::DynamoDB>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method RestoreTableFromBackup on the
28 L<Amazon DynamoDB|Paws::DynamoDB> service. Use the attributes of this class
29 as arguments to method RestoreTableFromBackup.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to RestoreTableFromBackup.
32  
33 =head1 SYNOPSIS
34  
35 my $dynamodb = Paws->service('DynamoDB');
36 my $RestoreTableFromBackupOutput = $dynamodb->RestoreTableFromBackup(
37 BackupArn => 'MyBackupArn',
38 TargetTableName => 'MyTableName',
39 BillingModeOverride => 'PROVISIONED', # OPTIONAL
40 GlobalSecondaryIndexOverride => [
41 {
42 IndexName => 'MyIndexName', # min: 3, max: 255
43 KeySchema => [
44 {
45 AttributeName => 'MyKeySchemaAttributeName', # min: 1, max: 255
46 KeyType => 'HASH', # values: HASH, RANGE
47  
48 },
49 ...
50 ], # min: 1, max: 2
51 Projection => {
52 NonKeyAttributes => [
53 'MyNonKeyAttributeName', ... # min: 1, max: 255
54 ], # min: 1, max: 20; OPTIONAL
55 ProjectionType => 'ALL', # values: ALL, KEYS_ONLY, INCLUDE; OPTIONAL
56 },
57 ProvisionedThroughput => {
58 ReadCapacityUnits => 1, # min: 1
59 WriteCapacityUnits => 1, # min: 1
60  
61 }, # OPTIONAL
62 },
63 ...
64 ], # OPTIONAL
65 LocalSecondaryIndexOverride => [
66 {
67 IndexName => 'MyIndexName', # min: 3, max: 255
68 KeySchema => [
69 {
70 AttributeName => 'MyKeySchemaAttributeName', # min: 1, max: 255
71 KeyType => 'HASH', # values: HASH, RANGE
72  
73 },
74 ...
75 ], # min: 1, max: 2
76 Projection => {
77 NonKeyAttributes => [
78 'MyNonKeyAttributeName', ... # min: 1, max: 255
79 ], # min: 1, max: 20; OPTIONAL
80 ProjectionType => 'ALL', # values: ALL, KEYS_ONLY, INCLUDE; OPTIONAL
81 },
82  
83 },
84 ...
85 ], # OPTIONAL
86 ProvisionedThroughputOverride => {
87 ReadCapacityUnits => 1, # min: 1
88 WriteCapacityUnits => 1, # min: 1
89  
90 }, # OPTIONAL
91 SSESpecificationOverride => {
92 Enabled => 1, # OPTIONAL
93 KMSMasterKeyId => 'MyKMSMasterKeyId', # OPTIONAL
94 SSEType => 'AES256', # values: AES256, KMS; OPTIONAL
95 }, # OPTIONAL
96 );
97  
98 # Results:
99 my $TableDescription = $RestoreTableFromBackupOutput->TableDescription;
100  
101 # Returns a L<Paws::DynamoDB::RestoreTableFromBackupOutput> object.
102  
103 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.
104 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/dynamodb/RestoreTableFromBackup>
105  
106 =head1 ATTRIBUTES
107  
108  
109 =head2 B<REQUIRED> BackupArn => Str
110  
111 The Amazon Resource Name (ARN) associated with the backup.
112  
113  
114  
115 =head2 BillingModeOverride => Str
116  
117 The billing mode of the restored table.
118  
119 Valid values are: C<"PROVISIONED">, C<"PAY_PER_REQUEST">
120  
121 =head2 GlobalSecondaryIndexOverride => ArrayRef[L<Paws::DynamoDB::GlobalSecondaryIndex>]
122  
123 List of global secondary indexes for the restored table. The indexes
124 provided should match existing secondary indexes. You can choose to
125 exclude some or all of the indexes at the time of restore.
126  
127  
128  
129 =head2 LocalSecondaryIndexOverride => ArrayRef[L<Paws::DynamoDB::LocalSecondaryIndex>]
130  
131 List of local secondary indexes for the restored table. The indexes
132 provided should match existing secondary indexes. You can choose to
133 exclude some or all of the indexes at the time of restore.
134  
135  
136  
137 =head2 ProvisionedThroughputOverride => L<Paws::DynamoDB::ProvisionedThroughput>
138  
139 Provisioned throughput settings for the restored table.
140  
141  
142  
143 =head2 SSESpecificationOverride => L<Paws::DynamoDB::SSESpecification>
144  
145 The new server-side encryption settings for the restored table.
146  
147  
148  
149 =head2 B<REQUIRED> TargetTableName => Str
150  
151 The name of the new table to which the backup must be restored.
152  
153  
154  
155  
156 =head1 SEE ALSO
157  
158 This class forms part of L<Paws>, documenting arguments for method RestoreTableFromBackup in L<Paws::DynamoDB>
159  
160 =head1 BUGS and CONTRIBUTIONS
161  
162 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
163  
164 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
165  
166 =cut
167