forked from aws-controllers-k8s/dynamodb-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
766 lines (684 loc) · 35.8 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"). You may
// not use this file except in compliance with the License. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license" file accompanying this file. This file is distributed
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language governing
// permissions and limitations under the License.
// Code generated by ack-generate. DO NOT EDIT.
package v1alpha1
import (
ackv1alpha1 "github.com/aws-controllers-k8s/runtime/apis/core/v1alpha1"
"github.com/aws/aws-sdk-go/aws"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// Hack to avoid import errors during build...
var (
_ = &metav1.Time{}
_ = &aws.JSONValue{}
_ = ackv1alpha1.AWSAccountID("")
)
// Contains details of a table archival operation.
type ArchivalSummary struct {
ArchivalBackupARN *string `json:"archivalBackupARN,omitempty"`
ArchivalDateTime *metav1.Time `json:"archivalDateTime,omitempty"`
ArchivalReason *string `json:"archivalReason,omitempty"`
}
// Represents an attribute for describing the key schema for the table and indexes.
type AttributeDefinition struct {
AttributeName *string `json:"attributeName,omitempty"`
AttributeType *string `json:"attributeType,omitempty"`
}
// Represents the auto scaling settings for a global table or global secondary
// index.
type AutoScalingSettingsDescription struct {
AutoScalingDisabled *bool `json:"autoScalingDisabled,omitempty"`
AutoScalingRoleARN *string `json:"autoScalingRoleARN,omitempty"`
MaximumUnits *int64 `json:"maximumUnits,omitempty"`
MinimumUnits *int64 `json:"minimumUnits,omitempty"`
}
// Represents the auto scaling settings to be modified for a global table or
// global secondary index.
type AutoScalingSettingsUpdate struct {
AutoScalingDisabled *bool `json:"autoScalingDisabled,omitempty"`
MaximumUnits *int64 `json:"maximumUnits,omitempty"`
MinimumUnits *int64 `json:"minimumUnits,omitempty"`
}
// Represents the properties of a target tracking scaling policy.
type AutoScalingTargetTrackingScalingPolicyConfigurationDescription struct {
DisableScaleIn *bool `json:"disableScaleIn,omitempty"`
}
// Represents the settings of a target tracking scaling policy that will be
// modified.
type AutoScalingTargetTrackingScalingPolicyConfigurationUpdate struct {
DisableScaleIn *bool `json:"disableScaleIn,omitempty"`
}
// Contains the description of the backup created for the table.
type BackupDescription struct {
// Contains the details of the backup created for the table.
BackupDetails *BackupDetails `json:"backupDetails,omitempty"`
// Contains the details of the table when the backup was created.
SourceTableDetails *SourceTableDetails `json:"sourceTableDetails,omitempty"`
// Contains the details of the features enabled on the table when the backup
// was created. For example, LSIs, GSIs, streams, TTL.
SourceTableFeatureDetails *SourceTableFeatureDetails `json:"sourceTableFeatureDetails,omitempty"`
}
// Contains the details of the backup created for the table.
type BackupDetails struct {
BackupARN *string `json:"backupARN,omitempty"`
BackupCreationDateTime *metav1.Time `json:"backupCreationDateTime,omitempty"`
BackupExpiryDateTime *metav1.Time `json:"backupExpiryDateTime,omitempty"`
BackupName *string `json:"backupName,omitempty"`
BackupSizeBytes *int64 `json:"backupSizeBytes,omitempty"`
BackupStatus *string `json:"backupStatus,omitempty"`
BackupType *string `json:"backupType,omitempty"`
}
// Contains details for the backup.
type BackupSummary struct {
BackupARN *string `json:"backupARN,omitempty"`
BackupCreationDateTime *metav1.Time `json:"backupCreationDateTime,omitempty"`
BackupExpiryDateTime *metav1.Time `json:"backupExpiryDateTime,omitempty"`
BackupName *string `json:"backupName,omitempty"`
BackupSizeBytes *int64 `json:"backupSizeBytes,omitempty"`
BackupStatus *string `json:"backupStatus,omitempty"`
BackupType *string `json:"backupType,omitempty"`
TableARN *string `json:"tableARN,omitempty"`
TableID *string `json:"tableID,omitempty"`
TableName *string `json:"tableName,omitempty"`
}
// An error associated with a statement in a PartiQL batch that was run.
type BatchStatementError struct {
Message *string `json:"message,omitempty"`
}
// A PartiQL batch statement response..
type BatchStatementResponse struct {
TableName *string `json:"tableName,omitempty"`
}
// Contains the details for the read/write capacity mode.
type BillingModeSummary struct {
BillingMode *string `json:"billingMode,omitempty"`
LastUpdateToPayPerRequestDateTime *metav1.Time `json:"lastUpdateToPayPerRequestDateTime,omitempty"`
}
// Represents a request to perform a check that an item exists or to check the
// condition of specific attributes of the item.
type ConditionCheck struct {
TableName *string `json:"tableName,omitempty"`
}
// The capacity units consumed by an operation. The data returned includes the
// total provisioned throughput consumed, along with statistics for the table
// and any indexes involved in the operation. ConsumedCapacity is only returned
// if the request asked for it. For more information, see Provisioned Throughput
// (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html)
// in the Amazon DynamoDB Developer Guide.
type ConsumedCapacity struct {
TableName *string `json:"tableName,omitempty"`
}
// Represents a Contributor Insights summary entry.
type ContributorInsightsSummary struct {
IndexName *string `json:"indexName,omitempty"`
TableName *string `json:"tableName,omitempty"`
}
// Represents a new global secondary index to be added to an existing table.
type CreateGlobalSecondaryIndexAction struct {
IndexName *string `json:"indexName,omitempty"`
KeySchema []*KeySchemaElement `json:"keySchema,omitempty"`
// Represents attributes that are copied (projected) from the table into an
// index. These are in addition to the primary key attributes and index key
// attributes, which are automatically projected.
Projection *Projection `json:"projection,omitempty"`
// Represents the provisioned throughput settings for a specified table or index.
// The settings can be modified using the UpdateTable operation.
//
// For current minimum and maximum provisioned throughput values, see Service,
// Account, and Table Quotas (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html)
// in the Amazon DynamoDB Developer Guide.
ProvisionedThroughput *ProvisionedThroughput `json:"provisionedThroughput,omitempty"`
}
// Represents a replica to be added.
type CreateReplicaAction struct {
RegionName *string `json:"regionName,omitempty"`
}
// Represents a replica to be created.
type CreateReplicationGroupMemberAction struct {
GlobalSecondaryIndexes []*ReplicaGlobalSecondaryIndex `json:"globalSecondaryIndexes,omitempty"`
KMSMasterKeyID *string `json:"kmsMasterKeyID,omitempty"`
// Replica-specific provisioned throughput settings. If not specified, uses
// the source table's provisioned throughput settings.
ProvisionedThroughputOverride *ProvisionedThroughputOverride `json:"provisionedThroughputOverride,omitempty"`
RegionName *string `json:"regionName,omitempty"`
TableClassOverride *string `json:"tableClassOverride,omitempty"`
}
// Represents a request to perform a DeleteItem operation.
type Delete struct {
TableName *string `json:"tableName,omitempty"`
}
// Represents a global secondary index to be deleted from an existing table.
type DeleteGlobalSecondaryIndexAction struct {
IndexName *string `json:"indexName,omitempty"`
}
// Represents a replica to be removed.
type DeleteReplicaAction struct {
RegionName *string `json:"regionName,omitempty"`
}
// Represents a replica to be deleted.
type DeleteReplicationGroupMemberAction struct {
RegionName *string `json:"regionName,omitempty"`
}
// An endpoint information details.
type Endpoint struct {
Address *string `json:"address,omitempty"`
CachePeriodInMinutes *int64 `json:"cachePeriodInMinutes,omitempty"`
}
// Represents a condition to be compared with an attribute value. This condition
// can be used with DeleteItem, PutItem, or UpdateItem operations; if the comparison
// evaluates to true, the operation succeeds; if not, the operation fails. You
// can use ExpectedAttributeValue in one of two different ways:
//
// - Use AttributeValueList to specify one or more values to compare against
// an attribute. Use ComparisonOperator to specify how you want to perform
// the comparison. If the comparison evaluates to true, then the conditional
// operation succeeds.
//
// - Use Value to specify a value that DynamoDB will compare against an attribute.
// If the values match, then ExpectedAttributeValue evaluates to true and
// the conditional operation succeeds. Optionally, you can also set Exists
// to false, indicating that you do not expect to find the attribute value
// in the table. In this case, the conditional operation succeeds only if
// the comparison evaluates to false.
//
// Value and Exists are incompatible with AttributeValueList and ComparisonOperator.
// Note that if you use both sets of parameters at once, DynamoDB will return
// a ValidationException exception.
type ExpectedAttributeValue struct {
Exists *bool `json:"exists,omitempty"`
}
// Represents the properties of the exported table.
type ExportDescription struct {
ItemCount *int64 `json:"itemCount,omitempty"`
TableARN *string `json:"tableARN,omitempty"`
TableID *string `json:"tableID,omitempty"`
}
// Specifies an item and related attribute values to retrieve in a TransactGetItem
// object.
type Get struct {
TableName *string `json:"tableName,omitempty"`
}
// Represents the properties of a global secondary index.
type GlobalSecondaryIndex struct {
IndexName *string `json:"indexName,omitempty"`
KeySchema []*KeySchemaElement `json:"keySchema,omitempty"`
// Represents attributes that are copied (projected) from the table into an
// index. These are in addition to the primary key attributes and index key
// attributes, which are automatically projected.
Projection *Projection `json:"projection,omitempty"`
// Represents the provisioned throughput settings for a specified table or index.
// The settings can be modified using the UpdateTable operation.
//
// For current minimum and maximum provisioned throughput values, see Service,
// Account, and Table Quotas (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html)
// in the Amazon DynamoDB Developer Guide.
ProvisionedThroughput *ProvisionedThroughput `json:"provisionedThroughput,omitempty"`
}
// Represents the auto scaling settings of a global secondary index for a global
// table that will be modified.
type GlobalSecondaryIndexAutoScalingUpdate struct {
IndexName *string `json:"indexName,omitempty"`
}
// Represents the properties of a global secondary index.
type GlobalSecondaryIndexDescription struct {
Backfilling *bool `json:"backfilling,omitempty"`
IndexARN *string `json:"indexARN,omitempty"`
IndexName *string `json:"indexName,omitempty"`
IndexSizeBytes *int64 `json:"indexSizeBytes,omitempty"`
IndexStatus *string `json:"indexStatus,omitempty"`
ItemCount *int64 `json:"itemCount,omitempty"`
KeySchema []*KeySchemaElement `json:"keySchema,omitempty"`
// Represents attributes that are copied (projected) from the table into an
// index. These are in addition to the primary key attributes and index key
// attributes, which are automatically projected.
Projection *Projection `json:"projection,omitempty"`
// Represents the provisioned throughput settings for the table, consisting
// of read and write capacity units, along with data about increases and decreases.
ProvisionedThroughput *ProvisionedThroughputDescription `json:"provisionedThroughput,omitempty"`
}
// Represents the properties of a global secondary index for the table when
// the backup was created.
type GlobalSecondaryIndexInfo struct {
IndexName *string `json:"indexName,omitempty"`
KeySchema []*KeySchemaElement `json:"keySchema,omitempty"`
// Represents attributes that are copied (projected) from the table into an
// index. These are in addition to the primary key attributes and index key
// attributes, which are automatically projected.
Projection *Projection `json:"projection,omitempty"`
// Represents the provisioned throughput settings for a specified table or index.
// The settings can be modified using the UpdateTable operation.
//
// For current minimum and maximum provisioned throughput values, see Service,
// Account, and Table Quotas (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html)
// in the Amazon DynamoDB Developer Guide.
ProvisionedThroughput *ProvisionedThroughput `json:"provisionedThroughput,omitempty"`
}
// Represents one of the following:
//
// - A new global secondary index to be added to an existing table.
//
// - New provisioned throughput parameters for an existing global secondary
// index.
//
// - An existing global secondary index to be removed from an existing table.
type GlobalSecondaryIndexUpdate struct {
// Represents a new global secondary index to be added to an existing table.
Create *CreateGlobalSecondaryIndexAction `json:"create,omitempty"`
// Represents a global secondary index to be deleted from an existing table.
Delete *DeleteGlobalSecondaryIndexAction `json:"delete,omitempty"`
// Represents the new provisioned throughput settings to be applied to a global
// secondary index.
Update *UpdateGlobalSecondaryIndexAction `json:"update,omitempty"`
}
// Contains details about the global table.
type GlobalTableDescription struct {
CreationDateTime *metav1.Time `json:"creationDateTime,omitempty"`
GlobalTableARN *string `json:"globalTableARN,omitempty"`
GlobalTableName *string `json:"globalTableName,omitempty"`
GlobalTableStatus *string `json:"globalTableStatus,omitempty"`
ReplicationGroup []*ReplicaDescription `json:"replicationGroup,omitempty"`
}
// Represents the settings of a global secondary index for a global table that
// will be modified.
type GlobalTableGlobalSecondaryIndexSettingsUpdate struct {
IndexName *string `json:"indexName,omitempty"`
ProvisionedWriteCapacityUnits *int64 `json:"provisionedWriteCapacityUnits,omitempty"`
}
// Represents the properties of a global table.
type GlobalTable_SDK struct {
GlobalTableName *string `json:"globalTableName,omitempty"`
ReplicationGroup []*Replica `json:"replicationGroup,omitempty"`
}
// Summary information about the source file for the import.
type ImportSummary struct {
TableARN *string `json:"tableARN,omitempty"`
}
// Represents the properties of the table being imported into.
type ImportTableDescription struct {
ProcessedSizeBytes *int64 `json:"processedSizeBytes,omitempty"`
TableARN *string `json:"tableARN,omitempty"`
TableID *string `json:"tableID,omitempty"`
}
// Represents a single element of a key schema. A key schema specifies the attributes
// that make up the primary key of a table, or the key attributes of an index.
//
// A KeySchemaElement represents exactly one attribute of the primary key. For
// example, a simple primary key would be represented by one KeySchemaElement
// (for the partition key). A composite primary key would require one KeySchemaElement
// for the partition key, and another KeySchemaElement for the sort key.
//
// A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute).
// The data type must be one of String, Number, or Binary. The attribute cannot
// be nested within a List or a Map.
type KeySchemaElement struct {
AttributeName *string `json:"attributeName,omitempty"`
KeyType *string `json:"keyType,omitempty"`
}
// Describes a Kinesis data stream destination.
type KinesisDataStreamDestination struct {
DestinationStatusDescription *string `json:"destinationStatusDescription,omitempty"`
StreamARN *string `json:"streamARN,omitempty"`
}
// Represents the properties of a local secondary index.
type LocalSecondaryIndex struct {
IndexName *string `json:"indexName,omitempty"`
KeySchema []*KeySchemaElement `json:"keySchema,omitempty"`
// Represents attributes that are copied (projected) from the table into an
// index. These are in addition to the primary key attributes and index key
// attributes, which are automatically projected.
Projection *Projection `json:"projection,omitempty"`
}
// Represents the properties of a local secondary index.
type LocalSecondaryIndexDescription struct {
IndexARN *string `json:"indexARN,omitempty"`
IndexName *string `json:"indexName,omitempty"`
IndexSizeBytes *int64 `json:"indexSizeBytes,omitempty"`
ItemCount *int64 `json:"itemCount,omitempty"`
KeySchema []*KeySchemaElement `json:"keySchema,omitempty"`
// Represents attributes that are copied (projected) from the table into an
// index. These are in addition to the primary key attributes and index key
// attributes, which are automatically projected.
Projection *Projection `json:"projection,omitempty"`
}
// Represents the properties of a local secondary index for the table when the
// backup was created.
type LocalSecondaryIndexInfo struct {
IndexName *string `json:"indexName,omitempty"`
KeySchema []*KeySchemaElement `json:"keySchema,omitempty"`
// Represents attributes that are copied (projected) from the table into an
// index. These are in addition to the primary key attributes and index key
// attributes, which are automatically projected.
Projection *Projection `json:"projection,omitempty"`
}
// The description of the point in time settings applied to the table.
type PointInTimeRecoveryDescription struct {
EarliestRestorableDateTime *metav1.Time `json:"earliestRestorableDateTime,omitempty"`
LatestRestorableDateTime *metav1.Time `json:"latestRestorableDateTime,omitempty"`
}
// Represents the settings used to enable point in time recovery.
type PointInTimeRecoverySpecification struct {
PointInTimeRecoveryEnabled *bool `json:"pointInTimeRecoveryEnabled,omitempty"`
}
// Represents attributes that are copied (projected) from the table into an
// index. These are in addition to the primary key attributes and index key
// attributes, which are automatically projected.
type Projection struct {
NonKeyAttributes []*string `json:"nonKeyAttributes,omitempty"`
ProjectionType *string `json:"projectionType,omitempty"`
}
// Represents the provisioned throughput settings for a specified table or index.
// The settings can be modified using the UpdateTable operation.
//
// For current minimum and maximum provisioned throughput values, see Service,
// Account, and Table Quotas (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html)
// in the Amazon DynamoDB Developer Guide.
type ProvisionedThroughput struct {
ReadCapacityUnits *int64 `json:"readCapacityUnits,omitempty"`
WriteCapacityUnits *int64 `json:"writeCapacityUnits,omitempty"`
}
// Represents the provisioned throughput settings for the table, consisting
// of read and write capacity units, along with data about increases and decreases.
type ProvisionedThroughputDescription struct {
LastDecreaseDateTime *metav1.Time `json:"lastDecreaseDateTime,omitempty"`
LastIncreaseDateTime *metav1.Time `json:"lastIncreaseDateTime,omitempty"`
NumberOfDecreasesToday *int64 `json:"numberOfDecreasesToday,omitempty"`
ReadCapacityUnits *int64 `json:"readCapacityUnits,omitempty"`
WriteCapacityUnits *int64 `json:"writeCapacityUnits,omitempty"`
}
// Replica-specific provisioned throughput settings. If not specified, uses
// the source table's provisioned throughput settings.
type ProvisionedThroughputOverride struct {
ReadCapacityUnits *int64 `json:"readCapacityUnits,omitempty"`
}
// Represents a request to perform a PutItem operation.
type Put struct {
TableName *string `json:"tableName,omitempty"`
}
// Represents the properties of a replica.
type Replica struct {
RegionName *string `json:"regionName,omitempty"`
}
// Represents the auto scaling settings of the replica.
type ReplicaAutoScalingDescription struct {
RegionName *string `json:"regionName,omitempty"`
ReplicaStatus *string `json:"replicaStatus,omitempty"`
}
// Represents the auto scaling settings of a replica that will be modified.
type ReplicaAutoScalingUpdate struct {
RegionName *string `json:"regionName,omitempty"`
}
// Contains the details of the replica.
type ReplicaDescription struct {
GlobalSecondaryIndexes []*ReplicaGlobalSecondaryIndexDescription `json:"globalSecondaryIndexes,omitempty"`
KMSMasterKeyID *string `json:"kmsMasterKeyID,omitempty"`
// Replica-specific provisioned throughput settings. If not specified, uses
// the source table's provisioned throughput settings.
ProvisionedThroughputOverride *ProvisionedThroughputOverride `json:"provisionedThroughputOverride,omitempty"`
RegionName *string `json:"regionName,omitempty"`
ReplicaInaccessibleDateTime *metav1.Time `json:"replicaInaccessibleDateTime,omitempty"`
ReplicaStatus *string `json:"replicaStatus,omitempty"`
ReplicaStatusDescription *string `json:"replicaStatusDescription,omitempty"`
ReplicaStatusPercentProgress *string `json:"replicaStatusPercentProgress,omitempty"`
// Contains details of the table class.
ReplicaTableClassSummary *TableClassSummary `json:"replicaTableClassSummary,omitempty"`
}
// Represents the properties of a replica global secondary index.
type ReplicaGlobalSecondaryIndex struct {
IndexName *string `json:"indexName,omitempty"`
// Replica-specific provisioned throughput settings. If not specified, uses
// the source table's provisioned throughput settings.
ProvisionedThroughputOverride *ProvisionedThroughputOverride `json:"provisionedThroughputOverride,omitempty"`
}
// Represents the auto scaling configuration for a replica global secondary
// index.
type ReplicaGlobalSecondaryIndexAutoScalingDescription struct {
IndexName *string `json:"indexName,omitempty"`
IndexStatus *string `json:"indexStatus,omitempty"`
}
// Represents the auto scaling settings of a global secondary index for a replica
// that will be modified.
type ReplicaGlobalSecondaryIndexAutoScalingUpdate struct {
IndexName *string `json:"indexName,omitempty"`
}
// Represents the properties of a replica global secondary index.
type ReplicaGlobalSecondaryIndexDescription struct {
IndexName *string `json:"indexName,omitempty"`
// Replica-specific provisioned throughput settings. If not specified, uses
// the source table's provisioned throughput settings.
ProvisionedThroughputOverride *ProvisionedThroughputOverride `json:"provisionedThroughputOverride,omitempty"`
}
// Represents the properties of a global secondary index.
type ReplicaGlobalSecondaryIndexSettingsDescription struct {
IndexName *string `json:"indexName,omitempty"`
IndexStatus *string `json:"indexStatus,omitempty"`
ProvisionedReadCapacityUnits *int64 `json:"provisionedReadCapacityUnits,omitempty"`
ProvisionedWriteCapacityUnits *int64 `json:"provisionedWriteCapacityUnits,omitempty"`
}
// Represents the settings of a global secondary index for a global table that
// will be modified.
type ReplicaGlobalSecondaryIndexSettingsUpdate struct {
IndexName *string `json:"indexName,omitempty"`
ProvisionedReadCapacityUnits *int64 `json:"provisionedReadCapacityUnits,omitempty"`
}
// Represents the properties of a replica.
type ReplicaSettingsDescription struct {
RegionName *string `json:"regionName,omitempty"`
ReplicaProvisionedReadCapacityUnits *int64 `json:"replicaProvisionedReadCapacityUnits,omitempty"`
ReplicaProvisionedWriteCapacityUnits *int64 `json:"replicaProvisionedWriteCapacityUnits,omitempty"`
ReplicaStatus *string `json:"replicaStatus,omitempty"`
// Contains details of the table class.
ReplicaTableClassSummary *TableClassSummary `json:"replicaTableClassSummary,omitempty"`
}
// Represents the settings for a global table in a Region that will be modified.
type ReplicaSettingsUpdate struct {
RegionName *string `json:"regionName,omitempty"`
ReplicaProvisionedReadCapacityUnits *int64 `json:"replicaProvisionedReadCapacityUnits,omitempty"`
ReplicaTableClass *string `json:"replicaTableClass,omitempty"`
}
// Represents one of the following:
//
// - A new replica to be added to an existing global table.
//
// - New parameters for an existing replica.
//
// - An existing replica to be removed from an existing global table.
type ReplicaUpdate struct {
// Represents a replica to be added.
Create *CreateReplicaAction `json:"create,omitempty"`
// Represents a replica to be removed.
Delete *DeleteReplicaAction `json:"delete,omitempty"`
}
// Represents one of the following:
//
// - A new replica to be added to an existing regional table or global table.
// This request invokes the CreateTableReplica action in the destination
// Region.
//
// - New parameters for an existing replica. This request invokes the UpdateTable
// action in the destination Region.
//
// - An existing replica to be deleted. The request invokes the DeleteTableReplica
// action in the destination Region, deleting the replica and all if its
// items in the destination Region.
//
// When you manually remove a table or global table replica, you do not automatically
// remove any associated scalable targets, scaling policies, or CloudWatch alarms.
type ReplicationGroupUpdate struct {
// Represents a replica to be created.
Create *CreateReplicationGroupMemberAction `json:"create,omitempty"`
// Represents a replica to be deleted.
Delete *DeleteReplicationGroupMemberAction `json:"delete,omitempty"`
// Represents a replica to be modified.
Update *UpdateReplicationGroupMemberAction `json:"update,omitempty"`
}
// Contains details for the restore.
type RestoreSummary struct {
RestoreDateTime *metav1.Time `json:"restoreDateTime,omitempty"`
RestoreInProgress *bool `json:"restoreInProgress,omitempty"`
SourceBackupARN *string `json:"sourceBackupARN,omitempty"`
SourceTableARN *string `json:"sourceTableARN,omitempty"`
}
// The description of the server-side encryption status on the specified table.
type SSEDescription struct {
InaccessibleEncryptionDateTime *metav1.Time `json:"inaccessibleEncryptionDateTime,omitempty"`
KMSMasterKeyARN *string `json:"kmsMasterKeyARN,omitempty"`
SSEType *string `json:"sseType,omitempty"`
Status *string `json:"status,omitempty"`
}
// Represents the settings used to enable server-side encryption.
type SSESpecification struct {
Enabled *bool `json:"enabled,omitempty"`
KMSMasterKeyID *string `json:"kmsMasterKeyID,omitempty"`
SSEType *string `json:"sseType,omitempty"`
}
// Contains the details of the table when the backup was created.
type SourceTableDetails struct {
BillingMode *string `json:"billingMode,omitempty"`
ItemCount *int64 `json:"itemCount,omitempty"`
KeySchema []*KeySchemaElement `json:"keySchema,omitempty"`
// Represents the provisioned throughput settings for a specified table or index.
// The settings can be modified using the UpdateTable operation.
//
// For current minimum and maximum provisioned throughput values, see Service,
// Account, and Table Quotas (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html)
// in the Amazon DynamoDB Developer Guide.
ProvisionedThroughput *ProvisionedThroughput `json:"provisionedThroughput,omitempty"`
TableARN *string `json:"tableARN,omitempty"`
TableCreationDateTime *metav1.Time `json:"tableCreationDateTime,omitempty"`
TableID *string `json:"tableID,omitempty"`
TableName *string `json:"tableName,omitempty"`
TableSizeBytes *int64 `json:"tableSizeBytes,omitempty"`
}
// Contains the details of the features enabled on the table when the backup
// was created. For example, LSIs, GSIs, streams, TTL.
type SourceTableFeatureDetails struct {
GlobalSecondaryIndexes []*GlobalSecondaryIndexInfo `json:"globalSecondaryIndexes,omitempty"`
LocalSecondaryIndexes []*LocalSecondaryIndexInfo `json:"localSecondaryIndexes,omitempty"`
// The description of the server-side encryption status on the specified table.
SSEDescription *SSEDescription `json:"sseDescription,omitempty"`
// Represents the DynamoDB Streams configuration for a table in DynamoDB.
StreamDescription *StreamSpecification `json:"streamDescription,omitempty"`
// The description of the Time to Live (TTL) status on the specified table.
TimeToLiveDescription *TimeToLiveDescription `json:"timeToLiveDescription,omitempty"`
}
// Represents the DynamoDB Streams configuration for a table in DynamoDB.
type StreamSpecification struct {
StreamEnabled *bool `json:"streamEnabled,omitempty"`
StreamViewType *string `json:"streamViewType,omitempty"`
}
// Represents the auto scaling configuration for a global table.
type TableAutoScalingDescription struct {
TableName *string `json:"tableName,omitempty"`
TableStatus *string `json:"tableStatus,omitempty"`
}
// Contains details of the table class.
type TableClassSummary struct {
LastUpdateDateTime *metav1.Time `json:"lastUpdateDateTime,omitempty"`
TableClass *string `json:"tableClass,omitempty"`
}
// The parameters for the table created as part of the import operation.
type TableCreationParameters struct {
AttributeDefinitions []*AttributeDefinition `json:"attributeDefinitions,omitempty"`
BillingMode *string `json:"billingMode,omitempty"`
GlobalSecondaryIndexes []*GlobalSecondaryIndex `json:"globalSecondaryIndexes,omitempty"`
KeySchema []*KeySchemaElement `json:"keySchema,omitempty"`
// Represents the provisioned throughput settings for a specified table or index.
// The settings can be modified using the UpdateTable operation.
//
// For current minimum and maximum provisioned throughput values, see Service,
// Account, and Table Quotas (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html)
// in the Amazon DynamoDB Developer Guide.
ProvisionedThroughput *ProvisionedThroughput `json:"provisionedThroughput,omitempty"`
// Represents the settings used to enable server-side encryption.
SSESpecification *SSESpecification `json:"sseSpecification,omitempty"`
TableName *string `json:"tableName,omitempty"`
}
// Represents the properties of a table.
type TableDescription struct {
// Contains details of a table archival operation.
ArchivalSummary *ArchivalSummary `json:"archivalSummary,omitempty"`
AttributeDefinitions []*AttributeDefinition `json:"attributeDefinitions,omitempty"`
CreationDateTime *metav1.Time `json:"creationDateTime,omitempty"`
GlobalSecondaryIndexes []*GlobalSecondaryIndexDescription `json:"globalSecondaryIndexes,omitempty"`
GlobalTableVersion *string `json:"globalTableVersion,omitempty"`
ItemCount *int64 `json:"itemCount,omitempty"`
KeySchema []*KeySchemaElement `json:"keySchema,omitempty"`
LatestStreamARN *string `json:"latestStreamARN,omitempty"`
LatestStreamLabel *string `json:"latestStreamLabel,omitempty"`
LocalSecondaryIndexes []*LocalSecondaryIndexDescription `json:"localSecondaryIndexes,omitempty"`
// Represents the provisioned throughput settings for the table, consisting
// of read and write capacity units, along with data about increases and decreases.
ProvisionedThroughput *ProvisionedThroughputDescription `json:"provisionedThroughput,omitempty"`
Replicas []*ReplicaDescription `json:"replicas,omitempty"`
// Contains details for the restore.
RestoreSummary *RestoreSummary `json:"restoreSummary,omitempty"`
// Represents the DynamoDB Streams configuration for a table in DynamoDB.
StreamSpecification *StreamSpecification `json:"streamSpecification,omitempty"`
TableARN *string `json:"tableARN,omitempty"`
TableID *string `json:"tableID,omitempty"`
TableName *string `json:"tableName,omitempty"`
TableSizeBytes *int64 `json:"tableSizeBytes,omitempty"`
TableStatus *string `json:"tableStatus,omitempty"`
}
// Describes a tag. A tag is a key-value pair. You can add up to 50 tags to
// a single DynamoDB table.
//
// Amazon Web Services-assigned tag names and values are automatically assigned
// the aws: prefix, which the user cannot assign. Amazon Web Services-assigned
// tag names do not count towards the tag limit of 50. User-assigned tag names
// have the prefix user: in the Cost Allocation Report. You cannot backdate
// the application of a tag.
//
// For an overview on tagging DynamoDB resources, see Tagging for DynamoDB (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html)
// in the Amazon DynamoDB Developer Guide.
type Tag struct {
Key *string `json:"key,omitempty"`
Value *string `json:"value,omitempty"`
}
// The description of the Time to Live (TTL) status on the specified table.
type TimeToLiveDescription struct {
AttributeName *string `json:"attributeName,omitempty"`
TimeToLiveStatus *string `json:"timeToLiveStatus,omitempty"`
}
// Represents the settings used to enable or disable Time to Live (TTL) for
// the specified table.
type TimeToLiveSpecification struct {
AttributeName *string `json:"attributeName,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
}
// Represents a request to perform an UpdateItem operation.
type Update struct {
TableName *string `json:"tableName,omitempty"`
}
// Represents the new provisioned throughput settings to be applied to a global
// secondary index.
type UpdateGlobalSecondaryIndexAction struct {
IndexName *string `json:"indexName,omitempty"`
// Represents the provisioned throughput settings for a specified table or index.
// The settings can be modified using the UpdateTable operation.
//
// For current minimum and maximum provisioned throughput values, see Service,
// Account, and Table Quotas (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html)
// in the Amazon DynamoDB Developer Guide.
ProvisionedThroughput *ProvisionedThroughput `json:"provisionedThroughput,omitempty"`
}
// Represents a replica to be modified.
type UpdateReplicationGroupMemberAction struct {
GlobalSecondaryIndexes []*ReplicaGlobalSecondaryIndex `json:"globalSecondaryIndexes,omitempty"`
KMSMasterKeyID *string `json:"kmsMasterKeyID,omitempty"`
// Replica-specific provisioned throughput settings. If not specified, uses
// the source table's provisioned throughput settings.
ProvisionedThroughputOverride *ProvisionedThroughputOverride `json:"provisionedThroughputOverride,omitempty"`
RegionName *string `json:"regionName,omitempty"`
TableClassOverride *string `json:"tableClassOverride,omitempty"`
}