@aws-sdk/client-s3 3.288.0 → 3.290.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.
Files changed (94) hide show
  1. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +17 -0
  2. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +34 -0
  3. package/dist-types/commands/CopyObjectCommand.d.ts +26 -0
  4. package/dist-types/commands/CreateBucketCommand.d.ts +46 -0
  5. package/dist-types/commands/CreateMultipartUploadCommand.d.ts +20 -0
  6. package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +1 -0
  7. package/dist-types/commands/DeleteBucketCommand.d.ts +12 -0
  8. package/dist-types/commands/DeleteBucketCorsCommand.d.ts +12 -0
  9. package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +1 -0
  10. package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
  11. package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +1 -0
  12. package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +12 -0
  13. package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +1 -0
  14. package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +1 -0
  15. package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +12 -0
  16. package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +12 -0
  17. package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +12 -0
  18. package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +12 -0
  19. package/dist-types/commands/DeleteObjectCommand.d.ts +25 -0
  20. package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +36 -0
  21. package/dist-types/commands/DeleteObjectsCommand.d.ts +77 -0
  22. package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +1 -0
  23. package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +1 -0
  24. package/dist-types/commands/GetBucketAclCommand.d.ts +1 -0
  25. package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +1 -0
  26. package/dist-types/commands/GetBucketCorsCommand.d.ts +30 -0
  27. package/dist-types/commands/GetBucketEncryptionCommand.d.ts +1 -0
  28. package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
  29. package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -0
  30. package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +29 -0
  31. package/dist-types/commands/GetBucketLocationCommand.d.ts +17 -0
  32. package/dist-types/commands/GetBucketLoggingCommand.d.ts +1 -0
  33. package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +1 -0
  34. package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +1 -0
  35. package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +1 -0
  36. package/dist-types/commands/GetBucketPolicyCommand.d.ts +17 -0
  37. package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +1 -0
  38. package/dist-types/commands/GetBucketReplicationCommand.d.ts +29 -0
  39. package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +17 -0
  40. package/dist-types/commands/GetBucketTaggingCommand.d.ts +26 -0
  41. package/dist-types/commands/GetBucketVersioningCommand.d.ts +18 -0
  42. package/dist-types/commands/GetBucketWebsiteCommand.d.ts +22 -0
  43. package/dist-types/commands/GetObjectAclCommand.d.ts +58 -0
  44. package/dist-types/commands/GetObjectAttributesCommand.d.ts +4 -0
  45. package/dist-types/commands/GetObjectCommand.d.ts +56 -0
  46. package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +1 -0
  47. package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +1 -0
  48. package/dist-types/commands/GetObjectRetentionCommand.d.ts +1 -0
  49. package/dist-types/commands/GetObjectTaggingCommand.d.ts +52 -0
  50. package/dist-types/commands/GetObjectTorrentCommand.d.ts +13 -0
  51. package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +1 -0
  52. package/dist-types/commands/HeadBucketCommand.d.ts +15 -0
  53. package/dist-types/commands/HeadObjectCommand.d.ts +27 -0
  54. package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +1 -0
  55. package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +1 -0
  56. package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -0
  57. package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +1 -0
  58. package/dist-types/commands/ListBucketsCommand.d.ts +32 -0
  59. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +101 -0
  60. package/dist-types/commands/ListObjectVersionsCommand.d.ts +45 -0
  61. package/dist-types/commands/ListObjectsCommand.d.ts +45 -0
  62. package/dist-types/commands/ListObjectsV2Command.d.ts +42 -0
  63. package/dist-types/commands/ListPartsCommand.d.ts +41 -0
  64. package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +1 -0
  65. package/dist-types/commands/PutBucketAclCommand.d.ts +14 -0
  66. package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +1 -0
  67. package/dist-types/commands/PutBucketCorsCommand.d.ts +46 -0
  68. package/dist-types/commands/PutBucketEncryptionCommand.d.ts +1 -0
  69. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
  70. package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -0
  71. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +32 -0
  72. package/dist-types/commands/PutBucketLoggingCommand.d.ts +27 -0
  73. package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -0
  74. package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +22 -0
  75. package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +1 -0
  76. package/dist-types/commands/PutBucketPolicyCommand.d.ts +13 -0
  77. package/dist-types/commands/PutBucketReplicationCommand.d.ts +25 -0
  78. package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +15 -0
  79. package/dist-types/commands/PutBucketTaggingCommand.d.ts +24 -0
  80. package/dist-types/commands/PutBucketVersioningCommand.d.ts +16 -0
  81. package/dist-types/commands/PutBucketWebsiteCommand.d.ts +21 -0
  82. package/dist-types/commands/PutObjectAclCommand.d.ts +19 -0
  83. package/dist-types/commands/PutObjectCommand.d.ts +146 -0
  84. package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +1 -0
  85. package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +1 -0
  86. package/dist-types/commands/PutObjectRetentionCommand.d.ts +1 -0
  87. package/dist-types/commands/PutObjectTaggingCommand.d.ts +30 -0
  88. package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -0
  89. package/dist-types/commands/RestoreObjectCommand.d.ts +22 -0
  90. package/dist-types/commands/SelectObjectContentCommand.d.ts +1 -0
  91. package/dist-types/commands/UploadPartCommand.d.ts +21 -0
  92. package/dist-types/commands/UploadPartCopyCommand.d.ts +48 -0
  93. package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +1 -0
  94. package/package.json +45 -45
