@aws-sdk/client-pinpoint 3.185.0 → 3.188.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 (133) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/endpoints.js +14 -0
  3. package/dist-es/Pinpoint.js +478 -485
  4. package/dist-es/PinpointClient.js +22 -28
  5. package/dist-es/commands/CreateAppCommand.js +21 -28
  6. package/dist-es/commands/CreateCampaignCommand.js +21 -28
  7. package/dist-es/commands/CreateEmailTemplateCommand.js +21 -28
  8. package/dist-es/commands/CreateExportJobCommand.js +21 -28
  9. package/dist-es/commands/CreateImportJobCommand.js +21 -28
  10. package/dist-es/commands/CreateInAppTemplateCommand.js +21 -28
  11. package/dist-es/commands/CreateJourneyCommand.js +21 -28
  12. package/dist-es/commands/CreatePushTemplateCommand.js +21 -28
  13. package/dist-es/commands/CreateRecommenderConfigurationCommand.js +21 -28
  14. package/dist-es/commands/CreateSegmentCommand.js +21 -28
  15. package/dist-es/commands/CreateSmsTemplateCommand.js +21 -28
  16. package/dist-es/commands/CreateVoiceTemplateCommand.js +21 -28
  17. package/dist-es/commands/DeleteAdmChannelCommand.js +21 -28
  18. package/dist-es/commands/DeleteApnsChannelCommand.js +21 -28
  19. package/dist-es/commands/DeleteApnsSandboxChannelCommand.js +21 -28
  20. package/dist-es/commands/DeleteApnsVoipChannelCommand.js +21 -28
  21. package/dist-es/commands/DeleteApnsVoipSandboxChannelCommand.js +21 -28
  22. package/dist-es/commands/DeleteAppCommand.js +21 -28
  23. package/dist-es/commands/DeleteBaiduChannelCommand.js +21 -28
  24. package/dist-es/commands/DeleteCampaignCommand.js +21 -28
  25. package/dist-es/commands/DeleteEmailChannelCommand.js +21 -28
  26. package/dist-es/commands/DeleteEmailTemplateCommand.js +21 -28
  27. package/dist-es/commands/DeleteEndpointCommand.js +21 -28
  28. package/dist-es/commands/DeleteEventStreamCommand.js +21 -28
  29. package/dist-es/commands/DeleteGcmChannelCommand.js +21 -28
  30. package/dist-es/commands/DeleteInAppTemplateCommand.js +21 -28
  31. package/dist-es/commands/DeleteJourneyCommand.js +21 -28
  32. package/dist-es/commands/DeletePushTemplateCommand.js +21 -28
  33. package/dist-es/commands/DeleteRecommenderConfigurationCommand.js +21 -28
  34. package/dist-es/commands/DeleteSegmentCommand.js +21 -28
  35. package/dist-es/commands/DeleteSmsChannelCommand.js +21 -28
  36. package/dist-es/commands/DeleteSmsTemplateCommand.js +21 -28
  37. package/dist-es/commands/DeleteUserEndpointsCommand.js +21 -28
  38. package/dist-es/commands/DeleteVoiceChannelCommand.js +21 -28
  39. package/dist-es/commands/DeleteVoiceTemplateCommand.js +21 -28
  40. package/dist-es/commands/GetAdmChannelCommand.js +21 -28
  41. package/dist-es/commands/GetApnsChannelCommand.js +21 -28
  42. package/dist-es/commands/GetApnsSandboxChannelCommand.js +21 -28
  43. package/dist-es/commands/GetApnsVoipChannelCommand.js +21 -28
  44. package/dist-es/commands/GetApnsVoipSandboxChannelCommand.js +21 -28
  45. package/dist-es/commands/GetAppCommand.js +21 -28
  46. package/dist-es/commands/GetApplicationDateRangeKpiCommand.js +21 -28
  47. package/dist-es/commands/GetApplicationSettingsCommand.js +21 -28
  48. package/dist-es/commands/GetAppsCommand.js +21 -28
  49. package/dist-es/commands/GetBaiduChannelCommand.js +21 -28
  50. package/dist-es/commands/GetCampaignActivitiesCommand.js +21 -28
  51. package/dist-es/commands/GetCampaignCommand.js +21 -28
  52. package/dist-es/commands/GetCampaignDateRangeKpiCommand.js +21 -28
  53. package/dist-es/commands/GetCampaignVersionCommand.js +21 -28
  54. package/dist-es/commands/GetCampaignVersionsCommand.js +21 -28
  55. package/dist-es/commands/GetCampaignsCommand.js +21 -28
  56. package/dist-es/commands/GetChannelsCommand.js +21 -28
  57. package/dist-es/commands/GetEmailChannelCommand.js +21 -28
  58. package/dist-es/commands/GetEmailTemplateCommand.js +21 -28
  59. package/dist-es/commands/GetEndpointCommand.js +21 -28
  60. package/dist-es/commands/GetEventStreamCommand.js +21 -28
  61. package/dist-es/commands/GetExportJobCommand.js +21 -28
  62. package/dist-es/commands/GetExportJobsCommand.js +21 -28
  63. package/dist-es/commands/GetGcmChannelCommand.js +21 -28
  64. package/dist-es/commands/GetImportJobCommand.js +21 -28
  65. package/dist-es/commands/GetImportJobsCommand.js +21 -28
  66. package/dist-es/commands/GetInAppMessagesCommand.js +21 -28
  67. package/dist-es/commands/GetInAppTemplateCommand.js +21 -28
  68. package/dist-es/commands/GetJourneyCommand.js +21 -28
  69. package/dist-es/commands/GetJourneyDateRangeKpiCommand.js +21 -28
  70. package/dist-es/commands/GetJourneyExecutionActivityMetricsCommand.js +21 -28
  71. package/dist-es/commands/GetJourneyExecutionMetricsCommand.js +21 -28
  72. package/dist-es/commands/GetPushTemplateCommand.js +21 -28
  73. package/dist-es/commands/GetRecommenderConfigurationCommand.js +21 -28
  74. package/dist-es/commands/GetRecommenderConfigurationsCommand.js +21 -28
  75. package/dist-es/commands/GetSegmentCommand.js +21 -28
  76. package/dist-es/commands/GetSegmentExportJobsCommand.js +21 -28
  77. package/dist-es/commands/GetSegmentImportJobsCommand.js +21 -28
  78. package/dist-es/commands/GetSegmentVersionCommand.js +21 -28
  79. package/dist-es/commands/GetSegmentVersionsCommand.js +21 -28
  80. package/dist-es/commands/GetSegmentsCommand.js +21 -28
  81. package/dist-es/commands/GetSmsChannelCommand.js +21 -28
  82. package/dist-es/commands/GetSmsTemplateCommand.js +21 -28
  83. package/dist-es/commands/GetUserEndpointsCommand.js +21 -28
  84. package/dist-es/commands/GetVoiceChannelCommand.js +21 -28
  85. package/dist-es/commands/GetVoiceTemplateCommand.js +21 -28
  86. package/dist-es/commands/ListJourneysCommand.js +21 -28
  87. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  88. package/dist-es/commands/ListTemplateVersionsCommand.js +21 -28
  89. package/dist-es/commands/ListTemplatesCommand.js +21 -28
  90. package/dist-es/commands/PhoneNumberValidateCommand.js +21 -28
  91. package/dist-es/commands/PutEventStreamCommand.js +21 -28
  92. package/dist-es/commands/PutEventsCommand.js +21 -28
  93. package/dist-es/commands/RemoveAttributesCommand.js +21 -28
  94. package/dist-es/commands/SendMessagesCommand.js +21 -28
  95. package/dist-es/commands/SendOTPMessageCommand.js +21 -28
  96. package/dist-es/commands/SendUsersMessagesCommand.js +21 -28
  97. package/dist-es/commands/TagResourceCommand.js +22 -29
  98. package/dist-es/commands/UntagResourceCommand.js +22 -29
  99. package/dist-es/commands/UpdateAdmChannelCommand.js +21 -28
  100. package/dist-es/commands/UpdateApnsChannelCommand.js +21 -28
  101. package/dist-es/commands/UpdateApnsSandboxChannelCommand.js +21 -28
  102. package/dist-es/commands/UpdateApnsVoipChannelCommand.js +21 -28
  103. package/dist-es/commands/UpdateApnsVoipSandboxChannelCommand.js +21 -28
  104. package/dist-es/commands/UpdateApplicationSettingsCommand.js +21 -28
  105. package/dist-es/commands/UpdateBaiduChannelCommand.js +21 -28
  106. package/dist-es/commands/UpdateCampaignCommand.js +21 -28
  107. package/dist-es/commands/UpdateEmailChannelCommand.js +21 -28
  108. package/dist-es/commands/UpdateEmailTemplateCommand.js +21 -28
  109. package/dist-es/commands/UpdateEndpointCommand.js +21 -28
  110. package/dist-es/commands/UpdateEndpointsBatchCommand.js +21 -28
  111. package/dist-es/commands/UpdateGcmChannelCommand.js +21 -28
  112. package/dist-es/commands/UpdateInAppTemplateCommand.js +21 -28
  113. package/dist-es/commands/UpdateJourneyCommand.js +21 -28
  114. package/dist-es/commands/UpdateJourneyStateCommand.js +21 -28
  115. package/dist-es/commands/UpdatePushTemplateCommand.js +21 -28
  116. package/dist-es/commands/UpdateRecommenderConfigurationCommand.js +21 -28
  117. package/dist-es/commands/UpdateSegmentCommand.js +21 -28
  118. package/dist-es/commands/UpdateSmsChannelCommand.js +21 -28
  119. package/dist-es/commands/UpdateSmsTemplateCommand.js +21 -28
  120. package/dist-es/commands/UpdateTemplateActiveVersionCommand.js +21 -28
  121. package/dist-es/commands/UpdateVoiceChannelCommand.js +21 -28
  122. package/dist-es/commands/UpdateVoiceTemplateCommand.js +21 -28
  123. package/dist-es/commands/VerifyOTPMessageCommand.js +21 -28
  124. package/dist-es/endpoints.js +22 -8
  125. package/dist-es/models/PinpointServiceException.js +5 -10
  126. package/dist-es/models/models_0.js +902 -371
  127. package/dist-es/models/models_1.js +516 -173
  128. package/dist-es/protocols/Aws_restJson1.js +10181 -13421
  129. package/dist-es/runtimeConfig.browser.js +26 -12
  130. package/dist-es/runtimeConfig.js +30 -12
  131. package/dist-es/runtimeConfig.native.js +8 -5
  132. package/dist-es/runtimeConfig.shared.js +8 -11
  133. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var PinpointClient = (function (_super) {
13
- __extends(PinpointClient, _super);
14
- function PinpointClient(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;
11
+ export class PinpointClient 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));
33
29
  }
