@aws-sdk/client-amp 3.141.0 → 3.149.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 (36) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/Amp.js +60 -0
  3. package/dist-cjs/commands/CreateLoggingConfigurationCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +36 -0
  5. package/dist-cjs/commands/DescribeLoggingConfigurationCommand.js +36 -0
  6. package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +36 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/models/models_0.js +47 -1
  9. package/dist-cjs/protocols/Aws_restJson1.js +512 -466
  10. package/dist-es/Amp.js +60 -0
  11. package/dist-es/commands/CreateLoggingConfigurationCommand.js +39 -0
  12. package/dist-es/commands/DeleteLoggingConfigurationCommand.js +39 -0
  13. package/dist-es/commands/DescribeLoggingConfigurationCommand.js +39 -0
  14. package/dist-es/commands/UpdateLoggingConfigurationCommand.js +39 -0
  15. package/dist-es/commands/index.js +4 -0
  16. package/dist-es/models/models_0.js +18 -0
  17. package/dist-es/protocols/Aws_restJson1.js +692 -465
  18. package/dist-types/Amp.d.ts +28 -0
  19. package/dist-types/AmpClient.d.ts +6 -2
  20. package/dist-types/commands/CreateLoggingConfigurationCommand.d.ts +35 -0
  21. package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +35 -0
  22. package/dist-types/commands/DescribeLoggingConfigurationCommand.d.ts +35 -0
  23. package/dist-types/commands/UpdateLoggingConfigurationCommand.d.ts +35 -0
  24. package/dist-types/commands/index.d.ts +4 -0
  25. package/dist-types/models/models_0.d.ts +183 -0
  26. package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
  27. package/dist-types/ts3.4/Amp.d.ts +20 -0
  28. package/dist-types/ts3.4/AmpClient.d.ts +6 -2
  29. package/dist-types/ts3.4/commands/CreateLoggingConfigurationCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/DeleteLoggingConfigurationCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/DescribeLoggingConfigurationCommand.d.ts +17 -0
  32. package/dist-types/ts3.4/commands/UpdateLoggingConfigurationCommand.d.ts +17 -0
  33. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +97 -0
  35. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  36. package/package.json +11 -6
package/dist-es/Amp.js CHANGED
@@ -1,12 +1,15 @@
1
1
  import { __extends } from "tslib";
2
2
  import { AmpClient } from "./AmpClient";
3
3
  import { CreateAlertManagerDefinitionCommand, } from "./commands/CreateAlertManagerDefinitionCommand";
4
+ import { CreateLoggingConfigurationCommand, } from "./commands/CreateLoggingConfigurationCommand";
4
5
  import { CreateRuleGroupsNamespaceCommand, } from "./commands/CreateRuleGroupsNamespaceCommand";
5
6
  import { CreateWorkspaceCommand, } from "./commands/CreateWorkspaceCommand";
6
7
  import { DeleteAlertManagerDefinitionCommand, } from "./commands/DeleteAlertManagerDefinitionCommand";
8
+ import { DeleteLoggingConfigurationCommand, } from "./commands/DeleteLoggingConfigurationCommand";
7
9
  import { DeleteRuleGroupsNamespaceCommand, } from "./commands/DeleteRuleGroupsNamespaceCommand";
8
10
  import { DeleteWorkspaceCommand, } from "./commands/DeleteWorkspaceCommand";
9
11
  import { DescribeAlertManagerDefinitionCommand, } from "./commands/DescribeAlertManagerDefinitionCommand";
12
+ import { DescribeLoggingConfigurationCommand, } from "./commands/DescribeLoggingConfigurationCommand";
10
13
  import { DescribeRuleGroupsNamespaceCommand, } from "./commands/DescribeRuleGroupsNamespaceCommand";
11
14
  import { DescribeWorkspaceCommand, } from "./commands/DescribeWorkspaceCommand";
