aws-sdk-s3 1.166.0 → 1.174.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,6 +57,7 @@ module Aws::S3
57
57
  BucketLoggingStatus = Shapes::StructureShape.new(name: 'BucketLoggingStatus')
58
58
  BucketLogsPermission = Shapes::StringShape.new(name: 'BucketLogsPermission')
59
59
  BucketName = Shapes::StringShape.new(name: 'BucketName')
60
+ BucketRegion = Shapes::StringShape.new(name: 'BucketRegion')
60
61
  BucketType = Shapes::StringShape.new(name: 'BucketType')
61
62
  BucketVersioningStatus = Shapes::StringShape.new(name: 'BucketVersioningStatus')
62
63
  Buckets = Shapes::ListShape.new(name: 'Buckets')
@@ -168,6 +169,7 @@ module Aws::S3
168
169
  EncodingType = Shapes::StringShape.new(name: 'EncodingType')
169
170
  Encryption = Shapes::StructureShape.new(name: 'Encryption')
170
171
  EncryptionConfiguration = Shapes::StructureShape.new(name: 'EncryptionConfiguration')
172
+ EncryptionTypeMismatch = Shapes::StructureShape.new(name: 'EncryptionTypeMismatch')
171
173
  End = Shapes::IntegerShape.new(name: 'End')
172
174
  EndEvent = Shapes::StructureShape.new(name: 'EndEvent')
173
175
  Error = Shapes::StructureShape.new(name: 'Error')
@@ -275,6 +277,9 @@ module Aws::S3
275
277
  HttpRedirectCode = Shapes::StringShape.new(name: 'HttpRedirectCode')
276
278
  ID = Shapes::StringShape.new(name: 'ID')
277
279
  IfMatch = Shapes::StringShape.new(name: 'IfMatch')
280
+ IfMatchInitiatedTime = Shapes::TimestampShape.new(name: 'IfMatchInitiatedTime', timestampFormat: "rfc822")
281
+ IfMatchLastModifiedTime = Shapes::TimestampShape.new(name: 'IfMatchLastModifiedTime', timestampFormat: "rfc822")
282
+ IfMatchSize = Shapes::IntegerShape.new(name: 'IfMatchSize')
278
283
  IfModifiedSince = Shapes::TimestampShape.new(name: 'IfModifiedSince')
279
284
  IfNoneMatch = Shapes::StringShape.new(name: 'IfNoneMatch')
280
285
  IfUnmodifiedSince = Shapes::TimestampShape.new(name: 'IfUnmodifiedSince')
@@ -291,6 +296,8 @@ module Aws::S3
291
296
  IntelligentTieringId = Shapes::StringShape.new(name: 'IntelligentTieringId')
292
297
  IntelligentTieringStatus = Shapes::StringShape.new(name: 'IntelligentTieringStatus')
293
298
  InvalidObjectState = Shapes::StructureShape.new(name: 'InvalidObjectState')
299
+ InvalidRequest = Shapes::StructureShape.new(name: 'InvalidRequest')
300
+ InvalidWriteOffset = Shapes::StructureShape.new(name: 'InvalidWriteOffset')
294
301
  InventoryConfiguration = Shapes::StructureShape.new(name: 'InventoryConfiguration')
295
302
  InventoryConfigurationList = Shapes::ListShape.new(name: 'InventoryConfigurationList', flattened: true)
296
303
  InventoryDestination = Shapes::StructureShape.new(name: 'InventoryDestination')
@@ -320,6 +327,7 @@ module Aws::S3
320
327
  LambdaFunctionConfiguration = Shapes::StructureShape.new(name: 'LambdaFunctionConfiguration')
321
328
  LambdaFunctionConfigurationList = Shapes::ListShape.new(name: 'LambdaFunctionConfigurationList', flattened: true)
322
329
  LastModified = Shapes::TimestampShape.new(name: 'LastModified')
