rustack-s3-model 0.9.0

Rustack S3 data model types and structures
Documentation
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
//! Auto-generated from AWS S3 Smithy model. DO NOT EDIT.

use crate::types::{
    AccelerateConfiguration, AccessControlPolicy, BucketCannedACL, BucketLifecycleConfiguration,
    BucketLoggingStatus, CORSConfiguration, ChecksumAlgorithm, NotificationConfiguration,
    ObjectAttributes, ObjectCannedACL, ObjectLockConfiguration, ObjectLockLegalHold,
    ObjectLockRetention, OwnershipControls, PublicAccessBlockConfiguration, RequestPayer,
    RequestPaymentConfiguration, ServerSideEncryptionConfiguration, Tagging,
    TransitionDefaultMinimumObjectSize, VersioningConfiguration, WebsiteConfiguration,
};

/// S3 DeleteBucketCorsInput.
#[derive(Debug, Clone, Default)]
pub struct DeleteBucketCorsInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 DeleteBucketEncryptionInput.
#[derive(Debug, Clone, Default)]
pub struct DeleteBucketEncryptionInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 DeleteBucketLifecycleInput.
#[derive(Debug, Clone, Default)]
pub struct DeleteBucketLifecycleInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 DeleteBucketOwnershipControlsInput.
#[derive(Debug, Clone, Default)]
pub struct DeleteBucketOwnershipControlsInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 DeleteBucketPolicyInput.
#[derive(Debug, Clone, Default)]
pub struct DeleteBucketPolicyInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 DeleteBucketTaggingInput.
#[derive(Debug, Clone, Default)]
pub struct DeleteBucketTaggingInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 DeleteBucketWebsiteInput.
#[derive(Debug, Clone, Default)]
pub struct DeleteBucketWebsiteInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 DeleteObjectTaggingInput.
#[derive(Debug, Clone, Default)]
pub struct DeleteObjectTaggingInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP label (URI path).
    pub key: String,
    /// HTTP query: `versionId`.
    pub version_id: Option<String>,
}

/// S3 DeletePublicAccessBlockInput.
#[derive(Debug, Clone, Default)]
pub struct DeletePublicAccessBlockInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 GetBucketAccelerateConfigurationInput.
#[derive(Debug, Clone, Default)]
pub struct GetBucketAccelerateConfigurationInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP header: `x-amz-request-payer`.
    pub request_payer: Option<RequestPayer>,
}

/// S3 GetBucketAclInput.
#[derive(Debug, Clone, Default)]
pub struct GetBucketAclInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 GetBucketCorsInput.
#[derive(Debug, Clone, Default)]
pub struct GetBucketCorsInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 GetBucketEncryptionInput.
#[derive(Debug, Clone, Default)]
pub struct GetBucketEncryptionInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 GetBucketLifecycleConfigurationInput.
#[derive(Debug, Clone, Default)]
pub struct GetBucketLifecycleConfigurationInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 GetBucketLoggingInput.
#[derive(Debug, Clone, Default)]
pub struct GetBucketLoggingInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 GetBucketNotificationConfigurationInput.
#[derive(Debug, Clone, Default)]
pub struct GetBucketNotificationConfigurationInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 GetBucketOwnershipControlsInput.
#[derive(Debug, Clone, Default)]
pub struct GetBucketOwnershipControlsInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 GetBucketPolicyInput.
#[derive(Debug, Clone, Default)]
pub struct GetBucketPolicyInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 GetBucketPolicyStatusInput.
#[derive(Debug, Clone, Default)]
pub struct GetBucketPolicyStatusInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 GetBucketRequestPaymentInput.
#[derive(Debug, Clone, Default)]
pub struct GetBucketRequestPaymentInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 GetBucketTaggingInput.
#[derive(Debug, Clone, Default)]
pub struct GetBucketTaggingInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 GetBucketVersioningInput.
#[derive(Debug, Clone, Default)]
pub struct GetBucketVersioningInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 GetBucketWebsiteInput.
#[derive(Debug, Clone, Default)]
pub struct GetBucketWebsiteInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 GetObjectAclInput.
#[derive(Debug, Clone, Default)]
pub struct GetObjectAclInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP label (URI path).
    pub key: String,
    /// HTTP header: `x-amz-request-payer`.
    pub request_payer: Option<RequestPayer>,
    /// HTTP query: `versionId`.
    pub version_id: Option<String>,
}

