@aws-sdk/client-cloudwatch-logs 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.
Files changed (62) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/CloudWatchLogs.js +177 -170
  4. package/dist-es/CloudWatchLogsClient.js +28 -22
  5. package/dist-es/commands/AssociateKmsKeyCommand.js +29 -22
  6. package/dist-es/commands/CancelExportTaskCommand.js +29 -22
  7. package/dist-es/commands/CreateExportTaskCommand.js +28 -21
  8. package/dist-es/commands/CreateLogGroupCommand.js +29 -22
  9. package/dist-es/commands/CreateLogStreamCommand.js +29 -22
  10. package/dist-es/commands/DeleteDestinationCommand.js +29 -22
  11. package/dist-es/commands/DeleteLogGroupCommand.js +29 -22
  12. package/dist-es/commands/DeleteLogStreamCommand.js +29 -22
  13. package/dist-es/commands/DeleteMetricFilterCommand.js +29 -22
  14. package/dist-es/commands/DeleteQueryDefinitionCommand.js +28 -21
  15. package/dist-es/commands/DeleteResourcePolicyCommand.js +29 -22
  16. package/dist-es/commands/DeleteRetentionPolicyCommand.js +29 -22
  17. package/dist-es/commands/DeleteSubscriptionFilterCommand.js +29 -22
  18. package/dist-es/commands/DescribeDestinationsCommand.js +28 -21
  19. package/dist-es/commands/DescribeExportTasksCommand.js +28 -21
  20. package/dist-es/commands/DescribeLogGroupsCommand.js +28 -21
  21. package/dist-es/commands/DescribeLogStreamsCommand.js +28 -21
  22. package/dist-es/commands/DescribeMetricFiltersCommand.js +28 -21
  23. package/dist-es/commands/DescribeQueriesCommand.js +28 -21
  24. package/dist-es/commands/DescribeQueryDefinitionsCommand.js +28 -21
  25. package/dist-es/commands/DescribeResourcePoliciesCommand.js +28 -21
  26. package/dist-es/commands/DescribeSubscriptionFiltersCommand.js +28 -21
  27. package/dist-es/commands/DisassociateKmsKeyCommand.js +29 -22
  28. package/dist-es/commands/FilterLogEventsCommand.js +28 -21
  29. package/dist-es/commands/GetLogEventsCommand.js +28 -21
  30. package/dist-es/commands/GetLogGroupFieldsCommand.js +28 -21
  31. package/dist-es/commands/GetLogRecordCommand.js +28 -21
  32. package/dist-es/commands/GetQueryResultsCommand.js +28 -21
  33. package/dist-es/commands/ListTagsLogGroupCommand.js +28 -21
  34. package/dist-es/commands/PutDestinationCommand.js +28 -21
  35. package/dist-es/commands/PutDestinationPolicyCommand.js +29 -22
  36. package/dist-es/commands/PutLogEventsCommand.js +28 -21
  37. package/dist-es/commands/PutMetricFilterCommand.js +29 -22
  38. package/dist-es/commands/PutQueryDefinitionCommand.js +28 -21
  39. package/dist-es/commands/PutResourcePolicyCommand.js +28 -21
  40. package/dist-es/commands/PutRetentionPolicyCommand.js +29 -22
  41. package/dist-es/commands/PutSubscriptionFilterCommand.js +29 -22
  42. package/dist-es/commands/StartQueryCommand.js +28 -21
  43. package/dist-es/commands/StopQueryCommand.js +28 -21
  44. package/dist-es/commands/TagLogGroupCommand.js +29 -22
  45. package/dist-es/commands/TestMetricFilterCommand.js +28 -21
  46. package/dist-es/commands/UntagLogGroupCommand.js +29 -22
  47. package/dist-es/endpoints.js +8 -8
  48. package/dist-es/models/CloudWatchLogsServiceException.js +10 -5
  49. package/dist-es/models/models_0.js +214 -391
  50. package/dist-es/pagination/DescribeDestinationsPaginator.js +68 -25
  51. package/dist-es/pagination/DescribeLogGroupsPaginator.js +68 -25
  52. package/dist-es/pagination/DescribeLogStreamsPaginator.js +68 -25
  53. package/dist-es/pagination/DescribeMetricFiltersPaginator.js +68 -25
  54. package/dist-es/pagination/DescribeSubscriptionFiltersPaginator.js +68 -25
  55. package/dist-es/pagination/FilterLogEventsPaginator.js +68 -25
  56. package/dist-es/pagination/GetLogEventsPaginator.js +68 -25
  57. package/dist-es/protocols/Aws_json1_1.js +3451 -2613
  58. package/dist-es/runtimeConfig.browser.js +12 -26
  59. package/dist-es/runtimeConfig.js +12 -30
  60. package/dist-es/runtimeConfig.native.js +5 -8
  61. package/dist-es/runtimeConfig.shared.js +11 -8
  62. package/package.json +5 -5
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class CloudWatchLogsClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var CloudWatchLogsClient = (function (_super) {
13
+ __extends(CloudWatchLogsClient, _super);
14
+ function CloudWatchLogsClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ CloudWatchLogsClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return CloudWatchLogsClient;
38
+ }(__Client));
39
+ export { CloudWatchLogsClient };
@@ -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 { AssociateKmsKeyRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1AssociateKmsKeyCommand, serializeAws_json1_1AssociateKmsKeyCommand, } from "../protocols/Aws_json1_1";
5
- export class AssociateKmsKeyCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var AssociateKmsKeyCommand = (function (_super) {
7
+ __extends(AssociateKmsKeyCommand, _super);
8
+ function AssociateKmsKeyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ AssociateKmsKeyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudWatchLogsClient";
15
- const commandName = "AssociateKmsKeyCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudWatchLogsClient";
18
+ var commandName = "AssociateKmsKeyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: AssociateKmsKeyRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ AssociateKmsKeyCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1AssociateKmsKeyCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ AssociateKmsKeyCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1AssociateKmsKeyCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return AssociateKmsKeyCommand;
38
+ }($Command));
39
+ export { AssociateKmsKeyCommand };
@@ -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 { CancelExportTaskRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CancelExportTaskCommand, serializeAws_json1_1CancelExportTaskCommand, } from "../protocols/Aws_json1_1";
5
- export class CancelExportTaskCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CancelExportTaskCommand = (function (_super) {
7
+ __extends(CancelExportTaskCommand, _super);
8
+ function CancelExportTaskCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CancelExportTaskCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudWatchLogsClient";
15
- const commandName = "CancelExportTaskCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudWatchLogsClient";
18
+ var commandName = "CancelExportTaskCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CancelExportTaskRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CancelExportTaskCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CancelExportTaskCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CancelExportTaskCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CancelExportTaskCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CancelExportTaskCommand;
38
+ }($Command));
39
+ export { CancelExportTaskCommand };
@@ -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 { CreateExportTaskRequestFilterSensitiveLog, CreateExportTaskResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreateExportTaskCommand, serializeAws_json1_1CreateExportTaskCommand, } from "../protocols/Aws_json1_1";
5
- export class CreateExportTaskCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateExportTaskCommand = (function (_super) {
7
+ __extends(CreateExportTaskCommand, _super);
8
+ function CreateExportTaskCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateExportTaskCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudWatchLogsClient";
15
- const commandName = "CreateExportTaskCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudWatchLogsClient";
18
+ var commandName = "CreateExportTaskCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateExportTaskRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateExportTaskResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateExportTaskCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreateExportTaskCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateExportTaskCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreateExportTaskCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateExportTaskCommand;
38
+ }($Command));
39
+ export { CreateExportTaskCommand };
@@ -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 { CreateLogGroupRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreateLogGroupCommand, serializeAws_json1_1CreateLogGroupCommand, } from "../protocols/Aws_json1_1";
5
- export class CreateLogGroupCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateLogGroupCommand = (function (_super) {
7
+ __extends(CreateLogGroupCommand, _super);
8
+ function CreateLogGroupCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateLogGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudWatchLogsClient";
15
- const commandName = "CreateLogGroupCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudWatchLogsClient";
18
+ var commandName = "CreateLogGroupCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateLogGroupRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateLogGroupCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreateLogGroupCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateLogGroupCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreateLogGroupCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateLogGroupCommand;
38
+ }($Command));
39
+ export { CreateLogGroupCommand };
@@ -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 { CreateLogStreamRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreateLogStreamCommand, serializeAws_json1_1CreateLogStreamCommand, } from "../protocols/Aws_json1_1";
5
- export class CreateLogStreamCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateLogStreamCommand = (function (_super) {
7
+ __extends(CreateLogStreamCommand, _super);
8
+ function CreateLogStreamCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateLogStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudWatchLogsClient";
15
- const commandName = "CreateLogStreamCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudWatchLogsClient";
18
+ var commandName = "CreateLogStreamCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateLogStreamRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateLogStreamCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreateLogStreamCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateLogStreamCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreateLogStreamCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateLogStreamCommand;
38
+ }($Command));
39
+ export { CreateLogStreamCommand };
@@ -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 { DeleteDestinationRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DeleteDestinationCommand, serializeAws_json1_1DeleteDestinationCommand, } from "../protocols/Aws_json1_1";
5
- export class DeleteDestinationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteDestinationCommand = (function (_super) {
7
+ __extends(DeleteDestinationCommand, _super);
8
+ function DeleteDestinationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteDestinationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudWatchLogsClient";
15
- const commandName = "DeleteDestinationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudWatchLogsClient";
18
+ var commandName = "DeleteDestinationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteDestinationRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteDestinationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DeleteDestinationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteDestinationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DeleteDestinationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteDestinationCommand;
38
+ }($Command));
39
+ export { DeleteDestinationCommand };
@@ -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 { DeleteLogGroupRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DeleteLogGroupCommand, serializeAws_json1_1DeleteLogGroupCommand, } from "../protocols/Aws_json1_1";
5
- export class DeleteLogGroupCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteLogGroupCommand = (function (_super) {
7
+ __extends(DeleteLogGroupCommand, _super);
8
+ function DeleteLogGroupCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteLogGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudWatchLogsClient";
15
- const commandName = "DeleteLogGroupCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudWatchLogsClient";
18
+ var commandName = "DeleteLogGroupCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteLogGroupRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteLogGroupCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DeleteLogGroupCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteLogGroupCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DeleteLogGroupCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteLogGroupCommand;
38
+ }($Command));
39
+ export { DeleteLogGroupCommand };
@@ -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 { DeleteLogStreamRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DeleteLogStreamCommand, serializeAws_json1_1DeleteLogStreamCommand, } from "../protocols/Aws_json1_1";
5
- export class DeleteLogStreamCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteLogStreamCommand = (function (_super) {
7
+ __extends(DeleteLogStreamCommand, _super);
8
+ function DeleteLogStreamCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteLogStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudWatchLogsClient";
15
- const commandName = "DeleteLogStreamCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudWatchLogsClient";
18
+ var commandName = "DeleteLogStreamCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteLogStreamRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteLogStreamCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DeleteLogStreamCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteLogStreamCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DeleteLogStreamCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteLogStreamCommand;
38
+ }($Command));
39
+ export { DeleteLogStreamCommand };
@@ -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 { DeleteMetricFilterRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DeleteMetricFilterCommand, serializeAws_json1_1DeleteMetricFilterCommand, } from "../protocols/Aws_json1_1";
5
- export class DeleteMetricFilterCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteMetricFilterCommand = (function (_super) {
7
+ __extends(DeleteMetricFilterCommand, _super);
8
+ function DeleteMetricFilterCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteMetricFilterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudWatchLogsClient";
15
- const commandName = "DeleteMetricFilterCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudWatchLogsClient";
18
+ var commandName = "DeleteMetricFilterCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteMetricFilterRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteMetricFilterCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DeleteMetricFilterCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteMetricFilterCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DeleteMetricFilterCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteMetricFilterCommand;
38
+ }($Command));
39
+ export { DeleteMetricFilterCommand };