@@ -82,6 +82,35 @@ export interface GetBucketLifecycleConfigurationCommandOutput extends GetBucketL
82
82
  * @see {@link GetBucketLifecycleConfigurationCommandOutput} for command's `response` shape.
83
83
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
84
84
  *
85
+ *
86
+ * @example To get lifecycle configuration on a bucket
87
+ * ```javascript
88
+ * // The following example retrieves lifecycle configuration on set on a bucket.
89
+ * const input = {
90
+ * "Bucket": "examplebucket"
91
+ * };
92
+ * const command = new GetBucketLifecycleConfigurationCommand(input);
93
+ * const response = await client.send(command);
94
+ * /* response ==
95
+ * {
96
+ * "Rules": [
97
+ * {
98
+ * "ID": "Rule for TaxDocs/",
99
+ * "Prefix": "TaxDocs",
100
+ * "Status": "Enabled",
101
+ * "Transitions": [
102
+ * {
103
+ * "Days": 365,
104
+ * "StorageClass": "STANDARD_IA"
105
+ * }
106
+ * ]
107
+ * }
108
+ * ]
109
+ * }
110
+ * *\/
111
+ * // example id: to-get-lifecycle-configuration-on-a-bucket-1481666063200
112
+ * ```
113
+ *
85
114
  */