34
- PinpointClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return PinpointClient;
38
- }(__Client));
39
- export { PinpointClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
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 { CreateAppRequestFilterSensitiveLog, CreateAppResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateAppCommand, serializeAws_restJson1CreateAppCommand, } from "../protocols/Aws_restJson1";
6
- var CreateAppCommand = (function (_super) {
7
- __extends(CreateAppCommand, _super);
8
- function CreateAppCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateAppCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateAppCommand.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 = "PinpointClient";
18
- var commandName = "CreateAppCommand";
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 = "PinpointClient";
15
+ const commandName = "CreateAppCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateAppRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateAppResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateAppCommand.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_restJson1CreateAppCommand(input, context);
33
- };
34
- CreateAppCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateAppCommand(output, context);
36
- };
37
- return CreateAppCommand;
38
- }($Command));
39
- export { CreateAppCommand };
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 { CreateCampaignRequestFilterSensitiveLog, CreateCampaignResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateCampaignCommand, serializeAws_restJson1CreateCampaignCommand, } from "../protocols/Aws_restJson1";
6
- var CreateCampaignCommand = (function (_super) {
7
- __extends(CreateCampaignCommand, _super);
8
- function CreateCampaignCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateCampaignCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateCampaignCommand.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 = "PinpointClient";
18
- var commandName = "CreateCampaignCommand";
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 = "PinpointClient";
15
+ const commandName = "CreateCampaignCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateCampaignRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateCampaignResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateCampaignCommand.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_restJson1CreateCampaignCommand(input, context);
33
- };
34
- CreateCampaignCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateCampaignCommand(output, context);
36
- };
37
- return CreateCampaignCommand;
38
- }($Command));
39
- export { CreateCampaignCommand };
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 { CreateEmailTemplateRequestFilterSensitiveLog, CreateEmailTemplateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateEmailTemplateCommand, serializeAws_restJson1CreateEmailTemplateCommand, } from "../protocols/Aws_restJson1";
6
- var CreateEmailTemplateCommand = (function (_super) {
7
- __extends(CreateEmailTemplateCommand, _super);
8
- function CreateEmailTemplateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateEmailTemplateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateEmailTemplateCommand.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 = "PinpointClient";
18
- var commandName = "CreateEmailTemplateCommand";
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 = "PinpointClient";
15
+ const commandName = "CreateEmailTemplateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateEmailTemplateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateEmailTemplateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateEmailTemplateCommand.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_restJson1CreateEmailTemplateCommand(input, context);
33
- };
34
- CreateEmailTemplateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateEmailTemplateCommand(output, context);
36
- };
37
- return CreateEmailTemplateCommand;
38
- }($Command));
39
- export { CreateEmailTemplateCommand };
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 { CreateExportJobRequestFilterSensitiveLog, CreateExportJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateExportJobCommand, serializeAws_restJson1CreateExportJobCommand, } from "../protocols/Aws_restJson1";
6
- var CreateExportJobCommand = (function (_super) {
7
- __extends(CreateExportJobCommand, _super);
8
- function CreateExportJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateExportJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateExportJobCommand.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 = "PinpointClient";
18
- var commandName = "CreateExportJobCommand";
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 = "PinpointClient";
15
+ const commandName = "CreateExportJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateExportJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateExportJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateExportJobCommand.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_restJson1CreateExportJobCommand(input, context);
33
- };
34
- CreateExportJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateExportJobCommand(output, context);
36
- };
37
- return CreateExportJobCommand;
38
- }($Command));
39
- export { CreateExportJobCommand };
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 { CreateImportJobRequestFilterSensitiveLog, CreateImportJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateImportJobCommand, serializeAws_restJson1CreateImportJobCommand, } from "../protocols/Aws_restJson1";
6
- var CreateImportJobCommand = (function (_super) {
7
- __extends(CreateImportJobCommand, _super);
8
- function CreateImportJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateImportJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateImportJobCommand.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 = "PinpointClient";
18
- var commandName = "CreateImportJobCommand";
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 = "PinpointClient";
15
+ const commandName = "CreateImportJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateImportJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateImportJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateImportJobCommand.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_restJson1CreateImportJobCommand(input, context);
33
- };
34
- CreateImportJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateImportJobCommand(output, context);
36
- };
37
- return CreateImportJobCommand;
38
- }($Command));
39
- export { CreateImportJobCommand };
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 { CreateInAppTemplateRequestFilterSensitiveLog, CreateInAppTemplateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateInAppTemplateCommand, serializeAws_restJson1CreateInAppTemplateCommand, } from "../protocols/Aws_restJson1";
6
- var CreateInAppTemplateCommand = (function (_super) {
7
- __extends(CreateInAppTemplateCommand, _super);
8
- function CreateInAppTemplateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateInAppTemplateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateInAppTemplateCommand.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 = "PinpointClient";
18
- var commandName = "CreateInAppTemplateCommand";
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 = "PinpointClient";
15
+ const commandName = "CreateInAppTemplateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateInAppTemplateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateInAppTemplateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateInAppTemplateCommand.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_restJson1CreateInAppTemplateCommand(input, context);
33
- };
34
- CreateInAppTemplateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateInAppTemplateCommand(output, context);
36
- };
37
- return CreateInAppTemplateCommand;
38
- }($Command));
39
- export { CreateInAppTemplateCommand };
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 { CreateJourneyRequestFilterSensitiveLog, CreateJourneyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateJourneyCommand, serializeAws_restJson1CreateJourneyCommand, } from "../protocols/Aws_restJson1";
6
- var CreateJourneyCommand = (function (_super) {
7
- __extends(CreateJourneyCommand, _super);
8
- function CreateJourneyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateJourneyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateJourneyCommand.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 = "PinpointClient";
18
- var commandName = "CreateJourneyCommand";
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 = "PinpointClient";
15
+ const commandName = "CreateJourneyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateJourneyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateJourneyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateJourneyCommand.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_restJson1CreateJourneyCommand(input, context);
33
- };
34
- CreateJourneyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateJourneyCommand(output, context);
36
- };
37
- return CreateJourneyCommand;
38
- }($Command));
39
- export { CreateJourneyCommand };
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 { CreatePushTemplateRequestFilterSensitiveLog, CreatePushTemplateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreatePushTemplateCommand, serializeAws_restJson1CreatePushTemplateCommand, } from "../protocols/Aws_restJson1";
6
- var CreatePushTemplateCommand = (function (_super) {
7
- __extends(CreatePushTemplateCommand, _super);
8
- function CreatePushTemplateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreatePushTemplateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreatePushTemplateCommand.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 = "PinpointClient";
18
- var commandName = "CreatePushTemplateCommand";
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 = "PinpointClient";
15
+ const commandName = "CreatePushTemplateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreatePushTemplateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreatePushTemplateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreatePushTemplateCommand.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_restJson1CreatePushTemplateCommand(input, context);
33
- };
34
- CreatePushTemplateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreatePushTemplateCommand(output, context);
36
- };
37
- return CreatePushTemplateCommand;
38
- }($Command));
39
- export { CreatePushTemplateCommand };
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 { CreateRecommenderConfigurationRequestFilterSensitiveLog, CreateRecommenderConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateRecommenderConfigurationCommand, serializeAws_restJson1CreateRecommenderConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var CreateRecommenderConfigurationCommand = (function (_super) {
7
- __extends(CreateRecommenderConfigurationCommand, _super);
8
- function CreateRecommenderConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateRecommenderConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateRecommenderConfigurationCommand.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 = "PinpointClient";
18
- var commandName = "CreateRecommenderConfigurationCommand";
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 = "PinpointClient";
15
+ const commandName = "CreateRecommenderConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateRecommenderConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateRecommenderConfigurationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateRecommenderConfigurationCommand.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_restJson1CreateRecommenderConfigurationCommand(input, context);
33
- };
34
- CreateRecommenderConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateRecommenderConfigurationCommand(output, context);
36
- };
37
- return CreateRecommenderConfigurationCommand;
38
- }($Command));
39
- export { CreateRecommenderConfigurationCommand };
31
+ }
32
+ }