330
+ LastModifiedTime = Shapes::TimestampShape.new(name: 'LastModifiedTime', timestampFormat: "rfc822")
323
331
  LifecycleConfiguration = Shapes::StructureShape.new(name: 'LifecycleConfiguration')
324
332
  LifecycleExpiration = Shapes::StructureShape.new(name: 'LifecycleExpiration')
325
333
  LifecycleRule = Shapes::StructureShape.new(name: 'LifecycleRule')
@@ -464,6 +472,7 @@ module Aws::S3
464
472
  PutBucketEncryptionRequest = Shapes::StructureShape.new(name: 'PutBucketEncryptionRequest')
465
473
  PutBucketIntelligentTieringConfigurationRequest = Shapes::StructureShape.new(name: 'PutBucketIntelligentTieringConfigurationRequest')
466
474
  PutBucketInventoryConfigurationRequest = Shapes::StructureShape.new(name: 'PutBucketInventoryConfigurationRequest')
475
+ PutBucketLifecycleConfigurationOutput = Shapes::StructureShape.new(name: 'PutBucketLifecycleConfigurationOutput')
467
476
  PutBucketLifecycleConfigurationRequest = Shapes::StructureShape.new(name: 'PutBucketLifecycleConfigurationRequest')
468
477
  PutBucketLifecycleRequest = Shapes::StructureShape.new(name: 'PutBucketLifecycleRequest')
469
478
  PutBucketLoggingRequest = Shapes::StructureShape.new(name: 'PutBucketLoggingRequest')
@@ -598,11 +607,13 @@ module Aws::S3
598
607
  Tiering = Shapes::StructureShape.new(name: 'Tiering')
599
608
  TieringList = Shapes::ListShape.new(name: 'TieringList', flattened: true)
600
609
  Token = Shapes::StringShape.new(name: 'Token')
610
+ TooManyParts = Shapes::StructureShape.new(name: 'TooManyParts')
601
611
  TopicArn = Shapes::StringShape.new(name: 'TopicArn')
602
612
  TopicConfiguration = Shapes::StructureShape.new(name: 'TopicConfiguration')
603
613
  TopicConfigurationDeprecated = Shapes::StructureShape.new(name: 'TopicConfigurationDeprecated')
604
614
  TopicConfigurationList = Shapes::ListShape.new(name: 'TopicConfigurationList', flattened: true)
605
615
  Transition = Shapes::StructureShape.new(name: 'Transition')
616
+ TransitionDefaultMinimumObjectSize = Shapes::StringShape.new(name: 'TransitionDefaultMinimumObjectSize')
606
617
  TransitionList = Shapes::ListShape.new(name: 'TransitionList', flattened: true)
607
618
  TransitionStorageClass = Shapes::StringShape.new(name: 'TransitionStorageClass')
608
619
  Type = Shapes::StringShape.new(name: 'Type')
@@ -620,6 +631,7 @@ module Aws::S3
620
631
  WebsiteConfiguration = Shapes::StructureShape.new(name: 'WebsiteConfiguration')
621
632
  WebsiteRedirectLocation = Shapes::StringShape.new(name: 'WebsiteRedirectLocation')
622
633
  WriteGetObjectResponseRequest = Shapes::StructureShape.new(name: 'WriteGetObjectResponseRequest')
634
+ WriteOffsetBytes = Shapes::IntegerShape.new(name: 'WriteOffsetBytes')
623
635
  Years = Shapes::IntegerShape.new(name: 'Years')
624
636
 
625
637
  AbortIncompleteMultipartUpload.add_member(:days_after_initiation, Shapes::ShapeRef.new(shape: DaysAfterInitiation, location_name: "DaysAfterInitiation"))
@@ -633,6 +645,7 @@ module Aws::S3
633
645
  AbortMultipartUploadRequest.add_member(:upload_id, Shapes::ShapeRef.new(shape: MultipartUploadId, required: true, location: "querystring", location_name: "uploadId"))
634
646
  AbortMultipartUploadRequest.add_member(:request_payer, Shapes::ShapeRef.new(shape: RequestPayer, location: "header", location_name: "x-amz-request-payer"))
635
647
  AbortMultipartUploadRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
648
+ AbortMultipartUploadRequest.add_member(:if_match_initiated_time, Shapes::ShapeRef.new(shape: IfMatchInitiatedTime, location: "header", location_name: "x-amz-if-match-initiated-time"))
636
649
  AbortMultipartUploadRequest.struct_class = Types::AbortMultipartUploadRequest
637
650
 
638
651
  AccelerateConfiguration.add_member(:status, Shapes::ShapeRef.new(shape: BucketAccelerateStatus, location_name: "Status"))
@@ -678,6 +691,7 @@ module Aws::S3
678
691
 
679
692
  Bucket.add_member(:name, Shapes::ShapeRef.new(shape: BucketName, location_name: "Name"))
680
693
  Bucket.add_member(:creation_date, Shapes::ShapeRef.new(shape: CreationDate, location_name: "CreationDate"))
694
+ Bucket.add_member(:bucket_region, Shapes::ShapeRef.new(shape: BucketRegion, location_name: "BucketRegion"))
681
695
  Bucket.struct_class = Types::Bucket
682
696
 
683
697
  BucketAlreadyExists.struct_class = Types::BucketAlreadyExists
@@ -771,6 +785,7 @@ module Aws::S3
771
785
  CompleteMultipartUploadRequest.add_member(:checksum_sha256, Shapes::ShapeRef.new(shape: ChecksumSHA256, location: "header", location_name: "x-amz-checksum-sha256"))
772
786
  CompleteMultipartUploadRequest.add_member(:request_payer, Shapes::ShapeRef.new(shape: RequestPayer, location: "header", location_name: "x-amz-request-payer"))
773
787
  CompleteMultipartUploadRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
788
+ CompleteMultipartUploadRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: IfMatch, location: "header", location_name: "If-Match"))
774
789
  CompleteMultipartUploadRequest.add_member(:if_none_match, Shapes::ShapeRef.new(shape: IfNoneMatch, location: "header", location_name: "If-None-Match"))
775
790
  CompleteMultipartUploadRequest.add_member(:sse_customer_algorithm, Shapes::ShapeRef.new(shape: SSECustomerAlgorithm, location: "header", location_name: "x-amz-server-side-encryption-customer-algorithm"))
776
791
  CompleteMultipartUploadRequest.add_member(:sse_customer_key, Shapes::ShapeRef.new(shape: SSECustomerKey, location: "header", location_name: "x-amz-server-side-encryption-customer-key"))
@@ -1044,6 +1059,9 @@ module Aws::S3
1044
1059
  DeleteObjectRequest.add_member(:request_payer, Shapes::ShapeRef.new(shape: RequestPayer, location: "header", location_name: "x-amz-request-payer"))
1045
1060
  DeleteObjectRequest.add_member(:bypass_governance_retention, Shapes::ShapeRef.new(shape: BypassGovernanceRetention, location: "header", location_name: "x-amz-bypass-governance-retention"))
1046
1061
  DeleteObjectRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
1062
+ DeleteObjectRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: IfMatch, location: "header", location_name: "If-Match"))
1063
+ DeleteObjectRequest.add_member(:if_match_last_modified_time, Shapes::ShapeRef.new(shape: IfMatchLastModifiedTime, location: "header", location_name: "x-amz-if-match-last-modified-time"))
1064
+ DeleteObjectRequest.add_member(:if_match_size, Shapes::ShapeRef.new(shape: IfMatchSize, location: "header", location_name: "x-amz-if-match-size"))
1047
1065
  DeleteObjectRequest.struct_class = Types::DeleteObjectRequest
1048
1066
 
1049
1067
  DeleteObjectTaggingOutput.add_member(:version_id, Shapes::ShapeRef.new(shape: ObjectVersionId, location: "header", location_name: "x-amz-version-id"))
@@ -1100,6 +1118,8 @@ module Aws::S3
1100
1118
  EncryptionConfiguration.add_member(:replica_kms_key_id, Shapes::ShapeRef.new(shape: ReplicaKmsKeyID, location_name: "ReplicaKmsKeyID"))
