@aws-sdk/client-synthetics 3.181.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 (40) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Synthetics.js +86 -93
  3. package/dist-es/SyntheticsClient.js +22 -28
  4. package/dist-es/commands/AssociateResourceCommand.js +21 -28
  5. package/dist-es/commands/CreateCanaryCommand.js +21 -28
  6. package/dist-es/commands/CreateGroupCommand.js +21 -28
  7. package/dist-es/commands/DeleteCanaryCommand.js +21 -28
  8. package/dist-es/commands/DeleteGroupCommand.js +21 -28
  9. package/dist-es/commands/DescribeCanariesCommand.js +21 -28
  10. package/dist-es/commands/DescribeCanariesLastRunCommand.js +21 -28
  11. package/dist-es/commands/DescribeRuntimeVersionsCommand.js +21 -28
  12. package/dist-es/commands/DisassociateResourceCommand.js +21 -28
  13. package/dist-es/commands/GetCanaryCommand.js +21 -28
  14. package/dist-es/commands/GetCanaryRunsCommand.js +21 -28
  15. package/dist-es/commands/GetGroupCommand.js +21 -28
  16. package/dist-es/commands/ListAssociatedGroupsCommand.js +21 -28
  17. package/dist-es/commands/ListGroupResourcesCommand.js +21 -28
  18. package/dist-es/commands/ListGroupsCommand.js +21 -28
  19. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  20. package/dist-es/commands/StartCanaryCommand.js +21 -28
  21. package/dist-es/commands/StopCanaryCommand.js +21 -28
  22. package/dist-es/commands/TagResourceCommand.js +21 -28
  23. package/dist-es/commands/UntagResourceCommand.js +21 -28
  24. package/dist-es/commands/UpdateCanaryCommand.js +21 -28
  25. package/dist-es/endpoints.js +8 -8
  26. package/dist-es/models/SyntheticsServiceException.js +5 -10
  27. package/dist-es/models/models_0.js +318 -187
  28. package/dist-es/pagination/DescribeCanariesLastRunPaginator.js +25 -68
  29. package/dist-es/pagination/DescribeCanariesPaginator.js +25 -68
  30. package/dist-es/pagination/DescribeRuntimeVersionsPaginator.js +25 -68
  31. package/dist-es/pagination/GetCanaryRunsPaginator.js +25 -68
  32. package/dist-es/pagination/ListAssociatedGroupsPaginator.js +25 -68
  33. package/dist-es/pagination/ListGroupResourcesPaginator.js +25 -68
  34. package/dist-es/pagination/ListGroupsPaginator.js +25 -68
  35. package/dist-es/protocols/Aws_restJson1.js +1547 -2124
  36. package/dist-es/runtimeConfig.browser.js +26 -12
  37. package/dist-es/runtimeConfig.js +30 -12
  38. package/dist-es/runtimeConfig.native.js +8 -5
  39. package/dist-es/runtimeConfig.shared.js +8 -11
  40. 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, CreateGroupResponseFilterSensitiveLog, } 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 = "SyntheticsClient";
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 = "SyntheticsClient";
15
+ const commandName = "CreateGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateGroupResponseFilterSensitiveLog,
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 { DeleteCanaryRequestFilterSensitiveLog, DeleteCanaryResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteCanaryCommand, serializeAws_restJson1DeleteCanaryCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteCanaryCommand = (function (_super) {
7
- __extends(DeleteCanaryCommand, _super);
8
- function DeleteCanaryCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteCanaryCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteCanaryCommand.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 = "SyntheticsClient";
18
- var commandName = "DeleteCanaryCommand";
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 = "SyntheticsClient";
15
+ const commandName = "DeleteCanaryCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteCanaryRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteCanaryResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteCanaryCommand.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_restJson1DeleteCanaryCommand(input, context);
33
- };
34
- DeleteCanaryCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteCanaryCommand(output, context);
36
- };
37
- return DeleteCanaryCommand;
38
- }($Command));
39
- export { DeleteCanaryCommand };
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, DeleteGroupResponseFilterSensitiveLog, } 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 = "SyntheticsClient";
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 = "SyntheticsClient";
15
+ const commandName = "DeleteGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteGroupResponseFilterSensitiveLog,
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 { DescribeCanariesRequestFilterSensitiveLog, DescribeCanariesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeCanariesCommand, serializeAws_restJson1DescribeCanariesCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeCanariesCommand = (function (_super) {
7
- __extends(DescribeCanariesCommand, _super);
8
- function DescribeCanariesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeCanariesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeCanariesCommand.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 = "SyntheticsClient";
18
- var commandName = "DescribeCanariesCommand";
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 = "SyntheticsClient";
15
+ const commandName = "DescribeCanariesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeCanariesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeCanariesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeCanariesCommand.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_restJson1DescribeCanariesCommand(input, context);
33
- };
34
- DescribeCanariesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeCanariesCommand(output, context);
36
- };
37
- return DescribeCanariesCommand;
38
- }($Command));
39
- export { DescribeCanariesCommand };
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 { DescribeCanariesLastRunRequestFilterSensitiveLog, DescribeCanariesLastRunResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeCanariesLastRunCommand, serializeAws_restJson1DescribeCanariesLastRunCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeCanariesLastRunCommand = (function (_super) {
7
- __extends(DescribeCanariesLastRunCommand, _super);
8
- function DescribeCanariesLastRunCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeCanariesLastRunCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeCanariesLastRunCommand.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 = "SyntheticsClient";
18
- var commandName = "DescribeCanariesLastRunCommand";
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 = "SyntheticsClient";
15
+ const commandName = "DescribeCanariesLastRunCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeCanariesLastRunRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeCanariesLastRunResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeCanariesLastRunCommand.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_restJson1DescribeCanariesLastRunCommand(input, context);
33
- };
34
- DescribeCanariesLastRunCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeCanariesLastRunCommand(output, context);
36
- };
37
- return DescribeCanariesLastRunCommand;
38
- }($Command));
39
- export { DescribeCanariesLastRunCommand };
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 { DescribeRuntimeVersionsRequestFilterSensitiveLog, DescribeRuntimeVersionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeRuntimeVersionsCommand, serializeAws_restJson1DescribeRuntimeVersionsCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeRuntimeVersionsCommand = (function (_super) {
7
- __extends(DescribeRuntimeVersionsCommand, _super);
8
- function DescribeRuntimeVersionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeRuntimeVersionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeRuntimeVersionsCommand.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 = "SyntheticsClient";
18
- var commandName = "DescribeRuntimeVersionsCommand";
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 = "SyntheticsClient";
15
+ const commandName = "DescribeRuntimeVersionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeRuntimeVersionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeRuntimeVersionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeRuntimeVersionsCommand.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_restJson1DescribeRuntimeVersionsCommand(input, context);
33
- };
34
- DescribeRuntimeVersionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeRuntimeVersionsCommand(output, context);
36
- };
37
- return DescribeRuntimeVersionsCommand;
38
- }($Command));
39
- export { DescribeRuntimeVersionsCommand };
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 { DisassociateResourceRequestFilterSensitiveLog, DisassociateResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DisassociateResourceCommand, serializeAws_restJson1DisassociateResourceCommand, } from "../protocols/Aws_restJson1";
6
- var DisassociateResourceCommand = (function (_super) {
7
- __extends(DisassociateResourceCommand, _super);
8
- function DisassociateResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisassociateResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisassociateResourceCommand.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 = "SyntheticsClient";
18
- var commandName = "DisassociateResourceCommand";
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 = "SyntheticsClient";
15
+ const commandName = "DisassociateResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisassociateResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DisassociateResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisassociateResourceCommand.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_restJson1DisassociateResourceCommand(input, context);
33
- };
34
- DisassociateResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DisassociateResourceCommand(output, context);
36
- };
37
- return DisassociateResourceCommand;
38
- }($Command));
39
- export { DisassociateResourceCommand };
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 { GetCanaryRequestFilterSensitiveLog, GetCanaryResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetCanaryCommand, serializeAws_restJson1GetCanaryCommand, } from "../protocols/Aws_restJson1";
6
- var GetCanaryCommand = (function (_super) {
7
- __extends(GetCanaryCommand, _super);
8
- function GetCanaryCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetCanaryCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetCanaryCommand.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 = "SyntheticsClient";
18
- var commandName = "GetCanaryCommand";
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 = "SyntheticsClient";
15
+ const commandName = "GetCanaryCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetCanaryRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetCanaryResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetCanaryCommand.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_restJson1GetCanaryCommand(input, context);
33
- };
34
- GetCanaryCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetCanaryCommand(output, context);
36
- };
37
- return GetCanaryCommand;
38
- }($Command));
39
- export { GetCanaryCommand };
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 { GetCanaryRunsRequestFilterSensitiveLog, GetCanaryRunsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetCanaryRunsCommand, serializeAws_restJson1GetCanaryRunsCommand, } from "../protocols/Aws_restJson1";
6
- var GetCanaryRunsCommand = (function (_super) {
7
- __extends(GetCanaryRunsCommand, _super);
8
- function GetCanaryRunsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetCanaryRunsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetCanaryRunsCommand.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 = "SyntheticsClient";
18
- var commandName = "GetCanaryRunsCommand";
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 = "SyntheticsClient";
15
+ const commandName = "GetCanaryRunsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetCanaryRunsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetCanaryRunsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetCanaryRunsCommand.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_restJson1GetCanaryRunsCommand(input, context);
33
- };
34
- GetCanaryRunsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetCanaryRunsCommand(output, context);
36
- };
37
- return GetCanaryRunsCommand;
38
- }($Command));
39
- export { GetCanaryRunsCommand };
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, GetGroupResponseFilterSensitiveLog, } 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 = "SyntheticsClient";
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 = "SyntheticsClient";
15
+ const commandName = "GetGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetGroupResponseFilterSensitiveLog,
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
+ }