@aws-sdk/client-glacier 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/Glacier.js +141 -134
- package/dist-es/GlacierClient.js +29 -23
- package/dist-es/commands/AbortMultipartUploadCommand.js +29 -22
- package/dist-es/commands/AbortVaultLockCommand.js +29 -22
- package/dist-es/commands/AddTagsToVaultCommand.js +29 -22
- package/dist-es/commands/CompleteMultipartUploadCommand.js +28 -21
- package/dist-es/commands/CompleteVaultLockCommand.js +29 -22
- package/dist-es/commands/CreateVaultCommand.js +28 -21
- package/dist-es/commands/DeleteArchiveCommand.js +29 -22
- package/dist-es/commands/DeleteVaultAccessPolicyCommand.js +29 -22
- package/dist-es/commands/DeleteVaultCommand.js +29 -22
- package/dist-es/commands/DeleteVaultNotificationsCommand.js +29 -22
- package/dist-es/commands/DescribeJobCommand.js +28 -21
- package/dist-es/commands/DescribeVaultCommand.js +28 -21
- package/dist-es/commands/GetDataRetrievalPolicyCommand.js +28 -21
- package/dist-es/commands/GetJobOutputCommand.js +28 -21
- package/dist-es/commands/GetVaultAccessPolicyCommand.js +28 -21
- package/dist-es/commands/GetVaultLockCommand.js +28 -21
- package/dist-es/commands/GetVaultNotificationsCommand.js +28 -21
- package/dist-es/commands/InitiateJobCommand.js +28 -21
- package/dist-es/commands/InitiateMultipartUploadCommand.js +28 -21
- package/dist-es/commands/InitiateVaultLockCommand.js +28 -21
- package/dist-es/commands/ListJobsCommand.js +28 -21
- package/dist-es/commands/ListMultipartUploadsCommand.js +28 -21
- package/dist-es/commands/ListPartsCommand.js +28 -21
- package/dist-es/commands/ListProvisionedCapacityCommand.js +28 -21
- package/dist-es/commands/ListTagsForVaultCommand.js +28 -21
- package/dist-es/commands/ListVaultsCommand.js +28 -21
- package/dist-es/commands/PurchaseProvisionedCapacityCommand.js +28 -21
- package/dist-es/commands/RemoveTagsFromVaultCommand.js +29 -22
- package/dist-es/commands/SetDataRetrievalPolicyCommand.js +29 -22
- package/dist-es/commands/SetVaultAccessPolicyCommand.js +29 -22
- package/dist-es/commands/SetVaultNotificationsCommand.js +29 -22
- package/dist-es/commands/UploadArchiveCommand.js +28 -21
- package/dist-es/commands/UploadMultipartPartCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/GlacierServiceException.js +10 -5
- package/dist-es/models/models_0.js +179 -326
- package/dist-es/pagination/ListJobsPaginator.js +68 -25
- package/dist-es/pagination/ListMultipartUploadsPaginator.js +68 -25
- package/dist-es/pagination/ListPartsPaginator.js +68 -25
- package/dist-es/pagination/ListVaultsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +3401 -2457
- package/dist-es/runtimeConfig.browser.js +12 -27
- package/dist-es/runtimeConfig.js +12 -31
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/dist-es/waiters/waitForVaultExists.js +42 -23
- package/dist-es/waiters/waitForVaultNotExists.js +42 -23
- package/package.json +5 -5
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { SetVaultAccessPolicyInputFilterSensitiveLog } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1SetVaultAccessPolicyCommand, serializeAws_restJson1SetVaultAccessPolicyCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var SetVaultAccessPolicyCommand = (function (_super) {
|
|
7
|
+
__extends(SetVaultAccessPolicyCommand, _super);
|
|
8
|
+
function SetVaultAccessPolicyCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
SetVaultAccessPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "GlacierClient";
|
|
18
|
+
var commandName = "SetVaultAccessPolicyCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: SetVaultAccessPolicyInputFilterSensitiveLog,
|
|
21
|
-
outputFilterSensitiveLog: (output)
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
SetVaultAccessPolicyCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1SetVaultAccessPolicyCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
SetVaultAccessPolicyCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1SetVaultAccessPolicyCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return SetVaultAccessPolicyCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { SetVaultAccessPolicyCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { SetVaultNotificationsInputFilterSensitiveLog } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1SetVaultNotificationsCommand, serializeAws_restJson1SetVaultNotificationsCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var SetVaultNotificationsCommand = (function (_super) {
|
|
7
|
+
__extends(SetVaultNotificationsCommand, _super);
|
|
8
|
+
function SetVaultNotificationsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
SetVaultNotificationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "GlacierClient";
|
|
18
|
+
var commandName = "SetVaultNotificationsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: SetVaultNotificationsInputFilterSensitiveLog,
|
|
21
|
-
outputFilterSensitiveLog: (output)
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
SetVaultNotificationsCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1SetVaultNotificationsCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
SetVaultNotificationsCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1SetVaultNotificationsCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return SetVaultNotificationsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { SetVaultNotificationsCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ArchiveCreationOutputFilterSensitiveLog, UploadArchiveInputFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1UploadArchiveCommand, serializeAws_restJson1UploadArchiveCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var UploadArchiveCommand = (function (_super) {
|
|
7
|
+
__extends(UploadArchiveCommand, _super);
|
|
8
|
+
function UploadArchiveCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
UploadArchiveCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "GlacierClient";
|
|
18
|
+
var commandName = "UploadArchiveCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: UploadArchiveInputFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: ArchiveCreationOutputFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UploadArchiveCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1UploadArchiveCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
UploadArchiveCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1UploadArchiveCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return UploadArchiveCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UploadArchiveCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { UploadMultipartPartInputFilterSensitiveLog, UploadMultipartPartOutputFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1UploadMultipartPartCommand, serializeAws_restJson1UploadMultipartPartCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var UploadMultipartPartCommand = (function (_super) {
|
|
7
|
+
__extends(UploadMultipartPartCommand, _super);
|
|
8
|
+
function UploadMultipartPartCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
UploadMultipartPartCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "GlacierClient";
|
|
18
|
+
var commandName = "UploadMultipartPartCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: UploadMultipartPartInputFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: UploadMultipartPartOutputFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UploadMultipartPartCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1UploadMultipartPartCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
UploadMultipartPartCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1UploadMultipartPartCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return UploadMultipartPartCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UploadMultipartPartCommand };
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
|
-
|
|
3
|
+
var regionHash = {
|
|
3
4
|
"ca-central-1": {
|
|
4
5
|
variants: [
|
|
5
6
|
{
|
|
@@ -59,7 +60,7 @@ const regionHash = {
|
|
|
59
60
|
],
|
|
60
61
|
},
|
|
61
62
|
};
|
|
62
|
-
|
|
63
|
+
var partitionHash = {
|
|
63
64
|
aws: {
|
|
64
65
|
regions: [
|
|
65
66
|
"af-south-1",
|
|
@@ -184,9 +185,8 @@ const partitionHash = {
|
|
|
184
185
|
],
|
|
185
186
|
},
|
|
186
187
|
};
|
|
187
|
-
export
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
});
|
|
188
|
+
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
189
|
+
return __generator(this, function (_a) {
|
|
190
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "glacier", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
191
|
+
});
|
|
192
|
+
}); };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var GlacierServiceException = (function (_super) {
|
|
4
|
+
__extends(GlacierServiceException, _super);
|
|
5
|
+
function GlacierServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, GlacierServiceException.prototype);
|
|
8
|
+
return _this;
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
return GlacierServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { GlacierServiceException };
|