1101
1119
  EncryptionConfiguration.struct_class = Types::EncryptionConfiguration
1102
1120
 
1121
+ EncryptionTypeMismatch.struct_class = Types::EncryptionTypeMismatch
1122
+
1103
1123
  EndEvent.struct_class = Types::EndEvent
1104
1124
 
1105
1125
  Error.add_member(:key, Shapes::ShapeRef.new(shape: ObjectKey, location_name: "Key"))
@@ -1191,6 +1211,7 @@ module Aws::S3
1191
1211
  GetBucketInventoryConfigurationRequest.struct_class = Types::GetBucketInventoryConfigurationRequest
1192
1212
 
1193
1213
  GetBucketLifecycleConfigurationOutput.add_member(:rules, Shapes::ShapeRef.new(shape: LifecycleRules, location_name: "Rule"))
1214
+ GetBucketLifecycleConfigurationOutput.add_member(:transition_default_minimum_object_size, Shapes::ShapeRef.new(shape: TransitionDefaultMinimumObjectSize, location: "header", location_name: "x-amz-transition-default-minimum-object-size"))
1194
1215
  GetBucketLifecycleConfigurationOutput.struct_class = Types::GetBucketLifecycleConfigurationOutput
1195
1216
 
1196
1217
  GetBucketLifecycleConfigurationRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket", metadata: {"contextParam"=>{"name"=>"Bucket"}}))
@@ -1593,6 +1614,10 @@ module Aws::S3
1593
1614
  InvalidObjectState.add_member(:access_tier, Shapes::ShapeRef.new(shape: IntelligentTieringAccessTier, location_name: "AccessTier"))
1594
1615
  InvalidObjectState.struct_class = Types::InvalidObjectState
1595
1616
 
1617
+ InvalidRequest.struct_class = Types::InvalidRequest
1618
+
1619
+ InvalidWriteOffset.struct_class = Types::InvalidWriteOffset
1620
+
1596
1621
  InventoryConfiguration.add_member(:destination, Shapes::ShapeRef.new(shape: InventoryDestination, required: true, location_name: "Destination"))
1597
1622
  InventoryConfiguration.add_member(:is_enabled, Shapes::ShapeRef.new(shape: IsEnabled, required: true, location_name: "IsEnabled"))
1598
1623
  InventoryConfiguration.add_member(:filter, Shapes::ShapeRef.new(shape: InventoryFilter, location_name: "Filter"))
@@ -1720,10 +1745,13 @@ module Aws::S3
1720
1745
  ListBucketsOutput.add_member(:buckets, Shapes::ShapeRef.new(shape: Buckets, location_name: "Buckets"))
1721
1746
  ListBucketsOutput.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, location_name: "Owner"))
1722
1747
  ListBucketsOutput.add_member(:continuation_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "ContinuationToken"))
1748
+ ListBucketsOutput.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, location_name: "Prefix"))
1723
1749
  ListBucketsOutput.struct_class = Types::ListBucketsOutput
1724
1750
 
1725
1751
  ListBucketsRequest.add_member(:max_buckets, Shapes::ShapeRef.new(shape: MaxBuckets, location: "querystring", location_name: "max-buckets"))
1726
1752
  ListBucketsRequest.add_member(:continuation_token, Shapes::ShapeRef.new(shape: Token, location: "querystring", location_name: "continuation-token"))
1753
+ ListBucketsRequest.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, location: "querystring", location_name: "prefix"))
1754
+ ListBucketsRequest.add_member(:bucket_region, Shapes::ShapeRef.new(shape: BucketRegion, location: "querystring", location_name: "bucket-region"))
1727
1755
  ListBucketsRequest.struct_class = Types::ListBucketsRequest
1728
1756
 
1729
1757
  ListDirectoryBucketsOutput.add_member(:buckets, Shapes::ShapeRef.new(shape: Buckets, location_name: "Buckets"))