12
15
  import { ListRuleGroupsNamespacesCommand, } from "./commands/ListRuleGroupsNamespacesCommand";
@@ -16,6 +19,7 @@ import { PutAlertManagerDefinitionCommand, } from "./commands/PutAlertManagerDef
16
19
  import { PutRuleGroupsNamespaceCommand, } from "./commands/PutRuleGroupsNamespaceCommand";
17
20
  import { TagResourceCommand } from "./commands/TagResourceCommand";
18
21
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
22
+ import { UpdateLoggingConfigurationCommand, } from "./commands/UpdateLoggingConfigurationCommand";
19
23
  import { UpdateWorkspaceAliasCommand, } from "./commands/UpdateWorkspaceAliasCommand";
20
24
  var Amp = (function (_super) {
21
25
  __extends(Amp, _super);
@@ -36,6 +40,20 @@ var Amp = (function (_super) {
36
40
  return this.send(command, optionsOrCb);
37
41
  }
38
42
  };
43
+ Amp.prototype.createLoggingConfiguration = function (args, optionsOrCb, cb) {
44
+ var command = new CreateLoggingConfigurationCommand(args);
45
+ if (typeof optionsOrCb === "function") {
46
+ this.send(command, optionsOrCb);
47
+ }
48
+ else if (typeof cb === "function") {
49
+ if (typeof optionsOrCb !== "object")
50
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
51
+ this.send(command, optionsOrCb || {}, cb);
52
+ }
53
+ else {
54
+ return this.send(command, optionsOrCb);
55
+ }
56
+ };
39
57
  Amp.prototype.createRuleGroupsNamespace = function (args, optionsOrCb, cb) {
40
58
  var command = new CreateRuleGroupsNamespaceCommand(args);
41
59
  if (typeof optionsOrCb === "function") {
@@ -78,6 +96,20 @@ var Amp = (function (_super) {
78
96
  return this.send(command, optionsOrCb);
79
97
  }
80
98
  };
99
+ Amp.prototype.deleteLoggingConfiguration = function (args, optionsOrCb, cb) {
100
+ var command = new DeleteLoggingConfigurationCommand(args);
101
+ if (typeof optionsOrCb === "function") {
102
+ this.send(command, optionsOrCb);
103
+ }
104
+ else if (typeof cb === "function") {
105
+ if (typeof optionsOrCb !== "object")
106
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
107
+ this.send(command, optionsOrCb || {}, cb);
108
+ }
109
+ else {
110
+ return this.send(command, optionsOrCb);
111
+ }
112
+ };
81
113
  Amp.prototype.deleteRuleGroupsNamespace = function (args, optionsOrCb, cb) {
82
114
  var command = new DeleteRuleGroupsNamespaceCommand(args);
83
115
  if (typeof optionsOrCb === "function") {
@@ -120,6 +152,20 @@ var Amp = (function (_super) {
120
152
  return this.send(command, optionsOrCb);
121
153
  }
122
154
  };
155
+ Amp.prototype.describeLoggingConfiguration = function (args, optionsOrCb, cb) {
156
+ var command = new DescribeLoggingConfigurationCommand(args);
157
+ if (typeof optionsOrCb === "function") {
158
+ this.send(command, optionsOrCb);
159
+ }
160
+ else if (typeof cb === "function") {
161
+ if (typeof optionsOrCb !== "object")
162
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
163
+ this.send(command, optionsOrCb || {}, cb);
164
+ }
165
+ else {
166
+ return this.send(command, optionsOrCb);
167
+ }
168
+ };
123
169
  Amp.prototype.describeRuleGroupsNamespace = function (args, optionsOrCb, cb) {
124
170
  var command = new DescribeRuleGroupsNamespaceCommand(args);
125
171
  if (typeof optionsOrCb === "function") {
@@ -246,6 +292,20 @@ var Amp = (function (_super) {
246
292
  return this.send(command, optionsOrCb);
247
293
  }
248
294
  };
295
+ Amp.prototype.updateLoggingConfiguration = function (args, optionsOrCb, cb) {
296
+ var command = new UpdateLoggingConfigurationCommand(args);
297
+ if (typeof optionsOrCb === "function") {
298
+ this.send(command, optionsOrCb);
299
+ }
300
+ else if (typeof cb === "function") {
301
+ if (typeof optionsOrCb !== "object")
302
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
303
+ this.send(command, optionsOrCb || {}, cb);
304
+ }
305
+ else {
306
+ return this.send(command, optionsOrCb);
307
+ }
308
+ };
249
309
  Amp.prototype.updateWorkspaceAlias = function (args, optionsOrCb, cb) {
250
310
  var command = new UpdateWorkspaceAliasCommand(args);
251
311
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateLoggingConfigurationRequestFilterSensitiveLog, CreateLoggingConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreateLoggingConfigurationCommand, serializeAws_restJson1CreateLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ var CreateLoggingConfigurationCommand = (function (_super) {
7
+ __extends(CreateLoggingConfigurationCommand, _super);
8
+ function CreateLoggingConfigurationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateLoggingConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AmpClient";
18
+ var commandName = "CreateLoggingConfigurationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateLoggingConfigurationRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateLoggingConfigurationResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateLoggingConfigurationCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1CreateLoggingConfigurationCommand(input, context);
33
+ };
34
+ CreateLoggingConfigurationCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1CreateLoggingConfigurationCommand(output, context);
36
+ };
37
+ return CreateLoggingConfigurationCommand;
38
+ }($Command));
39
+ export { CreateLoggingConfigurationCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteLoggingConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteLoggingConfigurationCommand, serializeAws_restJson1DeleteLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ var DeleteLoggingConfigurationCommand = (function (_super) {
7
+ __extends(DeleteLoggingConfigurationCommand, _super);
8
+ function DeleteLoggingConfigurationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteLoggingConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AmpClient";
18
+ var commandName = "DeleteLoggingConfigurationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteLoggingConfigurationRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: function (output) { return output; },
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteLoggingConfigurationCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DeleteLoggingConfigurationCommand(input, context);
33
+ };
34
+ DeleteLoggingConfigurationCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DeleteLoggingConfigurationCommand(output, context);
36
+ };
37
+ return DeleteLoggingConfigurationCommand;
38
+ }($Command));
39
+ export { DeleteLoggingConfigurationCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeLoggingConfigurationRequestFilterSensitiveLog, DescribeLoggingConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1DescribeLoggingConfigurationCommand, serializeAws_restJson1DescribeLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ var DescribeLoggingConfigurationCommand = (function (_super) {
7
+ __extends(DescribeLoggingConfigurationCommand, _super);
8
+ function DescribeLoggingConfigurationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeLoggingConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AmpClient";
18
+ var commandName = "DescribeLoggingConfigurationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeLoggingConfigurationRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeLoggingConfigurationResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeLoggingConfigurationCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DescribeLoggingConfigurationCommand(input, context);
33
+ };
34
+ DescribeLoggingConfigurationCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DescribeLoggingConfigurationCommand(output, context);
36
+ };
37
+ return DescribeLoggingConfigurationCommand;
38
+ }($Command));
39
+ export { DescribeLoggingConfigurationCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateLoggingConfigurationRequestFilterSensitiveLog, UpdateLoggingConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1UpdateLoggingConfigurationCommand, serializeAws_restJson1UpdateLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ var UpdateLoggingConfigurationCommand = (function (_super) {
7
+ __extends(UpdateLoggingConfigurationCommand, _super);
8
+ function UpdateLoggingConfigurationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateLoggingConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AmpClient";
18
+ var commandName = "UpdateLoggingConfigurationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateLoggingConfigurationRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateLoggingConfigurationResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateLoggingConfigurationCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1UpdateLoggingConfigurationCommand(input, context);
33
+ };
34
+ UpdateLoggingConfigurationCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1UpdateLoggingConfigurationCommand(output, context);
36
+ };
37
+ return UpdateLoggingConfigurationCommand;
38
+ }($Command));
39
+ export { UpdateLoggingConfigurationCommand };
@@ -1,10 +1,13 @@
1
1
  export * from "./CreateAlertManagerDefinitionCommand";
2
+ export * from "./CreateLoggingConfigurationCommand";
2
3
  export * from "./CreateRuleGroupsNamespaceCommand";
3
4
  export * from "./CreateWorkspaceCommand";
4
5
  export * from "./DeleteAlertManagerDefinitionCommand";
6
+ export * from "./DeleteLoggingConfigurationCommand";
5
7
  export * from "./DeleteRuleGroupsNamespaceCommand";
6
8
  export * from "./DeleteWorkspaceCommand";
7
9
  export * from "./DescribeAlertManagerDefinitionCommand";
10
+ export * from "./DescribeLoggingConfigurationCommand";
8
11
  export * from "./DescribeRuleGroupsNamespaceCommand";
9
12
  export * from "./DescribeWorkspaceCommand";
10
13
  export * from "./ListRuleGroupsNamespacesCommand";
@@ -14,4 +17,5 @@ export * from "./PutAlertManagerDefinitionCommand";
14
17
  export * from "./PutRuleGroupsNamespaceCommand";
15
18
  export * from "./TagResourceCommand";
16
19
  export * from "./UntagResourceCommand";
20
+ export * from "./UpdateLoggingConfigurationCommand";
17
21
  export * from "./UpdateWorkspaceAliasCommand";
@@ -124,6 +124,15 @@ export var WorkspaceStatusCode;
124
124
  WorkspaceStatusCode["DELETING"] = "DELETING";
125
125
  WorkspaceStatusCode["UPDATING"] = "UPDATING";
126
126
  })(WorkspaceStatusCode || (WorkspaceStatusCode = {}));
127
+ export var LoggingConfigurationStatusCode;
128
+ (function (LoggingConfigurationStatusCode) {
129
+ LoggingConfigurationStatusCode["ACTIVE"] = "ACTIVE";
130
+ LoggingConfigurationStatusCode["CREATING"] = "CREATING";
131
+ LoggingConfigurationStatusCode["CREATION_FAILED"] = "CREATION_FAILED";
132
+ LoggingConfigurationStatusCode["DELETING"] = "DELETING";
133
+ LoggingConfigurationStatusCode["UPDATE_FAILED"] = "UPDATE_FAILED";
134
+ LoggingConfigurationStatusCode["UPDATING"] = "UPDATING";
135
+ })(LoggingConfigurationStatusCode || (LoggingConfigurationStatusCode = {}));
127
136
  export var RuleGroupsNamespaceStatusCode;
128
137
  (function (RuleGroupsNamespaceStatusCode) {
129
138
  RuleGroupsNamespaceStatusCode["ACTIVE"] = "ACTIVE";
@@ -159,6 +168,15 @@ export var DescribeWorkspaceResponseFilterSensitiveLog = function (obj) { return
159
168
  export var ListWorkspacesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
160
169
  export var WorkspaceSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
161
170
  export var ListWorkspacesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
171
+ export var CreateLoggingConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
172
+ export var LoggingConfigurationStatusFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
173
+ export var CreateLoggingConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
174
+ export var DeleteLoggingConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
175
+ export var DescribeLoggingConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
176
+ export var LoggingConfigurationMetadataFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
177
+ export var DescribeLoggingConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
178
+ export var UpdateLoggingConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
179
+ export var UpdateLoggingConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
162
180
  export var CreateRuleGroupsNamespaceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
163
181
  export var RuleGroupsNamespaceStatusFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
164
182
  export var CreateRuleGroupsNamespaceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };