aws-sdk-s3 1.64.0 → 1.68.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1669,7 +1669,7 @@ module Aws::S3
1669
1669
  PutBucketAclRequest.add_member(:acl, Shapes::ShapeRef.new(shape: BucketCannedACL, location: "header", location_name: "x-amz-acl"))
1670
1670
  PutBucketAclRequest.add_member(:access_control_policy, Shapes::ShapeRef.new(shape: AccessControlPolicy, location_name: "AccessControlPolicy", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1671
1671
  PutBucketAclRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1672
- PutBucketAclRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1672
+ PutBucketAclRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1673
1673
  PutBucketAclRequest.add_member(:grant_full_control, Shapes::ShapeRef.new(shape: GrantFullControl, location: "header", location_name: "x-amz-grant-full-control"))
1674
1674
  PutBucketAclRequest.add_member(:grant_read, Shapes::ShapeRef.new(shape: GrantRead, location: "header", location_name: "x-amz-grant-read"))
1675
1675
  PutBucketAclRequest.add_member(:grant_read_acp, Shapes::ShapeRef.new(shape: GrantReadACP, location: "header", location_name: "x-amz-grant-read-acp"))
@@ -1688,13 +1688,13 @@ module Aws::S3
1688
1688
 
1689
1689
  PutBucketCorsRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1690
1690
  PutBucketCorsRequest.add_member(:cors_configuration, Shapes::ShapeRef.new(shape: CORSConfiguration, required: true, location_name: "CORSConfiguration", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1691
- PutBucketCorsRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1691
+ PutBucketCorsRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1692
1692
  PutBucketCorsRequest.struct_class = Types::PutBucketCorsRequest
1693
1693
  PutBucketCorsRequest[:payload] = :cors_configuration
1694
1694
  PutBucketCorsRequest[:payload_member] = PutBucketCorsRequest.member(:cors_configuration)
1695
1695
 
1696
1696
  PutBucketEncryptionRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1697
- PutBucketEncryptionRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1697
+ PutBucketEncryptionRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1698
1698
  PutBucketEncryptionRequest.add_member(:server_side_encryption_configuration, Shapes::ShapeRef.new(shape: ServerSideEncryptionConfiguration, required: true, location_name: "ServerSideEncryptionConfiguration", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1699
1699
  PutBucketEncryptionRequest.struct_class = Types::PutBucketEncryptionRequest
1700
1700
  PutBucketEncryptionRequest[:payload] = :server_side_encryption_configuration
@@ -1714,7 +1714,7 @@ module Aws::S3
1714
1714
  PutBucketLifecycleConfigurationRequest[:payload_member] = PutBucketLifecycleConfigurationRequest.member(:lifecycle_configuration)
1715
1715
 
1716
1716
  PutBucketLifecycleRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1717
- PutBucketLifecycleRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1717
+ PutBucketLifecycleRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1718
1718
  PutBucketLifecycleRequest.add_member(:lifecycle_configuration, Shapes::ShapeRef.new(shape: LifecycleConfiguration, location_name: "LifecycleConfiguration", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1719
1719
  PutBucketLifecycleRequest.struct_class = Types::PutBucketLifecycleRequest
1720
1720
  PutBucketLifecycleRequest[:payload] = :lifecycle_configuration
@@ -1722,7 +1722,7 @@ module Aws::S3
1722
1722
 
1723
1723
  PutBucketLoggingRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1724
1724
  PutBucketLoggingRequest.add_member(:bucket_logging_status, Shapes::ShapeRef.new(shape: BucketLoggingStatus, required: true, location_name: "BucketLoggingStatus", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1725
- PutBucketLoggingRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1725
+ PutBucketLoggingRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1726
1726
  PutBucketLoggingRequest.struct_class = Types::PutBucketLoggingRequest
1727
1727
  PutBucketLoggingRequest[:payload] = :bucket_logging_status
1728
1728
  PutBucketLoggingRequest[:payload_member] = PutBucketLoggingRequest.member(:bucket_logging_status)
@@ -1741,14 +1741,14 @@ module Aws::S3
1741
1741
  PutBucketNotificationConfigurationRequest[:payload_member] = PutBucketNotificationConfigurationRequest.member(:notification_configuration)
1742
1742
 
1743
1743
  PutBucketNotificationRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1744
- PutBucketNotificationRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1744
+ PutBucketNotificationRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1745
1745
  PutBucketNotificationRequest.add_member(:notification_configuration, Shapes::ShapeRef.new(shape: NotificationConfigurationDeprecated, required: true, location_name: "NotificationConfiguration", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1746
1746
  PutBucketNotificationRequest.struct_class = Types::PutBucketNotificationRequest
1747
1747
  PutBucketNotificationRequest[:payload] = :notification_configuration
1748
1748
  PutBucketNotificationRequest[:payload_member] = PutBucketNotificationRequest.member(:notification_configuration)
1749
1749
 
1750
1750
  PutBucketPolicyRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1751
- PutBucketPolicyRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1751
+ PutBucketPolicyRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1752
1752
  PutBucketPolicyRequest.add_member(:confirm_remove_self_bucket_access, Shapes::ShapeRef.new(shape: ConfirmRemoveSelfBucketAccess, location: "header", location_name: "x-amz-confirm-remove-self-bucket-access"))
1753
1753
  PutBucketPolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, required: true, location_name: "Policy"))
1754
1754
  PutBucketPolicyRequest.struct_class = Types::PutBucketPolicyRequest
@@ -1756,7 +1756,7 @@ module Aws::S3
1756
1756
  PutBucketPolicyRequest[:payload_member] = PutBucketPolicyRequest.member(:policy)
1757
1757
 
1758
1758
  PutBucketReplicationRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1759
- PutBucketReplicationRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1759
+ PutBucketReplicationRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1760
1760
  PutBucketReplicationRequest.add_member(:replication_configuration, Shapes::ShapeRef.new(shape: ReplicationConfiguration, required: true, location_name: "ReplicationConfiguration", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1761
1761
  PutBucketReplicationRequest.add_member(:token, Shapes::ShapeRef.new(shape: ObjectLockToken, location: "header", location_name: "x-amz-bucket-object-lock-token"))
1762
1762
  PutBucketReplicationRequest.struct_class = Types::PutBucketReplicationRequest
@@ -1764,21 +1764,21 @@ module Aws::S3
1764
1764
  PutBucketReplicationRequest[:payload_member] = PutBucketReplicationRequest.member(:replication_configuration)
1765
1765
 
1766
1766
  PutBucketRequestPaymentRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1767
- PutBucketRequestPaymentRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1767
+ PutBucketRequestPaymentRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1768
1768
  PutBucketRequestPaymentRequest.add_member(:request_payment_configuration, Shapes::ShapeRef.new(shape: RequestPaymentConfiguration, required: true, location_name: "RequestPaymentConfiguration", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1769
1769
  PutBucketRequestPaymentRequest.struct_class = Types::PutBucketRequestPaymentRequest
1770
1770
  PutBucketRequestPaymentRequest[:payload] = :request_payment_configuration
1771
1771
  PutBucketRequestPaymentRequest[:payload_member] = PutBucketRequestPaymentRequest.member(:request_payment_configuration)
1772
1772
 
1773
1773
  PutBucketTaggingRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1774
- PutBucketTaggingRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1774
+ PutBucketTaggingRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1775
1775
  PutBucketTaggingRequest.add_member(:tagging, Shapes::ShapeRef.new(shape: Tagging, required: true, location_name: "Tagging", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1776
1776
  PutBucketTaggingRequest.struct_class = Types::PutBucketTaggingRequest
1777
1777
  PutBucketTaggingRequest[:payload] = :tagging
1778
1778
  PutBucketTaggingRequest[:payload_member] = PutBucketTaggingRequest.member(:tagging)
1779
1779
 
1780
1780
  PutBucketVersioningRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1781
- PutBucketVersioningRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1781
+ PutBucketVersioningRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1782
1782
  PutBucketVersioningRequest.add_member(:mfa, Shapes::ShapeRef.new(shape: MFA, location: "header", location_name: "x-amz-mfa"))
1783
1783
  PutBucketVersioningRequest.add_member(:versioning_configuration, Shapes::ShapeRef.new(shape: VersioningConfiguration, required: true, location_name: "VersioningConfiguration", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1784
1784
  PutBucketVersioningRequest.struct_class = Types::PutBucketVersioningRequest
@@ -1786,7 +1786,7 @@ module Aws::S3
1786
1786
  PutBucketVersioningRequest[:payload_member] = PutBucketVersioningRequest.member(:versioning_configuration)
1787
1787
 
1788
1788
  PutBucketWebsiteRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1789
- PutBucketWebsiteRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1789
+ PutBucketWebsiteRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1790
1790
  PutBucketWebsiteRequest.add_member(:website_configuration, Shapes::ShapeRef.new(shape: WebsiteConfiguration, required: true, location_name: "WebsiteConfiguration", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1791
1791
  PutBucketWebsiteRequest.struct_class = Types::PutBucketWebsiteRequest
1792
1792
  PutBucketWebsiteRequest[:payload] = :website_configuration
@@ -1798,7 +1798,7 @@ module Aws::S3
1798
1798
  PutObjectAclRequest.add_member(:acl, Shapes::ShapeRef.new(shape: ObjectCannedACL, location: "header", location_name: "x-amz-acl"))
1799
1799
  PutObjectAclRequest.add_member(:access_control_policy, Shapes::ShapeRef.new(shape: AccessControlPolicy, location_name: "AccessControlPolicy", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1800
1800
  PutObjectAclRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1801
- PutObjectAclRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1801
+ PutObjectAclRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1802
1802
  PutObjectAclRequest.add_member(:grant_full_control, Shapes::ShapeRef.new(shape: GrantFullControl, location: "header", location_name: "x-amz-grant-full-control"))
1803
1803
  PutObjectAclRequest.add_member(:grant_read, Shapes::ShapeRef.new(shape: GrantRead, location: "header", location_name: "x-amz-grant-read"))
1804
1804
  PutObjectAclRequest.add_member(:grant_read_acp, Shapes::ShapeRef.new(shape: GrantReadACP, location: "header", location_name: "x-amz-grant-read-acp"))
@@ -1819,7 +1819,7 @@ module Aws::S3
1819
1819
  PutObjectLegalHoldRequest.add_member(:legal_hold, Shapes::ShapeRef.new(shape: ObjectLockLegalHold, location_name: "LegalHold", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1820
1820
  PutObjectLegalHoldRequest.add_member(:request_payer, Shapes::ShapeRef.new(shape: RequestPayer, location: "header", location_name: "x-amz-request-payer"))
1821
1821
  PutObjectLegalHoldRequest.add_member(:version_id, Shapes::ShapeRef.new(shape: ObjectVersionId, location: "querystring", location_name: "versionId"))
1822
- PutObjectLegalHoldRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1822
+ PutObjectLegalHoldRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1823
1823
  PutObjectLegalHoldRequest.struct_class = Types::PutObjectLegalHoldRequest
1824
1824
  PutObjectLegalHoldRequest[:payload] = :legal_hold
1825
1825
  PutObjectLegalHoldRequest[:payload_member] = PutObjectLegalHoldRequest.member(:legal_hold)
@@ -1831,7 +1831,7 @@ module Aws::S3
1831
1831
  PutObjectLockConfigurationRequest.add_member(:object_lock_configuration, Shapes::ShapeRef.new(shape: ObjectLockConfiguration, location_name: "ObjectLockConfiguration", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1832
1832
  PutObjectLockConfigurationRequest.add_member(:request_payer, Shapes::ShapeRef.new(shape: RequestPayer, location: "header", location_name: "x-amz-request-payer"))
1833
1833
  PutObjectLockConfigurationRequest.add_member(:token, Shapes::ShapeRef.new(shape: ObjectLockToken, location: "header", location_name: "x-amz-bucket-object-lock-token"))
1834
- PutObjectLockConfigurationRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1834
+ PutObjectLockConfigurationRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1835
1835
  PutObjectLockConfigurationRequest.struct_class = Types::PutObjectLockConfigurationRequest
1836
1836
  PutObjectLockConfigurationRequest[:payload] = :object_lock_configuration
1837
1837
  PutObjectLockConfigurationRequest[:payload_member] = PutObjectLockConfigurationRequest.member(:object_lock_configuration)
@@ -1890,7 +1890,7 @@ module Aws::S3
1890
1890
  PutObjectRetentionRequest.add_member(:request_payer, Shapes::ShapeRef.new(shape: RequestPayer, location: "header", location_name: "x-amz-request-payer"))
1891
1891
  PutObjectRetentionRequest.add_member(:version_id, Shapes::ShapeRef.new(shape: ObjectVersionId, location: "querystring", location_name: "versionId"))
1892
1892
  PutObjectRetentionRequest.add_member(:bypass_governance_retention, Shapes::ShapeRef.new(shape: BypassGovernanceRetention, location: "header", location_name: "x-amz-bypass-governance-retention"))
1893
- PutObjectRetentionRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1893
+ PutObjectRetentionRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1894
1894
  PutObjectRetentionRequest.struct_class = Types::PutObjectRetentionRequest
1895
1895
  PutObjectRetentionRequest[:payload] = :retention
1896
1896
  PutObjectRetentionRequest[:payload_member] = PutObjectRetentionRequest.member(:retention)
@@ -1901,14 +1901,14 @@ module Aws::S3
1901
1901
  PutObjectTaggingRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1902
1902
  PutObjectTaggingRequest.add_member(:key, Shapes::ShapeRef.new(shape: ObjectKey, required: true, location: "uri", location_name: "Key"))
1903
1903
  PutObjectTaggingRequest.add_member(:version_id, Shapes::ShapeRef.new(shape: ObjectVersionId, location: "querystring", location_name: "versionId"))
1904
- PutObjectTaggingRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1904
+ PutObjectTaggingRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1905
1905
  PutObjectTaggingRequest.add_member(:tagging, Shapes::ShapeRef.new(shape: Tagging, required: true, location_name: "Tagging", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1906
1906
  PutObjectTaggingRequest.struct_class = Types::PutObjectTaggingRequest
1907
1907
  PutObjectTaggingRequest[:payload] = :tagging
1908
1908
  PutObjectTaggingRequest[:payload_member] = PutObjectTaggingRequest.member(:tagging)
1909
1909
 
1910
1910
  PutPublicAccessBlockRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1911
- PutPublicAccessBlockRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1911
+ PutPublicAccessBlockRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, deprecated: true, location: "header", location_name: "Content-MD5", metadata: {"deprecatedMessage"=>"Content-MD5 header will now be automatically computed and injected in associated operation's Http request."}))
1912
1912
  PutPublicAccessBlockRequest.add_member(:public_access_block_configuration, Shapes::ShapeRef.new(shape: PublicAccessBlockConfiguration, required: true, location_name: "PublicAccessBlockConfiguration", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1913
1913
  PutPublicAccessBlockRequest.struct_class = Types::PutPublicAccessBlockRequest
1914
1914
  PutPublicAccessBlockRequest[:payload] = :public_access_block_configuration
@@ -2378,6 +2378,7 @@ module Aws::S3
2378
2378
  o.name = "DeleteObjects"
2379
2379
  o.http_method = "POST"
2380
2380
  o.http_request_uri = "/{Bucket}?delete"
2381
+ o.http_checksum_required = true
2381
2382
  o.input = Shapes::ShapeRef.new(shape: DeleteObjectsRequest)
2382
2383
  o.output = Shapes::ShapeRef.new(shape: DeleteObjectsOutput)
2383
2384
  end)
@@ -2758,6 +2759,7 @@ module Aws::S3
2758
2759
  o.name = "PutBucketAcl"
2759
2760
  o.http_method = "PUT"
2760
2761
  o.http_request_uri = "/{Bucket}?acl"
2762
+ o.http_checksum_required = true
2761
2763
  o.input = Shapes::ShapeRef.new(shape: PutBucketAclRequest)
2762
2764
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2763
2765
  end)
@@ -2774,6 +2776,7 @@ module Aws::S3
2774
2776
  o.name = "PutBucketCors"
2775
2777
  o.http_method = "PUT"
2776
2778
  o.http_request_uri = "/{Bucket}?cors"
2779
+ o.http_checksum_required = true
2777
2780
  o.input = Shapes::ShapeRef.new(shape: PutBucketCorsRequest)
2778
2781
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2779
2782
  end)
@@ -2782,6 +2785,7 @@ module Aws::S3
2782
2785
  o.name = "PutBucketEncryption"
2783
2786
  o.http_method = "PUT"
2784
2787
  o.http_request_uri = "/{Bucket}?encryption"
2788
+ o.http_checksum_required = true
2785
2789
  o.input = Shapes::ShapeRef.new(shape: PutBucketEncryptionRequest)
2786
2790
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2787
2791
  end)
@@ -2798,6 +2802,7 @@ module Aws::S3
2798
2802
  o.name = "PutBucketLifecycle"
2799
2803
  o.http_method = "PUT"
2800
2804
  o.http_request_uri = "/{Bucket}?lifecycle"
2805
+ o.http_checksum_required = true
2801
2806
  o.deprecated = true
2802
2807
  o.input = Shapes::ShapeRef.new(shape: PutBucketLifecycleRequest)
2803
2808
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
@@ -2807,6 +2812,7 @@ module Aws::S3
2807
2812
  o.name = "PutBucketLifecycleConfiguration"
2808
2813
  o.http_method = "PUT"
2809
2814
  o.http_request_uri = "/{Bucket}?lifecycle"
2815
+ o.http_checksum_required = true
2810
2816
  o.input = Shapes::ShapeRef.new(shape: PutBucketLifecycleConfigurationRequest)
2811
2817
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2812
2818
  end)
@@ -2815,6 +2821,7 @@ module Aws::S3
2815
2821
  o.name = "PutBucketLogging"
2816
2822
  o.http_method = "PUT"
2817
2823
  o.http_request_uri = "/{Bucket}?logging"
2824
+ o.http_checksum_required = true
2818
2825
  o.input = Shapes::ShapeRef.new(shape: PutBucketLoggingRequest)
2819
2826
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2820
2827
  end)
@@ -2831,6 +2838,7 @@ module Aws::S3
2831
2838
  o.name = "PutBucketNotification"
2832
2839
  o.http_method = "PUT"
2833
2840
  o.http_request_uri = "/{Bucket}?notification"
2841
+ o.http_checksum_required = true
2834
2842
  o.deprecated = true
2835
2843
  o.input = Shapes::ShapeRef.new(shape: PutBucketNotificationRequest)
2836
2844
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
@@ -2848,6 +2856,7 @@ module Aws::S3
2848
2856
  o.name = "PutBucketPolicy"
2849
2857
  o.http_method = "PUT"
2850
2858
  o.http_request_uri = "/{Bucket}?policy"
2859
+ o.http_checksum_required = true
2851
2860
  o.input = Shapes::ShapeRef.new(shape: PutBucketPolicyRequest)
2852
2861
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2853
2862
  end)
@@ -2856,6 +2865,7 @@ module Aws::S3
2856
2865
  o.name = "PutBucketReplication"
2857
2866
  o.http_method = "PUT"
2858
2867
  o.http_request_uri = "/{Bucket}?replication"
2868
+ o.http_checksum_required = true
2859
2869
  o.input = Shapes::ShapeRef.new(shape: PutBucketReplicationRequest)
2860
2870
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2861
2871
  end)
@@ -2864,6 +2874,7 @@ module Aws::S3
2864
2874
  o.name = "PutBucketRequestPayment"
2865
2875
  o.http_method = "PUT"
2866
2876
  o.http_request_uri = "/{Bucket}?requestPayment"
2877
+ o.http_checksum_required = true
2867
2878
  o.input = Shapes::ShapeRef.new(shape: PutBucketRequestPaymentRequest)
2868
2879
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2869
2880
  end)
@@ -2872,6 +2883,7 @@ module Aws::S3
2872
2883
  o.name = "PutBucketTagging"
2873
2884
  o.http_method = "PUT"
2874
2885
  o.http_request_uri = "/{Bucket}?tagging"
2886
+ o.http_checksum_required = true
2875
2887
  o.input = Shapes::ShapeRef.new(shape: PutBucketTaggingRequest)
2876
2888
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2877
2889
  end)
@@ -2880,6 +2892,7 @@ module Aws::S3
2880
2892
  o.name = "PutBucketVersioning"
2881
2893
  o.http_method = "PUT"
2882
2894
  o.http_request_uri = "/{Bucket}?versioning"
2895
+ o.http_checksum_required = true
2883
2896
  o.input = Shapes::ShapeRef.new(shape: PutBucketVersioningRequest)
2884
2897
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2885
2898
  end)
@@ -2888,6 +2901,7 @@ module Aws::S3
2888
2901
  o.name = "PutBucketWebsite"
2889
2902
  o.http_method = "PUT"
2890
2903
  o.http_request_uri = "/{Bucket}?website"
2904
+ o.http_checksum_required = true
2891
2905
  o.input = Shapes::ShapeRef.new(shape: PutBucketWebsiteRequest)
2892
2906
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2893
2907
  end)
@@ -2904,6 +2918,7 @@ module Aws::S3
2904
2918
  o.name = "PutObjectAcl"
2905
2919
  o.http_method = "PUT"
2906
2920
  o.http_request_uri = "/{Bucket}/{Key+}?acl"
2921
+ o.http_checksum_required = true
2907
2922
  o.input = Shapes::ShapeRef.new(shape: PutObjectAclRequest)
2908
2923
  o.output = Shapes::ShapeRef.new(shape: PutObjectAclOutput)
2909
2924
  o.errors << Shapes::ShapeRef.new(shape: NoSuchKey)
@@ -2913,6 +2928,7 @@ module Aws::S3
2913
2928
  o.name = "PutObjectLegalHold"
2914
2929
  o.http_method = "PUT"
2915
2930
  o.http_request_uri = "/{Bucket}/{Key+}?legal-hold"
2931
+ o.http_checksum_required = true
2916
2932
  o.input = Shapes::ShapeRef.new(shape: PutObjectLegalHoldRequest)
2917
2933
  o.output = Shapes::ShapeRef.new(shape: PutObjectLegalHoldOutput)
2918
2934
  end)
@@ -2921,6 +2937,7 @@ module Aws::S3
2921
2937
  o.name = "PutObjectLockConfiguration"
2922
2938
  o.http_method = "PUT"
2923
2939
  o.http_request_uri = "/{Bucket}?object-lock"
2940
+ o.http_checksum_required = true
2924
2941
  o.input = Shapes::ShapeRef.new(shape: PutObjectLockConfigurationRequest)
2925
2942
  o.output = Shapes::ShapeRef.new(shape: PutObjectLockConfigurationOutput)
2926
2943
  end)
@@ -2929,6 +2946,7 @@ module Aws::S3
2929
2946
  o.name = "PutObjectRetention"
2930
2947
  o.http_method = "PUT"
2931
2948
  o.http_request_uri = "/{Bucket}/{Key+}?retention"
2949
+ o.http_checksum_required = true
2932
2950
  o.input = Shapes::ShapeRef.new(shape: PutObjectRetentionRequest)
2933
2951
  o.output = Shapes::ShapeRef.new(shape: PutObjectRetentionOutput)
2934
2952
  end)
@@ -2937,6 +2955,7 @@ module Aws::S3
2937
2955
  o.name = "PutObjectTagging"
2938
2956
  o.http_method = "PUT"
2939
2957
  o.http_request_uri = "/{Bucket}/{Key+}?tagging"
2958
+ o.http_checksum_required = true
2940
2959
  o.input = Shapes::ShapeRef.new(shape: PutObjectTaggingRequest)
2941
2960
  o.output = Shapes::ShapeRef.new(shape: PutObjectTaggingOutput)
2942
2961
  end)
@@ -2945,6 +2964,7 @@ module Aws::S3
2945
2964
  o.name = "PutPublicAccessBlock"
2946
2965
  o.http_method = "PUT"
2947
2966
  o.http_request_uri = "/{Bucket}?publicAccessBlock"
2967
+ o.http_checksum_required = true
2948
2968
  o.input = Shapes::ShapeRef.new(shape: PutPublicAccessBlockRequest)
2949
2969
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2950
2970
  end)
@@ -5,6 +5,8 @@ module Aws
5
5
  class Bucket
6
6
  # Save the old initialize method so that we can call 'super'.
7
7
  old_initialize = instance_method(:initialize)
8
+ # Make the method redefinable
9
+ alias_method :initialize, :initialize
8
10
  # Define a new initialize method that extracts out a bucket ARN.
9
11
  define_method(:initialize) do |*args|
10
12
  old_initialize.bind(self).call(*args)
@@ -3,6 +3,9 @@ module Aws
3
3
  class Object
4
4
  alias size content_length
5
5
 
6
+ # Make the method redefinable
7
+ alias_method :copy_from, :copy_from
8
+
6
9
  # Copies another object to this object. Use `multipart_copy: true`
7
10
  # for large objects. This is required for objects that exceed 5GB.
8
11
  #
@@ -4,6 +4,9 @@ module Aws
4
4
 
5
5
  alias content_length size
6
6
 
7
+ # Make the method redefinable
8
+ alias_method :copy_from, :copy_from
9
+
7
10
  # @param (see Object#copy_from)
8
11
  # @options (see Object#copy_from)
9
12
  # @return (see Object#copy_from)
@@ -181,7 +181,7 @@ module Aws
181
181
 
182
182
  extend Deprecations
183
183
  extend Forwardable
184
- def_delegators :@client, :config, :delete_object, :head_object
184
+ def_delegators :@client, :config, :delete_object, :head_object, :build_request
185
185
 
186
186
  # Creates a new encryption client. You must provide one of the following
187
187
  # options:
@@ -41,6 +41,10 @@ module Aws::S3
41
41
  @event_emitter.on(:initial_response, block) if block_given?
42
42
  end
43
43
 
44
+ def on_unknown_event(&block)
45
+ @event_emitter.on(:unknown_event, block) if block_given?
46
+ end
47
+
44
48
  def on_event(&block)
45
49
  on_records_event(&block)
46
50
  on_stats_event(&block)
@@ -49,6 +53,7 @@ module Aws::S3
49
53
  on_end_event(&block)
50
54
  on_error_event(&block)
51
55
  on_initial_response_event(&block)
56
+ on_unknown_event(&block)
52
57
  end
53
58
 
54
59
  # @api private
@@ -274,7 +274,7 @@ module Aws::S3
274
274
  key: @object_key,
275
275
  upload_id: @id
276
276
  )
277
- resp = @client.complete_multipart_upload(options)
277
+ @client.complete_multipart_upload(options)
278
278
  Object.new(
279
279
  bucket_name: @bucket_name,
280
280
  key: @object_key,
@@ -216,7 +216,8 @@ module Aws::S3
216
216
  end
217
217
 
218
218
  # Provides storage class information of the object. Amazon S3 returns
219
- # this header for all objects except for Standard storage class objects.
219
+ # this header for all objects except for S3 Standard storage class
220
+ # objects.
220
221
  #
221
222
  # For more information, see [Storage Classes][1].
222
223
  #
@@ -744,7 +745,16 @@ module Aws::S3
744
745
  # @option options [String] :range
745
746
  # Downloads the specified range bytes of an object. For more information
746
747
  # about the HTTP Range header, see
747
- # [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35]().
748
+ # [https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35][1].
749
+ #
750
+ # <note markdown="1"> Amazon S3 doesn't support retrieving multiple ranges of data per
751
+ # `GET` request.
752
+ #
753
+ # </note>
754
+ #
755
+ #
756
+ #
757
+ # [1]: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
748
758
  # @option options [String] :response_cache_control
749
759
  # Sets the `Cache-Control` header of the response.
750
760
  # @option options [String] :response_content_disposition
@@ -1051,8 +1061,8 @@ module Aws::S3
1051
1061
  # The server-side encryption algorithm used when storing this object in
1052
1062
  # Amazon S3 (for example, AES256, aws:kms).
1053
1063
  # @option options [String] :storage_class
1054
- # If you don't specify, Standard is the default storage class. Amazon
1055
- # S3 supports other storage classes.
1064
+ # If you don't specify, S3 Standard is the default storage class.
1065
+ # Amazon S3 supports other storage classes.
1056
1066
  # @option options [String] :website_redirect_location
1057
1067
  # If the bucket is configured as a website, redirects requests for this
1058
1068
  # object to another object in the same bucket or to an external URL.
@@ -495,7 +495,16 @@ module Aws::S3
495
495
  # @option options [String] :range
496
496
  # Downloads the specified range bytes of an object. For more information
497
497
  # about the HTTP Range header, see
498
- # [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35]().
498
+ # [https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35][1].
499
+ #
500
+ # <note markdown="1"> Amazon S3 doesn't support retrieving multiple ranges of data per
501
+ # `GET` request.
502
+ #
503
+ # </note>
504
+ #
505
+ #
506
+ #
507
+ # [1]: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
499
508
  # @option options [String] :response_cache_control
500
509
  # Sets the `Cache-Control` header of the response.
501
510
  # @option options [String] :response_content_disposition
@@ -802,8 +811,8 @@ module Aws::S3
802
811
  # The server-side encryption algorithm used when storing this object in
803
812
  # Amazon S3 (for example, AES256, aws:kms).
804
813
  # @option options [String] :storage_class
805
- # If you don't specify, Standard is the default storage class. Amazon
806
- # S3 supports other storage classes.
814
+ # If you don't specify, S3 Standard is the default storage class.
815
+ # Amazon S3 supports other storage classes.
807
816
  # @option options [String] :website_redirect_location
808
817
  # If the bucket is configured as a website, redirects requests for this
809
818
  # object to another object in the same bucket or to an external URL.
@@ -299,7 +299,16 @@ module Aws::S3
299
299
  # @option options [String] :range
300
300
  # Downloads the specified range bytes of an object. For more information
301
301
  # about the HTTP Range header, see
302
- # [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35]().
302
+ # [https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35][1].
303
+ #
304
+ # <note markdown="1"> Amazon S3 doesn't support retrieving multiple ranges of data per
305
+ # `GET` request.
306
+ #
307
+ # </note>
308
+ #
309
+ #
310
+ #
311
+ # [1]: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
303
312
  # @option options [String] :response_cache_control
304
313
  # Sets the `Cache-Control` header of the response.
305
314
  # @option options [String] :response_content_disposition
@@ -382,6 +391,11 @@ module Aws::S3
382
391
  # Downloads the specified range bytes of an object. For more information
383
392
  # about the HTTP Range header, see
384
393
  # [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35]().
394
+ #
395
+ # <note markdown="1"> Amazon S3 doesn't support retrieving multiple ranges of data per
396
+ # `GET` request.
397
+ #
398
+ # </note>
385
399
  # @option options [String] :sse_customer_algorithm
386
400
  # Specifies the algorithm to use to when encrypting the object (for
387
401
  # example, AES256).