@aws-sdk/client-pinpoint 3.335.0 → 3.335.1
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/CHANGELOG.md +4785 -0
- package/dist-types/ts3.4/Pinpoint.d.ts +864 -2091
- package/dist-types/ts3.4/PinpointClient.d.ts +284 -846
- package/dist-types/ts3.4/commands/CreateAppCommand.d.ts +103 -34
- package/dist-types/ts3.4/commands/CreateCampaignCommand.d.ts +833 -37
- package/dist-types/ts3.4/commands/CreateEmailTemplateCommand.d.ts +99 -38
- package/dist-types/ts3.4/commands/CreateExportJobCommand.d.ts +117 -37
- package/dist-types/ts3.4/commands/CreateImportJobCommand.d.ts +125 -37
- package/dist-types/ts3.4/commands/CreateInAppTemplateCommand.d.ts +155 -38
- package/dist-types/ts3.4/commands/CreateJourneyCommand.d.ts +840 -37
- package/dist-types/ts3.4/commands/CreatePushTemplateCommand.d.ts +145 -38
- package/dist-types/ts3.4/commands/CreateRecommenderConfigurationCommand.d.ts +117 -41
- package/dist-types/ts3.4/commands/CreateSegmentCommand.d.ts +378 -37
- package/dist-types/ts3.4/commands/CreateSmsTemplateCommand.d.ts +97 -38
- package/dist-types/ts3.4/commands/CreateVoiceTemplateCommand.d.ts +98 -38
- package/dist-types/ts3.4/commands/DeleteAdmChannelCommand.d.ts +101 -37
- package/dist-types/ts3.4/commands/DeleteApnsChannelCommand.d.ts +103 -38
- package/dist-types/ts3.4/commands/DeleteApnsSandboxChannelCommand.d.ts +103 -41
- package/dist-types/ts3.4/commands/DeleteApnsVoipChannelCommand.d.ts +103 -41
- package/dist-types/ts3.4/commands/DeleteApnsVoipSandboxChannelCommand.d.ts +103 -41
- package/dist-types/ts3.4/commands/DeleteAppCommand.d.ts +98 -34
- package/dist-types/ts3.4/commands/DeleteBaiduChannelCommand.d.ts +102 -38
- package/dist-types/ts3.4/commands/DeleteCampaignCommand.d.ts +470 -37
- package/dist-types/ts3.4/commands/DeleteEmailChannelCommand.d.ts +106 -38
- package/dist-types/ts3.4/commands/DeleteEmailTemplateCommand.d.ts +94 -38
- package/dist-types/ts3.4/commands/DeleteEndpointCommand.d.ts +136 -37
- package/dist-types/ts3.4/commands/DeleteEventStreamCommand.d.ts +97 -38
- package/dist-types/ts3.4/commands/DeleteGcmChannelCommand.d.ts +102 -37
- package/dist-types/ts3.4/commands/DeleteInAppTemplateCommand.d.ts +94 -38
- package/dist-types/ts3.4/commands/DeleteJourneyCommand.d.ts +468 -37
- package/dist-types/ts3.4/commands/DeletePushTemplateCommand.d.ts +94 -38
- package/dist-types/ts3.4/commands/DeleteRecommenderConfigurationCommand.d.ts +105 -41
- package/dist-types/ts3.4/commands/DeleteSegmentCommand.d.ts +243 -37
- package/dist-types/ts3.4/commands/DeleteSmsChannelCommand.d.ts +105 -37
- package/dist-types/ts3.4/commands/DeleteSmsTemplateCommand.d.ts +94 -38
- package/dist-types/ts3.4/commands/DeleteUserEndpointsCommand.d.ts +140 -38
- package/dist-types/ts3.4/commands/DeleteVoiceChannelCommand.d.ts +101 -38
- package/dist-types/ts3.4/commands/DeleteVoiceTemplateCommand.d.ts +94 -38
- package/dist-types/ts3.4/commands/GetAdmChannelCommand.d.ts +101 -37
- package/dist-types/ts3.4/commands/GetApnsChannelCommand.d.ts +103 -37
- package/dist-types/ts3.4/commands/GetApnsSandboxChannelCommand.d.ts +103 -41
- package/dist-types/ts3.4/commands/GetApnsVoipChannelCommand.d.ts +103 -38
- package/dist-types/ts3.4/commands/GetApnsVoipSandboxChannelCommand.d.ts +103 -41
- package/dist-types/ts3.4/commands/GetAppCommand.d.ts +98 -32
- package/dist-types/ts3.4/commands/GetApplicationDateRangeKpiCommand.d.ts +121 -41
- package/dist-types/ts3.4/commands/GetApplicationSettingsCommand.d.ts +109 -41
- package/dist-types/ts3.4/commands/GetAppsCommand.d.ts +104 -34
- package/dist-types/ts3.4/commands/GetBaiduChannelCommand.d.ts +102 -37
- package/dist-types/ts3.4/commands/GetCampaignActivitiesCommand.d.ts +115 -41
- package/dist-types/ts3.4/commands/GetCampaignCommand.d.ts +470 -34
- package/dist-types/ts3.4/commands/GetCampaignDateRangeKpiCommand.d.ts +123 -41
- package/dist-types/ts3.4/commands/GetCampaignVersionCommand.d.ts +471 -38
- package/dist-types/ts3.4/commands/GetCampaignVersionsCommand.d.ts +477 -38
- package/dist-types/ts3.4/commands/GetCampaignsCommand.d.ts +476 -34
- package/dist-types/ts3.4/commands/GetChannelsCommand.d.ts +104 -34
- package/dist-types/ts3.4/commands/GetEmailChannelCommand.d.ts +106 -37
- package/dist-types/ts3.4/commands/GetEmailTemplateCommand.d.ts +107 -37
- package/dist-types/ts3.4/commands/GetEndpointCommand.d.ts +136 -34
- package/dist-types/ts3.4/commands/GetEventStreamCommand.d.ts +97 -37
- package/dist-types/ts3.4/commands/GetExportJobCommand.d.ts +112 -34
- package/dist-types/ts3.4/commands/GetExportJobsCommand.d.ts +118 -37
- package/dist-types/ts3.4/commands/GetGcmChannelCommand.d.ts +102 -37
- package/dist-types/ts3.4/commands/GetImportJobCommand.d.ts +116 -34
- package/dist-types/ts3.4/commands/GetImportJobsCommand.d.ts +122 -37
- package/dist-types/ts3.4/commands/GetInAppMessagesCommand.d.ts +197 -37
- package/dist-types/ts3.4/commands/GetInAppTemplateCommand.d.ts +163 -37
- package/dist-types/ts3.4/commands/GetJourneyCommand.d.ts +468 -34
- package/dist-types/ts3.4/commands/GetJourneyDateRangeKpiCommand.d.ts +123 -41
- package/dist-types/ts3.4/commands/GetJourneyExecutionActivityMetricsCommand.d.ts +103 -41
- package/dist-types/ts3.4/commands/GetJourneyExecutionMetricsCommand.d.ts +100 -41
- package/dist-types/ts3.4/commands/GetJourneyRunExecutionActivityMetricsCommand.d.ts +134 -41
- package/dist-types/ts3.4/commands/GetJourneyRunExecutionMetricsCommand.d.ts +130 -41
- package/dist-types/ts3.4/commands/GetJourneyRunsCommand.d.ts +135 -37
- package/dist-types/ts3.4/commands/GetPushTemplateCommand.d.ts +153 -37
- package/dist-types/ts3.4/commands/GetRecommenderConfigurationCommand.d.ts +105 -41
- package/dist-types/ts3.4/commands/GetRecommenderConfigurationsCommand.d.ts +111 -41
- package/dist-types/ts3.4/commands/GetSegmentCommand.d.ts +243 -34
- package/dist-types/ts3.4/commands/GetSegmentExportJobsCommand.d.ts +119 -41
- package/dist-types/ts3.4/commands/GetSegmentImportJobsCommand.d.ts +123 -41
- package/dist-types/ts3.4/commands/GetSegmentVersionCommand.d.ts +244 -38
- package/dist-types/ts3.4/commands/GetSegmentVersionsCommand.d.ts +250 -38
- package/dist-types/ts3.4/commands/GetSegmentsCommand.d.ts +249 -34
- package/dist-types/ts3.4/commands/GetSmsChannelCommand.d.ts +105 -37
- package/dist-types/ts3.4/commands/GetSmsTemplateCommand.d.ts +105 -37
- package/dist-types/ts3.4/commands/GetUserEndpointsCommand.d.ts +140 -37
- package/dist-types/ts3.4/commands/GetVoiceChannelCommand.d.ts +101 -37
- package/dist-types/ts3.4/commands/GetVoiceTemplateCommand.d.ts +106 -37
- package/dist-types/ts3.4/commands/ListJourneysCommand.d.ts +474 -34
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +73 -38
- package/dist-types/ts3.4/commands/ListTemplateVersionsCommand.d.ts +108 -41
- package/dist-types/ts3.4/commands/ListTemplatesCommand.d.ts +104 -37
- package/dist-types/ts3.4/commands/PhoneNumberValidateCommand.d.ts +108 -38
- package/dist-types/ts3.4/commands/PutEventStreamCommand.d.ts +101 -37
- package/dist-types/ts3.4/commands/PutEventsCommand.d.ts +176 -34
- package/dist-types/ts3.4/commands/RemoveAttributesCommand.d.ts +102 -37
- package/dist-types/ts3.4/commands/SendMessagesCommand.d.ts +313 -34
- package/dist-types/ts3.4/commands/SendOTPMessageCommand.d.ts +125 -37
- package/dist-types/ts3.4/commands/SendUsersMessagesCommand.d.ts +296 -38
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +72 -32
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +70 -32
- package/dist-types/ts3.4/commands/UpdateAdmChannelCommand.d.ts +106 -37
- package/dist-types/ts3.4/commands/UpdateApnsChannelCommand.d.ts +113 -38
- package/dist-types/ts3.4/commands/UpdateApnsSandboxChannelCommand.d.ts +113 -41
- package/dist-types/ts3.4/commands/UpdateApnsVoipChannelCommand.d.ts +113 -41
- package/dist-types/ts3.4/commands/UpdateApnsVoipSandboxChannelCommand.d.ts +113 -41
- package/dist-types/ts3.4/commands/UpdateApplicationSettingsCommand.d.ts +129 -41
- package/dist-types/ts3.4/commands/UpdateBaiduChannelCommand.d.ts +107 -38
- package/dist-types/ts3.4/commands/UpdateCampaignCommand.d.ts +834 -37
- package/dist-types/ts3.4/commands/UpdateEmailChannelCommand.d.ts +113 -38
- package/dist-types/ts3.4/commands/UpdateEmailTemplateCommand.d.ts +106 -38
- package/dist-types/ts3.4/commands/UpdateEndpointCommand.d.ts +136 -37
- package/dist-types/ts3.4/commands/UpdateEndpointsBatchCommand.d.ts +140 -41
- package/dist-types/ts3.4/commands/UpdateGcmChannelCommand.d.ts +106 -37
- package/dist-types/ts3.4/commands/UpdateInAppTemplateCommand.d.ts +162 -38
- package/dist-types/ts3.4/commands/UpdateJourneyCommand.d.ts +844 -37
- package/dist-types/ts3.4/commands/UpdateJourneyStateCommand.d.ts +471 -38
- package/dist-types/ts3.4/commands/UpdatePushTemplateCommand.d.ts +152 -38
- package/dist-types/ts3.4/commands/UpdateRecommenderConfigurationCommand.d.ts +118 -41
- package/dist-types/ts3.4/commands/UpdateSegmentCommand.d.ts +379 -37
- package/dist-types/ts3.4/commands/UpdateSmsChannelCommand.d.ts +110 -37
- package/dist-types/ts3.4/commands/UpdateSmsTemplateCommand.d.ts +104 -38
- package/dist-types/ts3.4/commands/UpdateTemplateActiveVersionCommand.d.ts +97 -41
- package/dist-types/ts3.4/commands/UpdateVoiceChannelCommand.d.ts +104 -38
- package/dist-types/ts3.4/commands/UpdateVoiceTemplateCommand.d.ts +105 -38
- package/dist-types/ts3.4/commands/VerifyOTPMessageCommand.d.ts +97 -37
- package/dist-types/ts3.4/commands/index.d.ts +122 -122
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +20 -32
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +5 -8
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +5 -5
- package/dist-types/ts3.4/models/PinpointServiceException.d.ts +12 -7
- package/dist-types/ts3.4/models/index.d.ts +2 -2
- package/dist-types/ts3.4/models/models_0.d.ts +6383 -1896
- package/dist-types/ts3.4/models/models_1.d.ts +2807 -915
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +1100 -1469
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +42 -94
- package/dist-types/ts3.4/runtimeConfig.d.ts +42 -91
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +41 -85
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -18
- package/package.json +2 -2
|
@@ -1,34 +1,313 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { SendMessagesRequest, SendMessagesResponse } from "../models/models_1";
|
|
5
|
+
import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
9
|
+
* The input for {@link SendMessagesCommand}.
|
|
10
|
+
*/
|
|
11
|
+
export interface SendMessagesCommandInput extends SendMessagesRequest {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
16
|
+
* The output of {@link SendMessagesCommand}.
|
|
17
|
+
*/
|
|
18
|
+
export interface SendMessagesCommandOutput extends SendMessagesResponse, __MetadataBearer {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
* <p>Creates and sends a direct message.</p>
|
|
23
|
+
* @example
|
|
24
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
25
|
+
* ```javascript
|
|
26
|
+
* import { PinpointClient, SendMessagesCommand } from "@aws-sdk/client-pinpoint"; // ES Modules import
|
|
27
|
+
* // const { PinpointClient, SendMessagesCommand } = require("@aws-sdk/client-pinpoint"); // CommonJS import
|
|
28
|
+
* const client = new PinpointClient(config);
|
|
29
|
+
* const input = { // SendMessagesRequest
|
|
30
|
+
* ApplicationId: "STRING_VALUE", // required
|
|
31
|
+
* MessageRequest: { // MessageRequest
|
|
32
|
+
* Addresses: { // MapOfAddressConfiguration
|
|
33
|
+
* "<keys>": { // AddressConfiguration
|
|
34
|
+
* BodyOverride: "STRING_VALUE",
|
|
35
|
+
* ChannelType: "PUSH" || "GCM" || "APNS" || "APNS_SANDBOX" || "APNS_VOIP" || "APNS_VOIP_SANDBOX" || "ADM" || "SMS" || "VOICE" || "EMAIL" || "BAIDU" || "CUSTOM" || "IN_APP",
|
|
36
|
+
* Context: { // MapOf__string
|
|
37
|
+
* "<keys>": "STRING_VALUE",
|
|
38
|
+
* },
|
|
39
|
+
* RawContent: "STRING_VALUE",
|
|
40
|
+
* Substitutions: { // MapOfListOf__string
|
|
41
|
+
* "<keys>": [ // ListOf__string
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* },
|
|
45
|
+
* TitleOverride: "STRING_VALUE",
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* Context: {
|
|
49
|
+
* "<keys>": "STRING_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* Endpoints: { // MapOfEndpointSendConfiguration
|
|
52
|
+
* "<keys>": { // EndpointSendConfiguration
|
|
53
|
+
* BodyOverride: "STRING_VALUE",
|
|
54
|
+
* Context: {
|
|
55
|
+
* "<keys>": "STRING_VALUE",
|
|
56
|
+
* },
|
|
57
|
+
* RawContent: "STRING_VALUE",
|
|
58
|
+
* Substitutions: {
|
|
59
|
+
* "<keys>": [
|
|
60
|
+
* "STRING_VALUE",
|
|
61
|
+
* ],
|
|
62
|
+
* },
|
|
63
|
+
* TitleOverride: "STRING_VALUE",
|
|
64
|
+
* },
|
|
65
|
+
* },
|
|
66
|
+
* MessageConfiguration: { // DirectMessageConfiguration
|
|
67
|
+
* ADMMessage: { // ADMMessage
|
|
68
|
+
* Action: "OPEN_APP" || "DEEP_LINK" || "URL",
|
|
69
|
+
* Body: "STRING_VALUE",
|
|
70
|
+
* ConsolidationKey: "STRING_VALUE",
|
|
71
|
+
* Data: {
|
|
72
|
+
* "<keys>": "STRING_VALUE",
|
|
73
|
+
* },
|
|
74
|
+
* ExpiresAfter: "STRING_VALUE",
|
|
75
|
+
* IconReference: "STRING_VALUE",
|
|
76
|
+
* ImageIconUrl: "STRING_VALUE",
|
|
77
|
+
* ImageUrl: "STRING_VALUE",
|
|
78
|
+
* MD5: "STRING_VALUE",
|
|
79
|
+
* RawContent: "STRING_VALUE",
|
|
80
|
+
* SilentPush: true || false,
|
|
81
|
+
* SmallImageIconUrl: "STRING_VALUE",
|
|
82
|
+
* Sound: "STRING_VALUE",
|
|
83
|
+
* Substitutions: {
|
|
84
|
+
* "<keys>": [
|
|
85
|
+
* "STRING_VALUE",
|
|
86
|
+
* ],
|
|
87
|
+
* },
|
|
88
|
+
* Title: "STRING_VALUE",
|
|
89
|
+
* Url: "STRING_VALUE",
|
|
90
|
+
* },
|
|
91
|
+
* APNSMessage: { // APNSMessage
|
|
92
|
+
* APNSPushType: "STRING_VALUE",
|
|
93
|
+
* Action: "OPEN_APP" || "DEEP_LINK" || "URL",
|
|
94
|
+
* Badge: Number("int"),
|
|
95
|
+
* Body: "STRING_VALUE",
|
|
96
|
+
* Category: "STRING_VALUE",
|
|
97
|
+
* CollapseId: "STRING_VALUE",
|
|
98
|
+
* Data: {
|
|
99
|
+
* "<keys>": "STRING_VALUE",
|
|
100
|
+
* },
|
|
101
|
+
* MediaUrl: "STRING_VALUE",
|
|
102
|
+
* PreferredAuthenticationMethod: "STRING_VALUE",
|
|
103
|
+
* Priority: "STRING_VALUE",
|
|
104
|
+
* RawContent: "STRING_VALUE",
|
|
105
|
+
* SilentPush: true || false,
|
|
106
|
+
* Sound: "STRING_VALUE",
|
|
107
|
+
* Substitutions: {
|
|
108
|
+
* "<keys>": [
|
|
109
|
+
* "STRING_VALUE",
|
|
110
|
+
* ],
|
|
111
|
+
* },
|
|
112
|
+
* ThreadId: "STRING_VALUE",
|
|
113
|
+
* TimeToLive: Number("int"),
|
|
114
|
+
* Title: "STRING_VALUE",
|
|
115
|
+
* Url: "STRING_VALUE",
|
|
116
|
+
* },
|
|
117
|
+
* BaiduMessage: { // BaiduMessage
|
|
118
|
+
* Action: "OPEN_APP" || "DEEP_LINK" || "URL",
|
|
119
|
+
* Body: "STRING_VALUE",
|
|
120
|
+
* Data: "<MapOf__string>",
|
|
121
|
+
* IconReference: "STRING_VALUE",
|
|
122
|
+
* ImageIconUrl: "STRING_VALUE",
|
|
123
|
+
* ImageUrl: "STRING_VALUE",
|
|
124
|
+
* RawContent: "STRING_VALUE",
|
|
125
|
+
* SilentPush: true || false,
|
|
126
|
+
* SmallImageIconUrl: "STRING_VALUE",
|
|
127
|
+
* Sound: "STRING_VALUE",
|
|
128
|
+
* Substitutions: {
|
|
129
|
+
* "<keys>": [
|
|
130
|
+
* "STRING_VALUE",
|
|
131
|
+
* ],
|
|
132
|
+
* },
|
|
133
|
+
* TimeToLive: Number("int"),
|
|
134
|
+
* Title: "STRING_VALUE",
|
|
135
|
+
* Url: "STRING_VALUE",
|
|
136
|
+
* },
|
|
137
|
+
* DefaultMessage: { // DefaultMessage
|
|
138
|
+
* Body: "STRING_VALUE",
|
|
139
|
+
* Substitutions: "<MapOfListOf__string>",
|
|
140
|
+
* },
|
|
141
|
+
* DefaultPushNotificationMessage: { // DefaultPushNotificationMessage
|
|
142
|
+
* Action: "OPEN_APP" || "DEEP_LINK" || "URL",
|
|
143
|
+
* Body: "STRING_VALUE",
|
|
144
|
+
* Data: "<MapOf__string>",
|
|
145
|
+
* SilentPush: true || false,
|
|
146
|
+
* Substitutions: "<MapOfListOf__string>",
|
|
147
|
+
* Title: "STRING_VALUE",
|
|
148
|
+
* Url: "STRING_VALUE",
|
|
149
|
+
* },
|
|
150
|
+
* EmailMessage: { // EmailMessage
|
|
151
|
+
* Body: "STRING_VALUE",
|
|
152
|
+
* FeedbackForwardingAddress: "STRING_VALUE",
|
|
153
|
+
* FromAddress: "STRING_VALUE",
|
|
154
|
+
* RawEmail: { // RawEmail
|
|
155
|
+
* Data: "BLOB_VALUE",
|
|
156
|
+
* },
|
|
157
|
+
* ReplyToAddresses: "<ListOf__string>",
|
|
158
|
+
* SimpleEmail: { // SimpleEmail
|
|
159
|
+
* HtmlPart: { // SimpleEmailPart
|
|
160
|
+
* Charset: "STRING_VALUE",
|
|
161
|
+
* Data: "STRING_VALUE",
|
|
162
|
+
* },
|
|
163
|
+
* Subject: {
|
|
164
|
+
* Charset: "STRING_VALUE",
|
|
165
|
+
* Data: "STRING_VALUE",
|
|
166
|
+
* },
|
|
167
|
+
* TextPart: {
|
|
168
|
+
* Charset: "STRING_VALUE",
|
|
169
|
+
* Data: "STRING_VALUE",
|
|
170
|
+
* },
|
|
171
|
+
* },
|
|
172
|
+
* Substitutions: "<MapOfListOf__string>",
|
|
173
|
+
* },
|
|
174
|
+
* GCMMessage: { // GCMMessage
|
|
175
|
+
* Action: "OPEN_APP" || "DEEP_LINK" || "URL",
|
|
176
|
+
* Body: "STRING_VALUE",
|
|
177
|
+
* CollapseKey: "STRING_VALUE",
|
|
178
|
+
* Data: "<MapOf__string>",
|
|
179
|
+
* IconReference: "STRING_VALUE",
|
|
180
|
+
* ImageIconUrl: "STRING_VALUE",
|
|
181
|
+
* ImageUrl: "STRING_VALUE",
|
|
182
|
+
* Priority: "STRING_VALUE",
|
|
183
|
+
* RawContent: "STRING_VALUE",
|
|
184
|
+
* RestrictedPackageName: "STRING_VALUE",
|
|
185
|
+
* SilentPush: true || false,
|
|
186
|
+
* SmallImageIconUrl: "STRING_VALUE",
|
|
187
|
+
* Sound: "STRING_VALUE",
|
|
188
|
+
* Substitutions: "<MapOfListOf__string>",
|
|
189
|
+
* TimeToLive: Number("int"),
|
|
190
|
+
* Title: "STRING_VALUE",
|
|
191
|
+
* Url: "STRING_VALUE",
|
|
192
|
+
* },
|
|
193
|
+
* SMSMessage: { // SMSMessage
|
|
194
|
+
* Body: "STRING_VALUE",
|
|
195
|
+
* Keyword: "STRING_VALUE",
|
|
196
|
+
* MediaUrl: "STRING_VALUE",
|
|
197
|
+
* MessageType: "TRANSACTIONAL" || "PROMOTIONAL",
|
|
198
|
+
* OriginationNumber: "STRING_VALUE",
|
|
199
|
+
* SenderId: "STRING_VALUE",
|
|
200
|
+
* Substitutions: "<MapOfListOf__string>",
|
|
201
|
+
* EntityId: "STRING_VALUE",
|
|
202
|
+
* TemplateId: "STRING_VALUE",
|
|
203
|
+
* },
|
|
204
|
+
* VoiceMessage: { // VoiceMessage
|
|
205
|
+
* Body: "STRING_VALUE",
|
|
206
|
+
* LanguageCode: "STRING_VALUE",
|
|
207
|
+
* OriginationNumber: "STRING_VALUE",
|
|
208
|
+
* Substitutions: "<MapOfListOf__string>",
|
|
209
|
+
* VoiceId: "STRING_VALUE",
|
|
210
|
+
* },
|
|
211
|
+
* },
|
|
212
|
+
* TemplateConfiguration: { // TemplateConfiguration
|
|
213
|
+
* EmailTemplate: { // Template
|
|
214
|
+
* Name: "STRING_VALUE",
|
|
215
|
+
* Version: "STRING_VALUE",
|
|
216
|
+
* },
|
|
217
|
+
* PushTemplate: {
|
|
218
|
+
* Name: "STRING_VALUE",
|
|
219
|
+
* Version: "STRING_VALUE",
|
|
220
|
+
* },
|
|
221
|
+
* SMSTemplate: {
|
|
222
|
+
* Name: "STRING_VALUE",
|
|
223
|
+
* Version: "STRING_VALUE",
|
|
224
|
+
* },
|
|
225
|
+
* VoiceTemplate: {
|
|
226
|
+
* Name: "STRING_VALUE",
|
|
227
|
+
* Version: "STRING_VALUE",
|
|
228
|
+
* },
|
|
229
|
+
* },
|
|
230
|
+
* TraceId: "STRING_VALUE",
|
|
231
|
+
* },
|
|
232
|
+
* };
|
|
233
|
+
* const command = new SendMessagesCommand(input);
|
|
234
|
+
* const response = await client.send(command);
|
|
235
|
+
* // { // SendMessagesResponse
|
|
236
|
+
* // MessageResponse: { // MessageResponse
|
|
237
|
+
* // ApplicationId: "STRING_VALUE", // required
|
|
238
|
+
* // EndpointResult: { // MapOfEndpointMessageResult
|
|
239
|
+
* // "<keys>": { // EndpointMessageResult
|
|
240
|
+
* // Address: "STRING_VALUE",
|
|
241
|
+
* // DeliveryStatus: "SUCCESSFUL" || "THROTTLED" || "TEMPORARY_FAILURE" || "PERMANENT_FAILURE" || "UNKNOWN_FAILURE" || "OPT_OUT" || "DUPLICATE", // required
|
|
242
|
+
* // MessageId: "STRING_VALUE",
|
|
243
|
+
* // StatusCode: Number("int"), // required
|
|
244
|
+
* // StatusMessage: "STRING_VALUE",
|
|
245
|
+
* // UpdatedToken: "STRING_VALUE",
|
|
246
|
+
* // },
|
|
247
|
+
* // },
|
|
248
|
+
* // RequestId: "STRING_VALUE",
|
|
249
|
+
* // Result: { // MapOfMessageResult
|
|
250
|
+
* // "<keys>": { // MessageResult
|
|
251
|
+
* // DeliveryStatus: "SUCCESSFUL" || "THROTTLED" || "TEMPORARY_FAILURE" || "PERMANENT_FAILURE" || "UNKNOWN_FAILURE" || "OPT_OUT" || "DUPLICATE", // required
|
|
252
|
+
* // MessageId: "STRING_VALUE",
|
|
253
|
+
* // StatusCode: Number("int"), // required
|
|
254
|
+
* // StatusMessage: "STRING_VALUE",
|
|
255
|
+
* // UpdatedToken: "STRING_VALUE",
|
|
256
|
+
* // },
|
|
257
|
+
* // },
|
|
258
|
+
* // },
|
|
259
|
+
* // };
|
|
260
|
+
*
|
|
261
|
+
* ```
|
|
262
|
+
*
|
|
263
|
+
* @param SendMessagesCommandInput - {@link SendMessagesCommandInput}
|
|
264
|
+
* @returns {@link SendMessagesCommandOutput}
|
|
265
|
+
* @see {@link SendMessagesCommandInput} for command's `input` shape.
|
|
266
|
+
* @see {@link SendMessagesCommandOutput} for command's `response` shape.
|
|
267
|
+
* @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
|
|
268
|
+
*
|
|
269
|
+
* @throws {@link BadRequestException} (client fault)
|
|
270
|
+
* <p>Provides information about an API request or response.</p>
|
|
271
|
+
*
|
|
272
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
273
|
+
* <p>Provides information about an API request or response.</p>
|
|
274
|
+
*
|
|
275
|
+
* @throws {@link InternalServerErrorException} (server fault)
|
|
276
|
+
* <p>Provides information about an API request or response.</p>
|
|
277
|
+
*
|
|
278
|
+
* @throws {@link MethodNotAllowedException} (client fault)
|
|
279
|
+
* <p>Provides information about an API request or response.</p>
|
|
280
|
+
*
|
|
281
|
+
* @throws {@link NotFoundException} (client fault)
|
|
282
|
+
* <p>Provides information about an API request or response.</p>
|
|
283
|
+
*
|
|
284
|
+
* @throws {@link PayloadTooLargeException} (client fault)
|
|
285
|
+
* <p>Provides information about an API request or response.</p>
|
|
286
|
+
*
|
|
287
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
288
|
+
* <p>Provides information about an API request or response.</p>
|
|
289
|
+
*
|
|
290
|
+
* @throws {@link PinpointServiceException}
|
|
291
|
+
* <p>Base exception class for all service exceptions from Pinpoint service.</p>
|
|
292
|
+
*
|
|
293
|
+
*/
|
|
294
|
+
export declare class SendMessagesCommand extends $Command<SendMessagesCommandInput, SendMessagesCommandOutput, PinpointClientResolvedConfig> {
|
|
295
|
+
readonly input: SendMessagesCommandInput;
|
|
296
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
297
|
+
/**
|
|
298
|
+
* @public
|
|
299
|
+
*/
|
|
300
|
+
constructor(input: SendMessagesCommandInput);
|
|
301
|
+
/**
|
|
302
|
+
* @internal
|
|
303
|
+
*/
|
|
304
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SendMessagesCommandInput, SendMessagesCommandOutput>;
|
|
305
|
+
/**
|
|
306
|
+
* @internal
|
|
307
|
+
*/
|
|
308
|
+
private serialize;
|
|
309
|
+
/**
|
|
310
|
+
* @internal
|
|
311
|
+
*/
|
|
312
|
+
private deserialize;
|
|
313
|
+
}
|
|
@@ -1,37 +1,125 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export interface
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { SendOTPMessageRequest, SendOTPMessageResponse } from "../models/models_1";
|
|
5
|
+
import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
9
|
+
* The input for {@link SendOTPMessageCommand}.
|
|
10
|
+
*/
|
|
11
|
+
export interface SendOTPMessageCommandInput extends SendOTPMessageRequest {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
16
|
+
* The output of {@link SendOTPMessageCommand}.
|
|
17
|
+
*/
|
|
18
|
+
export interface SendOTPMessageCommandOutput extends SendOTPMessageResponse, __MetadataBearer {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
* <p>Send an OTP message</p>
|
|
23
|
+
* @example
|
|
24
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
25
|
+
* ```javascript
|
|
26
|
+
* import { PinpointClient, SendOTPMessageCommand } from "@aws-sdk/client-pinpoint"; // ES Modules import
|
|
27
|
+
* // const { PinpointClient, SendOTPMessageCommand } = require("@aws-sdk/client-pinpoint"); // CommonJS import
|
|
28
|
+
* const client = new PinpointClient(config);
|
|
29
|
+
* const input = { // SendOTPMessageRequest
|
|
30
|
+
* ApplicationId: "STRING_VALUE", // required
|
|
31
|
+
* SendOTPMessageRequestParameters: { // SendOTPMessageRequestParameters
|
|
32
|
+
* AllowedAttempts: Number("int"),
|
|
33
|
+
* BrandName: "STRING_VALUE", // required
|
|
34
|
+
* Channel: "STRING_VALUE", // required
|
|
35
|
+
* CodeLength: Number("int"),
|
|
36
|
+
* DestinationIdentity: "STRING_VALUE", // required
|
|
37
|
+
* EntityId: "STRING_VALUE",
|
|
38
|
+
* Language: "STRING_VALUE",
|
|
39
|
+
* OriginationIdentity: "STRING_VALUE", // required
|
|
40
|
+
* ReferenceId: "STRING_VALUE", // required
|
|
41
|
+
* TemplateId: "STRING_VALUE",
|
|
42
|
+
* ValidityPeriod: Number("int"),
|
|
43
|
+
* },
|
|
44
|
+
* };
|
|
45
|
+
* const command = new SendOTPMessageCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // SendOTPMessageResponse
|
|
48
|
+
* // MessageResponse: { // MessageResponse
|
|
49
|
+
* // ApplicationId: "STRING_VALUE", // required
|
|
50
|
+
* // EndpointResult: { // MapOfEndpointMessageResult
|
|
51
|
+
* // "<keys>": { // EndpointMessageResult
|
|
52
|
+
* // Address: "STRING_VALUE",
|
|
53
|
+
* // DeliveryStatus: "SUCCESSFUL" || "THROTTLED" || "TEMPORARY_FAILURE" || "PERMANENT_FAILURE" || "UNKNOWN_FAILURE" || "OPT_OUT" || "DUPLICATE", // required
|
|
54
|
+
* // MessageId: "STRING_VALUE",
|
|
55
|
+
* // StatusCode: Number("int"), // required
|
|
56
|
+
* // StatusMessage: "STRING_VALUE",
|
|
57
|
+
* // UpdatedToken: "STRING_VALUE",
|
|
58
|
+
* // },
|
|
59
|
+
* // },
|
|
60
|
+
* // RequestId: "STRING_VALUE",
|
|
61
|
+
* // Result: { // MapOfMessageResult
|
|
62
|
+
* // "<keys>": { // MessageResult
|
|
63
|
+
* // DeliveryStatus: "SUCCESSFUL" || "THROTTLED" || "TEMPORARY_FAILURE" || "PERMANENT_FAILURE" || "UNKNOWN_FAILURE" || "OPT_OUT" || "DUPLICATE", // required
|
|
64
|
+
* // MessageId: "STRING_VALUE",
|
|
65
|
+
* // StatusCode: Number("int"), // required
|
|
66
|
+
* // StatusMessage: "STRING_VALUE",
|
|
67
|
+
* // UpdatedToken: "STRING_VALUE",
|
|
68
|
+
* // },
|
|
69
|
+
* // },
|
|
70
|
+
* // },
|
|
71
|
+
* // };
|
|
72
|
+
*
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @param SendOTPMessageCommandInput - {@link SendOTPMessageCommandInput}
|
|
76
|
+
* @returns {@link SendOTPMessageCommandOutput}
|
|
77
|
+
* @see {@link SendOTPMessageCommandInput} for command's `input` shape.
|
|
78
|
+
* @see {@link SendOTPMessageCommandOutput} for command's `response` shape.
|
|
79
|
+
* @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link BadRequestException} (client fault)
|
|
82
|
+
* <p>Provides information about an API request or response.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
85
|
+
* <p>Provides information about an API request or response.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link InternalServerErrorException} (server fault)
|
|
88
|
+
* <p>Provides information about an API request or response.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link MethodNotAllowedException} (client fault)
|
|
91
|
+
* <p>Provides information about an API request or response.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link NotFoundException} (client fault)
|
|
94
|
+
* <p>Provides information about an API request or response.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link PayloadTooLargeException} (client fault)
|
|
97
|
+
* <p>Provides information about an API request or response.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
100
|
+
* <p>Provides information about an API request or response.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link PinpointServiceException}
|
|
103
|
+
* <p>Base exception class for all service exceptions from Pinpoint service.</p>
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
export declare class SendOTPMessageCommand extends $Command<SendOTPMessageCommandInput, SendOTPMessageCommandOutput, PinpointClientResolvedConfig> {
|
|
107
|
+
readonly input: SendOTPMessageCommandInput;
|
|
108
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
109
|
+
/**
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
constructor(input: SendOTPMessageCommandInput);
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PinpointClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SendOTPMessageCommandInput, SendOTPMessageCommandOutput>;
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
private serialize;
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
private deserialize;
|
|
125
|
+
}
|