/// S3 GetObjectAttributesInput.
#[derive(Debug, Clone, Default)]
pub struct GetObjectAttributesInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP label (URI path).
    pub key: String,
    /// HTTP header: `x-amz-max-parts`.
    pub max_parts: Option<i32>,
    /// HTTP header: `x-amz-object-attributes`.
    pub object_attributes: Vec<ObjectAttributes>,
    /// HTTP header: `x-amz-part-number-marker`.
    pub part_number_marker: Option<String>,
    /// HTTP header: `x-amz-request-payer`.
    pub request_payer: Option<RequestPayer>,
    /// HTTP header: `x-amz-server-side-encryption-customer-algorithm`.
    pub sse_customer_algorithm: Option<String>,
    /// HTTP header: `x-amz-server-side-encryption-customer-key`.
    pub sse_customer_key: Option<String>,
    /// HTTP header: `x-amz-server-side-encryption-customer-key-MD5`.
    pub sse_customer_key_md5: Option<String>,
    /// HTTP query: `versionId`.
    pub version_id: Option<String>,
}

/// S3 GetObjectLegalHoldInput.
#[derive(Debug, Clone, Default)]
pub struct GetObjectLegalHoldInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP label (URI path).
    pub key: String,
    /// HTTP header: `x-amz-request-payer`.
    pub request_payer: Option<RequestPayer>,
    /// HTTP query: `versionId`.
    pub version_id: Option<String>,
}

/// S3 GetObjectLockConfigurationInput.
#[derive(Debug, Clone, Default)]
pub struct GetObjectLockConfigurationInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 GetObjectRetentionInput.
#[derive(Debug, Clone, Default)]
pub struct GetObjectRetentionInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP label (URI path).
    pub key: String,
    /// HTTP header: `x-amz-request-payer`.
    pub request_payer: Option<RequestPayer>,
    /// HTTP query: `versionId`.
    pub version_id: Option<String>,
}

/// S3 GetObjectTaggingInput.
#[derive(Debug, Clone, Default)]
pub struct GetObjectTaggingInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP label (URI path).
    pub key: String,
    /// HTTP header: `x-amz-request-payer`.
    pub request_payer: Option<RequestPayer>,
    /// HTTP query: `versionId`.
    pub version_id: Option<String>,
}

/// S3 GetPublicAccessBlockInput.
#[derive(Debug, Clone, Default)]
pub struct GetPublicAccessBlockInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 PutBucketAccelerateConfigurationInput.
#[derive(Debug, Clone, Default)]
pub struct PutBucketAccelerateConfigurationInput {
    /// HTTP payload body.
    pub accelerate_configuration: AccelerateConfiguration,
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 PutBucketAclInput.
#[derive(Debug, Clone, Default)]
pub struct PutBucketAclInput {
    /// HTTP header: `x-amz-acl`.
    pub acl: Option<BucketCannedACL>,
    /// HTTP payload body.
    pub access_control_policy: Option<AccessControlPolicy>,
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP header: `x-amz-grant-full-control`.
    pub grant_full_control: Option<String>,
    /// HTTP header: `x-amz-grant-read`.
    pub grant_read: Option<String>,
    /// HTTP header: `x-amz-grant-read-acp`.
    pub grant_read_acp: Option<String>,
    /// HTTP header: `x-amz-grant-write`.
    pub grant_write: Option<String>,
    /// HTTP header: `x-amz-grant-write-acp`.
    pub grant_write_acp: Option<String>,
}

/// S3 PutBucketCorsInput.
#[derive(Debug, Clone, Default)]
pub struct PutBucketCorsInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP payload body.
    pub cors_configuration: CORSConfiguration,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 PutBucketEncryptionInput.
#[derive(Debug, Clone, Default)]
pub struct PutBucketEncryptionInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP payload body.
    pub server_side_encryption_configuration: ServerSideEncryptionConfiguration,
}

/// S3 PutBucketLifecycleConfigurationInput.
#[derive(Debug, Clone, Default)]
pub struct PutBucketLifecycleConfigurationInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP payload body.
    pub lifecycle_configuration: Option<BucketLifecycleConfiguration>,
    /// HTTP header: `x-amz-transition-default-minimum-object-size`.
    pub transition_default_minimum_object_size: Option<TransitionDefaultMinimumObjectSize>,
}

/// S3 PutBucketLoggingInput.
#[derive(Debug, Clone, Default)]
pub struct PutBucketLoggingInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP payload body.
    pub bucket_logging_status: BucketLoggingStatus,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
}

/// S3 PutBucketNotificationConfigurationInput.
#[derive(Debug, Clone, Default)]
pub struct PutBucketNotificationConfigurationInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP payload body.
    pub notification_configuration: NotificationConfiguration,
    /// HTTP header: `x-amz-skip-destination-validation`.
    pub skip_destination_validation: Option<bool>,
}

/// S3 PutBucketOwnershipControlsInput.
#[derive(Debug, Clone, Default)]
pub struct PutBucketOwnershipControlsInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP payload body.
    pub ownership_controls: OwnershipControls,
}