@@ -1965,6 +1993,9 @@ module Aws::S3
1965
1993
 
1966
1994
  ObjectIdentifier.add_member(:key, Shapes::ShapeRef.new(shape: ObjectKey, required: true, location_name: "Key"))
1967
1995
  ObjectIdentifier.add_member(:version_id, Shapes::ShapeRef.new(shape: ObjectVersionId, location_name: "VersionId"))
1996
+ ObjectIdentifier.add_member(:etag, Shapes::ShapeRef.new(shape: ETag, location_name: "ETag"))
1997
+ ObjectIdentifier.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: LastModifiedTime, location_name: "LastModifiedTime"))
1998
+ ObjectIdentifier.add_member(:size, Shapes::ShapeRef.new(shape: Size, location_name: "Size"))
1968
1999
  ObjectIdentifier.struct_class = Types::ObjectIdentifier
1969
2000
 
1970
2001
  ObjectIdentifierList.member = Shapes::ShapeRef.new(shape: ObjectIdentifier)
@@ -2130,10 +2161,14 @@ module Aws::S3
2130
2161
  PutBucketInventoryConfigurationRequest[:payload] = :inventory_configuration
2131
2162
  PutBucketInventoryConfigurationRequest[:payload_member] = PutBucketInventoryConfigurationRequest.member(:inventory_configuration)
2132
2163
 
2164
+ PutBucketLifecycleConfigurationOutput.add_member(:transition_default_minimum_object_size, Shapes::ShapeRef.new(shape: TransitionDefaultMinimumObjectSize, location: "header", location_name: "x-amz-transition-default-minimum-object-size"))
2165
+ PutBucketLifecycleConfigurationOutput.struct_class = Types::PutBucketLifecycleConfigurationOutput
2166
+
2133
2167
  PutBucketLifecycleConfigurationRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket", metadata: {"contextParam"=>{"name"=>"Bucket"}}))
2134
2168
  PutBucketLifecycleConfigurationRequest.add_member(:checksum_algorithm, Shapes::ShapeRef.new(shape: ChecksumAlgorithm, location: "header", location_name: "x-amz-sdk-checksum-algorithm"))
2135
2169
  PutBucketLifecycleConfigurationRequest.add_member(:lifecycle_configuration, Shapes::ShapeRef.new(shape: BucketLifecycleConfiguration, location_name: "LifecycleConfiguration", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
2136
2170
  PutBucketLifecycleConfigurationRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
2171
+ PutBucketLifecycleConfigurationRequest.add_member(:transition_default_minimum_object_size, Shapes::ShapeRef.new(shape: TransitionDefaultMinimumObjectSize, location: "header", location_name: "x-amz-transition-default-minimum-object-size"))
2137
2172
  PutBucketLifecycleConfigurationRequest.struct_class = Types::PutBucketLifecycleConfigurationRequest
2138
2173
  PutBucketLifecycleConfigurationRequest[:payload] = :lifecycle_configuration
2139
2174
  PutBucketLifecycleConfigurationRequest[:payload_member] = PutBucketLifecycleConfigurationRequest.member(:lifecycle_configuration)
@@ -2309,6 +2344,7 @@ module Aws::S3
2309
2344
  PutObjectOutput.add_member(:ssekms_key_id, Shapes::ShapeRef.new(shape: SSEKMSKeyId, location: "header", location_name: "x-amz-server-side-encryption-aws-kms-key-id"))
2310
2345
  PutObjectOutput.add_member(:ssekms_encryption_context, Shapes::ShapeRef.new(shape: SSEKMSEncryptionContext, location: "header", location_name: "x-amz-server-side-encryption-context"))
2311
2346
  PutObjectOutput.add_member(:bucket_key_enabled, Shapes::ShapeRef.new(shape: BucketKeyEnabled, location: "header", location_name: "x-amz-server-side-encryption-bucket-key-enabled"))
2347
+ PutObjectOutput.add_member(:size, Shapes::ShapeRef.new(shape: Size, location: "header", location_name: "x-amz-object-size"))
2312
2348
  PutObjectOutput.add_member(:request_charged, Shapes::ShapeRef.new(shape: RequestCharged, location: "header", location_name: "x-amz-request-charged"))
2313
2349
  PutObjectOutput.struct_class = Types::PutObjectOutput
2314
2350
 
@@ -2328,12 +2364,14 @@ module Aws::S3
2328
2364
  PutObjectRequest.add_member(:checksum_sha1, Shapes::ShapeRef.new(shape: ChecksumSHA1, location: "header", location_name: "x-amz-checksum-sha1"))
2329
2365
  PutObjectRequest.add_member(:checksum_sha256, Shapes::ShapeRef.new(shape: ChecksumSHA256, location: "header", location_name: "x-amz-checksum-sha256"))
2330
2366
  PutObjectRequest.add_member(:expires, Shapes::ShapeRef.new(shape: Expires, location: "header", location_name: "Expires"))
2367
+ PutObjectRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: IfMatch, location: "header", location_name: "If-Match"))
2331
2368
  PutObjectRequest.add_member(:if_none_match, Shapes::ShapeRef.new(shape: IfNoneMatch, location: "header", location_name: "If-None-Match"))
