@aws-sdk/client-pinpoint 3.319.0 → 3.320.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.
- package/README.md +24 -0
- package/dist-cjs/Pinpoint.js +6 -0
- package/dist-cjs/commands/GetJourneyRunExecutionActivityMetricsCommand.js +45 -0
- package/dist-cjs/commands/GetJourneyRunExecutionMetricsCommand.js +45 -0
- package/dist-cjs/commands/GetJourneyRunsCommand.js +45 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_1.js +7 -0
- package/dist-cjs/protocols/Aws_restJson1.js +226 -4
- package/dist-es/Pinpoint.js +6 -0
- package/dist-es/commands/GetJourneyRunExecutionActivityMetricsCommand.js +41 -0
- package/dist-es/commands/GetJourneyRunExecutionMetricsCommand.js +41 -0
- package/dist-es/commands/GetJourneyRunsCommand.js +41 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_1.js +6 -1
- package/dist-es/protocols/Aws_restJson1.js +216 -0
- package/dist-types/Pinpoint.d.ts +21 -0
- package/dist-types/PinpointClient.d.ts +5 -2
- package/dist-types/commands/CreateCampaignCommand.d.ts +33 -33
- package/dist-types/commands/CreateImportJobCommand.d.ts +1 -1
- package/dist-types/commands/CreateInAppTemplateCommand.d.ts +10 -10
- package/dist-types/commands/CreateJourneyCommand.d.ts +19 -19
- package/dist-types/commands/CreatePushTemplateCommand.d.ts +5 -5
- package/dist-types/commands/CreateSegmentCommand.d.ts +16 -16
- package/dist-types/commands/GetJourneyRunExecutionActivityMetricsCommand.d.ts +89 -0
- package/dist-types/commands/GetJourneyRunExecutionMetricsCommand.d.ts +88 -0
- package/dist-types/commands/GetJourneyRunsCommand.d.ts +87 -0
- package/dist-types/commands/PutEventsCommand.d.ts +1 -1
- package/dist-types/commands/SendMessagesCommand.d.ts +7 -7
- package/dist-types/commands/SendUsersMessagesCommand.d.ts +6 -6
- package/dist-types/commands/UpdateApplicationSettingsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateCampaignCommand.d.ts +33 -33
- package/dist-types/commands/UpdateEndpointCommand.d.ts +1 -1
- package/dist-types/commands/UpdateEndpointsBatchCommand.d.ts +1 -1
- package/dist-types/commands/UpdateInAppTemplateCommand.d.ts +10 -10
- package/dist-types/commands/UpdateJourneyCommand.d.ts +19 -19
- package/dist-types/commands/UpdateJourneyStateCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePushTemplateCommand.d.ts +5 -5
- package/dist-types/commands/UpdateSegmentCommand.d.ts +16 -16
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +30 -26
- package/dist-types/models/models_1.d.ts +215 -3
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/Pinpoint.d.ts +57 -0
- package/dist-types/ts3.4/PinpointClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/GetJourneyRunExecutionActivityMetricsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetJourneyRunExecutionMetricsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetJourneyRunsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/dist-types/ts3.4/models/models_1.d.ts +68 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -741,6 +741,30 @@ GetJourneyExecutionMetrics
|
|
|
741
741
|
|
|
742
742
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint/classes/getjourneyexecutionmetricscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint/interfaces/getjourneyexecutionmetricscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint/interfaces/getjourneyexecutionmetricscommandoutput.html)
|
|
743
743
|
|
|
744
|
+
</details>
|
|
745
|
+
<details>
|
|
746
|
+
<summary>
|
|
747
|
+
GetJourneyRunExecutionActivityMetrics
|
|
748
|
+
</summary>
|
|
749
|
+
|
|
750
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint/classes/getjourneyrunexecutionactivitymetricscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint/interfaces/getjourneyrunexecutionactivitymetricscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint/interfaces/getjourneyrunexecutionactivitymetricscommandoutput.html)
|
|
751
|
+
|
|
752
|
+
</details>
|
|
753
|
+
<details>
|
|
754
|
+
<summary>
|
|
755
|
+
GetJourneyRunExecutionMetrics
|
|
756
|
+
</summary>
|
|
757
|
+
|
|
758
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint/classes/getjourneyrunexecutionmetricscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint/interfaces/getjourneyrunexecutionmetricscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint/interfaces/getjourneyrunexecutionmetricscommandoutput.html)
|
|
759
|
+
|
|
760
|
+
</details>
|
|
761
|
+
<details>
|
|
762
|
+
<summary>
|
|
763
|
+
GetJourneyRuns
|
|
764
|
+
</summary>
|
|
765
|
+
|
|
766
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint/classes/getjourneyrunscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint/interfaces/getjourneyrunscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint/interfaces/getjourneyrunscommandoutput.html)
|
|
767
|
+
|
|
744
768
|
</details>
|
|
745
769
|
<details>
|
|
746
770
|
<summary>
|
package/dist-cjs/Pinpoint.js
CHANGED
|
@@ -69,6 +69,9 @@ const GetJourneyCommand_1 = require("./commands/GetJourneyCommand");
|
|
|
69
69
|
const GetJourneyDateRangeKpiCommand_1 = require("./commands/GetJourneyDateRangeKpiCommand");
|
|
70
70
|
const GetJourneyExecutionActivityMetricsCommand_1 = require("./commands/GetJourneyExecutionActivityMetricsCommand");
|
|
71
71
|
const GetJourneyExecutionMetricsCommand_1 = require("./commands/GetJourneyExecutionMetricsCommand");
|
|
72
|
+
const GetJourneyRunExecutionActivityMetricsCommand_1 = require("./commands/GetJourneyRunExecutionActivityMetricsCommand");
|
|
73
|
+
const GetJourneyRunExecutionMetricsCommand_1 = require("./commands/GetJourneyRunExecutionMetricsCommand");
|
|
74
|
+
const GetJourneyRunsCommand_1 = require("./commands/GetJourneyRunsCommand");
|
|
72
75
|
const GetPushTemplateCommand_1 = require("./commands/GetPushTemplateCommand");
|
|
73
76
|
const GetRecommenderConfigurationCommand_1 = require("./commands/GetRecommenderConfigurationCommand");
|
|
74
77
|
const GetRecommenderConfigurationsCommand_1 = require("./commands/GetRecommenderConfigurationsCommand");
|
|
@@ -190,6 +193,9 @@ const commands = {
|
|
|
190
193
|
GetJourneyDateRangeKpiCommand: GetJourneyDateRangeKpiCommand_1.GetJourneyDateRangeKpiCommand,
|
|
191
194
|
GetJourneyExecutionActivityMetricsCommand: GetJourneyExecutionActivityMetricsCommand_1.GetJourneyExecutionActivityMetricsCommand,
|
|
192
195
|
GetJourneyExecutionMetricsCommand: GetJourneyExecutionMetricsCommand_1.GetJourneyExecutionMetricsCommand,
|
|
196
|
+
GetJourneyRunExecutionActivityMetricsCommand: GetJourneyRunExecutionActivityMetricsCommand_1.GetJourneyRunExecutionActivityMetricsCommand,
|
|
197
|
+
GetJourneyRunExecutionMetricsCommand: GetJourneyRunExecutionMetricsCommand_1.GetJourneyRunExecutionMetricsCommand,
|
|
198
|
+
GetJourneyRunsCommand: GetJourneyRunsCommand_1.GetJourneyRunsCommand,
|
|
193
199
|
GetPushTemplateCommand: GetPushTemplateCommand_1.GetPushTemplateCommand,
|
|
194
200
|
GetRecommenderConfigurationCommand: GetRecommenderConfigurationCommand_1.GetRecommenderConfigurationCommand,
|
|
195
201
|
GetRecommenderConfigurationsCommand: GetRecommenderConfigurationsCommand_1.GetRecommenderConfigurationsCommand,
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetJourneyRunExecutionActivityMetricsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class GetJourneyRunExecutionActivityMetricsCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetJourneyRunExecutionActivityMetricsCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "PinpointClient";
|
|
27
|
+
const commandName = "GetJourneyRunExecutionActivityMetricsCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.se_GetJourneyRunExecutionActivityMetricsCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.de_GetJourneyRunExecutionActivityMetricsCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.GetJourneyRunExecutionActivityMetricsCommand = GetJourneyRunExecutionActivityMetricsCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetJourneyRunExecutionMetricsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class GetJourneyRunExecutionMetricsCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetJourneyRunExecutionMetricsCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "PinpointClient";
|
|
27
|
+
const commandName = "GetJourneyRunExecutionMetricsCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.se_GetJourneyRunExecutionMetricsCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.de_GetJourneyRunExecutionMetricsCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.GetJourneyRunExecutionMetricsCommand = GetJourneyRunExecutionMetricsCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetJourneyRunsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class GetJourneyRunsCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetJourneyRunsCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "PinpointClient";
|
|
27
|
+
const commandName = "GetJourneyRunsCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.se_GetJourneyRunsCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.de_GetJourneyRunsCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.GetJourneyRunsCommand = GetJourneyRunsCommand;
|
|
@@ -68,6 +68,9 @@ tslib_1.__exportStar(require("./GetJourneyCommand"), exports);
|
|
|
68
68
|
tslib_1.__exportStar(require("./GetJourneyDateRangeKpiCommand"), exports);
|
|
69
69
|
tslib_1.__exportStar(require("./GetJourneyExecutionActivityMetricsCommand"), exports);
|
|
70
70
|
tslib_1.__exportStar(require("./GetJourneyExecutionMetricsCommand"), exports);
|
|
71
|
+
tslib_1.__exportStar(require("./GetJourneyRunExecutionActivityMetricsCommand"), exports);
|
|
72
|
+
tslib_1.__exportStar(require("./GetJourneyRunExecutionMetricsCommand"), exports);
|
|
73
|
+
tslib_1.__exportStar(require("./GetJourneyRunsCommand"), exports);
|
|
71
74
|
tslib_1.__exportStar(require("./GetPushTemplateCommand"), exports);
|
|
72
75
|
tslib_1.__exportStar(require("./GetRecommenderConfigurationCommand"), exports);
|
|
73
76
|
tslib_1.__exportStar(require("./GetRecommenderConfigurationsCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const u = "required", v = "fn", w = "argv", x = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = { [u]: false, "type": "String" }, h = { [u]: true, "default": false, "type": "Boolean" }, i = { [x]: "Endpoint" }, j = { [v]: "booleanEquals", [w]: [{ [x]: "UseFIPS" }, true] }, k = { [v]: "booleanEquals", [w]: [{ [x]: "UseDualStack" }, true] }, l = {}, m = { [x]: "Region" }, n = { [v]: "booleanEquals", [w]: [true, { [v]: "getAttr", [w]: [{ [x]: e }, "supportsFIPS"] }] }, o = { [v]: "booleanEquals", [w]: [true, { [v]: "getAttr", [w]: [{ [x]: e }, "supportsDualStack"] }] }, p = { [v]: "getAttr", [w]: [{ [x]: e }, "name"] }, q = { "url": "https://pinpoint.{Region}.amazonaws.com", "properties": {}, "headers": {} }, r = [j], s = [k], t = [m];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [v]: a, [w]: [i] }], type: b, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [v]: a, [w]: t }], type: b, rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [n, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pinpoint-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: r, type: b, rules: [{ conditions: [n], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pinpoint-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: s, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pinpoint.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ conditions: [{ [v]: f, [w]: [m, "us-east-1"] }], endpoint: { url: "https://pinpoint.us-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: [m, "us-west-2"] }], endpoint: { url: "https://pinpoint.us-west-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: [m, "us-gov-west-1"] }], endpoint: { url: "https://pinpoint.us-gov-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: ["aws", p] }], endpoint: q, type: d }, { conditions: [{ [v]: f, [w]: ["aws-us-gov", p] }], endpoint: q, type: d }, { endpoint: { url: "https://pinpoint.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.se_GetCampaignVersionCommand = exports.se_GetCampaignsCommand = exports.se_GetCampaignDateRangeKpiCommand = exports.se_GetCampaignActivitiesCommand = exports.se_GetCampaignCommand = exports.se_GetBaiduChannelCommand = exports.se_GetAppsCommand = exports.se_GetApplicationSettingsCommand = exports.se_GetApplicationDateRangeKpiCommand = exports.se_GetAppCommand = exports.se_GetApnsVoipSandboxChannelCommand = exports.se_GetApnsVoipChannelCommand = exports.se_GetApnsSandboxChannelCommand = exports.se_GetApnsChannelCommand = exports.se_GetAdmChannelCommand = exports.se_DeleteVoiceTemplateCommand = exports.se_DeleteVoiceChannelCommand = exports.se_DeleteUserEndpointsCommand = exports.se_DeleteSmsTemplateCommand = exports.se_DeleteSmsChannelCommand = exports.se_DeleteSegmentCommand = exports.se_DeleteRecommenderConfigurationCommand = exports.se_DeletePushTemplateCommand = exports.se_DeleteJourneyCommand = exports.se_DeleteInAppTemplateCommand = exports.se_DeleteGcmChannelCommand = exports.se_DeleteEventStreamCommand = exports.se_DeleteEndpointCommand = exports.se_DeleteEmailTemplateCommand = exports.se_DeleteEmailChannelCommand = exports.se_DeleteCampaignCommand = exports.se_DeleteBaiduChannelCommand = exports.se_DeleteAppCommand = exports.se_DeleteApnsVoipSandboxChannelCommand = exports.se_DeleteApnsVoipChannelCommand = exports.se_DeleteApnsSandboxChannelCommand = exports.se_DeleteApnsChannelCommand = exports.se_DeleteAdmChannelCommand = exports.se_CreateVoiceTemplateCommand = exports.se_CreateSmsTemplateCommand = exports.se_CreateSegmentCommand = exports.se_CreateRecommenderConfigurationCommand = exports.se_CreatePushTemplateCommand = exports.se_CreateJourneyCommand = exports.se_CreateInAppTemplateCommand = exports.se_CreateImportJobCommand = exports.se_CreateExportJobCommand = exports.se_CreateEmailTemplateCommand = exports.se_CreateCampaignCommand = exports.se_CreateAppCommand = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.de_VerifyOTPMessageCommand = exports.de_UpdateVoiceTemplateCommand = exports.de_UpdateVoiceChannelCommand = exports.de_UpdateTemplateActiveVersionCommand = exports.de_UpdateSmsTemplateCommand = exports.de_UpdateSmsChannelCommand = exports.de_UpdateSegmentCommand = exports.de_UpdateRecommenderConfigurationCommand = exports.de_UpdatePushTemplateCommand = exports.de_UpdateJourneyStateCommand = exports.de_UpdateJourneyCommand = exports.de_UpdateInAppTemplateCommand = exports.de_UpdateGcmChannelCommand = exports.de_UpdateEndpointsBatchCommand = exports.de_UpdateEndpointCommand = exports.de_UpdateEmailTemplateCommand = exports.de_UpdateEmailChannelCommand = exports.de_UpdateCampaignCommand = exports.de_UpdateBaiduChannelCommand = exports.de_UpdateApplicationSettingsCommand = exports.de_UpdateApnsVoipSandboxChannelCommand = exports.de_UpdateApnsVoipChannelCommand = exports.de_UpdateApnsSandboxChannelCommand = exports.de_UpdateApnsChannelCommand = exports.de_UpdateAdmChannelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SendUsersMessagesCommand = exports.de_SendOTPMessageCommand = exports.de_SendMessagesCommand = exports.de_RemoveAttributesCommand = exports.de_PutEventStreamCommand = exports.de_PutEventsCommand = exports.de_PhoneNumberValidateCommand = exports.de_ListTemplateVersionsCommand = exports.de_ListTemplatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListJourneysCommand = void 0;
|
|
4
|
+
exports.se_UpdateApnsSandboxChannelCommand = exports.se_UpdateApnsChannelCommand = exports.se_UpdateAdmChannelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SendUsersMessagesCommand = exports.se_SendOTPMessageCommand = exports.se_SendMessagesCommand = exports.se_RemoveAttributesCommand = exports.se_PutEventStreamCommand = exports.se_PutEventsCommand = exports.se_PhoneNumberValidateCommand = exports.se_ListTemplateVersionsCommand = exports.se_ListTemplatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListJourneysCommand = exports.se_GetVoiceTemplateCommand = exports.se_GetVoiceChannelCommand = exports.se_GetUserEndpointsCommand = exports.se_GetSmsTemplateCommand = exports.se_GetSmsChannelCommand = exports.se_GetSegmentVersionsCommand = exports.se_GetSegmentVersionCommand = exports.se_GetSegmentsCommand = exports.se_GetSegmentImportJobsCommand = exports.se_GetSegmentExportJobsCommand = exports.se_GetSegmentCommand = exports.se_GetRecommenderConfigurationsCommand = exports.se_GetRecommenderConfigurationCommand = exports.se_GetPushTemplateCommand = exports.se_GetJourneyRunsCommand = exports.se_GetJourneyRunExecutionMetricsCommand = exports.se_GetJourneyRunExecutionActivityMetricsCommand = exports.se_GetJourneyExecutionMetricsCommand = exports.se_GetJourneyExecutionActivityMetricsCommand = exports.se_GetJourneyDateRangeKpiCommand = exports.se_GetJourneyCommand = exports.se_GetInAppTemplateCommand = exports.se_GetInAppMessagesCommand = exports.se_GetImportJobsCommand = exports.se_GetImportJobCommand = exports.se_GetGcmChannelCommand = exports.se_GetExportJobsCommand = exports.se_GetExportJobCommand = exports.se_GetEventStreamCommand = exports.se_GetEndpointCommand = exports.se_GetEmailTemplateCommand = exports.se_GetEmailChannelCommand = exports.se_GetChannelsCommand = exports.se_GetCampaignVersionsCommand = void 0;
|
|
5
|
+
exports.de_DeletePushTemplateCommand = exports.de_DeleteJourneyCommand = exports.de_DeleteInAppTemplateCommand = exports.de_DeleteGcmChannelCommand = exports.de_DeleteEventStreamCommand = exports.de_DeleteEndpointCommand = exports.de_DeleteEmailTemplateCommand = exports.de_DeleteEmailChannelCommand = exports.de_DeleteCampaignCommand = exports.de_DeleteBaiduChannelCommand = exports.de_DeleteAppCommand = exports.de_DeleteApnsVoipSandboxChannelCommand = exports.de_DeleteApnsVoipChannelCommand = exports.de_DeleteApnsSandboxChannelCommand = exports.de_DeleteApnsChannelCommand = exports.de_DeleteAdmChannelCommand = exports.de_CreateVoiceTemplateCommand = exports.de_CreateSmsTemplateCommand = exports.de_CreateSegmentCommand = exports.de_CreateRecommenderConfigurationCommand = exports.de_CreatePushTemplateCommand = exports.de_CreateJourneyCommand = exports.de_CreateInAppTemplateCommand = exports.de_CreateImportJobCommand = exports.de_CreateExportJobCommand = exports.de_CreateEmailTemplateCommand = exports.de_CreateCampaignCommand = exports.de_CreateAppCommand = exports.se_VerifyOTPMessageCommand = exports.se_UpdateVoiceTemplateCommand = exports.se_UpdateVoiceChannelCommand = exports.se_UpdateTemplateActiveVersionCommand = exports.se_UpdateSmsTemplateCommand = exports.se_UpdateSmsChannelCommand = exports.se_UpdateSegmentCommand = exports.se_UpdateRecommenderConfigurationCommand = exports.se_UpdatePushTemplateCommand = exports.se_UpdateJourneyStateCommand = exports.se_UpdateJourneyCommand = exports.se_UpdateInAppTemplateCommand = exports.se_UpdateGcmChannelCommand = exports.se_UpdateEndpointsBatchCommand = exports.se_UpdateEndpointCommand = exports.se_UpdateEmailTemplateCommand = exports.se_UpdateEmailChannelCommand = exports.se_UpdateCampaignCommand = exports.se_UpdateBaiduChannelCommand = exports.se_UpdateApplicationSettingsCommand = exports.se_UpdateApnsVoipSandboxChannelCommand = exports.se_UpdateApnsVoipChannelCommand = void 0;
|
|
6
|
+
exports.de_GetSegmentVersionCommand = exports.de_GetSegmentsCommand = exports.de_GetSegmentImportJobsCommand = exports.de_GetSegmentExportJobsCommand = exports.de_GetSegmentCommand = exports.de_GetRecommenderConfigurationsCommand = exports.de_GetRecommenderConfigurationCommand = exports.de_GetPushTemplateCommand = exports.de_GetJourneyRunsCommand = exports.de_GetJourneyRunExecutionMetricsCommand = exports.de_GetJourneyRunExecutionActivityMetricsCommand = exports.de_GetJourneyExecutionMetricsCommand = exports.de_GetJourneyExecutionActivityMetricsCommand = exports.de_GetJourneyDateRangeKpiCommand = exports.de_GetJourneyCommand = exports.de_GetInAppTemplateCommand = exports.de_GetInAppMessagesCommand = exports.de_GetImportJobsCommand = exports.de_GetImportJobCommand = exports.de_GetGcmChannelCommand = exports.de_GetExportJobsCommand = exports.de_GetExportJobCommand = exports.de_GetEventStreamCommand = exports.de_GetEndpointCommand = exports.de_GetEmailTemplateCommand = exports.de_GetEmailChannelCommand = exports.de_GetChannelsCommand = exports.de_GetCampaignVersionsCommand = exports.de_GetCampaignVersionCommand = exports.de_GetCampaignsCommand = exports.de_GetCampaignDateRangeKpiCommand = exports.de_GetCampaignActivitiesCommand = exports.de_GetCampaignCommand = exports.de_GetBaiduChannelCommand = exports.de_GetAppsCommand = exports.de_GetApplicationSettingsCommand = exports.de_GetApplicationDateRangeKpiCommand = exports.de_GetAppCommand = exports.de_GetApnsVoipSandboxChannelCommand = exports.de_GetApnsVoipChannelCommand = exports.de_GetApnsSandboxChannelCommand = exports.de_GetApnsChannelCommand = exports.de_GetAdmChannelCommand = exports.de_DeleteVoiceTemplateCommand = exports.de_DeleteVoiceChannelCommand = exports.de_DeleteUserEndpointsCommand = exports.de_DeleteSmsTemplateCommand = exports.de_DeleteSmsChannelCommand = exports.de_DeleteSegmentCommand = exports.de_DeleteRecommenderConfigurationCommand = void 0;
|
|
7
|
+
exports.de_VerifyOTPMessageCommand = exports.de_UpdateVoiceTemplateCommand = exports.de_UpdateVoiceChannelCommand = exports.de_UpdateTemplateActiveVersionCommand = exports.de_UpdateSmsTemplateCommand = exports.de_UpdateSmsChannelCommand = exports.de_UpdateSegmentCommand = exports.de_UpdateRecommenderConfigurationCommand = exports.de_UpdatePushTemplateCommand = exports.de_UpdateJourneyStateCommand = exports.de_UpdateJourneyCommand = exports.de_UpdateInAppTemplateCommand = exports.de_UpdateGcmChannelCommand = exports.de_UpdateEndpointsBatchCommand = exports.de_UpdateEndpointCommand = exports.de_UpdateEmailTemplateCommand = exports.de_UpdateEmailChannelCommand = exports.de_UpdateCampaignCommand = exports.de_UpdateBaiduChannelCommand = exports.de_UpdateApplicationSettingsCommand = exports.de_UpdateApnsVoipSandboxChannelCommand = exports.de_UpdateApnsVoipChannelCommand = exports.de_UpdateApnsSandboxChannelCommand = exports.de_UpdateApnsChannelCommand = exports.de_UpdateAdmChannelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SendUsersMessagesCommand = exports.de_SendOTPMessageCommand = exports.de_SendMessagesCommand = exports.de_RemoveAttributesCommand = exports.de_PutEventStreamCommand = exports.de_PutEventsCommand = exports.de_PhoneNumberValidateCommand = exports.de_ListTemplateVersionsCommand = exports.de_ListTemplatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListJourneysCommand = exports.de_GetVoiceTemplateCommand = exports.de_GetVoiceChannelCommand = exports.de_GetUserEndpointsCommand = exports.de_GetSmsTemplateCommand = exports.de_GetSmsChannelCommand = exports.de_GetSegmentVersionsCommand = void 0;
|
|
8
8
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
9
9
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
10
10
|
const models_0_1 = require("../models/models_0");
|
|
@@ -1398,6 +1398,81 @@ const se_GetJourneyExecutionMetricsCommand = async (input, context) => {
|
|
|
1398
1398
|
});
|
|
1399
1399
|
};
|
|
1400
1400
|
exports.se_GetJourneyExecutionMetricsCommand = se_GetJourneyExecutionMetricsCommand;
|
|
1401
|
+
const se_GetJourneyRunExecutionActivityMetricsCommand = async (input, context) => {
|
|
1402
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1403
|
+
const headers = {};
|
|
1404
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1405
|
+
"/v1/apps/{ApplicationId}/journeys/{JourneyId}/runs/{RunId}/activities/{JourneyActivityId}/execution-metrics";
|
|
1406
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1407
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyActivityId", () => input.JourneyActivityId, "{JourneyActivityId}", false);
|
|
1408
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
1409
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RunId", () => input.RunId, "{RunId}", false);
|
|
1410
|
+
const query = (0, smithy_client_1.map)({
|
|
1411
|
+
"next-token": [, input.NextToken],
|
|
1412
|
+
"page-size": [, input.PageSize],
|
|
1413
|
+
});
|
|
1414
|
+
let body;
|
|
1415
|
+
return new protocol_http_1.HttpRequest({
|
|
1416
|
+
protocol,
|
|
1417
|
+
hostname,
|
|
1418
|
+
port,
|
|
1419
|
+
method: "GET",
|
|
1420
|
+
headers,
|
|
1421
|
+
path: resolvedPath,
|
|
1422
|
+
query,
|
|
1423
|
+
body,
|
|
1424
|
+
});
|
|
1425
|
+
};
|
|
1426
|
+
exports.se_GetJourneyRunExecutionActivityMetricsCommand = se_GetJourneyRunExecutionActivityMetricsCommand;
|
|
1427
|
+
const se_GetJourneyRunExecutionMetricsCommand = async (input, context) => {
|
|
1428
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1429
|
+
const headers = {};
|
|
1430
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1431
|
+
"/v1/apps/{ApplicationId}/journeys/{JourneyId}/runs/{RunId}/execution-metrics";
|
|
1432
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1433
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
1434
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RunId", () => input.RunId, "{RunId}", false);
|
|
1435
|
+
const query = (0, smithy_client_1.map)({
|
|
1436
|
+
"next-token": [, input.NextToken],
|
|
1437
|
+
"page-size": [, input.PageSize],
|
|
1438
|
+
});
|
|
1439
|
+
let body;
|
|
1440
|
+
return new protocol_http_1.HttpRequest({
|
|
1441
|
+
protocol,
|
|
1442
|
+
hostname,
|
|
1443
|
+
port,
|
|
1444
|
+
method: "GET",
|
|
1445
|
+
headers,
|
|
1446
|
+
path: resolvedPath,
|
|
1447
|
+
query,
|
|
1448
|
+
body,
|
|
1449
|
+
});
|
|
1450
|
+
};
|
|
1451
|
+
exports.se_GetJourneyRunExecutionMetricsCommand = se_GetJourneyRunExecutionMetricsCommand;
|
|
1452
|
+
const se_GetJourneyRunsCommand = async (input, context) => {
|
|
1453
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1454
|
+
const headers = {};
|
|
1455
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1456
|
+
"/v1/apps/{ApplicationId}/journeys/{JourneyId}/runs";
|
|
1457
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1458
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
1459
|
+
const query = (0, smithy_client_1.map)({
|
|
1460
|
+
"page-size": [, input.PageSize],
|
|
1461
|
+
token: [, input.Token],
|
|
1462
|
+
});
|
|
1463
|
+
let body;
|
|
1464
|
+
return new protocol_http_1.HttpRequest({
|
|
1465
|
+
protocol,
|
|
1466
|
+
hostname,
|
|
1467
|
+
port,
|
|
1468
|
+
method: "GET",
|
|
1469
|
+
headers,
|
|
1470
|
+
path: resolvedPath,
|
|
1471
|
+
query,
|
|
1472
|
+
body,
|
|
1473
|
+
});
|
|
1474
|
+
};
|
|
1475
|
+
exports.se_GetJourneyRunsCommand = se_GetJourneyRunsCommand;
|
|
1401
1476
|
const se_GetPushTemplateCommand = async (input, context) => {
|
|
1402
1477
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1403
1478
|
const headers = {};
|
|
@@ -5946,6 +6021,153 @@ const de_GetJourneyExecutionMetricsCommandError = async (output, context) => {
|
|
|
5946
6021
|
});
|
|
5947
6022
|
}
|
|
5948
6023
|
};
|
|
6024
|
+
const de_GetJourneyRunExecutionActivityMetricsCommand = async (output, context) => {
|
|
6025
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6026
|
+
return de_GetJourneyRunExecutionActivityMetricsCommandError(output, context);
|
|
6027
|
+
}
|
|
6028
|
+
const contents = (0, smithy_client_1.map)({
|
|
6029
|
+
$metadata: deserializeMetadata(output),
|
|
6030
|
+
});
|
|
6031
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
6032
|
+
contents.JourneyRunExecutionActivityMetricsResponse = (0, smithy_client_1._json)(data);
|
|
6033
|
+
return contents;
|
|
6034
|
+
};
|
|
6035
|
+
exports.de_GetJourneyRunExecutionActivityMetricsCommand = de_GetJourneyRunExecutionActivityMetricsCommand;
|
|
6036
|
+
const de_GetJourneyRunExecutionActivityMetricsCommandError = async (output, context) => {
|
|
6037
|
+
const parsedOutput = {
|
|
6038
|
+
...output,
|
|
6039
|
+
body: await parseErrorBody(output.body, context),
|
|
6040
|
+
};
|
|
6041
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6042
|
+
switch (errorCode) {
|
|
6043
|
+
case "BadRequestException":
|
|
6044
|
+
case "com.amazonaws.pinpoint#BadRequestException":
|
|
6045
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6046
|
+
case "ForbiddenException":
|
|
6047
|
+
case "com.amazonaws.pinpoint#ForbiddenException":
|
|
6048
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6049
|
+
case "InternalServerErrorException":
|
|
6050
|
+
case "com.amazonaws.pinpoint#InternalServerErrorException":
|
|
6051
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
6052
|
+
case "MethodNotAllowedException":
|
|
6053
|
+
case "com.amazonaws.pinpoint#MethodNotAllowedException":
|
|
6054
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
6055
|
+
case "NotFoundException":
|
|
6056
|
+
case "com.amazonaws.pinpoint#NotFoundException":
|
|
6057
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6058
|
+
case "PayloadTooLargeException":
|
|
6059
|
+
case "com.amazonaws.pinpoint#PayloadTooLargeException":
|
|
6060
|
+
throw await de_PayloadTooLargeExceptionRes(parsedOutput, context);
|
|
6061
|
+
case "TooManyRequestsException":
|
|
6062
|
+
case "com.amazonaws.pinpoint#TooManyRequestsException":
|
|
6063
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
6064
|
+
default:
|
|
6065
|
+
const parsedBody = parsedOutput.body;
|
|
6066
|
+
return throwDefaultError({
|
|
6067
|
+
output,
|
|
6068
|
+
parsedBody,
|
|
6069
|
+
errorCode,
|
|
6070
|
+
});
|
|
6071
|
+
}
|
|
6072
|
+
};
|
|
6073
|
+
const de_GetJourneyRunExecutionMetricsCommand = async (output, context) => {
|
|
6074
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6075
|
+
return de_GetJourneyRunExecutionMetricsCommandError(output, context);
|
|
6076
|
+
}
|
|
6077
|
+
const contents = (0, smithy_client_1.map)({
|
|
6078
|
+
$metadata: deserializeMetadata(output),
|
|
6079
|
+
});
|
|
6080
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
6081
|
+
contents.JourneyRunExecutionMetricsResponse = (0, smithy_client_1._json)(data);
|
|
6082
|
+
return contents;
|
|
6083
|
+
};
|
|
6084
|
+
exports.de_GetJourneyRunExecutionMetricsCommand = de_GetJourneyRunExecutionMetricsCommand;
|
|
6085
|
+
const de_GetJourneyRunExecutionMetricsCommandError = async (output, context) => {
|
|
6086
|
+
const parsedOutput = {
|
|
6087
|
+
...output,
|
|
6088
|
+
body: await parseErrorBody(output.body, context),
|
|
6089
|
+
};
|
|
6090
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6091
|
+
switch (errorCode) {
|
|
6092
|
+
case "BadRequestException":
|
|
6093
|
+
case "com.amazonaws.pinpoint#BadRequestException":
|
|
6094
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6095
|
+
case "ForbiddenException":
|
|
6096
|
+
case "com.amazonaws.pinpoint#ForbiddenException":
|
|
6097
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6098
|
+
case "InternalServerErrorException":
|
|
6099
|
+
case "com.amazonaws.pinpoint#InternalServerErrorException":
|
|
6100
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
6101
|
+
case "MethodNotAllowedException":
|
|
6102
|
+
case "com.amazonaws.pinpoint#MethodNotAllowedException":
|
|
6103
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
6104
|
+
case "NotFoundException":
|
|
6105
|
+
case "com.amazonaws.pinpoint#NotFoundException":
|
|
6106
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6107
|
+
case "PayloadTooLargeException":
|
|
6108
|
+
case "com.amazonaws.pinpoint#PayloadTooLargeException":
|
|
6109
|
+
throw await de_PayloadTooLargeExceptionRes(parsedOutput, context);
|
|
6110
|
+
case "TooManyRequestsException":
|
|
6111
|
+
case "com.amazonaws.pinpoint#TooManyRequestsException":
|
|
6112
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
6113
|
+
default:
|
|
6114
|
+
const parsedBody = parsedOutput.body;
|
|
6115
|
+
return throwDefaultError({
|
|
6116
|
+
output,
|
|
6117
|
+
parsedBody,
|
|
6118
|
+
errorCode,
|
|
6119
|
+
});
|
|
6120
|
+
}
|
|
6121
|
+
};
|
|
6122
|
+
const de_GetJourneyRunsCommand = async (output, context) => {
|
|
6123
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6124
|
+
return de_GetJourneyRunsCommandError(output, context);
|
|
6125
|
+
}
|
|
6126
|
+
const contents = (0, smithy_client_1.map)({
|
|
6127
|
+
$metadata: deserializeMetadata(output),
|
|
6128
|
+
});
|
|
6129
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
6130
|
+
contents.JourneyRunsResponse = (0, smithy_client_1._json)(data);
|
|
6131
|
+
return contents;
|
|
6132
|
+
};
|
|
6133
|
+
exports.de_GetJourneyRunsCommand = de_GetJourneyRunsCommand;
|
|
6134
|
+
const de_GetJourneyRunsCommandError = async (output, context) => {
|
|
6135
|
+
const parsedOutput = {
|
|
6136
|
+
...output,
|
|
6137
|
+
body: await parseErrorBody(output.body, context),
|
|
6138
|
+
};
|
|
6139
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6140
|
+
switch (errorCode) {
|
|
6141
|
+
case "BadRequestException":
|
|
6142
|
+
case "com.amazonaws.pinpoint#BadRequestException":
|
|
6143
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
6144
|
+
case "ForbiddenException":
|
|
6145
|
+
case "com.amazonaws.pinpoint#ForbiddenException":
|
|
6146
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
6147
|
+
case "InternalServerErrorException":
|
|
6148
|
+
case "com.amazonaws.pinpoint#InternalServerErrorException":
|
|
6149
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
6150
|
+
case "MethodNotAllowedException":
|
|
6151
|
+
case "com.amazonaws.pinpoint#MethodNotAllowedException":
|
|
6152
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
6153
|
+
case "NotFoundException":
|
|
6154
|
+
case "com.amazonaws.pinpoint#NotFoundException":
|
|
6155
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
6156
|
+
case "PayloadTooLargeException":
|
|
6157
|
+
case "com.amazonaws.pinpoint#PayloadTooLargeException":
|
|
6158
|
+
throw await de_PayloadTooLargeExceptionRes(parsedOutput, context);
|
|
6159
|
+
case "TooManyRequestsException":
|
|
6160
|
+
case "com.amazonaws.pinpoint#TooManyRequestsException":
|
|
6161
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
6162
|
+
default:
|
|
6163
|
+
const parsedBody = parsedOutput.body;
|
|
6164
|
+
return throwDefaultError({
|
|
6165
|
+
output,
|
|
6166
|
+
parsedBody,
|
|
6167
|
+
errorCode,
|
|
6168
|
+
});
|
|
6169
|
+
}
|
|
6170
|
+
};
|
|
5949
6171
|
const de_GetPushTemplateCommand = async (output, context) => {
|
|
5950
6172
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5951
6173
|
return de_GetPushTemplateCommandError(output, context);
|
package/dist-es/Pinpoint.js
CHANGED
|
@@ -66,6 +66,9 @@ import { GetJourneyCommand } from "./commands/GetJourneyCommand";
|
|
|
66
66
|
import { GetJourneyDateRangeKpiCommand, } from "./commands/GetJourneyDateRangeKpiCommand";
|
|
67
67
|
import { GetJourneyExecutionActivityMetricsCommand, } from "./commands/GetJourneyExecutionActivityMetricsCommand";
|
|
68
68
|
import { GetJourneyExecutionMetricsCommand, } from "./commands/GetJourneyExecutionMetricsCommand";
|
|
69
|
+
import { GetJourneyRunExecutionActivityMetricsCommand, } from "./commands/GetJourneyRunExecutionActivityMetricsCommand";
|
|
70
|
+
import { GetJourneyRunExecutionMetricsCommand, } from "./commands/GetJourneyRunExecutionMetricsCommand";
|
|
71
|
+
import { GetJourneyRunsCommand, } from "./commands/GetJourneyRunsCommand";
|
|
69
72
|
import { GetPushTemplateCommand, } from "./commands/GetPushTemplateCommand";
|
|
70
73
|
import { GetRecommenderConfigurationCommand, } from "./commands/GetRecommenderConfigurationCommand";
|
|
71
74
|
import { GetRecommenderConfigurationsCommand, } from "./commands/GetRecommenderConfigurationsCommand";
|
|
@@ -187,6 +190,9 @@ const commands = {
|
|
|
187
190
|
GetJourneyDateRangeKpiCommand,
|
|
188
191
|
GetJourneyExecutionActivityMetricsCommand,
|
|
189
192
|
GetJourneyExecutionMetricsCommand,
|
|
193
|
+
GetJourneyRunExecutionActivityMetricsCommand,
|
|
194
|
+
GetJourneyRunExecutionMetricsCommand,
|
|
195
|
+
GetJourneyRunsCommand,
|
|
190
196
|
GetPushTemplateCommand,
|
|
191
197
|
GetRecommenderConfigurationCommand,
|
|
192
198
|
GetRecommenderConfigurationsCommand,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_GetJourneyRunExecutionActivityMetricsCommand, se_GetJourneyRunExecutionActivityMetricsCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class GetJourneyRunExecutionActivityMetricsCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetJourneyRunExecutionActivityMetricsCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "PinpointClient";
|
|
24
|
+
const commandName = "GetJourneyRunExecutionActivityMetricsCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_GetJourneyRunExecutionActivityMetricsCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_GetJourneyRunExecutionActivityMetricsCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_GetJourneyRunExecutionMetricsCommand, se_GetJourneyRunExecutionMetricsCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class GetJourneyRunExecutionMetricsCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetJourneyRunExecutionMetricsCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "PinpointClient";
|
|
24
|
+
const commandName = "GetJourneyRunExecutionMetricsCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_GetJourneyRunExecutionMetricsCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_GetJourneyRunExecutionMetricsCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|