ominfra 0.0.0.dev198__py3-none-any.whl → 0.0.0.dev200__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- ominfra/clouds/aws/models/__init__.py +0 -0
- ominfra/clouds/aws/models/base.py +101 -0
- ominfra/clouds/aws/models/gen/__init__.py +0 -0
- ominfra/clouds/aws/models/gen/__main__.py +4 -0
- ominfra/clouds/aws/models/gen/cli.py +130 -0
- ominfra/clouds/aws/models/gen/gen.py +440 -0
- ominfra/clouds/aws/models/services/__init__.py +0 -0
- ominfra/clouds/aws/models/services/ec2.py +3222 -0
- ominfra/clouds/aws/models/services/s3.py +869 -0
- ominfra/clouds/aws/models/services/services.toml +16 -0
- {ominfra-0.0.0.dev198.dist-info → ominfra-0.0.0.dev200.dist-info}/METADATA +5 -5
- {ominfra-0.0.0.dev198.dist-info → ominfra-0.0.0.dev200.dist-info}/RECORD +16 -6
- {ominfra-0.0.0.dev198.dist-info → ominfra-0.0.0.dev200.dist-info}/WHEEL +1 -1
- {ominfra-0.0.0.dev198.dist-info → ominfra-0.0.0.dev200.dist-info}/LICENSE +0 -0
- {ominfra-0.0.0.dev198.dist-info → ominfra-0.0.0.dev200.dist-info}/entry_points.txt +0 -0
- {ominfra-0.0.0.dev198.dist-info → ominfra-0.0.0.dev200.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,869 @@
|
|
1
|
+
# flake8: noqa: E501
|
2
|
+
# ruff: noqa: S105
|
3
|
+
# fmt: off
|
4
|
+
import dataclasses as _dc # noqa
|
5
|
+
import enum as _enum # noqa
|
6
|
+
import typing as _ta # noqa
|
7
|
+
|
8
|
+
from .. import base as _base # noqa
|
9
|
+
|
10
|
+
|
11
|
+
##
|
12
|
+
|
13
|
+
|
14
|
+
AcceptRanges = _ta.NewType('AcceptRanges', str)
|
15
|
+
|
16
|
+
AccountId = _ta.NewType('AccountId', str)
|
17
|
+
|
18
|
+
Body = _ta.NewType('Body', bytes)
|
19
|
+
|
20
|
+
BucketKeyEnabled = _ta.NewType('BucketKeyEnabled', bool)
|
21
|
+
|
22
|
+
BucketName = _ta.NewType('BucketName', str)
|
23
|
+
|
24
|
+
BypassGovernanceRetention = _ta.NewType('BypassGovernanceRetention', bool)
|
25
|
+
|
26
|
+
CacheControl = _ta.NewType('CacheControl', str)
|
27
|
+
|
28
|
+
|
29
|
+
class ChecksumAlgorithm(_enum.Enum):
|
30
|
+
CRC32 = 'CRC32'
|
31
|
+
CRC32C = 'CRC32C'
|
32
|
+
SHA1 = 'SHA1'
|
33
|
+
SHA256 = 'SHA256'
|
34
|
+
|
35
|
+
|
36
|
+
ChecksumCRC32 = _ta.NewType('ChecksumCRC32', str)
|
37
|
+
|
38
|
+
ChecksumCRC32C = _ta.NewType('ChecksumCRC32C', str)
|
39
|
+
|
40
|
+
|
41
|
+
class ChecksumMode(_enum.Enum):
|
42
|
+
ENABLED = 'ENABLED'
|
43
|
+
|
44
|
+
|
45
|
+
ChecksumSHA1 = _ta.NewType('ChecksumSHA1', str)
|
46
|
+
|
47
|
+
ChecksumSHA256 = _ta.NewType('ChecksumSHA256', str)
|
48
|
+
|
49
|
+
ContentDisposition = _ta.NewType('ContentDisposition', str)
|
50
|
+
|
51
|
+
ContentEncoding = _ta.NewType('ContentEncoding', str)
|
52
|
+
|
53
|
+
ContentLanguage = _ta.NewType('ContentLanguage', str)
|
54
|
+
|
55
|
+
ContentLength = _ta.NewType('ContentLength', int)
|
56
|
+
|
57
|
+
ContentMD5 = _ta.NewType('ContentMD5', str)
|
58
|
+
|
59
|
+
ContentRange = _ta.NewType('ContentRange', str)
|
60
|
+
|
61
|
+
ContentType = _ta.NewType('ContentType', str)
|
62
|
+
|
63
|
+
DeleteMarker = _ta.NewType('DeleteMarker', bool)
|
64
|
+
|
65
|
+
ETag = _ta.NewType('ETag', str)
|
66
|
+
|
67
|
+
|
68
|
+
@_dc.dataclass(frozen=True)
|
69
|
+
class EncryptionTypeMismatch(
|
70
|
+
_base.Shape,
|
71
|
+
shape_name='EncryptionTypeMismatch',
|
72
|
+
):
|
73
|
+
pass
|
74
|
+
|
75
|
+
|
76
|
+
Expiration = _ta.NewType('Expiration', str)
|
77
|
+
|
78
|
+
Expires = _ta.NewType('Expires', _base.Timestamp)
|
79
|
+
|
80
|
+
GrantFullControl = _ta.NewType('GrantFullControl', str)
|
81
|
+
|
82
|
+
GrantRead = _ta.NewType('GrantRead', str)
|
83
|
+
|
84
|
+
GrantReadACP = _ta.NewType('GrantReadACP', str)
|
85
|
+
|
86
|
+
GrantWriteACP = _ta.NewType('GrantWriteACP', str)
|
87
|
+
|
88
|
+
IfMatch = _ta.NewType('IfMatch', str)
|
89
|
+
|
90
|
+
IfMatchLastModifiedTime = _ta.NewType('IfMatchLastModifiedTime', _base.Timestamp)
|
91
|
+
|
92
|
+
IfMatchSize = _ta.NewType('IfMatchSize', int)
|
93
|
+
|
94
|
+
IfModifiedSince = _ta.NewType('IfModifiedSince', _base.Timestamp)
|
95
|
+
|
96
|
+
IfNoneMatch = _ta.NewType('IfNoneMatch', str)
|
97
|
+
|
98
|
+
IfUnmodifiedSince = _ta.NewType('IfUnmodifiedSince', _base.Timestamp)
|
99
|
+
|
100
|
+
|
101
|
+
class IntelligentTieringAccessTier(_enum.Enum):
|
102
|
+
ARCHIVE_ACCESS = 'ARCHIVE_ACCESS'
|
103
|
+
DEEP_ARCHIVE_ACCESS = 'DEEP_ARCHIVE_ACCESS'
|
104
|
+
|
105
|
+
|
106
|
+
@_dc.dataclass(frozen=True)
|
107
|
+
class InvalidRequest(
|
108
|
+
_base.Shape,
|
109
|
+
shape_name='InvalidRequest',
|
110
|
+
):
|
111
|
+
pass
|
112
|
+
|
113
|
+
|
114
|
+
@_dc.dataclass(frozen=True)
|
115
|
+
class InvalidWriteOffset(
|
116
|
+
_base.Shape,
|
117
|
+
shape_name='InvalidWriteOffset',
|
118
|
+
):
|
119
|
+
pass
|
120
|
+
|
121
|
+
|
122
|
+
LastModified = _ta.NewType('LastModified', _base.Timestamp)
|
123
|
+
|
124
|
+
MFA = _ta.NewType('MFA', str)
|
125
|
+
|
126
|
+
MetadataKey = _ta.NewType('MetadataKey', str)
|
127
|
+
|
128
|
+
MetadataValue = _ta.NewType('MetadataValue', str)
|
129
|
+
|
130
|
+
MissingMeta = _ta.NewType('MissingMeta', int)
|
131
|
+
|
132
|
+
|
133
|
+
@_dc.dataclass(frozen=True)
|
134
|
+
class NoSuchKey(
|
135
|
+
_base.Shape,
|
136
|
+
shape_name='NoSuchKey',
|
137
|
+
):
|
138
|
+
pass
|
139
|
+
|
140
|
+
|
141
|
+
class ObjectCannedACL(_enum.Enum):
|
142
|
+
PRIVATE = 'private'
|
143
|
+
PUBLIC_READ = 'public-read'
|
144
|
+
PUBLIC_READ_WRITE = 'public-read-write'
|
145
|
+
AUTHENTICATED_READ = 'authenticated-read'
|
146
|
+
AWS_EXEC_READ = 'aws-exec-read'
|
147
|
+
BUCKET_OWNER_READ = 'bucket-owner-read'
|
148
|
+
BUCKET_OWNER_FULL_CONTROL = 'bucket-owner-full-control'
|
149
|
+
|
150
|
+
|
151
|
+
ObjectKey = _ta.NewType('ObjectKey', str)
|
152
|
+
|
153
|
+
|
154
|
+
class ObjectLockLegalHoldStatus(_enum.Enum):
|
155
|
+
ON = 'ON'
|
156
|
+
OFF = 'OFF'
|
157
|
+
|
158
|
+
|
159
|
+
class ObjectLockMode(_enum.Enum):
|
160
|
+
GOVERNANCE = 'GOVERNANCE'
|
161
|
+
COMPLIANCE = 'COMPLIANCE'
|
162
|
+
|
163
|
+
|
164
|
+
ObjectLockRetainUntilDate = _ta.NewType('ObjectLockRetainUntilDate', _base.Timestamp)
|
165
|
+
|
166
|
+
ObjectVersionId = _ta.NewType('ObjectVersionId', str)
|
167
|
+
|
168
|
+
PartNumber = _ta.NewType('PartNumber', int)
|
169
|
+
|
170
|
+
PartsCount = _ta.NewType('PartsCount', int)
|
171
|
+
|
172
|
+
Range = _ta.NewType('Range', str)
|
173
|
+
|
174
|
+
|
175
|
+
class ReplicationStatus(_enum.Enum):
|
176
|
+
COMPLETE = 'COMPLETE'
|
177
|
+
PENDING = 'PENDING'
|
178
|
+
FAILED = 'FAILED'
|
179
|
+
REPLICA = 'REPLICA'
|
180
|
+
COMPLETED = 'COMPLETED'
|
181
|
+
|
182
|
+
|
183
|
+
class RequestCharged(_enum.Enum):
|
184
|
+
REQUESTER = 'requester'
|
185
|
+
|
186
|
+
|
187
|
+
class RequestPayer(_enum.Enum):
|
188
|
+
REQUESTER = 'requester'
|
189
|
+
|
190
|
+
|
191
|
+
ResponseCacheControl = _ta.NewType('ResponseCacheControl', str)
|
192
|
+
|
193
|
+
ResponseContentDisposition = _ta.NewType('ResponseContentDisposition', str)
|
194
|
+
|
195
|
+
ResponseContentEncoding = _ta.NewType('ResponseContentEncoding', str)
|
196
|
+
|
197
|
+
ResponseContentLanguage = _ta.NewType('ResponseContentLanguage', str)
|
198
|
+
|
199
|
+
ResponseContentType = _ta.NewType('ResponseContentType', str)
|
200
|
+
|
201
|
+
ResponseExpires = _ta.NewType('ResponseExpires', _base.Timestamp)
|
202
|
+
|
203
|
+
Restore = _ta.NewType('Restore', str)
|
204
|
+
|
205
|
+
SSECustomerAlgorithm = _ta.NewType('SSECustomerAlgorithm', str)
|
206
|
+
|
207
|
+
SSECustomerKey = _ta.NewType('SSECustomerKey', str)
|
208
|
+
|
209
|
+
SSECustomerKeyMD5 = _ta.NewType('SSECustomerKeyMD5', str)
|
210
|
+
|
211
|
+
SSEKMSEncryptionContext = _ta.NewType('SSEKMSEncryptionContext', str)
|
212
|
+
|
213
|
+
SSEKMSKeyId = _ta.NewType('SSEKMSKeyId', str)
|
214
|
+
|
215
|
+
|
216
|
+
class ServerSideEncryption(_enum.Enum):
|
217
|
+
AES256 = 'AES256'
|
218
|
+
AWS_KMS = 'aws:kms'
|
219
|
+
AWS_KMS_DSSE = 'aws:kms:dsse'
|
220
|
+
|
221
|
+
|
222
|
+
Size = _ta.NewType('Size', int)
|
223
|
+
|
224
|
+
|
225
|
+
class StorageClass(_enum.Enum):
|
226
|
+
STANDARD = 'STANDARD'
|
227
|
+
REDUCED_REDUNDANCY = 'REDUCED_REDUNDANCY'
|
228
|
+
STANDARD_IA = 'STANDARD_IA'
|
229
|
+
ONEZONE_IA = 'ONEZONE_IA'
|
230
|
+
INTELLIGENT_TIERING = 'INTELLIGENT_TIERING'
|
231
|
+
GLACIER = 'GLACIER'
|
232
|
+
DEEP_ARCHIVE = 'DEEP_ARCHIVE'
|
233
|
+
OUTPOSTS = 'OUTPOSTS'
|
234
|
+
GLACIER_IR = 'GLACIER_IR'
|
235
|
+
SNOW = 'SNOW'
|
236
|
+
EXPRESS_ONEZONE = 'EXPRESS_ONEZONE'
|
237
|
+
|
238
|
+
|
239
|
+
TagCount = _ta.NewType('TagCount', int)
|
240
|
+
|
241
|
+
TaggingHeader = _ta.NewType('TaggingHeader', str)
|
242
|
+
|
243
|
+
|
244
|
+
@_dc.dataclass(frozen=True)
|
245
|
+
class TooManyParts(
|
246
|
+
_base.Shape,
|
247
|
+
shape_name='TooManyParts',
|
248
|
+
):
|
249
|
+
pass
|
250
|
+
|
251
|
+
|
252
|
+
WebsiteRedirectLocation = _ta.NewType('WebsiteRedirectLocation', str)
|
253
|
+
|
254
|
+
WriteOffsetBytes = _ta.NewType('WriteOffsetBytes', int)
|
255
|
+
|
256
|
+
|
257
|
+
@_dc.dataclass(frozen=True)
|
258
|
+
class DeleteObjectOutput(
|
259
|
+
_base.Shape,
|
260
|
+
shape_name='DeleteObjectOutput',
|
261
|
+
):
|
262
|
+
delete_marker: DeleteMarker = _dc.field(metadata=_base.field_metadata(
|
263
|
+
member_name='DeleteMarker',
|
264
|
+
shape_name='DeleteMarker',
|
265
|
+
))
|
266
|
+
version_id: ObjectVersionId = _dc.field(metadata=_base.field_metadata(
|
267
|
+
member_name='VersionId',
|
268
|
+
shape_name='ObjectVersionId',
|
269
|
+
))
|
270
|
+
request_charged: RequestCharged = _dc.field(metadata=_base.field_metadata(
|
271
|
+
member_name='RequestCharged',
|
272
|
+
shape_name='RequestCharged',
|
273
|
+
))
|
274
|
+
|
275
|
+
|
276
|
+
@_dc.dataclass(frozen=True)
|
277
|
+
class DeleteObjectRequest(
|
278
|
+
_base.Shape,
|
279
|
+
shape_name='DeleteObjectRequest',
|
280
|
+
):
|
281
|
+
bucket: BucketName = _dc.field(metadata=_base.field_metadata(
|
282
|
+
member_name='Bucket',
|
283
|
+
shape_name='BucketName',
|
284
|
+
))
|
285
|
+
key: ObjectKey = _dc.field(metadata=_base.field_metadata(
|
286
|
+
member_name='Key',
|
287
|
+
shape_name='ObjectKey',
|
288
|
+
))
|
289
|
+
mfa: MFA = _dc.field(metadata=_base.field_metadata(
|
290
|
+
member_name='MFA',
|
291
|
+
shape_name='MFA',
|
292
|
+
))
|
293
|
+
version_id: ObjectVersionId = _dc.field(metadata=_base.field_metadata(
|
294
|
+
member_name='VersionId',
|
295
|
+
shape_name='ObjectVersionId',
|
296
|
+
))
|
297
|
+
request_payer: RequestPayer = _dc.field(metadata=_base.field_metadata(
|
298
|
+
member_name='RequestPayer',
|
299
|
+
shape_name='RequestPayer',
|
300
|
+
))
|
301
|
+
bypass_governance_retention: BypassGovernanceRetention = _dc.field(metadata=_base.field_metadata(
|
302
|
+
member_name='BypassGovernanceRetention',
|
303
|
+
shape_name='BypassGovernanceRetention',
|
304
|
+
))
|
305
|
+
expected_bucket_owner: AccountId = _dc.field(metadata=_base.field_metadata(
|
306
|
+
member_name='ExpectedBucketOwner',
|
307
|
+
shape_name='AccountId',
|
308
|
+
))
|
309
|
+
if_match: IfMatch = _dc.field(metadata=_base.field_metadata(
|
310
|
+
member_name='IfMatch',
|
311
|
+
shape_name='IfMatch',
|
312
|
+
))
|
313
|
+
if_match_last_modified_time: IfMatchLastModifiedTime = _dc.field(metadata=_base.field_metadata(
|
314
|
+
member_name='IfMatchLastModifiedTime',
|
315
|
+
shape_name='IfMatchLastModifiedTime',
|
316
|
+
))
|
317
|
+
if_match_size: IfMatchSize = _dc.field(metadata=_base.field_metadata(
|
318
|
+
member_name='IfMatchSize',
|
319
|
+
shape_name='IfMatchSize',
|
320
|
+
))
|
321
|
+
|
322
|
+
|
323
|
+
@_dc.dataclass(frozen=True)
|
324
|
+
class GetObjectRequest(
|
325
|
+
_base.Shape,
|
326
|
+
shape_name='GetObjectRequest',
|
327
|
+
):
|
328
|
+
bucket: BucketName = _dc.field(metadata=_base.field_metadata(
|
329
|
+
member_name='Bucket',
|
330
|
+
shape_name='BucketName',
|
331
|
+
))
|
332
|
+
if_match: IfMatch = _dc.field(metadata=_base.field_metadata(
|
333
|
+
member_name='IfMatch',
|
334
|
+
shape_name='IfMatch',
|
335
|
+
))
|
336
|
+
if_modified_since: IfModifiedSince = _dc.field(metadata=_base.field_metadata(
|
337
|
+
member_name='IfModifiedSince',
|
338
|
+
shape_name='IfModifiedSince',
|
339
|
+
))
|
340
|
+
if_none_match: IfNoneMatch = _dc.field(metadata=_base.field_metadata(
|
341
|
+
member_name='IfNoneMatch',
|
342
|
+
shape_name='IfNoneMatch',
|
343
|
+
))
|
344
|
+
if_unmodified_since: IfUnmodifiedSince = _dc.field(metadata=_base.field_metadata(
|
345
|
+
member_name='IfUnmodifiedSince',
|
346
|
+
shape_name='IfUnmodifiedSince',
|
347
|
+
))
|
348
|
+
key: ObjectKey = _dc.field(metadata=_base.field_metadata(
|
349
|
+
member_name='Key',
|
350
|
+
shape_name='ObjectKey',
|
351
|
+
))
|
352
|
+
range: Range = _dc.field(metadata=_base.field_metadata(
|
353
|
+
member_name='Range',
|
354
|
+
shape_name='Range',
|
355
|
+
))
|
356
|
+
response_cache_control: ResponseCacheControl = _dc.field(metadata=_base.field_metadata(
|
357
|
+
member_name='ResponseCacheControl',
|
358
|
+
shape_name='ResponseCacheControl',
|
359
|
+
))
|
360
|
+
response_content_disposition: ResponseContentDisposition = _dc.field(metadata=_base.field_metadata(
|
361
|
+
member_name='ResponseContentDisposition',
|
362
|
+
shape_name='ResponseContentDisposition',
|
363
|
+
))
|
364
|
+
response_content_encoding: ResponseContentEncoding = _dc.field(metadata=_base.field_metadata(
|
365
|
+
member_name='ResponseContentEncoding',
|
366
|
+
shape_name='ResponseContentEncoding',
|
367
|
+
))
|
368
|
+
response_content_language: ResponseContentLanguage = _dc.field(metadata=_base.field_metadata(
|
369
|
+
member_name='ResponseContentLanguage',
|
370
|
+
shape_name='ResponseContentLanguage',
|
371
|
+
))
|
372
|
+
response_content_type: ResponseContentType = _dc.field(metadata=_base.field_metadata(
|
373
|
+
member_name='ResponseContentType',
|
374
|
+
shape_name='ResponseContentType',
|
375
|
+
))
|
376
|
+
response_expires: ResponseExpires = _dc.field(metadata=_base.field_metadata(
|
377
|
+
member_name='ResponseExpires',
|
378
|
+
shape_name='ResponseExpires',
|
379
|
+
))
|
380
|
+
version_id: ObjectVersionId = _dc.field(metadata=_base.field_metadata(
|
381
|
+
member_name='VersionId',
|
382
|
+
shape_name='ObjectVersionId',
|
383
|
+
))
|
384
|
+
sse_customer_algorithm: SSECustomerAlgorithm = _dc.field(metadata=_base.field_metadata(
|
385
|
+
member_name='SSECustomerAlgorithm',
|
386
|
+
shape_name='SSECustomerAlgorithm',
|
387
|
+
))
|
388
|
+
sse_customer_key: SSECustomerKey = _dc.field(metadata=_base.field_metadata(
|
389
|
+
member_name='SSECustomerKey',
|
390
|
+
shape_name='SSECustomerKey',
|
391
|
+
))
|
392
|
+
sse_customer_key_md5: SSECustomerKeyMD5 = _dc.field(metadata=_base.field_metadata(
|
393
|
+
member_name='SSECustomerKeyMD5',
|
394
|
+
shape_name='SSECustomerKeyMD5',
|
395
|
+
))
|
396
|
+
request_payer: RequestPayer = _dc.field(metadata=_base.field_metadata(
|
397
|
+
member_name='RequestPayer',
|
398
|
+
shape_name='RequestPayer',
|
399
|
+
))
|
400
|
+
part_number: PartNumber = _dc.field(metadata=_base.field_metadata(
|
401
|
+
member_name='PartNumber',
|
402
|
+
shape_name='PartNumber',
|
403
|
+
))
|
404
|
+
expected_bucket_owner: AccountId = _dc.field(metadata=_base.field_metadata(
|
405
|
+
member_name='ExpectedBucketOwner',
|
406
|
+
shape_name='AccountId',
|
407
|
+
))
|
408
|
+
checksum_mode: ChecksumMode = _dc.field(metadata=_base.field_metadata(
|
409
|
+
member_name='ChecksumMode',
|
410
|
+
shape_name='ChecksumMode',
|
411
|
+
))
|
412
|
+
|
413
|
+
|
414
|
+
@_dc.dataclass(frozen=True)
|
415
|
+
class InvalidObjectState(
|
416
|
+
_base.Shape,
|
417
|
+
shape_name='InvalidObjectState',
|
418
|
+
):
|
419
|
+
storage_class: StorageClass = _dc.field(metadata=_base.field_metadata(
|
420
|
+
member_name='StorageClass',
|
421
|
+
shape_name='StorageClass',
|
422
|
+
))
|
423
|
+
access_tier: IntelligentTieringAccessTier = _dc.field(metadata=_base.field_metadata(
|
424
|
+
member_name='AccessTier',
|
425
|
+
shape_name='IntelligentTieringAccessTier',
|
426
|
+
))
|
427
|
+
|
428
|
+
|
429
|
+
Metadata: _ta.TypeAlias = _ta.Mapping[MetadataKey, MetadataKey]
|
430
|
+
|
431
|
+
|
432
|
+
@_dc.dataclass(frozen=True)
|
433
|
+
class PutObjectOutput(
|
434
|
+
_base.Shape,
|
435
|
+
shape_name='PutObjectOutput',
|
436
|
+
):
|
437
|
+
expiration: Expiration = _dc.field(metadata=_base.field_metadata(
|
438
|
+
member_name='Expiration',
|
439
|
+
shape_name='Expiration',
|
440
|
+
))
|
441
|
+
etag: ETag = _dc.field(metadata=_base.field_metadata(
|
442
|
+
member_name='ETag',
|
443
|
+
shape_name='ETag',
|
444
|
+
))
|
445
|
+
checksum_crc32: ChecksumCRC32 = _dc.field(metadata=_base.field_metadata(
|
446
|
+
member_name='ChecksumCRC32',
|
447
|
+
shape_name='ChecksumCRC32',
|
448
|
+
))
|
449
|
+
checksum_crc32c: ChecksumCRC32C = _dc.field(metadata=_base.field_metadata(
|
450
|
+
member_name='ChecksumCRC32C',
|
451
|
+
shape_name='ChecksumCRC32C',
|
452
|
+
))
|
453
|
+
checksum_sha1: ChecksumSHA1 = _dc.field(metadata=_base.field_metadata(
|
454
|
+
member_name='ChecksumSHA1',
|
455
|
+
shape_name='ChecksumSHA1',
|
456
|
+
))
|
457
|
+
checksum_sha256: ChecksumSHA256 = _dc.field(metadata=_base.field_metadata(
|
458
|
+
member_name='ChecksumSHA256',
|
459
|
+
shape_name='ChecksumSHA256',
|
460
|
+
))
|
461
|
+
server_side_encryption: ServerSideEncryption = _dc.field(metadata=_base.field_metadata(
|
462
|
+
member_name='ServerSideEncryption',
|
463
|
+
shape_name='ServerSideEncryption',
|
464
|
+
))
|
465
|
+
version_id: ObjectVersionId = _dc.field(metadata=_base.field_metadata(
|
466
|
+
member_name='VersionId',
|
467
|
+
shape_name='ObjectVersionId',
|
468
|
+
))
|
469
|
+
sse_customer_algorithm: SSECustomerAlgorithm = _dc.field(metadata=_base.field_metadata(
|
470
|
+
member_name='SSECustomerAlgorithm',
|
471
|
+
shape_name='SSECustomerAlgorithm',
|
472
|
+
))
|
473
|
+
sse_customer_key_md5: SSECustomerKeyMD5 = _dc.field(metadata=_base.field_metadata(
|
474
|
+
member_name='SSECustomerKeyMD5',
|
475
|
+
shape_name='SSECustomerKeyMD5',
|
476
|
+
))
|
477
|
+
sse_kms_key_id: SSEKMSKeyId = _dc.field(metadata=_base.field_metadata(
|
478
|
+
member_name='SSEKMSKeyId',
|
479
|
+
shape_name='SSEKMSKeyId',
|
480
|
+
))
|
481
|
+
sse_kms_encryption_context: SSEKMSEncryptionContext = _dc.field(metadata=_base.field_metadata(
|
482
|
+
member_name='SSEKMSEncryptionContext',
|
483
|
+
shape_name='SSEKMSEncryptionContext',
|
484
|
+
))
|
485
|
+
bucket_key_enabled: BucketKeyEnabled = _dc.field(metadata=_base.field_metadata(
|
486
|
+
member_name='BucketKeyEnabled',
|
487
|
+
shape_name='BucketKeyEnabled',
|
488
|
+
))
|
489
|
+
size: Size = _dc.field(metadata=_base.field_metadata(
|
490
|
+
member_name='Size',
|
491
|
+
shape_name='Size',
|
492
|
+
))
|
493
|
+
request_charged: RequestCharged = _dc.field(metadata=_base.field_metadata(
|
494
|
+
member_name='RequestCharged',
|
495
|
+
shape_name='RequestCharged',
|
496
|
+
))
|
497
|
+
|
498
|
+
|
499
|
+
@_dc.dataclass(frozen=True)
|
500
|
+
class GetObjectOutput(
|
501
|
+
_base.Shape,
|
502
|
+
shape_name='GetObjectOutput',
|
503
|
+
):
|
504
|
+
body: Body = _dc.field(metadata=_base.field_metadata(
|
505
|
+
member_name='Body',
|
506
|
+
shape_name='Body',
|
507
|
+
))
|
508
|
+
delete_marker: DeleteMarker = _dc.field(metadata=_base.field_metadata(
|
509
|
+
member_name='DeleteMarker',
|
510
|
+
shape_name='DeleteMarker',
|
511
|
+
))
|
512
|
+
accept_ranges: AcceptRanges = _dc.field(metadata=_base.field_metadata(
|
513
|
+
member_name='AcceptRanges',
|
514
|
+
shape_name='AcceptRanges',
|
515
|
+
))
|
516
|
+
expiration: Expiration = _dc.field(metadata=_base.field_metadata(
|
517
|
+
member_name='Expiration',
|
518
|
+
shape_name='Expiration',
|
519
|
+
))
|
520
|
+
restore: Restore = _dc.field(metadata=_base.field_metadata(
|
521
|
+
member_name='Restore',
|
522
|
+
shape_name='Restore',
|
523
|
+
))
|
524
|
+
last_modified: LastModified = _dc.field(metadata=_base.field_metadata(
|
525
|
+
member_name='LastModified',
|
526
|
+
shape_name='LastModified',
|
527
|
+
))
|
528
|
+
content_length: ContentLength = _dc.field(metadata=_base.field_metadata(
|
529
|
+
member_name='ContentLength',
|
530
|
+
shape_name='ContentLength',
|
531
|
+
))
|
532
|
+
etag: ETag = _dc.field(metadata=_base.field_metadata(
|
533
|
+
member_name='ETag',
|
534
|
+
shape_name='ETag',
|
535
|
+
))
|
536
|
+
checksum_crc32: ChecksumCRC32 = _dc.field(metadata=_base.field_metadata(
|
537
|
+
member_name='ChecksumCRC32',
|
538
|
+
shape_name='ChecksumCRC32',
|
539
|
+
))
|
540
|
+
checksum_crc32c: ChecksumCRC32C = _dc.field(metadata=_base.field_metadata(
|
541
|
+
member_name='ChecksumCRC32C',
|
542
|
+
shape_name='ChecksumCRC32C',
|
543
|
+
))
|
544
|
+
checksum_sha1: ChecksumSHA1 = _dc.field(metadata=_base.field_metadata(
|
545
|
+
member_name='ChecksumSHA1',
|
546
|
+
shape_name='ChecksumSHA1',
|
547
|
+
))
|
548
|
+
checksum_sha256: ChecksumSHA256 = _dc.field(metadata=_base.field_metadata(
|
549
|
+
member_name='ChecksumSHA256',
|
550
|
+
shape_name='ChecksumSHA256',
|
551
|
+
))
|
552
|
+
missing_meta: MissingMeta = _dc.field(metadata=_base.field_metadata(
|
553
|
+
member_name='MissingMeta',
|
554
|
+
shape_name='MissingMeta',
|
555
|
+
))
|
556
|
+
version_id: ObjectVersionId = _dc.field(metadata=_base.field_metadata(
|
557
|
+
member_name='VersionId',
|
558
|
+
shape_name='ObjectVersionId',
|
559
|
+
))
|
560
|
+
cache_control: CacheControl = _dc.field(metadata=_base.field_metadata(
|
561
|
+
member_name='CacheControl',
|
562
|
+
shape_name='CacheControl',
|
563
|
+
))
|
564
|
+
content_disposition: ContentDisposition = _dc.field(metadata=_base.field_metadata(
|
565
|
+
member_name='ContentDisposition',
|
566
|
+
shape_name='ContentDisposition',
|
567
|
+
))
|
568
|
+
content_encoding: ContentEncoding = _dc.field(metadata=_base.field_metadata(
|
569
|
+
member_name='ContentEncoding',
|
570
|
+
shape_name='ContentEncoding',
|
571
|
+
))
|
572
|
+
content_language: ContentLanguage = _dc.field(metadata=_base.field_metadata(
|
573
|
+
member_name='ContentLanguage',
|
574
|
+
shape_name='ContentLanguage',
|
575
|
+
))
|
576
|
+
content_range: ContentRange = _dc.field(metadata=_base.field_metadata(
|
577
|
+
member_name='ContentRange',
|
578
|
+
shape_name='ContentRange',
|
579
|
+
))
|
580
|
+
content_type: ContentType = _dc.field(metadata=_base.field_metadata(
|
581
|
+
member_name='ContentType',
|
582
|
+
shape_name='ContentType',
|
583
|
+
))
|
584
|
+
expires: Expires = _dc.field(metadata=_base.field_metadata(
|
585
|
+
member_name='Expires',
|
586
|
+
shape_name='Expires',
|
587
|
+
))
|
588
|
+
website_redirect_location: WebsiteRedirectLocation = _dc.field(metadata=_base.field_metadata(
|
589
|
+
member_name='WebsiteRedirectLocation',
|
590
|
+
shape_name='WebsiteRedirectLocation',
|
591
|
+
))
|
592
|
+
server_side_encryption: ServerSideEncryption = _dc.field(metadata=_base.field_metadata(
|
593
|
+
member_name='ServerSideEncryption',
|
594
|
+
shape_name='ServerSideEncryption',
|
595
|
+
))
|
596
|
+
metadata: Metadata = _dc.field(metadata=_base.field_metadata(
|
597
|
+
member_name='Metadata',
|
598
|
+
shape_name='Metadata',
|
599
|
+
))
|
600
|
+
sse_customer_algorithm: SSECustomerAlgorithm = _dc.field(metadata=_base.field_metadata(
|
601
|
+
member_name='SSECustomerAlgorithm',
|
602
|
+
shape_name='SSECustomerAlgorithm',
|
603
|
+
))
|
604
|
+
sse_customer_key_md5: SSECustomerKeyMD5 = _dc.field(metadata=_base.field_metadata(
|
605
|
+
member_name='SSECustomerKeyMD5',
|
606
|
+
shape_name='SSECustomerKeyMD5',
|
607
|
+
))
|
608
|
+
sse_kms_key_id: SSEKMSKeyId = _dc.field(metadata=_base.field_metadata(
|
609
|
+
member_name='SSEKMSKeyId',
|
610
|
+
shape_name='SSEKMSKeyId',
|
611
|
+
))
|
612
|
+
bucket_key_enabled: BucketKeyEnabled = _dc.field(metadata=_base.field_metadata(
|
613
|
+
member_name='BucketKeyEnabled',
|
614
|
+
shape_name='BucketKeyEnabled',
|
615
|
+
))
|
616
|
+
storage_class: StorageClass = _dc.field(metadata=_base.field_metadata(
|
617
|
+
member_name='StorageClass',
|
618
|
+
shape_name='StorageClass',
|
619
|
+
))
|
620
|
+
request_charged: RequestCharged = _dc.field(metadata=_base.field_metadata(
|
621
|
+
member_name='RequestCharged',
|
622
|
+
shape_name='RequestCharged',
|
623
|
+
))
|
624
|
+
replication_status: ReplicationStatus = _dc.field(metadata=_base.field_metadata(
|
625
|
+
member_name='ReplicationStatus',
|
626
|
+
shape_name='ReplicationStatus',
|
627
|
+
))
|
628
|
+
parts_count: PartsCount = _dc.field(metadata=_base.field_metadata(
|
629
|
+
member_name='PartsCount',
|
630
|
+
shape_name='PartsCount',
|
631
|
+
))
|
632
|
+
tag_count: TagCount = _dc.field(metadata=_base.field_metadata(
|
633
|
+
member_name='TagCount',
|
634
|
+
shape_name='TagCount',
|
635
|
+
))
|
636
|
+
object_lock_mode: ObjectLockMode = _dc.field(metadata=_base.field_metadata(
|
637
|
+
member_name='ObjectLockMode',
|
638
|
+
shape_name='ObjectLockMode',
|
639
|
+
))
|
640
|
+
object_lock_retain_until_date: ObjectLockRetainUntilDate = _dc.field(metadata=_base.field_metadata(
|
641
|
+
member_name='ObjectLockRetainUntilDate',
|
642
|
+
shape_name='ObjectLockRetainUntilDate',
|
643
|
+
))
|
644
|
+
object_lock_legal_hold_status: ObjectLockLegalHoldStatus = _dc.field(metadata=_base.field_metadata(
|
645
|
+
member_name='ObjectLockLegalHoldStatus',
|
646
|
+
shape_name='ObjectLockLegalHoldStatus',
|
647
|
+
))
|
648
|
+
|
649
|
+
|
650
|
+
@_dc.dataclass(frozen=True)
|
651
|
+
class PutObjectRequest(
|
652
|
+
_base.Shape,
|
653
|
+
shape_name='PutObjectRequest',
|
654
|
+
):
|
655
|
+
acl: ObjectCannedACL = _dc.field(metadata=_base.field_metadata(
|
656
|
+
member_name='ACL',
|
657
|
+
shape_name='ObjectCannedACL',
|
658
|
+
))
|
659
|
+
body: Body = _dc.field(metadata=_base.field_metadata(
|
660
|
+
member_name='Body',
|
661
|
+
shape_name='Body',
|
662
|
+
))
|
663
|
+
bucket: BucketName = _dc.field(metadata=_base.field_metadata(
|
664
|
+
member_name='Bucket',
|
665
|
+
shape_name='BucketName',
|
666
|
+
))
|
667
|
+
cache_control: CacheControl = _dc.field(metadata=_base.field_metadata(
|
668
|
+
member_name='CacheControl',
|
669
|
+
shape_name='CacheControl',
|
670
|
+
))
|
671
|
+
content_disposition: ContentDisposition = _dc.field(metadata=_base.field_metadata(
|
672
|
+
member_name='ContentDisposition',
|
673
|
+
shape_name='ContentDisposition',
|
674
|
+
))
|
675
|
+
content_encoding: ContentEncoding = _dc.field(metadata=_base.field_metadata(
|
676
|
+
member_name='ContentEncoding',
|
677
|
+
shape_name='ContentEncoding',
|
678
|
+
))
|
679
|
+
content_language: ContentLanguage = _dc.field(metadata=_base.field_metadata(
|
680
|
+
member_name='ContentLanguage',
|
681
|
+
shape_name='ContentLanguage',
|
682
|
+
))
|
683
|
+
content_length: ContentLength = _dc.field(metadata=_base.field_metadata(
|
684
|
+
member_name='ContentLength',
|
685
|
+
shape_name='ContentLength',
|
686
|
+
))
|
687
|
+
content_md5: ContentMD5 = _dc.field(metadata=_base.field_metadata(
|
688
|
+
member_name='ContentMD5',
|
689
|
+
shape_name='ContentMD5',
|
690
|
+
))
|
691
|
+
content_type: ContentType = _dc.field(metadata=_base.field_metadata(
|
692
|
+
member_name='ContentType',
|
693
|
+
shape_name='ContentType',
|
694
|
+
))
|
695
|
+
checksum_algorithm: ChecksumAlgorithm = _dc.field(metadata=_base.field_metadata(
|
696
|
+
member_name='ChecksumAlgorithm',
|
697
|
+
shape_name='ChecksumAlgorithm',
|
698
|
+
))
|
699
|
+
checksum_crc32: ChecksumCRC32 = _dc.field(metadata=_base.field_metadata(
|
700
|
+
member_name='ChecksumCRC32',
|
701
|
+
shape_name='ChecksumCRC32',
|
702
|
+
))
|
703
|
+
checksum_crc32c: ChecksumCRC32C = _dc.field(metadata=_base.field_metadata(
|
704
|
+
member_name='ChecksumCRC32C',
|
705
|
+
shape_name='ChecksumCRC32C',
|
706
|
+
))
|
707
|
+
checksum_sha1: ChecksumSHA1 = _dc.field(metadata=_base.field_metadata(
|
708
|
+
member_name='ChecksumSHA1',
|
709
|
+
shape_name='ChecksumSHA1',
|
710
|
+
))
|
711
|
+
checksum_sha256: ChecksumSHA256 = _dc.field(metadata=_base.field_metadata(
|
712
|
+
member_name='ChecksumSHA256',
|
713
|
+
shape_name='ChecksumSHA256',
|
714
|
+
))
|
715
|
+
expires: Expires = _dc.field(metadata=_base.field_metadata(
|
716
|
+
member_name='Expires',
|
717
|
+
shape_name='Expires',
|
718
|
+
))
|
719
|
+
if_match: IfMatch = _dc.field(metadata=_base.field_metadata(
|
720
|
+
member_name='IfMatch',
|
721
|
+
shape_name='IfMatch',
|
722
|
+
))
|
723
|
+
if_none_match: IfNoneMatch = _dc.field(metadata=_base.field_metadata(
|
724
|
+
member_name='IfNoneMatch',
|
725
|
+
shape_name='IfNoneMatch',
|
726
|
+
))
|
727
|
+
grant_full_control: GrantFullControl = _dc.field(metadata=_base.field_metadata(
|
728
|
+
member_name='GrantFullControl',
|
729
|
+
shape_name='GrantFullControl',
|
730
|
+
))
|
731
|
+
grant_read: GrantRead = _dc.field(metadata=_base.field_metadata(
|
732
|
+
member_name='GrantRead',
|
733
|
+
shape_name='GrantRead',
|
734
|
+
))
|
735
|
+
grant_read_acp: GrantReadACP = _dc.field(metadata=_base.field_metadata(
|
736
|
+
member_name='GrantReadACP',
|
737
|
+
shape_name='GrantReadACP',
|
738
|
+
))
|
739
|
+
grant_write_acp: GrantWriteACP = _dc.field(metadata=_base.field_metadata(
|
740
|
+
member_name='GrantWriteACP',
|
741
|
+
shape_name='GrantWriteACP',
|
742
|
+
))
|
743
|
+
key: ObjectKey = _dc.field(metadata=_base.field_metadata(
|
744
|
+
member_name='Key',
|
745
|
+
shape_name='ObjectKey',
|
746
|
+
))
|
747
|
+
write_offset_bytes: WriteOffsetBytes = _dc.field(metadata=_base.field_metadata(
|
748
|
+
member_name='WriteOffsetBytes',
|
749
|
+
shape_name='WriteOffsetBytes',
|
750
|
+
))
|
751
|
+
metadata: Metadata = _dc.field(metadata=_base.field_metadata(
|
752
|
+
member_name='Metadata',
|
753
|
+
shape_name='Metadata',
|
754
|
+
))
|
755
|
+
server_side_encryption: ServerSideEncryption = _dc.field(metadata=_base.field_metadata(
|
756
|
+
member_name='ServerSideEncryption',
|
757
|
+
shape_name='ServerSideEncryption',
|
758
|
+
))
|
759
|
+
storage_class: StorageClass = _dc.field(metadata=_base.field_metadata(
|
760
|
+
member_name='StorageClass',
|
761
|
+
shape_name='StorageClass',
|
762
|
+
))
|
763
|
+
website_redirect_location: WebsiteRedirectLocation = _dc.field(metadata=_base.field_metadata(
|
764
|
+
member_name='WebsiteRedirectLocation',
|
765
|
+
shape_name='WebsiteRedirectLocation',
|
766
|
+
))
|
767
|
+
sse_customer_algorithm: SSECustomerAlgorithm = _dc.field(metadata=_base.field_metadata(
|
768
|
+
member_name='SSECustomerAlgorithm',
|
769
|
+
shape_name='SSECustomerAlgorithm',
|
770
|
+
))
|
771
|
+
sse_customer_key: SSECustomerKey = _dc.field(metadata=_base.field_metadata(
|
772
|
+
member_name='SSECustomerKey',
|
773
|
+
shape_name='SSECustomerKey',
|
774
|
+
))
|
775
|
+
sse_customer_key_md5: SSECustomerKeyMD5 = _dc.field(metadata=_base.field_metadata(
|
776
|
+
member_name='SSECustomerKeyMD5',
|
777
|
+
shape_name='SSECustomerKeyMD5',
|
778
|
+
))
|
779
|
+
sse_kms_key_id: SSEKMSKeyId = _dc.field(metadata=_base.field_metadata(
|
780
|
+
member_name='SSEKMSKeyId',
|
781
|
+
shape_name='SSEKMSKeyId',
|
782
|
+
))
|
783
|
+
sse_kms_encryption_context: SSEKMSEncryptionContext = _dc.field(metadata=_base.field_metadata(
|
784
|
+
member_name='SSEKMSEncryptionContext',
|
785
|
+
shape_name='SSEKMSEncryptionContext',
|
786
|
+
))
|
787
|
+
bucket_key_enabled: BucketKeyEnabled = _dc.field(metadata=_base.field_metadata(
|
788
|
+
member_name='BucketKeyEnabled',
|
789
|
+
shape_name='BucketKeyEnabled',
|
790
|
+
))
|
791
|
+
request_payer: RequestPayer = _dc.field(metadata=_base.field_metadata(
|
792
|
+
member_name='RequestPayer',
|
793
|
+
shape_name='RequestPayer',
|
794
|
+
))
|
795
|
+
tagging: TaggingHeader = _dc.field(metadata=_base.field_metadata(
|
796
|
+
member_name='Tagging',
|
797
|
+
shape_name='TaggingHeader',
|
798
|
+
))
|
799
|
+
object_lock_mode: ObjectLockMode = _dc.field(metadata=_base.field_metadata(
|
800
|
+
member_name='ObjectLockMode',
|
801
|
+
shape_name='ObjectLockMode',
|
802
|
+
))
|
803
|
+
object_lock_retain_until_date: ObjectLockRetainUntilDate = _dc.field(metadata=_base.field_metadata(
|
804
|
+
member_name='ObjectLockRetainUntilDate',
|
805
|
+
shape_name='ObjectLockRetainUntilDate',
|
806
|
+
))
|
807
|
+
object_lock_legal_hold_status: ObjectLockLegalHoldStatus = _dc.field(metadata=_base.field_metadata(
|
808
|
+
member_name='ObjectLockLegalHoldStatus',
|
809
|
+
shape_name='ObjectLockLegalHoldStatus',
|
810
|
+
))
|
811
|
+
expected_bucket_owner: AccountId = _dc.field(metadata=_base.field_metadata(
|
812
|
+
member_name='ExpectedBucketOwner',
|
813
|
+
shape_name='AccountId',
|
814
|
+
))
|
815
|
+
|
816
|
+
|
817
|
+
ALL_SHAPES: frozenset[type[_base.Shape]] = frozenset([
|
818
|
+
EncryptionTypeMismatch,
|
819
|
+
InvalidRequest,
|
820
|
+
InvalidWriteOffset,
|
821
|
+
NoSuchKey,
|
822
|
+
TooManyParts,
|
823
|
+
DeleteObjectOutput,
|
824
|
+
DeleteObjectRequest,
|
825
|
+
GetObjectRequest,
|
826
|
+
InvalidObjectState,
|
827
|
+
PutObjectOutput,
|
828
|
+
GetObjectOutput,
|
829
|
+
PutObjectRequest,
|
830
|
+
])
|
831
|
+
|
832
|
+
|
833
|
+
##
|
834
|
+
|
835
|
+
|
836
|
+
DELETE_OBJECT = _base.Operation(
|
837
|
+
name='DeleteObject',
|
838
|
+
input=DeleteObjectRequest,
|
839
|
+
output=DeleteObjectOutput,
|
840
|
+
)
|
841
|
+
|
842
|
+
GET_OBJECT = _base.Operation(
|
843
|
+
name='GetObject',
|
844
|
+
input=GetObjectRequest,
|
845
|
+
output=GetObjectOutput,
|
846
|
+
errors=[
|
847
|
+
NoSuchKey,
|
848
|
+
InvalidObjectState,
|
849
|
+
],
|
850
|
+
)
|
851
|
+
|
852
|
+
PUT_OBJECT = _base.Operation(
|
853
|
+
name='PutObject',
|
854
|
+
input=PutObjectRequest,
|
855
|
+
output=PutObjectOutput,
|
856
|
+
errors=[
|
857
|
+
InvalidRequest,
|
858
|
+
InvalidWriteOffset,
|
859
|
+
TooManyParts,
|
860
|
+
EncryptionTypeMismatch,
|
861
|
+
],
|
862
|
+
)
|
863
|
+
|
864
|
+
|
865
|
+
ALL_OPERATIONS: frozenset[_base.Operation] = frozenset([
|
866
|
+
DELETE_OBJECT,
|
867
|
+
GET_OBJECT,
|
868
|
+
PUT_OBJECT,
|
869
|
+
])
|