|
4075 | 4075 | ],
|
4076 | 4076 | "documentation": "<p>Creates and sends a direct message.</p>"
|
4077 | 4077 | },
|
| 4078 | + "SendOTPMessage": { |
| 4079 | + "name": "SendOTPMessage", |
| 4080 | + "http": { |
| 4081 | + "method": "POST", |
| 4082 | + "requestUri": "/v1/apps/{application-id}/otp", |
| 4083 | + "responseCode": 200 |
| 4084 | + }, |
| 4085 | + "input": { |
| 4086 | + "shape": "SendOTPMessageRequest" |
| 4087 | + }, |
| 4088 | + "output": { |
| 4089 | + "shape": "SendOTPMessageResponse", |
| 4090 | + "documentation": "<p>200 response</p>" |
| 4091 | + }, |
| 4092 | + "errors": [ |
| 4093 | + { |
| 4094 | + "shape": "BadRequestException", |
| 4095 | + "documentation": "<p>400 response</p>" |
| 4096 | + }, |
| 4097 | + { |
| 4098 | + "shape": "InternalServerErrorException", |
| 4099 | + "documentation": "<p>500 response</p>" |
| 4100 | + }, |
| 4101 | + { |
| 4102 | + "shape": "PayloadTooLargeException", |
| 4103 | + "documentation": "<p>413 response</p>" |
| 4104 | + }, |
| 4105 | + { |
| 4106 | + "shape": "ForbiddenException", |
| 4107 | + "documentation": "<p>403 response</p>" |
| 4108 | + }, |
| 4109 | + { |
| 4110 | + "shape": "NotFoundException", |
| 4111 | + "documentation": "<p>404 response</p>" |
| 4112 | + }, |
| 4113 | + { |
| 4114 | + "shape": "MethodNotAllowedException", |
| 4115 | + "documentation": "<p>405 response</p>" |
| 4116 | + }, |
| 4117 | + { |
| 4118 | + "shape": "TooManyRequestsException", |
| 4119 | + "documentation": "<p>429 response</p>" |
| 4120 | + } |
| 4121 | + ], |
| 4122 | + "documentation": "<p>Send an OTP message</p>" |
| 4123 | + }, |
4078 | 4124 | "SendUsersMessages": {
|
4079 | 4125 | "name": "SendUsersMessages",
|
4080 | 4126 | "http": {
|
|
5254 | 5300 | }
|
5255 | 5301 | ],
|
5256 | 5302 | "documentation": "<p>Updates an existing message template for messages that are sent through the voice channel.</p>"
|
| 5303 | + }, |
| 5304 | + "VerifyOTPMessage": { |
| 5305 | + "name": "VerifyOTPMessage", |
| 5306 | + "http": { |
| 5307 | + "method": "POST", |
| 5308 | + "requestUri": "/v1/apps/{application-id}/verify-otp", |
| 5309 | + "responseCode": 200 |
| 5310 | + }, |
| 5311 | + "input": { |
| 5312 | + "shape": "VerifyOTPMessageRequest" |
| 5313 | + }, |
| 5314 | + "output": { |
| 5315 | + "shape": "VerifyOTPMessageResponse", |
| 5316 | + "documentation": "<p>200 response</p>" |
| 5317 | + }, |
| 5318 | + "errors": [ |
| 5319 | + { |
| 5320 | + "shape": "BadRequestException", |
| 5321 | + "documentation": "<p>400 response</p>" |
| 5322 | + }, |
| 5323 | + { |
| 5324 | + "shape": "InternalServerErrorException", |
| 5325 | + "documentation": "<p>500 response</p>" |
| 5326 | + }, |
| 5327 | + { |
| 5328 | + "shape": "PayloadTooLargeException", |
| 5329 | + "documentation": "<p>413 response</p>" |
| 5330 | + }, |
| 5331 | + { |
| 5332 | + "shape": "ForbiddenException", |
| 5333 | + "documentation": "<p>403 response</p>" |
| 5334 | + }, |
| 5335 | + { |
| 5336 | + "shape": "NotFoundException", |
| 5337 | + "documentation": "<p>404 response</p>" |
| 5338 | + }, |
| 5339 | + { |
| 5340 | + "shape": "MethodNotAllowedException", |
| 5341 | + "documentation": "<p>405 response</p>" |
| 5342 | + }, |
| 5343 | + { |
| 5344 | + "shape": "TooManyRequestsException", |
| 5345 | + "documentation": "<p>429 response</p>" |
| 5346 | + } |
| 5347 | + ], |
| 5348 | + "documentation": "<p>Verify an OTP</p>" |
5257 | 5349 | }
|
5258 | 5350 | },
|
5259 | 5351 | "shapes": {
|
|
13521 | 13613 | ],
|
13522 | 13614 | "payload": "MessageResponse"
|
13523 | 13615 | },
|
| 13616 | + "SendOTPMessageRequest": { |
| 13617 | + "type": "structure", |
| 13618 | + "members": { |
| 13619 | + "ApplicationId": { |
| 13620 | + "shape": "__string", |
| 13621 | + "location": "uri", |
| 13622 | + "locationName": "application-id", |
| 13623 | + "documentation": "<p>The unique ID of your Amazon Pinpoint application.</p>" |
| 13624 | + }, |
| 13625 | + "SendOTPMessageRequestParameters": { |
| 13626 | + "shape": "SendOTPMessageRequestParameters" |
| 13627 | + } |
| 13628 | + }, |
| 13629 | + "required": [ |
| 13630 | + "ApplicationId", |
| 13631 | + "SendOTPMessageRequestParameters" |
| 13632 | + ], |
| 13633 | + "payload": "SendOTPMessageRequestParameters" |
| 13634 | + }, |
| 13635 | + "SendOTPMessageRequestParameters": { |
| 13636 | + "type": "structure", |
| 13637 | + "members": { |
| 13638 | + "AllowedAttempts": { |
| 13639 | + "shape": "__integer", |
| 13640 | + "documentation": "<p>The attempts allowed to validate an OTP.</p>" |
| 13641 | + }, |
| 13642 | + "BrandName": { |
| 13643 | + "shape": "__string", |
| 13644 | + "documentation": "<p>The brand name that will be substituted into the OTP message body. Should be owned by calling AWS account.</p>" |
| 13645 | + }, |
| 13646 | + "Channel": { |
| 13647 | + "shape": "__string", |
| 13648 | + "documentation": "<p>Channel type for the OTP message. Supported values: [SMS].</p>" |
| 13649 | + }, |
| 13650 | + "CodeLength": { |
| 13651 | + "shape": "__integer", |
| 13652 | + "documentation": "<p>The number of characters in the generated OTP.</p>" |
| 13653 | + }, |
| 13654 | + "DestinationIdentity": { |
| 13655 | + "shape": "__string", |
| 13656 | + "documentation": "<p>The destination identity to send OTP to.</p>" |
| 13657 | + }, |
| 13658 | + "EntityId": { |
| 13659 | + "shape": "__string", |
| 13660 | + "documentation": "<p>A unique Entity ID received from DLT after entity registration is approved.</p>" |
| 13661 | + }, |
| 13662 | + "Language": { |
| 13663 | + "shape": "__string", |
| 13664 | + "documentation": "<p>The language to be used for the outgoing message body containing the OTP.</p>" |
| 13665 | + }, |
| 13666 | + "OriginationIdentity": { |
| 13667 | + "shape": "__string", |
| 13668 | + "documentation": "<p>The origination identity used to send OTP from.</p>" |
| 13669 | + }, |
| 13670 | + "ReferenceId": { |
| 13671 | + "shape": "__string", |
| 13672 | + "documentation": "<p>Developer-specified reference identifier. Required to match during OTP verification.</p>" |
| 13673 | + }, |
| 13674 | + "TemplateId": { |
| 13675 | + "shape": "__string", |
| 13676 | + "documentation": "<p>A unique Template ID received from DLT after entity registration is approved.</p>" |
| 13677 | + }, |
| 13678 | + "ValidityPeriod": { |
| 13679 | + "shape": "__integer", |
| 13680 | + "documentation": "<p>The time in minutes before the OTP is no longer valid.</p>" |
| 13681 | + } |
| 13682 | + }, |
| 13683 | + "documentation": "<p>Send OTP message request parameters.</p>", |
| 13684 | + "required": [ |
| 13685 | + "BrandName", |
| 13686 | + "ReferenceId", |
| 13687 | + "Channel", |
| 13688 | + "DestinationIdentity", |
| 13689 | + "OriginationIdentity" |
| 13690 | + ] |
| 13691 | + }, |
| 13692 | + "SendOTPMessageResponse": { |
| 13693 | + "type": "structure", |
| 13694 | + "members": { |
| 13695 | + "MessageResponse": { |
| 13696 | + "shape": "MessageResponse" |
| 13697 | + } |
| 13698 | + }, |
| 13699 | + "required": [ |
| 13700 | + "MessageResponse" |
| 13701 | + ], |
| 13702 | + "payload": "MessageResponse" |
| 13703 | + }, |
13524 | 13704 | "SendUsersMessageRequest": {
|
13525 | 13705 | "type": "structure",
|
13526 | 13706 | "members": {
|
|
14966 | 15146 | ],
|
14967 | 15147 | "payload": "MessageBody"
|
14968 | 15148 | },
|
| 15149 | + "VerificationResponse": { |
| 15150 | + "type": "structure", |
| 15151 | + "members": { |
| 15152 | + "Valid": { |
| 15153 | + "shape": "__boolean", |
| 15154 | + "documentation": "<p>Specifies whether the OTP is valid or not.</p>" |
| 15155 | + } |
| 15156 | + }, |
| 15157 | + "documentation": "<p>Verify OTP Message Response.</p>" |
| 15158 | + }, |
| 15159 | + "VerifyOTPMessageRequest": { |
| 15160 | + "type": "structure", |
| 15161 | + "members": { |
| 15162 | + "ApplicationId": { |
| 15163 | + "shape": "__string", |
| 15164 | + "location": "uri", |
| 15165 | + "locationName": "application-id", |
| 15166 | + "documentation": "<p>The unique ID of your Amazon Pinpoint application.</p>" |
| 15167 | + }, |
| 15168 | + "VerifyOTPMessageRequestParameters": { |
| 15169 | + "shape": "VerifyOTPMessageRequestParameters" |
| 15170 | + } |
| 15171 | + }, |
| 15172 | + "required": [ |
| 15173 | + "ApplicationId", |
| 15174 | + "VerifyOTPMessageRequestParameters" |
| 15175 | + ], |
| 15176 | + "payload": "VerifyOTPMessageRequestParameters" |
| 15177 | + }, |
| 15178 | + "VerifyOTPMessageRequestParameters": { |
| 15179 | + "type": "structure", |
| 15180 | + "members": { |
| 15181 | + "DestinationIdentity": { |
| 15182 | + "shape": "__string", |
| 15183 | + "documentation": "<p>The destination identity to send OTP to.</p>" |
| 15184 | + }, |
| 15185 | + "Otp": { |
| 15186 | + "shape": "__string", |
| 15187 | + "documentation": "<p>The OTP the end user provided for verification.</p>" |
| 15188 | + }, |
| 15189 | + "ReferenceId": { |
| 15190 | + "shape": "__string", |
| 15191 | + "documentation": "<p>The reference identifier provided when the OTP was previously sent.</p>" |
| 15192 | + } |
| 15193 | + }, |
| 15194 | + "documentation": "<p>Verify OTP message request.</p>", |
| 15195 | + "required": [ |
| 15196 | + "ReferenceId", |
| 15197 | + "Otp", |
| 15198 | + "DestinationIdentity" |
| 15199 | + ] |
| 15200 | + }, |
| 15201 | + "VerifyOTPMessageResponse": { |
| 15202 | + "type": "structure", |
| 15203 | + "members": { |
| 15204 | + "VerificationResponse": { |
| 15205 | + "shape": "VerificationResponse" |
| 15206 | + } |
| 15207 | + }, |
| 15208 | + "required": [ |
| 15209 | + "VerificationResponse" |
| 15210 | + ], |
| 15211 | + "payload": "VerificationResponse" |
| 15212 | + }, |
14969 | 15213 | "VoiceChannelRequest": {
|
14970 | 15214 | "type": "structure",
|
14971 | 15215 | "members": {
|
|
0 commit comments