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

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::DynamoDB::UpdateTableReplicaAutoScaling;
3 use Moose;
4 has GlobalSecondaryIndexUpdates => (is => 'ro', isa => 'ArrayRef[Paws::DynamoDB::GlobalSecondaryIndexAutoScalingUpdate]');
5 has ProvisionedWriteCapacityAutoScalingUpdate => (is => 'ro', isa => 'Paws::DynamoDB::AutoScalingSettingsUpdate');
6 has ReplicaUpdates => (is => 'ro', isa => 'ArrayRef[Paws::DynamoDB::ReplicaAutoScalingUpdate]');
7 has TableName => (is => 'ro', isa => 'Str', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateTableReplicaAutoScaling');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::DynamoDB::UpdateTableReplicaAutoScalingOutput');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::DynamoDB::UpdateTableReplicaAutoScaling - Arguments for method UpdateTableReplicaAutoScaling on L<Paws::DynamoDB>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method UpdateTableReplicaAutoScaling on the
25 L<Amazon DynamoDB|Paws::DynamoDB> service. Use the attributes of this class
26 as arguments to method UpdateTableReplicaAutoScaling.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateTableReplicaAutoScaling.
29  
30 =head1 SYNOPSIS
31  
32 my $dynamodb = Paws->service('DynamoDB');
33 my $UpdateTableReplicaAutoScalingOutput =
34 $dynamodb->UpdateTableReplicaAutoScaling(
35 TableName => 'MyTableName',
36 GlobalSecondaryIndexUpdates => [
37 {
38 IndexName => 'MyIndexName', # min: 3, max: 255; OPTIONAL
39 ProvisionedWriteCapacityAutoScalingUpdate => {
40 AutoScalingDisabled => 1, # OPTIONAL
41 AutoScalingRoleArn =>
42 'MyAutoScalingRoleArn', # min: 1, max: 1600; OPTIONAL
43 MaximumUnits => 1, # min: 1; OPTIONAL
44 MinimumUnits => 1, # min: 1; OPTIONAL
45 ScalingPolicyUpdate => {
46 TargetTrackingScalingPolicyConfiguration => {
47 TargetValue => 1,
48 DisableScaleIn => 1, # OPTIONAL
49 ScaleInCooldown => 1, # OPTIONAL
50 ScaleOutCooldown => 1, # OPTIONAL
51 },
52 PolicyName =>
53 'MyAutoScalingPolicyName', # min: 1, max: 256; OPTIONAL
54 }, # OPTIONAL
55 }, # OPTIONAL
56 },
57 ...
58 ], # OPTIONAL
59 ProvisionedWriteCapacityAutoScalingUpdate => {
60 AutoScalingDisabled => 1, # OPTIONAL
61 AutoScalingRoleArn =>
62 'MyAutoScalingRoleArn', # min: 1, max: 1600; OPTIONAL
63 MaximumUnits => 1, # min: 1; OPTIONAL
64 MinimumUnits => 1, # min: 1; OPTIONAL
65 ScalingPolicyUpdate => {
66 TargetTrackingScalingPolicyConfiguration => {
67 TargetValue => 1,
68 DisableScaleIn => 1, # OPTIONAL
69 ScaleInCooldown => 1, # OPTIONAL
70 ScaleOutCooldown => 1, # OPTIONAL
71 },
72 PolicyName => 'MyAutoScalingPolicyName', # min: 1, max: 256; OPTIONAL
73 }, # OPTIONAL
74 }, # OPTIONAL
75 ReplicaUpdates => [
76 {
77 RegionName => 'MyRegionName',
78 ReplicaGlobalSecondaryIndexUpdates => [
79 {
80 IndexName => 'MyIndexName', # min: 3, max: 255; OPTIONAL
81 ProvisionedReadCapacityAutoScalingUpdate => {
82 AutoScalingDisabled => 1, # OPTIONAL
83 AutoScalingRoleArn =>
84 'MyAutoScalingRoleArn', # min: 1, max: 1600; OPTIONAL
85 MaximumUnits => 1, # min: 1; OPTIONAL
86 MinimumUnits => 1, # min: 1; OPTIONAL
87 ScalingPolicyUpdate => {
88 TargetTrackingScalingPolicyConfiguration => {
89 TargetValue => 1,
90 DisableScaleIn => 1, # OPTIONAL
91 ScaleInCooldown => 1, # OPTIONAL
92 ScaleOutCooldown => 1, # OPTIONAL
93 },
94 PolicyName =>
95 'MyAutoScalingPolicyName', # min: 1, max: 256; OPTIONAL
96 }, # OPTIONAL
97 }, # OPTIONAL
98 },
99 ...
100 ], # OPTIONAL
101 ReplicaProvisionedReadCapacityAutoScalingUpdate => {
102 AutoScalingDisabled => 1, # OPTIONAL
103 AutoScalingRoleArn =>
104 'MyAutoScalingRoleArn', # min: 1, max: 1600; OPTIONAL
105 MaximumUnits => 1, # min: 1; OPTIONAL
106 MinimumUnits => 1, # min: 1; OPTIONAL
107 ScalingPolicyUpdate => {
108 TargetTrackingScalingPolicyConfiguration => {
109 TargetValue => 1,
110 DisableScaleIn => 1, # OPTIONAL
111 ScaleInCooldown => 1, # OPTIONAL
112 ScaleOutCooldown => 1, # OPTIONAL
113 },
114 PolicyName =>
115 'MyAutoScalingPolicyName', # min: 1, max: 256; OPTIONAL
116 }, # OPTIONAL
117 }, # OPTIONAL
118 },
119 ...
120 ], # OPTIONAL
121 );
122  
123 # Results:
124 my $TableAutoScalingDescription =
125 $UpdateTableReplicaAutoScalingOutput->TableAutoScalingDescription;
126  
127 # Returns a L<Paws::DynamoDB::UpdateTableReplicaAutoScalingOutput> object.
128  
129 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.
130 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/dynamodb/UpdateTableReplicaAutoScaling>
131  
132 =head1 ATTRIBUTES
133  
134  
135 =head2 GlobalSecondaryIndexUpdates => ArrayRef[L<Paws::DynamoDB::GlobalSecondaryIndexAutoScalingUpdate>]
136  
137 Represents the auto scaling settings of the global secondary indexes of
138 the replica to be updated.
139  
140  
141  
142 =head2 ProvisionedWriteCapacityAutoScalingUpdate => L<Paws::DynamoDB::AutoScalingSettingsUpdate>
143  
144  
145  
146  
147  
148 =head2 ReplicaUpdates => ArrayRef[L<Paws::DynamoDB::ReplicaAutoScalingUpdate>]
149  
150 Represents the auto scaling settings of replicas of the table that will
151 be modified.
152  
153  
154  
155 =head2 B<REQUIRED> TableName => Str
156  
157 The name of the global table to be updated.
158  
159  
160  
161  
162 =head1 SEE ALSO
163  
164 This class forms part of L<Paws>, documenting arguments for method UpdateTableReplicaAutoScaling in L<Paws::DynamoDB>
165  
166 =head1 BUGS and CONTRIBUTIONS
167  
168 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
169  
170 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
171  
172 =cut
173