@aws-sdk/client-xray 3.180.0 → 3.183.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 (50) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +33 -27
  3. package/dist-es/XRay.js +110 -117
  4. package/dist-es/XRayClient.js +22 -28
  5. package/dist-es/commands/BatchGetTracesCommand.js +21 -28
  6. package/dist-es/commands/CreateGroupCommand.js +21 -28
  7. package/dist-es/commands/CreateSamplingRuleCommand.js +21 -28
  8. package/dist-es/commands/DeleteGroupCommand.js +21 -28
  9. package/dist-es/commands/DeleteSamplingRuleCommand.js +21 -28
  10. package/dist-es/commands/GetEncryptionConfigCommand.js +21 -28
  11. package/dist-es/commands/GetGroupCommand.js +21 -28
  12. package/dist-es/commands/GetGroupsCommand.js +21 -28
  13. package/dist-es/commands/GetInsightCommand.js +21 -28
  14. package/dist-es/commands/GetInsightEventsCommand.js +21 -28
  15. package/dist-es/commands/GetInsightImpactGraphCommand.js +21 -28
  16. package/dist-es/commands/GetInsightSummariesCommand.js +21 -28
  17. package/dist-es/commands/GetSamplingRulesCommand.js +21 -28
  18. package/dist-es/commands/GetSamplingStatisticSummariesCommand.js +21 -28
  19. package/dist-es/commands/GetSamplingTargetsCommand.js +21 -28
  20. package/dist-es/commands/GetServiceGraphCommand.js +21 -28
  21. package/dist-es/commands/GetTimeSeriesServiceStatisticsCommand.js +21 -28
  22. package/dist-es/commands/GetTraceGraphCommand.js +21 -28
  23. package/dist-es/commands/GetTraceSummariesCommand.js +21 -28
  24. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  25. package/dist-es/commands/PutEncryptionConfigCommand.js +21 -28
  26. package/dist-es/commands/PutTelemetryRecordsCommand.js +21 -28
  27. package/dist-es/commands/PutTraceSegmentsCommand.js +21 -28
  28. package/dist-es/commands/TagResourceCommand.js +21 -28
  29. package/dist-es/commands/UntagResourceCommand.js +21 -28
  30. package/dist-es/commands/UpdateGroupCommand.js +21 -28
  31. package/dist-es/commands/UpdateSamplingRuleCommand.js +21 -28
  32. package/dist-es/endpoints.js +8 -8
  33. package/dist-es/models/XRayServiceException.js +5 -10
  34. package/dist-es/models/models_0.js +393 -180
  35. package/dist-es/pagination/BatchGetTracesPaginator.js +24 -67
  36. package/dist-es/pagination/GetGroupsPaginator.js +24 -67
  37. package/dist-es/pagination/GetInsightEventsPaginator.js +25 -68
  38. package/dist-es/pagination/GetInsightSummariesPaginator.js +25 -68
  39. package/dist-es/pagination/GetSamplingRulesPaginator.js +24 -67
  40. package/dist-es/pagination/GetSamplingStatisticSummariesPaginator.js +24 -67
  41. package/dist-es/pagination/GetServiceGraphPaginator.js +24 -67
  42. package/dist-es/pagination/GetTimeSeriesServiceStatisticsPaginator.js +24 -67
  43. package/dist-es/pagination/GetTraceGraphPaginator.js +24 -67
  44. package/dist-es/pagination/GetTraceSummariesPaginator.js +24 -67
  45. package/dist-es/protocols/Aws_restJson1.js +2041 -2695
  46. package/dist-es/runtimeConfig.browser.js +26 -12
  47. package/dist-es/runtimeConfig.js +30 -12
  48. package/dist-es/runtimeConfig.native.js +8 -5
  49. package/dist-es/runtimeConfig.shared.js +8 -11
  50. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateGroupRequestFilterSensitiveLog, CreateGroupResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateGroupCommand, serializeAws_restJson1CreateGroupCommand, } from "../protocols/Aws_restJson1";
