@aws-sdk/client-amp 3.52.0 → 3.53.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/index.js +3 -0
- package/dist-cjs/models/AmpServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +109 -1
- package/dist-cjs/protocols/Aws_restJson1.js +216 -826
- package/dist-es/index.js +1 -0
- package/dist-es/models/AmpServiceException.js +12 -0
- package/dist-es/models/models_0.js +102 -1
- package/dist-es/protocols/Aws_restJson1.js +437 -902
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/AmpServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +49 -48
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/AmpServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +36 -35
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-amp
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AmpServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./Amp"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./AmpClient"), exports);
|
|
@@ -7,3 +8,5 @@ tslib_1.__exportStar(require("./commands"), exports);
|
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./waiters"), exports);
|
|
11
|
+
var AmpServiceException_1 = require("./models/AmpServiceException");
|
|
12
|
+
Object.defineProperty(exports, "AmpServiceException", { enumerable: true, get: function () { return AmpServiceException_1.AmpServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AmpServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class AmpServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, AmpServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.AmpServiceException = AmpServiceException;
|
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateWorkspaceAliasRequest = exports.PutRuleGroupsNamespaceResponse = exports.PutRuleGroupsNamespaceRequest = exports.ListRuleGroupsNamespacesResponse = exports.RuleGroupsNamespaceSummary = exports.ListRuleGroupsNamespacesRequest = exports.DescribeRuleGroupsNamespaceResponse = exports.RuleGroupsNamespaceDescription = exports.DescribeRuleGroupsNamespaceRequest = exports.DeleteRuleGroupsNamespaceRequest = exports.CreateRuleGroupsNamespaceResponse = exports.RuleGroupsNamespaceStatus = exports.RuleGroupsNamespaceStatusCode = exports.CreateRuleGroupsNamespaceRequest = exports.ListWorkspacesResponse = exports.WorkspaceSummary = exports.ListWorkspacesRequest = exports.DescribeWorkspaceResponse = exports.WorkspaceDescription = exports.DescribeWorkspaceRequest = exports.DeleteWorkspaceRequest = exports.CreateWorkspaceResponse = exports.WorkspaceStatus = exports.WorkspaceStatusCode = exports.CreateWorkspaceRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.PutAlertManagerDefinitionResponse = exports.PutAlertManagerDefinitionRequest = exports.DescribeAlertManagerDefinitionResponse = exports.AlertManagerDefinitionDescription = exports.DescribeAlertManagerDefinitionRequest = exports.DeleteAlertManagerDefinitionRequest = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.CreateAlertManagerDefinitionResponse = exports.AlertManagerDefinitionStatus = exports.AlertManagerDefinitionStatusCode = exports.CreateAlertManagerDefinitionRequest = void 0;
|
|
3
|
+
exports.UpdateWorkspaceAliasRequest = exports.PutRuleGroupsNamespaceResponse = exports.PutRuleGroupsNamespaceRequest = exports.ListRuleGroupsNamespacesResponse = exports.RuleGroupsNamespaceSummary = exports.ListRuleGroupsNamespacesRequest = exports.DescribeRuleGroupsNamespaceResponse = exports.RuleGroupsNamespaceDescription = exports.DescribeRuleGroupsNamespaceRequest = exports.DeleteRuleGroupsNamespaceRequest = exports.CreateRuleGroupsNamespaceResponse = exports.RuleGroupsNamespaceStatus = exports.RuleGroupsNamespaceStatusCode = exports.CreateRuleGroupsNamespaceRequest = exports.ListWorkspacesResponse = exports.WorkspaceSummary = exports.ListWorkspacesRequest = exports.DescribeWorkspaceResponse = exports.WorkspaceDescription = exports.DescribeWorkspaceRequest = exports.DeleteWorkspaceRequest = exports.CreateWorkspaceResponse = exports.WorkspaceStatus = exports.WorkspaceStatusCode = exports.CreateWorkspaceRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.PutAlertManagerDefinitionResponse = exports.PutAlertManagerDefinitionRequest = exports.DescribeAlertManagerDefinitionResponse = exports.AlertManagerDefinitionDescription = exports.DescribeAlertManagerDefinitionRequest = exports.DeleteAlertManagerDefinitionRequest = exports.ValidationException = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.CreateAlertManagerDefinitionResponse = exports.AlertManagerDefinitionStatus = exports.AlertManagerDefinitionStatusCode = exports.CreateAlertManagerDefinitionRequest = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const AmpServiceException_1 = require("./AmpServiceException");
|
|
5
|
+
class AccessDeniedException extends AmpServiceException_1.AmpServiceException {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "AccessDeniedException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
this.name = "AccessDeniedException";
|
|
13
|
+
this.$fault = "client";
|
|
14
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
18
|
+
class ConflictException extends AmpServiceException_1.AmpServiceException {
|
|
19
|
+
constructor(opts) {
|
|
20
|
+
super({
|
|
21
|
+
name: "ConflictException",
|
|
22
|
+
$fault: "client",
|
|
23
|
+
...opts,
|
|
24
|
+
});
|
|
25
|
+
this.name = "ConflictException";
|
|
26
|
+
this.$fault = "client";
|
|
27
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
28
|
+
this.resourceId = opts.resourceId;
|
|
29
|
+
this.resourceType = opts.resourceType;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.ConflictException = ConflictException;
|
|
4
33
|
var CreateAlertManagerDefinitionRequest;
|
|
5
34
|
(function (CreateAlertManagerDefinitionRequest) {
|
|
6
35
|
CreateAlertManagerDefinitionRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -28,6 +57,70 @@ var CreateAlertManagerDefinitionResponse;
|
|
|
28
57
|
...obj,
|
|
29
58
|
});
|
|
30
59
|
})(CreateAlertManagerDefinitionResponse = exports.CreateAlertManagerDefinitionResponse || (exports.CreateAlertManagerDefinitionResponse = {}));
|
|
60
|
+
class InternalServerException extends AmpServiceException_1.AmpServiceException {
|
|
61
|
+
constructor(opts) {
|
|
62
|
+
super({
|
|
63
|
+
name: "InternalServerException",
|
|
64
|
+
$fault: "server",
|
|
65
|
+
...opts,
|
|
66
|
+
});
|
|
67
|
+
this.name = "InternalServerException";
|
|
68
|
+
this.$fault = "server";
|
|
69
|
+
this.$retryable = {};
|
|
70
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
71
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.InternalServerException = InternalServerException;
|
|
75
|
+
class ResourceNotFoundException extends AmpServiceException_1.AmpServiceException {
|
|
76
|
+
constructor(opts) {
|
|
77
|
+
super({
|
|
78
|
+
name: "ResourceNotFoundException",
|
|
79
|
+
$fault: "client",
|
|
80
|
+
...opts,
|
|
81
|
+
});
|
|
82
|
+
this.name = "ResourceNotFoundException";
|
|
83
|
+
this.$fault = "client";
|
|
84
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
85
|
+
this.resourceId = opts.resourceId;
|
|
86
|
+
this.resourceType = opts.resourceType;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
90
|
+
class ServiceQuotaExceededException extends AmpServiceException_1.AmpServiceException {
|
|
91
|
+
constructor(opts) {
|
|
92
|
+
super({
|
|
93
|
+
name: "ServiceQuotaExceededException",
|
|
94
|
+
$fault: "client",
|
|
95
|
+
...opts,
|
|
96
|
+
});
|
|
97
|
+
this.name = "ServiceQuotaExceededException";
|
|
98
|
+
this.$fault = "client";
|
|
99
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
100
|
+
this.resourceId = opts.resourceId;
|
|
101
|
+
this.resourceType = opts.resourceType;
|
|
102
|
+
this.serviceCode = opts.serviceCode;
|
|
103
|
+
this.quotaCode = opts.quotaCode;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
107
|
+
class ThrottlingException extends AmpServiceException_1.AmpServiceException {
|
|
108
|
+
constructor(opts) {
|
|
109
|
+
super({
|
|
110
|
+
name: "ThrottlingException",
|
|
111
|
+
$fault: "client",
|
|
112
|
+
...opts,
|
|
113
|
+
});
|
|
114
|
+
this.name = "ThrottlingException";
|
|
115
|
+
this.$fault = "client";
|
|
116
|
+
this.$retryable = {};
|
|
117
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
118
|
+
this.serviceCode = opts.serviceCode;
|
|
119
|
+
this.quotaCode = opts.quotaCode;
|
|
120
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.ThrottlingException = ThrottlingException;
|
|
31
124
|
var ValidationExceptionField;
|
|
32
125
|
(function (ValidationExceptionField) {
|
|
33
126
|
ValidationExceptionField.filterSensitiveLog = (obj) => ({
|
|
@@ -41,6 +134,21 @@ var ValidationExceptionReason;
|
|
|
41
134
|
ValidationExceptionReason["OTHER"] = "OTHER";
|
|
42
135
|
ValidationExceptionReason["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
|
|
43
136
|
})(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
|
|
137
|
+
class ValidationException extends AmpServiceException_1.AmpServiceException {
|
|
138
|
+
constructor(opts) {
|
|
139
|
+
super({
|
|
140
|
+
name: "ValidationException",
|
|
141
|
+
$fault: "client",
|
|
142
|
+
...opts,
|
|
143
|
+
});
|
|
144
|
+
this.name = "ValidationException";
|
|
145
|
+
this.$fault = "client";
|
|
146
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
147
|
+
this.reason = opts.reason;
|
|
148
|
+
this.fieldList = opts.fieldList;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
exports.ValidationException = ValidationException;
|
|
44
152
|
var DeleteAlertManagerDefinitionRequest;
|
|
45
153
|
(function (DeleteAlertManagerDefinitionRequest) {
|
|
46
154
|
DeleteAlertManagerDefinitionRequest.filterSensitiveLog = (obj) => ({
|