/// S3 PutBucketPolicyInput.
#[derive(Debug, Clone, Default)]
pub struct PutBucketPolicyInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `x-amz-confirm-remove-self-bucket-access`.
    pub confirm_remove_self_bucket_access: Option<bool>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP payload body.
    pub policy: String,
}

/// S3 PutBucketRequestPaymentInput.
#[derive(Debug, Clone, Default)]
pub struct PutBucketRequestPaymentInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP payload body.
    pub request_payment_configuration: RequestPaymentConfiguration,
}

/// S3 PutBucketTaggingInput.
#[derive(Debug, Clone, Default)]
pub struct PutBucketTaggingInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP payload body.
    pub tagging: Tagging,
}

/// S3 PutBucketVersioningInput.
#[derive(Debug, Clone, Default)]
pub struct PutBucketVersioningInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP header: `x-amz-mfa`.
    pub mfa: Option<String>,
    /// HTTP payload body.
    pub versioning_configuration: VersioningConfiguration,
}

/// S3 PutBucketWebsiteInput.
#[derive(Debug, Clone, Default)]
pub struct PutBucketWebsiteInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP payload body.
    pub website_configuration: WebsiteConfiguration,
}

/// S3 PutObjectAclInput.
#[derive(Debug, Clone, Default)]
pub struct PutObjectAclInput {
    /// HTTP header: `x-amz-acl`.
    pub acl: Option<ObjectCannedACL>,
    /// HTTP payload body.
    pub access_control_policy: Option<AccessControlPolicy>,
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP header: `x-amz-grant-full-control`.
    pub grant_full_control: Option<String>,
    /// HTTP header: `x-amz-grant-read`.
    pub grant_read: Option<String>,
    /// HTTP header: `x-amz-grant-read-acp`.
    pub grant_read_acp: Option<String>,
    /// HTTP header: `x-amz-grant-write`.
    pub grant_write: Option<String>,
    /// HTTP header: `x-amz-grant-write-acp`.
    pub grant_write_acp: Option<String>,
    /// HTTP label (URI path).
    pub key: String,
    /// HTTP header: `x-amz-request-payer`.
    pub request_payer: Option<RequestPayer>,
    /// HTTP query: `versionId`.
    pub version_id: Option<String>,
}

/// S3 PutObjectLegalHoldInput.
#[derive(Debug, Clone, Default)]
pub struct PutObjectLegalHoldInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP label (URI path).
    pub key: String,
    /// HTTP payload body.
    pub legal_hold: Option<ObjectLockLegalHold>,
    /// HTTP header: `x-amz-request-payer`.
    pub request_payer: Option<RequestPayer>,
    /// HTTP query: `versionId`.
    pub version_id: Option<String>,
}

/// S3 PutObjectLockConfigurationInput.
#[derive(Debug, Clone, Default)]
pub struct PutObjectLockConfigurationInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP payload body.
    pub object_lock_configuration: Option<ObjectLockConfiguration>,
    /// HTTP header: `x-amz-request-payer`.
    pub request_payer: Option<RequestPayer>,
    /// HTTP header: `x-amz-bucket-object-lock-token`.
    pub token: Option<String>,
}

/// S3 PutObjectRetentionInput.
#[derive(Debug, Clone, Default)]
pub struct PutObjectRetentionInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-bypass-governance-retention`.
    pub bypass_governance_retention: Option<bool>,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP label (URI path).
    pub key: String,
    /// HTTP header: `x-amz-request-payer`.
    pub request_payer: Option<RequestPayer>,
    /// HTTP payload body.
    pub retention: Option<ObjectLockRetention>,
    /// HTTP query: `versionId`.
    pub version_id: Option<String>,
}

/// S3 PutObjectTaggingInput.
#[derive(Debug, Clone, Default)]
pub struct PutObjectTaggingInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP label (URI path).
    pub key: String,
    /// HTTP header: `x-amz-request-payer`.
    pub request_payer: Option<RequestPayer>,
    /// HTTP payload body.
    pub tagging: Tagging,
    /// HTTP query: `versionId`.
    pub version_id: Option<String>,
}

/// S3 PutPublicAccessBlockInput.
#[derive(Debug, Clone, Default)]
pub struct PutPublicAccessBlockInput {
    /// HTTP label (URI path).
    pub bucket: String,
    /// HTTP header: `x-amz-sdk-checksum-algorithm`.
    pub checksum_algorithm: Option<ChecksumAlgorithm>,
    /// HTTP header: `Content-MD5`.
    pub content_md5: Option<String>,
    /// HTTP header: `x-amz-expected-bucket-owner`.
    pub expected_bucket_owner: Option<String>,
    /// HTTP payload body.
    pub public_access_block_configuration: PublicAccessBlockConfiguration,
}