@aws-sdk/client-s3 3.36.0 → 3.39.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.
- package/CHANGELOG.md +42 -0
- package/dist-cjs/S3.js +0 -3
- package/dist-cjs/S3Client.js +0 -8
- package/dist-cjs/commands/AbortMultipartUploadCommand.js +0 -62
- package/dist-cjs/commands/CompleteMultipartUploadCommand.js +0 -133
- package/dist-cjs/commands/CopyObjectCommand.js +0 -193
- package/dist-cjs/commands/CreateBucketCommand.js +0 -142
- package/dist-cjs/commands/CreateMultipartUploadCommand.js +0 -281
- package/dist-cjs/commands/DeleteBucketAnalyticsConfigurationCommand.js +0 -53
- package/dist-cjs/commands/DeleteBucketCommand.js +0 -41
- package/dist-cjs/commands/DeleteBucketCorsCommand.js +0 -45
- package/dist-cjs/commands/DeleteBucketEncryptionCommand.js +0 -47
- package/dist-cjs/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +0 -46
- package/dist-cjs/commands/DeleteBucketInventoryConfigurationCommand.js +0 -49
- package/dist-cjs/commands/DeleteBucketLifecycleCommand.js +0 -49
- package/dist-cjs/commands/DeleteBucketMetricsConfigurationCommand.js +0 -59
- package/dist-cjs/commands/DeleteBucketOwnershipControlsCommand.js +0 -42
- package/dist-cjs/commands/DeleteBucketPolicyCommand.js +0 -56
- package/dist-cjs/commands/DeleteBucketReplicationCommand.js +0 -49
- package/dist-cjs/commands/DeleteBucketTaggingCommand.js +0 -41
- package/dist-cjs/commands/DeleteBucketWebsiteCommand.js +0 -50
- package/dist-cjs/commands/DeleteObjectCommand.js +0 -54
- package/dist-cjs/commands/DeleteObjectTaggingCommand.js +0 -48
- package/dist-cjs/commands/DeleteObjectsCommand.js +0 -80
- package/dist-cjs/commands/DeletePublicAccessBlockCommand.js +0 -52
- package/dist-cjs/commands/GetBucketAccelerateConfigurationCommand.js +0 -50
- package/dist-cjs/commands/GetBucketAclCommand.js +0 -39
- package/dist-cjs/commands/GetBucketAnalyticsConfigurationCommand.js +0 -53
- package/dist-cjs/commands/GetBucketCorsCommand.js +0 -44
- package/dist-cjs/commands/GetBucketEncryptionCommand.js +0 -45
- package/dist-cjs/commands/GetBucketIntelligentTieringConfigurationCommand.js +0 -46
- package/dist-cjs/commands/GetBucketInventoryConfigurationCommand.js +0 -53
- package/dist-cjs/commands/GetBucketLifecycleConfigurationCommand.js +0 -79
- package/dist-cjs/commands/GetBucketLocationCommand.js +0 -44
- package/dist-cjs/commands/GetBucketLoggingCommand.js +0 -39
- package/dist-cjs/commands/GetBucketMetricsConfigurationCommand.js +0 -60
- package/dist-cjs/commands/GetBucketNotificationConfigurationCommand.js +0 -44
- package/dist-cjs/commands/GetBucketOwnershipControlsCommand.js +0 -41
- package/dist-cjs/commands/GetBucketPolicyCommand.js +0 -50
- package/dist-cjs/commands/GetBucketPolicyStatusCommand.js +0 -54
- package/dist-cjs/commands/GetBucketReplicationCommand.js +0 -58
- package/dist-cjs/commands/GetBucketRequestPaymentCommand.js +0 -34
- package/dist-cjs/commands/GetBucketTaggingCommand.js +0 -55
- package/dist-cjs/commands/GetBucketVersioningCommand.js +0 -48
- package/dist-cjs/commands/GetBucketWebsiteCommand.js +0 -44
- package/dist-cjs/commands/GetObjectAclCommand.js +0 -50
- package/dist-cjs/commands/GetObjectCommand.js +0 -204
- package/dist-cjs/commands/GetObjectLegalHoldCommand.js +0 -25
- package/dist-cjs/commands/GetObjectLockConfigurationCommand.js +0 -27
- package/dist-cjs/commands/GetObjectRetentionCommand.js +0 -25
- package/dist-cjs/commands/GetObjectTaggingCommand.js +0 -51
- package/dist-cjs/commands/GetObjectTorrentCommand.js +0 -40
- package/dist-cjs/commands/GetPublicAccessBlockCommand.js +0 -63
- package/dist-cjs/commands/HeadBucketCommand.js +0 -39
- package/dist-cjs/commands/HeadObjectCommand.js +0 -135
- package/dist-cjs/commands/ListBucketAnalyticsConfigurationsCommand.js +0 -63
- package/dist-cjs/commands/ListBucketIntelligentTieringConfigurationsCommand.js +0 -46
- package/dist-cjs/commands/ListBucketInventoryConfigurationsCommand.js +0 -62
- package/dist-cjs/commands/ListBucketMetricsConfigurationsCommand.js +0 -64
- package/dist-cjs/commands/ListBucketsCommand.js +0 -24
- package/dist-cjs/commands/ListMultipartUploadsCommand.js +0 -74
- package/dist-cjs/commands/ListObjectVersionsCommand.js +0 -62
- package/dist-cjs/commands/ListObjectsCommand.js +0 -61
- package/dist-cjs/commands/ListObjectsV2Command.js +0 -65
- package/dist-cjs/commands/ListPartsCommand.js +0 -68
- package/dist-cjs/commands/PutBucketAccelerateConfigurationCommand.js +0 -69
- package/dist-cjs/commands/PutBucketAclCommand.js +0 -213
- package/dist-cjs/commands/PutBucketAnalyticsConfigurationCommand.js +0 -139
- package/dist-cjs/commands/PutBucketCorsCommand.js +0 -80
- package/dist-cjs/commands/PutBucketEncryptionCommand.js +0 -56
- package/dist-cjs/commands/PutBucketIntelligentTieringConfigurationCommand.js +0 -106
- package/dist-cjs/commands/PutBucketInventoryConfigurationCommand.js +0 -124
- package/dist-cjs/commands/PutBucketLifecycleConfigurationCommand.js +0 -117
- package/dist-cjs/commands/PutBucketLoggingCommand.js +0 -103
- package/dist-cjs/commands/PutBucketMetricsConfigurationCommand.js +0 -74
- package/dist-cjs/commands/PutBucketNotificationConfigurationCommand.js +0 -85
- package/dist-cjs/commands/PutBucketOwnershipControlsCommand.js +0 -40
- package/dist-cjs/commands/PutBucketPolicyCommand.js +0 -53
- package/dist-cjs/commands/PutBucketReplicationCommand.js +0 -93
- package/dist-cjs/commands/PutBucketRequestPaymentCommand.js +0 -42
- package/dist-cjs/commands/PutBucketTaggingCommand.js +0 -102
- package/dist-cjs/commands/PutBucketVersioningCommand.js +0 -72
- package/dist-cjs/commands/PutBucketWebsiteCommand.js +0 -149
- package/dist-cjs/commands/PutObjectAclCommand.js +0 -200
- package/dist-cjs/commands/PutObjectCommand.js +0 -118
- package/dist-cjs/commands/PutObjectLegalHoldCommand.js +0 -27
- package/dist-cjs/commands/PutObjectLockConfigurationCommand.js +0 -44
- package/dist-cjs/commands/PutObjectRetentionCommand.js +0 -36
- package/dist-cjs/commands/PutObjectTaggingCommand.js +0 -127
- package/dist-cjs/commands/PutPublicAccessBlockCommand.js +0 -68
- package/dist-cjs/commands/RestoreObjectCommand.js +0 -315
- package/dist-cjs/commands/SelectObjectContentCommand.js +0 -140
- package/dist-cjs/commands/UploadPartCommand.js +0 -161
- package/dist-cjs/commands/UploadPartCopyCommand.js +0 -202
- package/dist-cjs/commands/WriteGetObjectResponseCommand.js +0 -46
- package/dist-cjs/commands/index.js +95 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +5 -101
- package/dist-cjs/models/models_0.js +0 -753
- package/dist-cjs/models/models_1.js +0 -96
- package/dist-cjs/pagination/ListObjectsV2Paginator.js +0 -10
- package/dist-cjs/pagination/ListPartsPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restXml.js +0 -2
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-cjs/waiters/index.js +7 -0
- package/dist-cjs/waiters/waitForBucketExists.js +0 -9
- package/dist-cjs/waiters/waitForBucketNotExists.js +0 -9
- package/dist-cjs/waiters/waitForObjectExists.js +0 -9
- package/dist-cjs/waiters/waitForObjectNotExists.js +0 -9
- package/dist-es/commands/index.js +92 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +5 -101
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/waiters/index.js +4 -0
- package/dist-types/commands/index.d.ts +92 -0
- package/dist-types/index.d.ts +5 -101
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/S3.d.ts +93 -5172
- package/dist-types/ts3.4/S3Client.d.ts +30 -109
- package/dist-types/ts3.4/commands/AbortMultipartUploadCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/CompleteMultipartUploadCommand.d.ts +2 -129
- package/dist-types/ts3.4/commands/CopyObjectCommand.d.ts +2 -189
- package/dist-types/ts3.4/commands/CreateBucketCommand.d.ts +2 -138
- package/dist-types/ts3.4/commands/CreateMultipartUploadCommand.d.ts +2 -277
- package/dist-types/ts3.4/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/DeleteBucketCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/DeleteBucketCorsCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/DeleteBucketEncryptionCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/DeleteBucketInventoryConfigurationCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/DeleteBucketLifecycleCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/DeleteBucketMetricsConfigurationCommand.d.ts +2 -55
- package/dist-types/ts3.4/commands/DeleteBucketOwnershipControlsCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/DeleteBucketPolicyCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/DeleteBucketReplicationCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/DeleteBucketTaggingCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/DeleteBucketWebsiteCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/DeleteObjectCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/DeleteObjectTaggingCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/DeleteObjectsCommand.d.ts +2 -76
- package/dist-types/ts3.4/commands/DeletePublicAccessBlockCommand.d.ts +2 -48
- package/dist-types/ts3.4/commands/GetBucketAccelerateConfigurationCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/GetBucketAclCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/GetBucketAnalyticsConfigurationCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/GetBucketCorsCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetBucketEncryptionCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/GetBucketInventoryConfigurationCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/GetBucketLifecycleConfigurationCommand.d.ts +2 -75
- package/dist-types/ts3.4/commands/GetBucketLocationCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetBucketLoggingCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/GetBucketMetricsConfigurationCommand.d.ts +2 -56
- package/dist-types/ts3.4/commands/GetBucketNotificationConfigurationCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetBucketOwnershipControlsCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/GetBucketPolicyCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/GetBucketPolicyStatusCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/GetBucketReplicationCommand.d.ts +2 -54
- package/dist-types/ts3.4/commands/GetBucketRequestPaymentCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/GetBucketTaggingCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/GetBucketVersioningCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/GetBucketWebsiteCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetObjectAclCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/GetObjectCommand.d.ts +2 -200
- package/dist-types/ts3.4/commands/GetObjectLegalHoldCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetObjectLockConfigurationCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetObjectRetentionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetObjectTaggingCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/GetObjectTorrentCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/GetPublicAccessBlockCommand.d.ts +2 -59
- package/dist-types/ts3.4/commands/HeadBucketCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/HeadObjectCommand.d.ts +2 -131
- package/dist-types/ts3.4/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +2 -59
- package/dist-types/ts3.4/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/ListBucketInventoryConfigurationsCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/ListBucketMetricsConfigurationsCommand.d.ts +2 -60
- package/dist-types/ts3.4/commands/ListBucketsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListMultipartUploadsCommand.d.ts +2 -70
- package/dist-types/ts3.4/commands/ListObjectVersionsCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/ListObjectsCommand.d.ts +2 -57
- package/dist-types/ts3.4/commands/ListObjectsV2Command.d.ts +2 -61
- package/dist-types/ts3.4/commands/ListPartsCommand.d.ts +2 -64
- package/dist-types/ts3.4/commands/PutBucketAccelerateConfigurationCommand.d.ts +2 -65
- package/dist-types/ts3.4/commands/PutBucketAclCommand.d.ts +2 -209
- package/dist-types/ts3.4/commands/PutBucketAnalyticsConfigurationCommand.d.ts +2 -135
- package/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +2 -76
- package/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +2 -102
- package/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +2 -120
- package/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +2 -113
- package/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +2 -99
- package/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +2 -70
- package/dist-types/ts3.4/commands/PutBucketNotificationConfigurationCommand.d.ts +2 -81
- package/dist-types/ts3.4/commands/PutBucketOwnershipControlsCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +2 -89
- package/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +2 -98
- package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +2 -68
- package/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +2 -145
- package/dist-types/ts3.4/commands/PutObjectAclCommand.d.ts +2 -196
- package/dist-types/ts3.4/commands/PutObjectCommand.d.ts +5 -121
- package/dist-types/ts3.4/commands/PutObjectLegalHoldCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/PutObjectLockConfigurationCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/PutObjectRetentionCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/PutObjectTaggingCommand.d.ts +2 -123
- package/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +2 -64
- package/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +2 -311
- package/dist-types/ts3.4/commands/SelectObjectContentCommand.d.ts +2 -136
- package/dist-types/ts3.4/commands/UploadPartCommand.d.ts +5 -164
- package/dist-types/ts3.4/commands/UploadPartCopyCommand.d.ts +2 -198
- package/dist-types/ts3.4/commands/WriteGetObjectResponseCommand.d.ts +5 -49
- package/dist-types/ts3.4/commands/index.d.ts +92 -0
- package/dist-types/ts3.4/index.d.ts +5 -101
- package/dist-types/ts3.4/models/models_0.d.ts +1305 -7281
- package/dist-types/ts3.4/models/models_1.d.ts +223 -956
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -4
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +4 -0
- package/dist-types/ts3.4/waiters/waitForBucketExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForBucketNotExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForObjectExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForObjectNotExists.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +4 -0
- package/package.json +46 -46
|
@@ -6,64 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Returns an inventory configuration (identified by the inventory configuration ID) from
|
|
11
|
-
* the bucket.</p>
|
|
12
|
-
*
|
|
13
|
-
* <p>To use this operation, you must have permissions to perform the
|
|
14
|
-
* <code>s3:GetInventoryConfiguration</code> action. The bucket owner has this permission
|
|
15
|
-
* by default and can grant this permission to others. For more information about permissions,
|
|
16
|
-
* see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
|
|
17
|
-
* Resources</a>.</p>
|
|
18
|
-
*
|
|
19
|
-
* <p>For information about the Amazon S3 inventory feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html">Amazon S3 Inventory</a>.</p>
|
|
20
|
-
*
|
|
21
|
-
* <p>The following operations are related to
|
|
22
|
-
* <code>GetBucketInventoryConfiguration</code>:</p>
|
|
23
|
-
* <ul>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>
|
|
26
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketInventoryConfiguration.html">DeleteBucketInventoryConfiguration</a>
|
|
27
|
-
* </p>
|
|
28
|
-
* </li>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>
|
|
31
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketInventoryConfigurations.html">ListBucketInventoryConfigurations</a>
|
|
32
|
-
* </p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>
|
|
36
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketInventoryConfiguration.html">PutBucketInventoryConfiguration</a>
|
|
37
|
-
* </p>
|
|
38
|
-
* </li>
|
|
39
|
-
* </ul>
|
|
40
|
-
* @example
|
|
41
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
42
|
-
* ```javascript
|
|
43
|
-
* import { S3Client, GetBucketInventoryConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
44
|
-
* // const { S3Client, GetBucketInventoryConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
45
|
-
* const client = new S3Client(config);
|
|
46
|
-
* const command = new GetBucketInventoryConfigurationCommand(input);
|
|
47
|
-
* const response = await client.send(command);
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* @see {@link GetBucketInventoryConfigurationCommandInput} for command's `input` shape.
|
|
51
|
-
* @see {@link GetBucketInventoryConfigurationCommandOutput} for command's `response` shape.
|
|
52
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
9
|
class GetBucketInventoryConfigurationCommand extends smithy_client_1.Command {
|
|
56
|
-
// Start section: command_properties
|
|
57
|
-
// End section: command_properties
|
|
58
10
|
constructor(input) {
|
|
59
|
-
// Start section: command_constructor
|
|
60
11
|
super();
|
|
61
12
|
this.input = input;
|
|
62
|
-
// End section: command_constructor
|
|
63
13
|
}
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
68
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
16
|
this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
|
|
@@ -6,90 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
9
|
-
/**
|
|
10
|
-
* <note>
|
|
11
|
-
* <p>Bucket lifecycle configuration now supports specifying a lifecycle rule using an
|
|
12
|
-
* object key name prefix, one or more object tags, or a combination of both. Accordingly,
|
|
13
|
-
* this section describes the latest API. The response describes the new filter element
|
|
14
|
-
* that you can use to specify a filter to select a subset of objects to which the rule
|
|
15
|
-
* applies. If you are using a previous version of the lifecycle configuration, it still
|
|
16
|
-
* works. For the earlier action, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycle.html">GetBucketLifecycle</a>.</p>
|
|
17
|
-
* </note>
|
|
18
|
-
* <p>Returns the lifecycle configuration information set on the bucket. For information about
|
|
19
|
-
* lifecycle configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html">Object
|
|
20
|
-
* Lifecycle Management</a>.</p>
|
|
21
|
-
*
|
|
22
|
-
* <p>To use this operation, you must have permission to perform the
|
|
23
|
-
* <code>s3:GetLifecycleConfiguration</code> action. The bucket owner has this permission,
|
|
24
|
-
* by default. The bucket owner can grant this permission to others. For more information
|
|
25
|
-
* about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
|
|
26
|
-
* Resources</a>.</p>
|
|
27
|
-
*
|
|
28
|
-
* <p>
|
|
29
|
-
* <code>GetBucketLifecycleConfiguration</code> has the following special error:</p>
|
|
30
|
-
* <ul>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>Error code: <code>NoSuchLifecycleConfiguration</code>
|
|
33
|
-
* </p>
|
|
34
|
-
* <ul>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>Description: The lifecycle configuration does not exist.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>HTTP Status Code: 404 Not Found</p>
|
|
40
|
-
* </li>
|
|
41
|
-
* <li>
|
|
42
|
-
* <p>SOAP Fault Code Prefix: Client</p>
|
|
43
|
-
* </li>
|
|
44
|
-
* </ul>
|
|
45
|
-
* </li>
|
|
46
|
-
* </ul>
|
|
47
|
-
* <p>The following operations are related to
|
|
48
|
-
* <code>GetBucketLifecycleConfiguration</code>:</p>
|
|
49
|
-
* <ul>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>
|
|
52
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycle.html">GetBucketLifecycle</a>
|
|
53
|
-
* </p>
|
|
54
|
-
* </li>
|
|
55
|
-
* <li>
|
|
56
|
-
* <p>
|
|
57
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html">PutBucketLifecycle</a>
|
|
58
|
-
* </p>
|
|
59
|
-
* </li>
|
|
60
|
-
* <li>
|
|
61
|
-
* <p>
|
|
62
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html">DeleteBucketLifecycle</a>
|
|
63
|
-
* </p>
|
|
64
|
-
* </li>
|
|
65
|
-
* </ul>
|
|
66
|
-
* @example
|
|
67
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
68
|
-
* ```javascript
|
|
69
|
-
* import { S3Client, GetBucketLifecycleConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
70
|
-
* // const { S3Client, GetBucketLifecycleConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
71
|
-
* const client = new S3Client(config);
|
|
72
|
-
* const command = new GetBucketLifecycleConfigurationCommand(input);
|
|
73
|
-
* const response = await client.send(command);
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* @see {@link GetBucketLifecycleConfigurationCommandInput} for command's `input` shape.
|
|
77
|
-
* @see {@link GetBucketLifecycleConfigurationCommandOutput} for command's `response` shape.
|
|
78
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
79
|
-
*
|
|
80
|
-
*/
|
|
81
9
|
class GetBucketLifecycleConfigurationCommand extends smithy_client_1.Command {
|
|
82
|
-
// Start section: command_properties
|
|
83
|
-
// End section: command_properties
|
|
84
10
|
constructor(input) {
|
|
85
|
-
// Start section: command_constructor
|
|
86
11
|
super();
|
|
87
12
|
this.input = input;
|
|
88
|
-
// End section: command_constructor
|
|
89
13
|
}
|
|
90
|
-
/**
|
|
91
|
-
* @internal
|
|
92
|
-
*/
|
|
93
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
94
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
95
16
|
this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
|
|
@@ -6,55 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Returns the Region the bucket resides in. You set the bucket's Region using the
|
|
11
|
-
* <code>LocationConstraint</code> request parameter in a <code>CreateBucket</code>
|
|
12
|
-
* request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html">CreateBucket</a>.</p>
|
|
13
|
-
*
|
|
14
|
-
* <p>To use this implementation of the operation, you must be the bucket owner.</p>
|
|
15
|
-
*
|
|
16
|
-
* <p>To use this API against an access point, provide the alias of the access point in place of the bucket name.</p>
|
|
17
|
-
*
|
|
18
|
-
* <p>The following operations are related to <code>GetBucketLocation</code>:</p>
|
|
19
|
-
* <ul>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>
|
|
22
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a>
|
|
23
|
-
* </p>
|
|
24
|
-
* </li>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>
|
|
27
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html">CreateBucket</a>
|
|
28
|
-
* </p>
|
|
29
|
-
* </li>
|
|
30
|
-
* </ul>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { S3Client, GetBucketLocationCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
35
|
-
* // const { S3Client, GetBucketLocationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
36
|
-
* const client = new S3Client(config);
|
|
37
|
-
* const command = new GetBucketLocationCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link GetBucketLocationCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link GetBucketLocationCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
9
|
class GetBucketLocationCommand extends smithy_client_1.Command {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
10
|
constructor(input) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
11
|
super();
|
|
52
12
|
this.input = input;
|
|
53
|
-
// End section: command_constructor
|
|
54
13
|
}
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
59
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
60
16
|
this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
|
|
@@ -6,50 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Returns the logging status of a bucket and the permissions users have to view and modify
|
|
11
|
-
* that status. To use GET, you must be the bucket owner.</p>
|
|
12
|
-
*
|
|
13
|
-
* <p>The following operations are related to <code>GetBucketLogging</code>:</p>
|
|
14
|
-
* <ul>
|
|
15
|
-
* <li>
|
|
16
|
-
* <p>
|
|
17
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html">CreateBucket</a>
|
|
18
|
-
* </p>
|
|
19
|
-
* </li>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>
|
|
22
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLogging.html">PutBucketLogging</a>
|
|
23
|
-
* </p>
|
|
24
|
-
* </li>
|
|
25
|
-
* </ul>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { S3Client, GetBucketLoggingCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
30
|
-
* // const { S3Client, GetBucketLoggingCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
31
|
-
* const client = new S3Client(config);
|
|
32
|
-
* const command = new GetBucketLoggingCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link GetBucketLoggingCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link GetBucketLoggingCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
9
|
class GetBucketLoggingCommand extends smithy_client_1.Command {
|
|
42
|
-
// Start section: command_properties
|
|
43
|
-
// End section: command_properties
|
|
44
10
|
constructor(input) {
|
|
45
|
-
// Start section: command_constructor
|
|
46
11
|
super();
|
|
47
12
|
this.input = input;
|
|
48
|
-
// End section: command_constructor
|
|
49
13
|
}
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
*/
|
|
53
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
54
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
55
16
|
this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
|
|
@@ -6,71 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Gets a metrics configuration (specified by the metrics configuration ID) from the
|
|
11
|
-
* bucket. Note that this doesn't include the daily storage metrics.</p>
|
|
12
|
-
*
|
|
13
|
-
* <p> To use this operation, you must have permissions to perform the
|
|
14
|
-
* <code>s3:GetMetricsConfiguration</code> action. The bucket owner has this permission by
|
|
15
|
-
* default. The bucket owner can grant this permission to others. For more information about
|
|
16
|
-
* permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
|
|
17
|
-
* Resources</a>.</p>
|
|
18
|
-
*
|
|
19
|
-
* <p> For information about CloudWatch request metrics for Amazon S3, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html">Monitoring Metrics with Amazon
|
|
20
|
-
* CloudWatch</a>.</p>
|
|
21
|
-
*
|
|
22
|
-
* <p>The following operations are related to
|
|
23
|
-
* <code>GetBucketMetricsConfiguration</code>:</p>
|
|
24
|
-
* <ul>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>
|
|
27
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketMetricsConfiguration.html">PutBucketMetricsConfiguration</a>
|
|
28
|
-
* </p>
|
|
29
|
-
* </li>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>
|
|
32
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketMetricsConfiguration.html">DeleteBucketMetricsConfiguration</a>
|
|
33
|
-
* </p>
|
|
34
|
-
* </li>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>
|
|
37
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketMetricsConfigurations.html">ListBucketMetricsConfigurations</a>
|
|
38
|
-
* </p>
|
|
39
|
-
* </li>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>
|
|
42
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html">Monitoring Metrics with Amazon
|
|
43
|
-
* CloudWatch</a>
|
|
44
|
-
* </p>
|
|
45
|
-
* </li>
|
|
46
|
-
* </ul>
|
|
47
|
-
* @example
|
|
48
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
49
|
-
* ```javascript
|
|
50
|
-
* import { S3Client, GetBucketMetricsConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
51
|
-
* // const { S3Client, GetBucketMetricsConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
52
|
-
* const client = new S3Client(config);
|
|
53
|
-
* const command = new GetBucketMetricsConfigurationCommand(input);
|
|
54
|
-
* const response = await client.send(command);
|
|
55
|
-
* ```
|
|
56
|
-
*
|
|
57
|
-
* @see {@link GetBucketMetricsConfigurationCommandInput} for command's `input` shape.
|
|
58
|
-
* @see {@link GetBucketMetricsConfigurationCommandOutput} for command's `response` shape.
|
|
59
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
60
|
-
*
|
|
61
|
-
*/
|
|
62
9
|
class GetBucketMetricsConfigurationCommand extends smithy_client_1.Command {
|
|
63
|
-
// Start section: command_properties
|
|
64
|
-
// End section: command_properties
|
|
65
10
|
constructor(input) {
|
|
66
|
-
// Start section: command_constructor
|
|
67
11
|
super();
|
|
68
12
|
this.input = input;
|
|
69
|
-
// End section: command_constructor
|
|
70
13
|
}
|
|
71
|
-
/**
|
|
72
|
-
* @internal
|
|
73
|
-
*/
|
|
74
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
75
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
76
16
|
this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
|
|
@@ -6,55 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Returns the notification configuration of a bucket.</p>
|
|
11
|
-
* <p>If notifications are not enabled on the bucket, the action returns an empty
|
|
12
|
-
* <code>NotificationConfiguration</code> element.</p>
|
|
13
|
-
*
|
|
14
|
-
* <p>By default, you must be the bucket owner to read the notification configuration of a
|
|
15
|
-
* bucket. However, the bucket owner can use a bucket policy to grant permission to other
|
|
16
|
-
* users to read this configuration with the <code>s3:GetBucketNotification</code>
|
|
17
|
-
* permission.</p>
|
|
18
|
-
*
|
|
19
|
-
* <p>For more information about setting and reading the notification configuration on a
|
|
20
|
-
* bucket, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html">Setting Up Notification of
|
|
21
|
-
* Bucket Events</a>. For more information about bucket policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html">Using Bucket Policies</a>.</p>
|
|
22
|
-
*
|
|
23
|
-
* <p>The following action is related to <code>GetBucketNotification</code>:</p>
|
|
24
|
-
* <ul>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>
|
|
27
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketNotification.html">PutBucketNotification</a>
|
|
28
|
-
* </p>
|
|
29
|
-
* </li>
|
|
30
|
-
* </ul>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { S3Client, GetBucketNotificationConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
35
|
-
* // const { S3Client, GetBucketNotificationConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
36
|
-
* const client = new S3Client(config);
|
|
37
|
-
* const command = new GetBucketNotificationConfigurationCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link GetBucketNotificationConfigurationCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link GetBucketNotificationConfigurationCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
9
|
class GetBucketNotificationConfigurationCommand extends smithy_client_1.Command {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
10
|
constructor(input) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
11
|
super();
|
|
52
12
|
this.input = input;
|
|
53
|
-
// End section: command_constructor
|
|
54
13
|
}
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
59
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
60
16
|
this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
|
|
@@ -6,52 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Retrieves <code>OwnershipControls</code> for an Amazon S3 bucket. To use this operation, you
|
|
11
|
-
* must have the <code>s3:GetBucketOwnershipControls</code> permission. For more information
|
|
12
|
-
* about Amazon S3 permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying
|
|
13
|
-
* Permissions in a Policy</a>. </p>
|
|
14
|
-
* <p>For information about Amazon S3 Object Ownership, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html">Using Object Ownership</a>. </p>
|
|
15
|
-
* <p>The following operations are related to <code>GetBucketOwnershipControls</code>:</p>
|
|
16
|
-
* <ul>
|
|
17
|
-
* <li>
|
|
18
|
-
* <p>
|
|
19
|
-
* <a>PutBucketOwnershipControls</a>
|
|
20
|
-
* </p>
|
|
21
|
-
* </li>
|
|
22
|
-
* <li>
|
|
23
|
-
* <p>
|
|
24
|
-
* <a>DeleteBucketOwnershipControls</a>
|
|
25
|
-
* </p>
|
|
26
|
-
* </li>
|
|
27
|
-
* </ul>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { S3Client, GetBucketOwnershipControlsCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
32
|
-
* // const { S3Client, GetBucketOwnershipControlsCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
33
|
-
* const client = new S3Client(config);
|
|
34
|
-
* const command = new GetBucketOwnershipControlsCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link GetBucketOwnershipControlsCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link GetBucketOwnershipControlsCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
9
|
class GetBucketOwnershipControlsCommand extends smithy_client_1.Command {
|
|
44
|
-
// Start section: command_properties
|
|
45
|
-
// End section: command_properties
|
|
46
10
|
constructor(input) {
|
|
47
|
-
// Start section: command_constructor
|
|
48
11
|
super();
|
|
49
12
|
this.input = input;
|
|
50
|
-
// End section: command_constructor
|
|
51
13
|
}
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
55
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
56
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
57
16
|
this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
|
|
@@ -6,61 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Returns the policy of a specified bucket. If you are using an identity other than the
|
|
11
|
-
* root user of the Amazon Web Services account that owns the bucket, the calling identity must have the
|
|
12
|
-
* <code>GetBucketPolicy</code> permissions on the specified bucket and belong to the
|
|
13
|
-
* bucket owner's account in order to use this operation.</p>
|
|
14
|
-
*
|
|
15
|
-
* <p>If you don't have <code>GetBucketPolicy</code> permissions, Amazon S3 returns a <code>403
|
|
16
|
-
* Access Denied</code> error. If you have the correct permissions, but you're not using an
|
|
17
|
-
* identity that belongs to the bucket owner's account, Amazon S3 returns a <code>405 Method Not
|
|
18
|
-
* Allowed</code> error.</p>
|
|
19
|
-
*
|
|
20
|
-
* <important>
|
|
21
|
-
* <p>As a security precaution, the root user of the Amazon Web Services account that owns a bucket can
|
|
22
|
-
* always use this operation, even if the policy explicitly denies the root user the
|
|
23
|
-
* ability to perform this action.</p>
|
|
24
|
-
* </important>
|
|
25
|
-
*
|
|
26
|
-
* <p>For more information about bucket policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html">Using Bucket Policies and User
|
|
27
|
-
* Policies</a>.</p>
|
|
28
|
-
*
|
|
29
|
-
* <p>The following action is related to <code>GetBucketPolicy</code>:</p>
|
|
30
|
-
* <ul>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>
|
|
33
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a>
|
|
34
|
-
* </p>
|
|
35
|
-
* </li>
|
|
36
|
-
* </ul>
|
|
37
|
-
* @example
|
|
38
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
-
* ```javascript
|
|
40
|
-
* import { S3Client, GetBucketPolicyCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
41
|
-
* // const { S3Client, GetBucketPolicyCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
42
|
-
* const client = new S3Client(config);
|
|
43
|
-
* const command = new GetBucketPolicyCommand(input);
|
|
44
|
-
* const response = await client.send(command);
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @see {@link GetBucketPolicyCommandInput} for command's `input` shape.
|
|
48
|
-
* @see {@link GetBucketPolicyCommandOutput} for command's `response` shape.
|
|
49
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
9
|
class GetBucketPolicyCommand extends smithy_client_1.Command {
|
|
53
|
-
// Start section: command_properties
|
|
54
|
-
// End section: command_properties
|
|
55
10
|
constructor(input) {
|
|
56
|
-
// Start section: command_constructor
|
|
57
11
|
super();
|
|
58
12
|
this.input = input;
|
|
59
|
-
// End section: command_constructor
|
|
60
13
|
}
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
65
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
16
|
this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
|
|
@@ -6,65 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Retrieves the policy status for an Amazon S3 bucket, indicating whether the bucket is public.
|
|
11
|
-
* In order to use this operation, you must have the <code>s3:GetBucketPolicyStatus</code>
|
|
12
|
-
* permission. For more information about Amazon S3 permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in a
|
|
13
|
-
* Policy</a>.</p>
|
|
14
|
-
*
|
|
15
|
-
* <p> For more information about when Amazon S3 considers a bucket public, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status">The Meaning of "Public"</a>. </p>
|
|
16
|
-
*
|
|
17
|
-
* <p>The following operations are related to <code>GetBucketPolicyStatus</code>:</p>
|
|
18
|
-
* <ul>
|
|
19
|
-
* <li>
|
|
20
|
-
* <p>
|
|
21
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html">Using Amazon S3 Block
|
|
22
|
-
* Public Access</a>
|
|
23
|
-
* </p>
|
|
24
|
-
* </li>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>
|
|
27
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetPublicAccessBlock.html">GetPublicAccessBlock</a>
|
|
28
|
-
* </p>
|
|
29
|
-
* </li>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>
|
|
32
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutPublicAccessBlock.html">PutPublicAccessBlock</a>
|
|
33
|
-
* </p>
|
|
34
|
-
* </li>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>
|
|
37
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeletePublicAccessBlock.html">DeletePublicAccessBlock</a>
|
|
38
|
-
* </p>
|
|
39
|
-
* </li>
|
|
40
|
-
* </ul>
|
|
41
|
-
* @example
|
|
42
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
43
|
-
* ```javascript
|
|
44
|
-
* import { S3Client, GetBucketPolicyStatusCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
45
|
-
* // const { S3Client, GetBucketPolicyStatusCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
46
|
-
* const client = new S3Client(config);
|
|
47
|
-
* const command = new GetBucketPolicyStatusCommand(input);
|
|
48
|
-
* const response = await client.send(command);
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* @see {@link GetBucketPolicyStatusCommandInput} for command's `input` shape.
|
|
52
|
-
* @see {@link GetBucketPolicyStatusCommandOutput} for command's `response` shape.
|
|
53
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
9
|
class GetBucketPolicyStatusCommand extends smithy_client_1.Command {
|
|
57
|
-
// Start section: command_properties
|
|
58
|
-
// End section: command_properties
|
|
59
10
|
constructor(input) {
|
|
60
|
-
// Start section: command_constructor
|
|
61
11
|
super();
|
|
62
12
|
this.input = input;
|
|
63
|
-
// End section: command_constructor
|
|
64
13
|
}
|
|
65
|
-
/**
|
|
66
|
-
* @internal
|
|
67
|
-
*/
|
|
68
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
69
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
70
16
|
this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
|
|
@@ -6,69 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
9
|
-
/**
|
|
10
|
-
* <p>Returns the replication configuration of a bucket.</p>
|
|
11
|
-
* <note>
|
|
12
|
-
* <p> It can take a while to propagate the put or delete a replication configuration to
|
|
13
|
-
* all Amazon S3 systems. Therefore, a get request soon after put or delete can return a wrong
|
|
14
|
-
* result. </p>
|
|
15
|
-
* </note>
|
|
16
|
-
* <p> For information about replication configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html">Replication</a> in the
|
|
17
|
-
* <i>Amazon S3 User Guide</i>.</p>
|
|
18
|
-
*
|
|
19
|
-
* <p>This action requires permissions for the <code>s3:GetReplicationConfiguration</code>
|
|
20
|
-
* action. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html">Using Bucket Policies and User
|
|
21
|
-
* Policies</a>.</p>
|
|
22
|
-
*
|
|
23
|
-
* <p>If you include the <code>Filter</code> element in a replication configuration, you must
|
|
24
|
-
* also include the <code>DeleteMarkerReplication</code> and <code>Priority</code> elements.
|
|
25
|
-
* The response also returns those elements.</p>
|
|
26
|
-
*
|
|
27
|
-
* <p>For information about <code>GetBucketReplication</code> errors, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ReplicationErrorCodeList">List of
|
|
28
|
-
* replication-related error codes</a>
|
|
29
|
-
* </p>
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* <p>The following operations are related to <code>GetBucketReplication</code>:</p>
|
|
33
|
-
* <ul>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>
|
|
36
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketReplication.html">PutBucketReplication</a>
|
|
37
|
-
* </p>
|
|
38
|
-
* </li>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>
|
|
41
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketReplication.html">DeleteBucketReplication</a>
|
|
42
|
-
* </p>
|
|
43
|
-
* </li>
|
|
44
|
-
* </ul>
|
|
45
|
-
* @example
|
|
46
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
47
|
-
* ```javascript
|
|
48
|
-
* import { S3Client, GetBucketReplicationCommand } from "@aws-sdk/client-s3"; // ES Modules import
|
|
49
|
-
* // const { S3Client, GetBucketReplicationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
|
|
50
|
-
* const client = new S3Client(config);
|
|
51
|
-
* const command = new GetBucketReplicationCommand(input);
|
|
52
|
-
* const response = await client.send(command);
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* @see {@link GetBucketReplicationCommandInput} for command's `input` shape.
|
|
56
|
-
* @see {@link GetBucketReplicationCommandOutput} for command's `response` shape.
|
|
57
|
-
* @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
9
|
class GetBucketReplicationCommand extends smithy_client_1.Command {
|
|
61
|
-
// Start section: command_properties
|
|
62
|
-
// End section: command_properties
|
|
63
10
|
constructor(input) {
|
|
64
|
-
// Start section: command_constructor
|
|
65
11
|
super();
|
|
66
12
|
this.input = input;
|
|
67
|
-
// End section: command_constructor
|
|
68
13
|
}
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
*/
|
|
72
14
|
resolveMiddleware(clientStack, configuration, options) {
|
|
73
15
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
74
16
|
this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
|