86
115
  export declare class GetBucketLifecycleConfigurationCommand extends $Command<GetBucketLifecycleConfigurationCommandInput, GetBucketLifecycleConfigurationCommandOutput, S3ClientResolvedConfig> {
87
116
  readonly input: GetBucketLifecycleConfigurationCommandInput;
@@ -46,6 +46,23 @@ export interface GetBucketLocationCommandOutput extends GetBucketLocationOutput,
46
46
  * @see {@link GetBucketLocationCommandOutput} for command's `response` shape.
47
47
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
48
48
  *
49
+ *
50
+ * @example To get bucket location
51
+ * ```javascript
52
+ * // The following example returns bucket location.
53
+ * const input = {
54
+ * "Bucket": "examplebucket"
55
+ * };
56
+ * const command = new GetBucketLocationCommand(input);
57
+ * const response = await client.send(command);
58
+ * /* response ==
59
+ * {
60
+ * "LocationConstraint": "us-west-2"
61
+ * }
62
+ * *\/
63
+ * // example id: to-get-bucket-location-1481594573609
64
+ * ```
65
+ *
49
66
  */
50
67
  export declare class GetBucketLocationCommand extends $Command<GetBucketLocationCommandInput, GetBucketLocationCommandOutput, S3ClientResolvedConfig> {
51
68
  readonly input: GetBucketLocationCommandInput;
@@ -43,6 +43,7 @@ export interface GetBucketLoggingCommandOutput extends GetBucketLoggingOutput, _
43
43
  * @see {@link GetBucketLoggingCommandOutput} for command's `response` shape.
44
44
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
45
45
  *
46
+ *
46
47
  */
47
48
  export declare class GetBucketLoggingCommand extends $Command<GetBucketLoggingCommandInput, GetBucketLoggingCommandOutput, S3ClientResolvedConfig> {
48
49
  readonly input: GetBucketLoggingCommandInput;
@@ -62,6 +62,7 @@ export interface GetBucketMetricsConfigurationCommandOutput extends GetBucketMet
62
62
  * @see {@link GetBucketMetricsConfigurationCommandOutput} for command's `response` shape.
63
63
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
64
64
  *
65
+ *
65
66
  */
66
67
  export declare class GetBucketMetricsConfigurationCommand extends $Command<GetBucketMetricsConfigurationCommandInput, GetBucketMetricsConfigurationCommandOutput, S3ClientResolvedConfig> {
67
68
  readonly input: GetBucketMetricsConfigurationCommandInput;
@@ -46,6 +46,7 @@ export interface GetBucketNotificationConfigurationCommandOutput extends Notific
46
46
  * @see {@link GetBucketNotificationConfigurationCommandOutput} for command's `response` shape.
47
47
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
48
48
  *
49
+ *
49
50
  */
50
51
  export declare class GetBucketNotificationConfigurationCommand extends $Command<GetBucketNotificationConfigurationCommandInput, GetBucketNotificationConfigurationCommandOutput, S3ClientResolvedConfig> {
51
52
  readonly input: GetBucketNotificationConfigurationCommandInput;
@@ -46,6 +46,7 @@ export interface GetBucketOwnershipControlsCommandOutput extends GetBucketOwners
46
46
  * @see {@link GetBucketOwnershipControlsCommandOutput} for command's `response` shape.
47
47
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
48
48
  *
49
+ *
49
50
  */
50
51
  export declare class GetBucketOwnershipControlsCommand extends $Command<GetBucketOwnershipControlsCommandInput, GetBucketOwnershipControlsCommandOutput, S3ClientResolvedConfig> {
51
52
  readonly input: GetBucketOwnershipControlsCommandInput;
@@ -51,6 +51,23 @@ export interface GetBucketPolicyCommandOutput extends GetBucketPolicyOutput, __M
51
51
  * @see {@link GetBucketPolicyCommandOutput} for command's `response` shape.
52
52
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
53
53
  *
54
+ *
55
+ * @example To get bucket policy
56
+ * ```javascript
57
+ * // The following example returns bucket policy associated with a bucket.
58
+ * const input = {
59
+ * "Bucket": "examplebucket"
60
+ * };
61
+ * const command = new GetBucketPolicyCommand(input);
62
+ * const response = await client.send(command);
63
+ * /* response ==
64
+ * {
65
+ * "Policy": "{\"Version\":\"2008-10-17\",\"Id\":\"LogPolicy\",\"Statement\":[{\"Sid\":\"Enables the log delivery group to publish logs to your bucket \",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"111122223333\"},\"Action\":[\"s3:GetBucketAcl\",\"s3:GetObjectAcl\",\"s3:PutObject\"],\"Resource\":[\"arn:aws:s3:::policytest1/*\",\"arn:aws:s3:::policytest1\"]}]}"
66
+ * }
67
+ * *\/
68
+ * // example id: to-get-bucket-policy-1481595098424
69
+ * ```
70
+ *
54
71
  */
55
72
  export declare class GetBucketPolicyCommand extends $Command<GetBucketPolicyCommandInput, GetBucketPolicyCommandOutput, S3ClientResolvedConfig> {
56
73
  readonly input: GetBucketPolicyCommandInput;
@@ -57,6 +57,7 @@ export interface GetBucketPolicyStatusCommandOutput extends GetBucketPolicyStatu
57
57
  * @see {@link GetBucketPolicyStatusCommandOutput} for command's `response` shape.
58
58
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
59
59
  *
60
+ *
60
61
  */
61
62
  export declare class GetBucketPolicyStatusCommand extends $Command<GetBucketPolicyStatusCommandInput, GetBucketPolicyStatusCommandOutput, S3ClientResolvedConfig> {
62
63
  readonly input: GetBucketPolicyStatusCommandInput;
@@ -58,6 +58,35 @@ export interface GetBucketReplicationCommandOutput extends GetBucketReplicationO
58
58
  * @see {@link GetBucketReplicationCommandOutput} for command's `response` shape.
59
59
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
60
60
  *
61
+ *
62
+ * @example To get replication configuration set on a bucket
63
+ * ```javascript
64
+ * // The following example returns replication configuration set on a bucket.
65
+ * const input = {
66
+ * "Bucket": "examplebucket"
67
+ * };
68
+ * const command = new GetBucketReplicationCommand(input);
69
+ * const response = await client.send(command);
70
+ * /* response ==
71
+ * {
72
+ * "ReplicationConfiguration": {
73
+ * "Role": "arn:aws:iam::acct-id:role/example-role",
74
+ * "Rules": [
75
+ * {
76
+ * "Destination": {
77
+ * "Bucket": "arn:aws:s3:::destination-bucket"
78
+ * },
79
+ * "ID": "MWIwNTkwZmItMTE3MS00ZTc3LWJkZDEtNzRmODQwYzc1OTQy",
80
+ * "Prefix": "Tax",
81
+ * "Status": "Enabled"
82
+ * }
83
+ * ]
84
+ * }
85
+ * }
86
+ * *\/
87
+ * // example id: to-get-replication-configuration-set-on-a-bucket-1481593597175
88
+ * ```
89
+ *
61
90
  */
62
91
  export declare class GetBucketReplicationCommand extends $Command<GetBucketReplicationCommandInput, GetBucketReplicationCommandOutput, S3ClientResolvedConfig> {
63
92
  readonly input: GetBucketReplicationCommandInput;
@@ -38,6 +38,23 @@ export interface GetBucketRequestPaymentCommandOutput extends GetBucketRequestPa
38
38
  * @see {@link GetBucketRequestPaymentCommandOutput} for command's `response` shape.
39
39
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
40
40
  *
41
+ *
42
+ * @example To get bucket versioning configuration
43
+ * ```javascript
44
+ * // The following example retrieves bucket versioning configuration.
45
+ * const input = {
46
+ * "Bucket": "examplebucket"
47
+ * };
48
+ * const command = new GetBucketRequestPaymentCommand(input);
49
+ * const response = await client.send(command);
50
+ * /* response ==
51
+ * {
52
+ * "Payer": "BucketOwner"
53
+ * }
54
+ * *\/
55
+ * // example id: to-get-bucket-versioning-configuration-1483037183929
56
+ * ```
57
+ *
41
58
  */
42
59
  export declare class GetBucketRequestPaymentCommand extends $Command<GetBucketRequestPaymentCommandInput, GetBucketRequestPaymentCommandOutput, S3ClientResolvedConfig> {
43
60
  readonly input: GetBucketRequestPaymentCommandInput;
@@ -58,6 +58,32 @@ export interface GetBucketTaggingCommandOutput extends GetBucketTaggingOutput, _
58
58
  * @see {@link GetBucketTaggingCommandOutput} for command's `response` shape.
59
59
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
60
60
  *
61
+ *
62
+ * @example To get tag set associated with a bucket
63
+ * ```javascript
64
+ * // The following example returns tag set associated with a bucket
65
+ * const input = {
66
+ * "Bucket": "examplebucket"
67
+ * };
68
+ * const command = new GetBucketTaggingCommand(input);
69
+ * const response = await client.send(command);
70
+ * /* response ==
71
+ * {
72
+ * "TagSet": [
73
+ * {
74
+ * "Key": "key1",
75
+ * "Value": "value1"
76
+ * },
77
+ * {
78
+ * "Key": "key2",
79
+ * "Value": "value2"
80
+ * }
81
+ * ]
82
+ * }
83
+ * *\/
84
+ * // example id: to-get-tag-set-associated-with-a-bucket-1481593232107
85
+ * ```
86
+ *
61
87
  */
62
88
  export declare class GetBucketTaggingCommand extends $Command<GetBucketTaggingCommandInput, GetBucketTaggingCommandOutput, S3ClientResolvedConfig> {
63
89
  readonly input: GetBucketTaggingCommandInput;
@@ -51,6 +51,24 @@ export interface GetBucketVersioningCommandOutput extends GetBucketVersioningOut
51
51
  * @see {@link GetBucketVersioningCommandOutput} for command's `response` shape.
52
52
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
53
53
  *
54
+ *
55
+ * @example To get bucket versioning configuration
56
+ * ```javascript
57
+ * // The following example retrieves bucket versioning configuration.
58
+ * const input = {
59
+ * "Bucket": "examplebucket"
60
+ * };
61
+ * const command = new GetBucketVersioningCommand(input);
62
+ * const response = await client.send(command);
63
+ * /* response ==
64
+ * {
65
+ * "MFADelete": "Disabled",
66
+ * "Status": "Enabled"
67
+ * }
68
+ * *\/
69
+ * // example id: to-get-bucket-versioning-configuration-1483037183929
70
+ * ```
71
+ *
54
72
  */
55
73
  export declare class GetBucketVersioningCommand extends $Command<GetBucketVersioningCommandInput, GetBucketVersioningCommandOutput, S3ClientResolvedConfig> {
56
74
  readonly input: GetBucketVersioningCommandInput;
@@ -49,6 +49,28 @@ export interface GetBucketWebsiteCommandOutput extends GetBucketWebsiteOutput, _
49
49
  * @see {@link GetBucketWebsiteCommandOutput} for command's `response` shape.
50
50
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
51
51
  *
52
+ *
53
+ * @example To get bucket website configuration
54
+ * ```javascript
55
+ * // The following example retrieves website configuration of a bucket.
56
+ * const input = {
57
+ * "Bucket": "examplebucket"
58
+ * };
59
+ * const command = new GetBucketWebsiteCommand(input);
60
+ * const response = await client.send(command);
61
+ * /* response ==
62
+ * {
63
+ * "ErrorDocument": {
64
+ * "Key": "error.html"
65
+ * },
66
+ * "IndexDocument": {
67
+ * "Suffix": "index.html"
68
+ * }
69
+ * }
70
+ * *\/
71
+ * // example id: to-get-bucket-website-configuration-1483037016926
72
+ * ```
73
+ *
52
74
  */
53
75
  export declare class GetBucketWebsiteCommand extends $Command<GetBucketWebsiteCommandInput, GetBucketWebsiteCommandOutput, S3ClientResolvedConfig> {
54
76
  readonly input: GetBucketWebsiteCommandInput;
@@ -69,6 +69,64 @@ export interface GetObjectAclCommandOutput extends GetObjectAclOutput, __Metadat
69
69
  * @see {@link GetObjectAclCommandOutput} for command's `response` shape.
70
70
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
71
71
  *
72
+ * @throws {@link NoSuchKey} (client fault)
73
+ * <p>The specified key does not exist.</p>
74
+ *
75
+ *
76
+ * @example To retrieve object ACL
77
+ * ```javascript
78
+ * // The following example retrieves access control list (ACL) of an object.
79
+ * const input = {
80
+ * "Bucket": "examplebucket",
81
+ * "Key": "HappyFace.jpg"
82
+ * };
83
+ * const command = new GetObjectAclCommand(input);
84
+ * const response = await client.send(command);
85
+ * /* response ==
86
+ * {
87
+ * "Grants": [
88
+ * {
89
+ * "Grantee": {
90
+ * "DisplayName": "owner-display-name",
91
+ * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
92
+ * "Type": "CanonicalUser"
93
+ * },
94
+ * "Permission": "WRITE"
95
+ * },
96
+ * {
97
+ * "Grantee": {
98
+ * "DisplayName": "owner-display-name",
99
+ * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
100
+ * "Type": "CanonicalUser"
101
+ * },
102
+ * "Permission": "WRITE_ACP"
103
+ * },
104
+ * {
105
+ * "Grantee": {
106
+ * "DisplayName": "owner-display-name",
107
+ * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
108
+ * "Type": "CanonicalUser"
109
+ * },
110
+ * "Permission": "READ"
111
+ * },
112
+ * {
113
+ * "Grantee": {
114
+ * "DisplayName": "owner-display-name",
115
+ * "ID": "852b113eexamplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
116
+ * "Type": "CanonicalUser"
117
+ * },
118
+ * "Permission": "READ_ACP"
119
+ * }
120
+ * ],
121
+ * "Owner": {
122
+ * "DisplayName": "owner-display-name",
123
+ * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
124
+ * }
125
+ * }
126
+ * *\/
127
+ * // example id: to-retrieve-object-acl-1481833557740
128
+ * ```
129
+ *
72
130
  */
73
131
  export declare class GetObjectAclCommand extends $Command<GetObjectAclCommandInput, GetObjectAclCommandOutput, S3ClientResolvedConfig> {
74
132
  readonly input: GetObjectAclCommandInput;
@@ -178,6 +178,10 @@ export interface GetObjectAttributesCommandOutput extends GetObjectAttributesOut
178
178
  * @see {@link GetObjectAttributesCommandOutput} for command's `response` shape.
179
179
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
180
180
  *
181
+ * @throws {@link NoSuchKey} (client fault)
182
+ * <p>The specified key does not exist.</p>
183
+ *
184
+ *
181
185
  */
182
186
  export declare class GetObjectAttributesCommand extends $Command<GetObjectAttributesCommandInput, GetObjectAttributesCommandOutput, S3ClientResolvedConfig> {
183
187
  readonly input: GetObjectAttributesCommandInput;
@@ -190,6 +190,62 @@ export interface GetObjectCommandOutput extends __WithSdkStreamMixin<GetObjectOu
190
190
  * @see {@link GetObjectCommandOutput} for command's `response` shape.
191
191
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
192
192
  *
193
+ * @throws {@link InvalidObjectState} (client fault)
194
+ * <p>Object is archived and inaccessible until restored.</p>
195
+ *
196
+ * @throws {@link NoSuchKey} (client fault)
197
+ * <p>The specified key does not exist.</p>
198
+ *
199
+ *
200
+ * @example To retrieve a byte range of an object
201
+ * ```javascript
202
+ * // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range.
203
+ * const input = {
204
+ * "Bucket": "examplebucket",
205
+ * "Key": "SampleFile.txt",
206
+ * "Range": "bytes=0-9"
207
+ * };
208
+ * const command = new GetObjectCommand(input);
209
+ * const response = await client.send(command);
210
+ * /* response ==
211
+ * {
212
+ * "AcceptRanges": "bytes",
213
+ * "ContentLength": "10",
214
+ * "ContentRange": "bytes 0-9/43",
215
+ * "ContentType": "text/plain",
216
+ * "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
217
+ * "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT",
218
+ * "Metadata": {},
219
+ * "VersionId": "null"
220
+ * }
221
+ * *\/
222
+ * // example id: to-retrieve-a-byte-range-of-an-object--1481832674603
223
+ * ```
224
+ *
225
+ * @example To retrieve an object
226
+ * ```javascript
227
+ * // The following example retrieves an object for an S3 bucket.
228
+ * const input = {
229
+ * "Bucket": "examplebucket",
230
+ * "Key": "HappyFace.jpg"
231
+ * };
232
+ * const command = new GetObjectCommand(input);
233
+ * const response = await client.send(command);
234
+ * /* response ==
235
+ * {
236
+ * "AcceptRanges": "bytes",
237
+ * "ContentLength": "3191",
238
+ * "ContentType": "image/jpeg",
239
+ * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
240
+ * "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT",
241
+ * "Metadata": {},
242
+ * "TagCount": 2,
243
+ * "VersionId": "null"
244
+ * }
245
+ * *\/
246
+ * // example id: to-retrieve-an-object-1481827837012
247
+ * ```
248
+ *
193
249
  */
194
250
  export declare class GetObjectCommand extends $Command<GetObjectCommandInput, GetObjectCommandOutput, S3ClientResolvedConfig> {
195
251
  readonly input: GetObjectCommandInput;
@@ -39,6 +39,7 @@ export interface GetObjectLegalHoldCommandOutput extends GetObjectLegalHoldOutpu
39
39
  * @see {@link GetObjectLegalHoldCommandOutput} for command's `response` shape.
40
40
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
41
41
  *
42
+ *
42
43
  */
43
44
  export declare class GetObjectLegalHoldCommand extends $Command<GetObjectLegalHoldCommandInput, GetObjectLegalHoldCommandOutput, S3ClientResolvedConfig> {
44
45
  readonly input: GetObjectLegalHoldCommandInput;
@@ -40,6 +40,7 @@ export interface GetObjectLockConfigurationCommandOutput extends GetObjectLockCo
40
40
  * @see {@link GetObjectLockConfigurationCommandOutput} for command's `response` shape.
41
41
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
42
42
  *
43
+ *
43
44
  */
44
45
  export declare class GetObjectLockConfigurationCommand extends $Command<GetObjectLockConfigurationCommandInput, GetObjectLockConfigurationCommandOutput, S3ClientResolvedConfig> {
45
46
  readonly input: GetObjectLockConfigurationCommandInput;
@@ -38,6 +38,7 @@ export interface GetObjectRetentionCommandOutput extends GetObjectRetentionOutpu
38
38
  * @see {@link GetObjectRetentionCommandOutput} for command's `response` shape.
39
39
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
40
40
  *
41
+ *
41
42
  */
42
43
  export declare class GetObjectRetentionCommand extends $Command<GetObjectRetentionCommandInput, GetObjectRetentionCommandOutput, S3ClientResolvedConfig> {
43
44
  readonly input: GetObjectRetentionCommandInput;
@@ -57,6 +57,58 @@ export interface GetObjectTaggingCommandOutput extends GetObjectTaggingOutput, _
57
57
  * @see {@link GetObjectTaggingCommandOutput} for command's `response` shape.
58
58
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
59
59
  *
60
+ *
61
+ * @example To retrieve tag set of a specific object version
62
+ * ```javascript
63
+ * // The following example retrieves tag set of an object. The request specifies object version.
64
+ * const input = {
65
+ * "Bucket": "examplebucket",
66
+ * "Key": "exampleobject",
67
+ * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
68
+ * };
69
+ * const command = new GetObjectTaggingCommand(input);
70
+ * const response = await client.send(command);
71
+ * /* response ==
72
+ * {
73
+ * "TagSet": [
74
+ * {
75
+ * "Key": "Key1",
76
+ * "Value": "Value1"
77
+ * }
78
+ * ],
79
+ * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
80
+ * }
81
+ * *\/
82
+ * // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663
83
+ * ```
84
+ *
85
+ * @example To retrieve tag set of an object
86
+ * ```javascript
87
+ * // The following example retrieves tag set of an object.
88
+ * const input = {
89
+ * "Bucket": "examplebucket",
90
+ * "Key": "HappyFace.jpg"
91
+ * };
92
+ * const command = new GetObjectTaggingCommand(input);
93
+ * const response = await client.send(command);
94
+ * /* response ==
95
+ * {
96
+ * "TagSet": [
97
+ * {
98
+ * "Key": "Key4",
99
+ * "Value": "Value4"
100
+ * },
101
+ * {
102
+ * "Key": "Key3",
103
+ * "Value": "Value3"
104
+ * }
105
+ * ],
106
+ * "VersionId": "null"
107
+ * }
108
+ * *\/
109
+ * // example id: to-retrieve-tag-set-of-an-object-1481833847896
110
+ * ```
111
+ *
60
112
  */
61
113
  export declare class GetObjectTaggingCommand extends $Command<GetObjectTaggingCommandInput, GetObjectTaggingCommandOutput, S3ClientResolvedConfig> {
62
114
  readonly input: GetObjectTaggingCommandInput;
@@ -45,6 +45,19 @@ export interface GetObjectTorrentCommandOutput extends __WithSdkStreamMixin<GetO
45
45
  * @see {@link GetObjectTorrentCommandOutput} for command's `response` shape.
46
46
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
47
47
  *
48
+ *
49
+ * @example To retrieve torrent files for an object
50
+ * ```javascript
51
+ * // The following example retrieves torrent files of an object.
52
+ * const input = {
53
+ * "Bucket": "examplebucket",
54
+ * "Key": "HappyFace.jpg"
55
+ * };
56
+ * const command = new GetObjectTorrentCommand(input);
57
+ * await client.send(command);
58
+ * // example id: to-retrieve-torrent-files-for-an-object-1481834115959
59
+ * ```
60
+ *
48
61
  */
49
62
  export declare class GetObjectTorrentCommand extends $Command<GetObjectTorrentCommandInput, GetObjectTorrentCommandOutput, S3ClientResolvedConfig> {
50
63
  readonly input: GetObjectTorrentCommandInput;
@@ -65,6 +65,7 @@ export interface GetPublicAccessBlockCommandOutput extends GetPublicAccessBlockO
65
65
  * @see {@link GetPublicAccessBlockCommandOutput} for command's `response` shape.
66
66
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
67
67
  *
68
+ *
68
69
  */
69
70
  export declare class GetPublicAccessBlockCommand extends $Command<GetPublicAccessBlockCommandInput, GetPublicAccessBlockCommandOutput, S3ClientResolvedConfig> {
70
71
  readonly input: GetPublicAccessBlockCommandInput;
@@ -39,6 +39,21 @@ export interface HeadBucketCommandOutput extends __MetadataBearer {
39
39
  * @see {@link HeadBucketCommandOutput} for command's `response` shape.
40
40
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
41
41
  *
42
+ * @throws {@link NotFound} (client fault)
43
+ * <p>The specified content does not exist.</p>
44
+ *
45
+ *
46
+ * @example To determine if bucket exists
47
+ * ```javascript
48
+ * // This operation checks to see if a bucket exists.
49
+ * const input = {
50
+ * "Bucket": "acl1"
51
+ * };
52
+ * const command = new HeadBucketCommand(input);
53
+ * await client.send(command);
54
+ * // example id: to-determine-if-bucket-exists-1473110292262
55
+ * ```
56
+ *
42
57
  */
43
58
  export declare class HeadBucketCommand extends $Command<HeadBucketCommandInput, HeadBucketCommandOutput, S3ClientResolvedConfig> {
44
59
  readonly input: HeadBucketCommandInput;
@@ -138,6 +138,33 @@ export interface HeadObjectCommandOutput extends HeadObjectOutput, __MetadataBea
138
138
  * @see {@link HeadObjectCommandOutput} for command's `response` shape.
139
139
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
140
140
  *
141
+ * @throws {@link NotFound} (client fault)
142
+ * <p>The specified content does not exist.</p>
143
+ *
144
+ *
145
+ * @example To retrieve metadata of an object without returning the object itself
146
+ * ```javascript
147
+ * // The following example retrieves an object metadata.
148
+ * const input = {
149
+ * "Bucket": "examplebucket",
150
+ * "Key": "HappyFace.jpg"
151
+ * };
152
+ * const command = new HeadObjectCommand(input);
153
+ * const response = await client.send(command);
154
+ * /* response ==
155
+ * {
156
+ * "AcceptRanges": "bytes",
157
+ * "ContentLength": "3191",
158
+ * "ContentType": "image/jpeg",
159
+ * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
160
+ * "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT",
161
+ * "Metadata": {},
162
+ * "VersionId": "null"
163
+ * }
164
+ * *\/
165
+ * // example id: to-retrieve-metadata-of-an-object-without-returning-the-object-itself-1481834820480
166
+ * ```
167
+ *
141
168
  */
142
169
  export declare class HeadObjectCommand extends $Command<HeadObjectCommandInput, HeadObjectCommandOutput, S3ClientResolvedConfig> {
143
170
  readonly input: HeadObjectCommandInput;
@@ -64,6 +64,7 @@ export interface ListBucketAnalyticsConfigurationsCommandOutput extends ListBuck
64
64
  * @see {@link ListBucketAnalyticsConfigurationsCommandOutput} for command's `response` shape.
65
65
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
66
66
  *
67
+ *
67
68
  */
68
69
  export declare class ListBucketAnalyticsConfigurationsCommand extends $Command<ListBucketAnalyticsConfigurationsCommandInput, ListBucketAnalyticsConfigurationsCommandOutput, S3ClientResolvedConfig> {
69
70
  readonly input: ListBucketAnalyticsConfigurationsCommandInput;
@@ -51,6 +51,7 @@ export interface ListBucketIntelligentTieringConfigurationsCommandOutput extends
51
51
  * @see {@link ListBucketIntelligentTieringConfigurationsCommandOutput} for command's `response` shape.
52
52
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
53
53
  *
54
+ *
54
55
  */
55
56
  export declare class ListBucketIntelligentTieringConfigurationsCommand extends $Command<ListBucketIntelligentTieringConfigurationsCommandInput, ListBucketIntelligentTieringConfigurationsCommandOutput, S3ClientResolvedConfig> {
56
57
  readonly input: ListBucketIntelligentTieringConfigurationsCommandInput;
@@ -63,6 +63,7 @@ export interface ListBucketInventoryConfigurationsCommandOutput extends ListBuck
63
63
  * @see {@link ListBucketInventoryConfigurationsCommandOutput} for command's `response` shape.
64
64
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
65
65
  *
66
+ *
66
67
  */
67
68
  export declare class ListBucketInventoryConfigurationsCommand extends $Command<ListBucketInventoryConfigurationsCommandInput, ListBucketInventoryConfigurationsCommandOutput, S3ClientResolvedConfig> {
68
69
  readonly input: ListBucketInventoryConfigurationsCommandInput;
@@ -65,6 +65,7 @@ export interface ListBucketMetricsConfigurationsCommandOutput extends ListBucket
65
65
  * @see {@link ListBucketMetricsConfigurationsCommandOutput} for command's `response` shape.
66
66
  * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
67
67
  *
68
+ *
68
69
  */
69
70
  export declare class ListBucketMetricsConfigurationsCommand extends $Command<ListBucketMetricsConfigurationsCommandInput, ListBucketMetricsConfigurationsCommandOutput, S3ClientResolvedConfig> {
70
71
  readonly input: ListBucketMetricsConfigurationsCommandInput;