generated from hashicorp/terraform-provider-scaffolding
/
bucket_singular_data_source_gen.go
3150 lines (3137 loc) · 194 KB
/
bucket_singular_data_source_gen.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
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// Code generated by generators/singular-data-source/main.go; DO NOT EDIT.
package s3
import (
"context"
"github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-provider-awscc/internal/generic"
"github.com/hashicorp/terraform-provider-awscc/internal/registry"
)
func init() {
registry.AddDataSourceFactory("awscc_s3_bucket", bucketDataSource)
}
// bucketDataSource returns the Terraform awscc_s3_bucket data source.
// This Terraform data source corresponds to the CloudFormation AWS::S3::Bucket resource.
func bucketDataSource(ctx context.Context) (datasource.DataSource, error) {
attributes := map[string]schema.Attribute{ /*START SCHEMA*/
// Property: AccelerateConfiguration
// CloudFormation resource type schema:
//
// {
// "additionalProperties": false,
// "description": "Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see [Amazon S3 Transfer Acceleration](https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html) in the *Amazon S3 User Guide*.",
// "properties": {
// "AccelerationStatus": {
// "description": "Specifies the transfer acceleration status of the bucket.",
// "enum": [
// "Enabled",
// "Suspended"
// ],
// "type": "string"
// }
// },
// "required": [
// "AccelerationStatus"
// ],
// "type": "object"
// }
"accelerate_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: AccelerationStatus
"acceleration_status": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Specifies the transfer acceleration status of the bucket.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see [Amazon S3 Transfer Acceleration](https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html) in the *Amazon S3 User Guide*.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: AccessControl
// CloudFormation resource type schema:
//
// {
// "description": "This is a legacy property, and it is not recommended for most use cases. A majority of modern use cases in Amazon S3 no longer require the use of ACLs, and we recommend that you keep ACLs disabled. For more information, see [Controlling object ownership](https://docs.aws.amazon.com//AmazonS3/latest/userguide/about-object-ownership.html) in the *Amazon S3 User Guide*.\n A canned access control list (ACL) that grants predefined permissions to the bucket. For more information about canned ACLs, see [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) in the *Amazon S3 User Guide*.\n S3 buckets are created with ACLs disabled by default. Therefore, unless you explicitly set the [AWS::S3::OwnershipControls](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-ownershipcontrols.html) property to enable ACLs, your resource will fail to deploy with any value other than Private. Use cases requiring ACLs are uncommon.\n The majority of access control configurations can be successfully and more easily achieved with bucket policies. For more information, see [AWS::S3::BucketPolicy](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html). For examples of common policy configurations, including S3 Server Access Logs buckets and more, see [Bucket policy examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) in the *Amazon S3 User Guide*.",
// "enum": [
// "AuthenticatedRead",
// "AwsExecRead",
// "BucketOwnerFullControl",
// "BucketOwnerRead",
// "LogDeliveryWrite",
// "Private",
// "PublicRead",
// "PublicReadWrite"
// ],
// "type": "string"
// }
"access_control": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "This is a legacy property, and it is not recommended for most use cases. A majority of modern use cases in Amazon S3 no longer require the use of ACLs, and we recommend that you keep ACLs disabled. For more information, see [Controlling object ownership](https://docs.aws.amazon.com//AmazonS3/latest/userguide/about-object-ownership.html) in the *Amazon S3 User Guide*.\n A canned access control list (ACL) that grants predefined permissions to the bucket. For more information about canned ACLs, see [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) in the *Amazon S3 User Guide*.\n S3 buckets are created with ACLs disabled by default. Therefore, unless you explicitly set the [AWS::S3::OwnershipControls](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-ownershipcontrols.html) property to enable ACLs, your resource will fail to deploy with any value other than Private. Use cases requiring ACLs are uncommon.\n The majority of access control configurations can be successfully and more easily achieved with bucket policies. For more information, see [AWS::S3::BucketPolicy](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html). For examples of common policy configurations, including S3 Server Access Logs buckets and more, see [Bucket policy examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) in the *Amazon S3 User Guide*.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: AnalyticsConfigurations
// CloudFormation resource type schema:
//
// {
// "description": "Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.",
// "insertionOrder": true,
// "items": {
// "additionalProperties": false,
// "description": "Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.",
// "properties": {
// "Id": {
// "description": "The ID that identifies the analytics configuration.",
// "type": "string"
// },
// "Prefix": {
// "description": "The prefix that an object must have to be included in the analytics results.",
// "type": "string"
// },
// "StorageClassAnalysis": {
// "additionalProperties": false,
// "description": "Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes.",
// "properties": {
// "DataExport": {
// "additionalProperties": false,
// "description": "Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.",
// "properties": {
// "Destination": {
// "additionalProperties": false,
// "description": "The place to store the data for an analysis.",
// "properties": {
// "BucketAccountId": {
// "description": "The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.\n Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.",
// "type": "string"
// },
// "BucketArn": {
// "description": "The Amazon Resource Name (ARN) of the bucket to which data is exported.",
// "type": "string"
// },
// "Format": {
// "description": "Specifies the file format used when exporting data to Amazon S3.\n *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet``",
// "enum": [
// "CSV",
// "ORC",
// "Parquet"
// ],
// "type": "string"
// },
// "Prefix": {
// "description": "The prefix to use when exporting data. The prefix is prepended to all results.",
// "type": "string"
// }
// },
// "required": [
// "BucketArn",
// "Format"
// ],
// "type": "object"
// },
// "OutputSchemaVersion": {
// "description": "The version of the output schema to use when exporting data. Must be ``V_1``.",
// "type": "string"
// }
// },
// "required": [
// "Destination",
// "OutputSchemaVersion"
// ],
// "type": "object"
// }
// },
// "type": "object"
// },
// "TagFilters": {
// "description": "The tags to use when evaluating an analytics filter.\n The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.",
// "insertionOrder": true,
// "items": {
// "additionalProperties": false,
// "description": "Specifies tags to use to identify a subset of objects for an Amazon S3 bucket.",
// "properties": {
// "Key": {
// "description": "The tag key.",
// "type": "string"
// },
// "Value": {
// "description": "The tag value.",
// "type": "string"
// }
// },
// "required": [
// "Value",
// "Key"
// ],
// "type": "object"
// },
// "type": "array",
// "uniqueItems": true
// }
// },
// "required": [
// "StorageClassAnalysis",
// "Id"
// ],
// "type": "object"
// },
// "type": "array",
// "uniqueItems": true
// }
"analytics_configurations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: Id
"id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The ID that identifies the analytics configuration.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Prefix
"prefix": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The prefix that an object must have to be included in the analytics results.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: StorageClassAnalysis
"storage_class_analysis": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: DataExport
"data_export": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: Destination
"destination": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: BucketAccountId
"bucket_account_id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.\n Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: BucketArn
"bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The Amazon Resource Name (ARN) of the bucket to which data is exported.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Format
"format": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Specifies the file format used when exporting data to Amazon S3.\n *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet``",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Prefix
"prefix": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The prefix to use when exporting data. The prefix is prepended to all results.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "The place to store the data for an analysis.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: OutputSchemaVersion
"output_schema_version": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The version of the output schema to use when exporting data. Must be ``V_1``.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: TagFilters
"tag_filters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: Key
"key": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The tag key.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Value
"value": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The tag value.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "The tags to use when evaluating an analytics filter.\n The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Arn
// CloudFormation resource type schema:
//
// {
// "description": "The Amazon Resource Name (ARN) of the specified bucket.",
// "type": "string"
// }
"arn": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The Amazon Resource Name (ARN) of the specified bucket.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: BucketEncryption
// CloudFormation resource type schema:
//
// {
// "additionalProperties": false,
// "description": "Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Encryption for S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) in the *Amazon S3 User Guide*.",
// "properties": {
// "ServerSideEncryptionConfiguration": {
// "description": "Specifies the default server-side-encryption configuration.",
// "insertionOrder": true,
// "items": {
// "additionalProperties": false,
// "description": "Specifies the default server-side encryption configuration.",
// "properties": {
// "BucketKeyEnabled": {
// "description": "Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting the ``BucketKeyEnabled`` element to ``true`` causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.\n For more information, see [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) in the *Amazon S3 User Guide*.",
// "type": "boolean"
// },
// "ServerSideEncryptionByDefault": {
// "additionalProperties": false,
// "description": "Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.",
// "properties": {
// "KMSMasterKeyID": {
// "description": "AWS Key Management Service (KMS) customer AWS KMS key ID to use for the default encryption. This parameter is allowed if and only if ``SSEAlgorithm`` is set to ``aws:kms`` or ``aws:kms:dsse``.\n You can specify the key ID, key alias, or the Amazon Resource Name (ARN) of the KMS key.\n + Key ID: ``1234abcd-12ab-34cd-56ef-1234567890ab`` \n + Key ARN: ``arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`` \n + Key Alias: ``alias/alias-name`` \n \n If you use a key ID, you can run into a LogDestination undeliverable error when creating a VPC flow log. \n If you are using encryption with cross-account or AWS service operations you must use a fully qualified KMS key ARN. For more information, see [Using encryption for cross-account operations](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html#bucket-encryption-update-bucket-policy).\n Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*.",
// "type": "string"
// },
// "SSEAlgorithm": {
// "description": "Server-side encryption algorithm to use for the default encryption.",
// "enum": [
// "aws:kms",
// "AES256",
// "aws:kms:dsse"
// ],
// "type": "string"
// }
// },
// "required": [
// "SSEAlgorithm"
// ],
// "type": "object"
// }
// },
// "type": "object"
// },
// "type": "array",
// "uniqueItems": true
// }
// },
// "required": [
// "ServerSideEncryptionConfiguration"
// ],
// "type": "object"
// }
"bucket_encryption": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: ServerSideEncryptionConfiguration
"server_side_encryption_configuration": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: BucketKeyEnabled
"bucket_key_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting the ``BucketKeyEnabled`` element to ``true`` causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.\n For more information, see [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) in the *Amazon S3 User Guide*.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: ServerSideEncryptionByDefault
"server_side_encryption_by_default": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: KMSMasterKeyID
"kms_master_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "AWS Key Management Service (KMS) customer AWS KMS key ID to use for the default encryption. This parameter is allowed if and only if ``SSEAlgorithm`` is set to ``aws:kms`` or ``aws:kms:dsse``.\n You can specify the key ID, key alias, or the Amazon Resource Name (ARN) of the KMS key.\n + Key ID: ``1234abcd-12ab-34cd-56ef-1234567890ab`` \n + Key ARN: ``arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`` \n + Key Alias: ``alias/alias-name`` \n \n If you use a key ID, you can run into a LogDestination undeliverable error when creating a VPC flow log. \n If you are using encryption with cross-account or AWS service operations you must use a fully qualified KMS key ARN. For more information, see [Using encryption for cross-account operations](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html#bucket-encryption-update-bucket-policy).\n Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: SSEAlgorithm
"sse_algorithm": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Server-side encryption algorithm to use for the default encryption.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "Specifies the default server-side-encryption configuration.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Encryption for S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) in the *Amazon S3 User Guide*.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: BucketName
// CloudFormation resource type schema:
//
// {
// "description": "A name for the bucket. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name. The bucket name must contain only lowercase letters, numbers, periods (.), and dashes (-) and must follow [Amazon S3 bucket restrictions and limitations](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html). For more information, see [Rules for naming Amazon S3 buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html#bucketnamingrules) in the *Amazon S3 User Guide*. \n If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you need to replace the resource, specify a new name.",
// "maxLength": 63,
// "minLength": 3,
// "pattern": "^[a-z0-9][a-z0-9//.//-]*[a-z0-9]$",
// "type": "string"
// }
"bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "A name for the bucket. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name. The bucket name must contain only lowercase letters, numbers, periods (.), and dashes (-) and must follow [Amazon S3 bucket restrictions and limitations](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html). For more information, see [Rules for naming Amazon S3 buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html#bucketnamingrules) in the *Amazon S3 User Guide*. \n If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you need to replace the resource, specify a new name.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: CorsConfiguration
// CloudFormation resource type schema:
//
// {
// "additionalProperties": false,
// "description": "Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see [Enabling Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the *Amazon S3 User Guide*.",
// "properties": {
// "CorsRules": {
// "description": "A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.",
// "insertionOrder": true,
// "items": {
// "additionalProperties": false,
// "description": "Specifies a cross-origin access rule for an Amazon S3 bucket.",
// "properties": {
// "AllowedHeaders": {
// "description": "Headers that are specified in the ``Access-Control-Request-Headers`` header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.",
// "insertionOrder": true,
// "items": {
// "type": "string"
// },
// "type": "array",
// "uniqueItems": true
// },
// "AllowedMethods": {
// "description": "An HTTP method that you allow the origin to run.\n *Allowed values*: ``GET`` | ``PUT`` | ``HEAD`` | ``POST`` | ``DELETE``",
// "insertionOrder": true,
// "items": {
// "enum": [
// "GET",
// "PUT",
// "HEAD",
// "POST",
// "DELETE"
// ],
// "type": "string"
// },
// "type": "array",
// "uniqueItems": true
// },
// "AllowedOrigins": {
// "description": "One or more origins you want customers to be able to access the bucket from.",
// "insertionOrder": true,
// "items": {
// "type": "string"
// },
// "type": "array",
// "uniqueItems": true
// },
// "ExposedHeaders": {
// "description": "One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript ``XMLHttpRequest`` object).",
// "insertionOrder": true,
// "items": {
// "type": "string"
// },
// "type": "array",
// "uniqueItems": true
// },
// "Id": {
// "description": "A unique identifier for this rule. The value must be no more than 255 characters.",
// "maxLength": 255,
// "type": "string"
// },
// "MaxAge": {
// "description": "The time in seconds that your browser is to cache the preflight response for the specified resource.",
// "minimum": 0,
// "type": "integer"
// }
// },
// "required": [
// "AllowedMethods",
// "AllowedOrigins"
// ],
// "type": "object"
// },
// "type": "array",
// "uniqueItems": true
// }
// },
// "required": [
// "CorsRules"
// ],
// "type": "object"
// }
"cors_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: CorsRules
"cors_rules": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: AllowedHeaders
"allowed_headers": schema.ListAttribute{ /*START ATTRIBUTE*/
ElementType: types.StringType,
Description: "Headers that are specified in the ``Access-Control-Request-Headers`` header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: AllowedMethods
"allowed_methods": schema.ListAttribute{ /*START ATTRIBUTE*/
ElementType: types.StringType,
Description: "An HTTP method that you allow the origin to run.\n *Allowed values*: ``GET`` | ``PUT`` | ``HEAD`` | ``POST`` | ``DELETE``",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: AllowedOrigins
"allowed_origins": schema.ListAttribute{ /*START ATTRIBUTE*/
ElementType: types.StringType,
Description: "One or more origins you want customers to be able to access the bucket from.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: ExposedHeaders
"exposed_headers": schema.ListAttribute{ /*START ATTRIBUTE*/
ElementType: types.StringType,
Description: "One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript ``XMLHttpRequest`` object).",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Id
"id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "A unique identifier for this rule. The value must be no more than 255 characters.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: MaxAge
"max_age": schema.Int64Attribute{ /*START ATTRIBUTE*/
Description: "The time in seconds that your browser is to cache the preflight response for the specified resource.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see [Enabling Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the *Amazon S3 User Guide*.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: DomainName
// CloudFormation resource type schema:
//
// {
// "description": "The IPv4 DNS name of the specified bucket.",
// "examples": [
// "mystack-mybucket-kdwwxmddtr2g.s3.amazonaws.com"
// ],
// "type": "string"
// }
"domain_name": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The IPv4 DNS name of the specified bucket.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: DualStackDomainName
// CloudFormation resource type schema:
//
// {
// "description": "The IPv6 DNS name of the specified bucket. For more information about dual-stack endpoints, see [Using Amazon S3 Dual-Stack Endpoints](https://docs.aws.amazon.com/AmazonS3/latest/dev/dual-stack-endpoints.html).",
// "examples": [
// "mystack-mybucket-kdwwxmddtr2g.s3.dualstack.us-east-2.amazonaws.com"
// ],
// "type": "string"
// }
"dual_stack_domain_name": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The IPv6 DNS name of the specified bucket. For more information about dual-stack endpoints, see [Using Amazon S3 Dual-Stack Endpoints](https://docs.aws.amazon.com/AmazonS3/latest/dev/dual-stack-endpoints.html).",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: IntelligentTieringConfigurations
// CloudFormation resource type schema:
//
// {
// "description": "Defines how Amazon S3 handles Intelligent-Tiering storage.",
// "insertionOrder": true,
// "items": {
// "additionalProperties": false,
// "description": "Specifies the S3 Intelligent-Tiering configuration for an Amazon S3 bucket.\n For information about the S3 Intelligent-Tiering storage class, see [Storage class for automatically optimizing frequently and infrequently accessed objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access).",
// "properties": {
// "Id": {
// "description": "The ID used to identify the S3 Intelligent-Tiering configuration.",
// "type": "string"
// },
// "Prefix": {
// "description": "An object key name prefix that identifies the subset of objects to which the rule applies.",
// "type": "string"
// },
// "Status": {
// "description": "Specifies the status of the configuration.",
// "enum": [
// "Disabled",
// "Enabled"
// ],
// "type": "string"
// },
// "TagFilters": {
// "description": "A container for a key-value pair.",
// "insertionOrder": true,
// "items": {
// "additionalProperties": false,
// "description": "Specifies tags to use to identify a subset of objects for an Amazon S3 bucket.",
// "properties": {
// "Key": {
// "description": "The tag key.",
// "type": "string"
// },
// "Value": {
// "description": "The tag value.",
// "type": "string"
// }
// },
// "required": [
// "Value",
// "Key"
// ],
// "type": "object"
// },
// "type": "array",
// "uniqueItems": true
// },
// "Tierings": {
// "description": "Specifies a list of S3 Intelligent-Tiering storage class tiers in the configuration. At least one tier must be defined in the list. At most, you can specify two tiers in the list, one for each available AccessTier: ``ARCHIVE_ACCESS`` and ``DEEP_ARCHIVE_ACCESS``.\n You only need Intelligent Tiering Configuration enabled on a bucket if you want to automatically move objects stored in the Intelligent-Tiering storage class to Archive Access or Deep Archive Access tiers.",
// "insertionOrder": true,
// "items": {
// "additionalProperties": false,
// "description": "The S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without additional operational overhead.",
// "properties": {
// "AccessTier": {
// "description": "S3 Intelligent-Tiering access tier. See [Storage class for automatically optimizing frequently and infrequently accessed objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access) for a list of access tiers in the S3 Intelligent-Tiering storage class.",
// "enum": [
// "ARCHIVE_ACCESS",
// "DEEP_ARCHIVE_ACCESS"
// ],
// "type": "string"
// },
// "Days": {
// "description": "The number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier. The minimum number of days specified for Archive Access tier must be at least 90 days and Deep Archive Access tier must be at least 180 days. The maximum can be up to 2 years (730 days).",
// "type": "integer"
// }
// },
// "required": [
// "AccessTier",
// "Days"
// ],
// "type": "object"
// },
// "type": "array",
// "uniqueItems": true
// }
// },
// "required": [
// "Id",
// "Status",
// "Tierings"
// ],
// "type": "object"
// },
// "type": "array",
// "uniqueItems": true
// }
"intelligent_tiering_configurations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: Id
"id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The ID used to identify the S3 Intelligent-Tiering configuration.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Prefix
"prefix": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "An object key name prefix that identifies the subset of objects to which the rule applies.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Status
"status": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Specifies the status of the configuration.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: TagFilters
"tag_filters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: Key
"key": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The tag key.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Value
"value": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The tag value.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "A container for a key-value pair.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Tierings
"tierings": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: AccessTier
"access_tier": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "S3 Intelligent-Tiering access tier. See [Storage class for automatically optimizing frequently and infrequently accessed objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access) for a list of access tiers in the S3 Intelligent-Tiering storage class.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Days
"days": schema.Int64Attribute{ /*START ATTRIBUTE*/
Description: "The number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier. The minimum number of days specified for Archive Access tier must be at least 90 days and Deep Archive Access tier must be at least 180 days. The maximum can be up to 2 years (730 days).",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "Specifies a list of S3 Intelligent-Tiering storage class tiers in the configuration. At least one tier must be defined in the list. At most, you can specify two tiers in the list, one for each available AccessTier: ``ARCHIVE_ACCESS`` and ``DEEP_ARCHIVE_ACCESS``.\n You only need Intelligent Tiering Configuration enabled on a bucket if you want to automatically move objects stored in the Intelligent-Tiering storage class to Archive Access or Deep Archive Access tiers.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "Defines how Amazon S3 handles Intelligent-Tiering storage.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: InventoryConfigurations
// CloudFormation resource type schema:
//
// {
// "description": "Specifies the inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.",
// "insertionOrder": true,
// "items": {
// "additionalProperties": false,
// "description": "Specifies the inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.",
// "properties": {
// "Destination": {
// "additionalProperties": false,
// "description": "Contains information about where to publish the inventory results.",
// "properties": {
// "BucketAccountId": {
// "description": "The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.\n Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.",
// "type": "string"
// },
// "BucketArn": {
// "description": "The Amazon Resource Name (ARN) of the bucket to which data is exported.",
// "type": "string"
// },
// "Format": {
// "description": "Specifies the file format used when exporting data to Amazon S3.\n *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet``",
// "enum": [
// "CSV",
// "ORC",
// "Parquet"
// ],
// "type": "string"
// },
// "Prefix": {
// "description": "The prefix to use when exporting data. The prefix is prepended to all results.",
// "type": "string"
// }
// },
// "required": [
// "BucketArn",
// "Format"
// ],
// "type": "object"
// },
// "Enabled": {
// "description": "Specifies whether the inventory is enabled or disabled. If set to ``True``, an inventory list is generated. If set to ``False``, no inventory list is generated.",
// "type": "boolean"
// },
// "Id": {
// "description": "The ID used to identify the inventory configuration.",
// "type": "string"
// },
// "IncludedObjectVersions": {
// "description": "Object versions to include in the inventory list. If set to ``All``, the list includes all the object versions, which adds the version-related fields ``VersionId``, ``IsLatest``, and ``DeleteMarker`` to the list. If set to ``Current``, the list does not contain these version-related fields.",
// "enum": [
// "All",
// "Current"
// ],
// "type": "string"
// },
// "OptionalFields": {
// "description": "Contains the optional fields that are included in the inventory results.",
// "insertionOrder": true,
// "items": {
// "enum": [
// "Size",
// "LastModifiedDate",
// "StorageClass",
// "ETag",
// "IsMultipartUploaded",
// "ReplicationStatus",
// "EncryptionStatus",
// "ObjectLockRetainUntilDate",
// "ObjectLockMode",
// "ObjectLockLegalHoldStatus",
// "IntelligentTieringAccessTier",
// "BucketKeyStatus",
// "ChecksumAlgorithm",
// "ObjectAccessControlList",
// "ObjectOwner"
// ],
// "type": "string"
// },
// "type": "array",
// "uniqueItems": true
// },
// "Prefix": {
// "description": "Specifies the inventory filter prefix.",
// "type": "string"
// },
// "ScheduleFrequency": {
// "description": "Specifies the schedule for generating inventory results.",
// "enum": [
// "Daily",
// "Weekly"
// ],
// "type": "string"
// }
// },
// "required": [
// "Destination",
// "Enabled",
// "Id",
// "IncludedObjectVersions",
// "ScheduleFrequency"
// ],
// "type": "object"
// },
// "type": "array",
// "uniqueItems": true
// }
"inventory_configurations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: Destination
"destination": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: BucketAccountId
"bucket_account_id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.\n Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: BucketArn
"bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The Amazon Resource Name (ARN) of the bucket to which data is exported.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Format
"format": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Specifies the file format used when exporting data to Amazon S3.\n *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet``",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Prefix
"prefix": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The prefix to use when exporting data. The prefix is prepended to all results.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Contains information about where to publish the inventory results.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Enabled
"enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "Specifies whether the inventory is enabled or disabled. If set to ``True``, an inventory list is generated. If set to ``False``, no inventory list is generated.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Id
"id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The ID used to identify the inventory configuration.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: IncludedObjectVersions
"included_object_versions": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Object versions to include in the inventory list. If set to ``All``, the list includes all the object versions, which adds the version-related fields ``VersionId``, ``IsLatest``, and ``DeleteMarker`` to the list. If set to ``Current``, the list does not contain these version-related fields.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: OptionalFields
"optional_fields": schema.ListAttribute{ /*START ATTRIBUTE*/
ElementType: types.StringType,
Description: "Contains the optional fields that are included in the inventory results.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Prefix
"prefix": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Specifies the inventory filter prefix.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: ScheduleFrequency
"schedule_frequency": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Specifies the schedule for generating inventory results.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "Specifies the inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: LifecycleConfiguration
// CloudFormation resource type schema:
//
// {
// "additionalProperties": false,
// "description": "Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more information, see [Object Lifecycle Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) in the *Amazon S3 User Guide*.",
// "properties": {
// "Rules": {
// "description": "A lifecycle rule for individual objects in an Amazon S3 bucket.",
// "insertionOrder": true,
// "items": {
// "additionalProperties": false,
// "description": "Specifies lifecycle rules for an Amazon S3 bucket. For more information, see [Put Bucket Lifecycle Configuration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlifecycle.html) in the *Amazon S3 API Reference*.\n You must specify at least one of the following properties: ``AbortIncompleteMultipartUpload``, ``ExpirationDate``, ``ExpirationInDays``, ``NoncurrentVersionExpirationInDays``, ``NoncurrentVersionTransition``, ``NoncurrentVersionTransitions``, ``Transition``, or ``Transitions``.",
// "properties": {
// "AbortIncompleteMultipartUpload": {
// "additionalProperties": false,
// "description": "Specifies a lifecycle rule that stops incomplete multipart uploads to an Amazon S3 bucket.",
// "properties": {
// "DaysAfterInitiation": {
// "description": "Specifies the number of days after which Amazon S3 stops an incomplete multipart upload.",
// "minimum": 0,
// "type": "integer"
// }
// },
// "required": [
// "DaysAfterInitiation"
// ],
// "type": "object"
// },
// "ExpirationDate": {
// "description": "Indicates when objects are deleted from Amazon S3 and Amazon S3 Glacier. The date value must be in ISO 8601 format. The time is always midnight UTC. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.",
// "pattern": "^([0-2]\\d{3})-(0[0-9]|1[0-2])-([0-2]\\d|3[01])T([01]\\d|2[0-4]):([0-5]\\d):([0-6]\\d)((\\.\\d{3})?)Z$",
// "type": "string"
// },
// "ExpirationInDays": {
// "description": "Indicates the number of days after creation when objects are deleted from Amazon S3 and Amazon S3 Glacier. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.",
// "type": "integer"
// },
// "ExpiredObjectDeleteMarker": {
// "description": "Indicates whether Amazon S3 will remove a delete marker without any noncurrent versions. If set to true, the delete marker will be removed if there are no noncurrent versions. This cannot be specified with ``ExpirationInDays``, ``ExpirationDate``, or ``TagFilters``.",
// "type": "boolean"
// },
// "Id": {
// "description": "Unique identifier for the rule. The value can't be longer than 255 characters.",
// "maxLength": 255,
// "type": "string"
// },
// "NoncurrentVersionExpiration": {
// "additionalProperties": false,
// "description": "Specifies when noncurrent object versions expire. Upon expiration, S3 permanently deletes the noncurrent object versions. You set this lifecycle configuration action on a bucket that has versioning enabled (or suspended) to request that S3 delete noncurrent object versions at a specific period in the object's lifetime.",
// "properties": {
// "NewerNoncurrentVersions": {
// "description": "Specifies how many noncurrent versions S3 will retain. If there are this many more recent noncurrent versions, S3 will take the associated action. For more information about noncurrent versions, see [Lifecycle configuration elements](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html) in the *Amazon S3 User Guide*.",
// "type": "integer"
// },
// "NoncurrentDays": {
// "description": "Specifies the number of days an object is noncurrent before S3 can perform the associated action. For information about the noncurrent days calculations, see [How Amazon S3 Calculates When an Object Became Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the *Amazon S3 User Guide*.",
// "type": "integer"
// }
// },
// "required": [
// "NoncurrentDays"
// ],
// "type": "object"
// },
// "NoncurrentVersionExpirationInDays": {
// "description": "(Deprecated.) For buckets with versioning enabled (or suspended), specifies the time, in days, between when a new version of the object is uploaded to the bucket and when old versions of the object expire. When object versions expire, Amazon S3 permanently deletes them. If you specify a transition and expiration time, the expiration time must be later than the transition time.",
// "type": "integer"
// },
// "NoncurrentVersionTransition": {
// "additionalProperties": false,
// "description": "(Deprecated.) For buckets with versioning enabled (or suspended), specifies when non-current objects transition to a specified storage class. If you specify a transition and expiration time, the expiration time must be later than the transition time. If you specify this property, don't specify the ``NoncurrentVersionTransitions`` property.",
// "properties": {
// "NewerNoncurrentVersions": {
// "description": "Specifies how many noncurrent versions S3 will retain. If there are this many more recent noncurrent versions, S3 will take the associated action. For more information about noncurrent versions, see [Lifecycle configuration elements](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html) in the *Amazon S3 User Guide*.",
// "type": "integer"
// },
// "StorageClass": {
// "description": "The class of storage used to store the object.",
// "enum": [
// "DEEP_ARCHIVE",
// "GLACIER",
// "Glacier",
// "GLACIER_IR",
// "INTELLIGENT_TIERING",
// "ONEZONE_IA",
// "STANDARD_IA"
// ],
// "type": "string"
// },
// "TransitionInDays": {
// "description": "Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see [How Amazon S3 Calculates How Long an Object Has Been Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the *Amazon S3 User Guide*.",
// "type": "integer"
// }
// },
// "required": [
// "StorageClass",
// "TransitionInDays"
// ],
// "type": "object"
// },
// "NoncurrentVersionTransitions": {
// "description": "For buckets with versioning enabled (or suspended), one or more transition rules that specify when non-current objects transition to a specified storage class. If you specify a transition and expiration time, the expiration time must be later than the transition time. If you specify this property, don't specify the ``NoncurrentVersionTransition`` property.",
// "insertionOrder": true,
// "items": {
// "additionalProperties": false,
// "description": "Container for the transition rule that describes when noncurrent objects transition to the ``STANDARD_IA``, ``ONEZONE_IA``, ``INTELLIGENT_TIERING``, ``GLACIER_IR``, ``GLACIER``, or ``DEEP_ARCHIVE`` storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to the ``STANDARD_IA``, ``ONEZONE_IA``, ``INTELLIGENT_TIERING``, ``GLACIER_IR``, ``GLACIER``, or ``DEEP_ARCHIVE`` storage class at a specific period in the object's lifetime. If you specify this property, don't specify the ``NoncurrentVersionTransitions`` property.",
// "properties": {
// "NewerNoncurrentVersions": {
// "description": "Specifies how many noncurrent versions S3 will retain. If there are this many more recent noncurrent versions, S3 will take the associated action. For more information about noncurrent versions, see [Lifecycle configuration elements](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html) in the *Amazon S3 User Guide*.",
// "type": "integer"
// },
// "StorageClass": {
// "description": "The class of storage used to store the object.",
// "enum": [
// "DEEP_ARCHIVE",
// "GLACIER",
// "Glacier",
// "GLACIER_IR",
// "INTELLIGENT_TIERING",
// "ONEZONE_IA",
// "STANDARD_IA"
// ],
// "type": "string"
// },
// "TransitionInDays": {
// "description": "Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see [How Amazon S3 Calculates How Long an Object Has Been Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the *Amazon S3 User Guide*.",
// "type": "integer"
// }