2332
2369
  PutObjectRequest.add_member(:grant_full_control, Shapes::ShapeRef.new(shape: GrantFullControl, location: "header", location_name: "x-amz-grant-full-control"))
2333
2370
  PutObjectRequest.add_member(:grant_read, Shapes::ShapeRef.new(shape: GrantRead, location: "header", location_name: "x-amz-grant-read"))
2334
2371
  PutObjectRequest.add_member(:grant_read_acp, Shapes::ShapeRef.new(shape: GrantReadACP, location: "header", location_name: "x-amz-grant-read-acp"))
2335
2372
  PutObjectRequest.add_member(:grant_write_acp, Shapes::ShapeRef.new(shape: GrantWriteACP, location: "header", location_name: "x-amz-grant-write-acp"))
2336
2373
  PutObjectRequest.add_member(:key, Shapes::ShapeRef.new(shape: ObjectKey, required: true, location: "uri", location_name: "Key", metadata: {"contextParam"=>{"name"=>"Key"}}))
2374
+ PutObjectRequest.add_member(:write_offset_bytes, Shapes::ShapeRef.new(shape: WriteOffsetBytes, location: "header", location_name: "x-amz-write-offset-bytes"))
2337
2375
  PutObjectRequest.add_member(:metadata, Shapes::ShapeRef.new(shape: Metadata, location: "headers", location_name: "x-amz-meta-"))
2338
2376
  PutObjectRequest.add_member(:server_side_encryption, Shapes::ShapeRef.new(shape: ServerSideEncryption, location: "header", location_name: "x-amz-server-side-encryption"))
2339
2377
  PutObjectRequest.add_member(:storage_class, Shapes::ShapeRef.new(shape: StorageClass, location: "header", location_name: "x-amz-storage-class"))
@@ -2632,6 +2670,8 @@ module Aws::S3
2632
2670
 
2633
2671
  TieringList.member = Shapes::ShapeRef.new(shape: Tiering)
2634
2672
 
2673
+ TooManyParts.struct_class = Types::TooManyParts
2674
+
2635
2675
  TopicConfiguration.add_member(:id, Shapes::ShapeRef.new(shape: NotificationId, location_name: "Id"))
2636
2676
  TopicConfiguration.add_member(:topic_arn, Shapes::ShapeRef.new(shape: TopicArn, required: true, location_name: "Topic"))
2637
2677
  TopicConfiguration.add_member(:events, Shapes::ShapeRef.new(shape: EventList, required: true, location_name: "Event"))
@@ -3529,7 +3569,7 @@ module Aws::S3
3529
3569
  "requestChecksumRequired" => true,
3530
3570
  }
3531
3571
  o.input = Shapes::ShapeRef.new(shape: PutBucketLifecycleConfigurationRequest)