6
- var CreateGroupCommand = (function (_super) {
7
- __extends(CreateGroupCommand, _super);
8
- function CreateGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "XRayClient";
18
- var commandName = "CreateGroupCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "XRayClient";
15
+ const commandName = "CreateGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateGroupResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateGroupCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateGroupCommand(input, context);
33
- };
34
- CreateGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateGroupCommand(output, context);
36
- };
37
- return CreateGroupCommand;
38
- }($Command));
39
- export { CreateGroupCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateSamplingRuleRequestFilterSensitiveLog, CreateSamplingRuleResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateSamplingRuleCommand, serializeAws_restJson1CreateSamplingRuleCommand, } from "../protocols/Aws_restJson1";
6
- var CreateSamplingRuleCommand = (function (_super) {
7
- __extends(CreateSamplingRuleCommand, _super);
8
- function CreateSamplingRuleCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateSamplingRuleCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateSamplingRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "XRayClient";
18
- var commandName = "CreateSamplingRuleCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "XRayClient";
15
+ const commandName = "CreateSamplingRuleCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateSamplingRuleRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateSamplingRuleResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateSamplingRuleCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateSamplingRuleCommand(input, context);
33
- };
34
- CreateSamplingRuleCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateSamplingRuleCommand(output, context);
36
- };
37
- return CreateSamplingRuleCommand;
38
- }($Command));
39
- export { CreateSamplingRuleCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteGroupRequestFilterSensitiveLog, DeleteGroupResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteGroupCommand, serializeAws_restJson1DeleteGroupCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteGroupCommand = (function (_super) {
7
- __extends(DeleteGroupCommand, _super);
8
- function DeleteGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "XRayClient";
18
- var commandName = "DeleteGroupCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "XRayClient";
15
+ const commandName = "DeleteGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteGroupResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteGroupCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteGroupCommand(input, context);
33
- };
34
- DeleteGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteGroupCommand(output, context);
36
- };
37
- return DeleteGroupCommand;
38
- }($Command));
39
- export { DeleteGroupCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteSamplingRuleRequestFilterSensitiveLog, DeleteSamplingRuleResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteSamplingRuleCommand, serializeAws_restJson1DeleteSamplingRuleCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteSamplingRuleCommand = (function (_super) {
7
- __extends(DeleteSamplingRuleCommand, _super);
8
- function DeleteSamplingRuleCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteSamplingRuleCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteSamplingRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "XRayClient";
18
- var commandName = "DeleteSamplingRuleCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "XRayClient";
15
+ const commandName = "DeleteSamplingRuleCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteSamplingRuleRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteSamplingRuleResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteSamplingRuleCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteSamplingRuleCommand(input, context);
33
- };
34
- DeleteSamplingRuleCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteSamplingRuleCommand(output, context);
36
- };
37
- return DeleteSamplingRuleCommand;
38
- }($Command));
39
- export { DeleteSamplingRuleCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetEncryptionConfigRequestFilterSensitiveLog, GetEncryptionConfigResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetEncryptionConfigCommand, serializeAws_restJson1GetEncryptionConfigCommand, } from "../protocols/Aws_restJson1";
6
- var GetEncryptionConfigCommand = (function (_super) {
7
- __extends(GetEncryptionConfigCommand, _super);
8
- function GetEncryptionConfigCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetEncryptionConfigCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetEncryptionConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "XRayClient";
18
- var commandName = "GetEncryptionConfigCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "XRayClient";
15
+ const commandName = "GetEncryptionConfigCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetEncryptionConfigRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetEncryptionConfigResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetEncryptionConfigCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetEncryptionConfigCommand(input, context);
33
- };
34
- GetEncryptionConfigCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetEncryptionConfigCommand(output, context);
36
- };
37
- return GetEncryptionConfigCommand;
38
- }($Command));
39
- export { GetEncryptionConfigCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetGroupRequestFilterSensitiveLog, GetGroupResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetGroupCommand, serializeAws_restJson1GetGroupCommand, } from "../protocols/Aws_restJson1";
6
- var GetGroupCommand = (function (_super) {
7
- __extends(GetGroupCommand, _super);
8
- function GetGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "XRayClient";
18
- var commandName = "GetGroupCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "XRayClient";
15
+ const commandName = "GetGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetGroupResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetGroupCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetGroupCommand(input, context);
33
- };
34
- GetGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetGroupCommand(output, context);
36
- };
37
- return GetGroupCommand;
38
- }($Command));
39
- export { GetGroupCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetGroupsRequestFilterSensitiveLog, GetGroupsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetGroupsCommand, serializeAws_restJson1GetGroupsCommand, } from "../protocols/Aws_restJson1";
6
- var GetGroupsCommand = (function (_super) {
7
- __extends(GetGroupsCommand, _super);
8
- function GetGroupsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetGroupsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetGroupsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "XRayClient";
18
- var commandName = "GetGroupsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "XRayClient";
15
+ const commandName = "GetGroupsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetGroupsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetGroupsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetGroupsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetGroupsCommand(input, context);
33
- };
34
- GetGroupsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetGroupsCommand(output, context);
36
- };
37
- return GetGroupsCommand;
38
- }($Command));
39
- export { GetGroupsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetInsightRequestFilterSensitiveLog, GetInsightResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetInsightCommand, serializeAws_restJson1GetInsightCommand, } from "../protocols/Aws_restJson1";
6
- var GetInsightCommand = (function (_super) {
7
- __extends(GetInsightCommand, _super);
8
- function GetInsightCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetInsightCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetInsightCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "XRayClient";
18
- var commandName = "GetInsightCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "XRayClient";
15
+ const commandName = "GetInsightCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetInsightRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetInsightResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetInsightCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetInsightCommand(input, context);
33
- };
34
- GetInsightCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetInsightCommand(output, context);
36
- };
37
- return GetInsightCommand;
38
- }($Command));
39
- export { GetInsightCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetInsightEventsRequestFilterSensitiveLog, GetInsightEventsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetInsightEventsCommand, serializeAws_restJson1GetInsightEventsCommand, } from "../protocols/Aws_restJson1";
6
- var GetInsightEventsCommand = (function (_super) {
7
- __extends(GetInsightEventsCommand, _super);
8
- function GetInsightEventsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetInsightEventsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetInsightEventsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "XRayClient";
18
- var commandName = "GetInsightEventsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "XRayClient";
15
+ const commandName = "GetInsightEventsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetInsightEventsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetInsightEventsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetInsightEventsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetInsightEventsCommand(input, context);
33
- };
34
- GetInsightEventsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetInsightEventsCommand(output, context);
36
- };
37
- return GetInsightEventsCommand;
38
- }($Command));
39
- export { GetInsightEventsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetInsightImpactGraphRequestFilterSensitiveLog, GetInsightImpactGraphResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetInsightImpactGraphCommand, serializeAws_restJson1GetInsightImpactGraphCommand, } from "../protocols/Aws_restJson1";
6
- var GetInsightImpactGraphCommand = (function (_super) {
7
- __extends(GetInsightImpactGraphCommand, _super);
8
- function GetInsightImpactGraphCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetInsightImpactGraphCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetInsightImpactGraphCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "XRayClient";
18
- var commandName = "GetInsightImpactGraphCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "XRayClient";
15
+ const commandName = "GetInsightImpactGraphCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetInsightImpactGraphRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetInsightImpactGraphResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetInsightImpactGraphCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetInsightImpactGraphCommand(input, context);
33
- };
34
- GetInsightImpactGraphCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetInsightImpactGraphCommand(output, context);
36
- };
37
- return GetInsightImpactGraphCommand;
38
- }($Command));
39
- export { GetInsightImpactGraphCommand };
31
+ }
32
+ }