3532
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
3572
+ o.output = Shapes::ShapeRef.new(shape: PutBucketLifecycleConfigurationOutput)
3533
3573
  end)
3534
3574
 
3535
3575
  api.add_operation(:put_bucket_logging, Seahorse::Model::Operation.new.tap do |o|
@@ -3702,6 +3742,10 @@ module Aws::S3
3702
3742
  }
3703
3743
  o.input = Shapes::ShapeRef.new(shape: PutObjectRequest)
3704
3744
  o.output = Shapes::ShapeRef.new(shape: PutObjectOutput)
3745
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequest)
3746
+ o.errors << Shapes::ShapeRef.new(shape: InvalidWriteOffset)
3747
+ o.errors << Shapes::ShapeRef.new(shape: TooManyParts)
3748
+ o.errors << Shapes::ShapeRef.new(shape: EncryptionTypeMismatch)
3705
3749
  end)
3706
3750
 
3707
3751
  api.add_operation(:put_object_acl, Seahorse::Model::Operation.new.tap do |o|
@@ -144,30 +144,15 @@ module Aws::S3
144
144
  self[:region] = options[:region]
145
145
  self[:use_fips] = options[:use_fips]
146
146
  self[:use_fips] = false if self[:use_fips].nil?
147
- if self[:use_fips].nil?
148
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
149
- end
150
147
  self[:use_dual_stack] = options[:use_dual_stack]
151
148
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
152
- if self[:use_dual_stack].nil?
153
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
154
- end
155
149
  self[:endpoint] = options[:endpoint]
156
150
  self[:force_path_style] = options[:force_path_style]
157
151
  self[:force_path_style] = false if self[:force_path_style].nil?
158
- if self[:force_path_style].nil?
159
- raise ArgumentError, "Missing required EndpointParameter: :force_path_style"
160
- end
161
152
  self[:accelerate] = options[:accelerate]
162
153
  self[:accelerate] = false if self[:accelerate].nil?
163
- if self[:accelerate].nil?
164
- raise ArgumentError, "Missing required EndpointParameter: :accelerate"
165
- end
166
154
  self[:use_global_endpoint] = options[:use_global_endpoint]
167
155
  self[:use_global_endpoint] = false if self[:use_global_endpoint].nil?
168
- if self[:use_global_endpoint].nil?
169
- raise ArgumentError, "Missing required EndpointParameter: :use_global_endpoint"
170
- end
171
156
  self[:use_object_lambda_endpoint] = options[:use_object_lambda_endpoint]
172
157
  self[:key] = options[:key]
173
158
  self[:prefix] = options[:prefix]
@@ -175,12 +160,22 @@ module Aws::S3
175
160
  self[:disable_access_points] = options[:disable_access_points]
176
161
  self[:disable_multi_region_access_points] = options[:disable_multi_region_access_points]
177
162
  self[:disable_multi_region_access_points] = false if self[:disable_multi_region_access_points].nil?
178
- if self[:disable_multi_region_access_points].nil?
179
- raise ArgumentError, "Missing required EndpointParameter: :disable_multi_region_access_points"
180
- end
181
163
  self[:use_arn_region] = options[:use_arn_region]
182
164
  self[:use_s3_express_control_endpoint] = options[:use_s3_express_control_endpoint]
183
165
  self[:disable_s3_express_session_auth] = options[:disable_s3_express_session_auth]
184
166
  end
167
+
168
+ def self.create(config, options={})
169
+ new({
170
+ region: config.region,
171
+ use_fips: config.use_fips_endpoint,
172
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
173
+ force_path_style: config.force_path_style,
174
+ use_global_endpoint: config.s3_us_east_1_regional_endpoint == 'legacy',
175
+ disable_multi_region_access_points: config.s3_disable_multiregion_access_points,
176
+ use_arn_region: config.s3_use_arn_region,
177
+ disable_s3_express_session_auth: config.disable_s3_express_session_auth,
178
+ }.merge(options))
179
+ end
185
180
  end
186
181
  end