diff --git a/clients/client-pinpoint-sms-voice-v2/README.md b/clients/client-pinpoint-sms-voice-v2/README.md index cab9e96bf9cdb..c5654bce2681c 100644 --- a/clients/client-pinpoint-sms-voice-v2/README.md +++ b/clients/client-pinpoint-sms-voice-v2/README.md @@ -22,6 +22,25 @@ Amazon Pinpoint functionality into mobile apps and other types of applications. The guide also provides key information, such as Amazon Pinpoint integration with other Amazon Web Services services, and the quotas that apply to use of the service.

+

+Regional availability +

+

The Amazon Pinpoint SMS and Voice, version 2 API Reference is +available in several Amazon Web Services Regions and it provides an endpoint for each of +these Regions. For a list of all the Regions and endpoints where the API is currently +available, see Amazon Web Services Service Endpoints and Amazon Pinpoint +endpoints and quotas in the Amazon Web Services General Reference. To +learn more about Amazon Web Services Regions, see Managing +Amazon Web Services Regions in the Amazon Web Services General +Reference.

+

In each Region, Amazon Web Services maintains multiple Availability Zones. These +Availability Zones are physically isolated from each other, but are united by private, +low-latency, high-throughput, and highly redundant network connections. These +Availability Zones enable us to provide very high levels of availability and redundancy, +while also minimizing latency. To learn more about the number of Availability Zones that +are available in each Region, see Amazon Web Services +Global Infrastructure. +

## Installing @@ -257,6 +276,46 @@ CreatePool [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/createpoolcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/createpoolcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/createpoolcommandoutput.html) + +
+ +CreateRegistration + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/createregistrationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/createregistrationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/createregistrationcommandoutput.html) + +
+
+ +CreateRegistrationAssociation + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/createregistrationassociationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/createregistrationassociationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/createregistrationassociationcommandoutput.html) + +
+
+ +CreateRegistrationAttachment + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/createregistrationattachmentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/createregistrationattachmentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/createregistrationattachmentcommandoutput.html) + +
+
+ +CreateRegistrationVersion + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/createregistrationversioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/createregistrationversioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/createregistrationversioncommandoutput.html) + +
+
+ +CreateVerifiedDestinationNumber + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/createverifieddestinationnumbercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/createverifieddestinationnumbercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/createverifieddestinationnumbercommandoutput.html) +
@@ -321,6 +380,30 @@ DeletePool [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/deletepoolcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/deletepoolcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/deletepoolcommandoutput.html) +
+
+ +DeleteRegistration + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/deleteregistrationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/deleteregistrationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/deleteregistrationcommandoutput.html) + +
+
+ +DeleteRegistrationAttachment + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/deleteregistrationattachmentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/deleteregistrationattachmentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/deleteregistrationattachmentcommandoutput.html) + +
+
+ +DeleteRegistrationFieldValue + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/deleteregistrationfieldvaluecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/deleteregistrationfieldvaluecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/deleteregistrationfieldvaluecommandoutput.html) +
@@ -329,6 +412,14 @@ DeleteTextMessageSpendLimitOverride [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/deletetextmessagespendlimitoverridecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/deletetextmessagespendlimitoverridecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/deletetextmessagespendlimitoverridecommandoutput.html) +
+
+ +DeleteVerifiedDestinationNumber + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/deleteverifieddestinationnumbercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/deleteverifieddestinationnumbercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/deleteverifieddestinationnumbercommandoutput.html) +
@@ -401,6 +492,62 @@ DescribePools [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/describepoolscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describepoolscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describepoolscommandoutput.html) +
+
+ +DescribeRegistrationAttachments + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/describeregistrationattachmentscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeregistrationattachmentscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeregistrationattachmentscommandoutput.html) + +
+
+ +DescribeRegistrationFieldDefinitions + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/describeregistrationfielddefinitionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeregistrationfielddefinitionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeregistrationfielddefinitionscommandoutput.html) + +
+
+ +DescribeRegistrationFieldValues + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/describeregistrationfieldvaluescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeregistrationfieldvaluescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeregistrationfieldvaluescommandoutput.html) + +
+
+ +DescribeRegistrations + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/describeregistrationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeregistrationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeregistrationscommandoutput.html) + +
+
+ +DescribeRegistrationSectionDefinitions + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/describeregistrationsectiondefinitionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeregistrationsectiondefinitionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeregistrationsectiondefinitionscommandoutput.html) + +
+
+ +DescribeRegistrationTypeDefinitions + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/describeregistrationtypedefinitionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeregistrationtypedefinitionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeregistrationtypedefinitionscommandoutput.html) + +
+
+ +DescribeRegistrationVersions + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/describeregistrationversionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeregistrationversionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeregistrationversionscommandoutput.html) +
@@ -417,6 +564,14 @@ DescribeSpendLimits [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/describespendlimitscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describespendlimitscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describespendlimitscommandoutput.html) +
+
+ +DescribeVerifiedDestinationNumbers + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/describeverifieddestinationnumberscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeverifieddestinationnumberscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/describeverifieddestinationnumberscommandoutput.html) +
@@ -425,6 +580,14 @@ DisassociateOriginationIdentity [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/disassociateoriginationidentitycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/disassociateoriginationidentitycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/disassociateoriginationidentitycommandoutput.html) +
+
+ +DiscardRegistrationVersion + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/discardregistrationversioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/discardregistrationversioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/discardregistrationversioncommandoutput.html) +
@@ -433,6 +596,14 @@ ListPoolOriginationIdentities [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/listpooloriginationidentitiescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/listpooloriginationidentitiescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/listpooloriginationidentitiescommandoutput.html) +
+
+ +ListRegistrationAssociations + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/listregistrationassociationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/listregistrationassociationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/listregistrationassociationscommandoutput.html) +
@@ -457,6 +628,14 @@ PutOptedOutNumber [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/putoptedoutnumbercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/putoptedoutnumbercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/putoptedoutnumbercommandoutput.html) +
+
+ +PutRegistrationFieldValue + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/putregistrationfieldvaluecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/putregistrationfieldvaluecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/putregistrationfieldvaluecommandoutput.html) +
@@ -465,6 +644,14 @@ ReleasePhoneNumber [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/releasephonenumbercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/releasephonenumbercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/releasephonenumbercommandoutput.html) +
+
+ +ReleaseSenderId + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/releasesenderidcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/releasesenderidcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/releasesenderidcommandoutput.html) +
@@ -473,6 +660,22 @@ RequestPhoneNumber [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/requestphonenumbercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/requestphonenumbercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/requestphonenumbercommandoutput.html) +
+
+ +RequestSenderId + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/requestsenderidcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/requestsenderidcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/requestsenderidcommandoutput.html) + +
+
+ +SendDestinationNumberVerificationCode + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/senddestinationnumberverificationcodecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/senddestinationnumberverificationcodecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/senddestinationnumberverificationcodecommandoutput.html) +
@@ -521,6 +724,14 @@ SetVoiceMessageSpendLimitOverride [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/setvoicemessagespendlimitoverridecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/setvoicemessagespendlimitoverridecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/setvoicemessagespendlimitoverridecommandoutput.html) +
+
+ +SubmitRegistrationVersion + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/submitregistrationversioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/submitregistrationversioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/submitregistrationversioncommandoutput.html) +
@@ -562,3 +773,19 @@ UpdatePool [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/updatepoolcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/updatepoolcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/updatepoolcommandoutput.html)
+
+ +UpdateSenderId + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/updatesenderidcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/updatesenderidcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/updatesenderidcommandoutput.html) + +
+
+ +VerifyDestinationNumber + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/classes/verifydestinationnumbercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/verifydestinationnumbercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-pinpoint-sms-voice-v2/interfaces/verifydestinationnumbercommandoutput.html) + +
diff --git a/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2.ts b/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2.ts index 9f5d71712fd03..3b03752ce6cec 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2.ts @@ -23,6 +23,31 @@ import { CreateOptOutListCommandOutput, } from "./commands/CreateOptOutListCommand"; import { CreatePoolCommand, CreatePoolCommandInput, CreatePoolCommandOutput } from "./commands/CreatePoolCommand"; +import { + CreateRegistrationAssociationCommand, + CreateRegistrationAssociationCommandInput, + CreateRegistrationAssociationCommandOutput, +} from "./commands/CreateRegistrationAssociationCommand"; +import { + CreateRegistrationAttachmentCommand, + CreateRegistrationAttachmentCommandInput, + CreateRegistrationAttachmentCommandOutput, +} from "./commands/CreateRegistrationAttachmentCommand"; +import { + CreateRegistrationCommand, + CreateRegistrationCommandInput, + CreateRegistrationCommandOutput, +} from "./commands/CreateRegistrationCommand"; +import { + CreateRegistrationVersionCommand, + CreateRegistrationVersionCommandInput, + CreateRegistrationVersionCommandOutput, +} from "./commands/CreateRegistrationVersionCommand"; +import { + CreateVerifiedDestinationNumberCommand, + CreateVerifiedDestinationNumberCommandInput, + CreateVerifiedDestinationNumberCommandOutput, +} from "./commands/CreateVerifiedDestinationNumberCommand"; import { DeleteConfigurationSetCommand, DeleteConfigurationSetCommandInput, @@ -59,11 +84,31 @@ import { DeleteOptOutListCommandOutput, } from "./commands/DeleteOptOutListCommand"; import { DeletePoolCommand, DeletePoolCommandInput, DeletePoolCommandOutput } from "./commands/DeletePoolCommand"; +import { + DeleteRegistrationAttachmentCommand, + DeleteRegistrationAttachmentCommandInput, + DeleteRegistrationAttachmentCommandOutput, +} from "./commands/DeleteRegistrationAttachmentCommand"; +import { + DeleteRegistrationCommand, + DeleteRegistrationCommandInput, + DeleteRegistrationCommandOutput, +} from "./commands/DeleteRegistrationCommand"; +import { + DeleteRegistrationFieldValueCommand, + DeleteRegistrationFieldValueCommandInput, + DeleteRegistrationFieldValueCommandOutput, +} from "./commands/DeleteRegistrationFieldValueCommand"; import { DeleteTextMessageSpendLimitOverrideCommand, DeleteTextMessageSpendLimitOverrideCommandInput, DeleteTextMessageSpendLimitOverrideCommandOutput, } from "./commands/DeleteTextMessageSpendLimitOverrideCommand"; +import { + DeleteVerifiedDestinationNumberCommand, + DeleteVerifiedDestinationNumberCommandInput, + DeleteVerifiedDestinationNumberCommandOutput, +} from "./commands/DeleteVerifiedDestinationNumberCommand"; import { DeleteVoiceMessageSpendLimitOverrideCommand, DeleteVoiceMessageSpendLimitOverrideCommandInput, @@ -109,6 +154,41 @@ import { DescribePoolsCommandInput, DescribePoolsCommandOutput, } from "./commands/DescribePoolsCommand"; +import { + DescribeRegistrationAttachmentsCommand, + DescribeRegistrationAttachmentsCommandInput, + DescribeRegistrationAttachmentsCommandOutput, +} from "./commands/DescribeRegistrationAttachmentsCommand"; +import { + DescribeRegistrationFieldDefinitionsCommand, + DescribeRegistrationFieldDefinitionsCommandInput, + DescribeRegistrationFieldDefinitionsCommandOutput, +} from "./commands/DescribeRegistrationFieldDefinitionsCommand"; +import { + DescribeRegistrationFieldValuesCommand, + DescribeRegistrationFieldValuesCommandInput, + DescribeRegistrationFieldValuesCommandOutput, +} from "./commands/DescribeRegistrationFieldValuesCommand"; +import { + DescribeRegistrationsCommand, + DescribeRegistrationsCommandInput, + DescribeRegistrationsCommandOutput, +} from "./commands/DescribeRegistrationsCommand"; +import { + DescribeRegistrationSectionDefinitionsCommand, + DescribeRegistrationSectionDefinitionsCommandInput, + DescribeRegistrationSectionDefinitionsCommandOutput, +} from "./commands/DescribeRegistrationSectionDefinitionsCommand"; +import { + DescribeRegistrationTypeDefinitionsCommand, + DescribeRegistrationTypeDefinitionsCommandInput, + DescribeRegistrationTypeDefinitionsCommandOutput, +} from "./commands/DescribeRegistrationTypeDefinitionsCommand"; +import { + DescribeRegistrationVersionsCommand, + DescribeRegistrationVersionsCommandInput, + DescribeRegistrationVersionsCommandOutput, +} from "./commands/DescribeRegistrationVersionsCommand"; import { DescribeSenderIdsCommand, DescribeSenderIdsCommandInput, @@ -119,16 +199,31 @@ import { DescribeSpendLimitsCommandInput, DescribeSpendLimitsCommandOutput, } from "./commands/DescribeSpendLimitsCommand"; +import { + DescribeVerifiedDestinationNumbersCommand, + DescribeVerifiedDestinationNumbersCommandInput, + DescribeVerifiedDestinationNumbersCommandOutput, +} from "./commands/DescribeVerifiedDestinationNumbersCommand"; import { DisassociateOriginationIdentityCommand, DisassociateOriginationIdentityCommandInput, DisassociateOriginationIdentityCommandOutput, } from "./commands/DisassociateOriginationIdentityCommand"; +import { + DiscardRegistrationVersionCommand, + DiscardRegistrationVersionCommandInput, + DiscardRegistrationVersionCommandOutput, +} from "./commands/DiscardRegistrationVersionCommand"; import { ListPoolOriginationIdentitiesCommand, ListPoolOriginationIdentitiesCommandInput, ListPoolOriginationIdentitiesCommandOutput, } from "./commands/ListPoolOriginationIdentitiesCommand"; +import { + ListRegistrationAssociationsCommand, + ListRegistrationAssociationsCommandInput, + ListRegistrationAssociationsCommandOutput, +} from "./commands/ListRegistrationAssociationsCommand"; import { ListTagsForResourceCommand, ListTagsForResourceCommandInput, @@ -140,16 +235,36 @@ import { PutOptedOutNumberCommandInput, PutOptedOutNumberCommandOutput, } from "./commands/PutOptedOutNumberCommand"; +import { + PutRegistrationFieldValueCommand, + PutRegistrationFieldValueCommandInput, + PutRegistrationFieldValueCommandOutput, +} from "./commands/PutRegistrationFieldValueCommand"; import { ReleasePhoneNumberCommand, ReleasePhoneNumberCommandInput, ReleasePhoneNumberCommandOutput, } from "./commands/ReleasePhoneNumberCommand"; +import { + ReleaseSenderIdCommand, + ReleaseSenderIdCommandInput, + ReleaseSenderIdCommandOutput, +} from "./commands/ReleaseSenderIdCommand"; import { RequestPhoneNumberCommand, RequestPhoneNumberCommandInput, RequestPhoneNumberCommandOutput, } from "./commands/RequestPhoneNumberCommand"; +import { + RequestSenderIdCommand, + RequestSenderIdCommandInput, + RequestSenderIdCommandOutput, +} from "./commands/RequestSenderIdCommand"; +import { + SendDestinationNumberVerificationCodeCommand, + SendDestinationNumberVerificationCodeCommandInput, + SendDestinationNumberVerificationCodeCommandOutput, +} from "./commands/SendDestinationNumberVerificationCodeCommand"; import { SendTextMessageCommand, SendTextMessageCommandInput, @@ -180,6 +295,11 @@ import { SetVoiceMessageSpendLimitOverrideCommandInput, SetVoiceMessageSpendLimitOverrideCommandOutput, } from "./commands/SetVoiceMessageSpendLimitOverrideCommand"; +import { + SubmitRegistrationVersionCommand, + SubmitRegistrationVersionCommandInput, + SubmitRegistrationVersionCommandOutput, +} from "./commands/SubmitRegistrationVersionCommand"; import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand"; import { UntagResourceCommand, @@ -197,6 +317,16 @@ import { UpdatePhoneNumberCommandOutput, } from "./commands/UpdatePhoneNumberCommand"; import { UpdatePoolCommand, UpdatePoolCommandInput, UpdatePoolCommandOutput } from "./commands/UpdatePoolCommand"; +import { + UpdateSenderIdCommand, + UpdateSenderIdCommandInput, + UpdateSenderIdCommandOutput, +} from "./commands/UpdateSenderIdCommand"; +import { + VerifyDestinationNumberCommand, + VerifyDestinationNumberCommandInput, + VerifyDestinationNumberCommandOutput, +} from "./commands/VerifyDestinationNumberCommand"; import { PinpointSMSVoiceV2Client, PinpointSMSVoiceV2ClientConfig } from "./PinpointSMSVoiceV2Client"; const commands = { @@ -205,6 +335,11 @@ const commands = { CreateEventDestinationCommand, CreateOptOutListCommand, CreatePoolCommand, + CreateRegistrationCommand, + CreateRegistrationAssociationCommand, + CreateRegistrationAttachmentCommand, + CreateRegistrationVersionCommand, + CreateVerifiedDestinationNumberCommand, DeleteConfigurationSetCommand, DeleteDefaultMessageTypeCommand, DeleteDefaultSenderIdCommand, @@ -213,7 +348,11 @@ const commands = { DeleteOptedOutNumberCommand, DeleteOptOutListCommand, DeletePoolCommand, + DeleteRegistrationCommand, + DeleteRegistrationAttachmentCommand, + DeleteRegistrationFieldValueCommand, DeleteTextMessageSpendLimitOverrideCommand, + DeleteVerifiedDestinationNumberCommand, DeleteVoiceMessageSpendLimitOverrideCommand, DescribeAccountAttributesCommand, DescribeAccountLimitsCommand, @@ -223,26 +362,43 @@ const commands = { DescribeOptOutListsCommand, DescribePhoneNumbersCommand, DescribePoolsCommand, + DescribeRegistrationAttachmentsCommand, + DescribeRegistrationFieldDefinitionsCommand, + DescribeRegistrationFieldValuesCommand, + DescribeRegistrationsCommand, + DescribeRegistrationSectionDefinitionsCommand, + DescribeRegistrationTypeDefinitionsCommand, + DescribeRegistrationVersionsCommand, DescribeSenderIdsCommand, DescribeSpendLimitsCommand, + DescribeVerifiedDestinationNumbersCommand, DisassociateOriginationIdentityCommand, + DiscardRegistrationVersionCommand, ListPoolOriginationIdentitiesCommand, + ListRegistrationAssociationsCommand, ListTagsForResourceCommand, PutKeywordCommand, PutOptedOutNumberCommand, + PutRegistrationFieldValueCommand, ReleasePhoneNumberCommand, + ReleaseSenderIdCommand, RequestPhoneNumberCommand, + RequestSenderIdCommand, + SendDestinationNumberVerificationCodeCommand, SendTextMessageCommand, SendVoiceMessageCommand, SetDefaultMessageTypeCommand, SetDefaultSenderIdCommand, SetTextMessageSpendLimitOverrideCommand, SetVoiceMessageSpendLimitOverrideCommand, + SubmitRegistrationVersionCommand, TagResourceCommand, UntagResourceCommand, UpdateEventDestinationCommand, UpdatePhoneNumberCommand, UpdatePoolCommand, + UpdateSenderIdCommand, + VerifyDestinationNumberCommand, }; export interface PinpointSMSVoiceV2 { @@ -325,6 +481,91 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: CreatePoolCommandOutput) => void ): void; + /** + * @see {@link CreateRegistrationCommand} + */ + createRegistration( + args: CreateRegistrationCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createRegistration( + args: CreateRegistrationCommandInput, + cb: (err: any, data?: CreateRegistrationCommandOutput) => void + ): void; + createRegistration( + args: CreateRegistrationCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateRegistrationCommandOutput) => void + ): void; + + /** + * @see {@link CreateRegistrationAssociationCommand} + */ + createRegistrationAssociation( + args: CreateRegistrationAssociationCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createRegistrationAssociation( + args: CreateRegistrationAssociationCommandInput, + cb: (err: any, data?: CreateRegistrationAssociationCommandOutput) => void + ): void; + createRegistrationAssociation( + args: CreateRegistrationAssociationCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateRegistrationAssociationCommandOutput) => void + ): void; + + /** + * @see {@link CreateRegistrationAttachmentCommand} + */ + createRegistrationAttachment( + args: CreateRegistrationAttachmentCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createRegistrationAttachment( + args: CreateRegistrationAttachmentCommandInput, + cb: (err: any, data?: CreateRegistrationAttachmentCommandOutput) => void + ): void; + createRegistrationAttachment( + args: CreateRegistrationAttachmentCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateRegistrationAttachmentCommandOutput) => void + ): void; + + /** + * @see {@link CreateRegistrationVersionCommand} + */ + createRegistrationVersion( + args: CreateRegistrationVersionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createRegistrationVersion( + args: CreateRegistrationVersionCommandInput, + cb: (err: any, data?: CreateRegistrationVersionCommandOutput) => void + ): void; + createRegistrationVersion( + args: CreateRegistrationVersionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateRegistrationVersionCommandOutput) => void + ): void; + + /** + * @see {@link CreateVerifiedDestinationNumberCommand} + */ + createVerifiedDestinationNumber( + args: CreateVerifiedDestinationNumberCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createVerifiedDestinationNumber( + args: CreateVerifiedDestinationNumberCommandInput, + cb: (err: any, data?: CreateVerifiedDestinationNumberCommandOutput) => void + ): void; + createVerifiedDestinationNumber( + args: CreateVerifiedDestinationNumberCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateVerifiedDestinationNumberCommandOutput) => void + ): void; + /** * @see {@link DeleteConfigurationSetCommand} */ @@ -449,6 +690,57 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: DeletePoolCommandOutput) => void ): void; + /** + * @see {@link DeleteRegistrationCommand} + */ + deleteRegistration( + args: DeleteRegistrationCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteRegistration( + args: DeleteRegistrationCommandInput, + cb: (err: any, data?: DeleteRegistrationCommandOutput) => void + ): void; + deleteRegistration( + args: DeleteRegistrationCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteRegistrationCommandOutput) => void + ): void; + + /** + * @see {@link DeleteRegistrationAttachmentCommand} + */ + deleteRegistrationAttachment( + args: DeleteRegistrationAttachmentCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteRegistrationAttachment( + args: DeleteRegistrationAttachmentCommandInput, + cb: (err: any, data?: DeleteRegistrationAttachmentCommandOutput) => void + ): void; + deleteRegistrationAttachment( + args: DeleteRegistrationAttachmentCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteRegistrationAttachmentCommandOutput) => void + ): void; + + /** + * @see {@link DeleteRegistrationFieldValueCommand} + */ + deleteRegistrationFieldValue( + args: DeleteRegistrationFieldValueCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteRegistrationFieldValue( + args: DeleteRegistrationFieldValueCommandInput, + cb: (err: any, data?: DeleteRegistrationFieldValueCommandOutput) => void + ): void; + deleteRegistrationFieldValue( + args: DeleteRegistrationFieldValueCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteRegistrationFieldValueCommandOutput) => void + ): void; + /** * @see {@link DeleteTextMessageSpendLimitOverrideCommand} */ @@ -466,6 +758,23 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: DeleteTextMessageSpendLimitOverrideCommandOutput) => void ): void; + /** + * @see {@link DeleteVerifiedDestinationNumberCommand} + */ + deleteVerifiedDestinationNumber( + args: DeleteVerifiedDestinationNumberCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteVerifiedDestinationNumber( + args: DeleteVerifiedDestinationNumberCommandInput, + cb: (err: any, data?: DeleteVerifiedDestinationNumberCommandOutput) => void + ): void; + deleteVerifiedDestinationNumber( + args: DeleteVerifiedDestinationNumberCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteVerifiedDestinationNumberCommandOutput) => void + ): void; + /** * @see {@link DeleteVoiceMessageSpendLimitOverrideCommand} */ @@ -613,6 +922,125 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: DescribePoolsCommandOutput) => void ): void; + /** + * @see {@link DescribeRegistrationAttachmentsCommand} + */ + describeRegistrationAttachments( + args: DescribeRegistrationAttachmentsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + describeRegistrationAttachments( + args: DescribeRegistrationAttachmentsCommandInput, + cb: (err: any, data?: DescribeRegistrationAttachmentsCommandOutput) => void + ): void; + describeRegistrationAttachments( + args: DescribeRegistrationAttachmentsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeRegistrationAttachmentsCommandOutput) => void + ): void; + + /** + * @see {@link DescribeRegistrationFieldDefinitionsCommand} + */ + describeRegistrationFieldDefinitions( + args: DescribeRegistrationFieldDefinitionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + describeRegistrationFieldDefinitions( + args: DescribeRegistrationFieldDefinitionsCommandInput, + cb: (err: any, data?: DescribeRegistrationFieldDefinitionsCommandOutput) => void + ): void; + describeRegistrationFieldDefinitions( + args: DescribeRegistrationFieldDefinitionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeRegistrationFieldDefinitionsCommandOutput) => void + ): void; + + /** + * @see {@link DescribeRegistrationFieldValuesCommand} + */ + describeRegistrationFieldValues( + args: DescribeRegistrationFieldValuesCommandInput, + options?: __HttpHandlerOptions + ): Promise; + describeRegistrationFieldValues( + args: DescribeRegistrationFieldValuesCommandInput, + cb: (err: any, data?: DescribeRegistrationFieldValuesCommandOutput) => void + ): void; + describeRegistrationFieldValues( + args: DescribeRegistrationFieldValuesCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeRegistrationFieldValuesCommandOutput) => void + ): void; + + /** + * @see {@link DescribeRegistrationsCommand} + */ + describeRegistrations( + args: DescribeRegistrationsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + describeRegistrations( + args: DescribeRegistrationsCommandInput, + cb: (err: any, data?: DescribeRegistrationsCommandOutput) => void + ): void; + describeRegistrations( + args: DescribeRegistrationsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeRegistrationsCommandOutput) => void + ): void; + + /** + * @see {@link DescribeRegistrationSectionDefinitionsCommand} + */ + describeRegistrationSectionDefinitions( + args: DescribeRegistrationSectionDefinitionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + describeRegistrationSectionDefinitions( + args: DescribeRegistrationSectionDefinitionsCommandInput, + cb: (err: any, data?: DescribeRegistrationSectionDefinitionsCommandOutput) => void + ): void; + describeRegistrationSectionDefinitions( + args: DescribeRegistrationSectionDefinitionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeRegistrationSectionDefinitionsCommandOutput) => void + ): void; + + /** + * @see {@link DescribeRegistrationTypeDefinitionsCommand} + */ + describeRegistrationTypeDefinitions( + args: DescribeRegistrationTypeDefinitionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + describeRegistrationTypeDefinitions( + args: DescribeRegistrationTypeDefinitionsCommandInput, + cb: (err: any, data?: DescribeRegistrationTypeDefinitionsCommandOutput) => void + ): void; + describeRegistrationTypeDefinitions( + args: DescribeRegistrationTypeDefinitionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeRegistrationTypeDefinitionsCommandOutput) => void + ): void; + + /** + * @see {@link DescribeRegistrationVersionsCommand} + */ + describeRegistrationVersions( + args: DescribeRegistrationVersionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + describeRegistrationVersions( + args: DescribeRegistrationVersionsCommandInput, + cb: (err: any, data?: DescribeRegistrationVersionsCommandOutput) => void + ): void; + describeRegistrationVersions( + args: DescribeRegistrationVersionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeRegistrationVersionsCommandOutput) => void + ): void; + /** * @see {@link DescribeSenderIdsCommand} */ @@ -647,6 +1075,23 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: DescribeSpendLimitsCommandOutput) => void ): void; + /** + * @see {@link DescribeVerifiedDestinationNumbersCommand} + */ + describeVerifiedDestinationNumbers( + args: DescribeVerifiedDestinationNumbersCommandInput, + options?: __HttpHandlerOptions + ): Promise; + describeVerifiedDestinationNumbers( + args: DescribeVerifiedDestinationNumbersCommandInput, + cb: (err: any, data?: DescribeVerifiedDestinationNumbersCommandOutput) => void + ): void; + describeVerifiedDestinationNumbers( + args: DescribeVerifiedDestinationNumbersCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeVerifiedDestinationNumbersCommandOutput) => void + ): void; + /** * @see {@link DisassociateOriginationIdentityCommand} */ @@ -664,6 +1109,23 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: DisassociateOriginationIdentityCommandOutput) => void ): void; + /** + * @see {@link DiscardRegistrationVersionCommand} + */ + discardRegistrationVersion( + args: DiscardRegistrationVersionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + discardRegistrationVersion( + args: DiscardRegistrationVersionCommandInput, + cb: (err: any, data?: DiscardRegistrationVersionCommandOutput) => void + ): void; + discardRegistrationVersion( + args: DiscardRegistrationVersionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DiscardRegistrationVersionCommandOutput) => void + ): void; + /** * @see {@link ListPoolOriginationIdentitiesCommand} */ @@ -681,6 +1143,23 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: ListPoolOriginationIdentitiesCommandOutput) => void ): void; + /** + * @see {@link ListRegistrationAssociationsCommand} + */ + listRegistrationAssociations( + args: ListRegistrationAssociationsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listRegistrationAssociations( + args: ListRegistrationAssociationsCommandInput, + cb: (err: any, data?: ListRegistrationAssociationsCommandOutput) => void + ): void; + listRegistrationAssociations( + args: ListRegistrationAssociationsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListRegistrationAssociationsCommandOutput) => void + ): void; + /** * @see {@link ListTagsForResourceCommand} */ @@ -726,6 +1205,23 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: PutOptedOutNumberCommandOutput) => void ): void; + /** + * @see {@link PutRegistrationFieldValueCommand} + */ + putRegistrationFieldValue( + args: PutRegistrationFieldValueCommandInput, + options?: __HttpHandlerOptions + ): Promise; + putRegistrationFieldValue( + args: PutRegistrationFieldValueCommandInput, + cb: (err: any, data?: PutRegistrationFieldValueCommandOutput) => void + ): void; + putRegistrationFieldValue( + args: PutRegistrationFieldValueCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: PutRegistrationFieldValueCommandOutput) => void + ): void; + /** * @see {@link ReleasePhoneNumberCommand} */ @@ -743,6 +1239,20 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: ReleasePhoneNumberCommandOutput) => void ): void; + /** + * @see {@link ReleaseSenderIdCommand} + */ + releaseSenderId( + args: ReleaseSenderIdCommandInput, + options?: __HttpHandlerOptions + ): Promise; + releaseSenderId(args: ReleaseSenderIdCommandInput, cb: (err: any, data?: ReleaseSenderIdCommandOutput) => void): void; + releaseSenderId( + args: ReleaseSenderIdCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ReleaseSenderIdCommandOutput) => void + ): void; + /** * @see {@link RequestPhoneNumberCommand} */ @@ -760,6 +1270,37 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: RequestPhoneNumberCommandOutput) => void ): void; + /** + * @see {@link RequestSenderIdCommand} + */ + requestSenderId( + args: RequestSenderIdCommandInput, + options?: __HttpHandlerOptions + ): Promise; + requestSenderId(args: RequestSenderIdCommandInput, cb: (err: any, data?: RequestSenderIdCommandOutput) => void): void; + requestSenderId( + args: RequestSenderIdCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: RequestSenderIdCommandOutput) => void + ): void; + + /** + * @see {@link SendDestinationNumberVerificationCodeCommand} + */ + sendDestinationNumberVerificationCode( + args: SendDestinationNumberVerificationCodeCommandInput, + options?: __HttpHandlerOptions + ): Promise; + sendDestinationNumberVerificationCode( + args: SendDestinationNumberVerificationCodeCommandInput, + cb: (err: any, data?: SendDestinationNumberVerificationCodeCommandOutput) => void + ): void; + sendDestinationNumberVerificationCode( + args: SendDestinationNumberVerificationCodeCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: SendDestinationNumberVerificationCodeCommandOutput) => void + ): void; + /** * @see {@link SendTextMessageCommand} */ @@ -859,6 +1400,23 @@ export interface PinpointSMSVoiceV2 { cb: (err: any, data?: SetVoiceMessageSpendLimitOverrideCommandOutput) => void ): void; + /** + * @see {@link SubmitRegistrationVersionCommand} + */ + submitRegistrationVersion( + args: SubmitRegistrationVersionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + submitRegistrationVersion( + args: SubmitRegistrationVersionCommandInput, + cb: (err: any, data?: SubmitRegistrationVersionCommandOutput) => void + ): void; + submitRegistrationVersion( + args: SubmitRegistrationVersionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: SubmitRegistrationVersionCommandOutput) => void + ): void; + /** * @see {@link TagResourceCommand} */ @@ -925,6 +1483,37 @@ export interface PinpointSMSVoiceV2 { options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePoolCommandOutput) => void ): void; + + /** + * @see {@link UpdateSenderIdCommand} + */ + updateSenderId( + args: UpdateSenderIdCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateSenderId(args: UpdateSenderIdCommandInput, cb: (err: any, data?: UpdateSenderIdCommandOutput) => void): void; + updateSenderId( + args: UpdateSenderIdCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateSenderIdCommandOutput) => void + ): void; + + /** + * @see {@link VerifyDestinationNumberCommand} + */ + verifyDestinationNumber( + args: VerifyDestinationNumberCommandInput, + options?: __HttpHandlerOptions + ): Promise; + verifyDestinationNumber( + args: VerifyDestinationNumberCommandInput, + cb: (err: any, data?: VerifyDestinationNumberCommandOutput) => void + ): void; + verifyDestinationNumber( + args: VerifyDestinationNumberCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: VerifyDestinationNumberCommandOutput) => void + ): void; } /** @@ -932,12 +1521,12 @@ export interface PinpointSMSVoiceV2 { *

Welcome to the Amazon Pinpoint SMS and Voice, version 2 API Reference. * This guide provides information about Amazon Pinpoint SMS and Voice, version 2 API * resources, including supported HTTP methods, parameters, and schemas.

- *

Amazon Pinpoint is an Amazon Web Services service that you can use to engage with + *

Amazon Pinpoint is an Amazon Web Services service that you can use to engage with * your recipients across multiple messaging channels. The Amazon Pinpoint SMS and * Voice, version 2 API provides programmatic access to options that are unique to the SMS * and voice channels and supplements the resources provided by the Amazon Pinpoint * API.

- *

If you're new to Amazon Pinpoint, it's also helpful to review the + *

If you're new to Amazon Pinpoint, it's also helpful to review the * Amazon Pinpoint Developer Guide. The Amazon Pinpoint * Developer Guide provides tutorials, code samples, and procedures that * demonstrate how to use Amazon Pinpoint features programmatically and how to integrate @@ -945,6 +1534,25 @@ export interface PinpointSMSVoiceV2 { * The guide also provides key information, such as Amazon Pinpoint integration with * other Amazon Web Services services, and the quotas that apply to use of the * service.

+ *

+ * Regional availability + *

+ *

The Amazon Pinpoint SMS and Voice, version 2 API Reference is + * available in several Amazon Web Services Regions and it provides an endpoint for each of + * these Regions. For a list of all the Regions and endpoints where the API is currently + * available, see Amazon Web Services Service Endpoints and Amazon Pinpoint + * endpoints and quotas in the Amazon Web Services General Reference. To + * learn more about Amazon Web Services Regions, see Managing + * Amazon Web Services Regions in the Amazon Web Services General + * Reference.

+ *

In each Region, Amazon Web Services maintains multiple Availability Zones. These + * Availability Zones are physically isolated from each other, but are united by private, + * low-latency, high-throughput, and highly redundant network connections. These + * Availability Zones enable us to provide very high levels of availability and redundancy, + * while also minimizing latency. To learn more about the number of Availability Zones that + * are available in each Region, see Amazon Web Services + * Global Infrastructure. + *

*/ export class PinpointSMSVoiceV2 extends PinpointSMSVoiceV2Client implements PinpointSMSVoiceV2 {} createAggregatedClient(commands, PinpointSMSVoiceV2); diff --git a/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2Client.ts b/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2Client.ts index 3a8524df1b042..ca3ac710acc97 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2Client.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/PinpointSMSVoiceV2Client.ts @@ -64,6 +64,23 @@ import { } from "./commands/CreateEventDestinationCommand"; import { CreateOptOutListCommandInput, CreateOptOutListCommandOutput } from "./commands/CreateOptOutListCommand"; import { CreatePoolCommandInput, CreatePoolCommandOutput } from "./commands/CreatePoolCommand"; +import { + CreateRegistrationAssociationCommandInput, + CreateRegistrationAssociationCommandOutput, +} from "./commands/CreateRegistrationAssociationCommand"; +import { + CreateRegistrationAttachmentCommandInput, + CreateRegistrationAttachmentCommandOutput, +} from "./commands/CreateRegistrationAttachmentCommand"; +import { CreateRegistrationCommandInput, CreateRegistrationCommandOutput } from "./commands/CreateRegistrationCommand"; +import { + CreateRegistrationVersionCommandInput, + CreateRegistrationVersionCommandOutput, +} from "./commands/CreateRegistrationVersionCommand"; +import { + CreateVerifiedDestinationNumberCommandInput, + CreateVerifiedDestinationNumberCommandOutput, +} from "./commands/CreateVerifiedDestinationNumberCommand"; import { DeleteConfigurationSetCommandInput, DeleteConfigurationSetCommandOutput, @@ -87,10 +104,23 @@ import { } from "./commands/DeleteOptedOutNumberCommand"; import { DeleteOptOutListCommandInput, DeleteOptOutListCommandOutput } from "./commands/DeleteOptOutListCommand"; import { DeletePoolCommandInput, DeletePoolCommandOutput } from "./commands/DeletePoolCommand"; +import { + DeleteRegistrationAttachmentCommandInput, + DeleteRegistrationAttachmentCommandOutput, +} from "./commands/DeleteRegistrationAttachmentCommand"; +import { DeleteRegistrationCommandInput, DeleteRegistrationCommandOutput } from "./commands/DeleteRegistrationCommand"; +import { + DeleteRegistrationFieldValueCommandInput, + DeleteRegistrationFieldValueCommandOutput, +} from "./commands/DeleteRegistrationFieldValueCommand"; import { DeleteTextMessageSpendLimitOverrideCommandInput, DeleteTextMessageSpendLimitOverrideCommandOutput, } from "./commands/DeleteTextMessageSpendLimitOverrideCommand"; +import { + DeleteVerifiedDestinationNumberCommandInput, + DeleteVerifiedDestinationNumberCommandOutput, +} from "./commands/DeleteVerifiedDestinationNumberCommand"; import { DeleteVoiceMessageSpendLimitOverrideCommandInput, DeleteVoiceMessageSpendLimitOverrideCommandOutput, @@ -121,27 +151,77 @@ import { DescribePhoneNumbersCommandOutput, } from "./commands/DescribePhoneNumbersCommand"; import { DescribePoolsCommandInput, DescribePoolsCommandOutput } from "./commands/DescribePoolsCommand"; +import { + DescribeRegistrationAttachmentsCommandInput, + DescribeRegistrationAttachmentsCommandOutput, +} from "./commands/DescribeRegistrationAttachmentsCommand"; +import { + DescribeRegistrationFieldDefinitionsCommandInput, + DescribeRegistrationFieldDefinitionsCommandOutput, +} from "./commands/DescribeRegistrationFieldDefinitionsCommand"; +import { + DescribeRegistrationFieldValuesCommandInput, + DescribeRegistrationFieldValuesCommandOutput, +} from "./commands/DescribeRegistrationFieldValuesCommand"; +import { + DescribeRegistrationsCommandInput, + DescribeRegistrationsCommandOutput, +} from "./commands/DescribeRegistrationsCommand"; +import { + DescribeRegistrationSectionDefinitionsCommandInput, + DescribeRegistrationSectionDefinitionsCommandOutput, +} from "./commands/DescribeRegistrationSectionDefinitionsCommand"; +import { + DescribeRegistrationTypeDefinitionsCommandInput, + DescribeRegistrationTypeDefinitionsCommandOutput, +} from "./commands/DescribeRegistrationTypeDefinitionsCommand"; +import { + DescribeRegistrationVersionsCommandInput, + DescribeRegistrationVersionsCommandOutput, +} from "./commands/DescribeRegistrationVersionsCommand"; import { DescribeSenderIdsCommandInput, DescribeSenderIdsCommandOutput } from "./commands/DescribeSenderIdsCommand"; import { DescribeSpendLimitsCommandInput, DescribeSpendLimitsCommandOutput, } from "./commands/DescribeSpendLimitsCommand"; +import { + DescribeVerifiedDestinationNumbersCommandInput, + DescribeVerifiedDestinationNumbersCommandOutput, +} from "./commands/DescribeVerifiedDestinationNumbersCommand"; import { DisassociateOriginationIdentityCommandInput, DisassociateOriginationIdentityCommandOutput, } from "./commands/DisassociateOriginationIdentityCommand"; +import { + DiscardRegistrationVersionCommandInput, + DiscardRegistrationVersionCommandOutput, +} from "./commands/DiscardRegistrationVersionCommand"; import { ListPoolOriginationIdentitiesCommandInput, ListPoolOriginationIdentitiesCommandOutput, } from "./commands/ListPoolOriginationIdentitiesCommand"; +import { + ListRegistrationAssociationsCommandInput, + ListRegistrationAssociationsCommandOutput, +} from "./commands/ListRegistrationAssociationsCommand"; import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, } from "./commands/ListTagsForResourceCommand"; import { PutKeywordCommandInput, PutKeywordCommandOutput } from "./commands/PutKeywordCommand"; import { PutOptedOutNumberCommandInput, PutOptedOutNumberCommandOutput } from "./commands/PutOptedOutNumberCommand"; +import { + PutRegistrationFieldValueCommandInput, + PutRegistrationFieldValueCommandOutput, +} from "./commands/PutRegistrationFieldValueCommand"; import { ReleasePhoneNumberCommandInput, ReleasePhoneNumberCommandOutput } from "./commands/ReleasePhoneNumberCommand"; +import { ReleaseSenderIdCommandInput, ReleaseSenderIdCommandOutput } from "./commands/ReleaseSenderIdCommand"; import { RequestPhoneNumberCommandInput, RequestPhoneNumberCommandOutput } from "./commands/RequestPhoneNumberCommand"; +import { RequestSenderIdCommandInput, RequestSenderIdCommandOutput } from "./commands/RequestSenderIdCommand"; +import { + SendDestinationNumberVerificationCodeCommandInput, + SendDestinationNumberVerificationCodeCommandOutput, +} from "./commands/SendDestinationNumberVerificationCodeCommand"; import { SendTextMessageCommandInput, SendTextMessageCommandOutput } from "./commands/SendTextMessageCommand"; import { SendVoiceMessageCommandInput, SendVoiceMessageCommandOutput } from "./commands/SendVoiceMessageCommand"; import { @@ -157,6 +237,10 @@ import { SetVoiceMessageSpendLimitOverrideCommandInput, SetVoiceMessageSpendLimitOverrideCommandOutput, } from "./commands/SetVoiceMessageSpendLimitOverrideCommand"; +import { + SubmitRegistrationVersionCommandInput, + SubmitRegistrationVersionCommandOutput, +} from "./commands/SubmitRegistrationVersionCommand"; import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand"; import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand"; import { @@ -165,6 +249,11 @@ import { } from "./commands/UpdateEventDestinationCommand"; import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "./commands/UpdatePhoneNumberCommand"; import { UpdatePoolCommandInput, UpdatePoolCommandOutput } from "./commands/UpdatePoolCommand"; +import { UpdateSenderIdCommandInput, UpdateSenderIdCommandOutput } from "./commands/UpdateSenderIdCommand"; +import { + VerifyDestinationNumberCommandInput, + VerifyDestinationNumberCommandOutput, +} from "./commands/VerifyDestinationNumberCommand"; import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, @@ -185,6 +274,11 @@ export type ServiceInputTypes = | CreateEventDestinationCommandInput | CreateOptOutListCommandInput | CreatePoolCommandInput + | CreateRegistrationAssociationCommandInput + | CreateRegistrationAttachmentCommandInput + | CreateRegistrationCommandInput + | CreateRegistrationVersionCommandInput + | CreateVerifiedDestinationNumberCommandInput | DeleteConfigurationSetCommandInput | DeleteDefaultMessageTypeCommandInput | DeleteDefaultSenderIdCommandInput @@ -193,7 +287,11 @@ export type ServiceInputTypes = | DeleteOptOutListCommandInput | DeleteOptedOutNumberCommandInput | DeletePoolCommandInput + | DeleteRegistrationAttachmentCommandInput + | DeleteRegistrationCommandInput + | DeleteRegistrationFieldValueCommandInput | DeleteTextMessageSpendLimitOverrideCommandInput + | DeleteVerifiedDestinationNumberCommandInput | DeleteVoiceMessageSpendLimitOverrideCommandInput | DescribeAccountAttributesCommandInput | DescribeAccountLimitsCommandInput @@ -203,26 +301,43 @@ export type ServiceInputTypes = | DescribeOptedOutNumbersCommandInput | DescribePhoneNumbersCommandInput | DescribePoolsCommandInput + | DescribeRegistrationAttachmentsCommandInput + | DescribeRegistrationFieldDefinitionsCommandInput + | DescribeRegistrationFieldValuesCommandInput + | DescribeRegistrationSectionDefinitionsCommandInput + | DescribeRegistrationTypeDefinitionsCommandInput + | DescribeRegistrationVersionsCommandInput + | DescribeRegistrationsCommandInput | DescribeSenderIdsCommandInput | DescribeSpendLimitsCommandInput + | DescribeVerifiedDestinationNumbersCommandInput | DisassociateOriginationIdentityCommandInput + | DiscardRegistrationVersionCommandInput | ListPoolOriginationIdentitiesCommandInput + | ListRegistrationAssociationsCommandInput | ListTagsForResourceCommandInput | PutKeywordCommandInput | PutOptedOutNumberCommandInput + | PutRegistrationFieldValueCommandInput | ReleasePhoneNumberCommandInput + | ReleaseSenderIdCommandInput | RequestPhoneNumberCommandInput + | RequestSenderIdCommandInput + | SendDestinationNumberVerificationCodeCommandInput | SendTextMessageCommandInput | SendVoiceMessageCommandInput | SetDefaultMessageTypeCommandInput | SetDefaultSenderIdCommandInput | SetTextMessageSpendLimitOverrideCommandInput | SetVoiceMessageSpendLimitOverrideCommandInput + | SubmitRegistrationVersionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateEventDestinationCommandInput | UpdatePhoneNumberCommandInput - | UpdatePoolCommandInput; + | UpdatePoolCommandInput + | UpdateSenderIdCommandInput + | VerifyDestinationNumberCommandInput; /** * @public @@ -233,6 +348,11 @@ export type ServiceOutputTypes = | CreateEventDestinationCommandOutput | CreateOptOutListCommandOutput | CreatePoolCommandOutput + | CreateRegistrationAssociationCommandOutput + | CreateRegistrationAttachmentCommandOutput + | CreateRegistrationCommandOutput + | CreateRegistrationVersionCommandOutput + | CreateVerifiedDestinationNumberCommandOutput | DeleteConfigurationSetCommandOutput | DeleteDefaultMessageTypeCommandOutput | DeleteDefaultSenderIdCommandOutput @@ -241,7 +361,11 @@ export type ServiceOutputTypes = | DeleteOptOutListCommandOutput | DeleteOptedOutNumberCommandOutput | DeletePoolCommandOutput + | DeleteRegistrationAttachmentCommandOutput + | DeleteRegistrationCommandOutput + | DeleteRegistrationFieldValueCommandOutput | DeleteTextMessageSpendLimitOverrideCommandOutput + | DeleteVerifiedDestinationNumberCommandOutput | DeleteVoiceMessageSpendLimitOverrideCommandOutput | DescribeAccountAttributesCommandOutput | DescribeAccountLimitsCommandOutput @@ -251,26 +375,43 @@ export type ServiceOutputTypes = | DescribeOptedOutNumbersCommandOutput | DescribePhoneNumbersCommandOutput | DescribePoolsCommandOutput + | DescribeRegistrationAttachmentsCommandOutput + | DescribeRegistrationFieldDefinitionsCommandOutput + | DescribeRegistrationFieldValuesCommandOutput + | DescribeRegistrationSectionDefinitionsCommandOutput + | DescribeRegistrationTypeDefinitionsCommandOutput + | DescribeRegistrationVersionsCommandOutput + | DescribeRegistrationsCommandOutput | DescribeSenderIdsCommandOutput | DescribeSpendLimitsCommandOutput + | DescribeVerifiedDestinationNumbersCommandOutput | DisassociateOriginationIdentityCommandOutput + | DiscardRegistrationVersionCommandOutput | ListPoolOriginationIdentitiesCommandOutput + | ListRegistrationAssociationsCommandOutput | ListTagsForResourceCommandOutput | PutKeywordCommandOutput | PutOptedOutNumberCommandOutput + | PutRegistrationFieldValueCommandOutput | ReleasePhoneNumberCommandOutput + | ReleaseSenderIdCommandOutput | RequestPhoneNumberCommandOutput + | RequestSenderIdCommandOutput + | SendDestinationNumberVerificationCodeCommandOutput | SendTextMessageCommandOutput | SendVoiceMessageCommandOutput | SetDefaultMessageTypeCommandOutput | SetDefaultSenderIdCommandOutput | SetTextMessageSpendLimitOverrideCommandOutput | SetVoiceMessageSpendLimitOverrideCommandOutput + | SubmitRegistrationVersionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateEventDestinationCommandOutput | UpdatePhoneNumberCommandOutput - | UpdatePoolCommandOutput; + | UpdatePoolCommandOutput + | UpdateSenderIdCommandOutput + | VerifyDestinationNumberCommandOutput; /** * @public @@ -447,12 +588,12 @@ export interface PinpointSMSVoiceV2ClientResolvedConfig extends PinpointSMSVoice *

Welcome to the Amazon Pinpoint SMS and Voice, version 2 API Reference. * This guide provides information about Amazon Pinpoint SMS and Voice, version 2 API * resources, including supported HTTP methods, parameters, and schemas.

- *

Amazon Pinpoint is an Amazon Web Services service that you can use to engage with + *

Amazon Pinpoint is an Amazon Web Services service that you can use to engage with * your recipients across multiple messaging channels. The Amazon Pinpoint SMS and * Voice, version 2 API provides programmatic access to options that are unique to the SMS * and voice channels and supplements the resources provided by the Amazon Pinpoint * API.

- *

If you're new to Amazon Pinpoint, it's also helpful to review the + *

If you're new to Amazon Pinpoint, it's also helpful to review the * Amazon Pinpoint Developer Guide. The Amazon Pinpoint * Developer Guide provides tutorials, code samples, and procedures that * demonstrate how to use Amazon Pinpoint features programmatically and how to integrate @@ -460,6 +601,25 @@ export interface PinpointSMSVoiceV2ClientResolvedConfig extends PinpointSMSVoice * The guide also provides key information, such as Amazon Pinpoint integration with * other Amazon Web Services services, and the quotas that apply to use of the * service.

+ *

+ * Regional availability + *

+ *

The Amazon Pinpoint SMS and Voice, version 2 API Reference is + * available in several Amazon Web Services Regions and it provides an endpoint for each of + * these Regions. For a list of all the Regions and endpoints where the API is currently + * available, see Amazon Web Services Service Endpoints and Amazon Pinpoint + * endpoints and quotas in the Amazon Web Services General Reference. To + * learn more about Amazon Web Services Regions, see Managing + * Amazon Web Services Regions in the Amazon Web Services General + * Reference.

+ *

In each Region, Amazon Web Services maintains multiple Availability Zones. These + * Availability Zones are physically isolated from each other, but are united by private, + * low-latency, high-throughput, and highly redundant network connections. These + * Availability Zones enable us to provide very high levels of availability and redundancy, + * while also minimizing latency. To learn more about the number of Availability Zones that + * are available in each Region, see Amazon Web Services + * Global Infrastructure. + *

*/ export class PinpointSMSVoiceV2Client extends __Client< __HttpHandlerOptions, diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/AssociateOriginationIdentityCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/AssociateOriginationIdentityCommand.ts index 0d405b8ff9eff..f65fd84cf1ea8 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/AssociateOriginationIdentityCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/AssociateOriginationIdentityCommand.ts @@ -47,10 +47,10 @@ export interface AssociateOriginationIdentityCommandOutput /** * @public *

Associates the specified origination identity with a pool.

- *

If the origination identity is a phone number and is already associated with another - * pool, an Error is returned. A sender ID can be associated with multiple pools.

- *

If the origination identity configuration doesn't match the pool's configuration, an - * Error is returned.

+ *

If the origination identity is a phone number and is already associated with another + * pool, an error is returned. A sender ID can be associated with multiple pools.

+ *

If the origination identity configuration doesn't match the pool's configuration, an + * error is returned.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/CreateConfigurationSetCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateConfigurationSetCommand.ts index 2852fb24d9e6b..3bd01eaea534d 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/CreateConfigurationSetCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateConfigurationSetCommand.ts @@ -43,9 +43,9 @@ export interface CreateConfigurationSetCommandOutput extends CreateConfiguration * @public *

Creates a new configuration set. After you create the configuration set, you can add * one or more event destinations to it.

- *

A configuration set is a set of rules that you apply to the SMS and voice messages + *

A configuration set is a set of rules that you apply to the SMS and voice messages * that you send.

- *

When you send a message, you can optionally specify a single configuration set.

+ *

When you send a message, you can optionally specify a single configuration set.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/CreateEventDestinationCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateEventDestinationCommand.ts index c2d12fd326e89..45233e0ac839f 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/CreateEventDestinationCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateEventDestinationCommand.ts @@ -42,12 +42,12 @@ export interface CreateEventDestinationCommandOutput extends CreateEventDestinat /** * @public *

Creates a new event destination in a configuration set.

- *

An event destination is a location where you send message events. The event options + *

An event destination is a location where you send message events. The event options * are Amazon CloudWatch, Amazon Kinesis Data Firehose, or Amazon SNS. For example, * when a message is delivered successfully, you can send information about that event to * an event destination, or send notifications to endpoints that are subscribed to an * Amazon SNS topic.

- *

Each configuration set can contain between 0 and 5 event destinations. Each event + *

Each configuration set can contain between 0 and 5 event destinations. Each event * destination can contain a reference to a single destination, such as a CloudWatch * or Kinesis Data Firehose destination.

* @example diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/CreateOptOutListCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateOptOutListCommand.ts index df6afee72baa5..a7671be5b6a09 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/CreateOptOutListCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateOptOutListCommand.ts @@ -42,8 +42,8 @@ export interface CreateOptOutListCommandOutput extends CreateOptOutListResult, _ /** * @public *

Creates a new opt-out list.

- *

If the opt-out list name already exists, an Error is returned.

- *

An opt-out list is a list of phone numbers that are opted out, meaning you can't send + *

If the opt-out list name already exists, an error is returned.

+ *

An opt-out list is a list of phone numbers that are opted out, meaning you can't send * SMS or voice messages to them. If end user replies with the keyword "STOP," an entry for * the phone number is added to the opt-out list. In addition to STOP, your recipients can * use any supported opt-out keyword, such as CANCEL or OPTOUT. For a list of supported diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/CreatePoolCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/CreatePoolCommand.ts index e0ca61f7cbe39..71e9e20d50cd3 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/CreatePoolCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/CreatePoolCommand.ts @@ -44,12 +44,12 @@ export interface CreatePoolCommandOutput extends CreatePoolResult, __MetadataBea *

Creates a new pool and associates the specified origination identity to the pool. A * pool can include one or more phone numbers and SenderIds that are associated with your * Amazon Web Services account.

- *

The new pool inherits its configuration from the specified origination identity. This + *

The new pool inherits its configuration from the specified origination identity. This * includes keywords, message type, opt-out list, two-way configuration, and self-managed * opt-out configuration. Deletion protection isn't inherited from the origination identity * and defaults to false.

- *

If the origination identity is a phone number and is already associated with another - * pool, an Error is returned. A sender ID can be associated with multiple pools.

+ *

If the origination identity is a phone number and is already associated with another + * pool, an error is returned. A sender ID can be associated with multiple pools.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -78,6 +78,7 @@ export interface CreatePoolCommandOutput extends CreatePoolResult, __MetadataBea * // MessageType: "STRING_VALUE", * // TwoWayEnabled: true || false, * // TwoWayChannelArn: "STRING_VALUE", + * // TwoWayChannelRole: "STRING_VALUE", * // SelfManagedOptOutsEnabled: true || false, * // OptOutListName: "STRING_VALUE", * // SharedRoutesEnabled: true || false, diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/CreateRegistrationAssociationCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateRegistrationAssociationCommand.ts new file mode 100644 index 0000000000000..fd348a2d4754c --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateRegistrationAssociationCommand.ts @@ -0,0 +1,186 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { CreateRegistrationAssociationRequest, CreateRegistrationAssociationResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_CreateRegistrationAssociationCommand, + se_CreateRegistrationAssociationCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CreateRegistrationAssociationCommand}. + */ +export interface CreateRegistrationAssociationCommandInput extends CreateRegistrationAssociationRequest {} +/** + * @public + * + * The output of {@link CreateRegistrationAssociationCommand}. + */ +export interface CreateRegistrationAssociationCommandOutput + extends CreateRegistrationAssociationResult, + __MetadataBearer {} + +/** + * @public + *

Associate the registration with an origination identity such as a phone number or sender ID.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, CreateRegistrationAssociationCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, CreateRegistrationAssociationCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // CreateRegistrationAssociationRequest + * RegistrationId: "STRING_VALUE", // required + * ResourceId: "STRING_VALUE", // required + * }; + * const command = new CreateRegistrationAssociationCommand(input); + * const response = await client.send(command); + * // { // CreateRegistrationAssociationResult + * // RegistrationArn: "STRING_VALUE", // required + * // RegistrationId: "STRING_VALUE", // required + * // RegistrationType: "STRING_VALUE", // required + * // ResourceArn: "STRING_VALUE", // required + * // ResourceId: "STRING_VALUE", // required + * // ResourceType: "STRING_VALUE", // required + * // IsoCountryCode: "STRING_VALUE", + * // PhoneNumber: "STRING_VALUE", + * // }; + * + * ``` + * + * @param CreateRegistrationAssociationCommandInput - {@link CreateRegistrationAssociationCommandInput} + * @returns {@link CreateRegistrationAssociationCommandOutput} + * @see {@link CreateRegistrationAssociationCommandInput} for command's `input` shape. + * @see {@link CreateRegistrationAssociationCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request would cause a service quota to be exceeded.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class CreateRegistrationAssociationCommand extends $Command< + CreateRegistrationAssociationCommandInput, + CreateRegistrationAssociationCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CreateRegistrationAssociationCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateRegistrationAssociationCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "CreateRegistrationAssociationCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "CreateRegistrationAssociation", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CreateRegistrationAssociationCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CreateRegistrationAssociationCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_CreateRegistrationAssociationCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/CreateRegistrationAttachmentCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateRegistrationAttachmentCommand.ts new file mode 100644 index 0000000000000..cdbe2bbc97d6c --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateRegistrationAttachmentCommand.ts @@ -0,0 +1,192 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { CreateRegistrationAttachmentRequest, CreateRegistrationAttachmentResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_CreateRegistrationAttachmentCommand, + se_CreateRegistrationAttachmentCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CreateRegistrationAttachmentCommand}. + */ +export interface CreateRegistrationAttachmentCommandInput extends CreateRegistrationAttachmentRequest {} +/** + * @public + * + * The output of {@link CreateRegistrationAttachmentCommand}. + */ +export interface CreateRegistrationAttachmentCommandOutput + extends CreateRegistrationAttachmentResult, + __MetadataBearer {} + +/** + * @public + *

Create a new registration attachment to use for uploading a file or a URL to a file. The maximum file size is 1MiB and valid file extensions are PDF, JPEG and PNG. For example, many sender ID registrations require a signed “letter of authorization” (LOA) to be submitted.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, CreateRegistrationAttachmentCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, CreateRegistrationAttachmentCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // CreateRegistrationAttachmentRequest + * AttachmentBody: "BLOB_VALUE", + * AttachmentUrl: "STRING_VALUE", + * Tags: [ // TagList + * { // Tag + * Key: "STRING_VALUE", // required + * Value: "STRING_VALUE", // required + * }, + * ], + * ClientToken: "STRING_VALUE", + * }; + * const command = new CreateRegistrationAttachmentCommand(input); + * const response = await client.send(command); + * // { // CreateRegistrationAttachmentResult + * // RegistrationAttachmentArn: "STRING_VALUE", // required + * // RegistrationAttachmentId: "STRING_VALUE", // required + * // AttachmentStatus: "STRING_VALUE", // required + * // Tags: [ // TagList + * // { // Tag + * // Key: "STRING_VALUE", // required + * // Value: "STRING_VALUE", // required + * // }, + * // ], + * // CreatedTimestamp: new Date("TIMESTAMP"), // required + * // }; + * + * ``` + * + * @param CreateRegistrationAttachmentCommandInput - {@link CreateRegistrationAttachmentCommandInput} + * @returns {@link CreateRegistrationAttachmentCommandOutput} + * @see {@link CreateRegistrationAttachmentCommandInput} for command's `input` shape. + * @see {@link CreateRegistrationAttachmentCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request would cause a service quota to be exceeded.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class CreateRegistrationAttachmentCommand extends $Command< + CreateRegistrationAttachmentCommandInput, + CreateRegistrationAttachmentCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CreateRegistrationAttachmentCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateRegistrationAttachmentCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "CreateRegistrationAttachmentCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "CreateRegistrationAttachment", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CreateRegistrationAttachmentCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CreateRegistrationAttachmentCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_CreateRegistrationAttachmentCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/CreateRegistrationCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateRegistrationCommand.ts new file mode 100644 index 0000000000000..7b8874282199a --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateRegistrationCommand.ts @@ -0,0 +1,188 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { CreateRegistrationRequest, CreateRegistrationResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { de_CreateRegistrationCommand, se_CreateRegistrationCommand } from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CreateRegistrationCommand}. + */ +export interface CreateRegistrationCommandInput extends CreateRegistrationRequest {} +/** + * @public + * + * The output of {@link CreateRegistrationCommand}. + */ +export interface CreateRegistrationCommandOutput extends CreateRegistrationResult, __MetadataBearer {} + +/** + * @public + *

Creates a new registration based on the RegistrationType field.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, CreateRegistrationCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, CreateRegistrationCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // CreateRegistrationRequest + * RegistrationType: "STRING_VALUE", // required + * Tags: [ // TagList + * { // Tag + * Key: "STRING_VALUE", // required + * Value: "STRING_VALUE", // required + * }, + * ], + * ClientToken: "STRING_VALUE", + * }; + * const command = new CreateRegistrationCommand(input); + * const response = await client.send(command); + * // { // CreateRegistrationResult + * // RegistrationArn: "STRING_VALUE", // required + * // RegistrationId: "STRING_VALUE", // required + * // RegistrationType: "STRING_VALUE", // required + * // RegistrationStatus: "STRING_VALUE", // required + * // CurrentVersionNumber: Number("long"), // required + * // AdditionalAttributes: { // StringMap + * // "": "STRING_VALUE", + * // }, + * // Tags: [ // TagList + * // { // Tag + * // Key: "STRING_VALUE", // required + * // Value: "STRING_VALUE", // required + * // }, + * // ], + * // CreatedTimestamp: new Date("TIMESTAMP"), // required + * // }; + * + * ``` + * + * @param CreateRegistrationCommandInput - {@link CreateRegistrationCommandInput} + * @returns {@link CreateRegistrationCommandOutput} + * @see {@link CreateRegistrationCommandInput} for command's `input` shape. + * @see {@link CreateRegistrationCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request would cause a service quota to be exceeded.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class CreateRegistrationCommand extends $Command< + CreateRegistrationCommandInput, + CreateRegistrationCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CreateRegistrationCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateRegistrationCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "CreateRegistrationCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "CreateRegistration", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CreateRegistrationCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CreateRegistrationCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_CreateRegistrationCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/CreateRegistrationVersionCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateRegistrationVersionCommand.ts new file mode 100644 index 0000000000000..379a3f6f2e6c7 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateRegistrationVersionCommand.ts @@ -0,0 +1,186 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { CreateRegistrationVersionRequest, CreateRegistrationVersionResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { de_CreateRegistrationVersionCommand, se_CreateRegistrationVersionCommand } from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CreateRegistrationVersionCommand}. + */ +export interface CreateRegistrationVersionCommandInput extends CreateRegistrationVersionRequest {} +/** + * @public + * + * The output of {@link CreateRegistrationVersionCommand}. + */ +export interface CreateRegistrationVersionCommandOutput extends CreateRegistrationVersionResult, __MetadataBearer {} + +/** + * @public + *

Create a new version of the registration and increase the VersionNumber. The previous version of the registration becomes read-only.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, CreateRegistrationVersionCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, CreateRegistrationVersionCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // CreateRegistrationVersionRequest + * RegistrationId: "STRING_VALUE", // required + * }; + * const command = new CreateRegistrationVersionCommand(input); + * const response = await client.send(command); + * // { // CreateRegistrationVersionResult + * // RegistrationArn: "STRING_VALUE", // required + * // RegistrationId: "STRING_VALUE", // required + * // VersionNumber: Number("long"), // required + * // RegistrationVersionStatus: "STRING_VALUE", // required + * // RegistrationVersionStatusHistory: { // RegistrationVersionStatusHistory + * // DraftTimestamp: new Date("TIMESTAMP"), // required + * // SubmittedTimestamp: new Date("TIMESTAMP"), + * // ReviewingTimestamp: new Date("TIMESTAMP"), + * // ApprovedTimestamp: new Date("TIMESTAMP"), + * // DiscardedTimestamp: new Date("TIMESTAMP"), + * // DeniedTimestamp: new Date("TIMESTAMP"), + * // RevokedTimestamp: new Date("TIMESTAMP"), + * // ArchivedTimestamp: new Date("TIMESTAMP"), + * // }, + * // }; + * + * ``` + * + * @param CreateRegistrationVersionCommandInput - {@link CreateRegistrationVersionCommandInput} + * @returns {@link CreateRegistrationVersionCommandOutput} + * @see {@link CreateRegistrationVersionCommandInput} for command's `input` shape. + * @see {@link CreateRegistrationVersionCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request would cause a service quota to be exceeded.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class CreateRegistrationVersionCommand extends $Command< + CreateRegistrationVersionCommandInput, + CreateRegistrationVersionCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CreateRegistrationVersionCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateRegistrationVersionCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "CreateRegistrationVersionCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "CreateRegistrationVersion", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CreateRegistrationVersionCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CreateRegistrationVersionCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_CreateRegistrationVersionCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/CreateVerifiedDestinationNumberCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateVerifiedDestinationNumberCommand.ts new file mode 100644 index 0000000000000..37320273ed034 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/CreateVerifiedDestinationNumberCommand.ts @@ -0,0 +1,196 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { CreateVerifiedDestinationNumberRequest, CreateVerifiedDestinationNumberResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_CreateVerifiedDestinationNumberCommand, + se_CreateVerifiedDestinationNumberCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CreateVerifiedDestinationNumberCommand}. + */ +export interface CreateVerifiedDestinationNumberCommandInput extends CreateVerifiedDestinationNumberRequest {} +/** + * @public + * + * The output of {@link CreateVerifiedDestinationNumberCommand}. + */ +export interface CreateVerifiedDestinationNumberCommandOutput + extends CreateVerifiedDestinationNumberResult, + __MetadataBearer {} + +/** + * @public + *

You can only send messages to verified destination numbers when your account is in the sandbox. You can add up to 10 verified destination + * numbers.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, CreateVerifiedDestinationNumberCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, CreateVerifiedDestinationNumberCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // CreateVerifiedDestinationNumberRequest + * DestinationPhoneNumber: "STRING_VALUE", // required + * Tags: [ // TagList + * { // Tag + * Key: "STRING_VALUE", // required + * Value: "STRING_VALUE", // required + * }, + * ], + * ClientToken: "STRING_VALUE", + * }; + * const command = new CreateVerifiedDestinationNumberCommand(input); + * const response = await client.send(command); + * // { // CreateVerifiedDestinationNumberResult + * // VerifiedDestinationNumberArn: "STRING_VALUE", // required + * // VerifiedDestinationNumberId: "STRING_VALUE", // required + * // DestinationPhoneNumber: "STRING_VALUE", // required + * // Status: "STRING_VALUE", // required + * // Tags: [ // TagList + * // { // Tag + * // Key: "STRING_VALUE", // required + * // Value: "STRING_VALUE", // required + * // }, + * // ], + * // CreatedTimestamp: new Date("TIMESTAMP"), // required + * // }; + * + * ``` + * + * @param CreateVerifiedDestinationNumberCommandInput - {@link CreateVerifiedDestinationNumberCommandInput} + * @returns {@link CreateVerifiedDestinationNumberCommandOutput} + * @see {@link CreateVerifiedDestinationNumberCommandInput} for command's `input` shape. + * @see {@link CreateVerifiedDestinationNumberCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request would cause a service quota to be exceeded.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class CreateVerifiedDestinationNumberCommand extends $Command< + CreateVerifiedDestinationNumberCommandInput, + CreateVerifiedDestinationNumberCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CreateVerifiedDestinationNumberCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateVerifiedDestinationNumberCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "CreateVerifiedDestinationNumberCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "CreateVerifiedDestinationNumber", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize( + input: CreateVerifiedDestinationNumberCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return se_CreateVerifiedDestinationNumberCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_CreateVerifiedDestinationNumberCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteConfigurationSetCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteConfigurationSetCommand.ts index 3998b7e59d1af..d9cfe3698bb7f 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteConfigurationSetCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteConfigurationSetCommand.ts @@ -42,7 +42,7 @@ export interface DeleteConfigurationSetCommandOutput extends DeleteConfiguration /** * @public *

Deletes an existing configuration set.

- *

A configuration set is a set of rules that you apply to voice and SMS messages that + *

A configuration set is a set of rules that you apply to voice and SMS messages that * you send. In a configuration set, you can specify a destination for specific types of * events related to voice and SMS messages.

* @example diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteDefaultMessageTypeCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteDefaultMessageTypeCommand.ts index 74eb851354665..740d1bcb29dd2 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteDefaultMessageTypeCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteDefaultMessageTypeCommand.ts @@ -42,7 +42,7 @@ export interface DeleteDefaultMessageTypeCommandOutput extends DeleteDefaultMess /** * @public *

Deletes an existing default message type on a configuration set.

- *

A message type is a type of messages that you plan to send. If you send + *

A message type is a type of messages that you plan to send. If you send * account-related messages or time-sensitive messages such as one-time passcodes, choose * Transactional. If you plan to send messages that * contain marketing material or other promotional content, choose Promotional. This setting applies to your entire Amazon Web Services diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteDefaultSenderIdCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteDefaultSenderIdCommand.ts index 181dd4e5a2bd7..f1c36f863b667 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteDefaultSenderIdCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteDefaultSenderIdCommand.ts @@ -42,7 +42,7 @@ export interface DeleteDefaultSenderIdCommandOutput extends DeleteDefaultSenderI /** * @public *

Deletes an existing default sender ID on a configuration set.

- *

A default sender ID is the identity that appears on recipients' devices when they + *

A default sender ID is the identity that appears on recipients' devices when they * receive SMS messages. Support for sender ID capabilities varies by country or * region.

* @example diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteEventDestinationCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteEventDestinationCommand.ts index edb0d3b320d5d..969e03a8e7d7d 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteEventDestinationCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteEventDestinationCommand.ts @@ -42,7 +42,7 @@ export interface DeleteEventDestinationCommandOutput extends DeleteEventDestinat /** * @public *

Deletes an existing event destination.

- *

An event destination is a location where you send response information about the + *

An event destination is a location where you send response information about the * messages that you send. For example, when a message is delivered successfully, you can * send information about that event to an Amazon CloudWatch destination, or send * notifications to endpoints that are subscribed to an Amazon SNS topic.

diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteKeywordCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteKeywordCommand.ts index ee0476fa3932f..bd9400df1b223 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteKeywordCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteKeywordCommand.ts @@ -42,12 +42,12 @@ export interface DeleteKeywordCommandOutput extends DeleteKeywordResult, __Metad /** * @public *

Deletes an existing keyword from an origination phone number or pool.

- *

A keyword is a word that you can search for on a particular phone number or pool. It + *

A keyword is a word that you can search for on a particular phone number or pool. It * is also a specific word or phrase that an end user can send to your number to elicit a * response, such as an informational message or a special offer. When your number receives * a message that begins with a keyword, Amazon Pinpoint responds with a customizable * message.

- *

Keywords "HELP" and "STOP" can't be deleted or modified.

+ *

Keywords "HELP" and "STOP" can't be deleted or modified.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteOptOutListCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteOptOutListCommand.ts index 7ebb9009de433..d495b4081b1af 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteOptOutListCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteOptOutListCommand.ts @@ -43,8 +43,8 @@ export interface DeleteOptOutListCommandOutput extends DeleteOptOutListResult, _ * @public *

Deletes an existing opt-out list. All opted out phone numbers in the opt-out list are * deleted.

- *

If the specified opt-out list name doesn't exist or is in-use by an origination phone - * number or pool, an Error is returned.

+ *

If the specified opt-out list name doesn't exist or is in-use by an origination phone + * number or pool, an error is returned.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteOptedOutNumberCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteOptedOutNumberCommand.ts index 11926f5656acd..a041e27186ac8 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteOptedOutNumberCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteOptedOutNumberCommand.ts @@ -43,9 +43,9 @@ export interface DeleteOptedOutNumberCommandOutput extends DeleteOptedOutNumberR * @public *

Deletes an existing opted out destination phone number from the specified opt-out * list.

- *

Each destination phone number can only be deleted once every 30 days.

- *

If the specified destination phone number doesn't exist or if the opt-out list doesn't - * exist, an Error is returned.

+ *

Each destination phone number can only be deleted once every 30 days.

+ *

If the specified destination phone number doesn't exist or if the opt-out list doesn't + * exist, an error is returned.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DeletePoolCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DeletePoolCommand.ts index 9142de2e84172..65fe4c637b62a 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DeletePoolCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DeletePoolCommand.ts @@ -43,9 +43,9 @@ export interface DeletePoolCommandOutput extends DeletePoolResult, __MetadataBea * @public *

Deletes an existing pool. Deleting a pool disassociates all origination identities * from that pool.

- *

If the pool status isn't active or if deletion protection is enabled, an Error is + *

If the pool status isn't active or if deletion protection is enabled, an error is * returned.

- *

A pool is a collection of phone numbers and SenderIds. A pool can include one or more + *

A pool is a collection of phone numbers and SenderIds. A pool can include one or more * phone numbers and SenderIds that are associated with your Amazon Web Services * account.

* @example @@ -66,6 +66,7 @@ export interface DeletePoolCommandOutput extends DeletePoolResult, __MetadataBea * // MessageType: "STRING_VALUE", * // TwoWayEnabled: true || false, * // TwoWayChannelArn: "STRING_VALUE", + * // TwoWayChannelRole: "STRING_VALUE", * // SelfManagedOptOutsEnabled: true || false, * // OptOutListName: "STRING_VALUE", * // SharedRoutesEnabled: true || false, diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteRegistrationAttachmentCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteRegistrationAttachmentCommand.ts new file mode 100644 index 0000000000000..5043dd3d2337b --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteRegistrationAttachmentCommand.ts @@ -0,0 +1,179 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { DeleteRegistrationAttachmentRequest, DeleteRegistrationAttachmentResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_DeleteRegistrationAttachmentCommand, + se_DeleteRegistrationAttachmentCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeleteRegistrationAttachmentCommand}. + */ +export interface DeleteRegistrationAttachmentCommandInput extends DeleteRegistrationAttachmentRequest {} +/** + * @public + * + * The output of {@link DeleteRegistrationAttachmentCommand}. + */ +export interface DeleteRegistrationAttachmentCommandOutput + extends DeleteRegistrationAttachmentResult, + __MetadataBearer {} + +/** + * @public + *

Permanently delete the specified registration attachment.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DeleteRegistrationAttachmentCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DeleteRegistrationAttachmentCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DeleteRegistrationAttachmentRequest + * RegistrationAttachmentId: "STRING_VALUE", // required + * }; + * const command = new DeleteRegistrationAttachmentCommand(input); + * const response = await client.send(command); + * // { // DeleteRegistrationAttachmentResult + * // RegistrationAttachmentArn: "STRING_VALUE", // required + * // RegistrationAttachmentId: "STRING_VALUE", // required + * // AttachmentStatus: "STRING_VALUE", // required + * // AttachmentUploadErrorReason: "STRING_VALUE", + * // CreatedTimestamp: new Date("TIMESTAMP"), // required + * // }; + * + * ``` + * + * @param DeleteRegistrationAttachmentCommandInput - {@link DeleteRegistrationAttachmentCommandInput} + * @returns {@link DeleteRegistrationAttachmentCommandOutput} + * @see {@link DeleteRegistrationAttachmentCommandInput} for command's `input` shape. + * @see {@link DeleteRegistrationAttachmentCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class DeleteRegistrationAttachmentCommand extends $Command< + DeleteRegistrationAttachmentCommandInput, + DeleteRegistrationAttachmentCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DeleteRegistrationAttachmentCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteRegistrationAttachmentCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "DeleteRegistrationAttachmentCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "DeleteRegistrationAttachment", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DeleteRegistrationAttachmentCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DeleteRegistrationAttachmentCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DeleteRegistrationAttachmentCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteRegistrationCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteRegistrationCommand.ts new file mode 100644 index 0000000000000..1e5c5fa9dd811 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteRegistrationCommand.ts @@ -0,0 +1,177 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { DeleteRegistrationRequest, DeleteRegistrationResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { de_DeleteRegistrationCommand, se_DeleteRegistrationCommand } from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeleteRegistrationCommand}. + */ +export interface DeleteRegistrationCommandInput extends DeleteRegistrationRequest {} +/** + * @public + * + * The output of {@link DeleteRegistrationCommand}. + */ +export interface DeleteRegistrationCommandOutput extends DeleteRegistrationResult, __MetadataBearer {} + +/** + * @public + *

Permanently delete an existing registration from your account.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DeleteRegistrationCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DeleteRegistrationCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DeleteRegistrationRequest + * RegistrationId: "STRING_VALUE", // required + * }; + * const command = new DeleteRegistrationCommand(input); + * const response = await client.send(command); + * // { // DeleteRegistrationResult + * // RegistrationArn: "STRING_VALUE", // required + * // RegistrationId: "STRING_VALUE", // required + * // RegistrationType: "STRING_VALUE", // required + * // RegistrationStatus: "STRING_VALUE", // required + * // CurrentVersionNumber: Number("long"), // required + * // ApprovedVersionNumber: Number("long"), + * // LatestDeniedVersionNumber: Number("long"), + * // AdditionalAttributes: { // StringMap + * // "": "STRING_VALUE", + * // }, + * // CreatedTimestamp: new Date("TIMESTAMP"), // required + * // }; + * + * ``` + * + * @param DeleteRegistrationCommandInput - {@link DeleteRegistrationCommandInput} + * @returns {@link DeleteRegistrationCommandOutput} + * @see {@link DeleteRegistrationCommandInput} for command's `input` shape. + * @see {@link DeleteRegistrationCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class DeleteRegistrationCommand extends $Command< + DeleteRegistrationCommandInput, + DeleteRegistrationCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DeleteRegistrationCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteRegistrationCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "DeleteRegistrationCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "DeleteRegistration", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DeleteRegistrationCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DeleteRegistrationCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_DeleteRegistrationCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteRegistrationFieldValueCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteRegistrationFieldValueCommand.ts new file mode 100644 index 0000000000000..0059fad67c65b --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteRegistrationFieldValueCommand.ts @@ -0,0 +1,184 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { DeleteRegistrationFieldValueRequest, DeleteRegistrationFieldValueResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_DeleteRegistrationFieldValueCommand, + se_DeleteRegistrationFieldValueCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeleteRegistrationFieldValueCommand}. + */ +export interface DeleteRegistrationFieldValueCommandInput extends DeleteRegistrationFieldValueRequest {} +/** + * @public + * + * The output of {@link DeleteRegistrationFieldValueCommand}. + */ +export interface DeleteRegistrationFieldValueCommandOutput + extends DeleteRegistrationFieldValueResult, + __MetadataBearer {} + +/** + * @public + *

Delete the value in a registration form field.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DeleteRegistrationFieldValueCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DeleteRegistrationFieldValueCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DeleteRegistrationFieldValueRequest + * RegistrationId: "STRING_VALUE", // required + * FieldPath: "STRING_VALUE", // required + * }; + * const command = new DeleteRegistrationFieldValueCommand(input); + * const response = await client.send(command); + * // { // DeleteRegistrationFieldValueResult + * // RegistrationArn: "STRING_VALUE", // required + * // RegistrationId: "STRING_VALUE", // required + * // VersionNumber: Number("long"), // required + * // FieldPath: "STRING_VALUE", // required + * // SelectChoices: [ // SelectChoiceList + * // "STRING_VALUE", + * // ], + * // TextValue: "STRING_VALUE", + * // RegistrationAttachmentId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DeleteRegistrationFieldValueCommandInput - {@link DeleteRegistrationFieldValueCommandInput} + * @returns {@link DeleteRegistrationFieldValueCommandOutput} + * @see {@link DeleteRegistrationFieldValueCommandInput} for command's `input` shape. + * @see {@link DeleteRegistrationFieldValueCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class DeleteRegistrationFieldValueCommand extends $Command< + DeleteRegistrationFieldValueCommandInput, + DeleteRegistrationFieldValueCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DeleteRegistrationFieldValueCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteRegistrationFieldValueCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "DeleteRegistrationFieldValueCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "DeleteRegistrationFieldValue", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DeleteRegistrationFieldValueCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DeleteRegistrationFieldValueCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DeleteRegistrationFieldValueCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteVerifiedDestinationNumberCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteVerifiedDestinationNumberCommand.ts new file mode 100644 index 0000000000000..2033227a723c3 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DeleteVerifiedDestinationNumberCommand.ts @@ -0,0 +1,181 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { DeleteVerifiedDestinationNumberRequest, DeleteVerifiedDestinationNumberResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_DeleteVerifiedDestinationNumberCommand, + se_DeleteVerifiedDestinationNumberCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeleteVerifiedDestinationNumberCommand}. + */ +export interface DeleteVerifiedDestinationNumberCommandInput extends DeleteVerifiedDestinationNumberRequest {} +/** + * @public + * + * The output of {@link DeleteVerifiedDestinationNumberCommand}. + */ +export interface DeleteVerifiedDestinationNumberCommandOutput + extends DeleteVerifiedDestinationNumberResult, + __MetadataBearer {} + +/** + * @public + *

Delete a verified destination phone number.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DeleteVerifiedDestinationNumberCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DeleteVerifiedDestinationNumberCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DeleteVerifiedDestinationNumberRequest + * VerifiedDestinationNumberId: "STRING_VALUE", // required + * }; + * const command = new DeleteVerifiedDestinationNumberCommand(input); + * const response = await client.send(command); + * // { // DeleteVerifiedDestinationNumberResult + * // VerifiedDestinationNumberArn: "STRING_VALUE", // required + * // VerifiedDestinationNumberId: "STRING_VALUE", // required + * // DestinationPhoneNumber: "STRING_VALUE", // required + * // CreatedTimestamp: new Date("TIMESTAMP"), // required + * // }; + * + * ``` + * + * @param DeleteVerifiedDestinationNumberCommandInput - {@link DeleteVerifiedDestinationNumberCommandInput} + * @returns {@link DeleteVerifiedDestinationNumberCommandOutput} + * @see {@link DeleteVerifiedDestinationNumberCommandInput} for command's `input` shape. + * @see {@link DeleteVerifiedDestinationNumberCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class DeleteVerifiedDestinationNumberCommand extends $Command< + DeleteVerifiedDestinationNumberCommandInput, + DeleteVerifiedDestinationNumberCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DeleteVerifiedDestinationNumberCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteVerifiedDestinationNumberCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "DeleteVerifiedDestinationNumberCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "DeleteVerifiedDestinationNumber", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize( + input: DeleteVerifiedDestinationNumberCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return se_DeleteVerifiedDestinationNumberCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DeleteVerifiedDestinationNumberCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeAccountAttributesCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeAccountAttributesCommand.ts index 3ec460e13946f..560b4dce04fed 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeAccountAttributesCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeAccountAttributesCommand.ts @@ -45,7 +45,7 @@ export interface DescribeAccountAttributesCommandOutput extends DescribeAccountA * attributes include account tier, which indicates whether your account is in the sandbox * or production environment. When you're ready to move your account out of the sandbox, * create an Amazon Web Services Support case for a service limit increase request.

- *

New Amazon Pinpoint accounts are placed into an SMS or voice sandbox. The sandbox + *

New Amazon Pinpoint accounts are placed into an SMS or voice sandbox. The sandbox * protects both Amazon Web Services end recipients and SMS or voice recipients from fraud * and abuse.

* @example diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeAccountLimitsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeAccountLimitsCommand.ts index dc847b796c8d1..6a61f9f38cb44 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeAccountLimitsCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeAccountLimitsCommand.ts @@ -44,7 +44,7 @@ export interface DescribeAccountLimitsCommandOutput extends DescribeAccountLimit *

Describes the current Amazon Pinpoint SMS Voice V2 resource quotas for your * account. The description for a quota includes the quota name, current usage toward that * quota, and the quota's maximum value.

- *

When you establish an Amazon Web Services account, the account has initial quotas on + *

When you establish an Amazon Web Services account, the account has initial quotas on * the maximum number of configuration sets, opt-out lists, phone numbers, and pools that * you can create in a given Region. For more information see * Amazon Pinpoint quotas in the Amazon Pinpoint Developer diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeConfigurationSetsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeConfigurationSetsCommand.ts index 6bdbd87d6df67..483dfb3b5ec2d 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeConfigurationSetsCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeConfigurationSetsCommand.ts @@ -42,12 +42,12 @@ export interface DescribeConfigurationSetsCommandOutput extends DescribeConfigur /** * @public *

Describes the specified configuration sets or all in your account.

- *

If you specify configuration set names, the output includes information for only the + *

If you specify configuration set names, the output includes information for only the * specified configuration sets. If you specify filters, the output includes information * for only those configuration sets that meet the filter criteria. If you don't specify * configuration set names or filters, the output includes information for all * configuration sets.

- *

If you specify a configuration set name that isn't valid, an error is returned.

+ *

If you specify a configuration set name that isn't valid, an error is returned.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeKeywordsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeKeywordsCommand.ts index 5310e3e03db71..fca229bef5f1b 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeKeywordsCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeKeywordsCommand.ts @@ -43,12 +43,12 @@ export interface DescribeKeywordsCommandOutput extends DescribeKeywordsResult, _ * @public *

Describes the specified keywords or all keywords on your origination phone number or * pool.

- *

A keyword is a word that you can search for on a particular phone number or pool. It + *

A keyword is a word that you can search for on a particular phone number or pool. It * is also a specific word or phrase that an end user can send to your number to elicit a * response, such as an informational message or a special offer. When your number receives * a message that begins with a keyword, Amazon Pinpoint responds with a customizable * message.

- *

If you specify a keyword that isn't valid, an Error is returned.

+ *

If you specify a keyword that isn't valid, an error is returned.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeOptOutListsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeOptOutListsCommand.ts index 68b69506ac8d2..025bbae80cd33 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeOptOutListsCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeOptOutListsCommand.ts @@ -42,11 +42,11 @@ export interface DescribeOptOutListsCommandOutput extends DescribeOptOutListsRes /** * @public *

Describes the specified opt-out list or all opt-out lists in your account.

- *

If you specify opt-out list names, the output includes information for only the + *

If you specify opt-out list names, the output includes information for only the * specified opt-out lists. Opt-out lists include only those that meet the filter criteria. * If you don't specify opt-out list names or filters, the output includes information for * all opt-out lists.

- *

If you specify an opt-out list name that isn't valid, an Error is returned.

+ *

If you specify an opt-out list name that isn't valid, an error is returned.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeOptedOutNumbersCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeOptedOutNumbersCommand.ts index 11017c9361d6b..051a16a28ee50 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeOptedOutNumbersCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeOptedOutNumbersCommand.ts @@ -43,12 +43,12 @@ export interface DescribeOptedOutNumbersCommandOutput extends DescribeOptedOutNu * @public *

Describes the specified opted out destination numbers or all opted out destination * numbers in an opt-out list.

- *

If you specify opted out numbers, the output includes information for only the + *

If you specify opted out numbers, the output includes information for only the * specified opted out numbers. If you specify filters, the output includes information for * only those opted out numbers that meet the filter criteria. If you don't specify opted * out numbers or filters, the output includes information for all opted out destination * numbers in your opt-out list.

- *

If you specify an opted out number that isn't valid, an Error is returned.

+ *

If you specify an opted out number that isn't valid, an error is returned.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribePhoneNumbersCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribePhoneNumbersCommand.ts index 651c76f649e0c..3ff3299e140d2 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribePhoneNumbersCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribePhoneNumbersCommand.ts @@ -43,11 +43,11 @@ export interface DescribePhoneNumbersCommandOutput extends DescribePhoneNumbersR * @public *

Describes the specified origination phone number, or all the phone numbers in your * account.

- *

If you specify phone number IDs, the output includes information for only the + *

If you specify phone number IDs, the output includes information for only the * specified phone numbers. If you specify filters, the output includes information for * only those phone numbers that meet the filter criteria. If you don't specify phone * number IDs or filters, the output includes information for all phone numbers.

- *

If you specify a phone number ID that isn't valid, an Error is returned.

+ *

If you specify a phone number ID that isn't valid, an error is returned.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -87,10 +87,12 @@ export interface DescribePhoneNumbersCommandOutput extends DescribePhoneNumbersR * // MonthlyLeasingPrice: "STRING_VALUE", // required * // TwoWayEnabled: true || false, // required * // TwoWayChannelArn: "STRING_VALUE", + * // TwoWayChannelRole: "STRING_VALUE", * // SelfManagedOptOutsEnabled: true || false, // required * // OptOutListName: "STRING_VALUE", // required * // DeletionProtectionEnabled: true || false, // required * // PoolId: "STRING_VALUE", + * // RegistrationId: "STRING_VALUE", * // CreatedTimestamp: new Date("TIMESTAMP"), // required * // }, * // ], diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribePoolsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribePoolsCommand.ts index 5a6f01e4f07d4..0766ef9dbe441 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribePoolsCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribePoolsCommand.ts @@ -43,12 +43,12 @@ export interface DescribePoolsCommandOutput extends DescribePoolsResult, __Metad * @public *

Retrieves the specified pools or all pools associated with your Amazon Web Services * account.

- *

If you specify pool IDs, the output includes information for only the specified pools. + *

If you specify pool IDs, the output includes information for only the specified pools. * If you specify filters, the output includes information for only those pools that meet * the filter criteria. If you don't specify pool IDs or filters, the output includes * information for all pools.

- *

If you specify a pool ID that isn't valid, an Error is returned.

- *

A pool is a collection of phone numbers and SenderIds. A pool can include one or more + *

If you specify a pool ID that isn't valid, an error is returned.

+ *

A pool is a collection of phone numbers and SenderIds. A pool can include one or more * phone numbers and SenderIds that are associated with your Amazon Web Services * account.

* @example @@ -83,6 +83,7 @@ export interface DescribePoolsCommandOutput extends DescribePoolsResult, __Metad * // MessageType: "STRING_VALUE", // required * // TwoWayEnabled: true || false, // required * // TwoWayChannelArn: "STRING_VALUE", + * // TwoWayChannelRole: "STRING_VALUE", * // SelfManagedOptOutsEnabled: true || false, // required * // OptOutListName: "STRING_VALUE", // required * // SharedRoutesEnabled: true || false, // required diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationAttachmentsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationAttachmentsCommand.ts new file mode 100644 index 0000000000000..d03c42315765b --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationAttachmentsCommand.ts @@ -0,0 +1,193 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { DescribeRegistrationAttachmentsRequest, DescribeRegistrationAttachmentsResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_DescribeRegistrationAttachmentsCommand, + se_DescribeRegistrationAttachmentsCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DescribeRegistrationAttachmentsCommand}. + */ +export interface DescribeRegistrationAttachmentsCommandInput extends DescribeRegistrationAttachmentsRequest {} +/** + * @public + * + * The output of {@link DescribeRegistrationAttachmentsCommand}. + */ +export interface DescribeRegistrationAttachmentsCommandOutput + extends DescribeRegistrationAttachmentsResult, + __MetadataBearer {} + +/** + * @public + *

Retrieves the specified registration attachments or all registration attachments associated with your Amazon Web Services account.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DescribeRegistrationAttachmentsCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DescribeRegistrationAttachmentsCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DescribeRegistrationAttachmentsRequest + * RegistrationAttachmentIds: [ // RegistrationAttachmentIdList + * "STRING_VALUE", + * ], + * Filters: [ // RegistrationAttachmentFilterList + * { // RegistrationAttachmentFilter + * Name: "STRING_VALUE", // required + * Values: [ // FilterValueList // required + * "STRING_VALUE", + * ], + * }, + * ], + * NextToken: "STRING_VALUE", + * MaxResults: Number("int"), + * }; + * const command = new DescribeRegistrationAttachmentsCommand(input); + * const response = await client.send(command); + * // { // DescribeRegistrationAttachmentsResult + * // RegistrationAttachments: [ // RegistrationAttachmentsInformationList // required + * // { // RegistrationAttachmentsInformation + * // RegistrationAttachmentArn: "STRING_VALUE", // required + * // RegistrationAttachmentId: "STRING_VALUE", // required + * // AttachmentStatus: "STRING_VALUE", // required + * // AttachmentUploadErrorReason: "STRING_VALUE", + * // CreatedTimestamp: new Date("TIMESTAMP"), // required + * // }, + * // ], + * // NextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DescribeRegistrationAttachmentsCommandInput - {@link DescribeRegistrationAttachmentsCommandInput} + * @returns {@link DescribeRegistrationAttachmentsCommandOutput} + * @see {@link DescribeRegistrationAttachmentsCommandInput} for command's `input` shape. + * @see {@link DescribeRegistrationAttachmentsCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class DescribeRegistrationAttachmentsCommand extends $Command< + DescribeRegistrationAttachmentsCommandInput, + DescribeRegistrationAttachmentsCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DescribeRegistrationAttachmentsCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeRegistrationAttachmentsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "DescribeRegistrationAttachmentsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "DescribeRegistrationAttachments", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize( + input: DescribeRegistrationAttachmentsCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return se_DescribeRegistrationAttachmentsCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DescribeRegistrationAttachmentsCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationFieldDefinitionsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationFieldDefinitionsCommand.ts new file mode 100644 index 0000000000000..a675cf4df79b8 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationFieldDefinitionsCommand.ts @@ -0,0 +1,215 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { + DescribeRegistrationFieldDefinitionsRequest, + DescribeRegistrationFieldDefinitionsResult, +} from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_DescribeRegistrationFieldDefinitionsCommand, + se_DescribeRegistrationFieldDefinitionsCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DescribeRegistrationFieldDefinitionsCommand}. + */ +export interface DescribeRegistrationFieldDefinitionsCommandInput extends DescribeRegistrationFieldDefinitionsRequest {} +/** + * @public + * + * The output of {@link DescribeRegistrationFieldDefinitionsCommand}. + */ +export interface DescribeRegistrationFieldDefinitionsCommandOutput + extends DescribeRegistrationFieldDefinitionsResult, + __MetadataBearer {} + +/** + * @public + *

Retrieves the specified registration type field definitions. You can use DescribeRegistrationFieldDefinitions to view the requirements for creating, filling out, and submitting each registration type.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DescribeRegistrationFieldDefinitionsCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DescribeRegistrationFieldDefinitionsCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DescribeRegistrationFieldDefinitionsRequest + * RegistrationType: "STRING_VALUE", // required + * SectionPath: "STRING_VALUE", + * FieldPaths: [ // FieldPathList + * "STRING_VALUE", + * ], + * NextToken: "STRING_VALUE", + * MaxResults: Number("int"), + * }; + * const command = new DescribeRegistrationFieldDefinitionsCommand(input); + * const response = await client.send(command); + * // { // DescribeRegistrationFieldDefinitionsResult + * // RegistrationType: "STRING_VALUE", // required + * // RegistrationFieldDefinitions: [ // RegistrationFieldDefinitionList // required + * // { // RegistrationFieldDefinition + * // SectionPath: "STRING_VALUE", // required + * // FieldPath: "STRING_VALUE", // required + * // FieldType: "STRING_VALUE", // required + * // FieldRequirement: "STRING_VALUE", // required + * // SelectValidation: { // SelectValidation + * // MinChoices: Number("int"), // required + * // MaxChoices: Number("int"), // required + * // Options: [ // StringList // required + * // "STRING_VALUE", + * // ], + * // }, + * // TextValidation: { // TextValidation + * // MinLength: Number("int"), // required + * // MaxLength: Number("int"), // required + * // Pattern: "STRING_VALUE", // required + * // }, + * // DisplayHints: { // RegistrationFieldDisplayHints + * // Title: "STRING_VALUE", // required + * // ShortDescription: "STRING_VALUE", // required + * // LongDescription: "STRING_VALUE", + * // DocumentationTitle: "STRING_VALUE", + * // DocumentationLink: "STRING_VALUE", + * // SelectOptionDescriptions: [ // SelectOptionDescriptionsList + * // { // SelectOptionDescription + * // Option: "STRING_VALUE", // required + * // Title: "STRING_VALUE", + * // Description: "STRING_VALUE", + * // }, + * // ], + * // TextValidationDescription: "STRING_VALUE", + * // ExampleTextValue: "STRING_VALUE", + * // }, + * // }, + * // ], + * // NextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DescribeRegistrationFieldDefinitionsCommandInput - {@link DescribeRegistrationFieldDefinitionsCommandInput} + * @returns {@link DescribeRegistrationFieldDefinitionsCommandOutput} + * @see {@link DescribeRegistrationFieldDefinitionsCommandInput} for command's `input` shape. + * @see {@link DescribeRegistrationFieldDefinitionsCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class DescribeRegistrationFieldDefinitionsCommand extends $Command< + DescribeRegistrationFieldDefinitionsCommandInput, + DescribeRegistrationFieldDefinitionsCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DescribeRegistrationFieldDefinitionsCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeRegistrationFieldDefinitionsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "DescribeRegistrationFieldDefinitionsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "DescribeRegistrationFieldDefinitions", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize( + input: DescribeRegistrationFieldDefinitionsCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return se_DescribeRegistrationFieldDefinitionsCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DescribeRegistrationFieldDefinitionsCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationFieldValuesCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationFieldValuesCommand.ts new file mode 100644 index 0000000000000..de914ba9b44a1 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationFieldValuesCommand.ts @@ -0,0 +1,193 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { DescribeRegistrationFieldValuesRequest, DescribeRegistrationFieldValuesResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_DescribeRegistrationFieldValuesCommand, + se_DescribeRegistrationFieldValuesCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DescribeRegistrationFieldValuesCommand}. + */ +export interface DescribeRegistrationFieldValuesCommandInput extends DescribeRegistrationFieldValuesRequest {} +/** + * @public + * + * The output of {@link DescribeRegistrationFieldValuesCommand}. + */ +export interface DescribeRegistrationFieldValuesCommandOutput + extends DescribeRegistrationFieldValuesResult, + __MetadataBearer {} + +/** + * @public + *

Retrieves the specified registration field values.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DescribeRegistrationFieldValuesCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DescribeRegistrationFieldValuesCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DescribeRegistrationFieldValuesRequest + * RegistrationId: "STRING_VALUE", // required + * VersionNumber: Number("long"), + * SectionPath: "STRING_VALUE", + * FieldPaths: [ // FieldPathList + * "STRING_VALUE", + * ], + * NextToken: "STRING_VALUE", + * MaxResults: Number("int"), + * }; + * const command = new DescribeRegistrationFieldValuesCommand(input); + * const response = await client.send(command); + * // { // DescribeRegistrationFieldValuesResult + * // RegistrationArn: "STRING_VALUE", // required + * // RegistrationId: "STRING_VALUE", // required + * // VersionNumber: Number("long"), // required + * // RegistrationFieldValues: [ // RegistrationFieldValueInformationList // required + * // { // RegistrationFieldValueInformation + * // FieldPath: "STRING_VALUE", // required + * // SelectChoices: [ // SelectChoiceList + * // "STRING_VALUE", + * // ], + * // TextValue: "STRING_VALUE", + * // RegistrationAttachmentId: "STRING_VALUE", + * // DeniedReason: "STRING_VALUE", + * // }, + * // ], + * // NextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DescribeRegistrationFieldValuesCommandInput - {@link DescribeRegistrationFieldValuesCommandInput} + * @returns {@link DescribeRegistrationFieldValuesCommandOutput} + * @see {@link DescribeRegistrationFieldValuesCommandInput} for command's `input` shape. + * @see {@link DescribeRegistrationFieldValuesCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class DescribeRegistrationFieldValuesCommand extends $Command< + DescribeRegistrationFieldValuesCommandInput, + DescribeRegistrationFieldValuesCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DescribeRegistrationFieldValuesCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeRegistrationFieldValuesCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "DescribeRegistrationFieldValuesCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "DescribeRegistrationFieldValues", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize( + input: DescribeRegistrationFieldValuesCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return se_DescribeRegistrationFieldValuesCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DescribeRegistrationFieldValuesCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationSectionDefinitionsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationSectionDefinitionsCommand.ts new file mode 100644 index 0000000000000..f4e10488de3ef --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationSectionDefinitionsCommand.ts @@ -0,0 +1,191 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { + DescribeRegistrationSectionDefinitionsRequest, + DescribeRegistrationSectionDefinitionsResult, +} from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_DescribeRegistrationSectionDefinitionsCommand, + se_DescribeRegistrationSectionDefinitionsCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DescribeRegistrationSectionDefinitionsCommand}. + */ +export interface DescribeRegistrationSectionDefinitionsCommandInput + extends DescribeRegistrationSectionDefinitionsRequest {} +/** + * @public + * + * The output of {@link DescribeRegistrationSectionDefinitionsCommand}. + */ +export interface DescribeRegistrationSectionDefinitionsCommandOutput + extends DescribeRegistrationSectionDefinitionsResult, + __MetadataBearer {} + +/** + * @public + *

Retrieves the specified registration section definitions. You can use DescribeRegistrationSectionDefinitions to view the requirements for creating, filling out, and submitting each registration type.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DescribeRegistrationSectionDefinitionsCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DescribeRegistrationSectionDefinitionsCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DescribeRegistrationSectionDefinitionsRequest + * RegistrationType: "STRING_VALUE", // required + * SectionPaths: [ // SectionPathList + * "STRING_VALUE", + * ], + * NextToken: "STRING_VALUE", + * MaxResults: Number("int"), + * }; + * const command = new DescribeRegistrationSectionDefinitionsCommand(input); + * const response = await client.send(command); + * // { // DescribeRegistrationSectionDefinitionsResult + * // RegistrationType: "STRING_VALUE", // required + * // RegistrationSectionDefinitions: [ // RegistrationSectionDefinitionList // required + * // { // RegistrationSectionDefinition + * // SectionPath: "STRING_VALUE", // required + * // DisplayHints: { // RegistrationSectionDisplayHints + * // Title: "STRING_VALUE", // required + * // ShortDescription: "STRING_VALUE", // required + * // LongDescription: "STRING_VALUE", + * // DocumentationTitle: "STRING_VALUE", + * // DocumentationLink: "STRING_VALUE", + * // }, + * // }, + * // ], + * // NextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DescribeRegistrationSectionDefinitionsCommandInput - {@link DescribeRegistrationSectionDefinitionsCommandInput} + * @returns {@link DescribeRegistrationSectionDefinitionsCommandOutput} + * @see {@link DescribeRegistrationSectionDefinitionsCommandInput} for command's `input` shape. + * @see {@link DescribeRegistrationSectionDefinitionsCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class DescribeRegistrationSectionDefinitionsCommand extends $Command< + DescribeRegistrationSectionDefinitionsCommandInput, + DescribeRegistrationSectionDefinitionsCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DescribeRegistrationSectionDefinitionsCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeRegistrationSectionDefinitionsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "DescribeRegistrationSectionDefinitionsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "DescribeRegistrationSectionDefinitions", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize( + input: DescribeRegistrationSectionDefinitionsCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return se_DescribeRegistrationSectionDefinitionsCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DescribeRegistrationSectionDefinitionsCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationTypeDefinitionsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationTypeDefinitionsCommand.ts new file mode 100644 index 0000000000000..d64b2d0ace0af --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationTypeDefinitionsCommand.ts @@ -0,0 +1,204 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { + DescribeRegistrationTypeDefinitionsRequest, + DescribeRegistrationTypeDefinitionsResult, +} from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_DescribeRegistrationTypeDefinitionsCommand, + se_DescribeRegistrationTypeDefinitionsCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DescribeRegistrationTypeDefinitionsCommand}. + */ +export interface DescribeRegistrationTypeDefinitionsCommandInput extends DescribeRegistrationTypeDefinitionsRequest {} +/** + * @public + * + * The output of {@link DescribeRegistrationTypeDefinitionsCommand}. + */ +export interface DescribeRegistrationTypeDefinitionsCommandOutput + extends DescribeRegistrationTypeDefinitionsResult, + __MetadataBearer {} + +/** + * @public + *

Retrieves the specified registration type definitions. You can use DescribeRegistrationTypeDefinitions to view the requirements for creating, filling out, and submitting each registration type.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DescribeRegistrationTypeDefinitionsCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DescribeRegistrationTypeDefinitionsCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DescribeRegistrationTypeDefinitionsRequest + * RegistrationTypes: [ // RegistrationTypeList + * "STRING_VALUE", + * ], + * Filters: [ // RegistrationTypeFilterList + * { // RegistrationTypeFilter + * Name: "STRING_VALUE", // required + * Values: [ // FilterValueList // required + * "STRING_VALUE", + * ], + * }, + * ], + * NextToken: "STRING_VALUE", + * MaxResults: Number("int"), + * }; + * const command = new DescribeRegistrationTypeDefinitionsCommand(input); + * const response = await client.send(command); + * // { // DescribeRegistrationTypeDefinitionsResult + * // RegistrationTypeDefinitions: [ // RegistrationTypeDefinitionList // required + * // { // RegistrationTypeDefinition + * // RegistrationType: "STRING_VALUE", // required + * // SupportedAssociations: [ // SupportedAssociationList + * // { // SupportedAssociation + * // ResourceType: "STRING_VALUE", // required + * // IsoCountryCode: "STRING_VALUE", + * // AssociationBehavior: "STRING_VALUE", // required + * // DisassociationBehavior: "STRING_VALUE", // required + * // }, + * // ], + * // DisplayHints: { // RegistrationTypeDisplayHints + * // Title: "STRING_VALUE", // required + * // ShortDescription: "STRING_VALUE", + * // LongDescription: "STRING_VALUE", + * // DocumentationTitle: "STRING_VALUE", + * // DocumentationLink: "STRING_VALUE", + * // }, + * // }, + * // ], + * // NextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DescribeRegistrationTypeDefinitionsCommandInput - {@link DescribeRegistrationTypeDefinitionsCommandInput} + * @returns {@link DescribeRegistrationTypeDefinitionsCommandOutput} + * @see {@link DescribeRegistrationTypeDefinitionsCommandInput} for command's `input` shape. + * @see {@link DescribeRegistrationTypeDefinitionsCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class DescribeRegistrationTypeDefinitionsCommand extends $Command< + DescribeRegistrationTypeDefinitionsCommandInput, + DescribeRegistrationTypeDefinitionsCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DescribeRegistrationTypeDefinitionsCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeRegistrationTypeDefinitionsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "DescribeRegistrationTypeDefinitionsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "DescribeRegistrationTypeDefinitions", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize( + input: DescribeRegistrationTypeDefinitionsCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return se_DescribeRegistrationTypeDefinitionsCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DescribeRegistrationTypeDefinitionsCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationVersionsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationVersionsCommand.ts new file mode 100644 index 0000000000000..883c9920815ef --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationVersionsCommand.ts @@ -0,0 +1,209 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { DescribeRegistrationVersionsRequest, DescribeRegistrationVersionsResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_DescribeRegistrationVersionsCommand, + se_DescribeRegistrationVersionsCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DescribeRegistrationVersionsCommand}. + */ +export interface DescribeRegistrationVersionsCommandInput extends DescribeRegistrationVersionsRequest {} +/** + * @public + * + * The output of {@link DescribeRegistrationVersionsCommand}. + */ +export interface DescribeRegistrationVersionsCommandOutput + extends DescribeRegistrationVersionsResult, + __MetadataBearer {} + +/** + * @public + *

Retrieves the specified registration version.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DescribeRegistrationVersionsCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DescribeRegistrationVersionsCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DescribeRegistrationVersionsRequest + * RegistrationId: "STRING_VALUE", // required + * VersionNumbers: [ // RegistrationVersionNumberList + * Number("long"), + * ], + * Filters: [ // RegistrationVersionFilterList + * { // RegistrationVersionFilter + * Name: "STRING_VALUE", // required + * Values: [ // FilterValueList // required + * "STRING_VALUE", + * ], + * }, + * ], + * NextToken: "STRING_VALUE", + * MaxResults: Number("int"), + * }; + * const command = new DescribeRegistrationVersionsCommand(input); + * const response = await client.send(command); + * // { // DescribeRegistrationVersionsResult + * // RegistrationArn: "STRING_VALUE", // required + * // RegistrationId: "STRING_VALUE", // required + * // RegistrationVersions: [ // RegistrationVersionInformationList // required + * // { // RegistrationVersionInformation + * // VersionNumber: Number("long"), // required + * // RegistrationVersionStatus: "STRING_VALUE", // required + * // RegistrationVersionStatusHistory: { // RegistrationVersionStatusHistory + * // DraftTimestamp: new Date("TIMESTAMP"), // required + * // SubmittedTimestamp: new Date("TIMESTAMP"), + * // ReviewingTimestamp: new Date("TIMESTAMP"), + * // ApprovedTimestamp: new Date("TIMESTAMP"), + * // DiscardedTimestamp: new Date("TIMESTAMP"), + * // DeniedTimestamp: new Date("TIMESTAMP"), + * // RevokedTimestamp: new Date("TIMESTAMP"), + * // ArchivedTimestamp: new Date("TIMESTAMP"), + * // }, + * // DeniedReasons: [ // RegistrationDeniedReasonInformationList + * // { // RegistrationDeniedReasonInformation + * // Reason: "STRING_VALUE", // required + * // ShortDescription: "STRING_VALUE", // required + * // LongDescription: "STRING_VALUE", + * // DocumentationTitle: "STRING_VALUE", + * // DocumentationLink: "STRING_VALUE", + * // }, + * // ], + * // }, + * // ], + * // NextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DescribeRegistrationVersionsCommandInput - {@link DescribeRegistrationVersionsCommandInput} + * @returns {@link DescribeRegistrationVersionsCommandOutput} + * @see {@link DescribeRegistrationVersionsCommandInput} for command's `input` shape. + * @see {@link DescribeRegistrationVersionsCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class DescribeRegistrationVersionsCommand extends $Command< + DescribeRegistrationVersionsCommandInput, + DescribeRegistrationVersionsCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DescribeRegistrationVersionsCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeRegistrationVersionsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "DescribeRegistrationVersionsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "DescribeRegistrationVersions", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DescribeRegistrationVersionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DescribeRegistrationVersionsCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DescribeRegistrationVersionsCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationsCommand.ts new file mode 100644 index 0000000000000..d218118abd9b1 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeRegistrationsCommand.ts @@ -0,0 +1,188 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { DescribeRegistrationsRequest, DescribeRegistrationsResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { de_DescribeRegistrationsCommand, se_DescribeRegistrationsCommand } from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DescribeRegistrationsCommand}. + */ +export interface DescribeRegistrationsCommandInput extends DescribeRegistrationsRequest {} +/** + * @public + * + * The output of {@link DescribeRegistrationsCommand}. + */ +export interface DescribeRegistrationsCommandOutput extends DescribeRegistrationsResult, __MetadataBearer {} + +/** + * @public + *

Retrieves the specified registrations.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DescribeRegistrationsCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DescribeRegistrationsCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DescribeRegistrationsRequest + * RegistrationIds: [ // RegistrationIdList + * "STRING_VALUE", + * ], + * Filters: [ // RegistrationFilterList + * { // RegistrationFilter + * Name: "STRING_VALUE", // required + * Values: [ // FilterValueList // required + * "STRING_VALUE", + * ], + * }, + * ], + * NextToken: "STRING_VALUE", + * MaxResults: Number("int"), + * }; + * const command = new DescribeRegistrationsCommand(input); + * const response = await client.send(command); + * // { // DescribeRegistrationsResult + * // Registrations: [ // RegistrationInformationList // required + * // { // RegistrationInformation + * // RegistrationArn: "STRING_VALUE", // required + * // RegistrationId: "STRING_VALUE", // required + * // RegistrationType: "STRING_VALUE", // required + * // RegistrationStatus: "STRING_VALUE", // required + * // CurrentVersionNumber: Number("long"), // required + * // ApprovedVersionNumber: Number("long"), + * // LatestDeniedVersionNumber: Number("long"), + * // AdditionalAttributes: { // StringMap + * // "": "STRING_VALUE", + * // }, + * // CreatedTimestamp: new Date("TIMESTAMP"), // required + * // }, + * // ], + * // NextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DescribeRegistrationsCommandInput - {@link DescribeRegistrationsCommandInput} + * @returns {@link DescribeRegistrationsCommandOutput} + * @see {@link DescribeRegistrationsCommandInput} for command's `input` shape. + * @see {@link DescribeRegistrationsCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class DescribeRegistrationsCommand extends $Command< + DescribeRegistrationsCommandInput, + DescribeRegistrationsCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DescribeRegistrationsCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeRegistrationsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "DescribeRegistrationsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "DescribeRegistrations", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DescribeRegistrationsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DescribeRegistrationsCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_DescribeRegistrationsCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeSenderIdsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeSenderIdsCommand.ts index a9ce6c8ec627f..6bdf7bac873de 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeSenderIdsCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeSenderIdsCommand.ts @@ -42,11 +42,11 @@ export interface DescribeSenderIdsCommandOutput extends DescribeSenderIdsResult, /** * @public *

Describes the specified SenderIds or all SenderIds associated with your Amazon Web Services account.

- *

If you specify SenderIds, the output includes information for only the specified + *

If you specify SenderIds, the output includes information for only the specified * SenderIds. If you specify filters, the output includes information for only those * SenderIds that meet the filter criteria. If you don't specify SenderIds or filters, the * output includes information for all SenderIds.

- *

f you specify a sender ID that isn't valid, an Error is returned.

+ *

f you specify a sender ID that isn't valid, an error is returned.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -83,6 +83,9 @@ export interface DescribeSenderIdsCommandOutput extends DescribeSenderIdsResult, * // "STRING_VALUE", * // ], * // MonthlyLeasingPrice: "STRING_VALUE", // required + * // DeletionProtectionEnabled: true || false, // required + * // Registered: true || false, // required + * // RegistrationId: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeSpendLimitsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeSpendLimitsCommand.ts index a31437941629f..0fd4ebd23ee16 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeSpendLimitsCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeSpendLimitsCommand.ts @@ -43,7 +43,7 @@ export interface DescribeSpendLimitsCommandOutput extends DescribeSpendLimitsRes * @public *

Describes the current Amazon Pinpoint monthly spend limits for sending voice and * text messages.

- *

When you establish an Amazon Web Services account, the account has initial monthly + *

When you establish an Amazon Web Services account, the account has initial monthly * spend limit in a given Region. For more information on increasing your monthly spend * limit, see * Requesting increases to your monthly SMS spending quota for Amazon Pinpoint diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeVerifiedDestinationNumbersCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeVerifiedDestinationNumbersCommand.ts new file mode 100644 index 0000000000000..47c8db13bbd9d --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DescribeVerifiedDestinationNumbersCommand.ts @@ -0,0 +1,199 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { + DescribeVerifiedDestinationNumbersRequest, + DescribeVerifiedDestinationNumbersResult, +} from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_DescribeVerifiedDestinationNumbersCommand, + se_DescribeVerifiedDestinationNumbersCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DescribeVerifiedDestinationNumbersCommand}. + */ +export interface DescribeVerifiedDestinationNumbersCommandInput extends DescribeVerifiedDestinationNumbersRequest {} +/** + * @public + * + * The output of {@link DescribeVerifiedDestinationNumbersCommand}. + */ +export interface DescribeVerifiedDestinationNumbersCommandOutput + extends DescribeVerifiedDestinationNumbersResult, + __MetadataBearer {} + +/** + * @public + *

Retrieves the specified verified destiona numbers.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DescribeVerifiedDestinationNumbersCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DescribeVerifiedDestinationNumbersCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DescribeVerifiedDestinationNumbersRequest + * VerifiedDestinationNumberIds: [ // VerifiedDestinationNumberIdList + * "STRING_VALUE", + * ], + * DestinationPhoneNumbers: [ // DestinationPhoneNumberList + * "STRING_VALUE", + * ], + * Filters: [ // VerifiedDestinationNumberFilterList + * { // VerifiedDestinationNumberFilter + * Name: "STRING_VALUE", // required + * Values: [ // FilterValueList // required + * "STRING_VALUE", + * ], + * }, + * ], + * NextToken: "STRING_VALUE", + * MaxResults: Number("int"), + * }; + * const command = new DescribeVerifiedDestinationNumbersCommand(input); + * const response = await client.send(command); + * // { // DescribeVerifiedDestinationNumbersResult + * // VerifiedDestinationNumbers: [ // VerifiedDestinationNumberInformationList // required + * // { // VerifiedDestinationNumberInformation + * // VerifiedDestinationNumberArn: "STRING_VALUE", // required + * // VerifiedDestinationNumberId: "STRING_VALUE", // required + * // DestinationPhoneNumber: "STRING_VALUE", // required + * // Status: "STRING_VALUE", // required + * // CreatedTimestamp: new Date("TIMESTAMP"), // required + * // }, + * // ], + * // NextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DescribeVerifiedDestinationNumbersCommandInput - {@link DescribeVerifiedDestinationNumbersCommandInput} + * @returns {@link DescribeVerifiedDestinationNumbersCommandOutput} + * @see {@link DescribeVerifiedDestinationNumbersCommandInput} for command's `input` shape. + * @see {@link DescribeVerifiedDestinationNumbersCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class DescribeVerifiedDestinationNumbersCommand extends $Command< + DescribeVerifiedDestinationNumbersCommandInput, + DescribeVerifiedDestinationNumbersCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DescribeVerifiedDestinationNumbersCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeVerifiedDestinationNumbersCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "DescribeVerifiedDestinationNumbersCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "DescribeVerifiedDestinationNumbers", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize( + input: DescribeVerifiedDestinationNumbersCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return se_DescribeVerifiedDestinationNumbersCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DescribeVerifiedDestinationNumbersCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DisassociateOriginationIdentityCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DisassociateOriginationIdentityCommand.ts index d20f9eedf64f3..26bb0e44ff02b 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/DisassociateOriginationIdentityCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DisassociateOriginationIdentityCommand.ts @@ -47,7 +47,7 @@ export interface DisassociateOriginationIdentityCommandOutput /** * @public *

Removes the specified origination identity from an existing pool.

- *

If the origination identity isn't associated with the specified pool, an Error is + *

If the origination identity isn't associated with the specified pool, an error is * returned.

* @example * Use a bare-bones client and the command you need to make an API call. diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/DiscardRegistrationVersionCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/DiscardRegistrationVersionCommand.ts new file mode 100644 index 0000000000000..450aec49de6ae --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/DiscardRegistrationVersionCommand.ts @@ -0,0 +1,183 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { DiscardRegistrationVersionRequest, DiscardRegistrationVersionResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { de_DiscardRegistrationVersionCommand, se_DiscardRegistrationVersionCommand } from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DiscardRegistrationVersionCommand}. + */ +export interface DiscardRegistrationVersionCommandInput extends DiscardRegistrationVersionRequest {} +/** + * @public + * + * The output of {@link DiscardRegistrationVersionCommand}. + */ +export interface DiscardRegistrationVersionCommandOutput extends DiscardRegistrationVersionResult, __MetadataBearer {} + +/** + * @public + *

Discard the current version of the registration.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, DiscardRegistrationVersionCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, DiscardRegistrationVersionCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // DiscardRegistrationVersionRequest + * RegistrationId: "STRING_VALUE", // required + * }; + * const command = new DiscardRegistrationVersionCommand(input); + * const response = await client.send(command); + * // { // DiscardRegistrationVersionResult + * // RegistrationArn: "STRING_VALUE", // required + * // RegistrationId: "STRING_VALUE", // required + * // VersionNumber: Number("long"), // required + * // RegistrationVersionStatus: "STRING_VALUE", // required + * // RegistrationVersionStatusHistory: { // RegistrationVersionStatusHistory + * // DraftTimestamp: new Date("TIMESTAMP"), // required + * // SubmittedTimestamp: new Date("TIMESTAMP"), + * // ReviewingTimestamp: new Date("TIMESTAMP"), + * // ApprovedTimestamp: new Date("TIMESTAMP"), + * // DiscardedTimestamp: new Date("TIMESTAMP"), + * // DeniedTimestamp: new Date("TIMESTAMP"), + * // RevokedTimestamp: new Date("TIMESTAMP"), + * // ArchivedTimestamp: new Date("TIMESTAMP"), + * // }, + * // }; + * + * ``` + * + * @param DiscardRegistrationVersionCommandInput - {@link DiscardRegistrationVersionCommandInput} + * @returns {@link DiscardRegistrationVersionCommandOutput} + * @see {@link DiscardRegistrationVersionCommandInput} for command's `input` shape. + * @see {@link DiscardRegistrationVersionCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class DiscardRegistrationVersionCommand extends $Command< + DiscardRegistrationVersionCommandInput, + DiscardRegistrationVersionCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DiscardRegistrationVersionCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DiscardRegistrationVersionCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "DiscardRegistrationVersionCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "DiscardRegistrationVersion", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DiscardRegistrationVersionCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DiscardRegistrationVersionCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DiscardRegistrationVersionCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/ListPoolOriginationIdentitiesCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/ListPoolOriginationIdentitiesCommand.ts index 9f31be596862c..8ee682adca70a 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/ListPoolOriginationIdentitiesCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/ListPoolOriginationIdentitiesCommand.ts @@ -47,7 +47,7 @@ export interface ListPoolOriginationIdentitiesCommandOutput /** * @public *

Lists all associated origination identities in your pool.

- *

If you specify filters, the output includes information for only those origination + *

If you specify filters, the output includes information for only those origination * identities that meet the filter criteria.

* @example * Use a bare-bones client and the command you need to make an API call. @@ -81,6 +81,7 @@ export interface ListPoolOriginationIdentitiesCommandOutput * // NumberCapabilities: [ // NumberCapabilityList // required * // "STRING_VALUE", * // ], + * // PhoneNumber: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/ListRegistrationAssociationsCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/ListRegistrationAssociationsCommand.ts new file mode 100644 index 0000000000000..3710414820d32 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/ListRegistrationAssociationsCommand.ts @@ -0,0 +1,191 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { ListRegistrationAssociationsRequest, ListRegistrationAssociationsResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_ListRegistrationAssociationsCommand, + se_ListRegistrationAssociationsCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListRegistrationAssociationsCommand}. + */ +export interface ListRegistrationAssociationsCommandInput extends ListRegistrationAssociationsRequest {} +/** + * @public + * + * The output of {@link ListRegistrationAssociationsCommand}. + */ +export interface ListRegistrationAssociationsCommandOutput + extends ListRegistrationAssociationsResult, + __MetadataBearer {} + +/** + * @public + *

Retreive all of the origination identies that are associated with a registration.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, ListRegistrationAssociationsCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, ListRegistrationAssociationsCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // ListRegistrationAssociationsRequest + * RegistrationId: "STRING_VALUE", // required + * Filters: [ // RegistrationAssociationFilterList + * { // RegistrationAssociationFilter + * Name: "STRING_VALUE", // required + * Values: [ // FilterValueList // required + * "STRING_VALUE", + * ], + * }, + * ], + * NextToken: "STRING_VALUE", + * MaxResults: Number("int"), + * }; + * const command = new ListRegistrationAssociationsCommand(input); + * const response = await client.send(command); + * // { // ListRegistrationAssociationsResult + * // RegistrationArn: "STRING_VALUE", // required + * // RegistrationId: "STRING_VALUE", // required + * // RegistrationType: "STRING_VALUE", // required + * // RegistrationAssociations: [ // RegistrationAssociationMetadataList // required + * // { // RegistrationAssociationMetadata + * // ResourceArn: "STRING_VALUE", // required + * // ResourceId: "STRING_VALUE", // required + * // ResourceType: "STRING_VALUE", // required + * // IsoCountryCode: "STRING_VALUE", + * // PhoneNumber: "STRING_VALUE", + * // }, + * // ], + * // NextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ListRegistrationAssociationsCommandInput - {@link ListRegistrationAssociationsCommandInput} + * @returns {@link ListRegistrationAssociationsCommandOutput} + * @see {@link ListRegistrationAssociationsCommandInput} for command's `input` shape. + * @see {@link ListRegistrationAssociationsCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class ListRegistrationAssociationsCommand extends $Command< + ListRegistrationAssociationsCommandInput, + ListRegistrationAssociationsCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ListRegistrationAssociationsCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListRegistrationAssociationsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "ListRegistrationAssociationsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "ListRegistrationAssociations", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ListRegistrationAssociationsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ListRegistrationAssociationsCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_ListRegistrationAssociationsCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/PutKeywordCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/PutKeywordCommand.ts index 6523ddcdc2036..0574391d4ffd6 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/PutKeywordCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/PutKeywordCommand.ts @@ -43,12 +43,12 @@ export interface PutKeywordCommandOutput extends PutKeywordResult, __MetadataBea * @public *

Creates or updates a keyword configuration on an origination phone number or * pool.

- *

A keyword is a word that you can search for on a particular phone number or pool. It + *

A keyword is a word that you can search for on a particular phone number or pool. It * is also a specific word or phrase that an end user can send to your number to elicit a * response, such as an informational message or a special offer. When your number receives * a message that begins with a keyword, Amazon Pinpoint responds with a customizable * message.

- *

If you specify a keyword that isn't valid, an Error is returned.

+ *

If you specify a keyword that isn't valid, an error is returned.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/PutOptedOutNumberCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/PutOptedOutNumberCommand.ts index 810112b6a7638..9ec93b758789c 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/PutOptedOutNumberCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/PutOptedOutNumberCommand.ts @@ -42,8 +42,8 @@ export interface PutOptedOutNumberCommandOutput extends PutOptedOutNumberResult, /** * @public *

Creates an opted out destination phone number in the opt-out list.

- *

If the destination phone number isn't valid or if the specified opt-out list doesn't - * exist, an Error is returned.

+ *

If the destination phone number isn't valid or if the specified opt-out list doesn't + * exist, an error is returned.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/PutRegistrationFieldValueCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/PutRegistrationFieldValueCommand.ts new file mode 100644 index 0000000000000..aa439493efc51 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/PutRegistrationFieldValueCommand.ts @@ -0,0 +1,184 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { PutRegistrationFieldValueRequest, PutRegistrationFieldValueResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { de_PutRegistrationFieldValueCommand, se_PutRegistrationFieldValueCommand } from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link PutRegistrationFieldValueCommand}. + */ +export interface PutRegistrationFieldValueCommandInput extends PutRegistrationFieldValueRequest {} +/** + * @public + * + * The output of {@link PutRegistrationFieldValueCommand}. + */ +export interface PutRegistrationFieldValueCommandOutput extends PutRegistrationFieldValueResult, __MetadataBearer {} + +/** + * @public + *

Creates or updates a field value for a registration.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, PutRegistrationFieldValueCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, PutRegistrationFieldValueCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // PutRegistrationFieldValueRequest + * RegistrationId: "STRING_VALUE", // required + * FieldPath: "STRING_VALUE", // required + * SelectChoices: [ // SelectChoiceList + * "STRING_VALUE", + * ], + * TextValue: "STRING_VALUE", + * RegistrationAttachmentId: "STRING_VALUE", + * }; + * const command = new PutRegistrationFieldValueCommand(input); + * const response = await client.send(command); + * // { // PutRegistrationFieldValueResult + * // RegistrationArn: "STRING_VALUE", // required + * // RegistrationId: "STRING_VALUE", // required + * // VersionNumber: Number("long"), // required + * // FieldPath: "STRING_VALUE", // required + * // SelectChoices: [ // SelectChoiceList + * // "STRING_VALUE", + * // ], + * // TextValue: "STRING_VALUE", + * // RegistrationAttachmentId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param PutRegistrationFieldValueCommandInput - {@link PutRegistrationFieldValueCommandInput} + * @returns {@link PutRegistrationFieldValueCommandOutput} + * @see {@link PutRegistrationFieldValueCommandInput} for command's `input` shape. + * @see {@link PutRegistrationFieldValueCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class PutRegistrationFieldValueCommand extends $Command< + PutRegistrationFieldValueCommandInput, + PutRegistrationFieldValueCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: PutRegistrationFieldValueCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, PutRegistrationFieldValueCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "PutRegistrationFieldValueCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "PutRegistrationFieldValue", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: PutRegistrationFieldValueCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_PutRegistrationFieldValueCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_PutRegistrationFieldValueCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/ReleasePhoneNumberCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/ReleasePhoneNumberCommand.ts index 9d2880f56c302..abb5e665562cf 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/ReleasePhoneNumberCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/ReleasePhoneNumberCommand.ts @@ -43,8 +43,8 @@ export interface ReleasePhoneNumberCommandOutput extends ReleasePhoneNumberResul * @public *

Releases an existing origination phone number in your account. Once released, a phone * number is no longer available for sending messages.

- *

If the origination phone number has deletion protection enabled or is associated with - * a pool, an Error is returned.

+ *

If the origination phone number has deletion protection enabled or is associated with + * a pool, an error is returned.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -70,8 +70,10 @@ export interface ReleasePhoneNumberCommandOutput extends ReleasePhoneNumberResul * // MonthlyLeasingPrice: "STRING_VALUE", * // TwoWayEnabled: true || false, * // TwoWayChannelArn: "STRING_VALUE", + * // TwoWayChannelRole: "STRING_VALUE", * // SelfManagedOptOutsEnabled: true || false, * // OptOutListName: "STRING_VALUE", + * // RegistrationId: "STRING_VALUE", * // CreatedTimestamp: new Date("TIMESTAMP"), * // }; * diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/ReleaseSenderIdCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/ReleaseSenderIdCommand.ts new file mode 100644 index 0000000000000..24ad90358050e --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/ReleaseSenderIdCommand.ts @@ -0,0 +1,176 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { ReleaseSenderIdRequest, ReleaseSenderIdResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { de_ReleaseSenderIdCommand, se_ReleaseSenderIdCommand } from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ReleaseSenderIdCommand}. + */ +export interface ReleaseSenderIdCommandInput extends ReleaseSenderIdRequest {} +/** + * @public + * + * The output of {@link ReleaseSenderIdCommand}. + */ +export interface ReleaseSenderIdCommandOutput extends ReleaseSenderIdResult, __MetadataBearer {} + +/** + * @public + *

Releases an existing sender ID in your account.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, ReleaseSenderIdCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, ReleaseSenderIdCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // ReleaseSenderIdRequest + * SenderId: "STRING_VALUE", // required + * IsoCountryCode: "STRING_VALUE", // required + * }; + * const command = new ReleaseSenderIdCommand(input); + * const response = await client.send(command); + * // { // ReleaseSenderIdResult + * // SenderIdArn: "STRING_VALUE", // required + * // SenderId: "STRING_VALUE", // required + * // IsoCountryCode: "STRING_VALUE", // required + * // MessageTypes: [ // MessageTypeList // required + * // "STRING_VALUE", + * // ], + * // MonthlyLeasingPrice: "STRING_VALUE", // required + * // Registered: true || false, // required + * // RegistrationId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ReleaseSenderIdCommandInput - {@link ReleaseSenderIdCommandInput} + * @returns {@link ReleaseSenderIdCommandOutput} + * @see {@link ReleaseSenderIdCommandInput} for command's `input` shape. + * @see {@link ReleaseSenderIdCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class ReleaseSenderIdCommand extends $Command< + ReleaseSenderIdCommandInput, + ReleaseSenderIdCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ReleaseSenderIdCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ReleaseSenderIdCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "ReleaseSenderIdCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "ReleaseSenderId", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ReleaseSenderIdCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ReleaseSenderIdCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_ReleaseSenderIdCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/RequestPhoneNumberCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/RequestPhoneNumberCommand.ts index 4338f5b9aa46a..50830adcd756a 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/RequestPhoneNumberCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/RequestPhoneNumberCommand.ts @@ -85,10 +85,12 @@ export interface RequestPhoneNumberCommandOutput extends RequestPhoneNumberResul * // MonthlyLeasingPrice: "STRING_VALUE", * // TwoWayEnabled: true || false, * // TwoWayChannelArn: "STRING_VALUE", + * // TwoWayChannelRole: "STRING_VALUE", * // SelfManagedOptOutsEnabled: true || false, * // OptOutListName: "STRING_VALUE", * // DeletionProtectionEnabled: true || false, * // PoolId: "STRING_VALUE", + * // RegistrationId: "STRING_VALUE", * // Tags: [ // TagList * // { // Tag * // Key: "STRING_VALUE", // required diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/RequestSenderIdCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/RequestSenderIdCommand.ts new file mode 100644 index 0000000000000..b63176aebf36d --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/RequestSenderIdCommand.ts @@ -0,0 +1,193 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { RequestSenderIdRequest, RequestSenderIdResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { de_RequestSenderIdCommand, se_RequestSenderIdCommand } from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link RequestSenderIdCommand}. + */ +export interface RequestSenderIdCommandInput extends RequestSenderIdRequest {} +/** + * @public + * + * The output of {@link RequestSenderIdCommand}. + */ +export interface RequestSenderIdCommandOutput extends RequestSenderIdResult, __MetadataBearer {} + +/** + * @public + *

Request a new sender ID that doesn't require registration.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, RequestSenderIdCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, RequestSenderIdCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // RequestSenderIdRequest + * SenderId: "STRING_VALUE", // required + * IsoCountryCode: "STRING_VALUE", // required + * MessageTypes: [ // MessageTypeList + * "STRING_VALUE", + * ], + * DeletionProtectionEnabled: true || false, + * Tags: [ // TagList + * { // Tag + * Key: "STRING_VALUE", // required + * Value: "STRING_VALUE", // required + * }, + * ], + * ClientToken: "STRING_VALUE", + * }; + * const command = new RequestSenderIdCommand(input); + * const response = await client.send(command); + * // { // RequestSenderIdResult + * // SenderIdArn: "STRING_VALUE", // required + * // SenderId: "STRING_VALUE", // required + * // IsoCountryCode: "STRING_VALUE", // required + * // MessageTypes: [ // MessageTypeList // required + * // "STRING_VALUE", + * // ], + * // MonthlyLeasingPrice: "STRING_VALUE", // required + * // DeletionProtectionEnabled: true || false, // required + * // Registered: true || false, // required + * // Tags: [ // TagList + * // { // Tag + * // Key: "STRING_VALUE", // required + * // Value: "STRING_VALUE", // required + * // }, + * // ], + * // }; + * + * ``` + * + * @param RequestSenderIdCommandInput - {@link RequestSenderIdCommandInput} + * @returns {@link RequestSenderIdCommandOutput} + * @see {@link RequestSenderIdCommandInput} for command's `input` shape. + * @see {@link RequestSenderIdCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request would cause a service quota to be exceeded.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class RequestSenderIdCommand extends $Command< + RequestSenderIdCommandInput, + RequestSenderIdCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: RequestSenderIdCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, RequestSenderIdCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "RequestSenderIdCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "RequestSenderId", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: RequestSenderIdCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_RequestSenderIdCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_RequestSenderIdCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/SendDestinationNumberVerificationCodeCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/SendDestinationNumberVerificationCodeCommand.ts new file mode 100644 index 0000000000000..0a641ef4e57b3 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/SendDestinationNumberVerificationCodeCommand.ts @@ -0,0 +1,197 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { + SendDestinationNumberVerificationCodeRequest, + SendDestinationNumberVerificationCodeResult, +} from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { + de_SendDestinationNumberVerificationCodeCommand, + se_SendDestinationNumberVerificationCodeCommand, +} from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link SendDestinationNumberVerificationCodeCommand}. + */ +export interface SendDestinationNumberVerificationCodeCommandInput + extends SendDestinationNumberVerificationCodeRequest {} +/** + * @public + * + * The output of {@link SendDestinationNumberVerificationCodeCommand}. + */ +export interface SendDestinationNumberVerificationCodeCommandOutput + extends SendDestinationNumberVerificationCodeResult, + __MetadataBearer {} + +/** + * @public + *

Before you can send test messages to a verified destination phone number you need to + * opt-in the verified destination phone number. Creates a new text message with a + * verification code and send it to a verified destination phone number. Once you have the verification code use VerifyDestinationNumber to opt-in the verified destination phone number to receive messages.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, SendDestinationNumberVerificationCodeCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, SendDestinationNumberVerificationCodeCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // SendDestinationNumberVerificationCodeRequest + * VerifiedDestinationNumberId: "STRING_VALUE", // required + * VerificationChannel: "STRING_VALUE", // required + * LanguageCode: "STRING_VALUE", + * OriginationIdentity: "STRING_VALUE", + * ConfigurationSetName: "STRING_VALUE", + * Context: { // ContextMap + * "": "STRING_VALUE", + * }, + * DestinationCountryParameters: { // DestinationCountryParameters + * "": "STRING_VALUE", + * }, + * }; + * const command = new SendDestinationNumberVerificationCodeCommand(input); + * const response = await client.send(command); + * // { // SendDestinationNumberVerificationCodeResult + * // MessageId: "STRING_VALUE", // required + * // }; + * + * ``` + * + * @param SendDestinationNumberVerificationCodeCommandInput - {@link SendDestinationNumberVerificationCodeCommandInput} + * @returns {@link SendDestinationNumberVerificationCodeCommandOutput} + * @see {@link SendDestinationNumberVerificationCodeCommandInput} for command's `input` shape. + * @see {@link SendDestinationNumberVerificationCodeCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

The request would cause a service quota to be exceeded.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class SendDestinationNumberVerificationCodeCommand extends $Command< + SendDestinationNumberVerificationCodeCommandInput, + SendDestinationNumberVerificationCodeCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: SendDestinationNumberVerificationCodeCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, SendDestinationNumberVerificationCodeCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "SendDestinationNumberVerificationCodeCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "SendDestinationNumberVerificationCode", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize( + input: SendDestinationNumberVerificationCodeCommandInput, + context: __SerdeContext + ): Promise<__HttpRequest> { + return se_SendDestinationNumberVerificationCodeCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_SendDestinationNumberVerificationCodeCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/SendTextMessageCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/SendTextMessageCommand.ts index bff84f3ff26c6..9c591ec5cf628 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/SendTextMessageCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/SendTextMessageCommand.ts @@ -42,7 +42,7 @@ export interface SendTextMessageCommandOutput extends SendTextMessageResult, __M /** * @public *

Creates a new text message and sends it to a recipient's phone number.

- *

SMS throughput limits are measured in Message Parts per Second (MPS). Your MPS limit + *

SMS throughput limits are measured in Message Parts per Second (MPS). Your MPS limit * depends on the destination country of your messages, as well as the type of phone number * (origination number) that you use to send the message. For more information, see Message Parts per * Second (MPS) limits in the Amazon Pinpoint User diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/SendVoiceMessageCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/SendVoiceMessageCommand.ts index 0322a5ddd9a41..d77db53c99dbd 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/SendVoiceMessageCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/SendVoiceMessageCommand.ts @@ -41,7 +41,7 @@ export interface SendVoiceMessageCommandOutput extends SendVoiceMessageResult, _ /** * @public - *

Allows you to send a request that sends a text message through Amazon Pinpoint. + *

Allows you to send a request that sends a voice message through Amazon Pinpoint. * This operation uses Amazon Polly to * convert a text script into a voice message.

* @example diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/SetDefaultMessageTypeCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/SetDefaultMessageTypeCommand.ts index e0f937e02303b..7d0be1b57c95b 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/SetDefaultMessageTypeCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/SetDefaultMessageTypeCommand.ts @@ -42,7 +42,7 @@ export interface SetDefaultMessageTypeCommandOutput extends SetDefaultMessageTyp /** * @public *

Sets the default message type on a configuration set.

- *

Choose the category of SMS messages that you plan to send from this account. If you + *

Choose the category of SMS messages that you plan to send from this account. If you * send account-related messages or time-sensitive messages such as one-time passcodes, * choose Transactional. If you plan to send messages that * contain marketing material or other promotional content, choose Promotional. This setting applies to your entire Amazon Web Services diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/SetDefaultSenderIdCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/SetDefaultSenderIdCommand.ts index dc46ee2598761..ffab3e4846a06 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/SetDefaultSenderIdCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/SetDefaultSenderIdCommand.ts @@ -42,7 +42,7 @@ export interface SetDefaultSenderIdCommandOutput extends SetDefaultSenderIdResul /** * @public *

Sets default sender ID on a configuration set.

- *

When sending a text message to a destination country that supports sender IDs, the + *

When sending a text message to a destination country that supports sender IDs, the * default sender ID on the configuration set specified will be used if no dedicated * origination phone numbers or registered sender IDs are available in your account.

* @example diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/SubmitRegistrationVersionCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/SubmitRegistrationVersionCommand.ts new file mode 100644 index 0000000000000..72d38176b884d --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/SubmitRegistrationVersionCommand.ts @@ -0,0 +1,183 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { SubmitRegistrationVersionRequest, SubmitRegistrationVersionResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { de_SubmitRegistrationVersionCommand, se_SubmitRegistrationVersionCommand } from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link SubmitRegistrationVersionCommand}. + */ +export interface SubmitRegistrationVersionCommandInput extends SubmitRegistrationVersionRequest {} +/** + * @public + * + * The output of {@link SubmitRegistrationVersionCommand}. + */ +export interface SubmitRegistrationVersionCommandOutput extends SubmitRegistrationVersionResult, __MetadataBearer {} + +/** + * @public + *

Submit the specified registration for review and approval.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, SubmitRegistrationVersionCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, SubmitRegistrationVersionCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // SubmitRegistrationVersionRequest + * RegistrationId: "STRING_VALUE", // required + * }; + * const command = new SubmitRegistrationVersionCommand(input); + * const response = await client.send(command); + * // { // SubmitRegistrationVersionResult + * // RegistrationArn: "STRING_VALUE", // required + * // RegistrationId: "STRING_VALUE", // required + * // VersionNumber: Number("long"), // required + * // RegistrationVersionStatus: "STRING_VALUE", // required + * // RegistrationVersionStatusHistory: { // RegistrationVersionStatusHistory + * // DraftTimestamp: new Date("TIMESTAMP"), // required + * // SubmittedTimestamp: new Date("TIMESTAMP"), + * // ReviewingTimestamp: new Date("TIMESTAMP"), + * // ApprovedTimestamp: new Date("TIMESTAMP"), + * // DiscardedTimestamp: new Date("TIMESTAMP"), + * // DeniedTimestamp: new Date("TIMESTAMP"), + * // RevokedTimestamp: new Date("TIMESTAMP"), + * // ArchivedTimestamp: new Date("TIMESTAMP"), + * // }, + * // }; + * + * ``` + * + * @param SubmitRegistrationVersionCommandInput - {@link SubmitRegistrationVersionCommandInput} + * @returns {@link SubmitRegistrationVersionCommandOutput} + * @see {@link SubmitRegistrationVersionCommandInput} for command's `input` shape. + * @see {@link SubmitRegistrationVersionCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class SubmitRegistrationVersionCommand extends $Command< + SubmitRegistrationVersionCommandInput, + SubmitRegistrationVersionCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: SubmitRegistrationVersionCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, SubmitRegistrationVersionCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "SubmitRegistrationVersionCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "SubmitRegistrationVersion", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: SubmitRegistrationVersionCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_SubmitRegistrationVersionCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_SubmitRegistrationVersionCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/UpdateEventDestinationCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/UpdateEventDestinationCommand.ts index b68c41ce67c7a..e7a9da5869341 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/UpdateEventDestinationCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/UpdateEventDestinationCommand.ts @@ -44,7 +44,7 @@ export interface UpdateEventDestinationCommandOutput extends UpdateEventDestinat *

Updates an existing event destination in a configuration set. You can update the * IAM role ARN for CloudWatch Logs and Kinesis Data Firehose. You can * also enable or disable the event destination.

- *

You may want to update an event destination to change its matching event types or + *

You may want to update an event destination to change its matching event types or * updating the destination resource ARN. You can't change an event destination's type * between CloudWatch Logs, Kinesis Data Firehose, and Amazon SNS.

* @example diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/UpdatePhoneNumberCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/UpdatePhoneNumberCommand.ts index db262a6895811..39f6402a65316 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/UpdatePhoneNumberCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/UpdatePhoneNumberCommand.ts @@ -44,7 +44,7 @@ export interface UpdatePhoneNumberCommandOutput extends UpdatePhoneNumberResult, *

Updates the configuration of an existing origination phone number. You can update the * opt-out list, enable or disable two-way messaging, change the TwoWayChannelArn, enable * or disable self-managed opt-outs, and enable or disable deletion protection.

- *

If the origination phone number is associated with a pool, an Error is + *

If the origination phone number is associated with a pool, an error is * returned.

* @example * Use a bare-bones client and the command you need to make an API call. @@ -56,6 +56,7 @@ export interface UpdatePhoneNumberCommandOutput extends UpdatePhoneNumberResult, * PhoneNumberId: "STRING_VALUE", // required * TwoWayEnabled: true || false, * TwoWayChannelArn: "STRING_VALUE", + * TwoWayChannelRole: "STRING_VALUE", * SelfManagedOptOutsEnabled: true || false, * OptOutListName: "STRING_VALUE", * DeletionProtectionEnabled: true || false, @@ -76,9 +77,11 @@ export interface UpdatePhoneNumberCommandOutput extends UpdatePhoneNumberResult, * // MonthlyLeasingPrice: "STRING_VALUE", * // TwoWayEnabled: true || false, * // TwoWayChannelArn: "STRING_VALUE", + * // TwoWayChannelRole: "STRING_VALUE", * // SelfManagedOptOutsEnabled: true || false, * // OptOutListName: "STRING_VALUE", * // DeletionProtectionEnabled: true || false, + * // RegistrationId: "STRING_VALUE", * // CreatedTimestamp: new Date("TIMESTAMP"), * // }; * diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/UpdatePoolCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/UpdatePoolCommand.ts index ffbf3c09be282..7830f36e69098 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/UpdatePoolCommand.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/UpdatePoolCommand.ts @@ -55,6 +55,7 @@ export interface UpdatePoolCommandOutput extends UpdatePoolResult, __MetadataBea * PoolId: "STRING_VALUE", // required * TwoWayEnabled: true || false, * TwoWayChannelArn: "STRING_VALUE", + * TwoWayChannelRole: "STRING_VALUE", * SelfManagedOptOutsEnabled: true || false, * OptOutListName: "STRING_VALUE", * SharedRoutesEnabled: true || false, @@ -69,6 +70,7 @@ export interface UpdatePoolCommandOutput extends UpdatePoolResult, __MetadataBea * // MessageType: "STRING_VALUE", * // TwoWayEnabled: true || false, * // TwoWayChannelArn: "STRING_VALUE", + * // TwoWayChannelRole: "STRING_VALUE", * // SelfManagedOptOutsEnabled: true || false, * // OptOutListName: "STRING_VALUE", * // SharedRoutesEnabled: true || false, diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/UpdateSenderIdCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/UpdateSenderIdCommand.ts new file mode 100644 index 0000000000000..4acdf7f0f5da0 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/UpdateSenderIdCommand.ts @@ -0,0 +1,172 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { UpdateSenderIdRequest, UpdateSenderIdResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { de_UpdateSenderIdCommand, se_UpdateSenderIdCommand } from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link UpdateSenderIdCommand}. + */ +export interface UpdateSenderIdCommandInput extends UpdateSenderIdRequest {} +/** + * @public + * + * The output of {@link UpdateSenderIdCommand}. + */ +export interface UpdateSenderIdCommandOutput extends UpdateSenderIdResult, __MetadataBearer {} + +/** + * @public + *

Updates the configuration of an existing sender ID.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, UpdateSenderIdCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, UpdateSenderIdCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // UpdateSenderIdRequest + * SenderId: "STRING_VALUE", // required + * IsoCountryCode: "STRING_VALUE", // required + * DeletionProtectionEnabled: true || false, + * }; + * const command = new UpdateSenderIdCommand(input); + * const response = await client.send(command); + * // { // UpdateSenderIdResult + * // SenderIdArn: "STRING_VALUE", // required + * // SenderId: "STRING_VALUE", // required + * // IsoCountryCode: "STRING_VALUE", // required + * // MessageTypes: [ // MessageTypeList // required + * // "STRING_VALUE", + * // ], + * // MonthlyLeasingPrice: "STRING_VALUE", // required + * // DeletionProtectionEnabled: true || false, // required + * // Registered: true || false, // required + * // RegistrationId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param UpdateSenderIdCommandInput - {@link UpdateSenderIdCommandInput} + * @returns {@link UpdateSenderIdCommandOutput} + * @see {@link UpdateSenderIdCommandInput} for command's `input` shape. + * @see {@link UpdateSenderIdCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class UpdateSenderIdCommand extends $Command< + UpdateSenderIdCommandInput, + UpdateSenderIdCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: UpdateSenderIdCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateSenderIdCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "UpdateSenderIdCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "UpdateSenderId", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: UpdateSenderIdCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_UpdateSenderIdCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_UpdateSenderIdCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/VerifyDestinationNumberCommand.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/VerifyDestinationNumberCommand.ts new file mode 100644 index 0000000000000..c86d37ed3d989 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/VerifyDestinationNumberCommand.ts @@ -0,0 +1,172 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { VerifyDestinationNumberRequest, VerifyDestinationNumberResult } from "../models/models_0"; +import { + PinpointSMSVoiceV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../PinpointSMSVoiceV2Client"; +import { de_VerifyDestinationNumberCommand, se_VerifyDestinationNumberCommand } from "../protocols/Aws_json1_0"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link VerifyDestinationNumberCommand}. + */ +export interface VerifyDestinationNumberCommandInput extends VerifyDestinationNumberRequest {} +/** + * @public + * + * The output of {@link VerifyDestinationNumberCommand}. + */ +export interface VerifyDestinationNumberCommandOutput extends VerifyDestinationNumberResult, __MetadataBearer {} + +/** + * @public + *

Use the verification code that was received by the verified destination phone number to opt-in the verified destination phone number to receive more messages.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { PinpointSMSVoiceV2Client, VerifyDestinationNumberCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import + * // const { PinpointSMSVoiceV2Client, VerifyDestinationNumberCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import + * const client = new PinpointSMSVoiceV2Client(config); + * const input = { // VerifyDestinationNumberRequest + * VerifiedDestinationNumberId: "STRING_VALUE", // required + * VerificationCode: "STRING_VALUE", // required + * }; + * const command = new VerifyDestinationNumberCommand(input); + * const response = await client.send(command); + * // { // VerifyDestinationNumberResult + * // VerifiedDestinationNumberArn: "STRING_VALUE", // required + * // VerifiedDestinationNumberId: "STRING_VALUE", // required + * // DestinationPhoneNumber: "STRING_VALUE", // required + * // Status: "STRING_VALUE", // required + * // CreatedTimestamp: new Date("TIMESTAMP"), // required + * // }; + * + * ``` + * + * @param VerifyDestinationNumberCommandInput - {@link VerifyDestinationNumberCommandInput} + * @returns {@link VerifyDestinationNumberCommandOutput} + * @see {@link VerifyDestinationNumberCommandInput} for command's `input` shape. + * @see {@link VerifyDestinationNumberCommandOutput} for command's `response` shape. + * @see {@link PinpointSMSVoiceV2ClientResolvedConfig | config} for PinpointSMSVoiceV2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The request was denied because you don't have sufficient permissions to access the + * resource.

+ * + * @throws {@link ConflictException} (client fault) + *

Your request has conflicting operations. This can occur if you're trying to perform + * more than one operation on the same resource at the same time or it could be that the + * requested action isn't valid for the current state or configuration of the + * resource.

+ * + * @throws {@link InternalServerException} (server fault) + *

The API encountered an unexpected error and couldn't complete the request. You might + * be able to successfully issue the request again in the future.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

A requested resource couldn't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

An error that occurred because too many requests were sent during a certain amount of + * time.

+ * + * @throws {@link ValidationException} (client fault) + *

A validation exception for a field.

+ * + * @throws {@link PinpointSMSVoiceV2ServiceException} + *

Base exception class for all service exceptions from PinpointSMSVoiceV2 service.

+ * + */ +export class VerifyDestinationNumberCommand extends $Command< + VerifyDestinationNumberCommandInput, + VerifyDestinationNumberCommandOutput, + PinpointSMSVoiceV2ClientResolvedConfig +> { + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: VerifyDestinationNumberCommandInput) { + super(); + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: PinpointSMSVoiceV2ClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, VerifyDestinationNumberCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "PinpointSMSVoiceV2Client"; + const commandName = "VerifyDestinationNumberCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + [SMITHY_CONTEXT_KEY]: { + service: "PinpointSMSVoiceV2", + operation: "VerifyDestinationNumber", + }, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: VerifyDestinationNumberCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_VerifyDestinationNumberCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_VerifyDestinationNumberCommand(output, context); + } +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/commands/index.ts b/clients/client-pinpoint-sms-voice-v2/src/commands/index.ts index 37689c3d681c8..80db0ec91ec05 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/commands/index.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/commands/index.ts @@ -4,6 +4,11 @@ export * from "./CreateConfigurationSetCommand"; export * from "./CreateEventDestinationCommand"; export * from "./CreateOptOutListCommand"; export * from "./CreatePoolCommand"; +export * from "./CreateRegistrationAssociationCommand"; +export * from "./CreateRegistrationAttachmentCommand"; +export * from "./CreateRegistrationCommand"; +export * from "./CreateRegistrationVersionCommand"; +export * from "./CreateVerifiedDestinationNumberCommand"; export * from "./DeleteConfigurationSetCommand"; export * from "./DeleteDefaultMessageTypeCommand"; export * from "./DeleteDefaultSenderIdCommand"; @@ -12,7 +17,11 @@ export * from "./DeleteKeywordCommand"; export * from "./DeleteOptOutListCommand"; export * from "./DeleteOptedOutNumberCommand"; export * from "./DeletePoolCommand"; +export * from "./DeleteRegistrationAttachmentCommand"; +export * from "./DeleteRegistrationCommand"; +export * from "./DeleteRegistrationFieldValueCommand"; export * from "./DeleteTextMessageSpendLimitOverrideCommand"; +export * from "./DeleteVerifiedDestinationNumberCommand"; export * from "./DeleteVoiceMessageSpendLimitOverrideCommand"; export * from "./DescribeAccountAttributesCommand"; export * from "./DescribeAccountLimitsCommand"; @@ -22,23 +31,40 @@ export * from "./DescribeOptOutListsCommand"; export * from "./DescribeOptedOutNumbersCommand"; export * from "./DescribePhoneNumbersCommand"; export * from "./DescribePoolsCommand"; +export * from "./DescribeRegistrationAttachmentsCommand"; +export * from "./DescribeRegistrationFieldDefinitionsCommand"; +export * from "./DescribeRegistrationFieldValuesCommand"; +export * from "./DescribeRegistrationSectionDefinitionsCommand"; +export * from "./DescribeRegistrationTypeDefinitionsCommand"; +export * from "./DescribeRegistrationVersionsCommand"; +export * from "./DescribeRegistrationsCommand"; export * from "./DescribeSenderIdsCommand"; export * from "./DescribeSpendLimitsCommand"; +export * from "./DescribeVerifiedDestinationNumbersCommand"; export * from "./DisassociateOriginationIdentityCommand"; +export * from "./DiscardRegistrationVersionCommand"; export * from "./ListPoolOriginationIdentitiesCommand"; +export * from "./ListRegistrationAssociationsCommand"; export * from "./ListTagsForResourceCommand"; export * from "./PutKeywordCommand"; export * from "./PutOptedOutNumberCommand"; +export * from "./PutRegistrationFieldValueCommand"; export * from "./ReleasePhoneNumberCommand"; +export * from "./ReleaseSenderIdCommand"; export * from "./RequestPhoneNumberCommand"; +export * from "./RequestSenderIdCommand"; +export * from "./SendDestinationNumberVerificationCodeCommand"; export * from "./SendTextMessageCommand"; export * from "./SendVoiceMessageCommand"; export * from "./SetDefaultMessageTypeCommand"; export * from "./SetDefaultSenderIdCommand"; export * from "./SetTextMessageSpendLimitOverrideCommand"; export * from "./SetVoiceMessageSpendLimitOverrideCommand"; +export * from "./SubmitRegistrationVersionCommand"; export * from "./TagResourceCommand"; export * from "./UntagResourceCommand"; export * from "./UpdateEventDestinationCommand"; export * from "./UpdatePhoneNumberCommand"; export * from "./UpdatePoolCommand"; +export * from "./UpdateSenderIdCommand"; +export * from "./VerifyDestinationNumberCommand"; diff --git a/clients/client-pinpoint-sms-voice-v2/src/index.ts b/clients/client-pinpoint-sms-voice-v2/src/index.ts index 0c5e4940956bb..ca89179a14997 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/index.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/index.ts @@ -4,12 +4,12 @@ *

Welcome to the Amazon Pinpoint SMS and Voice, version 2 API Reference. * This guide provides information about Amazon Pinpoint SMS and Voice, version 2 API * resources, including supported HTTP methods, parameters, and schemas.

- *

Amazon Pinpoint is an Amazon Web Services service that you can use to engage with + *

Amazon Pinpoint is an Amazon Web Services service that you can use to engage with * your recipients across multiple messaging channels. The Amazon Pinpoint SMS and * Voice, version 2 API provides programmatic access to options that are unique to the SMS * and voice channels and supplements the resources provided by the Amazon Pinpoint * API.

- *

If you're new to Amazon Pinpoint, it's also helpful to review the + *

If you're new to Amazon Pinpoint, it's also helpful to review the * Amazon Pinpoint Developer Guide. The Amazon Pinpoint * Developer Guide provides tutorials, code samples, and procedures that * demonstrate how to use Amazon Pinpoint features programmatically and how to integrate @@ -17,6 +17,25 @@ * The guide also provides key information, such as Amazon Pinpoint integration with * other Amazon Web Services services, and the quotas that apply to use of the * service.

+ *

+ * Regional availability + *

+ *

The Amazon Pinpoint SMS and Voice, version 2 API Reference is + * available in several Amazon Web Services Regions and it provides an endpoint for each of + * these Regions. For a list of all the Regions and endpoints where the API is currently + * available, see Amazon Web Services Service Endpoints and Amazon Pinpoint + * endpoints and quotas in the Amazon Web Services General Reference. To + * learn more about Amazon Web Services Regions, see Managing + * Amazon Web Services Regions in the Amazon Web Services General + * Reference.

+ *

In each Region, Amazon Web Services maintains multiple Availability Zones. These + * Availability Zones are physically isolated from each other, but are united by private, + * low-latency, high-throughput, and highly redundant network connections. These + * Availability Zones enable us to provide very high levels of availability and redundancy, + * while also minimizing latency. To learn more about the number of Availability Zones that + * are available in each Region, see Amazon Web Services + * Global Infrastructure. + *

* * @packageDocumentation */ diff --git a/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts b/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts index a4b3c37c819cc..2b8575fd8abc0 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts @@ -87,6 +87,10 @@ export const AccountLimitName = { OPT_OUT_LISTS: "OPT_OUT_LISTS", PHONE_NUMBERS: "PHONE_NUMBERS", POOLS: "POOLS", + REGISTRATIONS: "REGISTRATIONS", + REGISTRATION_ATTACHMENTS: "REGISTRATION_ATTACHMENTS", + SENDER_IDS: "SENDER_IDS", + VERIFIED_DESTINATION_NUMBERS: "VERIFIED_DESTINATION_NUMBERS", } as const; /** @@ -196,25 +200,37 @@ export interface AssociateOriginationIdentityResult { * @enum */ export const ConflictExceptionReason = { + CREATE_REGISTRATION_VERSION_NOT_ALLOWED: "CREATE_REGISTRATION_VERSION_NOT_ALLOWED", DELETION_PROTECTION_ENABLED: "DELETION_PROTECTION_ENABLED", DESTINATION_PHONE_NUMBER_NOT_VERIFIED: "DESTINATION_PHONE_NUMBER_NOT_VERIFIED", DESTINATION_PHONE_NUMBER_OPTED_OUT: "DESTINATION_PHONE_NUMBER_OPTED_OUT", + DISASSOCIATE_REGISTRATION_NOT_ALLOWED: "DISASSOCIATE_REGISTRATION_NOT_ALLOWED", + DISCARD_REGISTRATION_VERSION_NOT_ALLOWED: "DISCARD_REGISTRATION_VERSION_NOT_ALLOWED", + EDIT_REGISTRATION_FIELD_VALUES_NOT_ALLOWED: "EDIT_REGISTRATION_FIELD_VALUES_NOT_ALLOWED", EVENT_DESTINATION_MISMATCH: "EVENT_DESTINATION_MISMATCH", KEYWORD_MISMATCH: "KEYWORD_MISMATCH", LAST_PHONE_NUMBER: "LAST_PHONE_NUMBER", MESSAGE_TYPE_MISMATCH: "MESSAGE_TYPE_MISMATCH", NO_ORIGINATION_IDENTITIES_FOUND: "NO_ORIGINATION_IDENTITIES_FOUND", + NUMBER_CAPABILITIES_MISMATCH: "NUMBER_CAPABILITIES_MISMATCH", OPT_OUT_LIST_MISMATCH: "OPT_OUT_LIST_MISMATCH", PHONE_NUMBER_ASSOCIATED_TO_POOL: "PHONE_NUMBER_ASSOCIATED_TO_POOL", + PHONE_NUMBER_ASSOCIATED_TO_REGISTRATION: "PHONE_NUMBER_ASSOCIATED_TO_REGISTRATION", PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL: "PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL", PHONE_NUMBER_NOT_IN_REGISTRATION_REGION: "PHONE_NUMBER_NOT_IN_REGISTRATION_REGION", + REGISTRATION_ALREADY_SUBMITTED: "REGISTRATION_ALREADY_SUBMITTED", + REGISTRATION_NOT_COMPLETE: "REGISTRATION_NOT_COMPLETE", RESOURCE_ALREADY_EXISTS: "RESOURCE_ALREADY_EXISTS", RESOURCE_DELETION_NOT_ALLOWED: "RESOURCE_DELETION_NOT_ALLOWED", RESOURCE_MODIFICATION_NOT_ALLOWED: "RESOURCE_MODIFICATION_NOT_ALLOWED", RESOURCE_NOT_ACTIVE: "RESOURCE_NOT_ACTIVE", RESOURCE_NOT_EMPTY: "RESOURCE_NOT_EMPTY", SELF_MANAGED_OPT_OUTS_MISMATCH: "SELF_MANAGED_OPT_OUTS_MISMATCH", + SENDER_ID_ASSOCIATED_TO_POOL: "SENDER_ID_ASSOCIATED_TO_POOL", + SUBMIT_REGISTRATION_VERSION_NOT_ALLOWED: "SUBMIT_REGISTRATION_VERSION_NOT_ALLOWED", TWO_WAY_CONFIG_MISMATCH: "TWO_WAY_CONFIG_MISMATCH", + VERIFICATION_ALREADY_COMPLETE: "VERIFICATION_ALREADY_COMPLETE", + VERIFICATION_CODE_EXPIRED: "VERIFICATION_CODE_EXPIRED", } as const; /** @@ -236,7 +252,9 @@ export const ResourceType = { PHONE_NUMBER: "phone-number", POOL: "pool", REGISTRATION: "registration", + REGISTRATION_ATTACHMENT: "registration-attachment", SENDER_ID: "sender-id", + VERIFIED_DESTINATION_NUMBER: "verified-destination-number", } as const; /** @@ -359,6 +377,7 @@ export class ResourceNotFoundException extends __BaseException { * @enum */ export const ServiceQuotaExceededExceptionReason = { + ASSOCIATIONS_PER_REGISTRATION: "ASSOCIATIONS_PER_REGISTRATION", CONFIGURATION_SETS_PER_ACCOUNT: "CONFIGURATION_SETS_PER_ACCOUNT", DAILY_DESTINATION_CALL_LIMIT: "DAILY_DESTINATION_CALL_LIMIT", EVENT_DESTINATIONS_PER_CONFIGURATION_SET: "EVENT_DESTINATIONS_PER_CONFIGURATION_SET", @@ -371,7 +390,14 @@ export const ServiceQuotaExceededExceptionReason = { PHONE_NUMBERS_PER_ACCOUNT: "PHONE_NUMBERS_PER_ACCOUNT", PHONE_NUMBERS_PER_REGISTRATION: "PHONE_NUMBERS_PER_REGISTRATION", POOLS_PER_ACCOUNT: "POOLS_PER_ACCOUNT", + REGISTRATIONS_PER_ACCOUNT: "REGISTRATIONS_PER_ACCOUNT", + REGISTRATION_ATTACHMENTS_CREATED_PER_DAY: "REGISTRATION_ATTACHMENTS_CREATED_PER_DAY", + REGISTRATION_ATTACHMENTS_PER_ACCOUNT: "REGISTRATION_ATTACHMENTS_PER_ACCOUNT", + REGISTRATION_VERSIONS_CREATED_PER_DAY: "REGISTRATION_VERSIONS_CREATED_PER_DAY", + SENDER_IDS_PER_ACCOUNT: "SENDER_IDS_PER_ACCOUNT", TAGS_PER_RESOURCE: "TAGS_PER_RESOURCE", + VERIFICATION_ATTEMPTS_PER_DAY: "VERIFICATION_ATTEMPTS_PER_DAY", + VERIFIED_DESTINATION_NUMBERS_PER_ACCOUNT: "VERIFIED_DESTINATION_NUMBERS_PER_ACCOUNT", } as const; /** @@ -458,6 +484,7 @@ export interface ValidationExceptionField { * @enum */ export const ValidationExceptionReason = { + ATTACHMENT_TYPE_NOT_SUPPORTED: "ATTACHMENT_TYPE_NOT_SUPPORTED", CANNOT_ADD_OPTED_OUT_NUMBER: "CANNOT_ADD_OPTED_OUT_NUMBER", CANNOT_PARSE: "CANNOT_PARSE", COUNTRY_CODE_MISMATCH: "COUNTRY_CODE_MISMATCH", @@ -468,20 +495,33 @@ export const ValidationExceptionReason = { INVALID_IDENTITY_FOR_DESTINATION_COUNTRY: "INVALID_IDENTITY_FOR_DESTINATION_COUNTRY", INVALID_NEXT_TOKEN: "INVALID_NEXT_TOKEN", INVALID_PARAMETER: "INVALID_PARAMETER", + INVALID_REGISTRATION_ASSOCIATION: "INVALID_REGISTRATION_ASSOCIATION", + INVALID_REQUEST: "INVALID_REQUEST", + MAXIMUM_SIZE_EXCEEDED: "MAXIMUM_SIZE_EXCEEDED", MISSING_PARAMETER: "MISSING_PARAMETER", OTHER: "OTHER", PARAMETERS_CANNOT_BE_USED_TOGETHER: "PARAMETERS_CANNOT_BE_USED_TOGETHER", PHONE_NUMBER_CANNOT_BE_OPTED_IN: "PHONE_NUMBER_CANNOT_BE_OPTED_IN", PHONE_NUMBER_CANNOT_BE_RELEASED: "PHONE_NUMBER_CANNOT_BE_RELEASED", PRICE_OVER_THRESHOLD: "PRICE_OVER_THRESHOLD", + REGISTRATION_FIELD_CANNOT_BE_DELETED: "REGISTRATION_FIELD_CANNOT_BE_DELETED", REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT: "REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT", + RESOURCE_NOT_ACCESSIBLE: "RESOURCE_NOT_ACCESSIBLE", SENDER_ID_NOT_REGISTERED: "SENDER_ID_NOT_REGISTERED", SENDER_ID_NOT_SUPPORTED: "SENDER_ID_NOT_SUPPORTED", + SENDER_ID_REQUIRES_REGISTRATION: "SENDER_ID_REQUIRES_REGISTRATION", + TWO_WAY_CHANNEL_NOT_PRESENT: "TWO_WAY_CHANNEL_NOT_PRESENT", TWO_WAY_NOT_ENABLED: "TWO_WAY_NOT_ENABLED", TWO_WAY_NOT_SUPPORTED_IN_COUNTRY: "TWO_WAY_NOT_SUPPORTED_IN_COUNTRY", TWO_WAY_NOT_SUPPORTED_IN_REGION: "TWO_WAY_NOT_SUPPORTED_IN_REGION", TWO_WAY_TOPIC_NOT_PRESENT: "TWO_WAY_TOPIC_NOT_PRESENT", UNKNOWN_OPERATION: "UNKNOWN_OPERATION", + UNKNOWN_REGISTRATION_FIELD: "UNKNOWN_REGISTRATION_FIELD", + UNKNOWN_REGISTRATION_SECTION: "UNKNOWN_REGISTRATION_SECTION", + UNKNOWN_REGISTRATION_TYPE: "UNKNOWN_REGISTRATION_TYPE", + UNKNOWN_REGISTRATION_VERSION: "UNKNOWN_REGISTRATION_VERSION", + VERIFICATION_CODE_MISMATCH: "VERIFICATION_CODE_MISMATCH", + VOICE_CAPABILITY_NOT_AVAILABLE: "VOICE_CAPABILITY_NOT_AVAILABLE", } as const; /** @@ -524,6 +564,36 @@ export class ValidationException extends __BaseException { } } +/** + * @public + * @enum + */ +export const AttachmentStatus = { + DELETED: "DELETED", + UPLOAD_COMPLETE: "UPLOAD_COMPLETE", + UPLOAD_FAILED: "UPLOAD_FAILED", + UPLOAD_IN_PROGRESS: "UPLOAD_IN_PROGRESS", +} as const; + +/** + * @public + */ +export type AttachmentStatus = (typeof AttachmentStatus)[keyof typeof AttachmentStatus]; + +/** + * @public + * @enum + */ +export const AttachmentUploadErrorReason = { + INTERNAL_ERROR: "INTERNAL_ERROR", +} as const; + +/** + * @public + */ +export type AttachmentUploadErrorReason = + (typeof AttachmentUploadErrorReason)[keyof typeof AttachmentUploadErrorReason]; + /** * @public *

Contains the destination configuration to use when publishing message sending events. @@ -596,7 +666,7 @@ export type MessageType = (typeof MessageType)[keyof typeof MessageType]; * @public *

Contains the delivery stream Amazon Resource Name (ARN), and the ARN of the Identity and Access Management (IAM) role associated with an Kinesis Data Firehose event * destination.

- *

Event destinations, such as Kinesis Data Firehose, are associated with configuration + *

Event destinations, such as Kinesis Data Firehose, are associated with configuration * sets, which enable you to publish message sending events.

*/ export interface KinesisFirehoseDestination { @@ -668,10 +738,8 @@ export interface SnsDestination { /** * @public *

Contains information about an event destination.

- *

Event destinations are associated with configuration sets, which enable you to publish - * message sending events to - * Amazon - * CloudWatch, Amazon Kinesis Data Firehose, or Amazon SNS.

+ *

Event destinations are associated with configuration sets, which enable you to publish + * message sending events to CloudWatch, Kinesis Data Firehose,or Amazon SNS.

*/ export interface EventDestination { /** @@ -689,6 +757,9 @@ export interface EventDestination { /** * @public *

An array of event types that determine which events to log.

+ * + *

The TEXT_SENT event type is not supported.

+ *
*/ MatchingEventTypes: EventType[] | undefined; @@ -854,6 +925,9 @@ export interface CreateEventDestinationRequest { * @public *

An array of event types that determine which events to log. If "ALL" is used, then * Amazon Pinpoint logs every event type.

+ * + *

The TEXT_SENT event type is not supported.

+ *
*/ MatchingEventTypes: EventType[] | undefined; @@ -1047,16 +1121,16 @@ export interface CreatePoolResult { /** * @public *

The current status of the pool.

- *
    + *
      *
    • - *

      CREATING: The pool is currently being created and isn't yet available for + *

      CREATING: The pool is currently being created and isn't yet available for * use.

      *
    • *
    • - *

      ACTIVE: The pool is active and available for use.

      + *

      ACTIVE: The pool is active and available for use.

      *
    • *
    • - *

      DELETING: The pool is being deleted.

      + *

      DELETING: The pool is being deleted.

      *
    • *
    */ @@ -1081,6 +1155,12 @@ export interface CreatePoolResult { */ TwoWayChannelArn?: string; + /** + * @public + *

    An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

    + */ + TwoWayChannelRole?: string; + /** * @public *

    By default this is set to false. When an end recipient sends a message that begins @@ -1126,869 +1206,1064 @@ export interface CreatePoolResult { /** * @public */ -export interface DeleteConfigurationSetRequest { +export interface CreateRegistrationRequest { /** * @public - *

    The name of the configuration set or the configuration set ARN that you want to - * delete. The ConfigurationSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.

    + *

    The type of registration form to create. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions + * action.

    */ - ConfigurationSetName: string | undefined; + RegistrationType: string | undefined; + + /** + * @public + *

    An array of tags (key and value pairs) to associate with the registration.

    + */ + Tags?: Tag[]; + + /** + * @public + *

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + * request. If you don't specify a client token, a randomly generated token is used for the + * request to ensure idempotency.

    + */ + ClientToken?: string; } /** * @public + * @enum */ -export interface DeleteConfigurationSetResult { +export const RegistrationStatus = { + CLOSED: "CLOSED", + COMPLETE: "COMPLETE", + CREATED: "CREATED", + DELETED: "DELETED", + PROVISIONING: "PROVISIONING", + REQUIRES_UPDATES: "REQUIRES_UPDATES", + REVIEWING: "REVIEWING", + SUBMITTED: "SUBMITTED", +} as const; + +/** + * @public + */ +export type RegistrationStatus = (typeof RegistrationStatus)[keyof typeof RegistrationStatus]; + +/** + * @public + */ +export interface CreateRegistrationResult { /** * @public - *

    The Amazon Resource Name (ARN) of the deleted configuration set.

    + *

    The Amazon Resource Name (ARN) for the registration.

    */ - ConfigurationSetArn?: string; + RegistrationArn: string | undefined; /** * @public - *

    The name of the deleted configuration set.

    + *

    The unique identifier for the registration.

    */ - ConfigurationSetName?: string; + RegistrationId: string | undefined; /** * @public - *

    An array of any EventDestination objects that were associated with the deleted - * configuration set.

    + *

    The type of registration form to create. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions + * action.

    */ - EventDestinations?: EventDestination[]; + RegistrationType: string | undefined; /** * @public - *

    The default message type of the configuration set that was deleted.

    + *

    The status of the registration.

    + *
      + *
    • + *

      + * CREATED: Your registration is created but not submitted.

      + *
    • + *
    • + *

      + * SUBMITTED: Your registration has been submitted and is awaiting review.

      + *
    • + *
    • + *

      + * REVIEWING: Your registration has been accepted and is being reviewed.

      + *
    • + *
    • + *

      + * PROVISIONING: Your registration has been approved and your origination identity is being created.

      + *
    • + *
    • + *

      + * COMPLETE: Your registration has been approved and and your origination identity has been created.

      + *
    • + *
    • + *

      + * REQUIRES_UPDATES: You must fix your registration and resubmit it.

      + *
    • + *
    • + *

      + * CLOSED: The phone number or sender ID has been deleted and you must also delete the registration for the number.

      + *
    • + *
    • + *

      + * DELETED: The registration has been deleted.

      + *
    • + *
    */ - DefaultMessageType?: MessageType; + RegistrationStatus: RegistrationStatus | undefined; /** * @public - *

    The default Sender ID of the configuration set that was deleted.

    + *

    The current version number of the registration.

    */ - DefaultSenderId?: string; + CurrentVersionNumber: number | undefined; /** * @public - *

    The time that the deleted configuration set was created in UNIX epoch time format.

    + *

    Metadata about a given registration which is specific to that registration type.

    */ - CreatedTimestamp?: Date; + AdditionalAttributes?: Record; + + /** + * @public + *

    An array of tags (key and value pairs) to associate with the registration.

    + */ + Tags?: Tag[]; + + /** + * @public + *

    The time when the registration was created, in UNIX epoch time format.

    + */ + CreatedTimestamp: Date | undefined; } /** * @public */ -export interface DeleteDefaultMessageTypeRequest { +export interface CreateRegistrationAssociationRequest { /** * @public - *

    The name of the configuration set or the configuration set Amazon Resource Name (ARN) - * to delete the default message type from. The ConfigurationSetName and - * ConfigurationSetArn can be found using the DescribeConfigurationSets - * action.

    + *

    The unique identifier for the registration.

    */ - ConfigurationSetName: string | undefined; + RegistrationId: string | undefined; + + /** + * @public + *

    The unique identifier for the origination identity. For example this could be a PhoneNumberId or SenderId.

    + */ + ResourceId: string | undefined; } /** * @public */ -export interface DeleteDefaultMessageTypeResult { +export interface CreateRegistrationAssociationResult { /** * @public - *

    The Amazon Resource Name (ARN) of the configuration set.

    + *

    The Amazon Resource Name (ARN) for the registration.

    */ - ConfigurationSetArn?: string; + RegistrationArn: string | undefined; /** * @public - *

    The name of the configuration set.

    + *

    The unique identifier for the registration.

    */ - ConfigurationSetName?: string; + RegistrationId: string | undefined; /** * @public - *

    The current message type for the configuration set.

    + *

    The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions + * action.

    */ - MessageType?: MessageType; -} + RegistrationType: string | undefined; -/** - * @public - */ -export interface DeleteDefaultSenderIdRequest { /** * @public - *

    The name of the configuration set or the configuration set Amazon Resource Name (ARN) - * to delete the default sender ID from. The ConfigurationSetName and ConfigurationSetArn - * can be found using the DescribeConfigurationSets action.

    + *

    The Amazon Resource Name (ARN) of the origination identity that is associated with the registration.

    */ - ConfigurationSetName: string | undefined; -} + ResourceArn: string | undefined; -/** - * @public - */ -export interface DeleteDefaultSenderIdResult { /** * @public - *

    The Amazon Resource Name (ARN) of the configuration set.

    + *

    The unique identifier for the origination identity. For example this could be a PhoneNumberId or SenderId.

    */ - ConfigurationSetArn?: string; + ResourceId: string | undefined; /** * @public - *

    The name of the configuration set.

    + *

    The registration type or origination identity type.

    */ - ConfigurationSetName?: string; + ResourceType: string | undefined; /** * @public - *

    The current sender ID for the configuration set.

    + *

    The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

    */ - SenderId?: string; + IsoCountryCode?: string; + + /** + * @public + *

    The phone number associated with the registration in E.164 format.

    + */ + PhoneNumber?: string; } /** * @public */ -export interface DeleteEventDestinationRequest { +export interface CreateRegistrationAttachmentRequest { /** * @public - *

    The name of the configuration set or the configuration set's Amazon Resource Name - * (ARN) to remove the event destination from. The ConfigurateSetName and - * ConfigurationSetArn can be found using the DescribeConfigurationSets - * action.

    + *

    The registration file to upload. The maximum file size is 1MiB and valid file extensions are PDF, JPEG and PNG.

    */ - ConfigurationSetName: string | undefined; + AttachmentBody?: Uint8Array; /** * @public - *

    The name of the event destination to delete.

    + *

    A URL to the required registration file. For example, you can provide the S3 object URL.

    */ - EventDestinationName: string | undefined; + AttachmentUrl?: string; + + /** + * @public + *

    An array of tags (key and value pairs) to associate with the registration attachment.

    + */ + Tags?: Tag[]; + + /** + * @public + *

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + * request. If you don't specify a client token, a randomly generated token is used for the + * request to ensure idempotency.

    + */ + ClientToken?: string; } /** * @public */ -export interface DeleteEventDestinationResult { +export interface CreateRegistrationAttachmentResult { /** * @public - *

    The Amazon Resource Name (ARN) of the configuration set.

    + *

    The Amazon Resource Name (ARN) for the registration attachment.

    */ - ConfigurationSetArn?: string; + RegistrationAttachmentArn: string | undefined; /** * @public - *

    The name of the configuration set the event destination was deleted from.

    + *

    The unique identifier for the registration attachment.

    */ - ConfigurationSetName?: string; + RegistrationAttachmentId: string | undefined; /** * @public - *

    The event destination object that was deleted.

    + *

    The status of the registration attachment.

    + *
      + *
    • + *

      + * UPLOAD_IN_PROGRESS The attachment is being uploaded.

      + *
    • + *
    • + *

      + * UPLOAD_COMPLETE The attachment has been uploaded.

      + *
    • + *
    • + *

      + * UPLOAD_FAILED The attachment failed to uploaded.

      + *
    • + *
    • + *

      + * DELETED The attachment has been deleted..

      + *
    • + *
    */ - EventDestination?: EventDestination; -} + AttachmentStatus: AttachmentStatus | undefined; -/** - * @public - */ -export interface DeleteKeywordRequest { /** * @public - *

    The origination identity to use such as a PhoneNumberId, PhoneNumberArn, PoolId or - * PoolArn. You can use DescribePhoneNumbers to find the values for - * PhoneNumberId and PhoneNumberArn and DescribePools to find the values - * of PoolId and PoolArn.

    + *

    An array of tags (key and value pairs) to associate with the registration attachment.

    */ - OriginationIdentity: string | undefined; + Tags?: Tag[]; /** * @public - *

    The keyword to delete.

    + *

    The time when the registration attachment was created, in UNIX epoch time format.

    */ - Keyword: string | undefined; + CreatedTimestamp: Date | undefined; +} + +/** + * @public + */ +export interface CreateRegistrationVersionRequest { + /** + * @public + *

    The unique identifier for the registration.

    + */ + RegistrationId: string | undefined; } /** * @public * @enum */ -export const KeywordAction = { - AUTOMATIC_RESPONSE: "AUTOMATIC_RESPONSE", - OPT_IN: "OPT_IN", - OPT_OUT: "OPT_OUT", +export const RegistrationVersionStatus = { + APPROVED: "APPROVED", + ARCHIVED: "ARCHIVED", + DENIED: "DENIED", + DISCARDED: "DISCARDED", + DRAFT: "DRAFT", + REVIEWING: "REVIEWING", + REVOKED: "REVOKED", + SUBMITTED: "SUBMITTED", } as const; /** * @public */ -export type KeywordAction = (typeof KeywordAction)[keyof typeof KeywordAction]; +export type RegistrationVersionStatus = (typeof RegistrationVersionStatus)[keyof typeof RegistrationVersionStatus]; /** * @public + *

    The RegistrationVersionStatusHistory object contains the time stamps for when the reservations status changes.

    */ -export interface DeleteKeywordResult { +export interface RegistrationVersionStatusHistory { /** * @public - *

    The PhoneNumberArn or PoolArn that the keyword was associated with.

    + *

    The time when the registration was in the draft state, in UNIX epoch time format.

    */ - OriginationIdentityArn?: string; + DraftTimestamp: Date | undefined; /** * @public - *

    The PhoneNumberId or PoolId that the keyword was associated with.

    + *

    The time when the registration was in the submitted state, in UNIX epoch time format.

    */ - OriginationIdentity?: string; + SubmittedTimestamp?: Date; /** * @public - *

    The keyword that was deleted.

    + *

    The time when the registration was in the reviewing state, in UNIX epoch time format.

    */ - Keyword?: string; + ReviewingTimestamp?: Date; /** * @public - *

    The message that was associated with the deleted keyword.

    + *

    The time when the registration was in the approved state, in UNIX epoch time format.

    */ - KeywordMessage?: string; + ApprovedTimestamp?: Date; /** * @public - *

    The action that was associated with the deleted keyword.

    + *

    The time when the registration was in the discarded state, in UNIX epoch time format.

    */ - KeywordAction?: KeywordAction; -} + DiscardedTimestamp?: Date; -/** - * @public - */ -export interface DeleteOptedOutNumberRequest { /** * @public - *

    The OptOutListName or OptOutListArn to remove the phone number from.

    + *

    The time when the registration was in the denied state, in UNIX epoch time format.

    */ - OptOutListName: string | undefined; + DeniedTimestamp?: Date; /** * @public - *

    The phone number, in E.164 format, to remove from the OptOutList.

    + *

    The time when the registration was in the revoked state, in UNIX epoch time format.

    */ - OptedOutNumber: string | undefined; + RevokedTimestamp?: Date; + + /** + * @public + *

    The time when the registration was in the archived state, in UNIX epoch time format.

    + */ + ArchivedTimestamp?: Date; } /** * @public */ -export interface DeleteOptedOutNumberResult { +export interface CreateRegistrationVersionResult { /** * @public - *

    The OptOutListArn that the phone number was removed from.

    + *

    The Amazon Resource Name (ARN) for the registration.

    */ - OptOutListArn?: string; + RegistrationArn: string | undefined; /** * @public - *

    The OptOutListName that the phone number was removed from.

    + *

    The unique identifier for the registration.

    */ - OptOutListName?: string; + RegistrationId: string | undefined; /** * @public - *

    The phone number that was removed from the OptOutList.

    + *

    The new version number of the registration.

    */ - OptedOutNumber?: string; + VersionNumber: number | undefined; /** * @public - *

    The time that the number was removed at, in UNIX epoch time format.

    + *

    The status of the registration.

    + *
      + *
    • + *

      + * DRAFT: The initial status of a registration version after it’s created.

      + *
    • + *
    • + *

      + * SUBMITTED: Your registration has been submitted.

      + *
    • + *
    • + *

      + * REVIEWING: Your registration has been accepted and is being reviewed.

      + *
    • + *
    • + *

      + * APPROVED: Your registration has been approved.

      + *
    • + *
    • + *

      + * DISCARDED: You've abandon this version of their registration to start over with a new version.

      + *
    • + *
    • + *

      + * DENIED: You must fix your registration and resubmit it.

      + *
    • + *
    • + *

      + * REVOKED: Your previously approved registration has been revoked.

      + *
    • + *
    • + *

      + * ARCHIVED: Your previously approved registration version moves into this status when a more recently submitted version is approved.

      + *
    • + *
    */ - OptedOutTimestamp?: Date; + RegistrationVersionStatus: RegistrationVersionStatus | undefined; /** * @public - *

    This is true if it was the end user who requested their phone number be removed. - *

    - */ - EndUserOptedOut?: boolean; -} - -/** - * @public - */ -export interface DeleteOptOutListRequest { - /** - * @public - *

    The OptOutListName or OptOutListArn of the OptOutList to delete. You can use DescribeOptOutLists to find the values for OptOutListName and - * OptOutListArn.

    + *

    A RegistrationVersionStatusHistory object that contains timestamps for the registration.

    */ - OptOutListName: string | undefined; + RegistrationVersionStatusHistory: RegistrationVersionStatusHistory | undefined; } /** * @public */ -export interface DeleteOptOutListResult { +export interface CreateVerifiedDestinationNumberRequest { /** * @public - *

    The Amazon Resource Name (ARN) of the OptOutList that was removed.

    + *

    The verified destination phone number, in E.164 format.

    */ - OptOutListArn?: string; + DestinationPhoneNumber: string | undefined; /** * @public - *

    The name of the OptOutList that was removed.

    + *

    An array of tags (key and value pairs) to associate with the destination number.

    */ - OptOutListName?: string; + Tags?: Tag[]; /** * @public - *

    The time when the OptOutList was created, in UNIX epoch time format.

    + *

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the + * request. If you don't specify a client token, a randomly generated token is used for the + * request to ensure idempotency.

    */ - CreatedTimestamp?: Date; + ClientToken?: string; } /** * @public + * @enum */ -export interface DeletePoolRequest { - /** - * @public - *

    The PoolId or PoolArn of the pool to delete. You can use DescribePools to find the values for PoolId and PoolArn .

    - */ - PoolId: string | undefined; -} +export const VerificationStatus = { + PENDING: "PENDING", + VERIFIED: "VERIFIED", +} as const; /** * @public */ -export interface DeletePoolResult { +export type VerificationStatus = (typeof VerificationStatus)[keyof typeof VerificationStatus]; + +/** + * @public + */ +export interface CreateVerifiedDestinationNumberResult { /** * @public - *

    The Amazon Resource Name (ARN) of the pool that was deleted.

    + *

    The Amazon Resource Name (ARN) for the verified destination phone number.

    */ - PoolArn?: string; + VerifiedDestinationNumberArn: string | undefined; /** * @public - *

    The PoolId of the pool that was deleted.

    + *

    The unique identifier for the verified destination phone number.

    */ - PoolId?: string; + VerifiedDestinationNumberId: string | undefined; /** * @public - *

    The current status of the pool.

    - *
      - *
    • - *

      CREATING: The pool is currently being created and isn't yet available for - * use.

      - *
    • + *

      The verified destination phone number, in E.164 format.

      + */ + DestinationPhoneNumber: string | undefined; + + /** + * @public + *

      The status of the verified destination phone number.

      + *
        *
      • - *

        ACTIVE: The pool is active and available for use.

        + *

        + * PENDING: The phone number hasn't been verified yet.

        *
      • *
      • - *

        DELETING: The pool is being deleted.

        + *

        + * VERIFIED: The phone number is verified and can receive messages.

        *
      • *
      */ - Status?: PoolStatus; + Status: VerificationStatus | undefined; /** * @public - *

      The message type that was associated with the deleted pool.

      + *

      An array of tags (key and value pairs) to associate with the destination number.

      */ - MessageType?: MessageType; + Tags?: Tag[]; /** * @public - *

      By default this is set to false. When set to true you can receive incoming text - * messages from your end recipients.

      + *

      The time when the verified phone number was created, in UNIX epoch time format.

      */ - TwoWayEnabled?: boolean; + CreatedTimestamp: Date | undefined; +} +/** + * @public + */ +export interface DeleteConfigurationSetRequest { /** * @public - *

      The Amazon Resource Name (ARN) of the TwoWayChannel.

      + *

      The name of the configuration set or the configuration set ARN that you want to + * delete. The ConfigurationSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.

      */ - TwoWayChannelArn?: string; + ConfigurationSetName: string | undefined; +} +/** + * @public + */ +export interface DeleteConfigurationSetResult { /** * @public - *

      By default this is set to false. When an end recipient sends a message that begins - * with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically - * replies with a customizable message and adds the end recipient to the OptOutList. When - * set to true you're responsible for responding to HELP and STOP requests. You're also - * responsible for tracking and honoring opt-out requests.

      + *

      The Amazon Resource Name (ARN) of the deleted configuration set.

      */ - SelfManagedOptOutsEnabled?: boolean; + ConfigurationSetArn?: string; /** * @public - *

      The name of the OptOutList that was associated with the deleted pool.

      + *

      The name of the deleted configuration set.

      */ - OptOutListName?: string; + ConfigurationSetName?: string; /** * @public - *

      Indicates whether shared routes are enabled for the pool.

      + *

      An array of any EventDestination objects that were associated with the deleted + * configuration set.

      */ - SharedRoutesEnabled?: boolean; + EventDestinations?: EventDestination[]; /** * @public - *

      The time when the pool was created, in UNIX epoch time format.

      + *

      The default message type of the configuration set that was deleted.

      */ - CreatedTimestamp?: Date; -} + DefaultMessageType?: MessageType; -/** - * @public - */ -export interface DeleteTextMessageSpendLimitOverrideRequest {} + /** + * @public + *

      The default Sender ID of the configuration set that was deleted.

      + */ + DefaultSenderId?: string; -/** - * @public - */ -export interface DeleteTextMessageSpendLimitOverrideResult { /** * @public - *

      The current monthly limit, in US dollars.

      + *

      The time that the deleted configuration set was created in UNIX epoch time format.

      */ - MonthlyLimit?: number; + CreatedTimestamp?: Date; } /** * @public */ -export interface DeleteVoiceMessageSpendLimitOverrideRequest {} - -/** - * @public - */ -export interface DeleteVoiceMessageSpendLimitOverrideResult { +export interface DeleteDefaultMessageTypeRequest { /** * @public - *

      The current monthly limit, in US dollars.

      + *

      The name of the configuration set or the configuration set Amazon Resource Name (ARN) + * to delete the default message type from. The ConfigurationSetName and + * ConfigurationSetArn can be found using the DescribeConfigurationSets + * action.

      */ - MonthlyLimit?: number; + ConfigurationSetName: string | undefined; } /** * @public */ -export interface DescribeAccountAttributesRequest { +export interface DeleteDefaultMessageTypeResult { /** * @public - *

      The token to be used for the next set of paginated results. You don't need to supply a - * value for this field in the initial request.

      + *

      The Amazon Resource Name (ARN) of the configuration set.

      */ - NextToken?: string; + ConfigurationSetArn?: string; /** * @public - *

      The maximum number of results to return per each request.

      + *

      The name of the configuration set.

      */ - MaxResults?: number; -} + ConfigurationSetName?: string; -/** - * @public - */ -export interface DescribeAccountAttributesResult { /** * @public - *

      An array of AccountAttributes objects.

      + *

      The current message type for the configuration set.

      */ - AccountAttributes?: AccountAttribute[]; + MessageType?: MessageType; +} +/** + * @public + */ +export interface DeleteDefaultSenderIdRequest { /** * @public - *

      The token to be used for the next set of paginated results. If this field is empty - * then there are no more results.

      + *

      The name of the configuration set or the configuration set Amazon Resource Name (ARN) + * to delete the default sender ID from. The ConfigurationSetName and ConfigurationSetArn + * can be found using the DescribeConfigurationSets action.

      */ - NextToken?: string; + ConfigurationSetName: string | undefined; } /** * @public */ -export interface DescribeAccountLimitsRequest { +export interface DeleteDefaultSenderIdResult { /** * @public - *

      The token to be used for the next set of paginated results. You don't need to supply a - * value for this field in the initial request.

      + *

      The Amazon Resource Name (ARN) of the configuration set.

      */ - NextToken?: string; + ConfigurationSetArn?: string; /** * @public - *

      The maximum number of results to return per each request.

      + *

      The name of the configuration set.

      */ - MaxResults?: number; + ConfigurationSetName?: string; + + /** + * @public + *

      The current sender ID for the configuration set.

      + */ + SenderId?: string; } /** * @public */ -export interface DescribeAccountLimitsResult { +export interface DeleteEventDestinationRequest { /** * @public - *

      An array of AccountLimit objects that show the current spend limits.

      + *

      The name of the configuration set or the configuration set's Amazon Resource Name + * (ARN) to remove the event destination from. The ConfigurateSetName and + * ConfigurationSetArn can be found using the DescribeConfigurationSets + * action.

      */ - AccountLimits?: AccountLimit[]; + ConfigurationSetName: string | undefined; /** * @public - *

      The token to be used for the next set of paginated results. If this field is empty - * then there are no more results.

      + *

      The name of the event destination to delete.

      */ - NextToken?: string; + EventDestinationName: string | undefined; } /** * @public */ -export interface DescribeConfigurationSetsRequest { - /** - * @public - *

      An array of strings. Each element can be either a ConfigurationSetName or - * ConfigurationSetArn.

      - */ - ConfigurationSetNames?: string[]; - +export interface DeleteEventDestinationResult { /** * @public - *

      An array of filters to apply to the results that are returned.

      + *

      The Amazon Resource Name (ARN) of the configuration set.

      */ - Filters?: ConfigurationSetFilter[]; + ConfigurationSetArn?: string; /** * @public - *

      The token to be used for the next set of paginated results. You don't need to supply a - * value for this field in the initial request.

      + *

      The name of the configuration set the event destination was deleted from.

      */ - NextToken?: string; + ConfigurationSetName?: string; /** * @public - *

      The maximum number of results to return per each request.

      + *

      The event destination object that was deleted.

      */ - MaxResults?: number; + EventDestination?: EventDestination; } /** * @public */ -export interface DescribeConfigurationSetsResult { +export interface DeleteKeywordRequest { /** * @public - *

      An array of ConfigurationSets objects.

      + *

      The origination identity to use such as a PhoneNumberId, PhoneNumberArn, PoolId or + * PoolArn. You can use DescribePhoneNumbers to find the values for + * PhoneNumberId and PhoneNumberArn and DescribePools to find the values + * of PoolId and PoolArn.

      */ - ConfigurationSets?: ConfigurationSetInformation[]; + OriginationIdentity: string | undefined; /** * @public - *

      The token to be used for the next set of paginated results. If this field is empty - * then there are no more results.

      + *

      The keyword to delete.

      */ - NextToken?: string; + Keyword: string | undefined; } /** * @public * @enum */ -export const KeywordFilterName = { - KEYWORD_ACTION: "keyword-action", +export const KeywordAction = { + AUTOMATIC_RESPONSE: "AUTOMATIC_RESPONSE", + OPT_IN: "OPT_IN", + OPT_OUT: "OPT_OUT", } as const; /** * @public */ -export type KeywordFilterName = (typeof KeywordFilterName)[keyof typeof KeywordFilterName]; +export type KeywordAction = (typeof KeywordAction)[keyof typeof KeywordAction]; /** * @public - *

      The information for keywords that meet a specified criteria.

      */ -export interface KeywordFilter { +export interface DeleteKeywordResult { /** * @public - *

      The name of the attribute to filter on.

      + *

      The PhoneNumberArn or PoolArn that the keyword was associated with.

      */ - Name: KeywordFilterName | undefined; + OriginationIdentityArn?: string; /** * @public - *

      An array values to filter for.

      + *

      The PhoneNumberId or PoolId that the keyword was associated with.

      */ - Values: string[] | undefined; -} + OriginationIdentity?: string; -/** - * @public - */ -export interface DescribeKeywordsRequest { /** * @public - *

      The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or - * SenderIdArn. You can use DescribePhoneNumbers to find the values for - * PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used - * to get the values for SenderId and SenderIdArn.

      + *

      The keyword that was deleted.

      */ - OriginationIdentity: string | undefined; + Keyword?: string; /** * @public - *

      An array of keywords to search for.

      + *

      The message that was associated with the deleted keyword.

      */ - Keywords?: string[]; + KeywordMessage?: string; /** * @public - *

      An array of keyword filters to filter the results.

      + *

      The action that was associated with the deleted keyword.

      */ - Filters?: KeywordFilter[]; + KeywordAction?: KeywordAction; +} +/** + * @public + */ +export interface DeleteOptedOutNumberRequest { /** * @public - *

      The token to be used for the next set of paginated results. You don't need to supply a - * value for this field in the initial request.

      + *

      The OptOutListName or OptOutListArn to remove the phone number from.

      */ - NextToken?: string; + OptOutListName: string | undefined; /** * @public - *

      The maximum number of results to return per each request.

      + *

      The phone number, in E.164 format, to remove from the OptOutList.

      */ - MaxResults?: number; + OptedOutNumber: string | undefined; } /** * @public - *

      The information for all keywords in a pool.

      */ -export interface KeywordInformation { +export interface DeleteOptedOutNumberResult { /** * @public - *

      The keyword as a string.

      + *

      The OptOutListArn that the phone number was removed from.

      */ - Keyword: string | undefined; + OptOutListArn?: string; /** * @public - *

      A custom message that can be used with the keyword.

      + *

      The OptOutListName that the phone number was removed from.

      */ - KeywordMessage: string | undefined; + OptOutListName?: string; /** * @public - *

      The action to perform for the keyword.

      + *

      The phone number that was removed from the OptOutList.

      */ - KeywordAction: KeywordAction | undefined; + OptedOutNumber?: string; + + /** + * @public + *

      The time that the number was removed at, in UNIX epoch time format.

      + */ + OptedOutTimestamp?: Date; + + /** + * @public + *

      This is true if it was the end user who requested their phone number be removed. + *

      + */ + EndUserOptedOut?: boolean; } /** * @public */ -export interface DescribeKeywordsResult { +export interface DeleteOptOutListRequest { /** * @public - *

      The PhoneNumberArn or PoolArn that is associated with the OriginationIdentity.

      + *

      The OptOutListName or OptOutListArn of the OptOutList to delete. You can use DescribeOptOutLists to find the values for OptOutListName and + * OptOutListArn.

      */ - OriginationIdentityArn?: string; + OptOutListName: string | undefined; +} +/** + * @public + */ +export interface DeleteOptOutListResult { /** * @public - *

      The PhoneNumberId or PoolId that is associated with the OriginationIdentity.

      + *

      The Amazon Resource Name (ARN) of the OptOutList that was removed.

      */ - OriginationIdentity?: string; + OptOutListArn?: string; /** * @public - *

      An array of KeywordInformation objects that contain the results.

      + *

      The name of the OptOutList that was removed.

      */ - Keywords?: KeywordInformation[]; + OptOutListName?: string; /** * @public - *

      The token to be used for the next set of paginated results. If this field is empty - * then there are no more results.

      + *

      The time when the OptOutList was created, in UNIX epoch time format.

      */ - NextToken?: string; + CreatedTimestamp?: Date; } /** * @public - * @enum */ -export const OptedOutFilterName = { - END_USER_OPTED_OUT: "end-user-opted-out", -} as const; +export interface DeletePoolRequest { + /** + * @public + *

      The PoolId or PoolArn of the pool to delete. You can use DescribePools to find the values for PoolId and PoolArn .

      + */ + PoolId: string | undefined; +} /** * @public */ -export type OptedOutFilterName = (typeof OptedOutFilterName)[keyof typeof OptedOutFilterName]; +export interface DeletePoolResult { + /** + * @public + *

      The Amazon Resource Name (ARN) of the pool that was deleted.

      + */ + PoolArn?: string; -/** - * @public - *

      The information for opted out numbers that meet a specified criteria.

      - */ -export interface OptedOutFilter { /** * @public - *

      The name of the attribute to filter on.

      + *

      The PoolId of the pool that was deleted.

      */ - Name: OptedOutFilterName | undefined; + PoolId?: string; /** * @public - *

      An array of values to filter for.

      + *

      The current status of the pool.

      + *
        + *
      • + *

        CREATING: The pool is currently being created and isn't yet available for + * use.

        + *
      • + *
      • + *

        ACTIVE: The pool is active and available for use.

        + *
      • + *
      • + *

        DELETING: The pool is being deleted.

        + *
      • + *
      */ - Values: string[] | undefined; -} + Status?: PoolStatus; -/** - * @public - */ -export interface DescribeOptedOutNumbersRequest { /** * @public - *

      The OptOutListName or OptOutListArn of the OptOutList. You can use DescribeOptOutLists to find the values for OptOutListName and - * OptOutListArn.

      + *

      The message type that was associated with the deleted pool.

      */ - OptOutListName: string | undefined; + MessageType?: MessageType; /** * @public - *

      An array of phone numbers to search for in the OptOutList.

      + *

      By default this is set to false. When set to true you can receive incoming text + * messages from your end recipients.

      */ - OptedOutNumbers?: string[]; + TwoWayEnabled?: boolean; /** * @public - *

      An array of OptedOutFilter objects to filter the results on.

      + *

      The Amazon Resource Name (ARN) of the TwoWayChannel.

      */ - Filters?: OptedOutFilter[]; + TwoWayChannelArn?: string; /** * @public - *

      The token to be used for the next set of paginated results. You don't need to supply a - * value for this field in the initial request.

      + *

      An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

      */ - NextToken?: string; + TwoWayChannelRole?: string; /** * @public - *

      The maximum number of results to return per each request.

      + *

      By default this is set to false. When an end recipient sends a message that begins + * with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically + * replies with a customizable message and adds the end recipient to the OptOutList. When + * set to true you're responsible for responding to HELP and STOP requests. You're also + * responsible for tracking and honoring opt-out requests.

      */ - MaxResults?: number; -} + SelfManagedOptOutsEnabled?: boolean; -/** - * @public - *

      The information for an opted out number in an Amazon Web Services account.

      - */ -export interface OptedOutNumberInformation { /** * @public - *

      The phone number that is opted out.

      + *

      The name of the OptOutList that was associated with the deleted pool.

      */ - OptedOutNumber: string | undefined; + OptOutListName?: string; /** * @public - *

      The time that the op tout occurred, in UNIX epoch time format.

      + *

      Indicates whether shared routes are enabled for the pool.

      */ - OptedOutTimestamp: Date | undefined; + SharedRoutesEnabled?: boolean; /** * @public - *

      This is set to true if it was the end recipient that opted out.

      + *

      The time when the pool was created, in UNIX epoch time format.

      */ - EndUserOptedOut: boolean | undefined; + CreatedTimestamp?: Date; } /** * @public */ -export interface DescribeOptedOutNumbersResult { +export interface DeleteRegistrationRequest { /** * @public - *

      The Amazon Resource Name (ARN) of the OptOutList.

      + *

      The unique identifier for the registration.

      */ - OptOutListArn?: string; + RegistrationId: string | undefined; +} +/** + * @public + */ +export interface DeleteRegistrationResult { /** * @public - *

      The name of the OptOutList.

      + *

      The Amazon Resource Name (ARN) for the registration.

      */ - OptOutListName?: string; + RegistrationArn: string | undefined; /** * @public - *

      An array of OptedOutNumbersInformation objects that provide information about the - * requested OptedOutNumbers.

      + *

      The unique identifier for the registration.

      */ - OptedOutNumbers?: OptedOutNumberInformation[]; + RegistrationId: string | undefined; /** * @public - *

      The token to be used for the next set of paginated results. If this field is empty - * then there are no more results.

      + *

      The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions + * action.

      */ - NextToken?: string; -} + RegistrationType: string | undefined; -/** - * @public - */ -export interface DescribeOptOutListsRequest { /** * @public - *

      The OptOutLists to show the details of. This is an array of strings that can be either - * the OptOutListName or OptOutListArn.

      + *

      The status of the registration.

      + *
        + *
      • + *

        + * CREATED: Your registration is created but not submitted.

        + *
      • + *
      • + *

        + * SUBMITTED: Your registration has been submitted and is awaiting review.

        + *
      • + *
      • + *

        + * REVIEWING: Your registration has been accepted and is being reviewed.

        + *
      • + *
      • + *

        + * PROVISIONING: Your registration has been approved and your origination identity is being created.

        + *
      • + *
      • + *

        + * COMPLETE: Your registration has been approved and and your origination identity has been created.

        + *
      • + *
      • + *

        + * REQUIRES_UPDATES: You must fix your registration and resubmit it.

        + *
      • + *
      • + *

        + * CLOSED: The phone number or sender ID has been deleted and you must also delete the registration for the number.

        + *
      • + *
      • + *

        + * DELETED: The registration has been deleted.

        + *
      • + *
      */ - OptOutListNames?: string[]; + RegistrationStatus: RegistrationStatus | undefined; /** * @public - *

      The token to be used for the next set of paginated results. You don't need to supply a - * value for this field in the initial request.

      + *

      The current version number of the registration.

      */ - NextToken?: string; + CurrentVersionNumber: number | undefined; /** * @public - *

      The maximum number of results to return per each request.

      + *

      The version number of the registration that was approved.

      */ - MaxResults?: number; -} + ApprovedVersionNumber?: number; -/** - * @public - *

      The information for all OptOutList in an Amazon Web Services account.

      - */ -export interface OptOutListInformation { /** * @public - *

      The Amazon Resource Name (ARN) of the OptOutList.

      + *

      The latest version number of the registration that was denied.

      */ - OptOutListArn: string | undefined; + LatestDeniedVersionNumber?: number; /** * @public - *

      The name of the OptOutList.

      + *

      Metadata about a given registration which is specific to that registration type.

      */ - OptOutListName: string | undefined; + AdditionalAttributes?: Record; /** * @public - *

      The time when the OutOutList was created, in UNIX epoch time format.

      + *

      The time when the registration was created, in UNIX epoch time format.

      */ CreatedTimestamp: Date | undefined; } @@ -1996,167 +2271,2412 @@ export interface OptOutListInformation { /** * @public */ -export interface DescribeOptOutListsResult { - /** - * @public - *

      An array of OptOutListInformation objects that contain the details for the requested - * OptOutLists.

      - */ - OptOutLists?: OptOutListInformation[]; - +export interface DeleteRegistrationAttachmentRequest { /** * @public - *

      The token to be used for the next set of paginated results. If this field is empty - * then there are no more results.

      + *

      The unique identifier for the registration attachment.

      */ - NextToken?: string; + RegistrationAttachmentId: string | undefined; } -/** - * @public - * @enum - */ -export const PhoneNumberFilterName = { - DELETION_PROTECTION_ENABLED: "deletion-protection-enabled", - ISO_COUNTRY_CODE: "iso-country-code", - MESSAGE_TYPE: "message-type", - NUMBER_CAPABILITY: "number-capability", - NUMBER_TYPE: "number-type", - OPT_OUT_LIST_NAME: "opt-out-list-name", - SELF_MANAGED_OPT_OUTS_ENABLED: "self-managed-opt-outs-enabled", - STATUS: "status", - TWO_WAY_ENABLED: "two-way-enabled", -} as const; - /** * @public */ -export type PhoneNumberFilterName = (typeof PhoneNumberFilterName)[keyof typeof PhoneNumberFilterName]; +export interface DeleteRegistrationAttachmentResult { + /** + * @public + *

      The Amazon Resource Name (ARN) for the registration attachment.

      + */ + RegistrationAttachmentArn: string | undefined; -/** + /** + * @public + *

      The unique identifier for the registration attachment.

      + */ + RegistrationAttachmentId: string | undefined; + + /** + * @public + *

      The status of the registration attachment.

      + *
        + *
      • + *

        + * UPLOAD_IN_PROGRESS The attachment is being uploaded.

        + *
      • + *
      • + *

        + * UPLOAD_COMPLETE The attachment has been uploaded.

        + *
      • + *
      • + *

        + * UPLOAD_FAILED The attachment failed to uploaded.

        + *
      • + *
      • + *

        + * DELETED The attachment has been deleted..

        + *
      • + *
      + */ + AttachmentStatus: AttachmentStatus | undefined; + + /** + * @public + *

      The error message if the upload failed.

      + */ + AttachmentUploadErrorReason?: AttachmentUploadErrorReason; + + /** + * @public + *

      The time when the registration attachment was created, in UNIX epoch time format.

      + */ + CreatedTimestamp: Date | undefined; +} + +/** + * @public + */ +export interface DeleteRegistrationFieldValueRequest { + /** + * @public + *

      The unique identifier for the registration.

      + */ + RegistrationId: string | undefined; + + /** + * @public + *

      The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.

      + */ + FieldPath: string | undefined; +} + +/** + * @public + */ +export interface DeleteRegistrationFieldValueResult { + /** + * @public + *

      The Amazon Resource Name (ARN) for the registration.

      + */ + RegistrationArn: string | undefined; + + /** + * @public + *

      The unique identifier for the registration.

      + */ + RegistrationId: string | undefined; + + /** + * @public + *

      The version number of the registration.

      + */ + VersionNumber: number | undefined; + + /** + * @public + *

      The path to the registration form field.

      + */ + FieldPath: string | undefined; + + /** + * @public + *

      An array of values for the form field.

      + */ + SelectChoices?: string[]; + + /** + * @public + *

      The text data for a free form field.

      + */ + TextValue?: string; + + /** + * @public + *

      The unique identifier for the registration attachment.

      + */ + RegistrationAttachmentId?: string; +} + +/** + * @public + */ +export interface DeleteTextMessageSpendLimitOverrideRequest {} + +/** + * @public + */ +export interface DeleteTextMessageSpendLimitOverrideResult { + /** + * @public + *

      The current monthly limit, in US dollars.

      + */ + MonthlyLimit?: number; +} + +/** + * @public + */ +export interface DeleteVerifiedDestinationNumberRequest { + /** + * @public + *

      The unique identifier for the verified destination phone number.

      + */ + VerifiedDestinationNumberId: string | undefined; +} + +/** + * @public + */ +export interface DeleteVerifiedDestinationNumberResult { + /** + * @public + *

      The Amazon Resource Name (ARN) for the verified destination phone number.

      + */ + VerifiedDestinationNumberArn: string | undefined; + + /** + * @public + *

      The unique identifier for the verified destination phone number.

      + */ + VerifiedDestinationNumberId: string | undefined; + + /** + * @public + *

      The verified destination phone number, in E.164 format.

      + */ + DestinationPhoneNumber: string | undefined; + + /** + * @public + *

      The time when the destination phone number was created, in UNIX epoch time format.

      + */ + CreatedTimestamp: Date | undefined; +} + +/** + * @public + */ +export interface DeleteVoiceMessageSpendLimitOverrideRequest {} + +/** + * @public + */ +export interface DeleteVoiceMessageSpendLimitOverrideResult { + /** + * @public + *

      The current monthly limit, in US dollars.

      + */ + MonthlyLimit?: number; +} + +/** + * @public + */ +export interface DescribeAccountAttributesRequest { + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; + + /** + * @public + *

      The maximum number of results to return per each request.

      + */ + MaxResults?: number; +} + +/** + * @public + */ +export interface DescribeAccountAttributesResult { + /** + * @public + *

      An array of AccountAttributes objects.

      + */ + AccountAttributes?: AccountAttribute[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. If this field is empty + * then there are no more results.

      + */ + NextToken?: string; +} + +/** + * @public + */ +export interface DescribeAccountLimitsRequest { + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; + + /** + * @public + *

      The maximum number of results to return per each request.

      + */ + MaxResults?: number; +} + +/** + * @public + */ +export interface DescribeAccountLimitsResult { + /** + * @public + *

      An array of AccountLimit objects that show the current spend limits.

      + */ + AccountLimits?: AccountLimit[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. If this field is empty + * then there are no more results.

      + */ + NextToken?: string; +} + +/** + * @public + */ +export interface DescribeConfigurationSetsRequest { + /** + * @public + *

      An array of strings. Each element can be either a ConfigurationSetName or + * ConfigurationSetArn.

      + */ + ConfigurationSetNames?: string[]; + + /** + * @public + *

      An array of filters to apply to the results that are returned.

      + */ + Filters?: ConfigurationSetFilter[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; + + /** + * @public + *

      The maximum number of results to return per each request.

      + */ + MaxResults?: number; +} + +/** + * @public + */ +export interface DescribeConfigurationSetsResult { + /** + * @public + *

      An array of ConfigurationSets objects.

      + */ + ConfigurationSets?: ConfigurationSetInformation[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. If this field is empty + * then there are no more results.

      + */ + NextToken?: string; +} + +/** + * @public + * @enum + */ +export const KeywordFilterName = { + KEYWORD_ACTION: "keyword-action", +} as const; + +/** + * @public + */ +export type KeywordFilterName = (typeof KeywordFilterName)[keyof typeof KeywordFilterName]; + +/** + * @public + *

      The information for keywords that meet a specified criteria.

      + */ +export interface KeywordFilter { + /** + * @public + *

      The name of the attribute to filter on.

      + */ + Name: KeywordFilterName | undefined; + + /** + * @public + *

      An array values to filter for.

      + */ + Values: string[] | undefined; +} + +/** + * @public + */ +export interface DescribeKeywordsRequest { + /** + * @public + *

      The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or + * SenderIdArn. You can use DescribePhoneNumbers to find the values for + * PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used + * to get the values for SenderId and SenderIdArn.

      + */ + OriginationIdentity: string | undefined; + + /** + * @public + *

      An array of keywords to search for.

      + */ + Keywords?: string[]; + + /** + * @public + *

      An array of keyword filters to filter the results.

      + */ + Filters?: KeywordFilter[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; + + /** + * @public + *

      The maximum number of results to return per each request.

      + */ + MaxResults?: number; +} + +/** + * @public + *

      The information for all keywords in a pool.

      + */ +export interface KeywordInformation { + /** + * @public + *

      The keyword as a string.

      + */ + Keyword: string | undefined; + + /** + * @public + *

      A custom message that can be used with the keyword.

      + */ + KeywordMessage: string | undefined; + + /** + * @public + *

      The action to perform for the keyword.

      + */ + KeywordAction: KeywordAction | undefined; +} + +/** + * @public + */ +export interface DescribeKeywordsResult { + /** + * @public + *

      The PhoneNumberArn or PoolArn that is associated with the OriginationIdentity.

      + */ + OriginationIdentityArn?: string; + + /** + * @public + *

      The PhoneNumberId or PoolId that is associated with the OriginationIdentity.

      + */ + OriginationIdentity?: string; + + /** + * @public + *

      An array of KeywordInformation objects that contain the results.

      + */ + Keywords?: KeywordInformation[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. If this field is empty + * then there are no more results.

      + */ + NextToken?: string; +} + +/** + * @public + * @enum + */ +export const OptedOutFilterName = { + END_USER_OPTED_OUT: "end-user-opted-out", +} as const; + +/** + * @public + */ +export type OptedOutFilterName = (typeof OptedOutFilterName)[keyof typeof OptedOutFilterName]; + +/** + * @public + *

      The information for opted out numbers that meet a specified criteria.

      + */ +export interface OptedOutFilter { + /** + * @public + *

      The name of the attribute to filter on.

      + */ + Name: OptedOutFilterName | undefined; + + /** + * @public + *

      An array of values to filter for.

      + */ + Values: string[] | undefined; +} + +/** + * @public + */ +export interface DescribeOptedOutNumbersRequest { + /** + * @public + *

      The OptOutListName or OptOutListArn of the OptOutList. You can use DescribeOptOutLists to find the values for OptOutListName and + * OptOutListArn.

      + */ + OptOutListName: string | undefined; + + /** + * @public + *

      An array of phone numbers to search for in the OptOutList.

      + */ + OptedOutNumbers?: string[]; + + /** + * @public + *

      An array of OptedOutFilter objects to filter the results on.

      + */ + Filters?: OptedOutFilter[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; + + /** + * @public + *

      The maximum number of results to return per each request.

      + */ + MaxResults?: number; +} + +/** + * @public + *

      The information for an opted out number in an Amazon Web Services account.

      + */ +export interface OptedOutNumberInformation { + /** + * @public + *

      The phone number that is opted out.

      + */ + OptedOutNumber: string | undefined; + + /** + * @public + *

      The time that the op tout occurred, in UNIX epoch time format.

      + */ + OptedOutTimestamp: Date | undefined; + + /** + * @public + *

      This is set to true if it was the end recipient that opted out.

      + */ + EndUserOptedOut: boolean | undefined; +} + +/** + * @public + */ +export interface DescribeOptedOutNumbersResult { + /** + * @public + *

      The Amazon Resource Name (ARN) of the OptOutList.

      + */ + OptOutListArn?: string; + + /** + * @public + *

      The name of the OptOutList.

      + */ + OptOutListName?: string; + + /** + * @public + *

      An array of OptedOutNumbersInformation objects that provide information about the + * requested OptedOutNumbers.

      + */ + OptedOutNumbers?: OptedOutNumberInformation[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. If this field is empty + * then there are no more results.

      + */ + NextToken?: string; +} + +/** + * @public + */ +export interface DescribeOptOutListsRequest { + /** + * @public + *

      The OptOutLists to show the details of. This is an array of strings that can be either + * the OptOutListName or OptOutListArn.

      + */ + OptOutListNames?: string[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; + + /** + * @public + *

      The maximum number of results to return per each request.

      + */ + MaxResults?: number; +} + +/** + * @public + *

      The information for all OptOutList in an Amazon Web Services account.

      + */ +export interface OptOutListInformation { + /** + * @public + *

      The Amazon Resource Name (ARN) of the OptOutList.

      + */ + OptOutListArn: string | undefined; + + /** + * @public + *

      The name of the OptOutList.

      + */ + OptOutListName: string | undefined; + + /** + * @public + *

      The time when the OutOutList was created, in UNIX epoch time format.

      + */ + CreatedTimestamp: Date | undefined; +} + +/** + * @public + */ +export interface DescribeOptOutListsResult { + /** + * @public + *

      An array of OptOutListInformation objects that contain the details for the requested + * OptOutLists.

      + */ + OptOutLists?: OptOutListInformation[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. If this field is empty + * then there are no more results.

      + */ + NextToken?: string; +} + +/** + * @public + * @enum + */ +export const PhoneNumberFilterName = { + DELETION_PROTECTION_ENABLED: "deletion-protection-enabled", + ISO_COUNTRY_CODE: "iso-country-code", + MESSAGE_TYPE: "message-type", + NUMBER_CAPABILITY: "number-capability", + NUMBER_TYPE: "number-type", + OPT_OUT_LIST_NAME: "opt-out-list-name", + SELF_MANAGED_OPT_OUTS_ENABLED: "self-managed-opt-outs-enabled", + STATUS: "status", + TWO_WAY_CHANNEL_ARN: "two-way-channel-arn", + TWO_WAY_ENABLED: "two-way-enabled", +} as const; + +/** + * @public + */ +export type PhoneNumberFilterName = (typeof PhoneNumberFilterName)[keyof typeof PhoneNumberFilterName]; + +/** + * @public + *

      The information for a phone number that meets a specified criteria.

      + */ +export interface PhoneNumberFilter { + /** + * @public + *

      The name of the attribute to filter on.

      + */ + Name: PhoneNumberFilterName | undefined; + + /** + * @public + *

      An array values to filter for.

      + */ + Values: string[] | undefined; +} + +/** + * @public + */ +export interface DescribePhoneNumbersRequest { + /** + * @public + *

      The unique identifier of phone numbers to find information about. This is an array of + * strings that can be either the PhoneNumberId or PhoneNumberArn.

      + */ + PhoneNumberIds?: string[]; + + /** + * @public + *

      An array of PhoneNumberFilter objects to filter the results.

      + */ + Filters?: PhoneNumberFilter[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; + + /** + * @public + *

      The maximum number of results to return per each request.

      + */ + MaxResults?: number; +} + +/** + * @public + * @enum + */ +export const NumberCapability = { + SMS: "SMS", + VOICE: "VOICE", +} as const; + +/** + * @public + */ +export type NumberCapability = (typeof NumberCapability)[keyof typeof NumberCapability]; + +/** + * @public + * @enum + */ +export const NumberType = { + LONG_CODE: "LONG_CODE", + SHORT_CODE: "SHORT_CODE", + SIMULATOR: "SIMULATOR", + TEN_DLC: "TEN_DLC", + TOLL_FREE: "TOLL_FREE", +} as const; + +/** + * @public + */ +export type NumberType = (typeof NumberType)[keyof typeof NumberType]; + +/** + * @public + * @enum + */ +export const NumberStatus = { + ACTIVE: "ACTIVE", + ASSOCIATING: "ASSOCIATING", + DELETED: "DELETED", + DISASSOCIATING: "DISASSOCIATING", + PENDING: "PENDING", +} as const; + +/** + * @public + */ +export type NumberStatus = (typeof NumberStatus)[keyof typeof NumberStatus]; + +/** + * @public + *

      The information for a phone number, in E.164 format, in an Amazon Web Services account.

      + */ +export interface PhoneNumberInformation { + /** + * @public + *

      The Amazon Resource Name (ARN) associated with the phone number.

      + */ + PhoneNumberArn: string | undefined; + + /** + * @public + *

      The unique identifier for the phone number.

      + */ + PhoneNumberId?: string; + + /** + * @public + *

      The phone number in E.164 format.

      + */ + PhoneNumber: string | undefined; + + /** + * @public + *

      The current status of the phone number.

      + */ + Status: NumberStatus | undefined; + + /** + * @public + *

      The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. + *

      + */ + IsoCountryCode: string | undefined; + + /** + * @public + *

      The type of message. Valid values are TRANSACTIONAL for messages that are critical or + * time-sensitive and PROMOTIONAL for messages that aren't critical or + * time-sensitive.

      + */ + MessageType: MessageType | undefined; + + /** + * @public + *

      Describes if the origination identity can be used for text messages, voice calls or + * both.

      + */ + NumberCapabilities: NumberCapability[] | undefined; + + /** + * @public + *

      The type of phone number.

      + */ + NumberType: NumberType | undefined; + + /** + * @public + *

      The price, in US dollars, to lease the phone number.

      + */ + MonthlyLeasingPrice: string | undefined; + + /** + * @public + *

      By default this is set to false. When set to true you can receive incoming text + * messages from your end recipients using the TwoWayChannelArn.

      + */ + TwoWayEnabled: boolean | undefined; + + /** + * @public + *

      The Amazon Resource Name (ARN) of the two way channel.

      + */ + TwoWayChannelArn?: string; + + /** + * @public + *

      An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

      + */ + TwoWayChannelRole?: string; + + /** + * @public + *

      When set to false an end recipient sends a message that begins with HELP or STOP to + * one of your dedicated numbers, Amazon Pinpoint automatically replies with a + * customizable message and adds the end recipient to the OptOutList. When set to true + * you're responsible for responding to HELP and STOP requests. You're also responsible for + * tracking and honoring opt-out request. For more information see Self-managed opt-outs + *

      + */ + SelfManagedOptOutsEnabled: boolean | undefined; + + /** + * @public + *

      The name of the OptOutList associated with the phone number.

      + */ + OptOutListName: string | undefined; + + /** + * @public + *

      When set to true the phone number can't be deleted.

      + */ + DeletionProtectionEnabled: boolean | undefined; + + /** + * @public + *

      The unique identifier of the pool associated with the phone number.

      + */ + PoolId?: string; + + /** + * @public + *

      The unique identifier for the registration.

      + */ + RegistrationId?: string; + + /** + * @public + *

      The time when the phone number was created, in UNIX epoch time format.

      + */ + CreatedTimestamp: Date | undefined; +} + +/** + * @public + */ +export interface DescribePhoneNumbersResult { + /** + * @public + *

      An array of PhoneNumberInformation objects that contain the details for the requested + * phone numbers.

      + */ + PhoneNumbers?: PhoneNumberInformation[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. If this field is empty + * then there are no more results.

      + */ + NextToken?: string; +} + +/** + * @public + * @enum + */ +export const PoolFilterName = { + DELETION_PROTECTION_ENABLED: "deletion-protection-enabled", + MESSAGE_TYPE: "message-type", + OPT_OUT_LIST_NAME: "opt-out-list-name", + SELF_MANAGED_OPT_OUTS_ENABLED: "self-managed-opt-outs-enabled", + SHARED_ROUTES_ENABLED: "shared-routes-enabled", + STATUS: "status", + TWO_WAY_CHANNEL_ARN: "two-way-channel-arn", + TWO_WAY_ENABLED: "two-way-enabled", +} as const; + +/** + * @public + */ +export type PoolFilterName = (typeof PoolFilterName)[keyof typeof PoolFilterName]; + +/** + * @public + *

      The information for a pool that meets a specified criteria.

      + */ +export interface PoolFilter { + /** + * @public + *

      The name of the attribute to filter on.

      + */ + Name: PoolFilterName | undefined; + + /** + * @public + *

      An array values to filter for.

      + */ + Values: string[] | undefined; +} + +/** + * @public + */ +export interface DescribePoolsRequest { + /** + * @public + *

      The unique identifier of pools to find. This is an array of strings that can be either + * the PoolId or PoolArn.

      + */ + PoolIds?: string[]; + + /** + * @public + *

      An array of PoolFilter objects to filter the results.

      + */ + Filters?: PoolFilter[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; + + /** + * @public + *

      The maximum number of results to return per each request.

      + */ + MaxResults?: number; +} + +/** + * @public + *

      The information for a pool in an Amazon Web Services account.

      + */ +export interface PoolInformation { + /** + * @public + *

      The Amazon Resource Name (ARN) for the pool.

      + */ + PoolArn: string | undefined; + + /** + * @public + *

      The unique identifier for the pool.

      + */ + PoolId: string | undefined; + + /** + * @public + *

      The current status of the pool.

      + */ + Status: PoolStatus | undefined; + + /** + * @public + *

      The type of message. Valid values are TRANSACTIONAL for messages that are critical or + * time-sensitive and PROMOTIONAL for messages that aren't critical or + * time-sensitive.

      + */ + MessageType: MessageType | undefined; + + /** + * @public + *

      When set to true you can receive incoming text messages from your end recipients using + * the TwoWayChannelArn.

      + */ + TwoWayEnabled: boolean | undefined; + + /** + * @public + *

      The Amazon Resource Name (ARN) of the two way channel.

      + */ + TwoWayChannelArn?: string; + + /** + * @public + *

      An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

      + */ + TwoWayChannelRole?: string; + + /** + * @public + *

      When set to false, an end recipient sends a message that begins with HELP or STOP to + * one of your dedicated numbers, Amazon Pinpoint automatically replies with a + * customizable message and adds the end recipient to the OptOutList. When set to true + * you're responsible for responding to HELP and STOP requests. You're also responsible for + * tracking and honoring opt-out requests. For more information see Self-managed opt-outs + *

      + */ + SelfManagedOptOutsEnabled: boolean | undefined; + + /** + * @public + *

      The name of the OptOutList associated with the pool.

      + */ + OptOutListName: string | undefined; + + /** + * @public + *

      Allows you to enable shared routes on your pool.

      + *

      By default, this is set to False. If you set this value to + * True, your messages are sent using phone numbers or sender IDs + * (depending on the country) that are shared with other Amazon Pinpoint users. In some + * countries, such as the United States, senders aren't allowed to use shared routes and + * must use a dedicated phone number or short code.

      + */ + SharedRoutesEnabled: boolean | undefined; + + /** + * @public + *

      When set to true the pool can't be deleted.

      + */ + DeletionProtectionEnabled: boolean | undefined; + + /** + * @public + *

      The time when the pool was created, in UNIX epoch time format.

      + */ + CreatedTimestamp: Date | undefined; +} + +/** + * @public + */ +export interface DescribePoolsResult { + /** + * @public + *

      An array of PoolInformation objects that contain the details for the requested pools.

      + */ + Pools?: PoolInformation[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. If this field is empty + * then there are no more results.

      + */ + NextToken?: string; +} + +/** + * @public + * @enum + */ +export const RegistrationAttachmentFilterName = { + ATTACHMENT_STATUS: "attachment-status", +} as const; + +/** + * @public + */ +export type RegistrationAttachmentFilterName = + (typeof RegistrationAttachmentFilterName)[keyof typeof RegistrationAttachmentFilterName]; + +/** + * @public + *

      The filter definition for filtering registration attachments that meets a specified criteria.

      + */ +export interface RegistrationAttachmentFilter { + /** + * @public + *

      The name of the attribute to filter on.

      + */ + Name: RegistrationAttachmentFilterName | undefined; + + /** + * @public + *

      An array of values to filter on.

      + */ + Values: string[] | undefined; +} + +/** + * @public + */ +export interface DescribeRegistrationAttachmentsRequest { + /** + * @public + *

      The unique identifier of registration attachments to find. This is an array of RegistrationAttachmentId.

      + */ + RegistrationAttachmentIds?: string[]; + + /** + * @public + *

      An array of RegistrationAttachmentFilter objects to filter the results.

      + */ + Filters?: RegistrationAttachmentFilter[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; + + /** + * @public + *

      The maximum number of results to return per each request.

      + */ + MaxResults?: number; +} + +/** + * @public + *

      Provides information on the specified registration attachments.

      + */ +export interface RegistrationAttachmentsInformation { + /** + * @public + *

      The Amazon Resource Name (ARN) for the registration attachment.

      + */ + RegistrationAttachmentArn: string | undefined; + + /** + * @public + *

      The unique identifier for the registration attachment.

      + */ + RegistrationAttachmentId: string | undefined; + + /** + * @public + *

      The status of the registration attachment.

      + *
        + *
      • + *

        + * UPLOAD_IN_PROGRESS The attachment is being uploaded.

        + *
      • + *
      • + *

        + * UPLOAD_COMPLETE The attachment has been uploaded.

        + *
      • + *
      • + *

        + * UPLOAD_FAILED The attachment failed to uploaded.

        + *
      • + *
      • + *

        + * DELETED The attachment has been deleted..

        + *
      • + *
      + */ + AttachmentStatus: AttachmentStatus | undefined; + + /** + * @public + *

      A description of why the upload didn't successfully complete.

      + */ + AttachmentUploadErrorReason?: AttachmentUploadErrorReason; + + /** + * @public + *

      The time when the registration attachment was created, in UNIX epoch time format.

      + */ + CreatedTimestamp: Date | undefined; +} + +/** + * @public + */ +export interface DescribeRegistrationAttachmentsResult { + /** + * @public + *

      An array of RegistrationAttachments objects that contain the details for the requested registration attachments.

      + */ + RegistrationAttachments: RegistrationAttachmentsInformation[] | undefined; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; +} + +/** + * @public + */ +export interface DescribeRegistrationFieldDefinitionsRequest { + /** + * @public + *

      The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions + * action.

      + */ + RegistrationType: string | undefined; + + /** + * @public + *

      The path to the section of the registration.

      + */ + SectionPath?: string; + + /** + * @public + *

      An array of paths to the registration form field.

      + */ + FieldPaths?: string[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; + + /** + * @public + *

      The maximum number of results to return per each request.

      + */ + MaxResults?: number; +} + +/** + * @public + *

      A description of each select option.

      + */ +export interface SelectOptionDescription { + /** + * @public + *

      The value of the option.

      + */ + Option: string | undefined; + + /** + * @public + *

      The title of the select option.

      + */ + Title?: string; + + /** + * @public + *

      A description of the option meaning.

      + */ + Description?: string; +} + +/** + * @public + *

      Provides help information on the registration field.

      + */ +export interface RegistrationFieldDisplayHints { + /** + * @public + *

      The title of the display hint.

      + */ + Title: string | undefined; + + /** + * @public + *

      A short description of the display hint.

      + */ + ShortDescription: string | undefined; + + /** + * @public + *

      A full description of the display hint.

      + */ + LongDescription?: string; + + /** + * @public + *

      The title of the document the display hint is associated with.

      + */ + DocumentationTitle?: string; + + /** + * @public + *

      The link to the document the display hint is associated with.

      + */ + DocumentationLink?: string; + + /** + * @public + *

      An array of SelectOptionDescription objects.

      + */ + SelectOptionDescriptions?: SelectOptionDescription[]; + + /** + * @public + *

      The validation rules for the text field.

      + */ + TextValidationDescription?: string; + + /** + * @public + *

      Example text of what the value of a field should contain.

      + */ + ExampleTextValue?: string; +} + +/** + * @public + * @enum + */ +export const FieldRequirement = { + CONDITIONAL: "CONDITIONAL", + OPTIONAL: "OPTIONAL", + REQUIRED: "REQUIRED", +} as const; + +/** + * @public + */ +export type FieldRequirement = (typeof FieldRequirement)[keyof typeof FieldRequirement]; + +/** + * @public + * @enum + */ +export const FieldType = { + ATTACHMENT: "ATTACHMENT", + SELECT: "SELECT", + TEXT: "TEXT", +} as const; + +/** + * @public + */ +export type FieldType = (typeof FieldType)[keyof typeof FieldType]; + +/** + * @public + *

      Validation rules for a select field.

      + */ +export interface SelectValidation { + /** + * @public + *

      The minimum number of choices for the select.

      + */ + MinChoices: number | undefined; + + /** + * @public + *

      The maximum number of choices for the select.

      + */ + MaxChoices: number | undefined; + + /** + * @public + *

      An array of strings for the possible selection options.

      + */ + Options: string[] | undefined; +} + +/** + * @public + *

      Validation rules for a text field.

      + */ +export interface TextValidation { + /** + * @public + *

      The minimum number of characters for the text field.

      + */ + MinLength: number | undefined; + + /** + * @public + *

      The maximum number of characters for the text field.

      + */ + MaxLength: number | undefined; + + /** + * @public + *

      The regular expression used to validate the text field.

      + */ + Pattern: string | undefined; +} + +/** + * @public + *

      Provides a description of the specified field.

      + */ +export interface RegistrationFieldDefinition { + /** + * @public + *

      The section path of the field.

      + */ + SectionPath: string | undefined; + + /** + * @public + *

      The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.

      + */ + FieldPath: string | undefined; + + /** + * @public + *

      The type of field.

      + */ + FieldType: FieldType | undefined; + + /** + * @public + *

      Specifies if the field for the registration form is required, conditional or optional.

      + */ + FieldRequirement: FieldRequirement | undefined; + + /** + * @public + *

      The validation rules for a select field.

      + */ + SelectValidation?: SelectValidation; + + /** + * @public + *

      The validation rules for a text field.

      + */ + TextValidation?: TextValidation; + + /** + * @public + *

      An array of RegistrationFieldDisplayHints objects for the field.

      + */ + DisplayHints: RegistrationFieldDisplayHints | undefined; +} + +/** + * @public + */ +export interface DescribeRegistrationFieldDefinitionsResult { + /** + * @public + *

      The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions + * action.

      + */ + RegistrationType: string | undefined; + + /** + * @public + *

      An array of RegistrationFieldDefinitions objects that contain the details for the requested fields.

      + */ + RegistrationFieldDefinitions: RegistrationFieldDefinition[] | undefined; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; +} + +/** + * @public + */ +export interface DescribeRegistrationFieldValuesRequest { + /** + * @public + *

      The unique identifier for the registration.

      + */ + RegistrationId: string | undefined; + + /** + * @public + *

      The version number of the registration.

      + */ + VersionNumber?: number; + + /** + * @public + *

      The path to the section of the registration.

      + */ + SectionPath?: string; + + /** + * @public + *

      An array of paths to the registration form field.

      + */ + FieldPaths?: string[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; + + /** + * @public + *

      The maximum number of results to return per each request.

      + */ + MaxResults?: number; +} + +/** + * @public + *

      Provides the values of the specified field.

      + */ +export interface RegistrationFieldValueInformation { + /** + * @public + *

      The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.

      + */ + FieldPath: string | undefined; + + /** + * @public + *

      An array of values for the form field.

      + */ + SelectChoices?: string[]; + + /** + * @public + *

      The text data for a free form field.

      + */ + TextValue?: string; + + /** + * @public + *

      The unique identifier for the registration attachment.

      + */ + RegistrationAttachmentId?: string; + + /** + * @public + *

      A description of why the registration was denied.

      + */ + DeniedReason?: string; +} + +/** + * @public + */ +export interface DescribeRegistrationFieldValuesResult { + /** + * @public + *

      The Amazon Resource Name (ARN) for the registration.

      + */ + RegistrationArn: string | undefined; + + /** + * @public + *

      The unique identifier for the registration.

      + */ + RegistrationId: string | undefined; + + /** + * @public + *

      The current version of the registration.

      + */ + VersionNumber: number | undefined; + + /** + * @public + *

      An array of RegistrationFieldValues objects that contain the values for the requested registration.

      + */ + RegistrationFieldValues: RegistrationFieldValueInformation[] | undefined; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; +} + +/** + * @public + * @enum + */ +export const RegistrationFilterName = { + REGISTRATION_STATUS: "registration-status", + REGISTRATION_TYPE: "registration-type", +} as const; + +/** + * @public + */ +export type RegistrationFilterName = (typeof RegistrationFilterName)[keyof typeof RegistrationFilterName]; + +/** + * @public + *

      The filter definition for filtering registrations that meets a specified criteria.

      + */ +export interface RegistrationFilter { + /** + * @public + *

      The name of the attribute to filter on.

      + */ + Name: RegistrationFilterName | undefined; + + /** + * @public + *

      An array of values to filter on.

      + */ + Values: string[] | undefined; +} + +/** + * @public + */ +export interface DescribeRegistrationsRequest { + /** + * @public + *

      An array of unique identifiers for each registration.

      + */ + RegistrationIds?: string[]; + + /** + * @public + *

      An array of RegistrationFilter objects to filter the results.

      + */ + Filters?: RegistrationFilter[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; + + /** + * @public + *

      The maximum number of results to return per each request.

      + */ + MaxResults?: number; +} + +/** + * @public + *

      Provides information about the requested registration.

      + */ +export interface RegistrationInformation { + /** + * @public + *

      The Amazon Resource Name (ARN) for the registration.

      + */ + RegistrationArn: string | undefined; + + /** + * @public + *

      The unique identifier for the registration.

      + */ + RegistrationId: string | undefined; + + /** + * @public + *

      The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions + * action.

      + */ + RegistrationType: string | undefined; + + /** + * @public + *

      The status of the registration.

      + *
        + *
      • + *

        + * CREATED: Your registration is created but not submitted.

        + *
      • + *
      • + *

        + * SUBMITTED: Your registration has been submitted and is awaiting review.

        + *
      • + *
      • + *

        + * REVIEWING: Your registration has been accepted and is being reviewed.

        + *
      • + *
      • + *

        + * PROVISIONING: Your registration has been approved and your origination identity is being created.

        + *
      • + *
      • + *

        + * COMPLETE: Your registration has been approved and and your origination identity has been created.

        + *
      • + *
      • + *

        + * REQUIRES_UPDATES: You must fix your registration and resubmit it.

        + *
      • + *
      • + *

        + * CLOSED: The phone number or sender ID has been deleted and you must also delete the registration for the number.

        + *
      • + *
      • + *

        + * DELETED: The registration has been deleted.

        + *
      • + *
      + */ + RegistrationStatus: RegistrationStatus | undefined; + + /** + * @public + *

      The current version number of the registration.

      + */ + CurrentVersionNumber: number | undefined; + + /** + * @public + *

      The version number of the registration that was approved.

      + */ + ApprovedVersionNumber?: number; + + /** + * @public + *

      The latest version number of the registration that was denied.

      + */ + LatestDeniedVersionNumber?: number; + + /** + * @public + *

      Metadata about a given registration which is specific to that registration type.

      + */ + AdditionalAttributes?: Record; + + /** + * @public + *

      The time when the registration was created, in UNIX epoch time format.

      + */ + CreatedTimestamp: Date | undefined; +} + +/** + * @public + */ +export interface DescribeRegistrationsResult { + /** + * @public + *

      An array of RegistrationInformation objects.

      + */ + Registrations: RegistrationInformation[] | undefined; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; +} + +/** + * @public + */ +export interface DescribeRegistrationSectionDefinitionsRequest { + /** + * @public + *

      The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions + * action.

      + */ + RegistrationType: string | undefined; + + /** + * @public + *

      An array of paths for the registration form section.

      + */ + SectionPaths?: string[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; + + /** + * @public + *

      The maximum number of results to return per each request.

      + */ + MaxResults?: number; +} + +/** + * @public + *

      Provides help information on the registration section.

      + */ +export interface RegistrationSectionDisplayHints { + /** + * @public + *

      The title of the display hint.

      + */ + Title: string | undefined; + + /** + * @public + *

      A short description of the display hint.

      + */ + ShortDescription: string | undefined; + + /** + * @public + *

      A full description of the display hint.

      + */ + LongDescription?: string; + + /** + * @public + *

      The title of the document the display hint is associated with.

      + */ + DocumentationTitle?: string; + + /** + * @public + *

      The link to the document the display hint is associated with.

      + */ + DocumentationLink?: string; +} + +/** + * @public + *

      Provides information on the specified section definition.

      + */ +export interface RegistrationSectionDefinition { + /** + * @public + *

      The path to the section of the registration.

      + */ + SectionPath: string | undefined; + + /** + * @public + *

      The path to the section of the registration.

      + */ + DisplayHints: RegistrationSectionDisplayHints | undefined; +} + +/** + * @public + */ +export interface DescribeRegistrationSectionDefinitionsResult { + /** + * @public + *

      The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions + * action.

      + */ + RegistrationType: string | undefined; + + /** + * @public + *

      An array of RegistrationSectionDefinition objects.

      + */ + RegistrationSectionDefinitions: RegistrationSectionDefinition[] | undefined; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; +} + +/** + * @public + * @enum + */ +export const RegistrationTypeFilterName = { + SUPPORTED_ASSOCIATION_ISO_COUNTRY_CODE: "supported-association-iso-country-code", + SUPPORTED_ASSOCIATION_RESOURCE_TYPE: "supported-association-resource-type", +} as const; + +/** + * @public + */ +export type RegistrationTypeFilterName = (typeof RegistrationTypeFilterName)[keyof typeof RegistrationTypeFilterName]; + +/** + * @public + *

      The filter definition for filtering registration types that meets a specified criteria.

      + */ +export interface RegistrationTypeFilter { + /** + * @public + *

      The name of the attribute to filter on.

      + */ + Name: RegistrationTypeFilterName | undefined; + + /** + * @public + *

      An array of values to filter on.

      + */ + Values: string[] | undefined; +} + +/** + * @public + */ +export interface DescribeRegistrationTypeDefinitionsRequest { + /** + * @public + *

      The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions + * action.

      + */ + RegistrationTypes?: string[]; + + /** + * @public + *

      An array of RegistrationFilter objects to filter the results.

      + */ + Filters?: RegistrationTypeFilter[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; + + /** + * @public + *

      The maximum number of results to return per each request.

      + */ + MaxResults?: number; +} + +/** + * @public + *

      Provides help information on the registration type.

      + */ +export interface RegistrationTypeDisplayHints { + /** + * @public + *

      The title of the display hint.

      + */ + Title: string | undefined; + + /** + * @public + *

      A short description of the display hint.

      + */ + ShortDescription?: string; + + /** + * @public + *

      A full description of the display hint.

      + */ + LongDescription?: string; + + /** + * @public + *

      The title of the document the display hint is associated with.

      + */ + DocumentationTitle?: string; + + /** + * @public + *

      The link to the document the display hint is associated with.

      + */ + DocumentationLink?: string; +} + +/** + * @public + * @enum + */ +export const RegistrationAssociationBehavior = { + ASSOCIATE_AFTER_COMPLETE: "ASSOCIATE_AFTER_COMPLETE", + ASSOCIATE_BEFORE_SUBMIT: "ASSOCIATE_BEFORE_SUBMIT", + ASSOCIATE_ON_APPROVAL: "ASSOCIATE_ON_APPROVAL", +} as const; + +/** + * @public + */ +export type RegistrationAssociationBehavior = + (typeof RegistrationAssociationBehavior)[keyof typeof RegistrationAssociationBehavior]; + +/** + * @public + * @enum + */ +export const RegistrationDisassociationBehavior = { + DELETE_REGISTRATION_DISASSOCIATES: "DELETE_REGISTRATION_DISASSOCIATES", + DISASSOCIATE_ALL_ALLOWS_DELETE_REGISTRATION: "DISASSOCIATE_ALL_ALLOWS_DELETE_REGISTRATION", + DISASSOCIATE_ALL_CLOSES_REGISTRATION: "DISASSOCIATE_ALL_CLOSES_REGISTRATION", +} as const; + +/** + * @public + */ +export type RegistrationDisassociationBehavior = + (typeof RegistrationDisassociationBehavior)[keyof typeof RegistrationDisassociationBehavior]; + +/** + * @public + *

      The processing rules for when a registration can be associated with an origination identity and disassociated from an origination identity.

      + */ +export interface SupportedAssociation { + /** + * @public + *

      Defines the behavior of when an origination identity and registration can be associated with each other.

      + */ + ResourceType: string | undefined; + + /** + * @public + *

      The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

      + */ + IsoCountryCode?: string; + + /** + * @public + *

      The association behavior.

      + *
        + *
      • + *

        + * ASSOCIATE_BEFORE_SUBMIT The origination identity has to be supplied when creating a registration.

        + *
      • + *
      • + *

        + * ASSOCIATE_ON_APPROVAL This applies to all short code registrations. The short code will be automatically provisioned once the registration is approved.

        + *
      • + *
      • + *

        + * ASSOCIATE_AFTER_COMPLETE This applies to phone number registrations when you must complete a registration first, then associate one or more phone numbers later. For example 10DLC campaigns and long codes.

        + *
      • + *
      + */ + AssociationBehavior: RegistrationAssociationBehavior | undefined; + + /** + * @public + *

      The disassociation behavior.

      + *
        + *
      • + *

        + * DISASSOCIATE_ALL_CLOSES_REGISTRATION All origination identities must be disassociated from the registration before the registration can be closed.

        + *
      • + *
      • + *

        + * DISASSOCIATE_ALL_ALLOWS_DELETE_REGISTRATION All origination identities must be disassociated from the registration before the registration can be deleted.

        + *
      • + *
      • + *

        + * DELETE_REGISTRATION_DISASSOCIATES The registration can be deleted and all origination identities will be disasscoiated.

        + *
      • + *
      + */ + DisassociationBehavior: RegistrationDisassociationBehavior | undefined; +} + +/** + * @public + *

      Provides information on the supported registration type.

      + */ +export interface RegistrationTypeDefinition { + /** + * @public + *

      The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions + * action.

      + */ + RegistrationType: string | undefined; + + /** + * @public + *

      The supported association behavior for the registration type.

      + */ + SupportedAssociations?: SupportedAssociation[]; + + /** + * @public + *

      Provides help information on the registration.

      + */ + DisplayHints: RegistrationTypeDisplayHints | undefined; +} + +/** + * @public + */ +export interface DescribeRegistrationTypeDefinitionsResult { + /** + * @public + *

      The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions + * action.

      + */ + RegistrationTypeDefinitions: RegistrationTypeDefinition[] | undefined; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; +} + +/** + * @public + * @enum + */ +export const RegistrationVersionFilterName = { + REGISTRATION_VERSION_STATUS: "registration-version-status", +} as const; + +/** + * @public + */ +export type RegistrationVersionFilterName = + (typeof RegistrationVersionFilterName)[keyof typeof RegistrationVersionFilterName]; + +/** + * @public + *

      The filter definition for filtering registration versions that meets a specified criteria.

      + */ +export interface RegistrationVersionFilter { + /** + * @public + *

      The name of the attribute to filter on.

      + */ + Name: RegistrationVersionFilterName | undefined; + + /** + * @public + *

      An array of values to filter on.

      + */ + Values: string[] | undefined; +} + +/** + * @public + */ +export interface DescribeRegistrationVersionsRequest { + /** + * @public + *

      The unique identifier for the registration.

      + */ + RegistrationId: string | undefined; + + /** + * @public + *

      An array of registration version numbers.

      + */ + VersionNumbers?: number[]; + + /** + * @public + *

      An array of RegistrationVersionFilter objects to filter the results.

      + */ + Filters?: RegistrationVersionFilter[]; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; + + /** + * @public + *

      The maximum number of results to return per each request.

      + */ + MaxResults?: number; +} + +/** * @public - *

      The information for a phone number that meets a specified criteria.

      + *

      Provides the reason a registration was rejected.

      */ -export interface PhoneNumberFilter { +export interface RegistrationDeniedReasonInformation { /** * @public - *

      The name of the attribute to filter on.

      + *

      The reason a registration was rejected.

      */ - Name: PhoneNumberFilterName | undefined; + Reason: string | undefined; /** * @public - *

      An array values to filter for.

      + *

      A short description of the rejection reason.

      */ - Values: string[] | undefined; + ShortDescription: string | undefined; + + /** + * @public + *

      A long description of the rejection reason.

      + */ + LongDescription?: string; + + /** + * @public + *

      The title of the document.

      + */ + DocumentationTitle?: string; + + /** + * @public + *

      The link to the document.

      + */ + DocumentationLink?: string; } /** * @public + *

      Provides information about the specified version of the registration.

      */ -export interface DescribePhoneNumbersRequest { +export interface RegistrationVersionInformation { /** * @public - *

      The unique identifier of phone numbers to find information about. This is an array of - * strings that can be either the PhoneNumberId or PhoneNumberArn.

      + *

      The version number of the registration.

      */ - PhoneNumberIds?: string[]; + VersionNumber: number | undefined; /** * @public - *

      An array of PhoneNumberFilter objects to filter the results.

      + *

      The status of the registration.

      + *
        + *
      • + *

        + * DRAFT: The initial status of a registration version after it’s created.

        + *
      • + *
      • + *

        + * SUBMITTED: Your registration has been submitted.

        + *
      • + *
      • + *

        + * REVIEWING: Your registration has been accepted and is being reviewed.

        + *
      • + *
      • + *

        + * APPROVED: Your registration has been approved.

        + *
      • + *
      • + *

        + * DISCARDED: You've abandon this version of their registration to start over with a new version.

        + *
      • + *
      • + *

        + * DENIED: You must fix your registration and resubmit it.

        + *
      • + *
      • + *

        + * REVOKED: Your previously approved registration has been revoked.

        + *
      • + *
      • + *

        + * ARCHIVED: Your previously approved registration version moves into this status when a more recently submitted version is approved.

        + *
      • + *
      */ - Filters?: PhoneNumberFilter[]; + RegistrationVersionStatus: RegistrationVersionStatus | undefined; /** * @public - *

      The token to be used for the next set of paginated results. You don't need to supply a - * value for this field in the initial request.

      + *

      The RegistrationVersionStatusHistory object contains the time stamps for when the reservations status changes.

      */ - NextToken?: string; + RegistrationVersionStatusHistory: RegistrationVersionStatusHistory | undefined; /** * @public - *

      The maximum number of results to return per each request.

      + *

      An array of RegistrationDeniedReasonInformation objects.

      */ - MaxResults?: number; + DeniedReasons?: RegistrationDeniedReasonInformation[]; } /** * @public - * @enum */ -export const NumberCapability = { - SMS: "SMS", - VOICE: "VOICE", -} as const; +export interface DescribeRegistrationVersionsResult { + /** + * @public + *

      The Amazon Resource Name (ARN) for the registration.

      + */ + RegistrationArn: string | undefined; -/** - * @public - */ -export type NumberCapability = (typeof NumberCapability)[keyof typeof NumberCapability]; + /** + * @public + *

      The unique identifier for the registration.

      + */ + RegistrationId: string | undefined; + + /** + * @public + *

      An array of RegistrationVersions objects.

      + */ + RegistrationVersions: RegistrationVersionInformation[] | undefined; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      + */ + NextToken?: string; +} /** * @public * @enum */ -export const NumberType = { - LONG_CODE: "LONG_CODE", - SHORT_CODE: "SHORT_CODE", - TEN_DLC: "TEN_DLC", - TOLL_FREE: "TOLL_FREE", +export const SenderIdFilterName = { + DELETION_PROTECTION_ENABLED: "deletion-protection-enabled", + ISO_COUNTRY_CODE: "iso-country-code", + MESSAGE_TYPE: "message-type", + REGISTERED: "registered", + SENDER_ID: "sender-id", } as const; /** * @public */ -export type NumberType = (typeof NumberType)[keyof typeof NumberType]; +export type SenderIdFilterName = (typeof SenderIdFilterName)[keyof typeof SenderIdFilterName]; /** * @public - * @enum + *

      The information for a sender ID that meets a specified criteria.

      */ -export const NumberStatus = { - ACTIVE: "ACTIVE", - ASSOCIATING: "ASSOCIATING", - DELETED: "DELETED", - DISASSOCIATING: "DISASSOCIATING", - PENDING: "PENDING", -} as const; +export interface SenderIdFilter { + /** + * @public + *

      The name of the attribute to filter on.

      + */ + Name: SenderIdFilterName | undefined; + + /** + * @public + *

      An array of values to filter for.

      + */ + Values: string[] | undefined; +} /** * @public + *

      The alphanumeric sender ID in a specific country that you want to describe. For more + * information on sender IDs see Requesting + * sender IDs for SMS messaging with Amazon Pinpoint + * in the Amazon Pinpoint User Guide.

      */ -export type NumberStatus = (typeof NumberStatus)[keyof typeof NumberStatus]; +export interface SenderIdAndCountry { + /** + * @public + *

      The unique identifier of the sender.

      + */ + SenderId: string | undefined; + + /** + * @public + *

      The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. + *

      + */ + IsoCountryCode: string | undefined; +} /** * @public - *

      The information for a phone number in an Amazon Web Services account.

      */ -export interface PhoneNumberInformation { +export interface DescribeSenderIdsRequest { /** * @public - *

      The Amazon Resource Name (ARN) associated with the phone number.

      + *

      An array of SenderIdAndCountry objects to search for.

      */ - PhoneNumberArn: string | undefined; + SenderIds?: SenderIdAndCountry[]; /** * @public - *

      The unique identifier for the phone number.

      + *

      An array of SenderIdFilter objects to filter the results.

      */ - PhoneNumberId?: string; + Filters?: SenderIdFilter[]; /** * @public - *

      The phone number in E.164 format.

      + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      */ - PhoneNumber: string | undefined; + NextToken?: string; /** * @public - *

      The current status of the phone number.

      + *

      The maximum number of results to return per each request.

      */ - Status: NumberStatus | undefined; + MaxResults?: number; +} + +/** + * @public + *

      The information for all SenderIds in an Amazon Web Services account.

      + */ +export interface SenderIdInformation { + /** + * @public + *

      The Amazon Resource Name (ARN) associated with the SenderId.

      + */ + SenderIdArn: string | undefined; + + /** + * @public + *

      The alphanumeric sender ID in a specific country that you'd like to describe.

      + */ + SenderId: string | undefined; /** * @public @@ -2171,86 +4691,133 @@ export interface PhoneNumberInformation { * time-sensitive and PROMOTIONAL for messages that aren't critical or * time-sensitive.

      */ - MessageType: MessageType | undefined; + MessageTypes: MessageType[] | undefined; /** * @public - *

      Describes if the origination identity can be used for text messages, voice calls or - * both.

      + *

      The monthly leasing price, in US dollars.

      */ - NumberCapabilities: NumberCapability[] | undefined; + MonthlyLeasingPrice: string | undefined; /** * @public - *

      The type of phone number.

      + *

      By default this is set to false. When set to true the sender ID can't be deleted.

      */ - NumberType: NumberType | undefined; + DeletionProtectionEnabled: boolean | undefined; /** * @public - *

      The price, in US dollars, to lease the phone number.

      + *

      True if the sender ID is registered.

      */ - MonthlyLeasingPrice: string | undefined; + Registered: boolean | undefined; /** * @public - *

      By default this is set to false. When set to true you can receive incoming text - * messages from your end recipients using the TwoWayChannelArn.

      + *

      The unique identifier for the registration.

      */ - TwoWayEnabled: boolean | undefined; + RegistrationId?: string; +} +/** + * @public + */ +export interface DescribeSenderIdsResult { /** * @public - *

      The Amazon Resource Name (ARN) of the two way channel.

      + *

      An array of SernderIdInformation objects that contain the details for the requested + * SenderIds.

      */ - TwoWayChannelArn?: string; + SenderIds?: SenderIdInformation[]; /** * @public - *

      When set to false an end recipient sends a message that begins with HELP or STOP to - * one of your dedicated numbers, Amazon Pinpoint automatically replies with a - * customizable message and adds the end recipient to the OptOutList. When set to true - * you're responsible for responding to HELP and STOP requests. You're also responsible for - * tracking and honoring opt-out request. For more information see Self-managed opt-outs - *

      + *

      The token to be used for the next set of paginated results. If this field is empty + * then there are no more results.

      */ - SelfManagedOptOutsEnabled: boolean | undefined; + NextToken?: string; +} +/** + * @public + */ +export interface DescribeSpendLimitsRequest { /** * @public - *

      The name of the OptOutList associated with the phone number.

      + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      */ - OptOutListName: string | undefined; + NextToken?: string; /** * @public - *

      When set to true the phone number can't be deleted.

      + *

      The maximum number of results to return per each request.

      */ - DeletionProtectionEnabled: boolean | undefined; + MaxResults?: number; +} + +/** + * @public + * @enum + */ +export const SpendLimitName = { + TEXT_MESSAGE_MONTHLY_SPEND_LIMIT: "TEXT_MESSAGE_MONTHLY_SPEND_LIMIT", + VOICE_MESSAGE_MONTHLY_SPEND_LIMIT: "VOICE_MESSAGE_MONTHLY_SPEND_LIMIT", +} as const; + +/** + * @public + */ +export type SpendLimitName = (typeof SpendLimitName)[keyof typeof SpendLimitName]; +/** + * @public + *

      Describes the current Amazon Pinpoint monthly spend limits for sending voice and + * text messages. For more information on increasing your monthly spend limit, see + * Requesting increases to your monthly SMS spending quota for Amazon Pinpoint + * in the Amazon Pinpoint User Guide.

      + */ +export interface SpendLimit { /** * @public - *

      The unique identifier of the pool associated with the phone number.

      + *

      The name for the SpendLimit.

      + */ + Name: SpendLimitName | undefined; + + /** + * @public + *

      The maximum amount of money, in US dollars, that you want to be able to spend sending + * messages each month. This value has to be less than or equal to the amount in + * MaxLimit. To use this custom limit, Overridden must be set + * to true.

      + */ + EnforcedLimit: number | undefined; + + /** + * @public + *

      The maximum amount of money that you are able to spend to send messages each month, + * in US dollars.

      */ - PoolId?: string; + MaxLimit: number | undefined; /** * @public - *

      The time when the phone number was created, in UNIX epoch time format.

      + *

      When set to True, the value that has been specified in the + * EnforcedLimit is used to determine the maximum amount in US dollars + * that can be spent to send messages each month, in US dollars.

      */ - CreatedTimestamp: Date | undefined; + Overridden: boolean | undefined; } /** * @public */ -export interface DescribePhoneNumbersResult { +export interface DescribeSpendLimitsResult { /** * @public - *

      An array of PhoneNumberInformation objects that contain the details for the requested - * phone numbers.

      + *

      An array of SpendLimit objects that contain the details for the requested spend + * limits.

      */ - PhoneNumbers?: PhoneNumberInformation[]; + SpendLimits?: SpendLimit[]; /** * @public @@ -2264,35 +4831,30 @@ export interface DescribePhoneNumbersResult { * @public * @enum */ -export const PoolFilterName = { - DELETION_PROTECTION_ENABLED: "deletion-protection-enabled", - MESSAGE_TYPE: "message-type", - OPT_OUT_LIST_NAME: "opt-out-list-name", - SELF_MANAGED_OPT_OUTS_ENABLED: "self-managed-opt-outs-enabled", - SHARED_ROUTES_ENABLED: "shared-routes-enabled", +export const VerifiedDestinationNumberFilterName = { STATUS: "status", - TWO_WAY_ENABLED: "two-way-enabled", } as const; /** * @public */ -export type PoolFilterName = (typeof PoolFilterName)[keyof typeof PoolFilterName]; +export type VerifiedDestinationNumberFilterName = + (typeof VerifiedDestinationNumberFilterName)[keyof typeof VerifiedDestinationNumberFilterName]; /** * @public - *

      The information for a pool that meets a specified criteria.

      + *

      The filter definition for filtering verified destination phone numbers that meets a specified criteria.

      */ -export interface PoolFilter { +export interface VerifiedDestinationNumberFilter { /** * @public *

      The name of the attribute to filter on.

      */ - Name: PoolFilterName | undefined; + Name: VerifiedDestinationNumberFilterName | undefined; /** * @public - *

      An array values to filter for.

      + *

      An array of values to filter on.

      */ Values: string[] | undefined; } @@ -2300,19 +4862,24 @@ export interface PoolFilter { /** * @public */ -export interface DescribePoolsRequest { +export interface DescribeVerifiedDestinationNumbersRequest { /** * @public - *

      The unique identifier of pools to find. This is an array of strings that can be either - * the PoolId or PoolArn.

      + *

      An array of VerifiedDestinationNumberid to retreive.

      */ - PoolIds?: string[]; + VerifiedDestinationNumberIds?: string[]; /** * @public - *

      An array of PoolFilter objects to filter the results.

      + *

      An array of verified destination phone number, in E.164 format.

      */ - Filters?: PoolFilter[]; + DestinationPhoneNumbers?: string[]; + + /** + * @public + *

      An array of VerifiedDestinationNumberFilter objects to filter the results.

      + */ + Filters?: VerifiedDestinationNumberFilter[]; /** * @public @@ -2330,85 +4897,46 @@ export interface DescribePoolsRequest { /** * @public - *

      The information for a pool in an Amazon Web Services account.

      + *

      Provides information about the requested verified destintion phone number.

      */ -export interface PoolInformation { - /** - * @public - *

      The Amazon Resource Name (ARN) for the pool.

      - */ - PoolArn: string | undefined; - - /** - * @public - *

      The unique identifier for the pool.

      - */ - PoolId: string | undefined; - - /** - * @public - *

      The current status of the pool.

      - */ - Status: PoolStatus | undefined; - - /** - * @public - *

      The type of message. Valid values are TRANSACTIONAL for messages that are critical or - * time-sensitive and PROMOTIONAL for messages that aren't critical or - * time-sensitive.

      - */ - MessageType: MessageType | undefined; - - /** - * @public - *

      When set to true you can receive incoming text messages from your end recipients using - * the TwoWayChannelArn.

      - */ - TwoWayEnabled: boolean | undefined; - - /** - * @public - *

      The Amazon Resource Name (ARN) of the two way channel.

      - */ - TwoWayChannelArn?: string; - +export interface VerifiedDestinationNumberInformation { /** * @public - *

      When set to false, an end recipient sends a message that begins with HELP or STOP to - * one of your dedicated numbers, Amazon Pinpoint automatically replies with a - * customizable message and adds the end recipient to the OptOutList. When set to true - * you're responsible for responding to HELP and STOP requests. You're also responsible for - * tracking and honoring opt-out requests. For more information see Self-managed opt-outs - *

      + *

      The Amazon Resource Name (ARN) for the verified destination phone number.

      */ - SelfManagedOptOutsEnabled: boolean | undefined; + VerifiedDestinationNumberArn: string | undefined; /** * @public - *

      The name of the OptOutList associated with the pool.

      + *

      The unique identifier for the verified destination phone number.

      */ - OptOutListName: string | undefined; + VerifiedDestinationNumberId: string | undefined; /** * @public - *

      Allows you to enable shared routes on your pool.

      - *

      By default, this is set to False. If you set this value to - * True, your messages are sent using phone numbers or sender IDs - * (depending on the country) that are shared with other Amazon Pinpoint users. In some - * countries, such as the United States, senders aren't allowed to use shared routes and - * must use a dedicated phone number or short code.

      + *

      The verified destination phone number, in E.164 format.

      */ - SharedRoutesEnabled: boolean | undefined; + DestinationPhoneNumber: string | undefined; /** * @public - *

      When set to true the pool can't be deleted.

      + *

      The status of the verified destination phone number.

      + *
        + *
      • + *

        + * PENDING: The phone number hasn't been verified yet.

        + *
      • + *
      • + *

        + * VERIFIED: The phone number is verified and can receive messages.

        + *
      • + *
      */ - DeletionProtectionEnabled: boolean | undefined; + Status: VerificationStatus | undefined; /** * @public - *

      The time when the pool was created, in UNIX epoch time format.

      + *

      The time when the destination phone number was created, in UNIX epoch time format.

      */ CreatedTimestamp: Date | undefined; } @@ -2416,17 +4944,17 @@ export interface PoolInformation { /** * @public */ -export interface DescribePoolsResult { +export interface DescribeVerifiedDestinationNumbersResult { /** * @public - *

      An array of PoolInformation objects that contain the details for the requested pools.

      + *

      An array of VerifiedDestinationNumberInformation objects

      */ - Pools?: PoolInformation[]; + VerifiedDestinationNumbers: VerifiedDestinationNumberInformation[] | undefined; /** * @public - *

      The token to be used for the next set of paginated results. If this field is empty - * then there are no more results.

      + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      */ NextToken?: string; } @@ -2435,267 +4963,273 @@ export interface DescribePoolsResult { * @public * @enum */ -export const SenderIdFilterName = { - ISO_COUNTRY_CODE: "iso-country-code", - MESSAGE_TYPE: "message-type", - SENDER_ID: "sender-id", +export const DestinationCountryParameterKey = { + IN_ENTITY_ID: "IN_ENTITY_ID", + IN_TEMPLATE_ID: "IN_TEMPLATE_ID", } as const; /** * @public */ -export type SenderIdFilterName = (typeof SenderIdFilterName)[keyof typeof SenderIdFilterName]; +export type DestinationCountryParameterKey = + (typeof DestinationCountryParameterKey)[keyof typeof DestinationCountryParameterKey]; /** * @public - *

      The information for a sender ID that meets a specified criteria.

      */ -export interface SenderIdFilter { +export interface DisassociateOriginationIdentityRequest { /** * @public - *

      The name of the attribute to filter on.

      + *

      The unique identifier for the pool to disassociate with the origination identity. This + * value can be either the PoolId or PoolArn.

      */ - Name: SenderIdFilterName | undefined; + PoolId: string | undefined; /** * @public - *

      An array of values to filter for.

      + *

      The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or + * SenderIdArn. You can use DescribePhoneNumbers find the values for + * PhoneNumberId and PhoneNumberArn, or use DescribeSenderIds to get the + * values for SenderId and SenderIdArn.

      */ - Values: string[] | undefined; -} + OriginationIdentity: string | undefined; -/** - * @public - *

      The alphanumeric sender ID in a specific country that you want to describe. For more - * information on sender IDs see Requesting - * sender IDs for SMS messaging with Amazon Pinpoint - * in the Amazon Pinpoint User Guide.

      - */ -export interface SenderIdAndCountry { /** * @public - *

      The unique identifier of the sender.

      + *

      The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. + *

      */ - SenderId: string | undefined; + IsoCountryCode: string | undefined; /** * @public - *

      The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. - *

      + *

      Unique, case-sensitive identifier you provide to ensure the idempotency of the + * request. If you don't specify a client token, a randomly generated token is used for the + * request to ensure idempotency.

      */ - IsoCountryCode: string | undefined; + ClientToken?: string; } /** * @public */ -export interface DescribeSenderIdsRequest { +export interface DisassociateOriginationIdentityResult { /** * @public - *

      An array of SenderIdAndCountry objects to search for.

      + *

      The Amazon Resource Name (ARN) of the pool.

      */ - SenderIds?: SenderIdAndCountry[]; + PoolArn?: string; /** * @public - *

      An array of SenderIdFilter objects to filter the results.

      + *

      The PoolId of the pool no longer associated with the origination identity.

      */ - Filters?: SenderIdFilter[]; + PoolId?: string; /** * @public - *

      The token to be used for the next set of paginated results. You don't need to supply a - * value for this field in the initial request.

      + *

      The PhoneNumberArn or SenderIdArn of the origination identity.

      */ - NextToken?: string; + OriginationIdentityArn?: string; /** * @public - *

      The maximum number of results to return per each request.

      + *

      The PhoneNumberId or SenderId of the origination identity.

      */ - MaxResults?: number; -} + OriginationIdentity?: string; -/** - * @public - *

      The information for all SenderIds in an Amazon Web Services account.

      - */ -export interface SenderIdInformation { /** * @public - *

      The Amazon Resource Name (ARN) associated with the SenderId.

      + *

      The two-character code, in ISO 3166-1 alpha-2 format, for the country or + * region.

      */ - SenderIdArn: string | undefined; + IsoCountryCode?: string; +} +/** + * @public + */ +export interface DiscardRegistrationVersionRequest { /** * @public - *

      The alphanumeric sender ID in a specific country that you'd like to describe.

      + *

      The unique identifier for the registration.

      */ - SenderId: string | undefined; + RegistrationId: string | undefined; +} +/** + * @public + */ +export interface DiscardRegistrationVersionResult { /** * @public - *

      The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. - *

      + *

      The Amazon Resource Name (ARN) for the registration.

      */ - IsoCountryCode: string | undefined; + RegistrationArn: string | undefined; /** * @public - *

      The type of message. Valid values are TRANSACTIONAL for messages that are critical or - * time-sensitive and PROMOTIONAL for messages that aren't critical or - * time-sensitive.

      + *

      The unique identifier for the registration.

      */ - MessageTypes: MessageType[] | undefined; + RegistrationId: string | undefined; /** * @public - *

      The monthly leasing price, in US dollars.

      + *

      The version number of the registration.

      */ - MonthlyLeasingPrice: string | undefined; -} + VersionNumber: number | undefined; -/** - * @public - */ -export interface DescribeSenderIdsResult { /** * @public - *

      An array of SernderIdInformation objects that contain the details for the requested - * SenderIds.

      + *

      The status of the registration version.

      + *
        + *
      • + *

        + * DRAFT: The initial status of a registration version after it’s created.

        + *
      • + *
      • + *

        + * SUBMITTED: Your registration has been submitted.

        + *
      • + *
      • + *

        + * REVIEWING: Your registration has been accepted and is being reviewed.

        + *
      • + *
      • + *

        + * APPROVED: Your registration has been approved.

        + *
      • + *
      • + *

        + * DISCARDED: You've abandon this version of their registration to start over with a new version.

        + *
      • + *
      • + *

        + * DENIED: You must fix your registration and resubmit it.

        + *
      • + *
      • + *

        + * REVOKED: Your previously approved registration has been revoked.

        + *
      • + *
      • + *

        + * ARCHIVED: Your previously approved registration version moves into this status when a more recently submitted version is approved.

        + *
      • + *
      */ - SenderIds?: SenderIdInformation[]; + RegistrationVersionStatus: RegistrationVersionStatus | undefined; /** * @public - *

      The token to be used for the next set of paginated results. If this field is empty - * then there are no more results.

      + *

      The RegistrationVersionStatusHistory object contains the time stamps for when the reservations status changes.

      */ - NextToken?: string; + RegistrationVersionStatusHistory: RegistrationVersionStatusHistory | undefined; } /** * @public + * @enum */ -export interface DescribeSpendLimitsRequest { - /** - * @public - *

      The token to be used for the next set of paginated results. You don't need to supply a - * value for this field in the initial request.

      - */ - NextToken?: string; +export const LanguageCode = { + DE_DE: "DE_DE", + EN_GB: "EN_GB", + EN_US: "EN_US", + ES_419: "ES_419", + ES_ES: "ES_ES", + FR_CA: "FR_CA", + FR_FR: "FR_FR", + IT_IT: "IT_IT", + JA_JP: "JA_JP", + KO_KR: "KO_KR", + PT_BR: "PT_BR", + ZH_CN: "ZH_CN", + ZH_TW: "ZH_TW", +} as const; - /** - * @public - *

      The maximum number of results to return per each request.

      - */ - MaxResults?: number; -} +/** + * @public + */ +export type LanguageCode = (typeof LanguageCode)[keyof typeof LanguageCode]; /** * @public * @enum */ -export const SpendLimitName = { - TEXT_MESSAGE_MONTHLY_SPEND_LIMIT: "TEXT_MESSAGE_MONTHLY_SPEND_LIMIT", - VOICE_MESSAGE_MONTHLY_SPEND_LIMIT: "VOICE_MESSAGE_MONTHLY_SPEND_LIMIT", +export const PoolOriginationIdentitiesFilterName = { + ISO_COUNTRY_CODE: "iso-country-code", + NUMBER_CAPABILITY: "number-capability", } as const; /** * @public */ -export type SpendLimitName = (typeof SpendLimitName)[keyof typeof SpendLimitName]; +export type PoolOriginationIdentitiesFilterName = + (typeof PoolOriginationIdentitiesFilterName)[keyof typeof PoolOriginationIdentitiesFilterName]; /** * @public - *

      Describes the current Amazon Pinpoint monthly spend limits for sending voice and - * text messages. For more information on increasing your monthly spend limit, see - * Requesting increases to your monthly SMS spending quota for Amazon Pinpoint - * in the Amazon Pinpoint User Guide.

      + *

      Information about origination identities associated with a pool that meets a specified + * criteria.

      */ -export interface SpendLimit { +export interface PoolOriginationIdentitiesFilter { /** * @public - *

      The name for the SpendLimit.

      + *

      The name of the attribute to filter on.

      */ - Name: SpendLimitName | undefined; + Name: PoolOriginationIdentitiesFilterName | undefined; /** * @public - *

      The maximum amount of money, in US dollars, that you want to be able to spend sending - * messages each month. This value has to be less than or equal to the amount in - * MaxLimit. To use this custom limit, Overridden must be set - * to true.

      + *

      An array values to filter for.

      */ - EnforcedLimit: number | undefined; + Values: string[] | undefined; +} +/** + * @public + */ +export interface ListPoolOriginationIdentitiesRequest { /** * @public - *

      The maximum amount of money that you are able to spend to send messages each month, - * in US dollars.

      + *

      The unique identifier for the pool. This value can be either the PoolId or + * PoolArn.

      */ - MaxLimit: number | undefined; + PoolId: string | undefined; /** * @public - *

      When set to True, the value that has been specified in the - * EnforcedLimit is used to determine the maximum amount in US dollars - * that can be spent to send messages each month, in US dollars.

      + *

      An array of PoolOriginationIdentitiesFilter objects to filter the results..

      */ - Overridden: boolean | undefined; -} + Filters?: PoolOriginationIdentitiesFilter[]; -/** - * @public - */ -export interface DescribeSpendLimitsResult { /** * @public - *

      An array of SpendLimit objects that contain the details for the requested spend - * limits.

      + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      */ - SpendLimits?: SpendLimit[]; + NextToken?: string; /** * @public - *

      The token to be used for the next set of paginated results. If this field is empty - * then there are no more results.

      + *

      The maximum number of results to return per each request.

      */ - NextToken?: string; + MaxResults?: number; } /** * @public - * @enum - */ -export const DestinationCountryParameterKey = { - IN_ENTITY_ID: "IN_ENTITY_ID", - IN_TEMPLATE_ID: "IN_TEMPLATE_ID", -} as const; - -/** - * @public - */ -export type DestinationCountryParameterKey = - (typeof DestinationCountryParameterKey)[keyof typeof DestinationCountryParameterKey]; - -/** - * @public + *

      The metadata for an origination identity associated with a pool.

      */ -export interface DisassociateOriginationIdentityRequest { +export interface OriginationIdentityMetadata { /** * @public - *

      The unique identifier for the pool to disassociate with the origination identity. This - * value can be either the PoolId or PoolArn.

      + *

      The Amazon Resource Name (ARN) associated with the origination identity.

      */ - PoolId: string | undefined; + OriginationIdentityArn: string | undefined; /** * @public - *

      The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or - * SenderIdArn. You can use DescribePhoneNumbers find the values for - * PhoneNumberId and PhoneNumberArn, or use DescribeSenderIds to get the - * values for SenderId and SenderIdArn.

      + *

      The unique identifier of the origination identity.

      */ OriginationIdentity: string | undefined; @@ -2708,79 +5242,77 @@ export interface DisassociateOriginationIdentityRequest { /** * @public - *

      Unique, case-sensitive identifier you provide to ensure the idempotency of the - * request. If you don't specify a client token, a randomly generated token is used for the - * request to ensure idempotency.

      + *

      Describes if the origination identity can be used for text messages, voice calls or + * both.

      */ - ClientToken?: string; + NumberCapabilities: NumberCapability[] | undefined; + + /** + * @public + *

      The phone number in E.164 format.

      + */ + PhoneNumber?: string; } /** * @public */ -export interface DisassociateOriginationIdentityResult { +export interface ListPoolOriginationIdentitiesResult { /** * @public - *

      The Amazon Resource Name (ARN) of the pool.

      + *

      The Amazon Resource Name (ARN) for the pool.

      */ PoolArn?: string; /** * @public - *

      The PoolId of the pool no longer associated with the origination identity.

      + *

      The unique PoolId of the pool.

      */ PoolId?: string; /** * @public - *

      The PhoneNumberArn or SenderIdArn of the origination identity.

      - */ - OriginationIdentityArn?: string; - - /** - * @public - *

      The PhoneNumberId or SenderId of the origination identity.

      + *

      An array of any OriginationIdentityMetadata objects.

      */ - OriginationIdentity?: string; + OriginationIdentities?: OriginationIdentityMetadata[]; /** * @public - *

      The two-character code, in ISO 3166-1 alpha-2 format, for the country or - * region.

      + *

      The token to be used for the next set of paginated results. If this field is empty + * then there are no more results.

      */ - IsoCountryCode?: string; + NextToken?: string; } /** * @public * @enum */ -export const PoolOriginationIdentitiesFilterName = { +export const RegistrationAssociationFilterName = { ISO_COUNTRY_CODE: "iso-country-code", - NUMBER_CAPABILITY: "number-capability", + RESOURCE_TYPE: "resource-type", } as const; /** * @public */ -export type PoolOriginationIdentitiesFilterName = - (typeof PoolOriginationIdentitiesFilterName)[keyof typeof PoolOriginationIdentitiesFilterName]; +export type RegistrationAssociationFilterName = + (typeof RegistrationAssociationFilterName)[keyof typeof RegistrationAssociationFilterName]; /** * @public - *

      Information about origination identities associated with a pool that meets a specified - * criteria.

      + *

      The filter definition for filtering registrations that meets a specified criteria.

      */ -export interface PoolOriginationIdentitiesFilter { +export interface RegistrationAssociationFilter { /** * @public *

      The name of the attribute to filter on.

      */ - Name: PoolOriginationIdentitiesFilterName | undefined; + Name: RegistrationAssociationFilterName | undefined; /** * @public - *

      An array values to filter for.

      + *

      An array of values to filter for.

      */ Values: string[] | undefined; } @@ -2788,19 +5320,18 @@ export interface PoolOriginationIdentitiesFilter { /** * @public */ -export interface ListPoolOriginationIdentitiesRequest { +export interface ListRegistrationAssociationsRequest { /** * @public - *

      The unique identifier for the pool. This value can be either the PoolId or - * PoolArn.

      + *

      The unique identifier for the registration.

      */ - PoolId: string | undefined; + RegistrationId: string | undefined; /** * @public - *

      An array of PoolOriginationIdentitiesFilter objects to filter the results..

      + *

      An array of RegistrationAssociationFilter to apply to the results that are returned.

      */ - Filters?: PoolOriginationIdentitiesFilter[]; + Filters?: RegistrationAssociationFilter[]; /** * @public @@ -2818,62 +5349,73 @@ export interface ListPoolOriginationIdentitiesRequest { /** * @public - *

      The metadata for an origination identity associated with a pool.

      + *

      Metadata for the origination identity that is associated with the registration.

      */ -export interface OriginationIdentityMetadata { +export interface RegistrationAssociationMetadata { /** * @public - *

      The Amazon Resource Name (ARN) associated with the origination identity.

      + *

      The Amazon Resource Name (ARN) of the origination identity that is associated with the registration.

      */ - OriginationIdentityArn: string | undefined; + ResourceArn: string | undefined; /** * @public - *

      The unique identifier of the origination identity.

      + *

      The unique identifier for the origination identity. For example this could be a PhoneNumberId or SenderId.

      */ - OriginationIdentity: string | undefined; + ResourceId: string | undefined; /** * @public - *

      The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. - *

      + *

      The origination identity type.

      */ - IsoCountryCode: string | undefined; + ResourceType: string | undefined; /** * @public - *

      Describes if the origination identity can be used for text messages, voice calls or - * both.

      + *

      The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

      */ - NumberCapabilities: NumberCapability[] | undefined; + IsoCountryCode?: string; + + /** + * @public + *

      The phone number associated with the registration in E.164 format.

      + */ + PhoneNumber?: string; } /** * @public */ -export interface ListPoolOriginationIdentitiesResult { +export interface ListRegistrationAssociationsResult { /** * @public - *

      The Amazon Resource Name (ARN) for the pool.

      + *

      The Amazon Resource Name (ARN) for the registration.

      */ - PoolArn?: string; + RegistrationArn: string | undefined; /** * @public - *

      The unique PoolId of the pool.

      + *

      The unique identifier for the registration.

      */ - PoolId?: string; + RegistrationId: string | undefined; /** * @public - *

      An array of any OriginationIdentityMetadata objects.

      + *

      The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions + * action.

      */ - OriginationIdentities?: OriginationIdentityMetadata[]; + RegistrationType: string | undefined; /** * @public - *

      The token to be used for the next set of paginated results. If this field is empty - * then there are no more results.

      + *

      An array of RegistrationAssociationMetadata objects.

      + */ + RegistrationAssociations: RegistrationAssociationMetadata[] | undefined; + + /** + * @public + *

      The token to be used for the next set of paginated results. You don't need to supply a + * value for this field in the initial request.

      */ NextToken?: string; } @@ -2928,113 +5470,195 @@ export interface PutKeywordRequest { /** * @public *

      The message associated with the keyword.

      - *
        + */ + KeywordMessage: string | undefined; + + /** + * @public + *

        The action to perform for the new keyword when it is received.

        + *
          *
        • - *

          AUTOMATIC_RESPONSE: A message is sent to the recipient.

          + *

          AUTOMATIC_RESPONSE: A message is sent to the recipient.

          *
        • *
        • - *

          OPT_OUT: Keeps the recipient from receiving future messages.

          + *

          OPT_OUT: Keeps the recipient from receiving future messages.

          *
        • *
        • - *

          OPT_IN: The recipient wants to receive future messages.

          + *

          OPT_IN: The recipient wants to receive future messages.

          *
        • *
        */ - KeywordMessage: string | undefined; + KeywordAction?: KeywordAction; +} + +/** + * @public + */ +export interface PutKeywordResult { + /** + * @public + *

        The PhoneNumberArn or PoolArn that the keyword was associated with.

        + */ + OriginationIdentityArn?: string; + + /** + * @public + *

        The PhoneNumberId or PoolId that the keyword was associated with.

        + */ + OriginationIdentity?: string; + + /** + * @public + *

        The keyword that was added.

        + */ + Keyword?: string; + + /** + * @public + *

        The message associated with the keyword.

        + */ + KeywordMessage?: string; + + /** + * @public + *

        The action to perform when the keyword is used.

        + */ + KeywordAction?: KeywordAction; +} + +/** + * @public + */ +export interface PutOptedOutNumberRequest { + /** + * @public + *

        The OptOutListName or OptOutListArn to add the phone number to.

        + */ + OptOutListName: string | undefined; + + /** + * @public + *

        The phone number to add to the OptOutList in E.164 format.

        + */ + OptedOutNumber: string | undefined; +} + +/** + * @public + */ +export interface PutOptedOutNumberResult { + /** + * @public + *

        The OptOutListArn that the phone number was removed from.

        + */ + OptOutListArn?: string; + + /** + * @public + *

        The OptOutListName that the phone number was removed from.

        + */ + OptOutListName?: string; + + /** + * @public + *

        The phone number that was added to the OptOutList.

        + */ + OptedOutNumber?: string; + + /** + * @public + *

        The time that the phone number was added to the OptOutList, in UNIX epoch time format.

        + */ + OptedOutTimestamp?: Date; /** * @public - *

        The action to perform for the new keyword when it is received.

        + *

        This is true if it was the end user who requested their phone number be removed. + *

        */ - KeywordAction?: KeywordAction; + EndUserOptedOut?: boolean; } /** * @public */ -export interface PutKeywordResult { +export interface PutRegistrationFieldValueRequest { /** * @public - *

        The PhoneNumberArn or PoolArn that the keyword was associated with.

        + *

        The unique identifier for the registration.

        */ - OriginationIdentityArn?: string; + RegistrationId: string | undefined; /** * @public - *

        The PhoneNumberId or PoolId that the keyword was associated with.

        + *

        The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.

        */ - OriginationIdentity?: string; + FieldPath: string | undefined; /** * @public - *

        The keyword that was added.

        + *

        An array of values for the form field.

        */ - Keyword?: string; + SelectChoices?: string[]; /** * @public - *

        The message associated with the keyword.

        + *

        The text data for a free form field.

        */ - KeywordMessage?: string; + TextValue?: string; /** * @public - *

        The action to perform when the keyword is used.

        + *

        The unique identifier for the registration attachment.

        */ - KeywordAction?: KeywordAction; + RegistrationAttachmentId?: string; } /** * @public */ -export interface PutOptedOutNumberRequest { +export interface PutRegistrationFieldValueResult { /** * @public - *

        The OptOutListName or OptOutListArn to add the phone number to.

        + *

        The Amazon Resource Name (ARN) for the registration.

        */ - OptOutListName: string | undefined; + RegistrationArn: string | undefined; /** * @public - *

        The phone number to add to the OptOutList in E.164 format.

        + *

        The unique identifier for the registration.

        */ - OptedOutNumber: string | undefined; -} + RegistrationId: string | undefined; -/** - * @public - */ -export interface PutOptedOutNumberResult { /** * @public - *

        The OptOutListArn that the phone number was removed from.

        + *

        The version number of the registration.

        */ - OptOutListArn?: string; + VersionNumber: number | undefined; /** * @public - *

        The OptOutListName that the phone number was removed from.

        + *

        The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.

        */ - OptOutListName?: string; + FieldPath: string | undefined; /** * @public - *

        The phone number that was added to the OptOutList.

        + *

        An array of values for the form field.

        */ - OptedOutNumber?: string; + SelectChoices?: string[]; /** * @public - *

        The time that the phone number was added to the OptOutList, in UNIX epoch time format.

        + *

        The text data for a free form field.

        */ - OptedOutTimestamp?: Date; + TextValue?: string; /** * @public - *

        This is true if it was the end user who requested their phone number be removed. - *

        + *

        The unique identifier for the registration attachment.

        */ - EndUserOptedOut?: boolean; + RegistrationAttachmentId?: string; } /** @@ -3121,6 +5745,12 @@ export interface ReleasePhoneNumberResult { */ TwoWayChannelArn?: string; + /** + * @public + *

        An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

        + */ + TwoWayChannelRole?: string; + /** * @public *

        By default this is set to false. When an end recipient sends a message that begins @@ -3137,6 +5767,12 @@ export interface ReleasePhoneNumberResult { */ OptOutListName?: string; + /** + * @public + *

        The unique identifier for the registration.

        + */ + RegistrationId?: string; + /** * @public *

        The time when the phone number was created, in UNIX epoch time format.

        @@ -3144,12 +5780,79 @@ export interface ReleasePhoneNumberResult { CreatedTimestamp?: Date; } +/** + * @public + */ +export interface ReleaseSenderIdRequest { + /** + * @public + *

        The sender ID to release.

        + */ + SenderId: string | undefined; + + /** + * @public + *

        The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

        + */ + IsoCountryCode: string | undefined; +} + +/** + * @public + */ +export interface ReleaseSenderIdResult { + /** + * @public + *

        The Amazon Resource Name (ARN) associated with the SenderId.

        + */ + SenderIdArn: string | undefined; + + /** + * @public + *

        The sender ID that was released.

        + */ + SenderId: string | undefined; + + /** + * @public + *

        The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

        + */ + IsoCountryCode: string | undefined; + + /** + * @public + *

        The type of message. Valid values are TRANSACTIONAL for messages that are critical or + * time-sensitive and PROMOTIONAL for messages that aren't critical or + * time-sensitive.

        + */ + MessageTypes: MessageType[] | undefined; + + /** + * @public + *

        The monthly price, in US dollars, to lease the sender ID.

        + */ + MonthlyLeasingPrice: string | undefined; + + /** + * @public + *

        True if the sender ID is registered.

        + */ + Registered: boolean | undefined; + + /** + * @public + *

        The unique identifier for the registration.

        + */ + RegistrationId?: string; +} + /** * @public * @enum */ export const RequestableNumberType = { LONG_CODE: "LONG_CODE", + SIMULATOR: "SIMULATOR", TEN_DLC: "TEN_DLC", TOLL_FREE: "TOLL_FREE", } as const; @@ -3193,7 +5896,7 @@ export interface RequestPhoneNumberRequest { /** * @public *

        The name of the OptOutList to associate with the phone number. You can use the - * OutOutListName or OptPutListArn.

        + * OptOutListName or OptOutListArn.

        */ OptOutListName?: string; @@ -3257,16 +5960,177 @@ export interface RequestPhoneNumberResult { /** * @public - *

        The current status of the request.

        + *

        The current status of the request.

        + */ + Status?: NumberStatus; + + /** + * @public + *

        The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. + *

        + */ + IsoCountryCode?: string; + + /** + * @public + *

        The type of message. Valid values are TRANSACTIONAL for messages that are critical or + * time-sensitive and PROMOTIONAL for messages that aren't critical or + * time-sensitive.

        + */ + MessageType?: MessageType; + + /** + * @public + *

        Indicates if the phone number will be used for text messages, voice messages or both. + *

        + */ + NumberCapabilities?: NumberCapability[]; + + /** + * @public + *

        The type of number that was released.

        + */ + NumberType?: RequestableNumberType; + + /** + * @public + *

        The monthly price, in US dollars, to lease the phone number.

        + */ + MonthlyLeasingPrice?: string; + + /** + * @public + *

        By default this is set to false. When set to true you can receive incoming text + * messages from your end recipients.

        + */ + TwoWayEnabled?: boolean; + + /** + * @public + *

        The ARN used to identify the two way channel.

        + */ + TwoWayChannelArn?: string; + + /** + * @public + *

        An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

        + */ + TwoWayChannelRole?: string; + + /** + * @public + *

        By default this is set to false. When an end recipient sends a message that begins + * with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically + * replies with a customizable message and adds the end recipient to the OptOutList. When + * set to true you're responsible for responding to HELP and STOP requests. You're also + * responsible for tracking and honoring opt-out requests.

        + */ + SelfManagedOptOutsEnabled?: boolean; + + /** + * @public + *

        The name of the OptOutList that is associated with the requested phone number.

        + */ + OptOutListName?: string; + + /** + * @public + *

        By default this is set to false. When set to true the phone number can't be deleted. + *

        + */ + DeletionProtectionEnabled?: boolean; + + /** + * @public + *

        The unique identifier of the pool associated with the phone number

        + */ + PoolId?: string; + + /** + * @public + *

        The unique identifier for the registration.

        + */ + RegistrationId?: string; + + /** + * @public + *

        An array of key and value pair tags that are associated with the phone number.

        + */ + Tags?: Tag[]; + + /** + * @public + *

        The time when the phone number was created, in UNIX epoch time format.

        + */ + CreatedTimestamp?: Date; +} + +/** + * @public + */ +export interface RequestSenderIdRequest { + /** + * @public + *

        The sender ID string to request.

        + */ + SenderId: string | undefined; + + /** + * @public + *

        The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

        + */ + IsoCountryCode: string | undefined; + + /** + * @public + *

        The type of message. Valid values are TRANSACTIONAL for messages that are critical or + * time-sensitive and PROMOTIONAL for messages that aren't critical or + * time-sensitive.

        + */ + MessageTypes?: MessageType[]; + + /** + * @public + *

        By default this is set to false. When set to true the sender ID can't be deleted.

        + */ + DeletionProtectionEnabled?: boolean; + + /** + * @public + *

        An array of tags (key and value pairs) to associate with the sender ID.

        + */ + Tags?: Tag[]; + + /** + * @public + *

        Unique, case-sensitive identifier that you provide to ensure the idempotency of the + * request. If you don't specify a client token, a randomly generated token is used for the + * request to ensure idempotency.

        + */ + ClientToken?: string; +} + +/** + * @public + */ +export interface RequestSenderIdResult { + /** + * @public + *

        The Amazon Resource Name (ARN) associated with the SenderId.

        + */ + SenderIdArn: string | undefined; + + /** + * @public + *

        The sender ID that was requested.

        */ - Status?: NumberStatus; + SenderId: string | undefined; /** * @public - *

        The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. - *

        + *

        The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

        */ - IsoCountryCode?: string; + IsoCountryCode: string | undefined; /** * @public @@ -3274,80 +6138,109 @@ export interface RequestPhoneNumberResult { * time-sensitive and PROMOTIONAL for messages that aren't critical or * time-sensitive.

        */ - MessageType?: MessageType; + MessageTypes: MessageType[] | undefined; /** * @public - *

        Indicates if the phone number will be used for text messages, voice messages or both. - *

        + *

        The monthly price, in US dollars, to lease the sender ID.

        */ - NumberCapabilities?: NumberCapability[]; + MonthlyLeasingPrice: string | undefined; /** * @public - *

        The type of number that was released.

        + *

        By default this is set to false. When set to true the sender ID can't be deleted.

        */ - NumberType?: RequestableNumberType; + DeletionProtectionEnabled: boolean | undefined; /** * @public - *

        The monthly price, in US dollars, to lease the phone number.

        + *

        True if the sender ID is registered.

        */ - MonthlyLeasingPrice?: string; + Registered: boolean | undefined; /** * @public - *

        By default this is set to false. When set to true you can receive incoming text - * messages from your end recipients.

        + *

        An array of tags (key and value pairs) to associate with the sender ID.

        */ - TwoWayEnabled?: boolean; + Tags?: Tag[]; +} + +/** + * @public + * @enum + */ +export const VerificationChannel = { + TEXT: "TEXT", + VOICE: "VOICE", +} as const; +/** + * @public + */ +export type VerificationChannel = (typeof VerificationChannel)[keyof typeof VerificationChannel]; + +/** + * @public + */ +export interface SendDestinationNumberVerificationCodeRequest { /** * @public - *

        The ARN used to identify the two way channel.

        + *

        The unique identifier for the verified destination phone number.

        */ - TwoWayChannelArn?: string; + VerifiedDestinationNumberId: string | undefined; /** * @public - *

        By default this is set to false. When an end recipient sends a message that begins - * with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically - * replies with a customizable message and adds the end recipient to the OptOutList. When - * set to true you're responsible for responding to HELP and STOP requests. You're also - * responsible for tracking and honoring opt-out requests.

        + *

        Choose to send the verification code as an SMS or voice message.

        */ - SelfManagedOptOutsEnabled?: boolean; + VerificationChannel: VerificationChannel | undefined; /** * @public - *

        The name of the OptOutList that is associated with the requested phone number.

        + *

        Choose the language to use for the message.

        */ - OptOutListName?: string; + LanguageCode?: LanguageCode; /** * @public - *

        By default this is set to false. When set to true the phone number can't be deleted. - *

        + *

        The origination identity of the message. This can be either the PhoneNumber, + * PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

        */ - DeletionProtectionEnabled?: boolean; + OriginationIdentity?: string; /** * @public - *

        The unique identifier of the pool associated with the phone number

        + *

        The name of the configuration set to use. This can be either the ConfigurationSetName + * or ConfigurationSetArn.

        */ - PoolId?: string; + ConfigurationSetName?: string; /** * @public - *

        An array of key and value pair tags that are associated with the phone number.

        + *

        You can specify custom data in this field. If you do, that data is logged to the event + * destination.

        */ - Tags?: Tag[]; + Context?: Record; /** * @public - *

        The time when the phone number was created, in UNIX epoch time format.

        + *

        This field is used for any country-specific registration requirements. Currently, this + * setting is only used when you send messages to recipients in India using a sender ID. + * For more information see Special requirements for sending SMS messages to recipients in India. + *

        */ - CreatedTimestamp?: Date; + DestinationCountryParameters?: Partial>; +} + +/** + * @public + */ +export interface SendDestinationNumberVerificationCodeResult { + /** + * @public + *

        The unique identifier for the message.

        + */ + MessageId: string | undefined; } /** @@ -3376,7 +6269,6 @@ export interface SendTextMessageRequest { /** * @public *

        The type of message. Valid values are - * TRANSACTIONAL * for messages that are critical or time-sensitive and PROMOTIONAL for messages that * aren't critical or time-sensitive.

        */ @@ -3556,13 +6448,13 @@ export interface SendVoiceMessageRequest { * @public *

        Specifies if the MessageBody field contains text or speech synthesis * markup language (SSML).

        - *
          + *
            *
          • - *

            TEXT: This is the default value. When used the maximum character limit is + *

            TEXT: This is the default value. When used the maximum character limit is * 3000.

            *
          • *
          • - *

            SSML: When used the maximum character limit is 6000 including SSML + *

            SSML: When used the maximum character limit is 6000 including SSML * tagging.

            *
          • *
          @@ -3753,6 +6645,86 @@ export interface SetVoiceMessageSpendLimitOverrideResult { MonthlyLimit?: number; } +/** + * @public + */ +export interface SubmitRegistrationVersionRequest { + /** + * @public + *

          The unique identifier for the registration.

          + */ + RegistrationId: string | undefined; +} + +/** + * @public + */ +export interface SubmitRegistrationVersionResult { + /** + * @public + *

          The Amazon Resource Name (ARN) for the registration.

          + */ + RegistrationArn: string | undefined; + + /** + * @public + *

          The unique identifier for the registration.

          + */ + RegistrationId: string | undefined; + + /** + * @public + *

          The version number of the registration.

          + */ + VersionNumber: number | undefined; + + /** + * @public + *

          The status of the registration version.

          + *
            + *
          • + *

            + * DRAFT: The initial status of a registration version after it’s created.

            + *
          • + *
          • + *

            + * SUBMITTED: Your registration has been submitted.

            + *
          • + *
          • + *

            + * REVIEWING: Your registration has been accepted and is being reviewed.

            + *
          • + *
          • + *

            + * APPROVED: Your registration has been approved.

            + *
          • + *
          • + *

            + * DISCARDED: You've abandon this version of their registration to start over with a new version.

            + *
          • + *
          • + *

            + * DENIED: You must fix your registration and resubmit it.

            + *
          • + *
          • + *

            + * REVOKED: Your previously approved registration has been revoked.

            + *
          • + *
          • + *

            + * ARCHIVED: Your previously approved registration version moves into this status when a more recently submitted version is approved.

            + *
          • + *
          + */ + RegistrationVersionStatus: RegistrationVersionStatus | undefined; + + /** + * @public + *

          The RegistrationVersionStatusHistory object contains the time stamps for when the reservations status changes.

          + */ + RegistrationVersionStatusHistory: RegistrationVersionStatusHistory | undefined; +} + /** * @public */ @@ -3823,6 +6795,9 @@ export interface UpdateEventDestinationRequest { /** * @public *

          An array of event types that determine which events to log.

          + * + *

          The TEXT_SENT event type is not supported.

          + *
          */ MatchingEventTypes?: EventType[]; @@ -3895,6 +6870,12 @@ export interface UpdatePhoneNumberRequest { */ TwoWayChannelArn?: string; + /** + * @public + *

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

          + */ + TwoWayChannelRole?: string; + /** * @public *

          By default this is set to false. When an end recipient sends a message that begins @@ -3994,6 +6975,12 @@ export interface UpdatePhoneNumberResult { */ TwoWayChannelArn?: string; + /** + * @public + *

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

          + */ + TwoWayChannelRole?: string; + /** * @public *

          This is true if self managed opt-out are enabled.

          @@ -4012,6 +6999,12 @@ export interface UpdatePhoneNumberResult { */ DeletionProtectionEnabled?: boolean; + /** + * @public + *

          The unique identifier for the registration.

          + */ + RegistrationId?: string; + /** * @public *

          The time when the phone number was created, in UNIX epoch time format.

          @@ -4043,6 +7036,12 @@ export interface UpdatePoolRequest { */ TwoWayChannelArn?: string; + /** + * @public + *

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

          + */ + TwoWayChannelRole?: string; + /** * @public *

          By default this is set to false. When an end recipient sends a message that begins @@ -4114,6 +7113,12 @@ export interface UpdatePoolResult { */ TwoWayChannelArn?: string; + /** + * @public + *

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

          + */ + TwoWayChannelRole?: string; + /** * @public *

          When an end recipient sends a message that begins with HELP or STOP to one of your @@ -4148,3 +7153,133 @@ export interface UpdatePoolResult { */ CreatedTimestamp?: Date; } + +/** + * @public + */ +export interface UpdateSenderIdRequest { + /** + * @public + *

          The sender ID to update.

          + */ + SenderId: string | undefined; + + /** + * @public + *

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

          + */ + IsoCountryCode: string | undefined; + + /** + * @public + *

          By default this is set to false. When set to true the sender ID can't be deleted.

          + */ + DeletionProtectionEnabled?: boolean; +} + +/** + * @public + */ +export interface UpdateSenderIdResult { + /** + * @public + *

          The Amazon Resource Name (ARN) associated with the SenderId.

          + */ + SenderIdArn: string | undefined; + + /** + * @public + *

          The sender ID that was updated.

          + */ + SenderId: string | undefined; + + /** + * @public + *

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

          + */ + IsoCountryCode: string | undefined; + + /** + * @public + *

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or + * time-sensitive and PROMOTIONAL for messages that aren't critical or + * time-sensitive.

          + */ + MessageTypes: MessageType[] | undefined; + + /** + * @public + *

          The monthly price, in US dollars, to lease the sender ID.

          + */ + MonthlyLeasingPrice: string | undefined; + + /** + * @public + *

          By default this is set to false. When set to true the sender ID can't be deleted.

          + */ + DeletionProtectionEnabled: boolean | undefined; + + /** + * @public + *

          True if the sender ID is registered..

          + */ + Registered: boolean | undefined; + + /** + * @public + *

          The unique identifier for the registration.

          + */ + RegistrationId?: string; +} + +/** + * @public + */ +export interface VerifyDestinationNumberRequest { + /** + * @public + *

          The unique identifier for the verififed destination phone number.

          + */ + VerifiedDestinationNumberId: string | undefined; + + /** + * @public + *

          The verification code that was received by the verified destination phone number.

          + */ + VerificationCode: string | undefined; +} + +/** + * @public + */ +export interface VerifyDestinationNumberResult { + /** + * @public + *

          The Amazon Resource Name (ARN) for the verified destination phone number.

          + */ + VerifiedDestinationNumberArn: string | undefined; + + /** + * @public + *

          The unique identifier for the verified destination phone number.

          + */ + VerifiedDestinationNumberId: string | undefined; + + /** + * @public + *

          The phone number in E.164 format.

          + */ + DestinationPhoneNumber: string | undefined; + + /** + * @public + *

          The status for being able to send messages to the phone number.

          + */ + Status: VerificationStatus | undefined; + + /** + * @public + *

          The time when the destination phone number was created, in UNIX epoch time format.

          + */ + CreatedTimestamp: Date | undefined; +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationAttachmentsPaginator.ts b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationAttachmentsPaginator.ts new file mode 100644 index 0000000000000..a78d72df1c1a2 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationAttachmentsPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { + DescribeRegistrationAttachmentsCommand, + DescribeRegistrationAttachmentsCommandInput, + DescribeRegistrationAttachmentsCommandOutput, +} from "../commands/DescribeRegistrationAttachmentsCommand"; +import { PinpointSMSVoiceV2Client } from "../PinpointSMSVoiceV2Client"; +import { PinpointSMSVoiceV2PaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: PinpointSMSVoiceV2Client, + input: DescribeRegistrationAttachmentsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeRegistrationAttachmentsCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateDescribeRegistrationAttachments( + config: PinpointSMSVoiceV2PaginationConfiguration, + input: DescribeRegistrationAttachmentsCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.NextToken + let token: typeof input.NextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: DescribeRegistrationAttachmentsCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof PinpointSMSVoiceV2Client) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected PinpointSMSVoiceV2 | PinpointSMSVoiceV2Client"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationFieldDefinitionsPaginator.ts b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationFieldDefinitionsPaginator.ts new file mode 100644 index 0000000000000..e3df102a08471 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationFieldDefinitionsPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { + DescribeRegistrationFieldDefinitionsCommand, + DescribeRegistrationFieldDefinitionsCommandInput, + DescribeRegistrationFieldDefinitionsCommandOutput, +} from "../commands/DescribeRegistrationFieldDefinitionsCommand"; +import { PinpointSMSVoiceV2Client } from "../PinpointSMSVoiceV2Client"; +import { PinpointSMSVoiceV2PaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: PinpointSMSVoiceV2Client, + input: DescribeRegistrationFieldDefinitionsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeRegistrationFieldDefinitionsCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateDescribeRegistrationFieldDefinitions( + config: PinpointSMSVoiceV2PaginationConfiguration, + input: DescribeRegistrationFieldDefinitionsCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.NextToken + let token: typeof input.NextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: DescribeRegistrationFieldDefinitionsCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof PinpointSMSVoiceV2Client) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected PinpointSMSVoiceV2 | PinpointSMSVoiceV2Client"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationFieldValuesPaginator.ts b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationFieldValuesPaginator.ts new file mode 100644 index 0000000000000..43418660fcdaf --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationFieldValuesPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { + DescribeRegistrationFieldValuesCommand, + DescribeRegistrationFieldValuesCommandInput, + DescribeRegistrationFieldValuesCommandOutput, +} from "../commands/DescribeRegistrationFieldValuesCommand"; +import { PinpointSMSVoiceV2Client } from "../PinpointSMSVoiceV2Client"; +import { PinpointSMSVoiceV2PaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: PinpointSMSVoiceV2Client, + input: DescribeRegistrationFieldValuesCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeRegistrationFieldValuesCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateDescribeRegistrationFieldValues( + config: PinpointSMSVoiceV2PaginationConfiguration, + input: DescribeRegistrationFieldValuesCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.NextToken + let token: typeof input.NextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: DescribeRegistrationFieldValuesCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof PinpointSMSVoiceV2Client) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected PinpointSMSVoiceV2 | PinpointSMSVoiceV2Client"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationSectionDefinitionsPaginator.ts b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationSectionDefinitionsPaginator.ts new file mode 100644 index 0000000000000..90bdd68d8abb2 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationSectionDefinitionsPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { + DescribeRegistrationSectionDefinitionsCommand, + DescribeRegistrationSectionDefinitionsCommandInput, + DescribeRegistrationSectionDefinitionsCommandOutput, +} from "../commands/DescribeRegistrationSectionDefinitionsCommand"; +import { PinpointSMSVoiceV2Client } from "../PinpointSMSVoiceV2Client"; +import { PinpointSMSVoiceV2PaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: PinpointSMSVoiceV2Client, + input: DescribeRegistrationSectionDefinitionsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeRegistrationSectionDefinitionsCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateDescribeRegistrationSectionDefinitions( + config: PinpointSMSVoiceV2PaginationConfiguration, + input: DescribeRegistrationSectionDefinitionsCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.NextToken + let token: typeof input.NextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: DescribeRegistrationSectionDefinitionsCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof PinpointSMSVoiceV2Client) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected PinpointSMSVoiceV2 | PinpointSMSVoiceV2Client"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationTypeDefinitionsPaginator.ts b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationTypeDefinitionsPaginator.ts new file mode 100644 index 0000000000000..6ebb45c7a62bc --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationTypeDefinitionsPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { + DescribeRegistrationTypeDefinitionsCommand, + DescribeRegistrationTypeDefinitionsCommandInput, + DescribeRegistrationTypeDefinitionsCommandOutput, +} from "../commands/DescribeRegistrationTypeDefinitionsCommand"; +import { PinpointSMSVoiceV2Client } from "../PinpointSMSVoiceV2Client"; +import { PinpointSMSVoiceV2PaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: PinpointSMSVoiceV2Client, + input: DescribeRegistrationTypeDefinitionsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeRegistrationTypeDefinitionsCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateDescribeRegistrationTypeDefinitions( + config: PinpointSMSVoiceV2PaginationConfiguration, + input: DescribeRegistrationTypeDefinitionsCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.NextToken + let token: typeof input.NextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: DescribeRegistrationTypeDefinitionsCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof PinpointSMSVoiceV2Client) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected PinpointSMSVoiceV2 | PinpointSMSVoiceV2Client"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationVersionsPaginator.ts b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationVersionsPaginator.ts new file mode 100644 index 0000000000000..215fd7ec1eb0a --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationVersionsPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { + DescribeRegistrationVersionsCommand, + DescribeRegistrationVersionsCommandInput, + DescribeRegistrationVersionsCommandOutput, +} from "../commands/DescribeRegistrationVersionsCommand"; +import { PinpointSMSVoiceV2Client } from "../PinpointSMSVoiceV2Client"; +import { PinpointSMSVoiceV2PaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: PinpointSMSVoiceV2Client, + input: DescribeRegistrationVersionsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeRegistrationVersionsCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateDescribeRegistrationVersions( + config: PinpointSMSVoiceV2PaginationConfiguration, + input: DescribeRegistrationVersionsCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.NextToken + let token: typeof input.NextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: DescribeRegistrationVersionsCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof PinpointSMSVoiceV2Client) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected PinpointSMSVoiceV2 | PinpointSMSVoiceV2Client"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationsPaginator.ts b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationsPaginator.ts new file mode 100644 index 0000000000000..eb050e3c8ca97 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeRegistrationsPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { + DescribeRegistrationsCommand, + DescribeRegistrationsCommandInput, + DescribeRegistrationsCommandOutput, +} from "../commands/DescribeRegistrationsCommand"; +import { PinpointSMSVoiceV2Client } from "../PinpointSMSVoiceV2Client"; +import { PinpointSMSVoiceV2PaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: PinpointSMSVoiceV2Client, + input: DescribeRegistrationsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeRegistrationsCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateDescribeRegistrations( + config: PinpointSMSVoiceV2PaginationConfiguration, + input: DescribeRegistrationsCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.NextToken + let token: typeof input.NextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: DescribeRegistrationsCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof PinpointSMSVoiceV2Client) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected PinpointSMSVoiceV2 | PinpointSMSVoiceV2Client"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeVerifiedDestinationNumbersPaginator.ts b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeVerifiedDestinationNumbersPaginator.ts new file mode 100644 index 0000000000000..174a5eee7cc30 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/pagination/DescribeVerifiedDestinationNumbersPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { + DescribeVerifiedDestinationNumbersCommand, + DescribeVerifiedDestinationNumbersCommandInput, + DescribeVerifiedDestinationNumbersCommandOutput, +} from "../commands/DescribeVerifiedDestinationNumbersCommand"; +import { PinpointSMSVoiceV2Client } from "../PinpointSMSVoiceV2Client"; +import { PinpointSMSVoiceV2PaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: PinpointSMSVoiceV2Client, + input: DescribeVerifiedDestinationNumbersCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new DescribeVerifiedDestinationNumbersCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateDescribeVerifiedDestinationNumbers( + config: PinpointSMSVoiceV2PaginationConfiguration, + input: DescribeVerifiedDestinationNumbersCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.NextToken + let token: typeof input.NextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: DescribeVerifiedDestinationNumbersCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof PinpointSMSVoiceV2Client) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected PinpointSMSVoiceV2 | PinpointSMSVoiceV2Client"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/pagination/ListRegistrationAssociationsPaginator.ts b/clients/client-pinpoint-sms-voice-v2/src/pagination/ListRegistrationAssociationsPaginator.ts new file mode 100644 index 0000000000000..5da282bad52f8 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/pagination/ListRegistrationAssociationsPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@smithy/types"; + +import { + ListRegistrationAssociationsCommand, + ListRegistrationAssociationsCommandInput, + ListRegistrationAssociationsCommandOutput, +} from "../commands/ListRegistrationAssociationsCommand"; +import { PinpointSMSVoiceV2Client } from "../PinpointSMSVoiceV2Client"; +import { PinpointSMSVoiceV2PaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: PinpointSMSVoiceV2Client, + input: ListRegistrationAssociationsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new ListRegistrationAssociationsCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateListRegistrationAssociations( + config: PinpointSMSVoiceV2PaginationConfiguration, + input: ListRegistrationAssociationsCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.NextToken + let token: typeof input.NextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: ListRegistrationAssociationsCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof PinpointSMSVoiceV2Client) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected PinpointSMSVoiceV2 | PinpointSMSVoiceV2Client"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-pinpoint-sms-voice-v2/src/pagination/index.ts b/clients/client-pinpoint-sms-voice-v2/src/pagination/index.ts index e31ec0713292f..c0cdd20f251a3 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/pagination/index.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/pagination/index.ts @@ -14,9 +14,18 @@ export * from "./DescribePhoneNumbersPaginator"; export * from "./DescribePoolsPaginator"; -export * from "./DescribeSenderIdsPaginator"; +export * from "./DescribeRegistrationAttachmentsPaginator"; -export * from "./DescribeSpendLimitsPaginator"; +export * from "./DescribeRegistrationFieldDefinitionsPaginator"; // smithy-typescript generated code export * from "./Interfaces"; +export * from "./DescribeRegistrationFieldValuesPaginator"; +export * from "./DescribeRegistrationSectionDefinitionsPaginator"; +export * from "./DescribeRegistrationTypeDefinitionsPaginator"; +export * from "./DescribeRegistrationVersionsPaginator"; +export * from "./DescribeRegistrationsPaginator"; +export * from "./DescribeSenderIdsPaginator"; +export * from "./DescribeSpendLimitsPaginator"; +export * from "./DescribeVerifiedDestinationNumbersPaginator"; export * from "./ListPoolOriginationIdentitiesPaginator"; +export * from "./ListRegistrationAssociationsPaginator"; diff --git a/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts b/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts index fcc3091c96edb..3591921887e2c 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts @@ -5,6 +5,7 @@ import { collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, + expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, @@ -34,6 +35,23 @@ import { } from "../commands/CreateEventDestinationCommand"; import { CreateOptOutListCommandInput, CreateOptOutListCommandOutput } from "../commands/CreateOptOutListCommand"; import { CreatePoolCommandInput, CreatePoolCommandOutput } from "../commands/CreatePoolCommand"; +import { + CreateRegistrationAssociationCommandInput, + CreateRegistrationAssociationCommandOutput, +} from "../commands/CreateRegistrationAssociationCommand"; +import { + CreateRegistrationAttachmentCommandInput, + CreateRegistrationAttachmentCommandOutput, +} from "../commands/CreateRegistrationAttachmentCommand"; +import { CreateRegistrationCommandInput, CreateRegistrationCommandOutput } from "../commands/CreateRegistrationCommand"; +import { + CreateRegistrationVersionCommandInput, + CreateRegistrationVersionCommandOutput, +} from "../commands/CreateRegistrationVersionCommand"; +import { + CreateVerifiedDestinationNumberCommandInput, + CreateVerifiedDestinationNumberCommandOutput, +} from "../commands/CreateVerifiedDestinationNumberCommand"; import { DeleteConfigurationSetCommandInput, DeleteConfigurationSetCommandOutput, @@ -57,10 +75,23 @@ import { } from "../commands/DeleteOptedOutNumberCommand"; import { DeleteOptOutListCommandInput, DeleteOptOutListCommandOutput } from "../commands/DeleteOptOutListCommand"; import { DeletePoolCommandInput, DeletePoolCommandOutput } from "../commands/DeletePoolCommand"; +import { + DeleteRegistrationAttachmentCommandInput, + DeleteRegistrationAttachmentCommandOutput, +} from "../commands/DeleteRegistrationAttachmentCommand"; +import { DeleteRegistrationCommandInput, DeleteRegistrationCommandOutput } from "../commands/DeleteRegistrationCommand"; +import { + DeleteRegistrationFieldValueCommandInput, + DeleteRegistrationFieldValueCommandOutput, +} from "../commands/DeleteRegistrationFieldValueCommand"; import { DeleteTextMessageSpendLimitOverrideCommandInput, DeleteTextMessageSpendLimitOverrideCommandOutput, } from "../commands/DeleteTextMessageSpendLimitOverrideCommand"; +import { + DeleteVerifiedDestinationNumberCommandInput, + DeleteVerifiedDestinationNumberCommandOutput, +} from "../commands/DeleteVerifiedDestinationNumberCommand"; import { DeleteVoiceMessageSpendLimitOverrideCommandInput, DeleteVoiceMessageSpendLimitOverrideCommandOutput, @@ -91,27 +122,77 @@ import { DescribePhoneNumbersCommandOutput, } from "../commands/DescribePhoneNumbersCommand"; import { DescribePoolsCommandInput, DescribePoolsCommandOutput } from "../commands/DescribePoolsCommand"; +import { + DescribeRegistrationAttachmentsCommandInput, + DescribeRegistrationAttachmentsCommandOutput, +} from "../commands/DescribeRegistrationAttachmentsCommand"; +import { + DescribeRegistrationFieldDefinitionsCommandInput, + DescribeRegistrationFieldDefinitionsCommandOutput, +} from "../commands/DescribeRegistrationFieldDefinitionsCommand"; +import { + DescribeRegistrationFieldValuesCommandInput, + DescribeRegistrationFieldValuesCommandOutput, +} from "../commands/DescribeRegistrationFieldValuesCommand"; +import { + DescribeRegistrationsCommandInput, + DescribeRegistrationsCommandOutput, +} from "../commands/DescribeRegistrationsCommand"; +import { + DescribeRegistrationSectionDefinitionsCommandInput, + DescribeRegistrationSectionDefinitionsCommandOutput, +} from "../commands/DescribeRegistrationSectionDefinitionsCommand"; +import { + DescribeRegistrationTypeDefinitionsCommandInput, + DescribeRegistrationTypeDefinitionsCommandOutput, +} from "../commands/DescribeRegistrationTypeDefinitionsCommand"; +import { + DescribeRegistrationVersionsCommandInput, + DescribeRegistrationVersionsCommandOutput, +} from "../commands/DescribeRegistrationVersionsCommand"; import { DescribeSenderIdsCommandInput, DescribeSenderIdsCommandOutput } from "../commands/DescribeSenderIdsCommand"; import { DescribeSpendLimitsCommandInput, DescribeSpendLimitsCommandOutput, } from "../commands/DescribeSpendLimitsCommand"; +import { + DescribeVerifiedDestinationNumbersCommandInput, + DescribeVerifiedDestinationNumbersCommandOutput, +} from "../commands/DescribeVerifiedDestinationNumbersCommand"; import { DisassociateOriginationIdentityCommandInput, DisassociateOriginationIdentityCommandOutput, } from "../commands/DisassociateOriginationIdentityCommand"; +import { + DiscardRegistrationVersionCommandInput, + DiscardRegistrationVersionCommandOutput, +} from "../commands/DiscardRegistrationVersionCommand"; import { ListPoolOriginationIdentitiesCommandInput, ListPoolOriginationIdentitiesCommandOutput, } from "../commands/ListPoolOriginationIdentitiesCommand"; +import { + ListRegistrationAssociationsCommandInput, + ListRegistrationAssociationsCommandOutput, +} from "../commands/ListRegistrationAssociationsCommand"; import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, } from "../commands/ListTagsForResourceCommand"; import { PutKeywordCommandInput, PutKeywordCommandOutput } from "../commands/PutKeywordCommand"; import { PutOptedOutNumberCommandInput, PutOptedOutNumberCommandOutput } from "../commands/PutOptedOutNumberCommand"; +import { + PutRegistrationFieldValueCommandInput, + PutRegistrationFieldValueCommandOutput, +} from "../commands/PutRegistrationFieldValueCommand"; import { ReleasePhoneNumberCommandInput, ReleasePhoneNumberCommandOutput } from "../commands/ReleasePhoneNumberCommand"; +import { ReleaseSenderIdCommandInput, ReleaseSenderIdCommandOutput } from "../commands/ReleaseSenderIdCommand"; import { RequestPhoneNumberCommandInput, RequestPhoneNumberCommandOutput } from "../commands/RequestPhoneNumberCommand"; +import { RequestSenderIdCommandInput, RequestSenderIdCommandOutput } from "../commands/RequestSenderIdCommand"; +import { + SendDestinationNumberVerificationCodeCommandInput, + SendDestinationNumberVerificationCodeCommandOutput, +} from "../commands/SendDestinationNumberVerificationCodeCommand"; import { SendTextMessageCommandInput, SendTextMessageCommandOutput } from "../commands/SendTextMessageCommand"; import { SendVoiceMessageCommandInput, SendVoiceMessageCommandOutput } from "../commands/SendVoiceMessageCommand"; import { @@ -127,6 +208,10 @@ import { SetVoiceMessageSpendLimitOverrideCommandInput, SetVoiceMessageSpendLimitOverrideCommandOutput, } from "../commands/SetVoiceMessageSpendLimitOverrideCommand"; +import { + SubmitRegistrationVersionCommandInput, + SubmitRegistrationVersionCommandOutput, +} from "../commands/SubmitRegistrationVersionCommand"; import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand"; import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand"; import { @@ -135,6 +220,11 @@ import { } from "../commands/UpdateEventDestinationCommand"; import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "../commands/UpdatePhoneNumberCommand"; import { UpdatePoolCommandInput, UpdatePoolCommandOutput } from "../commands/UpdatePoolCommand"; +import { UpdateSenderIdCommandInput, UpdateSenderIdCommandOutput } from "../commands/UpdateSenderIdCommand"; +import { + VerifyDestinationNumberCommandInput, + VerifyDestinationNumberCommandOutput, +} from "../commands/VerifyDestinationNumberCommand"; import { AccessDeniedException, AssociateOriginationIdentityRequest, @@ -149,6 +239,15 @@ import { CreateOptOutListResult, CreatePoolRequest, CreatePoolResult, + CreateRegistrationAssociationRequest, + CreateRegistrationAttachmentRequest, + CreateRegistrationAttachmentResult, + CreateRegistrationRequest, + CreateRegistrationResult, + CreateRegistrationVersionRequest, + CreateRegistrationVersionResult, + CreateVerifiedDestinationNumberRequest, + CreateVerifiedDestinationNumberResult, DeleteConfigurationSetRequest, DeleteConfigurationSetResult, DeleteDefaultMessageTypeRequest, @@ -161,7 +260,14 @@ import { DeleteOptOutListResult, DeletePoolRequest, DeletePoolResult, + DeleteRegistrationAttachmentRequest, + DeleteRegistrationAttachmentResult, + DeleteRegistrationFieldValueRequest, + DeleteRegistrationRequest, + DeleteRegistrationResult, DeleteTextMessageSpendLimitOverrideRequest, + DeleteVerifiedDestinationNumberRequest, + DeleteVerifiedDestinationNumberResult, DeleteVoiceMessageSpendLimitOverrideRequest, DescribeAccountAttributesRequest, DescribeAccountLimitsRequest, @@ -176,16 +282,32 @@ import { DescribePhoneNumbersResult, DescribePoolsRequest, DescribePoolsResult, + DescribeRegistrationAttachmentsRequest, + DescribeRegistrationAttachmentsResult, + DescribeRegistrationFieldDefinitionsRequest, + DescribeRegistrationFieldValuesRequest, + DescribeRegistrationSectionDefinitionsRequest, + DescribeRegistrationsRequest, + DescribeRegistrationsResult, + DescribeRegistrationTypeDefinitionsRequest, + DescribeRegistrationVersionsRequest, + DescribeRegistrationVersionsResult, DescribeSenderIdsRequest, DescribeSpendLimitsRequest, + DescribeVerifiedDestinationNumbersRequest, + DescribeVerifiedDestinationNumbersResult, DestinationCountryParameterKey, DisassociateOriginationIdentityRequest, + DiscardRegistrationVersionRequest, + DiscardRegistrationVersionResult, EventType, InternalServerException, KeywordFilter, KinesisFirehoseDestination, ListPoolOriginationIdentitiesRequest, + ListRegistrationAssociationsRequest, ListTagsForResourceRequest, + MessageType, NumberCapability, OptedOutFilter, OptedOutNumberInformation, @@ -198,11 +320,24 @@ import { PutKeywordRequest, PutOptedOutNumberRequest, PutOptedOutNumberResult, + PutRegistrationFieldValueRequest, + RegistrationAssociationFilter, + RegistrationAttachmentFilter, + RegistrationAttachmentsInformation, + RegistrationFilter, + RegistrationInformation, + RegistrationTypeFilter, + RegistrationVersionFilter, + RegistrationVersionInformation, + RegistrationVersionStatusHistory, ReleasePhoneNumberRequest, ReleasePhoneNumberResult, + ReleaseSenderIdRequest, RequestPhoneNumberRequest, RequestPhoneNumberResult, + RequestSenderIdRequest, ResourceNotFoundException, + SendDestinationNumberVerificationCodeRequest, SenderIdAndCountry, SenderIdFilter, SendTextMessageRequest, @@ -213,6 +348,8 @@ import { SetTextMessageSpendLimitOverrideRequest, SetVoiceMessageSpendLimitOverrideRequest, SnsDestination, + SubmitRegistrationVersionRequest, + SubmitRegistrationVersionResult, Tag, TagResourceRequest, ThrottlingException, @@ -222,7 +359,12 @@ import { UpdatePhoneNumberResult, UpdatePoolRequest, UpdatePoolResult, + UpdateSenderIdRequest, ValidationException, + VerifiedDestinationNumberFilter, + VerifiedDestinationNumberInformation, + VerifyDestinationNumberRequest, + VerifyDestinationNumberResult, } from "../models/models_0"; import { PinpointSMSVoiceV2ServiceException as __BaseException } from "../models/PinpointSMSVoiceV2ServiceException"; @@ -291,6 +433,71 @@ export const se_CreatePoolCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0CreateRegistrationCommand + */ +export const se_CreateRegistrationCommand = async ( + input: CreateRegistrationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("CreateRegistration"); + let body: any; + body = JSON.stringify(se_CreateRegistrationRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0CreateRegistrationAssociationCommand + */ +export const se_CreateRegistrationAssociationCommand = async ( + input: CreateRegistrationAssociationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("CreateRegistrationAssociation"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0CreateRegistrationAttachmentCommand + */ +export const se_CreateRegistrationAttachmentCommand = async ( + input: CreateRegistrationAttachmentCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("CreateRegistrationAttachment"); + let body: any; + body = JSON.stringify(se_CreateRegistrationAttachmentRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0CreateRegistrationVersionCommand + */ +export const se_CreateRegistrationVersionCommand = async ( + input: CreateRegistrationVersionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("CreateRegistrationVersion"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0CreateVerifiedDestinationNumberCommand + */ +export const se_CreateVerifiedDestinationNumberCommand = async ( + input: CreateVerifiedDestinationNumberCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("CreateVerifiedDestinationNumber"); + let body: any; + body = JSON.stringify(se_CreateVerifiedDestinationNumberRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0DeleteConfigurationSetCommand */ @@ -395,6 +602,45 @@ export const se_DeletePoolCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0DeleteRegistrationCommand + */ +export const se_DeleteRegistrationCommand = async ( + input: DeleteRegistrationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteRegistration"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0DeleteRegistrationAttachmentCommand + */ +export const se_DeleteRegistrationAttachmentCommand = async ( + input: DeleteRegistrationAttachmentCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteRegistrationAttachment"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0DeleteRegistrationFieldValueCommand + */ +export const se_DeleteRegistrationFieldValueCommand = async ( + input: DeleteRegistrationFieldValueCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteRegistrationFieldValue"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0DeleteTextMessageSpendLimitOverrideCommand */ @@ -408,6 +654,19 @@ export const se_DeleteTextMessageSpendLimitOverrideCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0DeleteVerifiedDestinationNumberCommand + */ +export const se_DeleteVerifiedDestinationNumberCommand = async ( + input: DeleteVerifiedDestinationNumberCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteVerifiedDestinationNumber"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0DeleteVoiceMessageSpendLimitOverrideCommand */ @@ -525,6 +784,97 @@ export const se_DescribePoolsCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0DescribeRegistrationAttachmentsCommand + */ +export const se_DescribeRegistrationAttachmentsCommand = async ( + input: DescribeRegistrationAttachmentsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeRegistrationAttachments"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0DescribeRegistrationFieldDefinitionsCommand + */ +export const se_DescribeRegistrationFieldDefinitionsCommand = async ( + input: DescribeRegistrationFieldDefinitionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeRegistrationFieldDefinitions"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0DescribeRegistrationFieldValuesCommand + */ +export const se_DescribeRegistrationFieldValuesCommand = async ( + input: DescribeRegistrationFieldValuesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeRegistrationFieldValues"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0DescribeRegistrationsCommand + */ +export const se_DescribeRegistrationsCommand = async ( + input: DescribeRegistrationsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeRegistrations"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0DescribeRegistrationSectionDefinitionsCommand + */ +export const se_DescribeRegistrationSectionDefinitionsCommand = async ( + input: DescribeRegistrationSectionDefinitionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeRegistrationSectionDefinitions"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0DescribeRegistrationTypeDefinitionsCommand + */ +export const se_DescribeRegistrationTypeDefinitionsCommand = async ( + input: DescribeRegistrationTypeDefinitionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeRegistrationTypeDefinitions"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0DescribeRegistrationVersionsCommand + */ +export const se_DescribeRegistrationVersionsCommand = async ( + input: DescribeRegistrationVersionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeRegistrationVersions"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0DescribeSenderIdsCommand */ @@ -551,6 +901,19 @@ export const se_DescribeSpendLimitsCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0DescribeVerifiedDestinationNumbersCommand + */ +export const se_DescribeVerifiedDestinationNumbersCommand = async ( + input: DescribeVerifiedDestinationNumbersCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeVerifiedDestinationNumbers"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0DisassociateOriginationIdentityCommand */ @@ -564,6 +927,19 @@ export const se_DisassociateOriginationIdentityCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0DiscardRegistrationVersionCommand + */ +export const se_DiscardRegistrationVersionCommand = async ( + input: DiscardRegistrationVersionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DiscardRegistrationVersion"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0ListPoolOriginationIdentitiesCommand */ @@ -577,6 +953,19 @@ export const se_ListPoolOriginationIdentitiesCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0ListRegistrationAssociationsCommand + */ +export const se_ListRegistrationAssociationsCommand = async ( + input: ListRegistrationAssociationsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("ListRegistrationAssociations"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0ListTagsForResourceCommand */ @@ -616,6 +1005,19 @@ export const se_PutOptedOutNumberCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0PutRegistrationFieldValueCommand + */ +export const se_PutRegistrationFieldValueCommand = async ( + input: PutRegistrationFieldValueCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("PutRegistrationFieldValue"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0ReleasePhoneNumberCommand */ @@ -629,6 +1031,19 @@ export const se_ReleasePhoneNumberCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0ReleaseSenderIdCommand + */ +export const se_ReleaseSenderIdCommand = async ( + input: ReleaseSenderIdCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("ReleaseSenderId"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0RequestPhoneNumberCommand */ @@ -642,6 +1057,32 @@ export const se_RequestPhoneNumberCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0RequestSenderIdCommand + */ +export const se_RequestSenderIdCommand = async ( + input: RequestSenderIdCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("RequestSenderId"); + let body: any; + body = JSON.stringify(se_RequestSenderIdRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0SendDestinationNumberVerificationCodeCommand + */ +export const se_SendDestinationNumberVerificationCodeCommand = async ( + input: SendDestinationNumberVerificationCodeCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("SendDestinationNumberVerificationCode"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0SendTextMessageCommand */ @@ -720,6 +1161,19 @@ export const se_SetVoiceMessageSpendLimitOverrideCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0SubmitRegistrationVersionCommand + */ +export const se_SubmitRegistrationVersionCommand = async ( + input: SubmitRegistrationVersionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("SubmitRegistrationVersion"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_0TagResourceCommand */ @@ -785,6 +1239,32 @@ export const se_UpdatePoolCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_0UpdateSenderIdCommand + */ +export const se_UpdateSenderIdCommand = async ( + input: UpdateSenderIdCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UpdateSenderId"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_0VerifyDestinationNumberCommand + */ +export const se_VerifyDestinationNumberCommand = async ( + input: VerifyDestinationNumberCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("VerifyDestinationNumber"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * deserializeAws_json1_0AssociateOriginationIdentityCommand */ @@ -1100,19 +1580,19 @@ const de_CreatePoolCommandError = async ( }; /** - * deserializeAws_json1_0DeleteConfigurationSetCommand + * deserializeAws_json1_0CreateRegistrationCommand */ -export const de_DeleteConfigurationSetCommand = async ( +export const de_CreateRegistrationCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DeleteConfigurationSetCommandError(output, context); + return de_CreateRegistrationCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = de_DeleteConfigurationSetResult(data, context); - const response: DeleteConfigurationSetCommandOutput = { + contents = de_CreateRegistrationResult(data, context); + const response: CreateRegistrationCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1120,12 +1600,12 @@ export const de_DeleteConfigurationSetCommand = async ( }; /** - * deserializeAws_json1_0DeleteConfigurationSetCommandError + * deserializeAws_json1_0CreateRegistrationCommandError */ -const de_DeleteConfigurationSetCommandError = async ( +const de_CreateRegistrationCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -1135,12 +1615,15 @@ const de_DeleteConfigurationSetCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -1158,19 +1641,19 @@ const de_DeleteConfigurationSetCommandError = async ( }; /** - * deserializeAws_json1_0DeleteDefaultMessageTypeCommand + * deserializeAws_json1_0CreateRegistrationAssociationCommand */ -export const de_DeleteDefaultMessageTypeCommand = async ( +export const de_CreateRegistrationAssociationCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DeleteDefaultMessageTypeCommandError(output, context); + return de_CreateRegistrationAssociationCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; contents = _json(data); - const response: DeleteDefaultMessageTypeCommandOutput = { + const response: CreateRegistrationAssociationCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1178,12 +1661,12 @@ export const de_DeleteDefaultMessageTypeCommand = async ( }; /** - * deserializeAws_json1_0DeleteDefaultMessageTypeCommandError + * deserializeAws_json1_0CreateRegistrationAssociationCommandError */ -const de_DeleteDefaultMessageTypeCommandError = async ( +const de_CreateRegistrationAssociationCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -1193,12 +1676,18 @@ const de_DeleteDefaultMessageTypeCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -1216,19 +1705,19 @@ const de_DeleteDefaultMessageTypeCommandError = async ( }; /** - * deserializeAws_json1_0DeleteDefaultSenderIdCommand + * deserializeAws_json1_0CreateRegistrationAttachmentCommand */ -export const de_DeleteDefaultSenderIdCommand = async ( +export const de_CreateRegistrationAttachmentCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DeleteDefaultSenderIdCommandError(output, context); + return de_CreateRegistrationAttachmentCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = _json(data); - const response: DeleteDefaultSenderIdCommandOutput = { + contents = de_CreateRegistrationAttachmentResult(data, context); + const response: CreateRegistrationAttachmentCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1236,12 +1725,12 @@ export const de_DeleteDefaultSenderIdCommand = async ( }; /** - * deserializeAws_json1_0DeleteDefaultSenderIdCommandError + * deserializeAws_json1_0CreateRegistrationAttachmentCommandError */ -const de_DeleteDefaultSenderIdCommandError = async ( +const de_CreateRegistrationAttachmentCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -1251,12 +1740,15 @@ const de_DeleteDefaultSenderIdCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -1274,19 +1766,19 @@ const de_DeleteDefaultSenderIdCommandError = async ( }; /** - * deserializeAws_json1_0DeleteEventDestinationCommand + * deserializeAws_json1_0CreateRegistrationVersionCommand */ -export const de_DeleteEventDestinationCommand = async ( +export const de_CreateRegistrationVersionCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DeleteEventDestinationCommandError(output, context); + return de_CreateRegistrationVersionCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = _json(data); - const response: DeleteEventDestinationCommandOutput = { + contents = de_CreateRegistrationVersionResult(data, context); + const response: CreateRegistrationVersionCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1294,12 +1786,12 @@ export const de_DeleteEventDestinationCommand = async ( }; /** - * deserializeAws_json1_0DeleteEventDestinationCommandError + * deserializeAws_json1_0CreateRegistrationVersionCommandError */ -const de_DeleteEventDestinationCommandError = async ( +const de_CreateRegistrationVersionCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -1309,12 +1801,18 @@ const de_DeleteEventDestinationCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -1332,19 +1830,19 @@ const de_DeleteEventDestinationCommandError = async ( }; /** - * deserializeAws_json1_0DeleteKeywordCommand + * deserializeAws_json1_0CreateVerifiedDestinationNumberCommand */ -export const de_DeleteKeywordCommand = async ( +export const de_CreateVerifiedDestinationNumberCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DeleteKeywordCommandError(output, context); + return de_CreateVerifiedDestinationNumberCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = _json(data); - const response: DeleteKeywordCommandOutput = { + contents = de_CreateVerifiedDestinationNumberResult(data, context); + const response: CreateVerifiedDestinationNumberCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1352,12 +1850,12 @@ export const de_DeleteKeywordCommand = async ( }; /** - * deserializeAws_json1_0DeleteKeywordCommandError + * deserializeAws_json1_0CreateVerifiedDestinationNumberCommandError */ -const de_DeleteKeywordCommandError = async ( +const de_CreateVerifiedDestinationNumberCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -1373,9 +1871,9 @@ const de_DeleteKeywordCommandError = async ( case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -1393,19 +1891,19 @@ const de_DeleteKeywordCommandError = async ( }; /** - * deserializeAws_json1_0DeleteOptedOutNumberCommand + * deserializeAws_json1_0DeleteConfigurationSetCommand */ -export const de_DeleteOptedOutNumberCommand = async ( +export const de_DeleteConfigurationSetCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DeleteOptedOutNumberCommandError(output, context); + return de_DeleteConfigurationSetCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = de_DeleteOptedOutNumberResult(data, context); - const response: DeleteOptedOutNumberCommandOutput = { + contents = de_DeleteConfigurationSetResult(data, context); + const response: DeleteConfigurationSetCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1413,12 +1911,12 @@ export const de_DeleteOptedOutNumberCommand = async ( }; /** - * deserializeAws_json1_0DeleteOptedOutNumberCommandError + * deserializeAws_json1_0DeleteConfigurationSetCommandError */ -const de_DeleteOptedOutNumberCommandError = async ( +const de_DeleteConfigurationSetCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -1428,9 +1926,6 @@ const de_DeleteOptedOutNumberCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.pinpointsmsvoicev2#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); @@ -1454,19 +1949,19 @@ const de_DeleteOptedOutNumberCommandError = async ( }; /** - * deserializeAws_json1_0DeleteOptOutListCommand + * deserializeAws_json1_0DeleteDefaultMessageTypeCommand */ -export const de_DeleteOptOutListCommand = async ( +export const de_DeleteDefaultMessageTypeCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DeleteOptOutListCommandError(output, context); + return de_DeleteDefaultMessageTypeCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = de_DeleteOptOutListResult(data, context); - const response: DeleteOptOutListCommandOutput = { + contents = _json(data); + const response: DeleteDefaultMessageTypeCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1474,12 +1969,12 @@ export const de_DeleteOptOutListCommand = async ( }; /** - * deserializeAws_json1_0DeleteOptOutListCommandError + * deserializeAws_json1_0DeleteDefaultMessageTypeCommandError */ -const de_DeleteOptOutListCommandError = async ( +const de_DeleteDefaultMessageTypeCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -1489,9 +1984,6 @@ const de_DeleteOptOutListCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.pinpointsmsvoicev2#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); @@ -1515,19 +2007,19 @@ const de_DeleteOptOutListCommandError = async ( }; /** - * deserializeAws_json1_0DeletePoolCommand + * deserializeAws_json1_0DeleteDefaultSenderIdCommand */ -export const de_DeletePoolCommand = async ( +export const de_DeleteDefaultSenderIdCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DeletePoolCommandError(output, context); + return de_DeleteDefaultSenderIdCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = de_DeletePoolResult(data, context); - const response: DeletePoolCommandOutput = { + contents = _json(data); + const response: DeleteDefaultSenderIdCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1535,12 +2027,12 @@ export const de_DeletePoolCommand = async ( }; /** - * deserializeAws_json1_0DeletePoolCommandError + * deserializeAws_json1_0DeleteDefaultSenderIdCommandError */ -const de_DeletePoolCommandError = async ( +const de_DeleteDefaultSenderIdCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -1550,9 +2042,6 @@ const de_DeletePoolCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.pinpointsmsvoicev2#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); @@ -1576,19 +2065,19 @@ const de_DeletePoolCommandError = async ( }; /** - * deserializeAws_json1_0DeleteTextMessageSpendLimitOverrideCommand + * deserializeAws_json1_0DeleteEventDestinationCommand */ -export const de_DeleteTextMessageSpendLimitOverrideCommand = async ( +export const de_DeleteEventDestinationCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DeleteTextMessageSpendLimitOverrideCommandError(output, context); + return de_DeleteEventDestinationCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; contents = _json(data); - const response: DeleteTextMessageSpendLimitOverrideCommandOutput = { + const response: DeleteEventDestinationCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1596,12 +2085,12 @@ export const de_DeleteTextMessageSpendLimitOverrideCommand = async ( }; /** - * deserializeAws_json1_0DeleteTextMessageSpendLimitOverrideCommandError + * deserializeAws_json1_0DeleteEventDestinationCommandError */ -const de_DeleteTextMessageSpendLimitOverrideCommandError = async ( +const de_DeleteEventDestinationCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -1614,6 +2103,9 @@ const de_DeleteTextMessageSpendLimitOverrideCommandError = async ( case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -1631,19 +2123,19 @@ const de_DeleteTextMessageSpendLimitOverrideCommandError = async ( }; /** - * deserializeAws_json1_0DeleteVoiceMessageSpendLimitOverrideCommand + * deserializeAws_json1_0DeleteKeywordCommand */ -export const de_DeleteVoiceMessageSpendLimitOverrideCommand = async ( +export const de_DeleteKeywordCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DeleteVoiceMessageSpendLimitOverrideCommandError(output, context); + return de_DeleteKeywordCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; contents = _json(data); - const response: DeleteVoiceMessageSpendLimitOverrideCommandOutput = { + const response: DeleteKeywordCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1651,12 +2143,12 @@ export const de_DeleteVoiceMessageSpendLimitOverrideCommand = async ( }; /** - * deserializeAws_json1_0DeleteVoiceMessageSpendLimitOverrideCommandError + * deserializeAws_json1_0DeleteKeywordCommandError */ -const de_DeleteVoiceMessageSpendLimitOverrideCommandError = async ( +const de_DeleteKeywordCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -1666,9 +2158,15 @@ const de_DeleteVoiceMessageSpendLimitOverrideCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -1686,19 +2184,19 @@ const de_DeleteVoiceMessageSpendLimitOverrideCommandError = async ( }; /** - * deserializeAws_json1_0DescribeAccountAttributesCommand + * deserializeAws_json1_0DeleteOptedOutNumberCommand */ -export const de_DescribeAccountAttributesCommand = async ( +export const de_DeleteOptedOutNumberCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DescribeAccountAttributesCommandError(output, context); + return de_DeleteOptedOutNumberCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = _json(data); - const response: DescribeAccountAttributesCommandOutput = { + contents = de_DeleteOptedOutNumberResult(data, context); + const response: DeleteOptedOutNumberCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1706,12 +2204,12 @@ export const de_DescribeAccountAttributesCommand = async ( }; /** - * deserializeAws_json1_0DescribeAccountAttributesCommandError + * deserializeAws_json1_0DeleteOptedOutNumberCommandError */ -const de_DescribeAccountAttributesCommandError = async ( +const de_DeleteOptedOutNumberCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -1721,9 +2219,15 @@ const de_DescribeAccountAttributesCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -1741,19 +2245,19 @@ const de_DescribeAccountAttributesCommandError = async ( }; /** - * deserializeAws_json1_0DescribeAccountLimitsCommand + * deserializeAws_json1_0DeleteOptOutListCommand */ -export const de_DescribeAccountLimitsCommand = async ( +export const de_DeleteOptOutListCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DescribeAccountLimitsCommandError(output, context); + return de_DeleteOptOutListCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = _json(data); - const response: DescribeAccountLimitsCommandOutput = { + contents = de_DeleteOptOutListResult(data, context); + const response: DeleteOptOutListCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1761,12 +2265,12 @@ export const de_DescribeAccountLimitsCommand = async ( }; /** - * deserializeAws_json1_0DescribeAccountLimitsCommandError + * deserializeAws_json1_0DeleteOptOutListCommandError */ -const de_DescribeAccountLimitsCommandError = async ( +const de_DeleteOptOutListCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -1776,9 +2280,15 @@ const de_DescribeAccountLimitsCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -1796,19 +2306,19 @@ const de_DescribeAccountLimitsCommandError = async ( }; /** - * deserializeAws_json1_0DescribeConfigurationSetsCommand + * deserializeAws_json1_0DeletePoolCommand */ -export const de_DescribeConfigurationSetsCommand = async ( +export const de_DeletePoolCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DescribeConfigurationSetsCommandError(output, context); + return de_DeletePoolCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = de_DescribeConfigurationSetsResult(data, context); - const response: DescribeConfigurationSetsCommandOutput = { + contents = de_DeletePoolResult(data, context); + const response: DeletePoolCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1816,12 +2326,12 @@ export const de_DescribeConfigurationSetsCommand = async ( }; /** - * deserializeAws_json1_0DescribeConfigurationSetsCommandError + * deserializeAws_json1_0DeletePoolCommandError */ -const de_DescribeConfigurationSetsCommandError = async ( +const de_DeletePoolCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -1831,6 +2341,9 @@ const de_DescribeConfigurationSetsCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); @@ -1854,19 +2367,19 @@ const de_DescribeConfigurationSetsCommandError = async ( }; /** - * deserializeAws_json1_0DescribeKeywordsCommand + * deserializeAws_json1_0DeleteRegistrationCommand */ -export const de_DescribeKeywordsCommand = async ( +export const de_DeleteRegistrationCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DescribeKeywordsCommandError(output, context); + return de_DeleteRegistrationCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = _json(data); - const response: DescribeKeywordsCommandOutput = { + contents = de_DeleteRegistrationResult(data, context); + const response: DeleteRegistrationCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1874,12 +2387,12 @@ export const de_DescribeKeywordsCommand = async ( }; /** - * deserializeAws_json1_0DescribeKeywordsCommandError + * deserializeAws_json1_0DeleteRegistrationCommandError */ -const de_DescribeKeywordsCommandError = async ( +const de_DeleteRegistrationCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -1889,6 +2402,9 @@ const de_DescribeKeywordsCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); @@ -1912,19 +2428,19 @@ const de_DescribeKeywordsCommandError = async ( }; /** - * deserializeAws_json1_0DescribeOptedOutNumbersCommand + * deserializeAws_json1_0DeleteRegistrationAttachmentCommand */ -export const de_DescribeOptedOutNumbersCommand = async ( +export const de_DeleteRegistrationAttachmentCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DescribeOptedOutNumbersCommandError(output, context); + return de_DeleteRegistrationAttachmentCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = de_DescribeOptedOutNumbersResult(data, context); - const response: DescribeOptedOutNumbersCommandOutput = { + contents = de_DeleteRegistrationAttachmentResult(data, context); + const response: DeleteRegistrationAttachmentCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1932,12 +2448,12 @@ export const de_DescribeOptedOutNumbersCommand = async ( }; /** - * deserializeAws_json1_0DescribeOptedOutNumbersCommandError + * deserializeAws_json1_0DeleteRegistrationAttachmentCommandError */ -const de_DescribeOptedOutNumbersCommandError = async ( +const de_DeleteRegistrationAttachmentCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -1947,6 +2463,9 @@ const de_DescribeOptedOutNumbersCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); @@ -1970,19 +2489,19 @@ const de_DescribeOptedOutNumbersCommandError = async ( }; /** - * deserializeAws_json1_0DescribeOptOutListsCommand + * deserializeAws_json1_0DeleteRegistrationFieldValueCommand */ -export const de_DescribeOptOutListsCommand = async ( +export const de_DeleteRegistrationFieldValueCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DescribeOptOutListsCommandError(output, context); + return de_DeleteRegistrationFieldValueCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = de_DescribeOptOutListsResult(data, context); - const response: DescribeOptOutListsCommandOutput = { + contents = _json(data); + const response: DeleteRegistrationFieldValueCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -1990,12 +2509,12 @@ export const de_DescribeOptOutListsCommand = async ( }; /** - * deserializeAws_json1_0DescribeOptOutListsCommandError + * deserializeAws_json1_0DeleteRegistrationFieldValueCommandError */ -const de_DescribeOptOutListsCommandError = async ( +const de_DeleteRegistrationFieldValueCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -2005,6 +2524,9 @@ const de_DescribeOptOutListsCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); @@ -2028,19 +2550,19 @@ const de_DescribeOptOutListsCommandError = async ( }; /** - * deserializeAws_json1_0DescribePhoneNumbersCommand + * deserializeAws_json1_0DeleteTextMessageSpendLimitOverrideCommand */ -export const de_DescribePhoneNumbersCommand = async ( +export const de_DeleteTextMessageSpendLimitOverrideCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DescribePhoneNumbersCommandError(output, context); + return de_DeleteTextMessageSpendLimitOverrideCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = de_DescribePhoneNumbersResult(data, context); - const response: DescribePhoneNumbersCommandOutput = { + contents = _json(data); + const response: DeleteTextMessageSpendLimitOverrideCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -2048,12 +2570,12 @@ export const de_DescribePhoneNumbersCommand = async ( }; /** - * deserializeAws_json1_0DescribePhoneNumbersCommandError + * deserializeAws_json1_0DeleteTextMessageSpendLimitOverrideCommandError */ -const de_DescribePhoneNumbersCommandError = async ( +const de_DeleteTextMessageSpendLimitOverrideCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -2066,9 +2588,6 @@ const de_DescribePhoneNumbersCommandError = async ( case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -2086,19 +2605,19 @@ const de_DescribePhoneNumbersCommandError = async ( }; /** - * deserializeAws_json1_0DescribePoolsCommand + * deserializeAws_json1_0DeleteVerifiedDestinationNumberCommand */ -export const de_DescribePoolsCommand = async ( +export const de_DeleteVerifiedDestinationNumberCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DescribePoolsCommandError(output, context); + return de_DeleteVerifiedDestinationNumberCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = de_DescribePoolsResult(data, context); - const response: DescribePoolsCommandOutput = { + contents = de_DeleteVerifiedDestinationNumberResult(data, context); + const response: DeleteVerifiedDestinationNumberCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -2106,12 +2625,12 @@ export const de_DescribePoolsCommand = async ( }; /** - * deserializeAws_json1_0DescribePoolsCommandError + * deserializeAws_json1_0DeleteVerifiedDestinationNumberCommandError */ -const de_DescribePoolsCommandError = async ( +const de_DeleteVerifiedDestinationNumberCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -2121,6 +2640,9 @@ const de_DescribePoolsCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); @@ -2144,19 +2666,19 @@ const de_DescribePoolsCommandError = async ( }; /** - * deserializeAws_json1_0DescribeSenderIdsCommand + * deserializeAws_json1_0DeleteVoiceMessageSpendLimitOverrideCommand */ -export const de_DescribeSenderIdsCommand = async ( +export const de_DeleteVoiceMessageSpendLimitOverrideCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DescribeSenderIdsCommandError(output, context); + return de_DeleteVoiceMessageSpendLimitOverrideCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; contents = _json(data); - const response: DescribeSenderIdsCommandOutput = { + const response: DeleteVoiceMessageSpendLimitOverrideCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -2164,12 +2686,12 @@ export const de_DescribeSenderIdsCommand = async ( }; /** - * deserializeAws_json1_0DescribeSenderIdsCommandError + * deserializeAws_json1_0DeleteVoiceMessageSpendLimitOverrideCommandError */ -const de_DescribeSenderIdsCommandError = async ( +const de_DeleteVoiceMessageSpendLimitOverrideCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -2182,9 +2704,6 @@ const de_DescribeSenderIdsCommandError = async ( case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -2202,19 +2721,19 @@ const de_DescribeSenderIdsCommandError = async ( }; /** - * deserializeAws_json1_0DescribeSpendLimitsCommand + * deserializeAws_json1_0DescribeAccountAttributesCommand */ -export const de_DescribeSpendLimitsCommand = async ( +export const de_DescribeAccountAttributesCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DescribeSpendLimitsCommandError(output, context); + return de_DescribeAccountAttributesCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; contents = _json(data); - const response: DescribeSpendLimitsCommandOutput = { + const response: DescribeAccountAttributesCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -2222,12 +2741,12 @@ export const de_DescribeSpendLimitsCommand = async ( }; /** - * deserializeAws_json1_0DescribeSpendLimitsCommandError + * deserializeAws_json1_0DescribeAccountAttributesCommandError */ -const de_DescribeSpendLimitsCommandError = async ( +const de_DescribeAccountAttributesCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -2257,19 +2776,19 @@ const de_DescribeSpendLimitsCommandError = async ( }; /** - * deserializeAws_json1_0DisassociateOriginationIdentityCommand + * deserializeAws_json1_0DescribeAccountLimitsCommand */ -export const de_DisassociateOriginationIdentityCommand = async ( +export const de_DescribeAccountLimitsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_DisassociateOriginationIdentityCommandError(output, context); + return de_DescribeAccountLimitsCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; contents = _json(data); - const response: DisassociateOriginationIdentityCommandOutput = { + const response: DescribeAccountLimitsCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -2277,12 +2796,12 @@ export const de_DisassociateOriginationIdentityCommand = async ( }; /** - * deserializeAws_json1_0DisassociateOriginationIdentityCommandError + * deserializeAws_json1_0DescribeAccountLimitsCommandError */ -const de_DisassociateOriginationIdentityCommandError = async ( +const de_DescribeAccountLimitsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -2292,15 +2811,9 @@ const de_DisassociateOriginationIdentityCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.pinpointsmsvoicev2#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -2318,19 +2831,19 @@ const de_DisassociateOriginationIdentityCommandError = async ( }; /** - * deserializeAws_json1_0ListPoolOriginationIdentitiesCommand + * deserializeAws_json1_0DescribeConfigurationSetsCommand */ -export const de_ListPoolOriginationIdentitiesCommand = async ( +export const de_DescribeConfigurationSetsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_ListPoolOriginationIdentitiesCommandError(output, context); + return de_DescribeConfigurationSetsCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = _json(data); - const response: ListPoolOriginationIdentitiesCommandOutput = { + contents = de_DescribeConfigurationSetsResult(data, context); + const response: DescribeConfigurationSetsCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -2338,12 +2851,12 @@ export const de_ListPoolOriginationIdentitiesCommand = async ( }; /** - * deserializeAws_json1_0ListPoolOriginationIdentitiesCommandError + * deserializeAws_json1_0DescribeConfigurationSetsCommandError */ -const de_ListPoolOriginationIdentitiesCommandError = async ( +const de_DescribeConfigurationSetsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -2376,19 +2889,19 @@ const de_ListPoolOriginationIdentitiesCommandError = async ( }; /** - * deserializeAws_json1_0ListTagsForResourceCommand + * deserializeAws_json1_0DescribeKeywordsCommand */ -export const de_ListTagsForResourceCommand = async ( +export const de_DescribeKeywordsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_ListTagsForResourceCommandError(output, context); + return de_DescribeKeywordsCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; contents = _json(data); - const response: ListTagsForResourceCommandOutput = { + const response: DescribeKeywordsCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -2396,12 +2909,12 @@ export const de_ListTagsForResourceCommand = async ( }; /** - * deserializeAws_json1_0ListTagsForResourceCommandError + * deserializeAws_json1_0DescribeKeywordsCommandError */ -const de_ListTagsForResourceCommandError = async ( +const de_DescribeKeywordsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -2434,19 +2947,19 @@ const de_ListTagsForResourceCommandError = async ( }; /** - * deserializeAws_json1_0PutKeywordCommand + * deserializeAws_json1_0DescribeOptedOutNumbersCommand */ -export const de_PutKeywordCommand = async ( +export const de_DescribeOptedOutNumbersCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_PutKeywordCommandError(output, context); + return de_DescribeOptedOutNumbersCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = _json(data); - const response: PutKeywordCommandOutput = { + contents = de_DescribeOptedOutNumbersResult(data, context); + const response: DescribeOptedOutNumbersCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -2454,12 +2967,12 @@ export const de_PutKeywordCommand = async ( }; /** - * deserializeAws_json1_0PutKeywordCommandError + * deserializeAws_json1_0DescribeOptedOutNumbersCommandError */ -const de_PutKeywordCommandError = async ( +const de_DescribeOptedOutNumbersCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -2469,18 +2982,12 @@ const de_PutKeywordCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.pinpointsmsvoicev2#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ServiceQuotaExceededException": - case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException": - throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -2498,19 +3005,19 @@ const de_PutKeywordCommandError = async ( }; /** - * deserializeAws_json1_0PutOptedOutNumberCommand + * deserializeAws_json1_0DescribeOptOutListsCommand */ -export const de_PutOptedOutNumberCommand = async ( +export const de_DescribeOptOutListsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_PutOptedOutNumberCommandError(output, context); + return de_DescribeOptOutListsCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = de_PutOptedOutNumberResult(data, context); - const response: PutOptedOutNumberCommandOutput = { + contents = de_DescribeOptOutListsResult(data, context); + const response: DescribeOptOutListsCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -2518,12 +3025,12 @@ export const de_PutOptedOutNumberCommand = async ( }; /** - * deserializeAws_json1_0PutOptedOutNumberCommandError + * deserializeAws_json1_0DescribeOptOutListsCommandError */ -const de_PutOptedOutNumberCommandError = async ( +const de_DescribeOptOutListsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -2556,19 +3063,19 @@ const de_PutOptedOutNumberCommandError = async ( }; /** - * deserializeAws_json1_0ReleasePhoneNumberCommand + * deserializeAws_json1_0DescribePhoneNumbersCommand */ -export const de_ReleasePhoneNumberCommand = async ( +export const de_DescribePhoneNumbersCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_ReleasePhoneNumberCommandError(output, context); + return de_DescribePhoneNumbersCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = de_ReleasePhoneNumberResult(data, context); - const response: ReleasePhoneNumberCommandOutput = { + contents = de_DescribePhoneNumbersResult(data, context); + const response: DescribePhoneNumbersCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -2576,12 +3083,12 @@ export const de_ReleasePhoneNumberCommand = async ( }; /** - * deserializeAws_json1_0ReleasePhoneNumberCommandError + * deserializeAws_json1_0DescribePhoneNumbersCommandError */ -const de_ReleasePhoneNumberCommandError = async ( +const de_DescribePhoneNumbersCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -2591,9 +3098,6 @@ const de_ReleasePhoneNumberCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.pinpointsmsvoicev2#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); @@ -2617,19 +3121,19 @@ const de_ReleasePhoneNumberCommandError = async ( }; /** - * deserializeAws_json1_0RequestPhoneNumberCommand + * deserializeAws_json1_0DescribePoolsCommand */ -export const de_RequestPhoneNumberCommand = async ( +export const de_DescribePoolsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_RequestPhoneNumberCommandError(output, context); + return de_DescribePoolsCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = de_RequestPhoneNumberResult(data, context); - const response: RequestPhoneNumberCommandOutput = { + contents = de_DescribePoolsResult(data, context); + const response: DescribePoolsCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -2637,12 +3141,12 @@ export const de_RequestPhoneNumberCommand = async ( }; /** - * deserializeAws_json1_0RequestPhoneNumberCommandError + * deserializeAws_json1_0DescribePoolsCommandError */ -const de_RequestPhoneNumberCommandError = async ( +const de_DescribePoolsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -2652,18 +3156,12 @@ const de_RequestPhoneNumberCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.pinpointsmsvoicev2#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ServiceQuotaExceededException": - case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException": - throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -2681,19 +3179,19 @@ const de_RequestPhoneNumberCommandError = async ( }; /** - * deserializeAws_json1_0SendTextMessageCommand + * deserializeAws_json1_0DescribeRegistrationAttachmentsCommand */ -export const de_SendTextMessageCommand = async ( +export const de_DescribeRegistrationAttachmentsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode >= 300) { - return de_SendTextMessageCommandError(output, context); + return de_DescribeRegistrationAttachmentsCommandError(output, context); } const data: any = await parseBody(output.body, context); let contents: any = {}; - contents = _json(data); - const response: SendTextMessageCommandOutput = { + contents = de_DescribeRegistrationAttachmentsResult(data, context); + const response: DescribeRegistrationAttachmentsCommandOutput = { $metadata: deserializeMetadata(output), ...contents, }; @@ -2701,12 +3199,12 @@ export const de_SendTextMessageCommand = async ( }; /** - * deserializeAws_json1_0SendTextMessageCommandError + * deserializeAws_json1_0DescribeRegistrationAttachmentsCommandError */ -const de_SendTextMessageCommandError = async ( +const de_DescribeRegistrationAttachmentsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -2716,18 +3214,12 @@ const de_SendTextMessageCommandError = async ( case "AccessDeniedException": case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.pinpointsmsvoicev2#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ServiceQuotaExceededException": - case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException": - throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -2745,7 +3237,1371 @@ const de_SendTextMessageCommandError = async ( }; /** - * deserializeAws_json1_0SendVoiceMessageCommand + * deserializeAws_json1_0DescribeRegistrationFieldDefinitionsCommand + */ +export const de_DescribeRegistrationFieldDefinitionsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_DescribeRegistrationFieldDefinitionsCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeRegistrationFieldDefinitionsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0DescribeRegistrationFieldDefinitionsCommandError + */ +const de_DescribeRegistrationFieldDefinitionsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0DescribeRegistrationFieldValuesCommand + */ +export const de_DescribeRegistrationFieldValuesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_DescribeRegistrationFieldValuesCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeRegistrationFieldValuesCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0DescribeRegistrationFieldValuesCommandError + */ +const de_DescribeRegistrationFieldValuesCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0DescribeRegistrationsCommand + */ +export const de_DescribeRegistrationsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_DescribeRegistrationsCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_DescribeRegistrationsResult(data, context); + const response: DescribeRegistrationsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0DescribeRegistrationsCommandError + */ +const de_DescribeRegistrationsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0DescribeRegistrationSectionDefinitionsCommand + */ +export const de_DescribeRegistrationSectionDefinitionsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_DescribeRegistrationSectionDefinitionsCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeRegistrationSectionDefinitionsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0DescribeRegistrationSectionDefinitionsCommandError + */ +const de_DescribeRegistrationSectionDefinitionsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0DescribeRegistrationTypeDefinitionsCommand + */ +export const de_DescribeRegistrationTypeDefinitionsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_DescribeRegistrationTypeDefinitionsCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeRegistrationTypeDefinitionsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0DescribeRegistrationTypeDefinitionsCommandError + */ +const de_DescribeRegistrationTypeDefinitionsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0DescribeRegistrationVersionsCommand + */ +export const de_DescribeRegistrationVersionsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_DescribeRegistrationVersionsCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_DescribeRegistrationVersionsResult(data, context); + const response: DescribeRegistrationVersionsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0DescribeRegistrationVersionsCommandError + */ +const de_DescribeRegistrationVersionsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0DescribeSenderIdsCommand + */ +export const de_DescribeSenderIdsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_DescribeSenderIdsCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeSenderIdsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0DescribeSenderIdsCommandError + */ +const de_DescribeSenderIdsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0DescribeSpendLimitsCommand + */ +export const de_DescribeSpendLimitsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_DescribeSpendLimitsCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeSpendLimitsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0DescribeSpendLimitsCommandError + */ +const de_DescribeSpendLimitsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0DescribeVerifiedDestinationNumbersCommand + */ +export const de_DescribeVerifiedDestinationNumbersCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_DescribeVerifiedDestinationNumbersCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_DescribeVerifiedDestinationNumbersResult(data, context); + const response: DescribeVerifiedDestinationNumbersCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0DescribeVerifiedDestinationNumbersCommandError + */ +const de_DescribeVerifiedDestinationNumbersCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0DisassociateOriginationIdentityCommand + */ +export const de_DisassociateOriginationIdentityCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_DisassociateOriginationIdentityCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DisassociateOriginationIdentityCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0DisassociateOriginationIdentityCommandError + */ +const de_DisassociateOriginationIdentityCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0DiscardRegistrationVersionCommand + */ +export const de_DiscardRegistrationVersionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_DiscardRegistrationVersionCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_DiscardRegistrationVersionResult(data, context); + const response: DiscardRegistrationVersionCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0DiscardRegistrationVersionCommandError + */ +const de_DiscardRegistrationVersionCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0ListPoolOriginationIdentitiesCommand + */ +export const de_ListPoolOriginationIdentitiesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_ListPoolOriginationIdentitiesCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ListPoolOriginationIdentitiesCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0ListPoolOriginationIdentitiesCommandError + */ +const de_ListPoolOriginationIdentitiesCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0ListRegistrationAssociationsCommand + */ +export const de_ListRegistrationAssociationsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_ListRegistrationAssociationsCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ListRegistrationAssociationsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0ListRegistrationAssociationsCommandError + */ +const de_ListRegistrationAssociationsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0ListTagsForResourceCommand + */ +export const de_ListTagsForResourceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_ListTagsForResourceCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ListTagsForResourceCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0ListTagsForResourceCommandError + */ +const de_ListTagsForResourceCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0PutKeywordCommand + */ +export const de_PutKeywordCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_PutKeywordCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: PutKeywordCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0PutKeywordCommandError + */ +const de_PutKeywordCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0PutOptedOutNumberCommand + */ +export const de_PutOptedOutNumberCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_PutOptedOutNumberCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_PutOptedOutNumberResult(data, context); + const response: PutOptedOutNumberCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0PutOptedOutNumberCommandError + */ +const de_PutOptedOutNumberCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0PutRegistrationFieldValueCommand + */ +export const de_PutRegistrationFieldValueCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_PutRegistrationFieldValueCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: PutRegistrationFieldValueCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0PutRegistrationFieldValueCommandError + */ +const de_PutRegistrationFieldValueCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0ReleasePhoneNumberCommand + */ +export const de_ReleasePhoneNumberCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_ReleasePhoneNumberCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_ReleasePhoneNumberResult(data, context); + const response: ReleasePhoneNumberCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0ReleasePhoneNumberCommandError + */ +const de_ReleasePhoneNumberCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0ReleaseSenderIdCommand + */ +export const de_ReleaseSenderIdCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_ReleaseSenderIdCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: ReleaseSenderIdCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0ReleaseSenderIdCommandError + */ +const de_ReleaseSenderIdCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0RequestPhoneNumberCommand + */ +export const de_RequestPhoneNumberCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_RequestPhoneNumberCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_RequestPhoneNumberResult(data, context); + const response: RequestPhoneNumberCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0RequestPhoneNumberCommandError + */ +const de_RequestPhoneNumberCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0RequestSenderIdCommand + */ +export const de_RequestSenderIdCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_RequestSenderIdCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: RequestSenderIdCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0RequestSenderIdCommandError + */ +const de_RequestSenderIdCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0SendDestinationNumberVerificationCodeCommand + */ +export const de_SendDestinationNumberVerificationCodeCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_SendDestinationNumberVerificationCodeCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: SendDestinationNumberVerificationCodeCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0SendDestinationNumberVerificationCodeCommandError + */ +const de_SendDestinationNumberVerificationCodeCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0SendTextMessageCommand + */ +export const de_SendTextMessageCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_SendTextMessageCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: SendTextMessageCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0SendTextMessageCommandError + */ +const de_SendTextMessageCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0SendVoiceMessageCommand */ export const de_SendVoiceMessageCommand = async ( output: __HttpResponse, @@ -3034,6 +4890,67 @@ const de_SetVoiceMessageSpendLimitOverrideCommandError = async ( } }; +/** + * deserializeAws_json1_0SubmitRegistrationVersionCommand + */ +export const de_SubmitRegistrationVersionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_SubmitRegistrationVersionCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_SubmitRegistrationVersionResult(data, context); + const response: SubmitRegistrationVersionCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0SubmitRegistrationVersionCommandError + */ +const de_SubmitRegistrationVersionCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_json1_0TagResourceCommand */ @@ -3336,6 +5253,125 @@ const de_UpdatePoolCommandError = async ( } }; +/** + * deserializeAws_json1_0UpdateSenderIdCommand + */ +export const de_UpdateSenderIdCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_UpdateSenderIdCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: UpdateSenderIdCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0UpdateSenderIdCommandError + */ +const de_UpdateSenderIdCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_json1_0VerifyDestinationNumberCommand + */ +export const de_VerifyDestinationNumberCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_VerifyDestinationNumberCommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = de_VerifyDestinationNumberResult(data, context); + const response: VerifyDestinationNumberCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_0VerifyDestinationNumberCommandError + */ +const de_VerifyDestinationNumberCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.pinpointsmsvoicev2#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalServerException": + case "com.amazonaws.pinpointsmsvoicev2#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "ValidationException": + case "com.amazonaws.pinpointsmsvoicev2#ValidationException": + throw await de_ValidationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + /** * deserializeAws_json1_0AccessDeniedExceptionRes */ @@ -3515,6 +5551,50 @@ const se_CreatePoolRequest = (input: CreatePoolRequest, context: __SerdeContext) }); }; +// se_CreateRegistrationAssociationRequest omitted. + +/** + * serializeAws_json1_0CreateRegistrationAttachmentRequest + */ +const se_CreateRegistrationAttachmentRequest = ( + input: CreateRegistrationAttachmentRequest, + context: __SerdeContext +): any => { + return take(input, { + AttachmentBody: context.base64Encoder, + AttachmentUrl: [], + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], + Tags: _json, + }); +}; + +/** + * serializeAws_json1_0CreateRegistrationRequest + */ +const se_CreateRegistrationRequest = (input: CreateRegistrationRequest, context: __SerdeContext): any => { + return take(input, { + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], + RegistrationType: [], + Tags: _json, + }); +}; + +// se_CreateRegistrationVersionRequest omitted. + +/** + * serializeAws_json1_0CreateVerifiedDestinationNumberRequest + */ +const se_CreateVerifiedDestinationNumberRequest = ( + input: CreateVerifiedDestinationNumberRequest, + context: __SerdeContext +): any => { + return take(input, { + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], + DestinationPhoneNumber: [], + Tags: _json, + }); +}; + // se_DeleteConfigurationSetRequest omitted. // se_DeleteDefaultMessageTypeRequest omitted. @@ -3531,8 +5611,16 @@ const se_CreatePoolRequest = (input: CreatePoolRequest, context: __SerdeContext) // se_DeletePoolRequest omitted. +// se_DeleteRegistrationAttachmentRequest omitted. + +// se_DeleteRegistrationFieldValueRequest omitted. + +// se_DeleteRegistrationRequest omitted. + // se_DeleteTextMessageSpendLimitOverrideRequest omitted. +// se_DeleteVerifiedDestinationNumberRequest omitted. + // se_DeleteVoiceMessageSpendLimitOverrideRequest omitted. // se_DescribeAccountAttributesRequest omitted. @@ -3551,12 +5639,30 @@ const se_CreatePoolRequest = (input: CreatePoolRequest, context: __SerdeContext) // se_DescribePoolsRequest omitted. +// se_DescribeRegistrationAttachmentsRequest omitted. + +// se_DescribeRegistrationFieldDefinitionsRequest omitted. + +// se_DescribeRegistrationFieldValuesRequest omitted. + +// se_DescribeRegistrationSectionDefinitionsRequest omitted. + +// se_DescribeRegistrationsRequest omitted. + +// se_DescribeRegistrationTypeDefinitionsRequest omitted. + +// se_DescribeRegistrationVersionsRequest omitted. + // se_DescribeSenderIdsRequest omitted. // se_DescribeSpendLimitsRequest omitted. +// se_DescribeVerifiedDestinationNumbersRequest omitted. + // se_DestinationCountryParameters omitted. +// se_DestinationPhoneNumberList omitted. + /** * serializeAws_json1_0DisassociateOriginationIdentityRequest */ @@ -3572,8 +5678,12 @@ const se_DisassociateOriginationIdentityRequest = ( }); }; +// se_DiscardRegistrationVersionRequest omitted. + // se_EventTypeList omitted. +// se_FieldPathList omitted. + // se_FilterValueList omitted. // se_KeywordFilter omitted. @@ -3586,8 +5696,12 @@ const se_DisassociateOriginationIdentityRequest = ( // se_ListPoolOriginationIdentitiesRequest omitted. +// se_ListRegistrationAssociationsRequest omitted. + // se_ListTagsForResourceRequest omitted. +// se_MessageTypeList omitted. + // se_NonEmptyTagList omitted. // se_NumberCapabilityList omitted. @@ -3620,8 +5734,40 @@ const se_DisassociateOriginationIdentityRequest = ( // se_PutOptedOutNumberRequest omitted. +// se_PutRegistrationFieldValueRequest omitted. + +// se_RegistrationAssociationFilter omitted. + +// se_RegistrationAssociationFilterList omitted. + +// se_RegistrationAttachmentFilter omitted. + +// se_RegistrationAttachmentFilterList omitted. + +// se_RegistrationAttachmentIdList omitted. + +// se_RegistrationFilter omitted. + +// se_RegistrationFilterList omitted. + +// se_RegistrationIdList omitted. + +// se_RegistrationTypeFilter omitted. + +// se_RegistrationTypeFilterList omitted. + +// se_RegistrationTypeList omitted. + +// se_RegistrationVersionFilter omitted. + +// se_RegistrationVersionFilterList omitted. + +// se_RegistrationVersionNumberList omitted. + // se_ReleasePhoneNumberRequest omitted. +// se_ReleaseSenderIdRequest omitted. + /** * serializeAws_json1_0RequestPhoneNumberRequest */ @@ -3640,6 +5786,26 @@ const se_RequestPhoneNumberRequest = (input: RequestPhoneNumberRequest, context: }); }; +/** + * serializeAws_json1_0RequestSenderIdRequest + */ +const se_RequestSenderIdRequest = (input: RequestSenderIdRequest, context: __SerdeContext): any => { + return take(input, { + ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], + DeletionProtectionEnabled: [], + IsoCountryCode: [], + MessageTypes: _json, + SenderId: [], + Tags: _json, + }); +}; + +// se_SectionPathList omitted. + +// se_SelectChoiceList omitted. + +// se_SendDestinationNumberVerificationCodeRequest omitted. + // se_SenderIdAndCountry omitted. // se_SenderIdFilter omitted. @@ -3662,6 +5828,8 @@ const se_RequestPhoneNumberRequest = (input: RequestPhoneNumberRequest, context: // se_SnsDestination omitted. +// se_SubmitRegistrationVersionRequest omitted. + // se_Tag omitted. // se_TagKeyList omitted. @@ -3678,6 +5846,16 @@ const se_RequestPhoneNumberRequest = (input: RequestPhoneNumberRequest, context: // se_UpdatePoolRequest omitted. +// se_UpdateSenderIdRequest omitted. + +// se_VerifiedDestinationNumberFilter omitted. + +// se_VerifiedDestinationNumberFilterList omitted. + +// se_VerifiedDestinationNumberIdList omitted. + +// se_VerifyDestinationNumberRequest omitted. + // de_AccessDeniedException omitted. // de_AccountAttribute omitted. @@ -3762,10 +5940,75 @@ const de_CreatePoolResult = (output: any, context: __SerdeContext): CreatePoolRe Status: __expectString, Tags: _json, TwoWayChannelArn: __expectString, + TwoWayChannelRole: __expectString, TwoWayEnabled: __expectBoolean, }) as any; }; +// de_CreateRegistrationAssociationResult omitted. + +/** + * deserializeAws_json1_0CreateRegistrationAttachmentResult + */ +const de_CreateRegistrationAttachmentResult = ( + output: any, + context: __SerdeContext +): CreateRegistrationAttachmentResult => { + return take(output, { + AttachmentStatus: __expectString, + CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + RegistrationAttachmentArn: __expectString, + RegistrationAttachmentId: __expectString, + Tags: _json, + }) as any; +}; + +/** + * deserializeAws_json1_0CreateRegistrationResult + */ +const de_CreateRegistrationResult = (output: any, context: __SerdeContext): CreateRegistrationResult => { + return take(output, { + AdditionalAttributes: _json, + CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + CurrentVersionNumber: __expectLong, + RegistrationArn: __expectString, + RegistrationId: __expectString, + RegistrationStatus: __expectString, + RegistrationType: __expectString, + Tags: _json, + }) as any; +}; + +/** + * deserializeAws_json1_0CreateRegistrationVersionResult + */ +const de_CreateRegistrationVersionResult = (output: any, context: __SerdeContext): CreateRegistrationVersionResult => { + return take(output, { + RegistrationArn: __expectString, + RegistrationId: __expectString, + RegistrationVersionStatus: __expectString, + RegistrationVersionStatusHistory: (_: any) => de_RegistrationVersionStatusHistory(_, context), + VersionNumber: __expectLong, + }) as any; +}; + +/** + * deserializeAws_json1_0CreateVerifiedDestinationNumberResult + */ +const de_CreateVerifiedDestinationNumberResult = ( + output: any, + context: __SerdeContext +): CreateVerifiedDestinationNumberResult => { + return take(output, { + CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + DestinationPhoneNumber: __expectString, + Status: __expectString, + Tags: _json, + VerifiedDestinationNumberArn: __expectString, + VerifiedDestinationNumberId: __expectString, + }) as any; +}; + /** * deserializeAws_json1_0DeleteConfigurationSetResult */ @@ -3826,12 +6069,63 @@ const de_DeletePoolResult = (output: any, context: __SerdeContext): DeletePoolRe SharedRoutesEnabled: __expectBoolean, Status: __expectString, TwoWayChannelArn: __expectString, + TwoWayChannelRole: __expectString, TwoWayEnabled: __expectBoolean, }) as any; }; +/** + * deserializeAws_json1_0DeleteRegistrationAttachmentResult + */ +const de_DeleteRegistrationAttachmentResult = ( + output: any, + context: __SerdeContext +): DeleteRegistrationAttachmentResult => { + return take(output, { + AttachmentStatus: __expectString, + AttachmentUploadErrorReason: __expectString, + CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + RegistrationAttachmentArn: __expectString, + RegistrationAttachmentId: __expectString, + }) as any; +}; + +// de_DeleteRegistrationFieldValueResult omitted. + +/** + * deserializeAws_json1_0DeleteRegistrationResult + */ +const de_DeleteRegistrationResult = (output: any, context: __SerdeContext): DeleteRegistrationResult => { + return take(output, { + AdditionalAttributes: _json, + ApprovedVersionNumber: __expectLong, + CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + CurrentVersionNumber: __expectLong, + LatestDeniedVersionNumber: __expectLong, + RegistrationArn: __expectString, + RegistrationId: __expectString, + RegistrationStatus: __expectString, + RegistrationType: __expectString, + }) as any; +}; + // de_DeleteTextMessageSpendLimitOverrideResult omitted. +/** + * deserializeAws_json1_0DeleteVerifiedDestinationNumberResult + */ +const de_DeleteVerifiedDestinationNumberResult = ( + output: any, + context: __SerdeContext +): DeleteVerifiedDestinationNumberResult => { + return take(output, { + CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + DestinationPhoneNumber: __expectString, + VerifiedDestinationNumberArn: __expectString, + VerifiedDestinationNumberId: __expectString, + }) as any; +}; + // de_DeleteVoiceMessageSpendLimitOverrideResult omitted. // de_DescribeAccountAttributesResult omitted. @@ -3892,12 +6186,87 @@ const de_DescribePoolsResult = (output: any, context: __SerdeContext): DescribeP }) as any; }; +/** + * deserializeAws_json1_0DescribeRegistrationAttachmentsResult + */ +const de_DescribeRegistrationAttachmentsResult = ( + output: any, + context: __SerdeContext +): DescribeRegistrationAttachmentsResult => { + return take(output, { + NextToken: __expectString, + RegistrationAttachments: (_: any) => de_RegistrationAttachmentsInformationList(_, context), + }) as any; +}; + +// de_DescribeRegistrationFieldDefinitionsResult omitted. + +// de_DescribeRegistrationFieldValuesResult omitted. + +// de_DescribeRegistrationSectionDefinitionsResult omitted. + +/** + * deserializeAws_json1_0DescribeRegistrationsResult + */ +const de_DescribeRegistrationsResult = (output: any, context: __SerdeContext): DescribeRegistrationsResult => { + return take(output, { + NextToken: __expectString, + Registrations: (_: any) => de_RegistrationInformationList(_, context), + }) as any; +}; + +// de_DescribeRegistrationTypeDefinitionsResult omitted. + +/** + * deserializeAws_json1_0DescribeRegistrationVersionsResult + */ +const de_DescribeRegistrationVersionsResult = ( + output: any, + context: __SerdeContext +): DescribeRegistrationVersionsResult => { + return take(output, { + NextToken: __expectString, + RegistrationArn: __expectString, + RegistrationId: __expectString, + RegistrationVersions: (_: any) => de_RegistrationVersionInformationList(_, context), + }) as any; +}; + // de_DescribeSenderIdsResult omitted. // de_DescribeSpendLimitsResult omitted. +/** + * deserializeAws_json1_0DescribeVerifiedDestinationNumbersResult + */ +const de_DescribeVerifiedDestinationNumbersResult = ( + output: any, + context: __SerdeContext +): DescribeVerifiedDestinationNumbersResult => { + return take(output, { + NextToken: __expectString, + VerifiedDestinationNumbers: (_: any) => de_VerifiedDestinationNumberInformationList(_, context), + }) as any; +}; + // de_DisassociateOriginationIdentityResult omitted. +/** + * deserializeAws_json1_0DiscardRegistrationVersionResult + */ +const de_DiscardRegistrationVersionResult = ( + output: any, + context: __SerdeContext +): DiscardRegistrationVersionResult => { + return take(output, { + RegistrationArn: __expectString, + RegistrationId: __expectString, + RegistrationVersionStatus: __expectString, + RegistrationVersionStatusHistory: (_: any) => de_RegistrationVersionStatusHistory(_, context), + VersionNumber: __expectLong, + }) as any; +}; + // de_EventDestination omitted. // de_EventDestinationList omitted. @@ -3914,6 +6283,8 @@ const de_DescribePoolsResult = (output: any, context: __SerdeContext): DescribeP // de_ListPoolOriginationIdentitiesResult omitted. +// de_ListRegistrationAssociationsResult omitted. + // de_ListTagsForResourceResult omitted. // de_MessageTypeList omitted. @@ -3987,9 +6358,11 @@ const de_PhoneNumberInformation = (output: any, context: __SerdeContext): PhoneN PhoneNumberArn: __expectString, PhoneNumberId: __expectString, PoolId: __expectString, + RegistrationId: __expectString, SelfManagedOptOutsEnabled: __expectBoolean, Status: __expectString, TwoWayChannelArn: __expectString, + TwoWayChannelRole: __expectString, TwoWayEnabled: __expectBoolean, }) as any; }; @@ -4021,6 +6394,7 @@ const de_PoolInformation = (output: any, context: __SerdeContext): PoolInformati SharedRoutesEnabled: __expectBoolean, Status: __expectString, TwoWayChannelArn: __expectString, + TwoWayChannelRole: __expectString, TwoWayEnabled: __expectBoolean, }) as any; }; @@ -4052,6 +6426,144 @@ const de_PutOptedOutNumberResult = (output: any, context: __SerdeContext): PutOp }) as any; }; +// de_PutRegistrationFieldValueResult omitted. + +// de_RegistrationAssociationMetadata omitted. + +// de_RegistrationAssociationMetadataList omitted. + +/** + * deserializeAws_json1_0RegistrationAttachmentsInformation + */ +const de_RegistrationAttachmentsInformation = ( + output: any, + context: __SerdeContext +): RegistrationAttachmentsInformation => { + return take(output, { + AttachmentStatus: __expectString, + AttachmentUploadErrorReason: __expectString, + CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + RegistrationAttachmentArn: __expectString, + RegistrationAttachmentId: __expectString, + }) as any; +}; + +/** + * deserializeAws_json1_0RegistrationAttachmentsInformationList + */ +const de_RegistrationAttachmentsInformationList = ( + output: any, + context: __SerdeContext +): RegistrationAttachmentsInformation[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_RegistrationAttachmentsInformation(entry, context); + }); + return retVal; +}; + +// de_RegistrationDeniedReasonInformation omitted. + +// de_RegistrationDeniedReasonInformationList omitted. + +// de_RegistrationFieldDefinition omitted. + +// de_RegistrationFieldDefinitionList omitted. + +// de_RegistrationFieldDisplayHints omitted. + +// de_RegistrationFieldValueInformation omitted. + +// de_RegistrationFieldValueInformationList omitted. + +/** + * deserializeAws_json1_0RegistrationInformation + */ +const de_RegistrationInformation = (output: any, context: __SerdeContext): RegistrationInformation => { + return take(output, { + AdditionalAttributes: _json, + ApprovedVersionNumber: __expectLong, + CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + CurrentVersionNumber: __expectLong, + LatestDeniedVersionNumber: __expectLong, + RegistrationArn: __expectString, + RegistrationId: __expectString, + RegistrationStatus: __expectString, + RegistrationType: __expectString, + }) as any; +}; + +/** + * deserializeAws_json1_0RegistrationInformationList + */ +const de_RegistrationInformationList = (output: any, context: __SerdeContext): RegistrationInformation[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_RegistrationInformation(entry, context); + }); + return retVal; +}; + +// de_RegistrationSectionDefinition omitted. + +// de_RegistrationSectionDefinitionList omitted. + +// de_RegistrationSectionDisplayHints omitted. + +// de_RegistrationTypeDefinition omitted. + +// de_RegistrationTypeDefinitionList omitted. + +// de_RegistrationTypeDisplayHints omitted. + +/** + * deserializeAws_json1_0RegistrationVersionInformation + */ +const de_RegistrationVersionInformation = (output: any, context: __SerdeContext): RegistrationVersionInformation => { + return take(output, { + DeniedReasons: _json, + RegistrationVersionStatus: __expectString, + RegistrationVersionStatusHistory: (_: any) => de_RegistrationVersionStatusHistory(_, context), + VersionNumber: __expectLong, + }) as any; +}; + +/** + * deserializeAws_json1_0RegistrationVersionInformationList + */ +const de_RegistrationVersionInformationList = ( + output: any, + context: __SerdeContext +): RegistrationVersionInformation[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_RegistrationVersionInformation(entry, context); + }); + return retVal; +}; + +/** + * deserializeAws_json1_0RegistrationVersionStatusHistory + */ +const de_RegistrationVersionStatusHistory = ( + output: any, + context: __SerdeContext +): RegistrationVersionStatusHistory => { + return take(output, { + ApprovedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + ArchivedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + DeniedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + DiscardedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + DraftTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + ReviewingTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + RevokedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + SubmittedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + }) as any; +}; + /** * deserializeAws_json1_0ReleasePhoneNumberResult */ @@ -4067,13 +6579,17 @@ const de_ReleasePhoneNumberResult = (output: any, context: __SerdeContext): Rele PhoneNumber: __expectString, PhoneNumberArn: __expectString, PhoneNumberId: __expectString, + RegistrationId: __expectString, SelfManagedOptOutsEnabled: __expectBoolean, Status: __expectString, TwoWayChannelArn: __expectString, + TwoWayChannelRole: __expectString, TwoWayEnabled: __expectBoolean, }) as any; }; +// de_ReleaseSenderIdResult omitted. + /** * deserializeAws_json1_0RequestPhoneNumberResult */ @@ -4091,16 +6607,30 @@ const de_RequestPhoneNumberResult = (output: any, context: __SerdeContext): Requ PhoneNumberArn: __expectString, PhoneNumberId: __expectString, PoolId: __expectString, + RegistrationId: __expectString, SelfManagedOptOutsEnabled: __expectBoolean, Status: __expectString, Tags: _json, TwoWayChannelArn: __expectString, + TwoWayChannelRole: __expectString, TwoWayEnabled: __expectBoolean, }) as any; }; +// de_RequestSenderIdResult omitted. + // de_ResourceNotFoundException omitted. +// de_SelectChoiceList omitted. + +// de_SelectOptionDescription omitted. + +// de_SelectOptionDescriptionsList omitted. + +// de_SelectValidation omitted. + +// de_SendDestinationNumberVerificationCodeResult omitted. + // de_SenderIdInformation omitted. // de_SenderIdInformationList omitted. @@ -4125,12 +6655,35 @@ const de_RequestPhoneNumberResult = (output: any, context: __SerdeContext): Requ // de_SpendLimitList omitted. +// de_StringList omitted. + +// de_StringMap omitted. + +/** + * deserializeAws_json1_0SubmitRegistrationVersionResult + */ +const de_SubmitRegistrationVersionResult = (output: any, context: __SerdeContext): SubmitRegistrationVersionResult => { + return take(output, { + RegistrationArn: __expectString, + RegistrationId: __expectString, + RegistrationVersionStatus: __expectString, + RegistrationVersionStatusHistory: (_: any) => de_RegistrationVersionStatusHistory(_, context), + VersionNumber: __expectLong, + }) as any; +}; + +// de_SupportedAssociation omitted. + +// de_SupportedAssociationList omitted. + // de_Tag omitted. // de_TagList omitted. // de_TagResourceResult omitted. +// de_TextValidation omitted. + // de_ThrottlingException omitted. // de_UntagResourceResult omitted. @@ -4153,9 +6706,11 @@ const de_UpdatePhoneNumberResult = (output: any, context: __SerdeContext): Updat PhoneNumber: __expectString, PhoneNumberArn: __expectString, PhoneNumberId: __expectString, + RegistrationId: __expectString, SelfManagedOptOutsEnabled: __expectBoolean, Status: __expectString, TwoWayChannelArn: __expectString, + TwoWayChannelRole: __expectString, TwoWayEnabled: __expectBoolean, }) as any; }; @@ -4175,16 +6730,63 @@ const de_UpdatePoolResult = (output: any, context: __SerdeContext): UpdatePoolRe SharedRoutesEnabled: __expectBoolean, Status: __expectString, TwoWayChannelArn: __expectString, + TwoWayChannelRole: __expectString, TwoWayEnabled: __expectBoolean, }) as any; }; +// de_UpdateSenderIdResult omitted. + // de_ValidationException omitted. // de_ValidationExceptionField omitted. // de_ValidationExceptionFieldList omitted. +/** + * deserializeAws_json1_0VerifiedDestinationNumberInformation + */ +const de_VerifiedDestinationNumberInformation = ( + output: any, + context: __SerdeContext +): VerifiedDestinationNumberInformation => { + return take(output, { + CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + DestinationPhoneNumber: __expectString, + Status: __expectString, + VerifiedDestinationNumberArn: __expectString, + VerifiedDestinationNumberId: __expectString, + }) as any; +}; + +/** + * deserializeAws_json1_0VerifiedDestinationNumberInformationList + */ +const de_VerifiedDestinationNumberInformationList = ( + output: any, + context: __SerdeContext +): VerifiedDestinationNumberInformation[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_VerifiedDestinationNumberInformation(entry, context); + }); + return retVal; +}; + +/** + * deserializeAws_json1_0VerifyDestinationNumberResult + */ +const de_VerifyDestinationNumberResult = (output: any, context: __SerdeContext): VerifyDestinationNumberResult => { + return take(output, { + CreatedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + DestinationPhoneNumber: __expectString, + Status: __expectString, + VerifiedDestinationNumberArn: __expectString, + VerifiedDestinationNumberId: __expectString, + }) as any; +}; + const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ httpStatusCode: output.statusCode, requestId: diff --git a/codegen/sdk-codegen/aws-models/pinpoint-sms-voice-v2.json b/codegen/sdk-codegen/aws-models/pinpoint-sms-voice-v2.json index 14d66fbeaf0f5..548e2c2014da0 100644 --- a/codegen/sdk-codegen/aws-models/pinpoint-sms-voice-v2.json +++ b/codegen/sdk-codegen/aws-models/pinpoint-sms-voice-v2.json @@ -129,6 +129,22 @@ { "value": "OPT_OUT_LISTS", "name": "OPT_OUT_LISTS" + }, + { + "value": "SENDER_IDS", + "name": "SENDER_IDS" + }, + { + "value": "REGISTRATIONS", + "name": "REGISTRATIONS" + }, + { + "value": "REGISTRATION_ATTACHMENTS", + "name": "REGISTRATION_ATTACHMENTS" + }, + { + "value": "VERIFIED_DESTINATION_NUMBERS", + "name": "VERIFIED_DESTINATION_NUMBERS" } ] } @@ -175,7 +191,7 @@ } ], "traits": { - "smithy.api#documentation": "

          Associates the specified origination identity with a pool.

          \n

          If the origination identity is a phone number and is already associated with another\n pool, an Error is returned. A sender ID can be associated with multiple pools.

          \n

          If the origination identity configuration doesn't match the pool's configuration, an\n Error is returned.

          " + "smithy.api#documentation": "

          Associates the specified origination identity with a pool.

          \n

          If the origination identity is a phone number and is already associated with another\n pool, an error is returned. A sender ID can be associated with multiple pools.

          \n

          If the origination identity configuration doesn't match the pool's configuration, an\n error is returned.

          " } }, "com.amazonaws.pinpointsmsvoicev2#AssociateOriginationIdentityRequest": { @@ -209,6 +225,9 @@ "smithy.api#idempotencyToken": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.pinpointsmsvoicev2#AssociateOriginationIdentityResult": { @@ -244,6 +263,62 @@ "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          " } } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#AttachmentBody": { + "type": "blob", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1572864 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#AttachmentStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "UPLOAD_IN_PROGRESS", + "name": "UPLOAD_IN_PROGRESS" + }, + { + "value": "UPLOAD_COMPLETE", + "name": "UPLOAD_COMPLETE" + }, + { + "value": "UPLOAD_FAILED", + "name": "UPLOAD_FAILED" + }, + { + "value": "DELETED", + "name": "DELETED" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#AttachmentUploadErrorReason": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "INTERNAL_ERROR", + "name": "INTERNAL_ERROR" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#AttachmentUrl": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^\\S+$" } }, "com.amazonaws.pinpointsmsvoicev2#ClientToken": { @@ -453,6 +528,10 @@ "type": "string", "traits": { "smithy.api#enum": [ + { + "value": "CREATE_REGISTRATION_VERSION_NOT_ALLOWED", + "name": "CREATE_REGISTRATION_VERSION_NOT_ALLOWED" + }, { "value": "DELETION_PROTECTION_ENABLED", "name": "DELETION_PROTECTION_ENABLED" @@ -465,6 +544,18 @@ "value": "DESTINATION_PHONE_NUMBER_OPTED_OUT", "name": "DESTINATION_PHONE_NUMBER_OPTED_OUT" }, + { + "value": "DISASSOCIATE_REGISTRATION_NOT_ALLOWED", + "name": "DISASSOCIATE_REGISTRATION_NOT_ALLOWED" + }, + { + "value": "DISCARD_REGISTRATION_VERSION_NOT_ALLOWED", + "name": "DISCARD_REGISTRATION_VERSION_NOT_ALLOWED" + }, + { + "value": "EDIT_REGISTRATION_FIELD_VALUES_NOT_ALLOWED", + "name": "EDIT_REGISTRATION_FIELD_VALUES_NOT_ALLOWED" + }, { "value": "EVENT_DESTINATION_MISMATCH", "name": "EVENT_DESTINATION_MISMATCH" @@ -478,8 +569,8 @@ "name": "LAST_PHONE_NUMBER" }, { - "value": "SELF_MANAGED_OPT_OUTS_MISMATCH", - "name": "SELF_MANAGED_OPT_OUTS_MISMATCH" + "value": "NUMBER_CAPABILITIES_MISMATCH", + "name": "NUMBER_CAPABILITIES_MISMATCH" }, { "value": "MESSAGE_TYPE_MISMATCH", @@ -497,6 +588,10 @@ "value": "PHONE_NUMBER_ASSOCIATED_TO_POOL", "name": "PHONE_NUMBER_ASSOCIATED_TO_POOL" }, + { + "value": "PHONE_NUMBER_ASSOCIATED_TO_REGISTRATION", + "name": "PHONE_NUMBER_ASSOCIATED_TO_REGISTRATION" + }, { "value": "PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL", "name": "PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL" @@ -505,6 +600,18 @@ "value": "PHONE_NUMBER_NOT_IN_REGISTRATION_REGION", "name": "PHONE_NUMBER_NOT_IN_REGISTRATION_REGION" }, + { + "value": "REGISTRATION_ALREADY_SUBMITTED", + "name": "REGISTRATION_ALREADY_SUBMITTED" + }, + { + "value": "REGISTRATION_NOT_COMPLETE", + "name": "REGISTRATION_NOT_COMPLETE" + }, + { + "value": "SENDER_ID_ASSOCIATED_TO_POOL", + "name": "SENDER_ID_ASSOCIATED_TO_POOL" + }, { "value": "RESOURCE_ALREADY_EXISTS", "name": "RESOURCE_ALREADY_EXISTS" @@ -525,9 +632,25 @@ "value": "RESOURCE_NOT_EMPTY", "name": "RESOURCE_NOT_EMPTY" }, + { + "value": "SELF_MANAGED_OPT_OUTS_MISMATCH", + "name": "SELF_MANAGED_OPT_OUTS_MISMATCH" + }, + { + "value": "SUBMIT_REGISTRATION_VERSION_NOT_ALLOWED", + "name": "SUBMIT_REGISTRATION_VERSION_NOT_ALLOWED" + }, { "value": "TWO_WAY_CONFIG_MISMATCH", "name": "TWO_WAY_CONFIG_MISMATCH" + }, + { + "value": "VERIFICATION_CODE_EXPIRED", + "name": "VERIFICATION_CODE_EXPIRED" + }, + { + "value": "VERIFICATION_ALREADY_COMPLETE", + "name": "VERIFICATION_ALREADY_COMPLETE" } ] } @@ -563,7 +686,7 @@ "min": 1, "max": 800 }, - "smithy.api#pattern": "^\\S+$" + "smithy.api#pattern": "^(?!\\s)^[\\s\\S]+(?Creates a new configuration set. After you create the configuration set, you can add\n one or more event destinations to it.

          \n

          A configuration set is a set of rules that you apply to the SMS and voice messages\n that you send.

          \n

          When you send a message, you can optionally specify a single configuration set.

          " + "smithy.api#documentation": "

          Creates a new configuration set. After you create the configuration set, you can add\n one or more event destinations to it.

          \n

          A configuration set is a set of rules that you apply to the SMS and voice messages\n that you send.

          \n

          When you send a message, you can optionally specify a single configuration set.

          " } }, "com.amazonaws.pinpointsmsvoicev2#CreateConfigurationSetRequest": { @@ -621,6 +744,9 @@ "smithy.api#idempotencyToken": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.pinpointsmsvoicev2#CreateConfigurationSetResult": { @@ -650,6 +776,9 @@ "smithy.api#documentation": "

          The time when the configuration set was created, in UNIX epoch time format.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, "com.amazonaws.pinpointsmsvoicev2#CreateEventDestination": { @@ -684,7 +813,7 @@ } ], "traits": { - "smithy.api#documentation": "

          Creates a new event destination in a configuration set.

          \n

          An event destination is a location where you send message events. The event options\n are Amazon CloudWatch, Amazon Kinesis Data Firehose, or Amazon SNS. For example,\n when a message is delivered successfully, you can send information about that event to\n an event destination, or send notifications to endpoints that are subscribed to an\n Amazon SNS topic.

          \n

          Each configuration set can contain between 0 and 5 event destinations. Each event\n destination can contain a reference to a single destination, such as a CloudWatch\n or Kinesis Data Firehose destination.

          " + "smithy.api#documentation": "

          Creates a new event destination in a configuration set.

          \n

          An event destination is a location where you send message events. The event options\n are Amazon CloudWatch, Amazon Kinesis Data Firehose, or Amazon SNS. For example,\n when a message is delivered successfully, you can send information about that event to\n an event destination, or send notifications to endpoints that are subscribed to an\n Amazon SNS topic.

          \n

          Each configuration set can contain between 0 and 5 event destinations. Each event\n destination can contain a reference to a single destination, such as a CloudWatch\n or Kinesis Data Firehose destination.

          " } }, "com.amazonaws.pinpointsmsvoicev2#CreateEventDestinationRequest": { @@ -707,7 +836,7 @@ "MatchingEventTypes": { "target": "com.amazonaws.pinpointsmsvoicev2#EventTypeList", "traits": { - "smithy.api#documentation": "

          An array of event types that determine which events to log. If \"ALL\" is used, then\n Amazon Pinpoint logs every event type.

          ", + "smithy.api#documentation": "

          An array of event types that determine which events to log. If \"ALL\" is used, then\n Amazon Pinpoint logs every event type.

          \n \n

          The TEXT_SENT event type is not supported.

          \n
          ", "smithy.api#required": {} } }, @@ -736,6 +865,9 @@ "smithy.api#idempotencyToken": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.pinpointsmsvoicev2#CreateEventDestinationResult": { @@ -759,6 +891,9 @@ "smithy.api#documentation": "

          The details of the destination where events are logged.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, "com.amazonaws.pinpointsmsvoicev2#CreateOptOutList": { @@ -790,7 +925,7 @@ } ], "traits": { - "smithy.api#documentation": "

          Creates a new opt-out list.

          \n

          If the opt-out list name already exists, an Error is returned.

          \n

          An opt-out list is a list of phone numbers that are opted out, meaning you can't send\n SMS or voice messages to them. If end user replies with the keyword \"STOP,\" an entry for\n the phone number is added to the opt-out list. In addition to STOP, your recipients can\n use any supported opt-out keyword, such as CANCEL or OPTOUT. For a list of supported\n opt-out keywords, see \n SMS opt out in the Amazon Pinpoint User\n Guide.

          " + "smithy.api#documentation": "

          Creates a new opt-out list.

          \n

          If the opt-out list name already exists, an error is returned.

          \n

          An opt-out list is a list of phone numbers that are opted out, meaning you can't send\n SMS or voice messages to them. If end user replies with the keyword \"STOP,\" an entry for\n the phone number is added to the opt-out list. In addition to STOP, your recipients can\n use any supported opt-out keyword, such as CANCEL or OPTOUT. For a list of supported\n opt-out keywords, see \n SMS opt out in the Amazon Pinpoint User\n Guide.

          " } }, "com.amazonaws.pinpointsmsvoicev2#CreateOptOutListRequest": { @@ -816,6 +951,9 @@ "smithy.api#idempotencyToken": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.pinpointsmsvoicev2#CreateOptOutListResult": { @@ -845,6 +983,9 @@ "smithy.api#documentation": "

          The time when the pool was created, in UNIX epoch time format.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, "com.amazonaws.pinpointsmsvoicev2#CreatePool": { @@ -879,7 +1020,7 @@ } ], "traits": { - "smithy.api#documentation": "

          Creates a new pool and associates the specified origination identity to the pool. A\n pool can include one or more phone numbers and SenderIds that are associated with your\n Amazon Web Services account.

          \n

          The new pool inherits its configuration from the specified origination identity. This\n includes keywords, message type, opt-out list, two-way configuration, and self-managed\n opt-out configuration. Deletion protection isn't inherited from the origination identity\n and defaults to false.

          \n

          If the origination identity is a phone number and is already associated with another\n pool, an Error is returned. A sender ID can be associated with multiple pools.

          " + "smithy.api#documentation": "

          Creates a new pool and associates the specified origination identity to the pool. A\n pool can include one or more phone numbers and SenderIds that are associated with your\n Amazon Web Services account.

          \n

          The new pool inherits its configuration from the specified origination identity. This\n includes keywords, message type, opt-out list, two-way configuration, and self-managed\n opt-out configuration. Deletion protection isn't inherited from the origination identity\n and defaults to false.

          \n

          If the origination identity is a phone number and is already associated with another\n pool, an error is returned. A sender ID can be associated with multiple pools.

          " } }, "com.amazonaws.pinpointsmsvoicev2#CreatePoolRequest": { @@ -925,6 +1066,9 @@ "smithy.api#idempotencyToken": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.pinpointsmsvoicev2#CreatePoolResult": { @@ -945,7 +1089,7 @@ "Status": { "target": "com.amazonaws.pinpointsmsvoicev2#PoolStatus", "traits": { - "smithy.api#documentation": "

          The current status of the pool.

          \n
            \n
          • \n

            CREATING: The pool is currently being created and isn't yet available for\n use.

            \n
          • \n
          • \n

            ACTIVE: The pool is active and available for use.

            \n
          • \n
          • \n

            DELETING: The pool is being deleted.

            \n
          • \n
          " + "smithy.api#documentation": "

          The current status of the pool.

          \n
            \n
          • \n

            CREATING: The pool is currently being created and isn't yet available for\n use.

            \n
          • \n
          • \n

            ACTIVE: The pool is active and available for use.

            \n
          • \n
          • \n

            DELETING: The pool is being deleted.

            \n
          • \n
          " } }, "MessageType": { @@ -967,6 +1111,12 @@ "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the two way channel.

          " } }, + "TwoWayChannelRole": { + "target": "com.amazonaws.pinpointsmsvoicev2#IamRoleArn", + "traits": { + "smithy.api#documentation": "

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

          " + } + }, "SelfManagedOptOutsEnabled": { "target": "smithy.api#PrimitiveBoolean", "traits": { @@ -1006,25 +1156,31 @@ "smithy.api#documentation": "

          The time when the pool was created, in UNIX epoch time format.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteConfigurationSet": { + "com.amazonaws.pinpointsmsvoicev2#CreateRegistration": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteConfigurationSetRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteConfigurationSetResult" + "target": "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" }, { "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" @@ -1034,80 +1190,33 @@ } ], "traits": { - "smithy.api#documentation": "

          Deletes an existing configuration set.

          \n

          A configuration set is a set of rules that you apply to voice and SMS messages that\n you send. In a configuration set, you can specify a destination for specific types of\n events related to voice and SMS messages.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#DeleteConfigurationSetRequest": { - "type": "structure", - "members": { - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", - "traits": { - "smithy.api#documentation": "

          The name of the configuration set or the configuration set ARN that you want to\n delete. The ConfigurationSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.

          ", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#DeleteConfigurationSetResult": { - "type": "structure", - "members": { - "ConfigurationSetArn": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the deleted configuration set.

          " - } - }, - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", - "traits": { - "smithy.api#documentation": "

          The name of the deleted configuration set.

          " - } - }, - "EventDestinations": { - "target": "com.amazonaws.pinpointsmsvoicev2#EventDestinationList", - "traits": { - "smithy.api#documentation": "

          An array of any EventDestination objects that were associated with the deleted\n configuration set.

          " - } - }, - "DefaultMessageType": { - "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", - "traits": { - "smithy.api#documentation": "

          The default message type of the configuration set that was deleted.

          " - } - }, - "DefaultSenderId": { - "target": "com.amazonaws.pinpointsmsvoicev2#SenderId", - "traits": { - "smithy.api#documentation": "

          The default Sender ID of the configuration set that was deleted.

          " - } - }, - "CreatedTimestamp": { - "target": "smithy.api#Timestamp", - "traits": { - "smithy.api#documentation": "

          The time that the deleted configuration set was created in UNIX epoch time format.

          " - } - } + "smithy.api#documentation": "

          Creates a new registration based on the RegistrationType field.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultMessageType": { + "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationAssociation": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultMessageTypeRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationAssociationRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultMessageTypeResult" + "target": "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationAssociationResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, { "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, @@ -1116,61 +1225,113 @@ } ], "traits": { - "smithy.api#documentation": "

          Deletes an existing default message type on a configuration set.

          \n

          A message type is a type of messages that you plan to send. If you send\n account-related messages or time-sensitive messages such as one-time passcodes, choose\n Transactional. If you plan to send messages that\n contain marketing material or other promotional content, choose Promotional. This setting applies to your entire Amazon Web Services\n account.

          " + "smithy.api#documentation": "

          Associate the registration with an origination identity such as a phone number or sender ID.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultMessageTypeRequest": { + "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationAssociationRequest": { "type": "structure", "members": { - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", + "RegistrationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn", "traits": { - "smithy.api#documentation": "

          The name of the configuration set or the configuration set Amazon Resource Name (ARN)\n to delete the default message type from. The ConfigurationSetName and\n ConfigurationSetArn can be found using the DescribeConfigurationSets\n action.

          ", + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} + } + }, + "ResourceId": { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceIdOrArn", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the origination identity. For example this could be a PhoneNumberId or SenderId.

          ", "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultMessageTypeResult": { + "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationAssociationResult": { "type": "structure", "members": { - "ConfigurationSetArn": { + "RegistrationArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the configuration set.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the registration.

          ", + "smithy.api#required": {} } }, - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", + "RegistrationId": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The name of the configuration set.

          " + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} } }, - "MessageType": { - "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", + "RegistrationType": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationType", "traits": { - "smithy.api#documentation": "

          The current message type for the configuration set.

          " + "smithy.api#documentation": "

          The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions\n action.

          ", + "smithy.api#required": {} + } + }, + "ResourceArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the origination identity that is associated with the registration.

          ", + "smithy.api#required": {} + } + }, + "ResourceId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the origination identity. For example this could be a PhoneNumberId or SenderId.

          ", + "smithy.api#required": {} + } + }, + "ResourceType": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The registration type or origination identity type.

          ", + "smithy.api#required": {} + } + }, + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "traits": { + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

          " + } + }, + "PhoneNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "traits": { + "smithy.api#documentation": "

          The phone number associated with the registration in E.164 format.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultSenderId": { + "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationAttachment": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultSenderIdRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationAttachmentRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultSenderIdResult" + "target": "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationAttachmentResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" }, { "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" @@ -1180,208 +1341,181 @@ } ], "traits": { - "smithy.api#documentation": "

          Deletes an existing default sender ID on a configuration set.

          \n

          A default sender ID is the identity that appears on recipients' devices when they\n receive SMS messages. Support for sender ID capabilities varies by country or\n region.

          " + "smithy.api#documentation": "

          Create a new registration attachment to use for uploading a file or a URL to a file. The maximum file size is 1MiB and valid file extensions are PDF, JPEG and PNG. For example, many sender ID registrations require a signed “letter of authorization” (LOA) to be submitted.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultSenderIdRequest": { + "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationAttachmentRequest": { "type": "structure", "members": { - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", + "AttachmentBody": { + "target": "com.amazonaws.pinpointsmsvoicev2#AttachmentBody", "traits": { - "smithy.api#documentation": "

          The name of the configuration set or the configuration set Amazon Resource Name (ARN)\n to delete the default sender ID from. The ConfigurationSetName and ConfigurationSetArn\n can be found using the DescribeConfigurationSets action.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The registration file to upload. The maximum file size is 1MiB and valid file extensions are PDF, JPEG and PNG.

          " } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultSenderIdResult": { - "type": "structure", - "members": { - "ConfigurationSetArn": { - "target": "smithy.api#String", + }, + "AttachmentUrl": { + "target": "com.amazonaws.pinpointsmsvoicev2#AttachmentUrl", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the configuration set.

          " + "smithy.api#documentation": "

          A URL to the required registration file. For example, you can provide the S3 object URL.

          " } }, - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", + "Tags": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagList", "traits": { - "smithy.api#documentation": "

          The name of the configuration set.

          " + "smithy.api#documentation": "

          An array of tags (key and value pairs) to associate with the registration attachment.

          " } }, - "SenderId": { - "target": "com.amazonaws.pinpointsmsvoicev2#SenderId", + "ClientToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#ClientToken", "traits": { - "smithy.api#documentation": "

          The current sender ID for the configuration set.

          " + "smithy.api#documentation": "

          Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If you don't specify a client token, a randomly generated token is used for the\n request to ensure idempotency.

          ", + "smithy.api#idempotencyToken": {} } } - } - }, - "com.amazonaws.pinpointsmsvoicev2#DeleteEventDestination": { - "type": "operation", - "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteEventDestinationRequest" - }, - "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteEventDestinationResult" }, - "errors": [ - { - "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" - } - ], "traits": { - "smithy.api#documentation": "

          Deletes an existing event destination.

          \n

          An event destination is a location where you send response information about the\n messages that you send. For example, when a message is delivered successfully, you can\n send information about that event to an Amazon CloudWatch destination, or send\n notifications to endpoints that are subscribed to an Amazon SNS topic.

          " + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteEventDestinationRequest": { + "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationAttachmentResult": { "type": "structure", "members": { - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", + "RegistrationAttachmentArn": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The name of the configuration set or the configuration set's Amazon Resource Name\n (ARN) to remove the event destination from. The ConfigurateSetName and\n ConfigurationSetArn can be found using the DescribeConfigurationSets\n action.

          ", + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the registration attachment.

          ", "smithy.api#required": {} } }, - "EventDestinationName": { - "target": "com.amazonaws.pinpointsmsvoicev2#EventDestinationName", + "RegistrationAttachmentId": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The name of the event destination to delete.

          ", + "smithy.api#documentation": "

          The unique identifier for the registration attachment.

          ", "smithy.api#required": {} } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#DeleteEventDestinationResult": { - "type": "structure", - "members": { - "ConfigurationSetArn": { - "target": "smithy.api#String", + }, + "AttachmentStatus": { + "target": "com.amazonaws.pinpointsmsvoicev2#AttachmentStatus", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the configuration set.

          " + "smithy.api#documentation": "

          The status of the registration attachment.

          \n
            \n
          • \n

            \n UPLOAD_IN_PROGRESS The attachment is being uploaded.

            \n
          • \n
          • \n

            \n UPLOAD_COMPLETE The attachment has been uploaded.

            \n
          • \n
          • \n

            \n UPLOAD_FAILED The attachment failed to uploaded.

            \n
          • \n
          • \n

            \n DELETED The attachment has been deleted..

            \n
          • \n
          ", + "smithy.api#required": {} } }, - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", + "Tags": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagList", "traits": { - "smithy.api#documentation": "

          The name of the configuration set the event destination was deleted from.

          " + "smithy.api#documentation": "

          An array of tags (key and value pairs) to associate with the registration attachment.

          " } }, - "EventDestination": { - "target": "com.amazonaws.pinpointsmsvoicev2#EventDestination", + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

          The event destination object that was deleted.

          " + "smithy.api#documentation": "

          The time when the registration attachment was created, in UNIX epoch time format.

          ", + "smithy.api#required": {} } } - } - }, - "com.amazonaws.pinpointsmsvoicev2#DeleteKeyword": { - "type": "operation", - "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteKeywordRequest" }, - "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteKeywordResult" - }, - "errors": [ - { - "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" - } - ], "traits": { - "smithy.api#documentation": "

          Deletes an existing keyword from an origination phone number or pool.

          \n

          A keyword is a word that you can search for on a particular phone number or pool. It\n is also a specific word or phrase that an end user can send to your number to elicit a\n response, such as an informational message or a special offer. When your number receives\n a message that begins with a keyword, Amazon Pinpoint responds with a customizable\n message.

          \n

          Keywords \"HELP\" and \"STOP\" can't be deleted or modified.

          " + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteKeywordRequest": { + "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationRequest": { "type": "structure", "members": { - "OriginationIdentity": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneOrPoolIdOrArn", + "RegistrationType": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationType", "traits": { - "smithy.api#documentation": "

          The origination identity to use such as a PhoneNumberId, PhoneNumberArn, PoolId or\n PoolArn. You can use DescribePhoneNumbers to find the values for\n PhoneNumberId and PhoneNumberArn and DescribePools to find the values\n of PoolId and PoolArn.

          ", + "smithy.api#documentation": "

          The type of registration form to create. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions\n action.

          ", "smithy.api#required": {} } }, - "Keyword": { - "target": "com.amazonaws.pinpointsmsvoicev2#Keyword", + "Tags": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagList", "traits": { - "smithy.api#documentation": "

          The keyword to delete.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          An array of tags (key and value pairs) to associate with the registration.

          " + } + }, + "ClientToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#ClientToken", + "traits": { + "smithy.api#documentation": "

          Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If you don't specify a client token, a randomly generated token is used for the\n request to ensure idempotency.

          ", + "smithy.api#idempotencyToken": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteKeywordResult": { + "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationResult": { "type": "structure", "members": { - "OriginationIdentityArn": { + "RegistrationArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The PhoneNumberArn or PoolArn that the keyword was associated with.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the registration.

          ", + "smithy.api#required": {} } }, - "OriginationIdentity": { + "RegistrationId": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The PhoneNumberId or PoolId that the keyword was associated with.

          " + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} } }, - "Keyword": { - "target": "com.amazonaws.pinpointsmsvoicev2#Keyword", + "RegistrationType": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationType", "traits": { - "smithy.api#documentation": "

          The keyword that was deleted.

          " + "smithy.api#documentation": "

          The type of registration form to create. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions\n action.

          ", + "smithy.api#required": {} } }, - "KeywordMessage": { - "target": "com.amazonaws.pinpointsmsvoicev2#KeywordMessage", + "RegistrationStatus": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationStatus", "traits": { - "smithy.api#documentation": "

          The message that was associated with the deleted keyword.

          " + "smithy.api#documentation": "

          The status of the registration.

          \n
            \n
          • \n

            \n CREATED: Your registration is created but not submitted.

            \n
          • \n
          • \n

            \n SUBMITTED: Your registration has been submitted and is awaiting review.

            \n
          • \n
          • \n

            \n REVIEWING: Your registration has been accepted and is being reviewed.

            \n
          • \n
          • \n

            \n PROVISIONING: Your registration has been approved and your origination identity is being created.

            \n
          • \n
          • \n

            \n COMPLETE: Your registration has been approved and and your origination identity has been created.

            \n
          • \n
          • \n

            \n REQUIRES_UPDATES: You must fix your registration and resubmit it.

            \n
          • \n
          • \n

            \n CLOSED: The phone number or sender ID has been deleted and you must also delete the registration for the number.

            \n
          • \n
          • \n

            \n DELETED: The registration has been deleted.

            \n
          • \n
          ", + "smithy.api#required": {} } }, - "KeywordAction": { - "target": "com.amazonaws.pinpointsmsvoicev2#KeywordAction", + "CurrentVersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", "traits": { - "smithy.api#documentation": "

          The action that was associated with the deleted keyword.

          " + "smithy.api#documentation": "

          The current version number of the registration.

          ", + "smithy.api#required": {} + } + }, + "AdditionalAttributes": { + "target": "com.amazonaws.pinpointsmsvoicev2#StringMap", + "traits": { + "smithy.api#documentation": "

          Metadata about a given registration which is specific to that registration type.

          " + } + }, + "Tags": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagList", + "traits": { + "smithy.api#documentation": "

          An array of tags (key and value pairs) to associate with the registration.

          " + } + }, + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the registration was created, in UNIX epoch time format.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutList": { + "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationVersion": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationVersionRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListResult" + "target": "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationVersionResult" }, "errors": [ { @@ -1396,6 +1530,9 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, @@ -1404,51 +1541,74 @@ } ], "traits": { - "smithy.api#documentation": "

          Deletes an existing opt-out list. All opted out phone numbers in the opt-out list are\n deleted.

          \n

          If the specified opt-out list name doesn't exist or is in-use by an origination phone\n number or pool, an Error is returned.

          " + "smithy.api#documentation": "

          Create a new version of the registration and increase the VersionNumber. The previous version of the registration becomes read-only.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListRequest": { + "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationVersionRequest": { "type": "structure", "members": { - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", + "RegistrationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn", "traits": { - "smithy.api#documentation": "

          The OptOutListName or OptOutListArn of the OptOutList to delete. You can use DescribeOptOutLists to find the values for OptOutListName and\n OptOutListArn.

          ", + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListResult": { + "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationVersionResult": { "type": "structure", "members": { - "OptOutListArn": { + "RegistrationArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the OptOutList that was removed.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the registration.

          ", + "smithy.api#required": {} } }, - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", + "RegistrationId": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The name of the OptOutList that was removed.

          " + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} } }, - "CreatedTimestamp": { - "target": "smithy.api#Timestamp", + "VersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", "traits": { - "smithy.api#documentation": "

          The time when the OptOutList was created, in UNIX epoch time format.

          " + "smithy.api#documentation": "

          The new version number of the registration.

          ", + "smithy.api#required": {} + } + }, + "RegistrationVersionStatus": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionStatus", + "traits": { + "smithy.api#documentation": "

          The status of the registration.

          \n
            \n
          • \n

            \n DRAFT: The initial status of a registration version after it’s created.

            \n
          • \n
          • \n

            \n SUBMITTED: Your registration has been submitted.

            \n
          • \n
          • \n

            \n REVIEWING: Your registration has been accepted and is being reviewed.

            \n
          • \n
          • \n

            \n APPROVED: Your registration has been approved.

            \n
          • \n
          • \n

            \n DISCARDED: You've abandon this version of their registration to start over with a new version.

            \n
          • \n
          • \n

            \n DENIED: You must fix your registration and resubmit it.

            \n
          • \n
          • \n

            \n REVOKED: Your previously approved registration has been revoked.

            \n
          • \n
          • \n

            \n ARCHIVED: Your previously approved registration version moves into this status when a more recently submitted version is approved.

            \n
          • \n
          ", + "smithy.api#required": {} + } + }, + "RegistrationVersionStatusHistory": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionStatusHistory", + "traits": { + "smithy.api#documentation": "

          A RegistrationVersionStatusHistory object that contains timestamps for the registration.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteOptedOutNumber": { + "com.amazonaws.pinpointsmsvoicev2#CreateVerifiedDestinationNumber": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptedOutNumberRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#CreateVerifiedDestinationNumberRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptedOutNumberResult" + "target": "com.amazonaws.pinpointsmsvoicev2#CreateVerifiedDestinationNumberResult" }, "errors": [ { @@ -1461,7 +1621,7 @@ "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" }, { "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" @@ -1471,79 +1631,98 @@ } ], "traits": { - "smithy.api#documentation": "

          Deletes an existing opted out destination phone number from the specified opt-out\n list.

          \n

          Each destination phone number can only be deleted once every 30 days.

          \n

          If the specified destination phone number doesn't exist or if the opt-out list doesn't\n exist, an Error is returned.

          " + "smithy.api#documentation": "

          You can only send messages to verified destination numbers when your account is in the sandbox. You can add up to 10 verified destination\n numbers.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteOptedOutNumberRequest": { + "com.amazonaws.pinpointsmsvoicev2#CreateVerifiedDestinationNumberRequest": { "type": "structure", "members": { - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", + "DestinationPhoneNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", "traits": { - "smithy.api#documentation": "

          The OptOutListName or OptOutListArn to remove the phone number from.

          ", + "smithy.api#documentation": "

          The verified destination phone number, in E.164 format.

          ", "smithy.api#required": {} } }, - "OptedOutNumber": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "Tags": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagList", "traits": { - "smithy.api#documentation": "

          The phone number, in E.164 format, to remove from the OptOutList.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          An array of tags (key and value pairs) to associate with the destination number.

          " + } + }, + "ClientToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#ClientToken", + "traits": { + "smithy.api#documentation": "

          Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If you don't specify a client token, a randomly generated token is used for the\n request to ensure idempotency.

          ", + "smithy.api#idempotencyToken": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteOptedOutNumberResult": { + "com.amazonaws.pinpointsmsvoicev2#CreateVerifiedDestinationNumberResult": { "type": "structure", "members": { - "OptOutListArn": { + "VerifiedDestinationNumberArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The OptOutListArn that the phone number was removed from.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the verified destination phone number.

          ", + "smithy.api#required": {} } }, - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", + "VerifiedDestinationNumberId": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The OptOutListName that the phone number was removed from.

          " + "smithy.api#documentation": "

          The unique identifier for the verified destination phone number.

          ", + "smithy.api#required": {} } }, - "OptedOutNumber": { + "DestinationPhoneNumber": { "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", "traits": { - "smithy.api#documentation": "

          The phone number that was removed from the OptOutList.

          " + "smithy.api#documentation": "

          The verified destination phone number, in E.164 format.

          ", + "smithy.api#required": {} } }, - "OptedOutTimestamp": { - "target": "smithy.api#Timestamp", + "Status": { + "target": "com.amazonaws.pinpointsmsvoicev2#VerificationStatus", "traits": { - "smithy.api#documentation": "

          The time that the number was removed at, in UNIX epoch time format.

          " + "smithy.api#documentation": "

          The status of the verified destination phone number.

          \n
            \n
          • \n

            \n PENDING: The phone number hasn't been verified yet.

            \n
          • \n
          • \n

            \n VERIFIED: The phone number is verified and can receive messages.

            \n
          • \n
          ", + "smithy.api#required": {} } }, - "EndUserOptedOut": { - "target": "smithy.api#PrimitiveBoolean", + "Tags": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagList", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          This is true if it was the end user who requested their phone number be removed.\n

          " + "smithy.api#documentation": "

          An array of tags (key and value pairs) to associate with the destination number.

          " + } + }, + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the verified phone number was created, in UNIX epoch time format.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeletePool": { + "com.amazonaws.pinpointsmsvoicev2#DeleteConfigurationSet": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeletePoolRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteConfigurationSetRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeletePoolResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteConfigurationSetResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" - }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, @@ -1558,96 +1737,75 @@ } ], "traits": { - "smithy.api#documentation": "

          Deletes an existing pool. Deleting a pool disassociates all origination identities\n from that pool.

          \n

          If the pool status isn't active or if deletion protection is enabled, an Error is\n returned.

          \n

          A pool is a collection of phone numbers and SenderIds. A pool can include one or more\n phone numbers and SenderIds that are associated with your Amazon Web Services\n account.

          " + "smithy.api#documentation": "

          Deletes an existing configuration set.

          \n

          A configuration set is a set of rules that you apply to voice and SMS messages that\n you send. In a configuration set, you can specify a destination for specific types of\n events related to voice and SMS messages.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DeletePoolRequest": { + "com.amazonaws.pinpointsmsvoicev2#DeleteConfigurationSetRequest": { "type": "structure", "members": { - "PoolId": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolIdOrArn", + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", "traits": { - "smithy.api#documentation": "

          The PoolId or PoolArn of the pool to delete. You can use DescribePools to find the values for PoolId and PoolArn .

          ", + "smithy.api#documentation": "

          The name of the configuration set or the configuration set ARN that you want to\n delete. The ConfigurationSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.

          ", "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeletePoolResult": { + "com.amazonaws.pinpointsmsvoicev2#DeleteConfigurationSetResult": { "type": "structure", "members": { - "PoolArn": { + "ConfigurationSetArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the pool that was deleted.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the deleted configuration set.

          " } }, - "PoolId": { - "target": "smithy.api#String", + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", "traits": { - "smithy.api#documentation": "

          The PoolId of the pool that was deleted.

          " + "smithy.api#documentation": "

          The name of the deleted configuration set.

          " } }, - "Status": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolStatus", + "EventDestinations": { + "target": "com.amazonaws.pinpointsmsvoicev2#EventDestinationList", "traits": { - "smithy.api#documentation": "

          The current status of the pool.

          \n
            \n
          • \n

            CREATING: The pool is currently being created and isn't yet available for\n use.

            \n
          • \n
          • \n

            ACTIVE: The pool is active and available for use.

            \n
          • \n
          • \n

            DELETING: The pool is being deleted.

            \n
          • \n
          " + "smithy.api#documentation": "

          An array of any EventDestination objects that were associated with the deleted\n configuration set.

          " } }, - "MessageType": { + "DefaultMessageType": { "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", "traits": { - "smithy.api#documentation": "

          The message type that was associated with the deleted pool.

          " - } - }, - "TwoWayEnabled": { - "target": "smithy.api#PrimitiveBoolean", - "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients.

          " - } - }, - "TwoWayChannelArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", - "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the TwoWayChannel.

          " - } - }, - "SelfManagedOptOutsEnabled": { - "target": "smithy.api#PrimitiveBoolean", - "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          By default this is set to false. When an end recipient sends a message that begins\n with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically\n replies with a customizable message and adds the end recipient to the OptOutList. When\n set to true you're responsible for responding to HELP and STOP requests. You're also\n responsible for tracking and honoring opt-out requests.

          " - } - }, - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", - "traits": { - "smithy.api#documentation": "

          The name of the OptOutList that was associated with the deleted pool.

          " + "smithy.api#documentation": "

          The default message type of the configuration set that was deleted.

          " } }, - "SharedRoutesEnabled": { - "target": "smithy.api#PrimitiveBoolean", + "DefaultSenderId": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderId", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          Indicates whether shared routes are enabled for the pool.

          " + "smithy.api#documentation": "

          The default Sender ID of the configuration set that was deleted.

          " } }, "CreatedTimestamp": { "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

          The time when the pool was created, in UNIX epoch time format.

          " + "smithy.api#documentation": "

          The time that the deleted configuration set was created in UNIX epoch time format.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteTextMessageSpendLimitOverride": { + "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultMessageType": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteTextMessageSpendLimitOverrideRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultMessageTypeRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteTextMessageSpendLimitOverrideResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultMessageTypeResult" }, "errors": [ { @@ -1656,6 +1814,9 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, @@ -1664,82 +1825,57 @@ } ], "traits": { - "smithy.api#documentation": "

          Deletes an account-level monthly spending limit override for sending text messages.\n Deleting a spend limit override will set the EnforcedLimit to equal the\n MaxLimit, which is controlled by Amazon Web Services. For more\n information on spend limits (quotas) see Amazon Pinpoint quotas \n in the Amazon Pinpoint Developer Guide.

          " + "smithy.api#documentation": "

          Deletes an existing default message type on a configuration set.

          \n

          A message type is a type of messages that you plan to send. If you send\n account-related messages or time-sensitive messages such as one-time passcodes, choose\n Transactional. If you plan to send messages that\n contain marketing material or other promotional content, choose Promotional. This setting applies to your entire Amazon Web Services\n account.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteTextMessageSpendLimitOverrideRequest": { - "type": "structure", - "members": {} - }, - "com.amazonaws.pinpointsmsvoicev2#DeleteTextMessageSpendLimitOverrideResult": { + "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultMessageTypeRequest": { "type": "structure", "members": { - "MonthlyLimit": { - "target": "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit", + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", "traits": { - "smithy.api#documentation": "

          The current monthly limit, in US dollars.

          " + "smithy.api#documentation": "

          The name of the configuration set or the configuration set Amazon Resource Name (ARN)\n to delete the default message type from. The ConfigurationSetName and\n ConfigurationSetArn can be found using the DescribeConfigurationSets\n action.

          ", + "smithy.api#required": {} } } - } - }, - "com.amazonaws.pinpointsmsvoicev2#DeleteVoiceMessageSpendLimitOverride": { - "type": "operation", - "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteVoiceMessageSpendLimitOverrideRequest" - }, - "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteVoiceMessageSpendLimitOverrideResult" }, - "errors": [ - { - "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" - } - ], "traits": { - "smithy.api#documentation": "

          Deletes an account level monthly spend limit override for sending voice messages.\n Deleting a spend limit override sets the EnforcedLimit equal to the\n MaxLimit, which is controlled by Amazon Web Services. For more\n information on spending limits (quotas) see Amazon Pinpoint quotas\n in the Amazon Pinpoint Developer Guide.

          " + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DeleteVoiceMessageSpendLimitOverrideRequest": { - "type": "structure", - "members": {} - }, - "com.amazonaws.pinpointsmsvoicev2#DeleteVoiceMessageSpendLimitOverrideResult": { + "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultMessageTypeResult": { "type": "structure", "members": { - "MonthlyLimit": { - "target": "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit", + "ConfigurationSetArn": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The current monthly limit, in US dollars.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the configuration set.

          " + } + }, + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", + "traits": { + "smithy.api#documentation": "

          The name of the configuration set.

          " + } + }, + "MessageType": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", + "traits": { + "smithy.api#documentation": "

          The current message type for the configuration set.

          " } } - } - }, - "com.amazonaws.pinpointsmsvoicev2#DeliveryStreamArn": { - "type": "string", + }, "traits": { - "smithy.api#length": { - "min": 20, - "max": 2048 - }, - "smithy.api#pattern": "^arn:\\S+$" + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeAccountAttributes": { + "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultSenderId": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeAccountAttributesRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultSenderIdRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeAccountAttributesResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultSenderIdResult" }, "errors": [ { @@ -1748,6 +1884,9 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, @@ -1756,53 +1895,57 @@ } ], "traits": { - "smithy.api#documentation": "

          Describes attributes of your Amazon Web Services account. The supported account\n attributes include account tier, which indicates whether your account is in the sandbox\n or production environment. When you're ready to move your account out of the sandbox,\n create an Amazon Web Services Support case for a service limit increase request.

          \n

          New Amazon Pinpoint accounts are placed into an SMS or voice sandbox. The sandbox\n protects both Amazon Web Services end recipients and SMS or voice recipients from fraud\n and abuse.

          ", - "smithy.api#paginated": { - "items": "AccountAttributes" - } + "smithy.api#documentation": "

          Deletes an existing default sender ID on a configuration set.

          \n

          A default sender ID is the identity that appears on recipients' devices when they\n receive SMS messages. Support for sender ID capabilities varies by country or\n region.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeAccountAttributesRequest": { + "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultSenderIdRequest": { "type": "structure", "members": { - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", - "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " - } - }, - "MaxResults": { - "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", "traits": { - "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + "smithy.api#documentation": "

          The name of the configuration set or the configuration set Amazon Resource Name (ARN)\n to delete the default sender ID from. The ConfigurationSetName and ConfigurationSetArn\n can be found using the DescribeConfigurationSets action.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeAccountAttributesResult": { + "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultSenderIdResult": { "type": "structure", "members": { - "AccountAttributes": { - "target": "com.amazonaws.pinpointsmsvoicev2#AccountAttributeList", + "ConfigurationSetArn": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          An array of AccountAttributes objects.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the configuration set.

          " } }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " + "smithy.api#documentation": "

          The name of the configuration set.

          " + } + }, + "SenderId": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderId", + "traits": { + "smithy.api#documentation": "

          The current sender ID for the configuration set.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeAccountLimits": { + "com.amazonaws.pinpointsmsvoicev2#DeleteEventDestination": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeAccountLimitsRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteEventDestinationRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeAccountLimitsResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteEventDestinationResult" }, "errors": [ { @@ -1811,6 +1954,9 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, @@ -1819,58 +1965,72 @@ } ], "traits": { - "smithy.api#documentation": "

          Describes the current Amazon Pinpoint SMS Voice V2 resource quotas for your\n account. The description for a quota includes the quota name, current usage toward that\n quota, and the quota's maximum value.

          \n

          When you establish an Amazon Web Services account, the account has initial quotas on\n the maximum number of configuration sets, opt-out lists, phone numbers, and pools that\n you can create in a given Region. For more information see \n Amazon Pinpoint quotas in the Amazon Pinpoint Developer\n Guide.

          ", - "smithy.api#paginated": { - "items": "AccountLimits" - } + "smithy.api#documentation": "

          Deletes an existing event destination.

          \n

          An event destination is a location where you send response information about the\n messages that you send. For example, when a message is delivered successfully, you can\n send information about that event to an Amazon CloudWatch destination, or send\n notifications to endpoints that are subscribed to an Amazon SNS topic.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeAccountLimitsRequest": { + "com.amazonaws.pinpointsmsvoicev2#DeleteEventDestinationRequest": { "type": "structure", "members": { - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + "smithy.api#documentation": "

          The name of the configuration set or the configuration set's Amazon Resource Name\n (ARN) to remove the event destination from. The ConfigurateSetName and\n ConfigurationSetArn can be found using the DescribeConfigurationSets\n action.

          ", + "smithy.api#required": {} } }, - "MaxResults": { - "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "EventDestinationName": { + "target": "com.amazonaws.pinpointsmsvoicev2#EventDestinationName", "traits": { - "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + "smithy.api#documentation": "

          The name of the event destination to delete.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeAccountLimitsResult": { + "com.amazonaws.pinpointsmsvoicev2#DeleteEventDestinationResult": { "type": "structure", "members": { - "AccountLimits": { - "target": "com.amazonaws.pinpointsmsvoicev2#AccountLimitList", + "ConfigurationSetArn": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          An array of AccountLimit objects that show the current spend limits.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the configuration set.

          " } }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " + "smithy.api#documentation": "

          The name of the configuration set the event destination was deleted from.

          " + } + }, + "EventDestination": { + "target": "com.amazonaws.pinpointsmsvoicev2#EventDestination", + "traits": { + "smithy.api#documentation": "

          The event destination object that was deleted.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeConfigurationSets": { + "com.amazonaws.pinpointsmsvoicev2#DeleteKeyword": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeConfigurationSetsRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteKeywordRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeConfigurationSetsResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteKeywordResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, @@ -1885,70 +2045,84 @@ } ], "traits": { - "smithy.api#documentation": "

          Describes the specified configuration sets or all in your account.

          \n

          If you specify configuration set names, the output includes information for only the\n specified configuration sets. If you specify filters, the output includes information\n for only those configuration sets that meet the filter criteria. If you don't specify\n configuration set names or filters, the output includes information for all\n configuration sets.

          \n

          If you specify a configuration set name that isn't valid, an error is returned.

          ", - "smithy.api#paginated": { - "items": "ConfigurationSets" - } + "smithy.api#documentation": "

          Deletes an existing keyword from an origination phone number or pool.

          \n

          A keyword is a word that you can search for on a particular phone number or pool. It\n is also a specific word or phrase that an end user can send to your number to elicit a\n response, such as an informational message or a special offer. When your number receives\n a message that begins with a keyword, Amazon Pinpoint responds with a customizable\n message.

          \n

          Keywords \"HELP\" and \"STOP\" can't be deleted or modified.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeConfigurationSetsRequest": { + "com.amazonaws.pinpointsmsvoicev2#DeleteKeywordRequest": { "type": "structure", "members": { - "ConfigurationSetNames": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameList", + "OriginationIdentity": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneOrPoolIdOrArn", "traits": { - "smithy.api#documentation": "

          An array of strings. Each element can be either a ConfigurationSetName or\n ConfigurationSetArn.

          " + "smithy.api#documentation": "

          The origination identity to use such as a PhoneNumberId, PhoneNumberArn, PoolId or\n PoolArn. You can use DescribePhoneNumbers to find the values for\n PhoneNumberId and PhoneNumberArn and DescribePools to find the values\n of PoolId and PoolArn.

          ", + "smithy.api#required": {} } }, - "Filters": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetFilterList", + "Keyword": { + "target": "com.amazonaws.pinpointsmsvoicev2#Keyword", "traits": { - "smithy.api#documentation": "

          An array of filters to apply to the results that are returned.

          " + "smithy.api#documentation": "

          The keyword to delete.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DeleteKeywordResult": { + "type": "structure", + "members": { + "OriginationIdentityArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The PhoneNumberArn or PoolArn that the keyword was associated with.

          " } }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "OriginationIdentity": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + "smithy.api#documentation": "

          The PhoneNumberId or PoolId that the keyword was associated with.

          " } }, - "MaxResults": { - "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "Keyword": { + "target": "com.amazonaws.pinpointsmsvoicev2#Keyword", "traits": { - "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + "smithy.api#documentation": "

          The keyword that was deleted.

          " } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#DescribeConfigurationSetsResult": { - "type": "structure", - "members": { - "ConfigurationSets": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetInformationList", + }, + "KeywordMessage": { + "target": "com.amazonaws.pinpointsmsvoicev2#KeywordMessage", "traits": { - "smithy.api#documentation": "

          An array of ConfigurationSets objects.

          " + "smithy.api#documentation": "

          The message that was associated with the deleted keyword.

          " } }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "KeywordAction": { + "target": "com.amazonaws.pinpointsmsvoicev2#KeywordAction", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " + "smithy.api#documentation": "

          The action that was associated with the deleted keyword.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeKeywords": { + "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutList": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeKeywordsRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeKeywordsResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, @@ -1963,89 +2137,65 @@ } ], "traits": { - "smithy.api#documentation": "

          Describes the specified keywords or all keywords on your origination phone number or\n pool.

          \n

          A keyword is a word that you can search for on a particular phone number or pool. It\n is also a specific word or phrase that an end user can send to your number to elicit a\n response, such as an informational message or a special offer. When your number receives\n a message that begins with a keyword, Amazon Pinpoint responds with a customizable\n message.

          \n

          If you specify a keyword that isn't valid, an Error is returned.

          ", - "smithy.api#paginated": { - "items": "Keywords" - } + "smithy.api#documentation": "

          Deletes an existing opt-out list. All opted out phone numbers in the opt-out list are\n deleted.

          \n

          If the specified opt-out list name doesn't exist or is in-use by an origination phone\n number or pool, an error is returned.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeKeywordsRequest": { + "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListRequest": { "type": "structure", "members": { - "OriginationIdentity": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneOrPoolIdOrArn", + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", "traits": { - "smithy.api#documentation": "

          The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or\n SenderIdArn. You can use DescribePhoneNumbers to find the values for\n PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used\n to get the values for SenderId and SenderIdArn.

          ", + "smithy.api#documentation": "

          The OptOutListName or OptOutListArn of the OptOutList to delete. You can use DescribeOptOutLists to find the values for OptOutListName and\n OptOutListArn.

          ", "smithy.api#required": {} } - }, - "Keywords": { - "target": "com.amazonaws.pinpointsmsvoicev2#KeywordList", - "traits": { - "smithy.api#documentation": "

          An array of keywords to search for.

          " - } - }, - "Filters": { - "target": "com.amazonaws.pinpointsmsvoicev2#KeywordFilterList", - "traits": { - "smithy.api#documentation": "

          An array of keyword filters to filter the results.

          " - } - }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", - "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " - } - }, - "MaxResults": { - "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", - "traits": { - "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " - } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeKeywordsResult": { + "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutListResult": { "type": "structure", "members": { - "OriginationIdentityArn": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

          The PhoneNumberArn or PoolArn that is associated with the OriginationIdentity.

          " - } - }, - "OriginationIdentity": { + "OptOutListArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The PhoneNumberId or PoolId that is associated with the OriginationIdentity.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the OptOutList that was removed.

          " } }, - "Keywords": { - "target": "com.amazonaws.pinpointsmsvoicev2#KeywordInformationList", + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", "traits": { - "smithy.api#documentation": "

          An array of KeywordInformation objects that contain the results.

          " + "smithy.api#documentation": "

          The name of the OptOutList that was removed.

          " } }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " + "smithy.api#documentation": "

          The time when the OptOutList was created, in UNIX epoch time format.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeOptOutLists": { + "com.amazonaws.pinpointsmsvoicev2#DeleteOptedOutNumber": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeOptOutListsRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptedOutNumberRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeOptOutListsResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptedOutNumberResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, @@ -2060,64 +2210,85 @@ } ], "traits": { - "smithy.api#documentation": "

          Describes the specified opt-out list or all opt-out lists in your account.

          \n

          If you specify opt-out list names, the output includes information for only the\n specified opt-out lists. Opt-out lists include only those that meet the filter criteria.\n If you don't specify opt-out list names or filters, the output includes information for\n all opt-out lists.

          \n

          If you specify an opt-out list name that isn't valid, an Error is returned.

          ", - "smithy.api#paginated": { - "items": "OptOutLists" - } + "smithy.api#documentation": "

          Deletes an existing opted out destination phone number from the specified opt-out\n list.

          \n

          Each destination phone number can only be deleted once every 30 days.

          \n

          If the specified destination phone number doesn't exist or if the opt-out list doesn't\n exist, an error is returned.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeOptOutListsRequest": { + "com.amazonaws.pinpointsmsvoicev2#DeleteOptedOutNumberRequest": { "type": "structure", "members": { - "OptOutListNames": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameList", - "traits": { - "smithy.api#documentation": "

          The OptOutLists to show the details of. This is an array of strings that can be either\n the OptOutListName or OptOutListArn.

          " - } - }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + "smithy.api#documentation": "

          The OptOutListName or OptOutListArn to remove the phone number from.

          ", + "smithy.api#required": {} } }, - "MaxResults": { - "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "OptedOutNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", "traits": { - "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + "smithy.api#documentation": "

          The phone number, in E.164 format, to remove from the OptOutList.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeOptOutListsResult": { + "com.amazonaws.pinpointsmsvoicev2#DeleteOptedOutNumberResult": { "type": "structure", "members": { - "OptOutLists": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListInformationList", + "OptOutListArn": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          An array of OptOutListInformation objects that contain the details for the requested\n OptOutLists.

          " + "smithy.api#documentation": "

          The OptOutListArn that the phone number was removed from.

          " } }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " + "smithy.api#documentation": "

          The OptOutListName that the phone number was removed from.

          " + } + }, + "OptedOutNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "traits": { + "smithy.api#documentation": "

          The phone number that was removed from the OptOutList.

          " + } + }, + "OptedOutTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time that the number was removed at, in UNIX epoch time format.

          " + } + }, + "EndUserOptedOut": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          This is true if it was the end user who requested their phone number be removed.\n

          " } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeOptedOutNumbers": { + "com.amazonaws.pinpointsmsvoicev2#DeletePool": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeOptedOutNumbersRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DeletePoolRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeOptedOutNumbersResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DeletePoolResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, @@ -2132,89 +2303,116 @@ } ], "traits": { - "smithy.api#documentation": "

          Describes the specified opted out destination numbers or all opted out destination\n numbers in an opt-out list.

          \n

          If you specify opted out numbers, the output includes information for only the\n specified opted out numbers. If you specify filters, the output includes information for\n only those opted out numbers that meet the filter criteria. If you don't specify opted\n out numbers or filters, the output includes information for all opted out destination\n numbers in your opt-out list.

          \n

          If you specify an opted out number that isn't valid, an Error is returned.

          ", - "smithy.api#paginated": { - "items": "OptedOutNumbers" - } + "smithy.api#documentation": "

          Deletes an existing pool. Deleting a pool disassociates all origination identities\n from that pool.

          \n

          If the pool status isn't active or if deletion protection is enabled, an error is\n returned.

          \n

          A pool is a collection of phone numbers and SenderIds. A pool can include one or more\n phone numbers and SenderIds that are associated with your Amazon Web Services\n account.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeOptedOutNumbersRequest": { + "com.amazonaws.pinpointsmsvoicev2#DeletePoolRequest": { "type": "structure", "members": { - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", + "PoolId": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolIdOrArn", "traits": { - "smithy.api#documentation": "

          The OptOutListName or OptOutListArn of the OptOutList. You can use DescribeOptOutLists to find the values for OptOutListName and\n OptOutListArn.

          ", + "smithy.api#documentation": "

          The PoolId or PoolArn of the pool to delete. You can use DescribePools to find the values for PoolId and PoolArn .

          ", "smithy.api#required": {} } - }, - "OptedOutNumbers": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptedOutNumberList", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DeletePoolResult": { + "type": "structure", + "members": { + "PoolArn": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          An array of phone numbers to search for in the OptOutList.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the pool that was deleted.

          " } }, - "Filters": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptedOutFilterList", + "PoolId": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          An array of OptedOutFilter objects to filter the results on.

          " + "smithy.api#documentation": "

          The PoolId of the pool that was deleted.

          " } }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "Status": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolStatus", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + "smithy.api#documentation": "

          The current status of the pool.

          \n
            \n
          • \n

            CREATING: The pool is currently being created and isn't yet available for\n use.

            \n
          • \n
          • \n

            ACTIVE: The pool is active and available for use.

            \n
          • \n
          • \n

            DELETING: The pool is being deleted.

            \n
          • \n
          " } }, - "MaxResults": { - "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "MessageType": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", "traits": { - "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + "smithy.api#documentation": "

          The message type that was associated with the deleted pool.

          " } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#DescribeOptedOutNumbersResult": { - "type": "structure", - "members": { - "OptOutListArn": { - "target": "smithy.api#String", + }, + "TwoWayEnabled": { + "target": "smithy.api#PrimitiveBoolean", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the OptOutList.

          " + "smithy.api#default": false, + "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients.

          " + } + }, + "TwoWayChannelArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the TwoWayChannel.

          " + } + }, + "TwoWayChannelRole": { + "target": "com.amazonaws.pinpointsmsvoicev2#IamRoleArn", + "traits": { + "smithy.api#documentation": "

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

          " + } + }, + "SelfManagedOptOutsEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          By default this is set to false. When an end recipient sends a message that begins\n with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically\n replies with a customizable message and adds the end recipient to the OptOutList. When\n set to true you're responsible for responding to HELP and STOP requests. You're also\n responsible for tracking and honoring opt-out requests.

          " } }, "OptOutListName": { "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", "traits": { - "smithy.api#documentation": "

          The name of the OptOutList.

          " + "smithy.api#documentation": "

          The name of the OptOutList that was associated with the deleted pool.

          " } }, - "OptedOutNumbers": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptedOutNumberInformationList", + "SharedRoutesEnabled": { + "target": "smithy.api#PrimitiveBoolean", "traits": { - "smithy.api#documentation": "

          An array of OptedOutNumbersInformation objects that provide information about the\n requested OptedOutNumbers.

          " + "smithy.api#default": false, + "smithy.api#documentation": "

          Indicates whether shared routes are enabled for the pool.

          " } }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " + "smithy.api#documentation": "

          The time when the pool was created, in UNIX epoch time format.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DescribePhoneNumbers": { + "com.amazonaws.pinpointsmsvoicev2#DeleteRegistration": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribePhoneNumbersRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribePhoneNumbersResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, @@ -2229,70 +2427,24 @@ } ], "traits": { - "smithy.api#documentation": "

          Describes the specified origination phone number, or all the phone numbers in your\n account.

          \n

          If you specify phone number IDs, the output includes information for only the\n specified phone numbers. If you specify filters, the output includes information for\n only those phone numbers that meet the filter criteria. If you don't specify phone\n number IDs or filters, the output includes information for all phone numbers.

          \n

          If you specify a phone number ID that isn't valid, an Error is returned.

          ", - "smithy.api#paginated": { - "items": "PhoneNumbers" - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#DescribePhoneNumbersRequest": { - "type": "structure", - "members": { - "PhoneNumberIds": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberIdList", - "traits": { - "smithy.api#documentation": "

          The unique identifier of phone numbers to find information about. This is an array of\n strings that can be either the PhoneNumberId or PhoneNumberArn.

          " - } - }, - "Filters": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberFilterList", - "traits": { - "smithy.api#documentation": "

          An array of PhoneNumberFilter objects to filter the results.

          " - } - }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", - "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " - } - }, - "MaxResults": { - "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", - "traits": { - "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " - } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#DescribePhoneNumbersResult": { - "type": "structure", - "members": { - "PhoneNumbers": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberInformationList", - "traits": { - "smithy.api#documentation": "

          An array of PhoneNumberInformation objects that contain the details for the requested\n phone numbers.

          " - } - }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", - "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " - } - } + "smithy.api#documentation": "

          Permanently delete an existing registration from your account.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DescribePools": { + "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationAttachment": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribePoolsRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationAttachmentRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribePoolsResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationAttachmentResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, @@ -2307,70 +2459,81 @@ } ], "traits": { - "smithy.api#documentation": "

          Retrieves the specified pools or all pools associated with your Amazon Web Services\n account.

          \n

          If you specify pool IDs, the output includes information for only the specified pools.\n If you specify filters, the output includes information for only those pools that meet\n the filter criteria. If you don't specify pool IDs or filters, the output includes\n information for all pools.

          \n

          If you specify a pool ID that isn't valid, an Error is returned.

          \n

          A pool is a collection of phone numbers and SenderIds. A pool can include one or more\n phone numbers and SenderIds that are associated with your Amazon Web Services\n account.

          ", - "smithy.api#paginated": { - "items": "Pools" - } + "smithy.api#documentation": "

          Permanently delete the specified registration attachment.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DescribePoolsRequest": { + "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationAttachmentRequest": { "type": "structure", "members": { - "PoolIds": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolIdList", + "RegistrationAttachmentId": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentIdOrArn", "traits": { - "smithy.api#documentation": "

          The unique identifier of pools to find. This is an array of strings that can be either\n the PoolId or PoolArn.

          " + "smithy.api#documentation": "

          The unique identifier for the registration attachment.

          ", + "smithy.api#required": {} } - }, - "Filters": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolFilterList", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationAttachmentResult": { + "type": "structure", + "members": { + "RegistrationAttachmentArn": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          An array of PoolFilter objects to filter the results.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the registration attachment.

          ", + "smithy.api#required": {} } }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "RegistrationAttachmentId": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + "smithy.api#documentation": "

          The unique identifier for the registration attachment.

          ", + "smithy.api#required": {} } }, - "MaxResults": { - "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "AttachmentStatus": { + "target": "com.amazonaws.pinpointsmsvoicev2#AttachmentStatus", "traits": { - "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + "smithy.api#documentation": "

          The status of the registration attachment.

          \n
            \n
          • \n

            \n UPLOAD_IN_PROGRESS The attachment is being uploaded.

            \n
          • \n
          • \n

            \n UPLOAD_COMPLETE The attachment has been uploaded.

            \n
          • \n
          • \n

            \n UPLOAD_FAILED The attachment failed to uploaded.

            \n
          • \n
          • \n

            \n DELETED The attachment has been deleted..

            \n
          • \n
          ", + "smithy.api#required": {} } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#DescribePoolsResult": { - "type": "structure", - "members": { - "Pools": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolInformationList", + }, + "AttachmentUploadErrorReason": { + "target": "com.amazonaws.pinpointsmsvoicev2#AttachmentUploadErrorReason", "traits": { - "smithy.api#documentation": "

          An array of PoolInformation objects that contain the details for the requested pools.

          " + "smithy.api#documentation": "

          The error message if the upload failed.

          " } }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " + "smithy.api#documentation": "

          The time when the registration attachment was created, in UNIX epoch time format.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeSenderIds": { + "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationFieldValue": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeSenderIdsRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationFieldValueRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeSenderIdsResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationFieldValueResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, @@ -2385,167 +2548,222 @@ } ], "traits": { - "smithy.api#documentation": "

          Describes the specified SenderIds or all SenderIds associated with your Amazon Web Services account.

          \n

          If you specify SenderIds, the output includes information for only the specified\n SenderIds. If you specify filters, the output includes information for only those\n SenderIds that meet the filter criteria. If you don't specify SenderIds or filters, the\n output includes information for all SenderIds.

          \n

          f you specify a sender ID that isn't valid, an Error is returned.

          ", - "smithy.api#paginated": { - "items": "SenderIds" - } + "smithy.api#documentation": "

          Delete the value in a registration form field.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeSenderIdsRequest": { + "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationFieldValueRequest": { "type": "structure", "members": { - "SenderIds": { - "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdList", - "traits": { - "smithy.api#documentation": "

          An array of SenderIdAndCountry objects to search for.

          " - } - }, - "Filters": { - "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdFilterList", - "traits": { - "smithy.api#documentation": "

          An array of SenderIdFilter objects to filter the results.

          " - } - }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "RegistrationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} } }, - "MaxResults": { - "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "FieldPath": { + "target": "com.amazonaws.pinpointsmsvoicev2#FieldPath", "traits": { - "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + "smithy.api#documentation": "

          The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeSenderIdsResult": { + "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationFieldValueResult": { "type": "structure", "members": { - "SenderIds": { - "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdInformationList", + "RegistrationArn": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          An array of SernderIdInformation objects that contain the details for the requested\n SenderIds.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the registration.

          ", + "smithy.api#required": {} } }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "RegistrationId": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#DescribeSpendLimits": { - "type": "operation", - "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeSpendLimitsRequest" - }, - "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeSpendLimitsResult" - }, - "errors": [ - { - "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + "VersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", + "traits": { + "smithy.api#documentation": "

          The version number of the registration.

          ", + "smithy.api#required": {} + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + "FieldPath": { + "target": "com.amazonaws.pinpointsmsvoicev2#FieldPath", + "traits": { + "smithy.api#documentation": "

          The path to the registration form field.

          ", + "smithy.api#required": {} + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

          Describes the current Amazon Pinpoint monthly spend limits for sending voice and\n text messages.

          \n

          When you establish an Amazon Web Services account, the account has initial monthly\n spend limit in a given Region. For more information on increasing your monthly spend\n limit, see \n Requesting increases to your monthly SMS spending quota for Amazon Pinpoint\n in the Amazon Pinpoint User Guide.

          ", - "smithy.api#paginated": { - "items": "SpendLimits" - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#DescribeSpendLimitsRequest": { - "type": "structure", - "members": { - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "SelectChoices": { + "target": "com.amazonaws.pinpointsmsvoicev2#SelectChoiceList", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + "smithy.api#documentation": "

          An array of values for the form field.

          " } }, - "MaxResults": { - "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "TextValue": { + "target": "com.amazonaws.pinpointsmsvoicev2#TextValue", "traits": { - "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + "smithy.api#documentation": "

          The text data for a free form field.

          " + } + }, + "RegistrationAttachmentId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration attachment.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DescribeSpendLimitsResult": { + "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationRequest": { "type": "structure", "members": { - "SpendLimits": { - "target": "com.amazonaws.pinpointsmsvoicev2#SpendLimitList", + "RegistrationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn", "traits": { - "smithy.api#documentation": "

          An array of SpendLimit objects that contain the details for the requested spend\n limits.

          " + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationResult": { + "type": "structure", + "members": { + "RegistrationArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the registration.

          ", + "smithy.api#required": {} } }, - "NextToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "RegistrationId": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} + } + }, + "RegistrationType": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationType", + "traits": { + "smithy.api#documentation": "

          The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions\n action.

          ", + "smithy.api#required": {} + } + }, + "RegistrationStatus": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationStatus", + "traits": { + "smithy.api#documentation": "

          The status of the registration.

          \n
            \n
          • \n

            \n CREATED: Your registration is created but not submitted.

            \n
          • \n
          • \n

            \n SUBMITTED: Your registration has been submitted and is awaiting review.

            \n
          • \n
          • \n

            \n REVIEWING: Your registration has been accepted and is being reviewed.

            \n
          • \n
          • \n

            \n PROVISIONING: Your registration has been approved and your origination identity is being created.

            \n
          • \n
          • \n

            \n COMPLETE: Your registration has been approved and and your origination identity has been created.

            \n
          • \n
          • \n

            \n REQUIRES_UPDATES: You must fix your registration and resubmit it.

            \n
          • \n
          • \n

            \n CLOSED: The phone number or sender ID has been deleted and you must also delete the registration for the number.

            \n
          • \n
          • \n

            \n DELETED: The registration has been deleted.

            \n
          • \n
          ", + "smithy.api#required": {} + } + }, + "CurrentVersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", + "traits": { + "smithy.api#documentation": "

          The current version number of the registration.

          ", + "smithy.api#required": {} + } + }, + "ApprovedVersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", + "traits": { + "smithy.api#documentation": "

          The version number of the registration that was approved.

          " + } + }, + "LatestDeniedVersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", + "traits": { + "smithy.api#documentation": "

          The latest version number of the registration that was denied.

          " + } + }, + "AdditionalAttributes": { + "target": "com.amazonaws.pinpointsmsvoicev2#StringMap", + "traits": { + "smithy.api#documentation": "

          Metadata about a given registration which is specific to that registration type.

          " + } + }, + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the registration was created, in UNIX epoch time format.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DestinationCountryParameterKey": { - "type": "string", + "com.amazonaws.pinpointsmsvoicev2#DeleteTextMessageSpendLimitOverride": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteTextMessageSpendLimitOverrideRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteTextMessageSpendLimitOverrideResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], "traits": { - "smithy.api#enum": [ - { - "value": "IN_TEMPLATE_ID", - "name": "IN_TEMPLATE_ID" - }, - { - "value": "IN_ENTITY_ID", - "name": "IN_ENTITY_ID" - } - ] + "smithy.api#documentation": "

          Deletes an account-level monthly spending limit override for sending text messages.\n Deleting a spend limit override will set the EnforcedLimit to equal the\n MaxLimit, which is controlled by Amazon Web Services. For more\n information on spend limits (quotas) see Amazon Pinpoint quotas \n in the Amazon Pinpoint Developer Guide.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DestinationCountryParameterValue": { - "type": "string", + "com.amazonaws.pinpointsmsvoicev2#DeleteTextMessageSpendLimitOverrideRequest": { + "type": "structure", + "members": {}, "traits": { - "smithy.api#length": { - "min": 1, - "max": 64 - }, - "smithy.api#pattern": "^\\S+$" + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DestinationCountryParameters": { - "type": "map", - "key": { - "target": "com.amazonaws.pinpointsmsvoicev2#DestinationCountryParameterKey" - }, - "value": { - "target": "com.amazonaws.pinpointsmsvoicev2#DestinationCountryParameterValue" + "com.amazonaws.pinpointsmsvoicev2#DeleteTextMessageSpendLimitOverrideResult": { + "type": "structure", + "members": { + "MonthlyLimit": { + "target": "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit", + "traits": { + "smithy.api#documentation": "

          The current monthly limit, in US dollars.

          " + } + } }, "traits": { - "smithy.api#length": { - "max": 10 - } + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DisassociateOriginationIdentity": { + "com.amazonaws.pinpointsmsvoicev2#DeleteVerifiedDestinationNumber": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#DisassociateOriginationIdentityRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteVerifiedDestinationNumberRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#DisassociateOriginationIdentityResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteVerifiedDestinationNumberResult" }, "errors": [ { @@ -2568,478 +2786,346 @@ } ], "traits": { - "smithy.api#documentation": "

          Removes the specified origination identity from an existing pool.

          \n

          If the origination identity isn't associated with the specified pool, an Error is\n returned.

          " + "smithy.api#documentation": "

          Delete a verified destination phone number.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#DisassociateOriginationIdentityRequest": { + "com.amazonaws.pinpointsmsvoicev2#DeleteVerifiedDestinationNumberRequest": { "type": "structure", "members": { - "PoolId": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolIdOrArn", - "traits": { - "smithy.api#documentation": "

          The unique identifier for the pool to disassociate with the origination identity. This\n value can be either the PoolId or PoolArn.

          ", - "smithy.api#required": {} - } - }, - "OriginationIdentity": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneOrSenderIdOrArn", - "traits": { - "smithy.api#documentation": "

          The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or\n SenderIdArn. You can use DescribePhoneNumbers find the values for\n PhoneNumberId and PhoneNumberArn, or use DescribeSenderIds to get the\n values for SenderId and SenderIdArn.

          ", - "smithy.api#required": {} - } - }, - "IsoCountryCode": { - "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "VerifiedDestinationNumberId": { + "target": "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberIdOrArn", "traits": { - "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          ", + "smithy.api#documentation": "

          The unique identifier for the verified destination phone number.

          ", "smithy.api#required": {} } - }, - "ClientToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#ClientToken", - "traits": { - "smithy.api#documentation": "

          Unique, case-sensitive identifier you provide to ensure the idempotency of the\n request. If you don't specify a client token, a randomly generated token is used for the\n request to ensure idempotency.

          ", - "smithy.api#idempotencyToken": {} - } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#DisassociateOriginationIdentityResult": { + "com.amazonaws.pinpointsmsvoicev2#DeleteVerifiedDestinationNumberResult": { "type": "structure", "members": { - "PoolArn": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the pool.

          " - } - }, - "PoolId": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

          The PoolId of the pool no longer associated with the origination identity.

          " - } - }, - "OriginationIdentityArn": { + "VerifiedDestinationNumberArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The PhoneNumberArn or SenderIdArn of the origination identity.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the verified destination phone number.

          ", + "smithy.api#required": {} } }, - "OriginationIdentity": { + "VerifiedDestinationNumberId": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The PhoneNumberId or SenderId of the origination identity.

          " - } - }, - "IsoCountryCode": { - "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", - "traits": { - "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or\n region.

          " - } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#EventDestination": { - "type": "structure", - "members": { - "EventDestinationName": { - "target": "com.amazonaws.pinpointsmsvoicev2#EventDestinationName", - "traits": { - "smithy.api#documentation": "

          The name of the EventDestination.

          ", + "smithy.api#documentation": "

          The unique identifier for the verified destination phone number.

          ", "smithy.api#required": {} } }, - "Enabled": { - "target": "smithy.api#Boolean", + "DestinationPhoneNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", "traits": { - "smithy.api#documentation": "

          When set to true events will be logged.

          ", + "smithy.api#documentation": "

          The verified destination phone number, in E.164 format.

          ", "smithy.api#required": {} } }, - "MatchingEventTypes": { - "target": "com.amazonaws.pinpointsmsvoicev2#EventTypeList", + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

          An array of event types that determine which events to log.

          ", + "smithy.api#documentation": "

          The time when the destination phone number was created, in UNIX epoch time format.

          ", "smithy.api#required": {} } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DeleteVoiceMessageSpendLimitOverride": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteVoiceMessageSpendLimitOverrideRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteVoiceMessageSpendLimitOverrideResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, - "CloudWatchLogsDestination": { - "target": "com.amazonaws.pinpointsmsvoicev2#CloudWatchLogsDestination", - "traits": { - "smithy.api#documentation": "

          An object that contains information about an event destination that sends logging\n events to Amazon CloudWatch logs.

          " - } + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, - "KinesisFirehoseDestination": { - "target": "com.amazonaws.pinpointsmsvoicev2#KinesisFirehoseDestination", - "traits": { - "smithy.api#documentation": "

          An object that contains information about an event destination for logging to Amazon\n Kinesis Data Firehose.

          " - } + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, - "SnsDestination": { - "target": "com.amazonaws.pinpointsmsvoicev2#SnsDestination", + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Deletes an account level monthly spend limit override for sending voice messages.\n Deleting a spend limit override sets the EnforcedLimit equal to the\n MaxLimit, which is controlled by Amazon Web Services. For more\n information on spending limits (quotas) see Amazon Pinpoint quotas\n in the Amazon Pinpoint Developer Guide.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#DeleteVoiceMessageSpendLimitOverrideRequest": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DeleteVoiceMessageSpendLimitOverrideResult": { + "type": "structure", + "members": { + "MonthlyLimit": { + "target": "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit", "traits": { - "smithy.api#documentation": "

          An object that contains information about an event destination that sends logging\n events to Amazon SNS.

          " + "smithy.api#documentation": "

          The current monthly limit, in US dollars.

          " } } }, "traits": { - "smithy.api#documentation": "

          Contains information about an event destination.

          \n

          Event destinations are associated with configuration sets, which enable you to publish\n message sending events to\n Amazon\n CloudWatch, Amazon Kinesis Data Firehose, or Amazon SNS.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#EventDestinationList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#EventDestination" + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#EventDestinationName": { + "com.amazonaws.pinpointsmsvoicev2#DeliveryStreamArn": { "type": "string", "traits": { "smithy.api#length": { - "min": 1, - "max": 64 + "min": 20, + "max": 2048 }, - "smithy.api#pattern": "^[A-Za-z0-9_-]+$" + "smithy.api#pattern": "^arn:\\S+$" } }, - "com.amazonaws.pinpointsmsvoicev2#EventType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "ALL", - "name": "ALL" - }, - { - "value": "TEXT_ALL", - "name": "TEXT_ALL" - }, - { - "value": "TEXT_SENT", - "name": "TEXT_SENT" - }, - { - "value": "TEXT_PENDING", - "name": "TEXT_PENDING" - }, - { - "value": "TEXT_QUEUED", - "name": "TEXT_QUEUED" - }, - { - "value": "TEXT_SUCCESSFUL", - "name": "TEXT_SUCCESSFUL" - }, - { - "value": "TEXT_DELIVERED", - "name": "TEXT_DELIVERED" - }, - { - "value": "TEXT_INVALID", - "name": "TEXT_INVALID" - }, - { - "value": "TEXT_INVALID_MESSAGE", - "name": "TEXT_INVALID_MESSAGE" - }, - { - "value": "TEXT_UNREACHABLE", - "name": "TEXT_UNREACHABLE" - }, - { - "value": "TEXT_CARRIER_UNREACHABLE", - "name": "TEXT_CARRIER_UNREACHABLE" - }, - { - "value": "TEXT_BLOCKED", - "name": "TEXT_BLOCKED" - }, - { - "value": "TEXT_CARRIER_BLOCKED", - "name": "TEXT_CARRIER_BLOCKED" - }, - { - "value": "TEXT_SPAM", - "name": "TEXT_SPAM" - }, - { - "value": "TEXT_UNKNOWN", - "name": "TEXT_UNKNOWN" - }, - { - "value": "TEXT_TTL_EXPIRED", - "name": "TEXT_TTL_EXPIRED" - }, - { - "value": "VOICE_ALL", - "name": "VOICE_ALL" - }, - { - "value": "VOICE_INITIATED", - "name": "VOICE_INITIATED" - }, - { - "value": "VOICE_RINGING", - "name": "VOICE_RINGING" - }, - { - "value": "VOICE_ANSWERED", - "name": "VOICE_ANSWERED" - }, - { - "value": "VOICE_COMPLETED", - "name": "VOICE_COMPLETED" - }, - { - "value": "VOICE_BUSY", - "name": "VOICE_BUSY" - }, - { - "value": "VOICE_NO_ANSWER", - "name": "VOICE_NO_ANSWER" - }, - { - "value": "VOICE_FAILED", - "name": "VOICE_FAILED" - }, - { - "value": "VOICE_TTL_EXPIRED", - "name": "VOICE_TTL_EXPIRED" - } - ] - } - }, - "com.amazonaws.pinpointsmsvoicev2#EventTypeList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#EventType" + "com.amazonaws.pinpointsmsvoicev2#DescribeAccountAttributes": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeAccountAttributesRequest" }, - "traits": { - "smithy.api#length": { - "min": 1, - "max": 25 - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#FilterValue": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, - "smithy.api#pattern": "^[A-Za-z0-9_-]+$" - } - }, - "com.amazonaws.pinpointsmsvoicev2#FilterValueList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#FilterValue" + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeAccountAttributesResult" }, - "traits": { - "smithy.api#length": { - "min": 1, - "max": 20 + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" } - } - }, - "com.amazonaws.pinpointsmsvoicev2#IamRoleArn": { - "type": "string", + ], "traits": { - "smithy.api#length": { - "min": 20, - "max": 2048 - }, - "smithy.api#pattern": "^arn:\\S+$" + "smithy.api#documentation": "

          Describes attributes of your Amazon Web Services account. The supported account\n attributes include account tier, which indicates whether your account is in the sandbox\n or production environment. When you're ready to move your account out of the sandbox,\n create an Amazon Web Services Support case for a service limit increase request.

          \n

          New Amazon Pinpoint accounts are placed into an SMS or voice sandbox. The sandbox\n protects both Amazon Web Services end recipients and SMS or voice recipients from fraud\n and abuse.

          ", + "smithy.api#paginated": { + "items": "AccountAttributes" + } } }, - "com.amazonaws.pinpointsmsvoicev2#InternalServerException": { + "com.amazonaws.pinpointsmsvoicev2#DescribeAccountAttributesRequest": { "type": "structure", "members": { - "Message": { - "target": "smithy.api#String" + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } }, - "RequestId": { - "target": "smithy.api#String", + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", "traits": { - "smithy.api#documentation": "

          The unique identifier of the request.

          " + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " } } }, "traits": { - "smithy.api#documentation": "

          The API encountered an unexpected error and couldn't complete the request. You might\n be able to successfully issue the request again in the future.

          ", - "smithy.api#error": "server", - "smithy.api#retryable": {} - } - }, - "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 2, - "max": 2 - }, - "smithy.api#pattern": "^[A-Z]{2}$" - } - }, - "com.amazonaws.pinpointsmsvoicev2#Keyword": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 30 - }, - "smithy.api#pattern": "^[ \\S]+$" - } - }, - "com.amazonaws.pinpointsmsvoicev2#KeywordAction": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "AUTOMATIC_RESPONSE", - "name": "AUTOMATIC_RESPONSE" - }, - { - "value": "OPT_OUT", - "name": "OPT_OUT" - }, - { - "value": "OPT_IN", - "name": "OPT_IN" - } - ] + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#KeywordFilter": { + "com.amazonaws.pinpointsmsvoicev2#DescribeAccountAttributesResult": { "type": "structure", "members": { - "Name": { - "target": "com.amazonaws.pinpointsmsvoicev2#KeywordFilterName", + "AccountAttributes": { + "target": "com.amazonaws.pinpointsmsvoicev2#AccountAttributeList", "traits": { - "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          An array of AccountAttributes objects.

          " } }, - "Values": { - "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", "traits": { - "smithy.api#documentation": "

          An array values to filter for.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " } } }, "traits": { - "smithy.api#documentation": "

          The information for keywords that meet a specified criteria.

          " + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#KeywordFilterList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#KeywordFilter" + "com.amazonaws.pinpointsmsvoicev2#DescribeAccountLimits": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeAccountLimitsRequest" }, - "traits": { - "smithy.api#length": { - "max": 20 - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#KeywordFilterName": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "keyword-action", - "name": "KEYWORD_ACTION" - } - ] + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeAccountLimitsResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Describes the current Amazon Pinpoint SMS Voice V2 resource quotas for your\n account. The description for a quota includes the quota name, current usage toward that\n quota, and the quota's maximum value.

          \n

          When you establish an Amazon Web Services account, the account has initial quotas on\n the maximum number of configuration sets, opt-out lists, phone numbers, and pools that\n you can create in a given Region. For more information see \n Amazon Pinpoint quotas in the Amazon Pinpoint Developer\n Guide.

          ", + "smithy.api#paginated": { + "items": "AccountLimits" + } } }, - "com.amazonaws.pinpointsmsvoicev2#KeywordInformation": { + "com.amazonaws.pinpointsmsvoicev2#DescribeAccountLimitsRequest": { "type": "structure", "members": { - "Keyword": { - "target": "com.amazonaws.pinpointsmsvoicev2#Keyword", + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", "traits": { - "smithy.api#documentation": "

          The keyword as a string.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " } }, - "KeywordMessage": { - "target": "com.amazonaws.pinpointsmsvoicev2#KeywordMessage", + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", "traits": { - "smithy.api#documentation": "

          A custom message that can be used with the keyword.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeAccountLimitsResult": { + "type": "structure", + "members": { + "AccountLimits": { + "target": "com.amazonaws.pinpointsmsvoicev2#AccountLimitList", + "traits": { + "smithy.api#documentation": "

          An array of AccountLimit objects that show the current spend limits.

          " } }, - "KeywordAction": { - "target": "com.amazonaws.pinpointsmsvoicev2#KeywordAction", + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", "traits": { - "smithy.api#documentation": "

          The action to perform for the keyword.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " } } }, "traits": { - "smithy.api#documentation": "

          The information for all keywords in a pool.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#KeywordInformationList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#KeywordInformation" + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#KeywordList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#Keyword" + "com.amazonaws.pinpointsmsvoicev2#DescribeConfigurationSets": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeConfigurationSetsRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeConfigurationSetsResult" }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], "traits": { - "smithy.api#length": { - "max": 5 + "smithy.api#documentation": "

          Describes the specified configuration sets or all in your account.

          \n

          If you specify configuration set names, the output includes information for only the\n specified configuration sets. If you specify filters, the output includes information\n for only those configuration sets that meet the filter criteria. If you don't specify\n configuration set names or filters, the output includes information for all\n configuration sets.

          \n

          If you specify a configuration set name that isn't valid, an error is returned.

          ", + "smithy.api#paginated": { + "items": "ConfigurationSets" } } }, - "com.amazonaws.pinpointsmsvoicev2#KeywordMessage": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 1600 + "com.amazonaws.pinpointsmsvoicev2#DescribeConfigurationSetsRequest": { + "type": "structure", + "members": { + "ConfigurationSetNames": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameList", + "traits": { + "smithy.api#documentation": "

          An array of strings. Each element can be either a ConfigurationSetName or\n ConfigurationSetArn.

          " + } }, - "smithy.api#pattern": "^(?!\\s*$)[\\s\\S]+$" + "Filters": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetFilterList", + "traits": { + "smithy.api#documentation": "

          An array of filters to apply to the results that are returned.

          " + } + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } + }, + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "traits": { + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + } + } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#KinesisFirehoseDestination": { + "com.amazonaws.pinpointsmsvoicev2#DescribeConfigurationSetsResult": { "type": "structure", "members": { - "IamRoleArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#IamRoleArn", + "ConfigurationSets": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetInformationList", "traits": { - "smithy.api#documentation": "

          The ARN of an Amazon Identity and Access Management (IAM) role that is able to write\n event data to an Amazon Firehose destination.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          An array of ConfigurationSets objects.

          " } }, - "DeliveryStreamArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#DeliveryStreamArn", + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the delivery stream.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " } } }, "traits": { - "smithy.api#documentation": "

          Contains the delivery stream Amazon Resource Name (ARN), and the ARN of the Identity and Access Management (IAM) role associated with an Kinesis Data Firehose event\n destination.

          \n

          Event destinations, such as Kinesis Data Firehose, are associated with configuration\n sets, which enable you to publish message sending events.

          " + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#ListPoolOriginationIdentities": { + "com.amazonaws.pinpointsmsvoicev2#DescribeKeywords": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#ListPoolOriginationIdentitiesRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeKeywordsRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#ListPoolOriginationIdentitiesResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeKeywordsResult" }, "errors": [ { @@ -3059,26 +3145,32 @@ } ], "traits": { - "smithy.api#documentation": "

          Lists all associated origination identities in your pool.

          \n

          If you specify filters, the output includes information for only those origination\n identities that meet the filter criteria.

          ", + "smithy.api#documentation": "

          Describes the specified keywords or all keywords on your origination phone number or\n pool.

          \n

          A keyword is a word that you can search for on a particular phone number or pool. It\n is also a specific word or phrase that an end user can send to your number to elicit a\n response, such as an informational message or a special offer. When your number receives\n a message that begins with a keyword, Amazon Pinpoint responds with a customizable\n message.

          \n

          If you specify a keyword that isn't valid, an error is returned.

          ", "smithy.api#paginated": { - "items": "OriginationIdentities" + "items": "Keywords" } } }, - "com.amazonaws.pinpointsmsvoicev2#ListPoolOriginationIdentitiesRequest": { + "com.amazonaws.pinpointsmsvoicev2#DescribeKeywordsRequest": { "type": "structure", "members": { - "PoolId": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolIdOrArn", + "OriginationIdentity": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneOrPoolIdOrArn", "traits": { - "smithy.api#documentation": "

          The unique identifier for the pool. This value can be either the PoolId or\n PoolArn.

          ", + "smithy.api#documentation": "

          The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or\n SenderIdArn. You can use DescribePhoneNumbers to find the values for\n PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used\n to get the values for SenderId and SenderIdArn.

          ", "smithy.api#required": {} } }, + "Keywords": { + "target": "com.amazonaws.pinpointsmsvoicev2#KeywordList", + "traits": { + "smithy.api#documentation": "

          An array of keywords to search for.

          " + } + }, "Filters": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolOriginationIdentitiesFilterList", + "target": "com.amazonaws.pinpointsmsvoicev2#KeywordFilterList", "traits": { - "smithy.api#documentation": "

          An array of PoolOriginationIdentitiesFilter objects to filter the results..

          " + "smithy.api#documentation": "

          An array of keyword filters to filter the results.

          " } }, "NextToken": { @@ -3093,27 +3185,30 @@ "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#ListPoolOriginationIdentitiesResult": { + "com.amazonaws.pinpointsmsvoicev2#DescribeKeywordsResult": { "type": "structure", "members": { - "PoolArn": { + "OriginationIdentityArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the pool.

          " + "smithy.api#documentation": "

          The PhoneNumberArn or PoolArn that is associated with the OriginationIdentity.

          " } }, - "PoolId": { + "OriginationIdentity": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The unique PoolId of the pool.

          " + "smithy.api#documentation": "

          The PhoneNumberId or PoolId that is associated with the OriginationIdentity.

          " } }, - "OriginationIdentities": { - "target": "com.amazonaws.pinpointsmsvoicev2#OriginationIdentityMetadataList", + "Keywords": { + "target": "com.amazonaws.pinpointsmsvoicev2#KeywordInformationList", "traits": { - "smithy.api#documentation": "

          An array of any OriginationIdentityMetadata objects.

          " + "smithy.api#documentation": "

          An array of KeywordInformation objects that contain the results.

          " } }, "NextToken": { @@ -3122,15 +3217,18 @@ "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#ListTagsForResource": { + "com.amazonaws.pinpointsmsvoicev2#DescribeOptOutLists": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#ListTagsForResourceRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeOptOutListsRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#ListTagsForResourceResult" + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeOptOutListsResult" }, "errors": [ { @@ -3150,849 +3248,3182 @@ } ], "traits": { - "smithy.api#documentation": "

          List all tags associated with a resource.

          " + "smithy.api#documentation": "

          Describes the specified opt-out list or all opt-out lists in your account.

          \n

          If you specify opt-out list names, the output includes information for only the\n specified opt-out lists. Opt-out lists include only those that meet the filter criteria.\n If you don't specify opt-out list names or filters, the output includes information for\n all opt-out lists.

          \n

          If you specify an opt-out list name that isn't valid, an error is returned.

          ", + "smithy.api#paginated": { + "items": "OptOutLists" + } } }, - "com.amazonaws.pinpointsmsvoicev2#ListTagsForResourceRequest": { + "com.amazonaws.pinpointsmsvoicev2#DescribeOptOutListsRequest": { "type": "structure", "members": { - "ResourceArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#AmazonResourceName", + "OptOutListNames": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameList", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the resource to query for.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The OptOutLists to show the details of. This is an array of strings that can be either\n the OptOutListName or OptOutListArn.

          " + } + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } + }, + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "traits": { + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#ListTagsForResourceResult": { + "com.amazonaws.pinpointsmsvoicev2#DescribeOptOutListsResult": { "type": "structure", "members": { - "ResourceArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#AmazonResourceName", + "OptOutLists": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListInformationList", "traits": { - "smithy.api#documentation": "

          The ARN of the resource.

          " + "smithy.api#documentation": "

          An array of OptOutListInformation objects that contain the details for the requested\n OptOutLists.

          " } }, - "Tags": { - "target": "com.amazonaws.pinpointsmsvoicev2#TagList", + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", "traits": { - "smithy.api#documentation": "

          An array of key and value pair tags that are associated with the resource.

          " + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " } } - } - }, - "com.amazonaws.pinpointsmsvoicev2#LogGroupArn": { - "type": "string", + }, "traits": { - "smithy.api#length": { - "min": 20, - "max": 2048 - }, - "smithy.api#pattern": "^arn:\\S+$" + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#MaxPrice": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 2, - "max": 8 + "com.amazonaws.pinpointsmsvoicev2#DescribeOptedOutNumbers": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeOptedOutNumbersRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeOptedOutNumbersResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, - "smithy.api#pattern": "^[0-9]{0,2}\\.[0-9]{1,5}$" - } - }, - "com.amazonaws.pinpointsmsvoicev2#MaxResults": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 1, - "max": 100 + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" } - } - }, - "com.amazonaws.pinpointsmsvoicev2#MessageType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "TRANSACTIONAL", - "name": "TRANSACTIONAL" - }, - { - "value": "PROMOTIONAL", - "name": "PROMOTIONAL" - } - ] - } - }, - "com.amazonaws.pinpointsmsvoicev2#MessageTypeList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#MessageType" - } - }, - "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit": { - "type": "long", + ], "traits": { - "smithy.api#range": { - "min": 0, - "max": 1000000000 + "smithy.api#documentation": "

          Describes the specified opted out destination numbers or all opted out destination\n numbers in an opt-out list.

          \n

          If you specify opted out numbers, the output includes information for only the\n specified opted out numbers. If you specify filters, the output includes information for\n only those opted out numbers that meet the filter criteria. If you don't specify opted\n out numbers or filters, the output includes information for all opted out destination\n numbers in your opt-out list.

          \n

          If you specify an opted out number that isn't valid, an error is returned.

          ", + "smithy.api#paginated": { + "items": "OptedOutNumbers" } } }, - "com.amazonaws.pinpointsmsvoicev2#NextToken": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 1024 + "com.amazonaws.pinpointsmsvoicev2#DescribeOptedOutNumbersRequest": { + "type": "structure", + "members": { + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", + "traits": { + "smithy.api#documentation": "

          The OptOutListName or OptOutListArn of the OptOutList. You can use DescribeOptOutLists to find the values for OptOutListName and\n OptOutListArn.

          ", + "smithy.api#required": {} + } }, - "smithy.api#pattern": "^.+$" - } - }, - "com.amazonaws.pinpointsmsvoicev2#NonEmptyTagList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#Tag" - }, - "traits": { - "smithy.api#length": { - "min": 1, - "max": 200 - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#NumberCapability": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "SMS", - "name": "SMS" - }, - { - "value": "VOICE", - "name": "VOICE" + "OptedOutNumbers": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptedOutNumberList", + "traits": { + "smithy.api#documentation": "

          An array of phone numbers to search for in the OptOutList.

          " } - ] - } - }, - "com.amazonaws.pinpointsmsvoicev2#NumberCapabilityList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapability" - }, - "traits": { - "smithy.api#length": { - "min": 1, - "max": 2 - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#NumberStatus": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "PENDING", - "name": "PENDING" - }, - { - "value": "ACTIVE", - "name": "ACTIVE" - }, - { - "value": "ASSOCIATING", - "name": "ASSOCIATING" - }, - { - "value": "DISASSOCIATING", - "name": "DISASSOCIATING" - }, - { - "value": "DELETED", - "name": "DELETED" + }, + "Filters": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptedOutFilterList", + "traits": { + "smithy.api#documentation": "

          An array of OptedOutFilter objects to filter the results on.

          " } - ] - } - }, - "com.amazonaws.pinpointsmsvoicev2#NumberType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "SHORT_CODE", - "name": "SHORT_CODE" - }, - { - "value": "LONG_CODE", - "name": "LONG_CODE" - }, - { - "value": "TOLL_FREE", - "name": "TOLL_FREE" - }, - { - "value": "TEN_DLC", - "name": "TEN_DLC" + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " } - ] + }, + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "traits": { + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + } + } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#OptOutListInformation": { + "com.amazonaws.pinpointsmsvoicev2#DescribeOptedOutNumbersResult": { "type": "structure", "members": { "OptOutListArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the OptOutList.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the OptOutList.

          " } }, "OptOutListName": { "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", "traits": { - "smithy.api#documentation": "

          The name of the OptOutList.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The name of the OptOutList.

          " } }, - "CreatedTimestamp": { - "target": "smithy.api#Timestamp", + "OptedOutNumbers": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptedOutNumberInformationList", "traits": { - "smithy.api#documentation": "

          The time when the OutOutList was created, in UNIX epoch time format.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          An array of OptedOutNumbersInformation objects that provide information about the\n requested OptedOutNumbers.

          " + } + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " } } }, "traits": { - "smithy.api#documentation": "

          The information for all OptOutList in an Amazon Web Services account.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#OptOutListInformationList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListInformation" + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#OptOutListName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 64 + "com.amazonaws.pinpointsmsvoicev2#DescribePhoneNumbers": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribePhoneNumbersRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribePhoneNumbersResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, - "smithy.api#pattern": "^[A-Za-z0-9_-]+$" + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Describes the specified origination phone number, or all the phone numbers in your\n account.

          \n

          If you specify phone number IDs, the output includes information for only the\n specified phone numbers. If you specify filters, the output includes information for\n only those phone numbers that meet the filter criteria. If you don't specify phone\n number IDs or filters, the output includes information for all phone numbers.

          \n

          If you specify a phone number ID that isn't valid, an error is returned.

          ", + "smithy.api#paginated": { + "items": "PhoneNumbers" + } } }, - "com.amazonaws.pinpointsmsvoicev2#OptOutListNameList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn" - }, - "traits": { - "smithy.api#length": { - "max": 5 + "com.amazonaws.pinpointsmsvoicev2#DescribePhoneNumbersRequest": { + "type": "structure", + "members": { + "PhoneNumberIds": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberIdList", + "traits": { + "smithy.api#documentation": "

          The unique identifier of phone numbers to find information about. This is an array of\n strings that can be either the PhoneNumberId or PhoneNumberArn.

          " + } + }, + "Filters": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberFilterList", + "traits": { + "smithy.api#documentation": "

          An array of PhoneNumberFilter objects to filter the results.

          " + } + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } + }, + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "traits": { + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + } } - } - }, - "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn": { - "type": "string", + }, "traits": { - "smithy.api#length": { - "min": 1, - "max": 256 - }, - "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#OptedOutFilter": { + "com.amazonaws.pinpointsmsvoicev2#DescribePhoneNumbersResult": { "type": "structure", "members": { - "Name": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptedOutFilterName", + "PhoneNumbers": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberInformationList", "traits": { - "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          An array of PhoneNumberInformation objects that contain the details for the requested\n phone numbers.

          " } }, - "Values": { - "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", "traits": { - "smithy.api#documentation": "

          An array of values to filter for.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " } } }, "traits": { - "smithy.api#documentation": "

          The information for opted out numbers that meet a specified criteria.

          " + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#OptedOutFilterList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptedOutFilter" + "com.amazonaws.pinpointsmsvoicev2#DescribePools": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribePoolsRequest" }, - "traits": { - "smithy.api#length": { - "max": 20 + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribePoolsResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" } - } - }, - "com.amazonaws.pinpointsmsvoicev2#OptedOutFilterName": { - "type": "string", + ], "traits": { - "smithy.api#enum": [ - { - "value": "end-user-opted-out", - "name": "END_USER_OPTED_OUT" - } - ] + "smithy.api#documentation": "

          Retrieves the specified pools or all pools associated with your Amazon Web Services\n account.

          \n

          If you specify pool IDs, the output includes information for only the specified pools.\n If you specify filters, the output includes information for only those pools that meet\n the filter criteria. If you don't specify pool IDs or filters, the output includes\n information for all pools.

          \n

          If you specify a pool ID that isn't valid, an error is returned.

          \n

          A pool is a collection of phone numbers and SenderIds. A pool can include one or more\n phone numbers and SenderIds that are associated with your Amazon Web Services\n account.

          ", + "smithy.api#paginated": { + "items": "Pools" + } } }, - "com.amazonaws.pinpointsmsvoicev2#OptedOutNumberInformation": { + "com.amazonaws.pinpointsmsvoicev2#DescribePoolsRequest": { "type": "structure", "members": { - "OptedOutNumber": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "PoolIds": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolIdList", "traits": { - "smithy.api#documentation": "

          The phone number that is opted out.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The unique identifier of pools to find. This is an array of strings that can be either\n the PoolId or PoolArn.

          " } }, - "OptedOutTimestamp": { - "target": "smithy.api#Timestamp", + "Filters": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolFilterList", "traits": { - "smithy.api#documentation": "

          The time that the op tout occurred, in UNIX epoch time format.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          An array of PoolFilter objects to filter the results.

          " } }, - "EndUserOptedOut": { - "target": "smithy.api#PrimitiveBoolean", + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          This is set to true if it was the end recipient that opted out.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } + }, + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "traits": { + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " } } }, "traits": { - "smithy.api#documentation": "

          The information for an opted out number in an Amazon Web Services account.

          " + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#OptedOutNumberInformationList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptedOutNumberInformation" + "com.amazonaws.pinpointsmsvoicev2#DescribePoolsResult": { + "type": "structure", + "members": { + "Pools": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolInformationList", + "traits": { + "smithy.api#documentation": "

          An array of PoolInformation objects that contain the details for the requested pools.

          " + } + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " + } + } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#OptedOutNumberList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber" + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationAttachments": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationAttachmentsRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationAttachmentsResult" }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], "traits": { - "smithy.api#length": { - "max": 5 + "smithy.api#documentation": "

          Retrieves the specified registration attachments or all registration attachments associated with your Amazon Web Services account.

          ", + "smithy.api#paginated": { + "items": "RegistrationAttachments" } } }, - "com.amazonaws.pinpointsmsvoicev2#OriginationIdentityMetadata": { + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationAttachmentsRequest": { "type": "structure", "members": { - "OriginationIdentityArn": { - "target": "smithy.api#String", + "RegistrationAttachmentIds": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentIdList", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) associated with the origination identity.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The unique identifier of registration attachments to find. This is an array of RegistrationAttachmentId.

          " } }, - "OriginationIdentity": { - "target": "smithy.api#String", + "Filters": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentFilterList", "traits": { - "smithy.api#documentation": "

          The unique identifier of the origination identity.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          An array of RegistrationAttachmentFilter objects to filter the results.

          " } }, - "IsoCountryCode": { - "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", "traits": { - "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " } }, - "NumberCapabilities": { - "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapabilityList", + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", "traits": { - "smithy.api#documentation": "

          Describes if the origination identity can be used for text messages, voice calls or\n both.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " } } }, "traits": { - "smithy.api#documentation": "

          The metadata for an origination identity associated with a pool.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#OriginationIdentityMetadataList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#OriginationIdentityMetadata" - } - }, - "com.amazonaws.pinpointsmsvoicev2#PhoneNumber": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 20 - }, - "smithy.api#pattern": "^\\+?[1-9][0-9]{1,18}$" + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#PhoneNumberFilter": { + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationAttachmentsResult": { "type": "structure", "members": { - "Name": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberFilterName", + "RegistrationAttachments": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentsInformationList", "traits": { - "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", + "smithy.api#documentation": "

          An array of RegistrationAttachments objects that contain the details for the requested registration attachments.

          ", "smithy.api#required": {} } }, - "Values": { - "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", "traits": { - "smithy.api#documentation": "

          An array values to filter for.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " } } }, "traits": { - "smithy.api#documentation": "

          The information for a phone number that meets a specified criteria.

          " + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#PhoneNumberFilterList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberFilter" + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationFieldDefinitions": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationFieldDefinitionsRequest" }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationFieldDefinitionsResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], "traits": { - "smithy.api#length": { - "max": 20 + "smithy.api#documentation": "

          Retrieves the specified registration type field definitions. You can use DescribeRegistrationFieldDefinitions to view the requirements for creating, filling out, and submitting each registration type.

          ", + "smithy.api#paginated": { + "items": "RegistrationFieldDefinitions" } } }, - "com.amazonaws.pinpointsmsvoicev2#PhoneNumberFilterName": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "status", - "name": "STATUS" - }, - { - "value": "iso-country-code", - "name": "ISO_COUNTRY_CODE" - }, - { - "value": "message-type", - "name": "MESSAGE_TYPE" - }, - { - "value": "number-capability", - "name": "NUMBER_CAPABILITY" - }, - { - "value": "number-type", - "name": "NUMBER_TYPE" - }, - { - "value": "two-way-enabled", - "name": "TWO_WAY_ENABLED" - }, - { - "value": "self-managed-opt-outs-enabled", - "name": "SELF_MANAGED_OPT_OUTS_ENABLED" - }, - { - "value": "opt-out-list-name", - "name": "OPT_OUT_LIST_NAME" - }, - { - "value": "deletion-protection-enabled", - "name": "DELETION_PROTECTION_ENABLED" + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationFieldDefinitionsRequest": { + "type": "structure", + "members": { + "RegistrationType": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationType", + "traits": { + "smithy.api#documentation": "

          The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions\n action.

          ", + "smithy.api#required": {} } - ] + }, + "SectionPath": { + "target": "com.amazonaws.pinpointsmsvoicev2#SectionPath", + "traits": { + "smithy.api#documentation": "

          The path to the section of the registration.

          " + } + }, + "FieldPaths": { + "target": "com.amazonaws.pinpointsmsvoicev2#FieldPathList", + "traits": { + "smithy.api#documentation": "

          An array of paths to the registration form field.

          " + } + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } + }, + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "traits": { + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + } + } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#PhoneNumberIdList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberIdOrArn" + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationFieldDefinitionsResult": { + "type": "structure", + "members": { + "RegistrationType": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationType", + "traits": { + "smithy.api#documentation": "

          The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions\n action.

          ", + "smithy.api#required": {} + } + }, + "RegistrationFieldDefinitions": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationFieldDefinitionList", + "traits": { + "smithy.api#documentation": "

          An array of RegistrationFieldDefinitions objects that contain the details for the requested fields.

          ", + "smithy.api#required": {} + } + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } + } }, "traits": { - "smithy.api#length": { - "max": 5 - } + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#PhoneNumberIdOrArn": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 256 + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationFieldValues": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationFieldValuesRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationFieldValuesResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, - "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Retrieves the specified registration field values.

          ", + "smithy.api#paginated": { + "items": "RegistrationFieldValues" + } } }, - "com.amazonaws.pinpointsmsvoicev2#PhoneNumberInformation": { + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationFieldValuesRequest": { "type": "structure", "members": { - "PhoneNumberArn": { - "target": "smithy.api#String", + "RegistrationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) associated with the phone number.

          ", + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", "smithy.api#required": {} } }, - "PhoneNumberId": { - "target": "smithy.api#String", + "VersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", "traits": { - "smithy.api#documentation": "

          The unique identifier for the phone number.

          " + "smithy.api#documentation": "

          The version number of the registration.

          " } }, - "PhoneNumber": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "SectionPath": { + "target": "com.amazonaws.pinpointsmsvoicev2#SectionPath", "traits": { - "smithy.api#documentation": "

          The phone number in E.164 format.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The path to the section of the registration.

          " } }, - "Status": { - "target": "com.amazonaws.pinpointsmsvoicev2#NumberStatus", + "FieldPaths": { + "target": "com.amazonaws.pinpointsmsvoicev2#FieldPathList", "traits": { - "smithy.api#documentation": "

          The current status of the phone number.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          An array of paths to the registration form field.

          " } }, - "IsoCountryCode": { - "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", "traits": { - "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " } }, - "MessageType": { - "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", "traits": { - "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " } - }, - "NumberCapabilities": { - "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapabilityList", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationFieldValuesResult": { + "type": "structure", + "members": { + "RegistrationArn": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          Describes if the origination identity can be used for text messages, voice calls or\n both.

          ", + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the registration.

          ", "smithy.api#required": {} } }, - "NumberType": { - "target": "com.amazonaws.pinpointsmsvoicev2#NumberType", + "RegistrationId": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The type of phone number.

          ", + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", "smithy.api#required": {} } }, - "MonthlyLeasingPrice": { - "target": "smithy.api#String", + "VersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", "traits": { - "smithy.api#documentation": "

          The price, in US dollars, to lease the phone number.

          ", + "smithy.api#documentation": "

          The current version of the registration.

          ", "smithy.api#required": {} } }, - "TwoWayEnabled": { - "target": "smithy.api#PrimitiveBoolean", + "RegistrationFieldValues": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationFieldValueInformationList", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients using the TwoWayChannelArn.

          ", + "smithy.api#documentation": "

          An array of RegistrationFieldValues objects that contain the values for the requested registration.

          ", "smithy.api#required": {} } }, - "TwoWayChannelArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the two way channel.

          " + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationSectionDefinitions": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationSectionDefinitionsRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationSectionDefinitionsResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, - "SelfManagedOptOutsEnabled": { - "target": "smithy.api#PrimitiveBoolean", + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Retrieves the specified registration section definitions. You can use DescribeRegistrationSectionDefinitions to view the requirements for creating, filling out, and submitting each registration type.

          ", + "smithy.api#paginated": { + "items": "RegistrationSectionDefinitions" + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationSectionDefinitionsRequest": { + "type": "structure", + "members": { + "RegistrationType": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationType", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          When set to false an end recipient sends a message that begins with HELP or STOP to\n one of your dedicated numbers, Amazon Pinpoint automatically replies with a\n customizable message and adds the end recipient to the OptOutList. When set to true\n you're responsible for responding to HELP and STOP requests. You're also responsible for\n tracking and honoring opt-out request. For more information see Self-managed opt-outs\n

          ", + "smithy.api#documentation": "

          The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions\n action.

          ", "smithy.api#required": {} } }, - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", + "SectionPaths": { + "target": "com.amazonaws.pinpointsmsvoicev2#SectionPathList", "traits": { - "smithy.api#documentation": "

          The name of the OptOutList associated with the phone number.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          An array of paths for the registration form section.

          " } }, - "DeletionProtectionEnabled": { - "target": "smithy.api#PrimitiveBoolean", + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          When set to true the phone number can't be deleted.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " } }, - "PoolId": { - "target": "smithy.api#String", + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", "traits": { - "smithy.api#documentation": "

          The unique identifier of the pool associated with the phone number.

          " + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationSectionDefinitionsResult": { + "type": "structure", + "members": { + "RegistrationType": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationType", + "traits": { + "smithy.api#documentation": "

          The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions\n action.

          ", + "smithy.api#required": {} } }, - "CreatedTimestamp": { - "target": "smithy.api#Timestamp", + "RegistrationSectionDefinitions": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationSectionDefinitionList", "traits": { - "smithy.api#documentation": "

          The time when the phone number was created, in UNIX epoch time format.

          ", + "smithy.api#documentation": "

          An array of RegistrationSectionDefinition objects.

          ", "smithy.api#required": {} } + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } } }, "traits": { - "smithy.api#documentation": "

          The information for a phone number in an Amazon Web Services account.

          " + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#PhoneNumberInformationList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberInformation" - } - }, - "com.amazonaws.pinpointsmsvoicev2#PhoneOrPoolIdOrArn": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 256 - }, - "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" - } - }, - "com.amazonaws.pinpointsmsvoicev2#PhoneOrSenderIdOrArn": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 256 - }, - "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" - } - }, - "com.amazonaws.pinpointsmsvoicev2#PinpointSMSVoiceV2": { - "type": "service", - "version": "2022-03-31", - "operations": [ + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationTypeDefinitions": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationTypeDefinitionsRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationTypeDefinitionsResult" + }, + "errors": [ { - "target": "com.amazonaws.pinpointsmsvoicev2#AssociateOriginationIdentity" + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#CreateConfigurationSet" + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#CreateEventDestination" + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#CreateOptOutList" + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Retrieves the specified registration type definitions. You can use DescribeRegistrationTypeDefinitions to view the requirements for creating, filling out, and submitting each registration type.

          ", + "smithy.api#paginated": { + "items": "RegistrationTypeDefinitions" + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationTypeDefinitionsRequest": { + "type": "structure", + "members": { + "RegistrationTypes": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationTypeList", + "traits": { + "smithy.api#documentation": "

          The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions\n action.

          " + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#CreatePool" + "Filters": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationTypeFilterList", + "traits": { + "smithy.api#documentation": "

          An array of RegistrationFilter objects to filter the results.

          " + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteConfigurationSet" + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultMessageType" + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "traits": { + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationTypeDefinitionsResult": { + "type": "structure", + "members": { + "RegistrationTypeDefinitions": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationTypeDefinitionList", + "traits": { + "smithy.api#documentation": "

          The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions\n action.

          ", + "smithy.api#required": {} + } }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationVersions": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationVersionsRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationVersionsResult" + }, + "errors": [ { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultSenderId" + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteEventDestination" + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteKeyword" + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptedOutNumber" + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutList" + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Retrieves the specified registration version.

          ", + "smithy.api#paginated": { + "items": "RegistrationVersions" + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationVersionsRequest": { + "type": "structure", + "members": { + "RegistrationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#DeletePool" + "VersionNumbers": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumberList", + "traits": { + "smithy.api#documentation": "

          An array of registration version numbers.

          " + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteTextMessageSpendLimitOverride" + "Filters": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionFilterList", + "traits": { + "smithy.api#documentation": "

          An array of RegistrationVersionFilter objects to filter the results.

          " + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#DeleteVoiceMessageSpendLimitOverride" + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeAccountAttributes" + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "traits": { + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationVersionsResult": { + "type": "structure", + "members": { + "RegistrationArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the registration.

          ", + "smithy.api#required": {} + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeAccountLimits" + "RegistrationId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeConfigurationSets" + "RegistrationVersions": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionInformationList", + "traits": { + "smithy.api#documentation": "

          An array of RegistrationVersions objects.

          ", + "smithy.api#required": {} + } }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrations": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationsRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationsResult" + }, + "errors": [ { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeKeywords" + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeOptedOutNumbers" + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeOptOutLists" + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribePhoneNumbers" + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribePools" + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Retrieves the specified registrations.

          ", + "smithy.api#paginated": { + "items": "Registrations" + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationsRequest": { + "type": "structure", + "members": { + "RegistrationIds": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdList", + "traits": { + "smithy.api#documentation": "

          An array of unique identifiers for each registration.

          " + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeSenderIds" + "Filters": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationFilterList", + "traits": { + "smithy.api#documentation": "

          An array of RegistrationFilter objects to filter the results.

          " + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#DescribeSpendLimits" + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } + }, + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "traits": { + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationsResult": { + "type": "structure", + "members": { + "Registrations": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationInformationList", + "traits": { + "smithy.api#documentation": "

          An array of RegistrationInformation objects.

          ", + "smithy.api#required": {} + } }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeSenderIds": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeSenderIdsRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeSenderIdsResult" + }, + "errors": [ { - "target": "com.amazonaws.pinpointsmsvoicev2#DisassociateOriginationIdentity" + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#ListPoolOriginationIdentities" + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#ListTagsForResource" + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#PutKeyword" + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#PutOptedOutNumber" + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Describes the specified SenderIds or all SenderIds associated with your Amazon Web Services account.

          \n

          If you specify SenderIds, the output includes information for only the specified\n SenderIds. If you specify filters, the output includes information for only those\n SenderIds that meet the filter criteria. If you don't specify SenderIds or filters, the\n output includes information for all SenderIds.

          \n

          f you specify a sender ID that isn't valid, an error is returned.

          ", + "smithy.api#paginated": { + "items": "SenderIds" + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeSenderIdsRequest": { + "type": "structure", + "members": { + "SenderIds": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdList", + "traits": { + "smithy.api#documentation": "

          An array of SenderIdAndCountry objects to search for.

          " + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ReleasePhoneNumber" + "Filters": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdFilterList", + "traits": { + "smithy.api#documentation": "

          An array of SenderIdFilter objects to filter the results.

          " + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#RequestPhoneNumber" + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#SendTextMessage" + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "traits": { + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeSenderIdsResult": { + "type": "structure", + "members": { + "SenderIds": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdInformationList", + "traits": { + "smithy.api#documentation": "

          An array of SernderIdInformation objects that contain the details for the requested\n SenderIds.

          " + } }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeSpendLimits": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeSpendLimitsRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeSpendLimitsResult" + }, + "errors": [ { - "target": "com.amazonaws.pinpointsmsvoicev2#SendVoiceMessage" + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#SetDefaultMessageType" + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#SetDefaultSenderId" + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#SetTextMessageSpendLimitOverride" + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Describes the current Amazon Pinpoint monthly spend limits for sending voice and\n text messages.

          \n

          When you establish an Amazon Web Services account, the account has initial monthly\n spend limit in a given Region. For more information on increasing your monthly spend\n limit, see \n Requesting increases to your monthly SMS spending quota for Amazon Pinpoint\n in the Amazon Pinpoint User Guide.

          ", + "smithy.api#paginated": { + "items": "SpendLimits" + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeSpendLimitsRequest": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#SetVoiceMessageSpendLimitOverride" + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "traits": { + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeSpendLimitsResult": { + "type": "structure", + "members": { + "SpendLimits": { + "target": "com.amazonaws.pinpointsmsvoicev2#SpendLimitList", + "traits": { + "smithy.api#documentation": "

          An array of SpendLimit objects that contain the details for the requested spend\n limits.

          " + } }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeVerifiedDestinationNumbers": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeVerifiedDestinationNumbersRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeVerifiedDestinationNumbersResult" + }, + "errors": [ { - "target": "com.amazonaws.pinpointsmsvoicev2#TagResource" + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#UntagResource" + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#UpdateEventDestination" + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#UpdatePhoneNumber" + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, { - "target": "com.amazonaws.pinpointsmsvoicev2#UpdatePool" + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" } ], "traits": { - "aws.api#service": { - "sdkId": "Pinpoint SMS Voice V2", - "endpointPrefix": "sms-voice", - "arnNamespace": "sms-voice" + "smithy.api#documentation": "

          Retrieves the specified verified destiona numbers.

          ", + "smithy.api#paginated": { + "items": "VerifiedDestinationNumbers" + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeVerifiedDestinationNumbersRequest": { + "type": "structure", + "members": { + "VerifiedDestinationNumberIds": { + "target": "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberIdList", + "traits": { + "smithy.api#documentation": "

          An array of VerifiedDestinationNumberid to retreive.

          " + } }, - "aws.auth#sigv4": { - "name": "sms-voice" + "DestinationPhoneNumbers": { + "target": "com.amazonaws.pinpointsmsvoicev2#DestinationPhoneNumberList", + "traits": { + "smithy.api#documentation": "

          An array of verified destination phone number, in E.164 format.

          " + } }, - "aws.protocols#awsJson1_0": {}, - "smithy.api#documentation": "

          Welcome to the Amazon Pinpoint SMS and Voice, version 2 API Reference.\n This guide provides information about Amazon Pinpoint SMS and Voice, version 2 API\n resources, including supported HTTP methods, parameters, and schemas.

          \n

          Amazon Pinpoint is an Amazon Web Services service that you can use to engage with\n your recipients across multiple messaging channels. The Amazon Pinpoint SMS and\n Voice, version 2 API provides programmatic access to options that are unique to the SMS\n and voice channels and supplements the resources provided by the Amazon Pinpoint\n API.

          \n

          If you're new to Amazon Pinpoint, it's also helpful to review the \n Amazon Pinpoint Developer Guide. The Amazon Pinpoint\n Developer Guide provides tutorials, code samples, and procedures that\n demonstrate how to use Amazon Pinpoint features programmatically and how to integrate\n Amazon Pinpoint functionality into mobile apps and other types of applications.\n The guide also provides key information, such as Amazon Pinpoint integration with\n other Amazon Web Services services, and the quotas that apply to use of the\n service.

          ", - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" + "Filters": { + "target": "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberFilterList", + "traits": { + "smithy.api#documentation": "

          An array of VerifiedDestinationNumberFilter objects to filter the results.

          " + } }, - "smithy.api#title": "Amazon Pinpoint SMS Voice V2", - "smithy.rules#endpointRuleSet": { - "version": "1.0", - "parameters": { - "Region": { - "builtIn": "AWS::Region", - "required": false, - "documentation": "The AWS region used to dispatch the request.", - "type": "String" - }, - "UseDualStack": { - "builtIn": "AWS::UseDualStack", - "required": true, - "default": false, - "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - "type": "Boolean" - }, - "UseFIPS": { - "builtIn": "AWS::UseFIPS", - "required": true, - "default": false, - "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - "type": "Boolean" - }, - "Endpoint": { - "builtIn": "SDK::Endpoint", - "required": false, - "documentation": "Override the endpoint used to send this request", - "type": "String" - } + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } + }, + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "traits": { + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DescribeVerifiedDestinationNumbersResult": { + "type": "structure", + "members": { + "VerifiedDestinationNumbers": { + "target": "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberInformationList", + "traits": { + "smithy.api#documentation": "

          An array of VerifiedDestinationNumberInformation objects

          ", + "smithy.api#required": {} + } + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DestinationCountryParameterKey": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "IN_TEMPLATE_ID", + "name": "IN_TEMPLATE_ID" }, - "rules": [ - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Endpoint" - } - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" + { + "value": "IN_ENTITY_ID", + "name": "IN_ENTITY_ID" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#DestinationCountryParameterValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^\\S+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#DestinationCountryParameters": { + "type": "map", + "key": { + "target": "com.amazonaws.pinpointsmsvoicev2#DestinationCountryParameterKey" + }, + "value": { + "target": "com.amazonaws.pinpointsmsvoicev2#DestinationCountryParameterValue" + }, + "traits": { + "smithy.api#length": { + "max": 10 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#DestinationPhoneNumberList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber" + }, + "traits": { + "smithy.api#length": { + "max": 5 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#DisassociateOriginationIdentity": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DisassociateOriginationIdentityRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DisassociateOriginationIdentityResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Removes the specified origination identity from an existing pool.

          \n

          If the origination identity isn't associated with the specified pool, an error is\n returned.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#DisassociateOriginationIdentityRequest": { + "type": "structure", + "members": { + "PoolId": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolIdOrArn", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the pool to disassociate with the origination identity. This\n value can be either the PoolId or PoolArn.

          ", + "smithy.api#required": {} + } + }, + "OriginationIdentity": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneOrSenderIdOrArn", + "traits": { + "smithy.api#documentation": "

          The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or\n SenderIdArn. You can use DescribePhoneNumbers find the values for\n PhoneNumberId and PhoneNumberArn, or use DescribeSenderIds to get the\n values for SenderId and SenderIdArn.

          ", + "smithy.api#required": {} + } + }, + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "traits": { + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          ", + "smithy.api#required": {} + } + }, + "ClientToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#ClientToken", + "traits": { + "smithy.api#documentation": "

          Unique, case-sensitive identifier you provide to ensure the idempotency of the\n request. If you don't specify a client token, a randomly generated token is used for the\n request to ensure idempotency.

          ", + "smithy.api#idempotencyToken": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DisassociateOriginationIdentityResult": { + "type": "structure", + "members": { + "PoolArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the pool.

          " + } + }, + "PoolId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The PoolId of the pool no longer associated with the origination identity.

          " + } + }, + "OriginationIdentityArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The PhoneNumberArn or SenderIdArn of the origination identity.

          " + } + }, + "OriginationIdentity": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The PhoneNumberId or SenderId of the origination identity.

          " + } + }, + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "traits": { + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or\n region.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersion": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersionRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersionResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Discard the current version of the registration.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersionRequest": { + "type": "structure", + "members": { + "RegistrationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersionResult": { + "type": "structure", + "members": { + "RegistrationArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the registration.

          ", + "smithy.api#required": {} + } + }, + "RegistrationId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} + } + }, + "VersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", + "traits": { + "smithy.api#documentation": "

          The version number of the registration.

          ", + "smithy.api#required": {} + } + }, + "RegistrationVersionStatus": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionStatus", + "traits": { + "smithy.api#documentation": "

          The status of the registration version.

          \n
            \n
          • \n

            \n DRAFT: The initial status of a registration version after it’s created.

            \n
          • \n
          • \n

            \n SUBMITTED: Your registration has been submitted.

            \n
          • \n
          • \n

            \n REVIEWING: Your registration has been accepted and is being reviewed.

            \n
          • \n
          • \n

            \n APPROVED: Your registration has been approved.

            \n
          • \n
          • \n

            \n DISCARDED: You've abandon this version of their registration to start over with a new version.

            \n
          • \n
          • \n

            \n DENIED: You must fix your registration and resubmit it.

            \n
          • \n
          • \n

            \n REVOKED: Your previously approved registration has been revoked.

            \n
          • \n
          • \n

            \n ARCHIVED: Your previously approved registration version moves into this status when a more recently submitted version is approved.

            \n
          • \n
          ", + "smithy.api#required": {} + } + }, + "RegistrationVersionStatusHistory": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionStatusHistory", + "traits": { + "smithy.api#documentation": "

          The RegistrationVersionStatusHistory object contains the time stamps for when the reservations status changes.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#EventDestination": { + "type": "structure", + "members": { + "EventDestinationName": { + "target": "com.amazonaws.pinpointsmsvoicev2#EventDestinationName", + "traits": { + "smithy.api#documentation": "

          The name of the EventDestination.

          ", + "smithy.api#required": {} + } + }, + "Enabled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

          When set to true events will be logged.

          ", + "smithy.api#required": {} + } + }, + "MatchingEventTypes": { + "target": "com.amazonaws.pinpointsmsvoicev2#EventTypeList", + "traits": { + "smithy.api#documentation": "

          An array of event types that determine which events to log.

          \n \n

          The TEXT_SENT event type is not supported.

          \n
          ", + "smithy.api#required": {} + } + }, + "CloudWatchLogsDestination": { + "target": "com.amazonaws.pinpointsmsvoicev2#CloudWatchLogsDestination", + "traits": { + "smithy.api#documentation": "

          An object that contains information about an event destination that sends logging\n events to Amazon CloudWatch logs.

          " + } + }, + "KinesisFirehoseDestination": { + "target": "com.amazonaws.pinpointsmsvoicev2#KinesisFirehoseDestination", + "traits": { + "smithy.api#documentation": "

          An object that contains information about an event destination for logging to Amazon\n Kinesis Data Firehose.

          " + } + }, + "SnsDestination": { + "target": "com.amazonaws.pinpointsmsvoicev2#SnsDestination", + "traits": { + "smithy.api#documentation": "

          An object that contains information about an event destination that sends logging\n events to Amazon SNS.

          " + } + } + }, + "traits": { + "smithy.api#documentation": "

          Contains information about an event destination.

          \n

          Event destinations are associated with configuration sets, which enable you to publish\n message sending events to CloudWatch, Kinesis Data Firehose,or Amazon SNS.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#EventDestinationList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#EventDestination" + } + }, + "com.amazonaws.pinpointsmsvoicev2#EventDestinationName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[A-Za-z0-9_-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#EventType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ALL", + "name": "ALL" + }, + { + "value": "TEXT_ALL", + "name": "TEXT_ALL" + }, + { + "value": "TEXT_SENT", + "name": "TEXT_SENT" + }, + { + "value": "TEXT_PENDING", + "name": "TEXT_PENDING" + }, + { + "value": "TEXT_QUEUED", + "name": "TEXT_QUEUED" + }, + { + "value": "TEXT_SUCCESSFUL", + "name": "TEXT_SUCCESSFUL" + }, + { + "value": "TEXT_DELIVERED", + "name": "TEXT_DELIVERED" + }, + { + "value": "TEXT_INVALID", + "name": "TEXT_INVALID" + }, + { + "value": "TEXT_INVALID_MESSAGE", + "name": "TEXT_INVALID_MESSAGE" + }, + { + "value": "TEXT_UNREACHABLE", + "name": "TEXT_UNREACHABLE" + }, + { + "value": "TEXT_CARRIER_UNREACHABLE", + "name": "TEXT_CARRIER_UNREACHABLE" + }, + { + "value": "TEXT_BLOCKED", + "name": "TEXT_BLOCKED" + }, + { + "value": "TEXT_CARRIER_BLOCKED", + "name": "TEXT_CARRIER_BLOCKED" + }, + { + "value": "TEXT_SPAM", + "name": "TEXT_SPAM" + }, + { + "value": "TEXT_UNKNOWN", + "name": "TEXT_UNKNOWN" + }, + { + "value": "TEXT_TTL_EXPIRED", + "name": "TEXT_TTL_EXPIRED" + }, + { + "value": "VOICE_ALL", + "name": "VOICE_ALL" + }, + { + "value": "VOICE_INITIATED", + "name": "VOICE_INITIATED" + }, + { + "value": "VOICE_RINGING", + "name": "VOICE_RINGING" + }, + { + "value": "VOICE_ANSWERED", + "name": "VOICE_ANSWERED" + }, + { + "value": "VOICE_COMPLETED", + "name": "VOICE_COMPLETED" + }, + { + "value": "VOICE_BUSY", + "name": "VOICE_BUSY" + }, + { + "value": "VOICE_NO_ANSWER", + "name": "VOICE_NO_ANSWER" + }, + { + "value": "VOICE_FAILED", + "name": "VOICE_FAILED" + }, + { + "value": "VOICE_TTL_EXPIRED", + "name": "VOICE_TTL_EXPIRED" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#EventTypeList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#EventType" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 25 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#FieldPath": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + }, + "smithy.api#pattern": "^[A-Za-z0-9_\\.]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#FieldPathList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#FieldPath" + }, + "traits": { + "smithy.api#length": { + "max": 5 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#FieldRequirement": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "REQUIRED", + "name": "REQUIRED" + }, + { + "value": "CONDITIONAL", + "name": "CONDITIONAL" + }, + { + "value": "OPTIONAL", + "name": "OPTIONAL" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#FieldType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "SELECT", + "name": "SELECT" + }, + { + "value": "TEXT", + "name": "TEXT" + }, + { + "value": "ATTACHMENT", + "name": "ATTACHMENT" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#FilterValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + }, + "smithy.api#pattern": "^[\\.:A-Za-z0-9_-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#FilterValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#FilterValue" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 20 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#IamRoleArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 20, + "max": 2048 + }, + "smithy.api#pattern": "^arn:\\S+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#InternalServerException": { + "type": "structure", + "members": { + "Message": { + "target": "smithy.api#String" + }, + "RequestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier of the request.

          " + } + } + }, + "traits": { + "smithy.api#documentation": "

          The API encountered an unexpected error and couldn't complete the request. You might\n be able to successfully issue the request again in the future.

          ", + "smithy.api#error": "server", + "smithy.api#retryable": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 2, + "max": 2 + }, + "smithy.api#pattern": "^[A-Z]{2}$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#Keyword": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 30 + }, + "smithy.api#pattern": "^[ \\S]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#KeywordAction": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "AUTOMATIC_RESPONSE", + "name": "AUTOMATIC_RESPONSE" + }, + { + "value": "OPT_OUT", + "name": "OPT_OUT" + }, + { + "value": "OPT_IN", + "name": "OPT_IN" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#KeywordFilter": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.pinpointsmsvoicev2#KeywordFilterName", + "traits": { + "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", + "smithy.api#required": {} + } + }, + "Values": { + "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "traits": { + "smithy.api#documentation": "

          An array values to filter for.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          The information for keywords that meet a specified criteria.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#KeywordFilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#KeywordFilter" + }, + "traits": { + "smithy.api#length": { + "max": 20 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#KeywordFilterName": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "keyword-action", + "name": "KEYWORD_ACTION" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#KeywordInformation": { + "type": "structure", + "members": { + "Keyword": { + "target": "com.amazonaws.pinpointsmsvoicev2#Keyword", + "traits": { + "smithy.api#documentation": "

          The keyword as a string.

          ", + "smithy.api#required": {} + } + }, + "KeywordMessage": { + "target": "com.amazonaws.pinpointsmsvoicev2#KeywordMessage", + "traits": { + "smithy.api#documentation": "

          A custom message that can be used with the keyword.

          ", + "smithy.api#required": {} + } + }, + "KeywordAction": { + "target": "com.amazonaws.pinpointsmsvoicev2#KeywordAction", + "traits": { + "smithy.api#documentation": "

          The action to perform for the keyword.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          The information for all keywords in a pool.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#KeywordInformationList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#KeywordInformation" + } + }, + "com.amazonaws.pinpointsmsvoicev2#KeywordList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#Keyword" + }, + "traits": { + "smithy.api#length": { + "max": 5 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#KeywordMessage": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1600 + }, + "smithy.api#pattern": "^(?!\\s*$)[\\s\\S]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#KinesisFirehoseDestination": { + "type": "structure", + "members": { + "IamRoleArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#IamRoleArn", + "traits": { + "smithy.api#documentation": "

          The ARN of an Amazon Identity and Access Management (IAM) role that is able to write\n event data to an Amazon Firehose destination.

          ", + "smithy.api#required": {} + } + }, + "DeliveryStreamArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#DeliveryStreamArn", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the delivery stream.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          Contains the delivery stream Amazon Resource Name (ARN), and the ARN of the Identity and Access Management (IAM) role associated with an Kinesis Data Firehose event\n destination.

          \n

          Event destinations, such as Kinesis Data Firehose, are associated with configuration\n sets, which enable you to publish message sending events.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#LanguageCode": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "DE_DE", + "name": "DE_DE" + }, + { + "value": "EN_GB", + "name": "EN_GB" + }, + { + "value": "EN_US", + "name": "EN_US" + }, + { + "value": "ES_419", + "name": "ES_419" + }, + { + "value": "ES_ES", + "name": "ES_ES" + }, + { + "value": "FR_CA", + "name": "FR_CA" + }, + { + "value": "FR_FR", + "name": "FR_FR" + }, + { + "value": "IT_IT", + "name": "IT_IT" + }, + { + "value": "JA_JP", + "name": "JA_JP" + }, + { + "value": "KO_KR", + "name": "KO_KR" + }, + { + "value": "PT_BR", + "name": "PT_BR" + }, + { + "value": "ZH_CN", + "name": "ZH_CN" + }, + { + "value": "ZH_TW", + "name": "ZH_TW" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#ListPoolOriginationIdentities": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#ListPoolOriginationIdentitiesRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#ListPoolOriginationIdentitiesResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Lists all associated origination identities in your pool.

          \n

          If you specify filters, the output includes information for only those origination\n identities that meet the filter criteria.

          ", + "smithy.api#paginated": { + "items": "OriginationIdentities" + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#ListPoolOriginationIdentitiesRequest": { + "type": "structure", + "members": { + "PoolId": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolIdOrArn", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the pool. This value can be either the PoolId or\n PoolArn.

          ", + "smithy.api#required": {} + } + }, + "Filters": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolOriginationIdentitiesFilterList", + "traits": { + "smithy.api#documentation": "

          An array of PoolOriginationIdentitiesFilter objects to filter the results..

          " + } + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } + }, + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "traits": { + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#ListPoolOriginationIdentitiesResult": { + "type": "structure", + "members": { + "PoolArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the pool.

          " + } + }, + "PoolId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique PoolId of the pool.

          " + } + }, + "OriginationIdentities": { + "target": "com.amazonaws.pinpointsmsvoicev2#OriginationIdentityMetadataList", + "traits": { + "smithy.api#documentation": "

          An array of any OriginationIdentityMetadata objects.

          " + } + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. If this field is empty\n then there are no more results.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#ListRegistrationAssociations": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#ListRegistrationAssociationsRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#ListRegistrationAssociationsResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Retreive all of the origination identies that are associated with a registration.

          ", + "smithy.api#paginated": { + "items": "RegistrationAssociations" + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#ListRegistrationAssociationsRequest": { + "type": "structure", + "members": { + "RegistrationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} + } + }, + "Filters": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationAssociationFilterList", + "traits": { + "smithy.api#documentation": "

          An array of RegistrationAssociationFilter to apply to the results that are returned.

          " + } + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } + }, + "MaxResults": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxResults", + "traits": { + "smithy.api#documentation": "

          The maximum number of results to return per each request.

          " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#ListRegistrationAssociationsResult": { + "type": "structure", + "members": { + "RegistrationArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the registration.

          ", + "smithy.api#required": {} + } + }, + "RegistrationId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} + } + }, + "RegistrationType": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationType", + "traits": { + "smithy.api#documentation": "

          The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions\n action.

          ", + "smithy.api#required": {} + } + }, + "RegistrationAssociations": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationAssociationMetadataList", + "traits": { + "smithy.api#documentation": "

          An array of RegistrationAssociationMetadata objects.

          ", + "smithy.api#required": {} + } + }, + "NextToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#NextToken", + "traits": { + "smithy.api#documentation": "

          The token to be used for the next set of paginated results. You don't need to supply a\n value for this field in the initial request.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#ListTagsForResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#ListTagsForResourceRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#ListTagsForResourceResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          List all tags associated with a resource.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#ListTagsForResourceRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#AmazonResourceName", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the resource to query for.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#ListTagsForResourceResult": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#AmazonResourceName", + "traits": { + "smithy.api#documentation": "

          The ARN of the resource.

          " + } + }, + "Tags": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagList", + "traits": { + "smithy.api#documentation": "

          An array of key and value pair tags that are associated with the resource.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#LogGroupArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 20, + "max": 2048 + }, + "smithy.api#pattern": "^arn:\\S+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#MaxPrice": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 2, + "max": 8 + }, + "smithy.api#pattern": "^[0-9]{0,2}\\.[0-9]{1,5}$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#MaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 100 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#MessageType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "TRANSACTIONAL", + "name": "TRANSACTIONAL" + }, + { + "value": "PROMOTIONAL", + "name": "PROMOTIONAL" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#MessageTypeList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageType" + }, + "traits": { + "smithy.api#length": { + "max": 2 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit": { + "type": "long", + "traits": { + "smithy.api#range": { + "min": 0, + "max": 1000000000 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#NextToken": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1024 + }, + "smithy.api#pattern": "^.+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#NonEmptyTagList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#Tag" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 200 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#NumberCapability": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "SMS", + "name": "SMS" + }, + { + "value": "VOICE", + "name": "VOICE" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#NumberCapabilityList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapability" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#NumberStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "PENDING", + "name": "PENDING" + }, + { + "value": "ACTIVE", + "name": "ACTIVE" + }, + { + "value": "ASSOCIATING", + "name": "ASSOCIATING" + }, + { + "value": "DISASSOCIATING", + "name": "DISASSOCIATING" + }, + { + "value": "DELETED", + "name": "DELETED" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#NumberType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "SHORT_CODE", + "name": "SHORT_CODE" + }, + { + "value": "LONG_CODE", + "name": "LONG_CODE" + }, + { + "value": "TOLL_FREE", + "name": "TOLL_FREE" + }, + { + "value": "TEN_DLC", + "name": "TEN_DLC" + }, + { + "value": "SIMULATOR", + "name": "SIMULATOR" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#OptOutListInformation": { + "type": "structure", + "members": { + "OptOutListArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the OptOutList.

          ", + "smithy.api#required": {} + } + }, + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", + "traits": { + "smithy.api#documentation": "

          The name of the OptOutList.

          ", + "smithy.api#required": {} + } + }, + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the OutOutList was created, in UNIX epoch time format.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          The information for all OptOutList in an Amazon Web Services account.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#OptOutListInformationList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListInformation" + } + }, + "com.amazonaws.pinpointsmsvoicev2#OptOutListName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[A-Za-z0-9_-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#OptOutListNameList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn" + }, + "traits": { + "smithy.api#length": { + "max": 5 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#OptedOutFilter": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptedOutFilterName", + "traits": { + "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", + "smithy.api#required": {} + } + }, + "Values": { + "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "traits": { + "smithy.api#documentation": "

          An array of values to filter for.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          The information for opted out numbers that meet a specified criteria.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#OptedOutFilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptedOutFilter" + }, + "traits": { + "smithy.api#length": { + "max": 20 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#OptedOutFilterName": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "end-user-opted-out", + "name": "END_USER_OPTED_OUT" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#OptedOutNumberInformation": { + "type": "structure", + "members": { + "OptedOutNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "traits": { + "smithy.api#documentation": "

          The phone number that is opted out.

          ", + "smithy.api#required": {} + } + }, + "OptedOutTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time that the op tout occurred, in UNIX epoch time format.

          ", + "smithy.api#required": {} + } + }, + "EndUserOptedOut": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          This is set to true if it was the end recipient that opted out.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          The information for an opted out number in an Amazon Web Services account.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#OptedOutNumberInformationList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptedOutNumberInformation" + } + }, + "com.amazonaws.pinpointsmsvoicev2#OptedOutNumberList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber" + }, + "traits": { + "smithy.api#length": { + "max": 5 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#OriginationIdentityMetadata": { + "type": "structure", + "members": { + "OriginationIdentityArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) associated with the origination identity.

          ", + "smithy.api#required": {} + } + }, + "OriginationIdentity": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier of the origination identity.

          ", + "smithy.api#required": {} + } + }, + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "traits": { + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          ", + "smithy.api#required": {} + } + }, + "NumberCapabilities": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapabilityList", + "traits": { + "smithy.api#documentation": "

          Describes if the origination identity can be used for text messages, voice calls or\n both.

          ", + "smithy.api#required": {} + } + }, + "PhoneNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "traits": { + "smithy.api#documentation": "

          The phone number in E.164 format.

          " + } + } + }, + "traits": { + "smithy.api#documentation": "

          The metadata for an origination identity associated with a pool.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#OriginationIdentityMetadataList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#OriginationIdentityMetadata" + } + }, + "com.amazonaws.pinpointsmsvoicev2#PhoneNumber": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 20 + }, + "smithy.api#pattern": "^\\+?[1-9][0-9]{1,18}$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#PhoneNumberFilter": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberFilterName", + "traits": { + "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", + "smithy.api#required": {} + } + }, + "Values": { + "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "traits": { + "smithy.api#documentation": "

          An array values to filter for.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          The information for a phone number that meets a specified criteria.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#PhoneNumberFilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberFilter" + }, + "traits": { + "smithy.api#length": { + "max": 20 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#PhoneNumberFilterName": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "status", + "name": "STATUS" + }, + { + "value": "iso-country-code", + "name": "ISO_COUNTRY_CODE" + }, + { + "value": "message-type", + "name": "MESSAGE_TYPE" + }, + { + "value": "number-capability", + "name": "NUMBER_CAPABILITY" + }, + { + "value": "number-type", + "name": "NUMBER_TYPE" + }, + { + "value": "two-way-enabled", + "name": "TWO_WAY_ENABLED" + }, + { + "value": "self-managed-opt-outs-enabled", + "name": "SELF_MANAGED_OPT_OUTS_ENABLED" + }, + { + "value": "opt-out-list-name", + "name": "OPT_OUT_LIST_NAME" + }, + { + "value": "deletion-protection-enabled", + "name": "DELETION_PROTECTION_ENABLED" + }, + { + "value": "two-way-channel-arn", + "name": "TWO_WAY_CHANNEL_ARN" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#PhoneNumberIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberIdOrArn" + }, + "traits": { + "smithy.api#length": { + "max": 5 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#PhoneNumberIdOrArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#PhoneNumberInformation": { + "type": "structure", + "members": { + "PhoneNumberArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) associated with the phone number.

          ", + "smithy.api#required": {} + } + }, + "PhoneNumberId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the phone number.

          " + } + }, + "PhoneNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "traits": { + "smithy.api#documentation": "

          The phone number in E.164 format.

          ", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberStatus", + "traits": { + "smithy.api#documentation": "

          The current status of the phone number.

          ", + "smithy.api#required": {} + } + }, + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "traits": { + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          ", + "smithy.api#required": {} + } + }, + "MessageType": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", + "traits": { + "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          ", + "smithy.api#required": {} + } + }, + "NumberCapabilities": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapabilityList", + "traits": { + "smithy.api#documentation": "

          Describes if the origination identity can be used for text messages, voice calls or\n both.

          ", + "smithy.api#required": {} + } + }, + "NumberType": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberType", + "traits": { + "smithy.api#documentation": "

          The type of phone number.

          ", + "smithy.api#required": {} + } + }, + "MonthlyLeasingPrice": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The price, in US dollars, to lease the phone number.

          ", + "smithy.api#required": {} + } + }, + "TwoWayEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients using the TwoWayChannelArn.

          ", + "smithy.api#required": {} + } + }, + "TwoWayChannelArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the two way channel.

          " + } + }, + "TwoWayChannelRole": { + "target": "com.amazonaws.pinpointsmsvoicev2#IamRoleArn", + "traits": { + "smithy.api#documentation": "

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

          " + } + }, + "SelfManagedOptOutsEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          When set to false an end recipient sends a message that begins with HELP or STOP to\n one of your dedicated numbers, Amazon Pinpoint automatically replies with a\n customizable message and adds the end recipient to the OptOutList. When set to true\n you're responsible for responding to HELP and STOP requests. You're also responsible for\n tracking and honoring opt-out request. For more information see Self-managed opt-outs\n

          ", + "smithy.api#required": {} + } + }, + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", + "traits": { + "smithy.api#documentation": "

          The name of the OptOutList associated with the phone number.

          ", + "smithy.api#required": {} + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          When set to true the phone number can't be deleted.

          ", + "smithy.api#required": {} + } + }, + "PoolId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier of the pool associated with the phone number.

          " + } + }, + "RegistrationId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration.

          " + } + }, + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the phone number was created, in UNIX epoch time format.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          The information for a phone number, in E.164 format, in an Amazon Web Services account.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#PhoneNumberInformationList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberInformation" + } + }, + "com.amazonaws.pinpointsmsvoicev2#PhoneOrPoolIdOrArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#PhoneOrSenderIdOrArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#PinpointSMSVoiceV2": { + "type": "service", + "version": "2022-03-31", + "operations": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AssociateOriginationIdentity" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#CreateConfigurationSet" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#CreateEventDestination" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#CreateOptOutList" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#CreatePool" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#CreateRegistration" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationAssociation" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationAttachment" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#CreateRegistrationVersion" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#CreateVerifiedDestinationNumber" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteConfigurationSet" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultMessageType" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteDefaultSenderId" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteEventDestination" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteKeyword" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptedOutNumber" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteOptOutList" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeletePool" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteRegistration" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationAttachment" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteRegistrationFieldValue" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteTextMessageSpendLimitOverride" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteVerifiedDestinationNumber" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DeleteVoiceMessageSpendLimitOverride" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeAccountAttributes" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeAccountLimits" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeConfigurationSets" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeKeywords" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeOptedOutNumbers" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeOptOutLists" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribePhoneNumbers" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribePools" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationAttachments" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationFieldDefinitions" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationFieldValues" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrations" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationSectionDefinitions" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationTypeDefinitions" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeRegistrationVersions" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeSenderIds" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeSpendLimits" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DescribeVerifiedDestinationNumbers" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DisassociateOriginationIdentity" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#DiscardRegistrationVersion" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ListPoolOriginationIdentities" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ListRegistrationAssociations" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ListTagsForResource" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#PutKeyword" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#PutOptedOutNumber" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#PutRegistrationFieldValue" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ReleasePhoneNumber" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ReleaseSenderId" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#RequestPhoneNumber" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#RequestSenderId" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#SendDestinationNumberVerificationCode" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#SendTextMessage" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#SendVoiceMessage" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#SetDefaultMessageType" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#SetDefaultSenderId" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#SetTextMessageSpendLimitOverride" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#SetVoiceMessageSpendLimitOverride" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#SubmitRegistrationVersion" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#TagResource" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#UntagResource" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#UpdateEventDestination" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#UpdatePhoneNumber" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#UpdatePool" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#UpdateSenderId" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#VerifyDestinationNumber" + } + ], + "traits": { + "aws.api#service": { + "sdkId": "Pinpoint SMS Voice V2", + "endpointPrefix": "sms-voice", + "arnNamespace": "sms-voice" + }, + "aws.auth#sigv4": { + "name": "sms-voice" + }, + "aws.protocols#awsJson1_0": {}, + "smithy.api#documentation": "

          Welcome to the Amazon Pinpoint SMS and Voice, version 2 API Reference.\n This guide provides information about Amazon Pinpoint SMS and Voice, version 2 API\n resources, including supported HTTP methods, parameters, and schemas.

          \n

          Amazon Pinpoint is an Amazon Web Services service that you can use to engage with\n your recipients across multiple messaging channels. The Amazon Pinpoint SMS and\n Voice, version 2 API provides programmatic access to options that are unique to the SMS\n and voice channels and supplements the resources provided by the Amazon Pinpoint\n API.

          \n

          If you're new to Amazon Pinpoint, it's also helpful to review the \n Amazon Pinpoint Developer Guide. The Amazon Pinpoint\n Developer Guide provides tutorials, code samples, and procedures that\n demonstrate how to use Amazon Pinpoint features programmatically and how to integrate\n Amazon Pinpoint functionality into mobile apps and other types of applications.\n The guide also provides key information, such as Amazon Pinpoint integration with\n other Amazon Web Services services, and the quotas that apply to use of the\n service.

          \n

          \n Regional availability\n

          \n

          The Amazon Pinpoint SMS and Voice, version 2 API Reference is\n available in several Amazon Web Services Regions and it provides an endpoint for each of\n these Regions. For a list of all the Regions and endpoints where the API is currently\n available, see Amazon Web Services Service Endpoints and Amazon Pinpoint\n endpoints and quotas in the Amazon Web Services General Reference. To\n learn more about Amazon Web Services Regions, see Managing\n Amazon Web Services Regions in the Amazon Web Services General\n Reference.

          \n

          In each Region, Amazon Web Services maintains multiple Availability Zones. These\n Availability Zones are physically isolated from each other, but are united by private,\n low-latency, high-throughput, and highly redundant network connections. These\n Availability Zones enable us to provide very high levels of availability and redundancy,\n while also minimizing latency. To learn more about the number of Availability Zones that\n are available in each Region, see Amazon Web Services\n Global Infrastructure.\n

          ", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + }, + "smithy.api#title": "Amazon Pinpoint SMS Voice V2", + "smithy.rules#endpointRuleSet": { + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" }, true ] @@ -4703,11 +7134,2879 @@ } } }, - "com.amazonaws.pinpointsmsvoicev2#PoolFilter": { + "com.amazonaws.pinpointsmsvoicev2#PoolFilter": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolFilterName", + "traits": { + "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", + "smithy.api#required": {} + } + }, + "Values": { + "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "traits": { + "smithy.api#documentation": "

          An array values to filter for.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          The information for a pool that meets a specified criteria.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#PoolFilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolFilter" + }, + "traits": { + "smithy.api#length": { + "max": 20 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#PoolFilterName": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "status", + "name": "STATUS" + }, + { + "value": "message-type", + "name": "MESSAGE_TYPE" + }, + { + "value": "two-way-enabled", + "name": "TWO_WAY_ENABLED" + }, + { + "value": "self-managed-opt-outs-enabled", + "name": "SELF_MANAGED_OPT_OUTS_ENABLED" + }, + { + "value": "opt-out-list-name", + "name": "OPT_OUT_LIST_NAME" + }, + { + "value": "shared-routes-enabled", + "name": "SHARED_ROUTES_ENABLED" + }, + { + "value": "deletion-protection-enabled", + "name": "DELETION_PROTECTION_ENABLED" + }, + { + "value": "two-way-channel-arn", + "name": "TWO_WAY_CHANNEL_ARN" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#PoolIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolIdOrArn" + }, + "traits": { + "smithy.api#length": { + "max": 5 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#PoolIdOrArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#PoolInformation": { + "type": "structure", + "members": { + "PoolArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the pool.

          ", + "smithy.api#required": {} + } + }, + "PoolId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the pool.

          ", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolStatus", + "traits": { + "smithy.api#documentation": "

          The current status of the pool.

          ", + "smithy.api#required": {} + } + }, + "MessageType": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", + "traits": { + "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          ", + "smithy.api#required": {} + } + }, + "TwoWayEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          When set to true you can receive incoming text messages from your end recipients using\n the TwoWayChannelArn.

          ", + "smithy.api#required": {} + } + }, + "TwoWayChannelArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the two way channel.

          " + } + }, + "TwoWayChannelRole": { + "target": "com.amazonaws.pinpointsmsvoicev2#IamRoleArn", + "traits": { + "smithy.api#documentation": "

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

          " + } + }, + "SelfManagedOptOutsEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          When set to false, an end recipient sends a message that begins with HELP or STOP to\n one of your dedicated numbers, Amazon Pinpoint automatically replies with a\n customizable message and adds the end recipient to the OptOutList. When set to true\n you're responsible for responding to HELP and STOP requests. You're also responsible for\n tracking and honoring opt-out requests. For more information see Self-managed opt-outs\n

          ", + "smithy.api#required": {} + } + }, + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", + "traits": { + "smithy.api#documentation": "

          The name of the OptOutList associated with the pool.

          ", + "smithy.api#required": {} + } + }, + "SharedRoutesEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          Allows you to enable shared routes on your pool.

          \n

          By default, this is set to False. If you set this value to\n True, your messages are sent using phone numbers or sender IDs\n (depending on the country) that are shared with other Amazon Pinpoint users. In some\n countries, such as the United States, senders aren't allowed to use shared routes and\n must use a dedicated phone number or short code.

          ", + "smithy.api#required": {} + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          When set to true the pool can't be deleted.

          ", + "smithy.api#required": {} + } + }, + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the pool was created, in UNIX epoch time format.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          The information for a pool in an Amazon Web Services account.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#PoolInformationList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolInformation" + } + }, + "com.amazonaws.pinpointsmsvoicev2#PoolOriginationIdentitiesFilter": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolOriginationIdentitiesFilterName", + "traits": { + "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", + "smithy.api#required": {} + } + }, + "Values": { + "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "traits": { + "smithy.api#documentation": "

          An array values to filter for.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          Information about origination identities associated with a pool that meets a specified\n criteria.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#PoolOriginationIdentitiesFilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolOriginationIdentitiesFilter" + }, + "traits": { + "smithy.api#length": { + "max": 20 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#PoolOriginationIdentitiesFilterName": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "iso-country-code", + "name": "ISO_COUNTRY_CODE" + }, + { + "value": "number-capability", + "name": "NUMBER_CAPABILITY" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#PoolStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "CREATING", + "name": "CREATING" + }, + { + "value": "ACTIVE", + "name": "ACTIVE" + }, + { + "value": "DELETING", + "name": "DELETING" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#PutKeyword": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#PutKeywordRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#PutKeywordResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Creates or updates a keyword configuration on an origination phone number or\n pool.

          \n

          A keyword is a word that you can search for on a particular phone number or pool. It\n is also a specific word or phrase that an end user can send to your number to elicit a\n response, such as an informational message or a special offer. When your number receives\n a message that begins with a keyword, Amazon Pinpoint responds with a customizable\n message.

          \n

          If you specify a keyword that isn't valid, an error is returned.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#PutKeywordRequest": { + "type": "structure", + "members": { + "OriginationIdentity": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneOrPoolIdOrArn", + "traits": { + "smithy.api#documentation": "

          The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or\n SenderIdArn. You can use DescribePhoneNumbers get the values for\n PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used\n to get the values for SenderId and SenderIdArn.

          ", + "smithy.api#required": {} + } + }, + "Keyword": { + "target": "com.amazonaws.pinpointsmsvoicev2#Keyword", + "traits": { + "smithy.api#documentation": "

          The new keyword to add.

          ", + "smithy.api#required": {} + } + }, + "KeywordMessage": { + "target": "com.amazonaws.pinpointsmsvoicev2#KeywordMessage", + "traits": { + "smithy.api#documentation": "

          The message associated with the keyword.

          ", + "smithy.api#required": {} + } + }, + "KeywordAction": { + "target": "com.amazonaws.pinpointsmsvoicev2#KeywordAction", + "traits": { + "smithy.api#documentation": "

          The action to perform for the new keyword when it is received.

          \n
            \n
          • \n

            AUTOMATIC_RESPONSE: A message is sent to the recipient.

            \n
          • \n
          • \n

            OPT_OUT: Keeps the recipient from receiving future messages.

            \n
          • \n
          • \n

            OPT_IN: The recipient wants to receive future messages.

            \n
          • \n
          " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#PutKeywordResult": { + "type": "structure", + "members": { + "OriginationIdentityArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The PhoneNumberArn or PoolArn that the keyword was associated with.

          " + } + }, + "OriginationIdentity": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The PhoneNumberId or PoolId that the keyword was associated with.

          " + } + }, + "Keyword": { + "target": "com.amazonaws.pinpointsmsvoicev2#Keyword", + "traits": { + "smithy.api#documentation": "

          The keyword that was added.

          " + } + }, + "KeywordMessage": { + "target": "com.amazonaws.pinpointsmsvoicev2#KeywordMessage", + "traits": { + "smithy.api#documentation": "

          The message associated with the keyword.

          " + } + }, + "KeywordAction": { + "target": "com.amazonaws.pinpointsmsvoicev2#KeywordAction", + "traits": { + "smithy.api#documentation": "

          The action to perform when the keyword is used.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#PutOptedOutNumber": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#PutOptedOutNumberRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#PutOptedOutNumberResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Creates an opted out destination phone number in the opt-out list.

          \n

          If the destination phone number isn't valid or if the specified opt-out list doesn't\n exist, an error is returned.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#PutOptedOutNumberRequest": { + "type": "structure", + "members": { + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", + "traits": { + "smithy.api#documentation": "

          The OptOutListName or OptOutListArn to add the phone number to.

          ", + "smithy.api#required": {} + } + }, + "OptedOutNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "traits": { + "smithy.api#documentation": "

          The phone number to add to the OptOutList in E.164 format.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#PutOptedOutNumberResult": { + "type": "structure", + "members": { + "OptOutListArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The OptOutListArn that the phone number was removed from.

          " + } + }, + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", + "traits": { + "smithy.api#documentation": "

          The OptOutListName that the phone number was removed from.

          " + } + }, + "OptedOutNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "traits": { + "smithy.api#documentation": "

          The phone number that was added to the OptOutList.

          " + } + }, + "OptedOutTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time that the phone number was added to the OptOutList, in UNIX epoch time format.

          " + } + }, + "EndUserOptedOut": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          This is true if it was the end user who requested their phone number be removed.\n

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#PutRegistrationFieldValue": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#PutRegistrationFieldValueRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#PutRegistrationFieldValueResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Creates or updates a field value for a registration.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#PutRegistrationFieldValueRequest": { + "type": "structure", + "members": { + "RegistrationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} + } + }, + "FieldPath": { + "target": "com.amazonaws.pinpointsmsvoicev2#FieldPath", + "traits": { + "smithy.api#documentation": "

          The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.

          ", + "smithy.api#required": {} + } + }, + "SelectChoices": { + "target": "com.amazonaws.pinpointsmsvoicev2#SelectChoiceList", + "traits": { + "smithy.api#documentation": "

          An array of values for the form field.

          " + } + }, + "TextValue": { + "target": "com.amazonaws.pinpointsmsvoicev2#TextValue", + "traits": { + "smithy.api#documentation": "

          The text data for a free form field.

          " + } + }, + "RegistrationAttachmentId": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentIdOrArn", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration attachment.

          " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#PutRegistrationFieldValueResult": { + "type": "structure", + "members": { + "RegistrationArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the registration.

          ", + "smithy.api#required": {} + } + }, + "RegistrationId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} + } + }, + "VersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", + "traits": { + "smithy.api#documentation": "

          The version number of the registration.

          ", + "smithy.api#required": {} + } + }, + "FieldPath": { + "target": "com.amazonaws.pinpointsmsvoicev2#FieldPath", + "traits": { + "smithy.api#documentation": "

          The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.

          ", + "smithy.api#required": {} + } + }, + "SelectChoices": { + "target": "com.amazonaws.pinpointsmsvoicev2#SelectChoiceList", + "traits": { + "smithy.api#documentation": "

          An array of values for the form field.

          " + } + }, + "TextValue": { + "target": "com.amazonaws.pinpointsmsvoicev2#TextValue", + "traits": { + "smithy.api#documentation": "

          The text data for a free form field.

          " + } + }, + "RegistrationAttachmentId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration attachment.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationAssociationBehavior": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ASSOCIATE_BEFORE_SUBMIT", + "name": "ASSOCIATE_BEFORE_SUBMIT" + }, + { + "value": "ASSOCIATE_ON_APPROVAL", + "name": "ASSOCIATE_ON_APPROVAL" + }, + { + "value": "ASSOCIATE_AFTER_COMPLETE", + "name": "ASSOCIATE_AFTER_COMPLETE" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationAssociationFilter": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationAssociationFilterName", + "traits": { + "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", + "smithy.api#required": {} + } + }, + "Values": { + "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "traits": { + "smithy.api#documentation": "

          An array of values to filter for.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          The filter definition for filtering registrations that meets a specified criteria.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationAssociationFilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationAssociationFilter" + }, + "traits": { + "smithy.api#length": { + "max": 20 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationAssociationFilterName": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "resource-type", + "name": "RESOURCE_TYPE" + }, + { + "value": "iso-country-code", + "name": "ISO_COUNTRY_CODE" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationAssociationMetadata": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the origination identity that is associated with the registration.

          ", + "smithy.api#required": {} + } + }, + "ResourceId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the origination identity. For example this could be a PhoneNumberId or SenderId.

          ", + "smithy.api#required": {} + } + }, + "ResourceType": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The origination identity type.

          ", + "smithy.api#required": {} + } + }, + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "traits": { + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

          " + } + }, + "PhoneNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "traits": { + "smithy.api#documentation": "

          The phone number associated with the registration in E.164 format.

          " + } + } + }, + "traits": { + "smithy.api#documentation": "

          Metadata for the origination identity that is associated with the registration.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationAssociationMetadataList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationAssociationMetadata" + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentFilter": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentFilterName", + "traits": { + "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", + "smithy.api#required": {} + } + }, + "Values": { + "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "traits": { + "smithy.api#documentation": "

          An array of values to filter on.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          The filter definition for filtering registration attachments that meets a specified criteria.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentFilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentFilter" + }, + "traits": { + "smithy.api#length": { + "max": 20 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentFilterName": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "attachment-status", + "name": "ATTACHMENT_STATUS" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn" + }, + "traits": { + "smithy.api#length": { + "max": 5 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentIdOrArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentsInformation": { + "type": "structure", + "members": { + "RegistrationAttachmentArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the registration attachment.

          ", + "smithy.api#required": {} + } + }, + "RegistrationAttachmentId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration attachment.

          ", + "smithy.api#required": {} + } + }, + "AttachmentStatus": { + "target": "com.amazonaws.pinpointsmsvoicev2#AttachmentStatus", + "traits": { + "smithy.api#documentation": "

          The status of the registration attachment.

          \n
            \n
          • \n

            \n UPLOAD_IN_PROGRESS The attachment is being uploaded.

            \n
          • \n
          • \n

            \n UPLOAD_COMPLETE The attachment has been uploaded.

            \n
          • \n
          • \n

            \n UPLOAD_FAILED The attachment failed to uploaded.

            \n
          • \n
          • \n

            \n DELETED The attachment has been deleted..

            \n
          • \n
          ", + "smithy.api#required": {} + } + }, + "AttachmentUploadErrorReason": { + "target": "com.amazonaws.pinpointsmsvoicev2#AttachmentUploadErrorReason", + "traits": { + "smithy.api#documentation": "

          A description of why the upload didn't successfully complete.

          " + } + }, + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the registration attachment was created, in UNIX epoch time format.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          Provides information on the specified registration attachments.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentsInformationList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentsInformation" + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationDeniedReasonInformation": { + "type": "structure", + "members": { + "Reason": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The reason a registration was rejected.

          ", + "smithy.api#required": {} + } + }, + "ShortDescription": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          A short description of the rejection reason.

          ", + "smithy.api#required": {} + } + }, + "LongDescription": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          A long description of the rejection reason.

          " + } + }, + "DocumentationTitle": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The title of the document.

          " + } + }, + "DocumentationLink": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The link to the document.

          " + } + } + }, + "traits": { + "smithy.api#documentation": "

          Provides the reason a registration was rejected.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationDeniedReasonInformationList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationDeniedReasonInformation" + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationDisassociationBehavior": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "DISASSOCIATE_ALL_CLOSES_REGISTRATION", + "name": "DISASSOCIATE_ALL_CLOSES_REGISTRATION" + }, + { + "value": "DISASSOCIATE_ALL_ALLOWS_DELETE_REGISTRATION", + "name": "DISASSOCIATE_ALL_ALLOWS_DELETE_REGISTRATION" + }, + { + "value": "DELETE_REGISTRATION_DISASSOCIATES", + "name": "DELETE_REGISTRATION_DISASSOCIATES" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationFieldDefinition": { + "type": "structure", + "members": { + "SectionPath": { + "target": "com.amazonaws.pinpointsmsvoicev2#SectionPath", + "traits": { + "smithy.api#documentation": "

          The section path of the field.

          ", + "smithy.api#required": {} + } + }, + "FieldPath": { + "target": "com.amazonaws.pinpointsmsvoicev2#FieldPath", + "traits": { + "smithy.api#documentation": "

          The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.

          ", + "smithy.api#required": {} + } + }, + "FieldType": { + "target": "com.amazonaws.pinpointsmsvoicev2#FieldType", + "traits": { + "smithy.api#documentation": "

          The type of field.

          ", + "smithy.api#required": {} + } + }, + "FieldRequirement": { + "target": "com.amazonaws.pinpointsmsvoicev2#FieldRequirement", + "traits": { + "smithy.api#documentation": "

          Specifies if the field for the registration form is required, conditional or optional.

          ", + "smithy.api#required": {} + } + }, + "SelectValidation": { + "target": "com.amazonaws.pinpointsmsvoicev2#SelectValidation", + "traits": { + "smithy.api#documentation": "

          The validation rules for a select field.

          " + } + }, + "TextValidation": { + "target": "com.amazonaws.pinpointsmsvoicev2#TextValidation", + "traits": { + "smithy.api#documentation": "

          The validation rules for a text field.

          " + } + }, + "DisplayHints": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationFieldDisplayHints", + "traits": { + "smithy.api#documentation": "

          An array of RegistrationFieldDisplayHints objects for the field.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          Provides a description of the specified field.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationFieldDefinitionList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationFieldDefinition" + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationFieldDisplayHints": { + "type": "structure", + "members": { + "Title": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The title of the display hint.

          ", + "smithy.api#required": {} + } + }, + "ShortDescription": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          A short description of the display hint.

          ", + "smithy.api#required": {} + } + }, + "LongDescription": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          A full description of the display hint.

          " + } + }, + "DocumentationTitle": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The title of the document the display hint is associated with.

          " + } + }, + "DocumentationLink": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The link to the document the display hint is associated with.

          " + } + }, + "SelectOptionDescriptions": { + "target": "com.amazonaws.pinpointsmsvoicev2#SelectOptionDescriptionsList", + "traits": { + "smithy.api#documentation": "

          An array of SelectOptionDescription objects.

          " + } + }, + "TextValidationDescription": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The validation rules for the text field.

          " + } + }, + "ExampleTextValue": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          Example text of what the value of a field should contain.

          " + } + } + }, + "traits": { + "smithy.api#documentation": "

          Provides help information on the registration field.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationFieldValueInformation": { + "type": "structure", + "members": { + "FieldPath": { + "target": "com.amazonaws.pinpointsmsvoicev2#FieldPath", + "traits": { + "smithy.api#documentation": "

          The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.

          ", + "smithy.api#required": {} + } + }, + "SelectChoices": { + "target": "com.amazonaws.pinpointsmsvoicev2#SelectChoiceList", + "traits": { + "smithy.api#documentation": "

          An array of values for the form field.

          " + } + }, + "TextValue": { + "target": "com.amazonaws.pinpointsmsvoicev2#TextValue", + "traits": { + "smithy.api#documentation": "

          The text data for a free form field.

          " + } + }, + "RegistrationAttachmentId": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationAttachmentIdOrArn", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration attachment.

          " + } + }, + "DeniedReason": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          A description of why the registration was denied.

          " + } + } + }, + "traits": { + "smithy.api#documentation": "

          Provides the values of the specified field.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationFieldValueInformationList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationFieldValueInformation" + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationFilter": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationFilterName", + "traits": { + "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", + "smithy.api#required": {} + } + }, + "Values": { + "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "traits": { + "smithy.api#documentation": "

          An array of values to filter on.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          The filter definition for filtering registrations that meets a specified criteria.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationFilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationFilter" + }, + "traits": { + "smithy.api#length": { + "max": 20 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationFilterName": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "registration-type", + "name": "REGISTRATION_TYPE" + }, + { + "value": "registration-status", + "name": "REGISTRATION_STATUS" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn" + }, + "traits": { + "smithy.api#length": { + "max": 5 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationInformation": { + "type": "structure", + "members": { + "RegistrationArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the registration.

          ", + "smithy.api#required": {} + } + }, + "RegistrationId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} + } + }, + "RegistrationType": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationType", + "traits": { + "smithy.api#documentation": "

          The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions\n action.

          ", + "smithy.api#required": {} + } + }, + "RegistrationStatus": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationStatus", + "traits": { + "smithy.api#documentation": "

          The status of the registration.

          \n
            \n
          • \n

            \n CREATED: Your registration is created but not submitted.

            \n
          • \n
          • \n

            \n SUBMITTED: Your registration has been submitted and is awaiting review.

            \n
          • \n
          • \n

            \n REVIEWING: Your registration has been accepted and is being reviewed.

            \n
          • \n
          • \n

            \n PROVISIONING: Your registration has been approved and your origination identity is being created.

            \n
          • \n
          • \n

            \n COMPLETE: Your registration has been approved and and your origination identity has been created.

            \n
          • \n
          • \n

            \n REQUIRES_UPDATES: You must fix your registration and resubmit it.

            \n
          • \n
          • \n

            \n CLOSED: The phone number or sender ID has been deleted and you must also delete the registration for the number.

            \n
          • \n
          • \n

            \n DELETED: The registration has been deleted.

            \n
          • \n
          ", + "smithy.api#required": {} + } + }, + "CurrentVersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", + "traits": { + "smithy.api#documentation": "

          The current version number of the registration.

          ", + "smithy.api#required": {} + } + }, + "ApprovedVersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", + "traits": { + "smithy.api#documentation": "

          The version number of the registration that was approved.

          " + } + }, + "LatestDeniedVersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", + "traits": { + "smithy.api#documentation": "

          The latest version number of the registration that was denied.

          " + } + }, + "AdditionalAttributes": { + "target": "com.amazonaws.pinpointsmsvoicev2#StringMap", + "traits": { + "smithy.api#documentation": "

          Metadata about a given registration which is specific to that registration type.

          " + } + }, + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the registration was created, in UNIX epoch time format.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          Provides information about the requested registration.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationInformationList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationInformation" + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationSectionDefinition": { + "type": "structure", + "members": { + "SectionPath": { + "target": "com.amazonaws.pinpointsmsvoicev2#SectionPath", + "traits": { + "smithy.api#documentation": "

          The path to the section of the registration.

          ", + "smithy.api#required": {} + } + }, + "DisplayHints": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationSectionDisplayHints", + "traits": { + "smithy.api#documentation": "

          The path to the section of the registration.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          Provides information on the specified section definition.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationSectionDefinitionList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationSectionDefinition" + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationSectionDisplayHints": { + "type": "structure", + "members": { + "Title": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The title of the display hint.

          ", + "smithy.api#required": {} + } + }, + "ShortDescription": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          A short description of the display hint.

          ", + "smithy.api#required": {} + } + }, + "LongDescription": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          A full description of the display hint.

          " + } + }, + "DocumentationTitle": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The title of the document the display hint is associated with.

          " + } + }, + "DocumentationLink": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The link to the document the display hint is associated with.

          " + } + } + }, + "traits": { + "smithy.api#documentation": "

          Provides help information on the registration section.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "CREATED", + "name": "CREATED" + }, + { + "value": "SUBMITTED", + "name": "SUBMITTED" + }, + { + "value": "REVIEWING", + "name": "REVIEWING" + }, + { + "value": "PROVISIONING", + "name": "PROVISIONING" + }, + { + "value": "COMPLETE", + "name": "COMPLETE" + }, + { + "value": "REQUIRES_UPDATES", + "name": "REQUIRES_UPDATES" + }, + { + "value": "CLOSED", + "name": "CLOSED" + }, + { + "value": "DELETED", + "name": "DELETED" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationType": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[A-Za-z0-9_]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationTypeDefinition": { + "type": "structure", + "members": { + "RegistrationType": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationType", + "traits": { + "smithy.api#documentation": "

          The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions\n action.

          ", + "smithy.api#required": {} + } + }, + "SupportedAssociations": { + "target": "com.amazonaws.pinpointsmsvoicev2#SupportedAssociationList", + "traits": { + "smithy.api#documentation": "

          The supported association behavior for the registration type.

          " + } + }, + "DisplayHints": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationTypeDisplayHints", + "traits": { + "smithy.api#documentation": "

          Provides help information on the registration.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          Provides information on the supported registration type.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationTypeDefinitionList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationTypeDefinition" + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationTypeDisplayHints": { + "type": "structure", + "members": { + "Title": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The title of the display hint.

          ", + "smithy.api#required": {} + } + }, + "ShortDescription": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          A short description of the display hint.

          " + } + }, + "LongDescription": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          A full description of the display hint.

          " + } + }, + "DocumentationTitle": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The title of the document the display hint is associated with.

          " + } + }, + "DocumentationLink": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The link to the document the display hint is associated with.

          " + } + } + }, + "traits": { + "smithy.api#documentation": "

          Provides help information on the registration type.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationTypeFilter": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationTypeFilterName", + "traits": { + "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", + "smithy.api#required": {} + } + }, + "Values": { + "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "traits": { + "smithy.api#documentation": "

          An array of values to filter on.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          The filter definition for filtering registration types that meets a specified criteria.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationTypeFilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationTypeFilter" + }, + "traits": { + "smithy.api#length": { + "max": 20 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationTypeFilterName": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "supported-association-resource-type", + "name": "SUPPORTED_ASSOCIATION_RESOURCE_TYPE" + }, + { + "value": "supported-association-iso-country-code", + "name": "SUPPORTED_ASSOCIATION_ISO_COUNTRY_CODE" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationTypeList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationType" + }, + "traits": { + "smithy.api#length": { + "max": 5 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionFilter": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionFilterName", + "traits": { + "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", + "smithy.api#required": {} + } + }, + "Values": { + "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "traits": { + "smithy.api#documentation": "

          An array of values to filter on.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          The filter definition for filtering registration versions that meets a specified criteria.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionFilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionFilter" + }, + "traits": { + "smithy.api#length": { + "max": 20 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionFilterName": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "registration-version-status", + "name": "REGISTRATION_VERSION_STATUS" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionInformation": { + "type": "structure", + "members": { + "VersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", + "traits": { + "smithy.api#documentation": "

          The version number of the registration.

          ", + "smithy.api#required": {} + } + }, + "RegistrationVersionStatus": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionStatus", + "traits": { + "smithy.api#documentation": "

          The status of the registration.

          \n
            \n
          • \n

            \n DRAFT: The initial status of a registration version after it’s created.

            \n
          • \n
          • \n

            \n SUBMITTED: Your registration has been submitted.

            \n
          • \n
          • \n

            \n REVIEWING: Your registration has been accepted and is being reviewed.

            \n
          • \n
          • \n

            \n APPROVED: Your registration has been approved.

            \n
          • \n
          • \n

            \n DISCARDED: You've abandon this version of their registration to start over with a new version.

            \n
          • \n
          • \n

            \n DENIED: You must fix your registration and resubmit it.

            \n
          • \n
          • \n

            \n REVOKED: Your previously approved registration has been revoked.

            \n
          • \n
          • \n

            \n ARCHIVED: Your previously approved registration version moves into this status when a more recently submitted version is approved.

            \n
          • \n
          ", + "smithy.api#required": {} + } + }, + "RegistrationVersionStatusHistory": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionStatusHistory", + "traits": { + "smithy.api#documentation": "

          The RegistrationVersionStatusHistory object contains the time stamps for when the reservations status changes.

          ", + "smithy.api#required": {} + } + }, + "DeniedReasons": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationDeniedReasonInformationList", + "traits": { + "smithy.api#documentation": "

          An array of RegistrationDeniedReasonInformation objects.

          " + } + } + }, + "traits": { + "smithy.api#documentation": "

          Provides information about the specified version of the registration.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionInformationList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionInformation" + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber": { + "type": "long", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 100000 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumberList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber" + }, + "traits": { + "smithy.api#length": { + "max": 5 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "DRAFT", + "name": "DRAFT" + }, + { + "value": "SUBMITTED", + "name": "SUBMITTED" + }, + { + "value": "REVIEWING", + "name": "REVIEWING" + }, + { + "value": "APPROVED", + "name": "APPROVED" + }, + { + "value": "DISCARDED", + "name": "DISCARDED" + }, + { + "value": "DENIED", + "name": "DENIED" + }, + { + "value": "REVOKED", + "name": "REVOKED" + }, + { + "value": "ARCHIVED", + "name": "ARCHIVED" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionStatusHistory": { + "type": "structure", + "members": { + "DraftTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the registration was in the draft state, in UNIX epoch time format.

          ", + "smithy.api#required": {} + } + }, + "SubmittedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the registration was in the submitted state, in UNIX epoch time format.

          " + } + }, + "ReviewingTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the registration was in the reviewing state, in UNIX epoch time format.

          " + } + }, + "ApprovedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the registration was in the approved state, in UNIX epoch time format.

          " + } + }, + "DiscardedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the registration was in the discarded state, in UNIX epoch time format.

          " + } + }, + "DeniedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the registration was in the denied state, in UNIX epoch time format.

          " + } + }, + "RevokedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the registration was in the revoked state, in UNIX epoch time format.

          " + } + }, + "ArchivedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the registration was in the archived state, in UNIX epoch time format.

          " + } + } + }, + "traits": { + "smithy.api#documentation": "

          The RegistrationVersionStatusHistory object contains the time stamps for when the reservations status changes.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#ReleasePhoneNumber": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#ReleasePhoneNumberRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#ReleasePhoneNumberResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Releases an existing origination phone number in your account. Once released, a phone\n number is no longer available for sending messages.

          \n

          If the origination phone number has deletion protection enabled or is associated with\n a pool, an error is returned.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#ReleasePhoneNumberRequest": { + "type": "structure", + "members": { + "PhoneNumberId": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberIdOrArn", + "traits": { + "smithy.api#documentation": "

          The PhoneNumberId or PhoneNumberArn of the phone number to release. You can use DescribePhoneNumbers to get the values for PhoneNumberId and\n PhoneNumberArn.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#ReleasePhoneNumberResult": { + "type": "structure", + "members": { + "PhoneNumberArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The PhoneNumberArn of the phone number that was released.

          " + } + }, + "PhoneNumberId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The PhoneNumberId of the phone number that was released.

          " + } + }, + "PhoneNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "traits": { + "smithy.api#documentation": "

          The phone number that was released.

          " + } + }, + "Status": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberStatus", + "traits": { + "smithy.api#documentation": "

          The current status of the request.

          " + } + }, + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "traits": { + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or\n region.

          " + } + }, + "MessageType": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", + "traits": { + "smithy.api#documentation": "

          The message type that was associated with the phone number.

          " + } + }, + "NumberCapabilities": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapabilityList", + "traits": { + "smithy.api#documentation": "

          Specifies if the number could be used for text messages, voice, or both.

          " + } + }, + "NumberType": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberType", + "traits": { + "smithy.api#documentation": "

          The type of number that was released.

          " + } + }, + "MonthlyLeasingPrice": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The monthly price of the phone number, in US dollars.

          " + } + }, + "TwoWayEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients.

          " + } + }, + "TwoWayChannelArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the TwoWayChannel.

          " + } + }, + "TwoWayChannelRole": { + "target": "com.amazonaws.pinpointsmsvoicev2#IamRoleArn", + "traits": { + "smithy.api#documentation": "

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

          " + } + }, + "SelfManagedOptOutsEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          By default this is set to false. When an end recipient sends a message that begins\n with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically\n replies with a customizable message and adds the end recipient to the OptOutList. When\n set to true you're responsible for responding to HELP and STOP requests. You're also\n responsible for tracking and honoring opt-out requests.

          " + } + }, + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", + "traits": { + "smithy.api#documentation": "

          The name of the OptOutList that was associated with the phone number.

          " + } + }, + "RegistrationId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration.

          " + } + }, + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the phone number was created, in UNIX epoch time format.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#ReleaseSenderId": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#ReleaseSenderIdRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#ReleaseSenderIdResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Releases an existing sender ID in your account.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#ReleaseSenderIdRequest": { + "type": "structure", + "members": { + "SenderId": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdOrArn", + "traits": { + "smithy.api#documentation": "

          The sender ID to release.

          ", + "smithy.api#required": {} + } + }, + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "traits": { + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#ReleaseSenderIdResult": { + "type": "structure", + "members": { + "SenderIdArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) associated with the SenderId.

          ", + "smithy.api#required": {} + } + }, + "SenderId": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderId", + "traits": { + "smithy.api#documentation": "

          The sender ID that was released.

          ", + "smithy.api#required": {} + } + }, + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "traits": { + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

          ", + "smithy.api#required": {} + } + }, + "MessageTypes": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageTypeList", + "traits": { + "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          ", + "smithy.api#required": {} + } + }, + "MonthlyLeasingPrice": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The monthly price, in US dollars, to lease the sender ID.

          ", + "smithy.api#required": {} + } + }, + "Registered": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          True if the sender ID is registered.

          ", + "smithy.api#required": {} + } + }, + "RegistrationId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#RequestPhoneNumber": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#RequestPhoneNumberRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#RequestPhoneNumberResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Request an origination phone number for use in your account. For more information on\n phone number request see Requesting a\n number in the Amazon Pinpoint User Guide.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RequestPhoneNumberRequest": { + "type": "structure", + "members": { + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "traits": { + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          ", + "smithy.api#required": {} + } + }, + "MessageType": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", + "traits": { + "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          ", + "smithy.api#required": {} + } + }, + "NumberCapabilities": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapabilityList", + "traits": { + "smithy.api#documentation": "

          Indicates if the phone number will be used for text messages, voice messages, or both.

          ", + "smithy.api#required": {} + } + }, + "NumberType": { + "target": "com.amazonaws.pinpointsmsvoicev2#RequestableNumberType", + "traits": { + "smithy.api#documentation": "

          The type of phone number to request.

          ", + "smithy.api#required": {} + } + }, + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", + "traits": { + "smithy.api#documentation": "

          The name of the OptOutList to associate with the phone number. You can use the\n OptOutListName or OptOutListArn.

          " + } + }, + "PoolId": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolIdOrArn", + "traits": { + "smithy.api#documentation": "

          The pool to associated with the phone number. You can use the PoolId or PoolArn.

          " + } + }, + "RegistrationId": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn", + "traits": { + "smithy.api#documentation": "

          Use this field to attach your phone number for an external registration\n process.

          " + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

          By default this is set to false. When set to true the phone number can't be\n deleted.

          " + } + }, + "Tags": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagList", + "traits": { + "smithy.api#documentation": "

          An array of tags (key and value pairs) associate with the requested phone number.\n

          " + } + }, + "ClientToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#ClientToken", + "traits": { + "smithy.api#documentation": "

          Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If you don't specify a client token, a randomly generated token is used for the\n request to ensure idempotency.

          ", + "smithy.api#idempotencyToken": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#RequestPhoneNumberResult": { + "type": "structure", + "members": { + "PhoneNumberArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the requested phone number.

          " + } + }, + "PhoneNumberId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier of the new phone number.

          " + } + }, + "PhoneNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "traits": { + "smithy.api#documentation": "

          The new phone number that was requested.

          " + } + }, + "Status": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberStatus", + "traits": { + "smithy.api#documentation": "

          The current status of the request.

          " + } + }, + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "traits": { + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          " + } + }, + "MessageType": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", + "traits": { + "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          " + } + }, + "NumberCapabilities": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapabilityList", + "traits": { + "smithy.api#documentation": "

          Indicates if the phone number will be used for text messages, voice messages or both.\n

          " + } + }, + "NumberType": { + "target": "com.amazonaws.pinpointsmsvoicev2#RequestableNumberType", + "traits": { + "smithy.api#documentation": "

          The type of number that was released.

          " + } + }, + "MonthlyLeasingPrice": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The monthly price, in US dollars, to lease the phone number.

          " + } + }, + "TwoWayEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients.

          " + } + }, + "TwoWayChannelArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", + "traits": { + "smithy.api#documentation": "

          The ARN used to identify the two way channel.

          " + } + }, + "TwoWayChannelRole": { + "target": "com.amazonaws.pinpointsmsvoicev2#IamRoleArn", + "traits": { + "smithy.api#documentation": "

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

          " + } + }, + "SelfManagedOptOutsEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          By default this is set to false. When an end recipient sends a message that begins\n with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically\n replies with a customizable message and adds the end recipient to the OptOutList. When\n set to true you're responsible for responding to HELP and STOP requests. You're also\n responsible for tracking and honoring opt-out requests.

          " + } + }, + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", + "traits": { + "smithy.api#documentation": "

          The name of the OptOutList that is associated with the requested phone number.

          " + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          By default this is set to false. When set to true the phone number can't be deleted.\n

          " + } + }, + "PoolId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier of the pool associated with the phone number

          " + } + }, + "RegistrationId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration.

          " + } + }, + "Tags": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagList", + "traits": { + "smithy.api#documentation": "

          An array of key and value pair tags that are associated with the phone number.

          " + } + }, + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the phone number was created, in UNIX epoch time format.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#RequestSenderId": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#RequestSenderIdRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#RequestSenderIdResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Request a new sender ID that doesn't require registration.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#RequestSenderIdRequest": { + "type": "structure", + "members": { + "SenderId": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderId", + "traits": { + "smithy.api#documentation": "

          The sender ID string to request.

          ", + "smithy.api#required": {} + } + }, + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "traits": { + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

          ", + "smithy.api#required": {} + } + }, + "MessageTypes": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageTypeList", + "traits": { + "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          " + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

          By default this is set to false. When set to true the sender ID can't be deleted.

          " + } + }, + "Tags": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagList", + "traits": { + "smithy.api#documentation": "

          An array of tags (key and value pairs) to associate with the sender ID.

          " + } + }, + "ClientToken": { + "target": "com.amazonaws.pinpointsmsvoicev2#ClientToken", + "traits": { + "smithy.api#documentation": "

          Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If you don't specify a client token, a randomly generated token is used for the\n request to ensure idempotency.

          ", + "smithy.api#idempotencyToken": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#RequestSenderIdResult": { + "type": "structure", + "members": { + "SenderIdArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) associated with the SenderId.

          ", + "smithy.api#required": {} + } + }, + "SenderId": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderId", + "traits": { + "smithy.api#documentation": "

          The sender ID that was requested.

          ", + "smithy.api#required": {} + } + }, + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "traits": { + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

          ", + "smithy.api#required": {} + } + }, + "MessageTypes": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageTypeList", + "traits": { + "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          ", + "smithy.api#required": {} + } + }, + "MonthlyLeasingPrice": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The monthly price, in US dollars, to lease the sender ID.

          ", + "smithy.api#required": {} + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          By default this is set to false. When set to true the sender ID can't be deleted.

          ", + "smithy.api#required": {} + } + }, + "Registered": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          True if the sender ID is registered.

          ", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagList", + "traits": { + "smithy.api#documentation": "

          An array of tags (key and value pairs) to associate with the sender ID.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#RequestableNumberType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "LONG_CODE", + "name": "LONG_CODE" + }, + { + "value": "TOLL_FREE", + "name": "TOLL_FREE" + }, + { + "value": "TEN_DLC", + "name": "TEN_DLC" + }, + { + "value": "SIMULATOR", + "name": "SIMULATOR" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#ResourceIdOrArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": { + "type": "structure", + "members": { + "Message": { + "target": "smithy.api#String" + }, + "ResourceType": { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceType", + "traits": { + "smithy.api#documentation": "

          The type of resource that caused the exception.

          " + } + }, + "ResourceId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier of the resource.

          " + } + } + }, + "traits": { + "smithy.api#documentation": "

          A requested resource couldn't be found.

          ", + "smithy.api#error": "client" + } + }, + "com.amazonaws.pinpointsmsvoicev2#ResourceType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "account", + "name": "ACCOUNT" + }, + { + "value": "phone-number", + "name": "PHONE_NUMBER" + }, + { + "value": "sender-id", + "name": "SENDER_ID" + }, + { + "value": "pool", + "name": "POOL" + }, + { + "value": "configuration-set", + "name": "CONFIGURATION_SET" + }, + { + "value": "opt-out-list", + "name": "OPT_OUT_LIST" + }, + { + "value": "event-destination", + "name": "EVENT_DESTINATION" + }, + { + "value": "keyword", + "name": "KEYWORD" + }, + { + "value": "opted-out-number", + "name": "OPTED_OUT_NUMBER" + }, + { + "value": "registration", + "name": "REGISTRATION" + }, + { + "value": "registration-attachment", + "name": "REGISTRATION_ATTACHMENT" + }, + { + "value": "verified-destination-number", + "name": "VERIFIED_DESTINATION_NUMBER" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#SectionPath": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + }, + "smithy.api#pattern": "^[A-Za-z0-9_]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#SectionPathList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#SectionPath" + }, + "traits": { + "smithy.api#length": { + "max": 5 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#SelectChoice": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#SelectChoiceList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#SelectChoice" + }, + "traits": { + "smithy.api#length": { + "max": 100 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#SelectOptionDescription": { + "type": "structure", + "members": { + "Option": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The value of the option.

          ", + "smithy.api#required": {} + } + }, + "Title": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The title of the select option.

          " + } + }, + "Description": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          A description of the option meaning.

          " + } + } + }, + "traits": { + "smithy.api#documentation": "

          A description of each select option.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#SelectOptionDescriptionsList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#SelectOptionDescription" + } + }, + "com.amazonaws.pinpointsmsvoicev2#SelectValidation": { + "type": "structure", + "members": { + "MinChoices": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

          The minimum number of choices for the select.

          ", + "smithy.api#required": {} + } + }, + "MaxChoices": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

          The maximum number of choices for the select.

          ", + "smithy.api#required": {} + } + }, + "Options": { + "target": "com.amazonaws.pinpointsmsvoicev2#StringList", + "traits": { + "smithy.api#documentation": "

          An array of strings for the possible selection options.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          Validation rules for a select field.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#SendDestinationNumberVerificationCode": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#SendDestinationNumberVerificationCodeRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#SendDestinationNumberVerificationCodeResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Before you can send test messages to a verified destination phone number you need to\n opt-in the verified destination phone number. Creates a new text message with a\n verification code and send it to a verified destination phone number. Once you have the verification code use VerifyDestinationNumber to opt-in the verified destination phone number to receive messages.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#SendDestinationNumberVerificationCodeRequest": { + "type": "structure", + "members": { + "VerifiedDestinationNumberId": { + "target": "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberIdOrArn", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the verified destination phone number.

          ", + "smithy.api#required": {} + } + }, + "VerificationChannel": { + "target": "com.amazonaws.pinpointsmsvoicev2#VerificationChannel", + "traits": { + "smithy.api#documentation": "

          Choose to send the verification code as an SMS or voice message.

          ", + "smithy.api#required": {} + } + }, + "LanguageCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#LanguageCode", + "traits": { + "smithy.api#documentation": "

          Choose the language to use for the message.

          " + } + }, + "OriginationIdentity": { + "target": "com.amazonaws.pinpointsmsvoicev2#VerificationMessageOriginationIdentity", + "traits": { + "smithy.api#documentation": "

          The origination identity of the message. This can be either the PhoneNumber,\n PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

          " + } + }, + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", + "traits": { + "smithy.api#documentation": "

          The name of the configuration set to use. This can be either the ConfigurationSetName\n or ConfigurationSetArn.

          " + } + }, + "Context": { + "target": "com.amazonaws.pinpointsmsvoicev2#ContextMap", + "traits": { + "smithy.api#documentation": "

          You can specify custom data in this field. If you do, that data is logged to the event\n destination.

          " + } + }, + "DestinationCountryParameters": { + "target": "com.amazonaws.pinpointsmsvoicev2#DestinationCountryParameters", + "traits": { + "smithy.api#documentation": "

          This field is used for any country-specific registration requirements. Currently, this\n setting is only used when you send messages to recipients in India using a sender ID.\n For more information see Special requirements for sending SMS messages to recipients in India.\n

          " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#SendDestinationNumberVerificationCodeResult": { + "type": "structure", + "members": { + "MessageId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the message.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#SendTextMessage": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#SendTextMessageRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#SendTextMessageResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Creates a new text message and sends it to a recipient's phone number.

          \n

          SMS throughput limits are measured in Message Parts per Second (MPS). Your MPS limit\n depends on the destination country of your messages, as well as the type of phone number\n (origination number) that you use to send the message. For more information, see Message Parts per\n Second (MPS) limits in the Amazon Pinpoint User\n Guide.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#SendTextMessageRequest": { + "type": "structure", + "members": { + "DestinationPhoneNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "traits": { + "smithy.api#documentation": "

          The destination phone number in E.164 format.

          ", + "smithy.api#required": {} + } + }, + "OriginationIdentity": { + "target": "com.amazonaws.pinpointsmsvoicev2#TextMessageOriginationIdentity", + "traits": { + "smithy.api#documentation": "

          The origination identity of the message. This can be either the PhoneNumber,\n PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

          " + } + }, + "MessageBody": { + "target": "com.amazonaws.pinpointsmsvoicev2#TextMessageBody", + "traits": { + "smithy.api#documentation": "

          The body of the text message.

          " + } + }, + "MessageType": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", + "traits": { + "smithy.api#documentation": "

          The type of message. Valid values are \n for messages that are critical or time-sensitive and PROMOTIONAL for messages that\n aren't critical or time-sensitive.

          " + } + }, + "Keyword": { + "target": "com.amazonaws.pinpointsmsvoicev2#Keyword", + "traits": { + "smithy.api#documentation": "

          When you register a short code in the US, you must specify a program name. If you\n don’t have a US short code, omit this attribute.

          " + } + }, + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", + "traits": { + "smithy.api#documentation": "

          The name of the configuration set to use. This can be either the ConfigurationSetName\n or ConfigurationSetArn.

          " + } + }, + "MaxPrice": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxPrice", + "traits": { + "smithy.api#documentation": "

          The maximum amount that you want to spend, in US dollars, per each text message part.\n A text message can contain multiple parts.

          " + } + }, + "TimeToLive": { + "target": "com.amazonaws.pinpointsmsvoicev2#TimeToLive", + "traits": { + "smithy.api#documentation": "

          How long the text message is valid for. By default this is 72 hours.

          " + } + }, + "Context": { + "target": "com.amazonaws.pinpointsmsvoicev2#ContextMap", + "traits": { + "smithy.api#documentation": "

          You can specify custom data in this field. If you do, that data is logged to the event\n destination.

          " + } + }, + "DestinationCountryParameters": { + "target": "com.amazonaws.pinpointsmsvoicev2#DestinationCountryParameters", + "traits": { + "smithy.api#documentation": "

          This field is used for any country-specific registration requirements. Currently, this\n setting is only used when you send messages to recipients in India using a sender ID.\n For more information see Special requirements for sending SMS messages to recipients in India.\n

          " + } + }, + "DryRun": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          When set to true, the message is checked and validated, but isn't sent to the end\n recipient.

          " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#SendTextMessageResult": { + "type": "structure", + "members": { + "MessageId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the message.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#SendVoiceMessage": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#SendVoiceMessageRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#SendVoiceMessageResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Allows you to send a request that sends a voice message through Amazon Pinpoint.\n This operation uses Amazon Polly to\n convert a text script into a voice message.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#SendVoiceMessageRequest": { + "type": "structure", + "members": { + "DestinationPhoneNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "traits": { + "smithy.api#documentation": "

          The destination phone number in E.164 format.

          ", + "smithy.api#required": {} + } + }, + "OriginationIdentity": { + "target": "com.amazonaws.pinpointsmsvoicev2#VoiceMessageOriginationIdentity", + "traits": { + "smithy.api#documentation": "

          The origination identity to use for the voice call. This can be the PhoneNumber,\n PhoneNumberId, PhoneNumberArn, PoolId, or PoolArn.

          ", + "smithy.api#required": {} + } + }, + "MessageBody": { + "target": "com.amazonaws.pinpointsmsvoicev2#VoiceMessageBody", + "traits": { + "smithy.api#documentation": "

          The text to convert to a voice message.

          " + } + }, + "MessageBodyTextType": { + "target": "com.amazonaws.pinpointsmsvoicev2#VoiceMessageBodyTextType", + "traits": { + "smithy.api#documentation": "

          Specifies if the MessageBody field contains text or speech synthesis\n markup language (SSML).

          \n
            \n
          • \n

            TEXT: This is the default value. When used the maximum character limit is\n 3000.

            \n
          • \n
          • \n

            SSML: When used the maximum character limit is 6000 including SSML\n tagging.

            \n
          • \n
          " + } + }, + "VoiceId": { + "target": "com.amazonaws.pinpointsmsvoicev2#VoiceId", + "traits": { + "smithy.api#documentation": "

          The voice for the Amazon Polly\n service to use. By default this is set to \"MATTHEW\".

          " + } + }, + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", + "traits": { + "smithy.api#documentation": "

          The name of the configuration set to use. This can be either the ConfigurationSetName\n or ConfigurationSetArn.

          " + } + }, + "MaxPricePerMinute": { + "target": "com.amazonaws.pinpointsmsvoicev2#MaxPrice", + "traits": { + "smithy.api#documentation": "

          The maximum amount to spend per voice message, in US dollars.

          " + } + }, + "TimeToLive": { + "target": "com.amazonaws.pinpointsmsvoicev2#TimeToLive", + "traits": { + "smithy.api#documentation": "

          How long the voice message is valid for. By default this is 72 hours.

          " + } + }, + "Context": { + "target": "com.amazonaws.pinpointsmsvoicev2#ContextMap", + "traits": { + "smithy.api#documentation": "

          You can specify custom data in this field. If you do, that data is logged to the event\n destination.

          " + } + }, + "DryRun": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          When set to true, the message is checked and validated, but isn't sent to the end\n recipient.

          " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#SendVoiceMessageResult": { + "type": "structure", + "members": { + "MessageId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the message.

          " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#SenderId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 11 + }, + "smithy.api#pattern": "^[A-Za-z0-9_-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#SenderIdAndCountry": { + "type": "structure", + "members": { + "SenderId": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdOrArn", + "traits": { + "smithy.api#documentation": "

          The unique identifier of the sender.

          ", + "smithy.api#required": {} + } + }, + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "traits": { + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

          The alphanumeric sender ID in a specific country that you want to describe. For more\n information on sender IDs see Requesting\n sender IDs for SMS messaging with Amazon Pinpoint\n in the Amazon Pinpoint User Guide.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#SenderIdFilter": { "type": "structure", "members": { "Name": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolFilterName", + "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdFilterName", "traits": { "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", "smithy.api#required": {} @@ -4716,19 +10015,19 @@ "Values": { "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", "traits": { - "smithy.api#documentation": "

          An array values to filter for.

          ", + "smithy.api#documentation": "

          An array of values to filter for.

          ", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

          The information for a pool that meets a specified criteria.

          " + "smithy.api#documentation": "

          The information for a sender ID that meets a specified criteria.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#PoolFilterList": { + "com.amazonaws.pinpointsmsvoicev2#SenderIdFilterList": { "type": "list", "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolFilter" + "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdFilter" }, "traits": { "smithy.api#length": { @@ -4736,247 +10035,252 @@ } } }, - "com.amazonaws.pinpointsmsvoicev2#PoolFilterName": { + "com.amazonaws.pinpointsmsvoicev2#SenderIdFilterName": { "type": "string", "traits": { "smithy.api#enum": [ { - "value": "status", - "name": "STATUS" - }, - { - "value": "message-type", - "name": "MESSAGE_TYPE" - }, - { - "value": "two-way-enabled", - "name": "TWO_WAY_ENABLED" - }, - { - "value": "self-managed-opt-outs-enabled", - "name": "SELF_MANAGED_OPT_OUTS_ENABLED" + "value": "sender-id", + "name": "SENDER_ID" }, { - "value": "opt-out-list-name", - "name": "OPT_OUT_LIST_NAME" + "value": "iso-country-code", + "name": "ISO_COUNTRY_CODE" }, { - "value": "shared-routes-enabled", - "name": "SHARED_ROUTES_ENABLED" + "value": "message-type", + "name": "MESSAGE_TYPE" }, { "value": "deletion-protection-enabled", "name": "DELETION_PROTECTION_ENABLED" + }, + { + "value": "registered", + "name": "REGISTERED" } ] } }, - "com.amazonaws.pinpointsmsvoicev2#PoolIdList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolIdOrArn" - }, - "traits": { - "smithy.api#length": { - "max": 5 - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#PoolIdOrArn": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 256 - }, - "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" - } - }, - "com.amazonaws.pinpointsmsvoicev2#PoolInformation": { + "com.amazonaws.pinpointsmsvoicev2#SenderIdInformation": { "type": "structure", "members": { - "PoolArn": { + "SenderIdArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the pool.

          ", + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) associated with the SenderId.

          ", "smithy.api#required": {} } }, - "PoolId": { - "target": "smithy.api#String", + "SenderId": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderId", "traits": { - "smithy.api#documentation": "

          The unique identifier for the pool.

          ", + "smithy.api#documentation": "

          The alphanumeric sender ID in a specific country that you'd like to describe.

          ", "smithy.api#required": {} } }, - "Status": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolStatus", + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", "traits": { - "smithy.api#documentation": "

          The current status of the pool.

          ", + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          ", "smithy.api#required": {} } }, - "MessageType": { - "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", + "MessageTypes": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageTypeList", "traits": { "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          ", "smithy.api#required": {} } }, - "TwoWayEnabled": { - "target": "smithy.api#PrimitiveBoolean", - "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          When set to true you can receive incoming text messages from your end recipients using\n the TwoWayChannelArn.

          ", - "smithy.api#required": {} - } - }, - "TwoWayChannelArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", - "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the two way channel.

          " - } - }, - "SelfManagedOptOutsEnabled": { - "target": "smithy.api#PrimitiveBoolean", - "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          When set to false, an end recipient sends a message that begins with HELP or STOP to\n one of your dedicated numbers, Amazon Pinpoint automatically replies with a\n customizable message and adds the end recipient to the OptOutList. When set to true\n you're responsible for responding to HELP and STOP requests. You're also responsible for\n tracking and honoring opt-out requests. For more information see Self-managed opt-outs\n

          ", - "smithy.api#required": {} - } - }, - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", + "MonthlyLeasingPrice": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The name of the OptOutList associated with the pool.

          ", + "smithy.api#documentation": "

          The monthly leasing price, in US dollars.

          ", "smithy.api#required": {} } }, - "SharedRoutesEnabled": { + "DeletionProtectionEnabled": { "target": "smithy.api#PrimitiveBoolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

          Allows you to enable shared routes on your pool.

          \n

          By default, this is set to False. If you set this value to\n True, your messages are sent using phone numbers or sender IDs\n (depending on the country) that are shared with other Amazon Pinpoint users. In some\n countries, such as the United States, senders aren't allowed to use shared routes and\n must use a dedicated phone number or short code.

          ", + "smithy.api#documentation": "

          By default this is set to false. When set to true the sender ID can't be deleted.

          ", "smithy.api#required": {} } }, - "DeletionProtectionEnabled": { + "Registered": { "target": "smithy.api#PrimitiveBoolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

          When set to true the pool can't be deleted.

          ", + "smithy.api#documentation": "

          True if the sender ID is registered.

          ", "smithy.api#required": {} } }, - "CreatedTimestamp": { - "target": "smithy.api#Timestamp", + "RegistrationId": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The time when the pool was created, in UNIX epoch time format.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The unique identifier for the registration.

          " } } }, "traits": { - "smithy.api#documentation": "

          The information for a pool in an Amazon Web Services account.

          " + "smithy.api#documentation": "

          The information for all SenderIds in an Amazon Web Services account.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#PoolInformationList": { + "com.amazonaws.pinpointsmsvoicev2#SenderIdInformationList": { "type": "list", "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolInformation" + "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdInformation" } }, - "com.amazonaws.pinpointsmsvoicev2#PoolOriginationIdentitiesFilter": { + "com.amazonaws.pinpointsmsvoicev2#SenderIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdAndCountry" + }, + "traits": { + "smithy.api#length": { + "max": 5 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#SenderIdOrArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException": { "type": "structure", "members": { - "Name": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolOriginationIdentitiesFilterName", - "traits": { - "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", - "smithy.api#required": {} - } + "Message": { + "target": "smithy.api#String" }, - "Values": { - "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "Reason": { + "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededExceptionReason", "traits": { - "smithy.api#documentation": "

          An array values to filter for.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The reason for the exception.

          " } } }, "traits": { - "smithy.api#documentation": "

          Information about origination identities associated with a pool that meets a specified\n criteria.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#PoolOriginationIdentitiesFilterList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolOriginationIdentitiesFilter" - }, - "traits": { - "smithy.api#length": { - "max": 20 - } + "smithy.api#documentation": "

          The request would cause a service quota to be exceeded.

          ", + "smithy.api#error": "client" } }, - "com.amazonaws.pinpointsmsvoicev2#PoolOriginationIdentitiesFilterName": { + "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededExceptionReason": { "type": "string", "traits": { "smithy.api#enum": [ { - "value": "iso-country-code", - "name": "ISO_COUNTRY_CODE" + "value": "ASSOCIATIONS_PER_REGISTRATION", + "name": "ASSOCIATIONS_PER_REGISTRATION" + }, + { + "value": "CONFIGURATION_SETS_PER_ACCOUNT", + "name": "CONFIGURATION_SETS_PER_ACCOUNT" + }, + { + "value": "DAILY_DESTINATION_CALL_LIMIT", + "name": "DAILY_DESTINATION_CALL_LIMIT" + }, + { + "value": "EVENT_DESTINATIONS_PER_CONFIGURATION_SET", + "name": "EVENT_DESTINATIONS_PER_CONFIGURATION_SET" + }, + { + "value": "KEYWORDS_PER_PHONE_NUMBER", + "name": "KEYWORDS_PER_PHONE_NUMBER" + }, + { + "value": "KEYWORDS_PER_POOL", + "name": "KEYWORDS_PER_POOL" + }, + { + "value": "MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT", + "name": "MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT" + }, + { + "value": "MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE", + "name": "MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE" + }, + { + "value": "OPT_OUT_LISTS_PER_ACCOUNT", + "name": "OPT_OUT_LISTS_PER_ACCOUNT" + }, + { + "value": "ORIGINATION_IDENTITIES_PER_POOL", + "name": "ORIGINATION_IDENTITIES_PER_POOL" + }, + { + "value": "PHONE_NUMBERS_PER_ACCOUNT", + "name": "PHONE_NUMBERS_PER_ACCOUNT" }, { - "value": "number-capability", - "name": "NUMBER_CAPABILITY" - } - ] - } - }, - "com.amazonaws.pinpointsmsvoicev2#PoolStatus": { - "type": "string", - "traits": { - "smithy.api#enum": [ + "value": "PHONE_NUMBERS_PER_REGISTRATION", + "name": "PHONE_NUMBERS_PER_REGISTRATION" + }, { - "value": "CREATING", - "name": "CREATING" + "value": "POOLS_PER_ACCOUNT", + "name": "POOLS_PER_ACCOUNT" }, { - "value": "ACTIVE", - "name": "ACTIVE" + "value": "REGISTRATION_ATTACHMENTS_CREATED_PER_DAY", + "name": "REGISTRATION_ATTACHMENTS_CREATED_PER_DAY" }, { - "value": "DELETING", - "name": "DELETING" + "value": "REGISTRATION_ATTACHMENTS_PER_ACCOUNT", + "name": "REGISTRATION_ATTACHMENTS_PER_ACCOUNT" + }, + { + "value": "REGISTRATION_VERSIONS_CREATED_PER_DAY", + "name": "REGISTRATION_VERSIONS_CREATED_PER_DAY" + }, + { + "value": "REGISTRATIONS_PER_ACCOUNT", + "name": "REGISTRATIONS_PER_ACCOUNT" + }, + { + "value": "SENDER_IDS_PER_ACCOUNT", + "name": "SENDER_IDS_PER_ACCOUNT" + }, + { + "value": "TAGS_PER_RESOURCE", + "name": "TAGS_PER_RESOURCE" + }, + { + "value": "VERIFIED_DESTINATION_NUMBERS_PER_ACCOUNT", + "name": "VERIFIED_DESTINATION_NUMBERS_PER_ACCOUNT" + }, + { + "value": "VERIFICATION_ATTEMPTS_PER_DAY", + "name": "VERIFICATION_ATTEMPTS_PER_DAY" } ] } }, - "com.amazonaws.pinpointsmsvoicev2#PutKeyword": { + "com.amazonaws.pinpointsmsvoicev2#SetDefaultMessageType": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#PutKeywordRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#SetDefaultMessageTypeRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#PutKeywordResult" + "target": "com.amazonaws.pinpointsmsvoicev2#SetDefaultMessageTypeResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" - }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, { "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" - }, { "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, @@ -4985,83 +10289,64 @@ } ], "traits": { - "smithy.api#documentation": "

          Creates or updates a keyword configuration on an origination phone number or\n pool.

          \n

          A keyword is a word that you can search for on a particular phone number or pool. It\n is also a specific word or phrase that an end user can send to your number to elicit a\n response, such as an informational message or a special offer. When your number receives\n a message that begins with a keyword, Amazon Pinpoint responds with a customizable\n message.

          \n

          If you specify a keyword that isn't valid, an Error is returned.

          " + "smithy.api#documentation": "

          Sets the default message type on a configuration set.

          \n

          Choose the category of SMS messages that you plan to send from this account. If you\n send account-related messages or time-sensitive messages such as one-time passcodes,\n choose Transactional. If you plan to send messages that\n contain marketing material or other promotional content, choose Promotional. This setting applies to your entire Amazon Web Services\n account.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#PutKeywordRequest": { + "com.amazonaws.pinpointsmsvoicev2#SetDefaultMessageTypeRequest": { "type": "structure", "members": { - "OriginationIdentity": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneOrPoolIdOrArn", - "traits": { - "smithy.api#documentation": "

          The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or\n SenderIdArn. You can use DescribePhoneNumbers get the values for\n PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used\n to get the values for SenderId and SenderIdArn.

          ", - "smithy.api#required": {} - } - }, - "Keyword": { - "target": "com.amazonaws.pinpointsmsvoicev2#Keyword", + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", "traits": { - "smithy.api#documentation": "

          The new keyword to add.

          ", + "smithy.api#documentation": "

          The configuration set to update with a new default message type. This field can be the\n ConsigurationSetName or ConfigurationSetArn.

          ", "smithy.api#required": {} } }, - "KeywordMessage": { - "target": "com.amazonaws.pinpointsmsvoicev2#KeywordMessage", + "MessageType": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", "traits": { - "smithy.api#documentation": "

          The message associated with the keyword.

          \n
            \n
          • \n

            AUTOMATIC_RESPONSE: A message is sent to the recipient.

            \n
          • \n
          • \n

            OPT_OUT: Keeps the recipient from receiving future messages.

            \n
          • \n
          • \n

            OPT_IN: The recipient wants to receive future messages.

            \n
          • \n
          ", + "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          ", "smithy.api#required": {} } - }, - "KeywordAction": { - "target": "com.amazonaws.pinpointsmsvoicev2#KeywordAction", - "traits": { - "smithy.api#documentation": "

          The action to perform for the new keyword when it is received.

          " - } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#PutKeywordResult": { + "com.amazonaws.pinpointsmsvoicev2#SetDefaultMessageTypeResult": { "type": "structure", "members": { - "OriginationIdentityArn": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

          The PhoneNumberArn or PoolArn that the keyword was associated with.

          " - } - }, - "OriginationIdentity": { + "ConfigurationSetArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The PhoneNumberId or PoolId that the keyword was associated with.

          " - } - }, - "Keyword": { - "target": "com.amazonaws.pinpointsmsvoicev2#Keyword", - "traits": { - "smithy.api#documentation": "

          The keyword that was added.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the updated configuration set.

          " } }, - "KeywordMessage": { - "target": "com.amazonaws.pinpointsmsvoicev2#KeywordMessage", + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", "traits": { - "smithy.api#documentation": "

          The message associated with the keyword.

          " + "smithy.api#documentation": "

          The name of the configuration set that was updated.

          " } }, - "KeywordAction": { - "target": "com.amazonaws.pinpointsmsvoicev2#KeywordAction", + "MessageType": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", "traits": { - "smithy.api#documentation": "

          The action to perform when the keyword is used.

          " + "smithy.api#documentation": "

          The new default message type of the configuration set.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#PutOptedOutNumber": { + "com.amazonaws.pinpointsmsvoicev2#SetDefaultSenderId": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#PutOptedOutNumberRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#SetDefaultSenderIdRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#PutOptedOutNumberResult" + "target": "com.amazonaws.pinpointsmsvoicev2#SetDefaultSenderIdResult" }, "errors": [ { @@ -5081,95 +10366,127 @@ } ], "traits": { - "smithy.api#documentation": "

          Creates an opted out destination phone number in the opt-out list.

          \n

          If the destination phone number isn't valid or if the specified opt-out list doesn't\n exist, an Error is returned.

          " + "smithy.api#documentation": "

          Sets default sender ID on a configuration set.

          \n

          When sending a text message to a destination country that supports sender IDs, the\n default sender ID on the configuration set specified will be used if no dedicated\n origination phone numbers or registered sender IDs are available in your account.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#PutOptedOutNumberRequest": { + "com.amazonaws.pinpointsmsvoicev2#SetDefaultSenderIdRequest": { "type": "structure", "members": { - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", "traits": { - "smithy.api#documentation": "

          The OptOutListName or OptOutListArn to add the phone number to.

          ", + "smithy.api#documentation": "

          The configuration set to updated with a new default SenderId. This field can be the\n ConsigurationSetName or ConfigurationSetArn.

          ", "smithy.api#required": {} } }, - "OptedOutNumber": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "SenderId": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderId", "traits": { - "smithy.api#documentation": "

          The phone number to add to the OptOutList in E.164 format.

          ", + "smithy.api#documentation": "

          The current sender ID for the configuration set. When sending a text message to a\n destination country which supports SenderIds, the default sender ID on the configuration\n set specified on SendTextMessage will be used if no dedicated\n origination phone numbers or registered SenderIds are available in your account, instead\n of a generic sender ID, such as 'NOTICE'.

          ", "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#PutOptedOutNumberResult": { + "com.amazonaws.pinpointsmsvoicev2#SetDefaultSenderIdResult": { "type": "structure", "members": { - "OptOutListArn": { + "ConfigurationSetArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The OptOutListArn that the phone number was removed from.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the updated configuration set.

          " } }, - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", "traits": { - "smithy.api#documentation": "

          The OptOutListName that the phone number was removed from.

          " + "smithy.api#documentation": "

          The name of the configuration set that was updated.

          " } }, - "OptedOutNumber": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "SenderId": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderId", "traits": { - "smithy.api#documentation": "

          The phone number that was added to the OptOutList.

          " + "smithy.api#documentation": "

          The default sender ID to set for the ConfigurationSet.

          " } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#SetTextMessageSpendLimitOverride": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#SetTextMessageSpendLimitOverrideRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#SetTextMessageSpendLimitOverrideResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, - "OptedOutTimestamp": { - "target": "smithy.api#Timestamp", - "traits": { - "smithy.api#documentation": "

          The time that the phone number was added to the OptOutList, in UNIX epoch time format.

          " - } + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, - "EndUserOptedOut": { - "target": "smithy.api#PrimitiveBoolean", + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Sets an account level monthly spend limit override for sending text messages. The\n requested spend limit must be less than or equal to the MaxLimit, which is\n set by Amazon Web Services.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#SetTextMessageSpendLimitOverrideRequest": { + "type": "structure", + "members": { + "MonthlyLimit": { + "target": "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          This is true if it was the end user who requested their phone number be removed.\n

          " + "smithy.api#documentation": "

          The new monthly limit to enforce on text messages.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#RegistrationId": { - "type": "string", + "com.amazonaws.pinpointsmsvoicev2#SetTextMessageSpendLimitOverrideResult": { + "type": "structure", + "members": { + "MonthlyLimit": { + "target": "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit", + "traits": { + "smithy.api#documentation": "

          The current monthly limit to enforce on sending text messages.

          " + } + } + }, "traits": { - "smithy.api#length": { - "min": 1, - "max": 64 - }, - "smithy.api#pattern": "^\\S+$" + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#ReleasePhoneNumber": { + "com.amazonaws.pinpointsmsvoicev2#SetVoiceMessageSpendLimitOverride": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#ReleasePhoneNumberRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#SetVoiceMessageSpendLimitOverrideRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#ReleasePhoneNumberResult" + "target": "com.amazonaws.pinpointsmsvoicev2#SetVoiceMessageSpendLimitOverrideResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" - }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" - }, { "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, @@ -5178,119 +10495,145 @@ } ], "traits": { - "smithy.api#documentation": "

          Releases an existing origination phone number in your account. Once released, a phone\n number is no longer available for sending messages.

          \n

          If the origination phone number has deletion protection enabled or is associated with\n a pool, an Error is returned.

          " + "smithy.api#documentation": "

          Sets an account level monthly spend limit override for sending voice messages. The\n requested spend limit must be less than or equal to the MaxLimit, which is\n set by Amazon Web Services.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#SetVoiceMessageSpendLimitOverrideRequest": { + "type": "structure", + "members": { + "MonthlyLimit": { + "target": "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit", + "traits": { + "smithy.api#documentation": "

          The new monthly limit to enforce on voice messages.

          ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#SetVoiceMessageSpendLimitOverrideResult": { + "type": "structure", + "members": { + "MonthlyLimit": { + "target": "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit", + "traits": { + "smithy.api#documentation": "

          The current monthly limit to enforce on sending voice messages.

          " + } + } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#ReleasePhoneNumberRequest": { + "com.amazonaws.pinpointsmsvoicev2#SnsDestination": { "type": "structure", "members": { - "PhoneNumberId": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberIdOrArn", + "TopicArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#SnsTopicArn", "traits": { - "smithy.api#documentation": "

          The PhoneNumberId or PhoneNumberArn of the phone number to release. You can use DescribePhoneNumbers to get the values for PhoneNumberId and\n PhoneNumberArn.

          ", + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to\n publish events to.

          ", "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#documentation": "

          An object that defines an Amazon SNS destination for events. You can use\n Amazon SNS to send notification when certain events occur.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#ReleasePhoneNumberResult": { + "com.amazonaws.pinpointsmsvoicev2#SnsTopicArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 20, + "max": 2048 + }, + "smithy.api#pattern": "^arn:\\S+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#SpendLimit": { "type": "structure", "members": { - "PhoneNumberArn": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

          The PhoneNumberArn of the phone number that was released.

          " - } - }, - "PhoneNumberId": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

          The PhoneNumberId of the phone number that was released.

          " - } - }, - "PhoneNumber": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", - "traits": { - "smithy.api#documentation": "

          The phone number that was released.

          " - } - }, - "Status": { - "target": "com.amazonaws.pinpointsmsvoicev2#NumberStatus", - "traits": { - "smithy.api#documentation": "

          The current status of the request.

          " - } - }, - "IsoCountryCode": { - "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", - "traits": { - "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or\n region.

          " - } - }, - "MessageType": { - "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", - "traits": { - "smithy.api#documentation": "

          The message type that was associated with the phone number.

          " - } - }, - "NumberCapabilities": { - "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapabilityList", - "traits": { - "smithy.api#documentation": "

          Specifies if the number could be used for text messages, voice, or both.

          " - } - }, - "NumberType": { - "target": "com.amazonaws.pinpointsmsvoicev2#NumberType", - "traits": { - "smithy.api#documentation": "

          The type of number that was released.

          " - } - }, - "MonthlyLeasingPrice": { - "target": "smithy.api#String", + "Name": { + "target": "com.amazonaws.pinpointsmsvoicev2#SpendLimitName", "traits": { - "smithy.api#documentation": "

          The monthly price of the phone number, in US dollars.

          " + "smithy.api#documentation": "

          The name for the SpendLimit.

          ", + "smithy.api#required": {} } }, - "TwoWayEnabled": { - "target": "smithy.api#PrimitiveBoolean", + "EnforcedLimit": { + "target": "smithy.api#PrimitiveLong", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients.

          " + "smithy.api#default": 0, + "smithy.api#documentation": "

          The maximum amount of money, in US dollars, that you want to be able to spend sending\n messages each month. This value has to be less than or equal to the amount in\n MaxLimit. To use this custom limit, Overridden must be set\n to true.

          ", + "smithy.api#required": {} } }, - "TwoWayChannelArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", + "MaxLimit": { + "target": "smithy.api#PrimitiveLong", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the TwoWayChannel.

          " + "smithy.api#default": 0, + "smithy.api#documentation": "

          The maximum amount of money that you are able to spend to send messages each month,\n in US dollars.

          ", + "smithy.api#required": {} } }, - "SelfManagedOptOutsEnabled": { + "Overridden": { "target": "smithy.api#PrimitiveBoolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

          By default this is set to false. When an end recipient sends a message that begins\n with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically\n replies with a customizable message and adds the end recipient to the OptOutList. When\n set to true you're responsible for responding to HELP and STOP requests. You're also\n responsible for tracking and honoring opt-out requests.

          " - } - }, - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", - "traits": { - "smithy.api#documentation": "

          The name of the OptOutList that was associated with the phone number.

          " - } - }, - "CreatedTimestamp": { - "target": "smithy.api#Timestamp", - "traits": { - "smithy.api#documentation": "

          The time when the phone number was created, in UNIX epoch time format.

          " + "smithy.api#documentation": "

          When set to True, the value that has been specified in the\n EnforcedLimit is used to determine the maximum amount in US dollars\n that can be spent to send messages each month, in US dollars.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#documentation": "

          Describes the current Amazon Pinpoint monthly spend limits for sending voice and\n text messages. For more information on increasing your monthly spend limit, see \n Requesting increases to your monthly SMS spending quota for Amazon Pinpoint\n in the Amazon Pinpoint User Guide.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#RequestPhoneNumber": { + "com.amazonaws.pinpointsmsvoicev2#SpendLimitList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#SpendLimit" + } + }, + "com.amazonaws.pinpointsmsvoicev2#SpendLimitName": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "TEXT_MESSAGE_MONTHLY_SPEND_LIMIT", + "name": "TEXT_MESSAGE_MONTHLY_SPEND_LIMIT" + }, + { + "value": "VOICE_MESSAGE_MONTHLY_SPEND_LIMIT", + "name": "VOICE_MESSAGE_MONTHLY_SPEND_LIMIT" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#StringList": { + "type": "list", + "member": { + "target": "smithy.api#String" + } + }, + "com.amazonaws.pinpointsmsvoicev2#StringMap": { + "type": "map", + "key": { + "target": "smithy.api#String" + }, + "value": { + "target": "smithy.api#String" + } + }, + "com.amazonaws.pinpointsmsvoicev2#SubmitRegistrationVersion": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#RequestPhoneNumberRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#SubmitRegistrationVersionRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#RequestPhoneNumberResult" + "target": "com.amazonaws.pinpointsmsvoicev2#SubmitRegistrationVersionResult" }, "errors": [ { @@ -5305,9 +10648,6 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" - }, { "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, @@ -5316,303 +10656,343 @@ } ], "traits": { - "smithy.api#documentation": "

          Request an origination phone number for use in your account. For more information on\n phone number request see Requesting a\n number in the Amazon Pinpoint User Guide.

          " + "smithy.api#documentation": "

          Submit the specified registration for review and approval.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#RequestPhoneNumberRequest": { + "com.amazonaws.pinpointsmsvoicev2#SubmitRegistrationVersionRequest": { "type": "structure", "members": { - "IsoCountryCode": { - "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", - "traits": { - "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          ", - "smithy.api#required": {} - } - }, - "MessageType": { - "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", - "traits": { - "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          ", - "smithy.api#required": {} - } - }, - "NumberCapabilities": { - "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapabilityList", - "traits": { - "smithy.api#documentation": "

          Indicates if the phone number will be used for text messages, voice messages, or both.

          ", - "smithy.api#required": {} - } - }, - "NumberType": { - "target": "com.amazonaws.pinpointsmsvoicev2#RequestableNumberType", - "traits": { - "smithy.api#documentation": "

          The type of phone number to request.

          ", - "smithy.api#required": {} - } - }, - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", - "traits": { - "smithy.api#documentation": "

          The name of the OptOutList to associate with the phone number. You can use the\n OutOutListName or OptPutListArn.

          " - } - }, - "PoolId": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolIdOrArn", - "traits": { - "smithy.api#documentation": "

          The pool to associated with the phone number. You can use the PoolId or PoolArn.

          " - } - }, "RegistrationId": { - "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationId", - "traits": { - "smithy.api#documentation": "

          Use this field to attach your phone number for an external registration\n process.

          " - } - }, - "DeletionProtectionEnabled": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "

          By default this is set to false. When set to true the phone number can't be\n deleted.

          " - } - }, - "Tags": { - "target": "com.amazonaws.pinpointsmsvoicev2#TagList", - "traits": { - "smithy.api#documentation": "

          An array of tags (key and value pairs) associate with the requested phone number.\n

          " - } - }, - "ClientToken": { - "target": "com.amazonaws.pinpointsmsvoicev2#ClientToken", + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationIdOrArn", "traits": { - "smithy.api#documentation": "

          Unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If you don't specify a client token, a randomly generated token is used for the\n request to ensure idempotency.

          ", - "smithy.api#idempotencyToken": {} + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#RequestPhoneNumberResult": { + "com.amazonaws.pinpointsmsvoicev2#SubmitRegistrationVersionResult": { "type": "structure", "members": { - "PhoneNumberArn": { + "RegistrationArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the requested phone number.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the registration.

          ", + "smithy.api#required": {} } }, - "PhoneNumberId": { + "RegistrationId": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The unique identifier of the new phone number.

          " - } - }, - "PhoneNumber": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", - "traits": { - "smithy.api#documentation": "

          The new phone number that was requested.

          " - } - }, - "Status": { - "target": "com.amazonaws.pinpointsmsvoicev2#NumberStatus", - "traits": { - "smithy.api#documentation": "

          The current status of the request.

          " - } - }, - "IsoCountryCode": { - "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", - "traits": { - "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          " - } - }, - "MessageType": { - "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", - "traits": { - "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          " + "smithy.api#documentation": "

          The unique identifier for the registration.

          ", + "smithy.api#required": {} } }, - "NumberCapabilities": { - "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapabilityList", + "VersionNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionNumber", "traits": { - "smithy.api#documentation": "

          Indicates if the phone number will be used for text messages, voice messages or both.\n

          " + "smithy.api#documentation": "

          The version number of the registration.

          ", + "smithy.api#required": {} } }, - "NumberType": { - "target": "com.amazonaws.pinpointsmsvoicev2#RequestableNumberType", + "RegistrationVersionStatus": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionStatus", "traits": { - "smithy.api#documentation": "

          The type of number that was released.

          " + "smithy.api#documentation": "

          The status of the registration version.

          \n
            \n
          • \n

            \n DRAFT: The initial status of a registration version after it’s created.

            \n
          • \n
          • \n

            \n SUBMITTED: Your registration has been submitted.

            \n
          • \n
          • \n

            \n REVIEWING: Your registration has been accepted and is being reviewed.

            \n
          • \n
          • \n

            \n APPROVED: Your registration has been approved.

            \n
          • \n
          • \n

            \n DISCARDED: You've abandon this version of their registration to start over with a new version.

            \n
          • \n
          • \n

            \n DENIED: You must fix your registration and resubmit it.

            \n
          • \n
          • \n

            \n REVOKED: Your previously approved registration has been revoked.

            \n
          • \n
          • \n

            \n ARCHIVED: Your previously approved registration version moves into this status when a more recently submitted version is approved.

            \n
          • \n
          ", + "smithy.api#required": {} } }, - "MonthlyLeasingPrice": { - "target": "smithy.api#String", + "RegistrationVersionStatusHistory": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationVersionStatusHistory", "traits": { - "smithy.api#documentation": "

          The monthly price, in US dollars, to lease the phone number.

          " + "smithy.api#documentation": "

          The RegistrationVersionStatusHistory object contains the time stamps for when the reservations status changes.

          ", + "smithy.api#required": {} } - }, - "TwoWayEnabled": { - "target": "smithy.api#PrimitiveBoolean", + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#SupportedAssociation": { + "type": "structure", + "members": { + "ResourceType": { + "target": "smithy.api#String", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients.

          " + "smithy.api#documentation": "

          Defines the behavior of when an origination identity and registration can be associated with each other.

          ", + "smithy.api#required": {} } }, - "TwoWayChannelArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", "traits": { - "smithy.api#documentation": "

          The ARN used to identify the two way channel.

          " + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

          " } }, - "SelfManagedOptOutsEnabled": { - "target": "smithy.api#PrimitiveBoolean", + "AssociationBehavior": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationAssociationBehavior", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          By default this is set to false. When an end recipient sends a message that begins\n with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically\n replies with a customizable message and adds the end recipient to the OptOutList. When\n set to true you're responsible for responding to HELP and STOP requests. You're also\n responsible for tracking and honoring opt-out requests.

          " + "smithy.api#documentation": "

          The association behavior.

          \n
            \n
          • \n

            \n ASSOCIATE_BEFORE_SUBMIT The origination identity has to be supplied when creating a registration.

            \n
          • \n
          • \n

            \n ASSOCIATE_ON_APPROVAL This applies to all short code registrations. The short code will be automatically provisioned once the registration is approved.

            \n
          • \n
          • \n

            \n ASSOCIATE_AFTER_COMPLETE This applies to phone number registrations when you must complete a registration first, then associate one or more phone numbers later. For example 10DLC campaigns and long codes.

            \n
          • \n
          ", + "smithy.api#required": {} } }, - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", + "DisassociationBehavior": { + "target": "com.amazonaws.pinpointsmsvoicev2#RegistrationDisassociationBehavior", "traits": { - "smithy.api#documentation": "

          The name of the OptOutList that is associated with the requested phone number.

          " + "smithy.api#documentation": "

          The disassociation behavior.

          \n
            \n
          • \n

            \n DISASSOCIATE_ALL_CLOSES_REGISTRATION All origination identities must be disassociated from the registration before the registration can be closed.

            \n
          • \n
          • \n

            \n DISASSOCIATE_ALL_ALLOWS_DELETE_REGISTRATION All origination identities must be disassociated from the registration before the registration can be deleted.

            \n
          • \n
          • \n

            \n DELETE_REGISTRATION_DISASSOCIATES The registration can be deleted and all origination identities will be disasscoiated.

            \n
          • \n
          ", + "smithy.api#required": {} } - }, - "DeletionProtectionEnabled": { - "target": "smithy.api#PrimitiveBoolean", + } + }, + "traits": { + "smithy.api#documentation": "

          The processing rules for when a registration can be associated with an origination identity and disassociated from an origination identity.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#SupportedAssociationList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#SupportedAssociation" + } + }, + "com.amazonaws.pinpointsmsvoicev2#Tag": { + "type": "structure", + "members": { + "Key": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagKey", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          By default this is set to false. When set to true the phone number can't be deleted.\n

          " + "smithy.api#documentation": "

          The key identifier, or name, of the tag.

          ", + "smithy.api#required": {} } }, - "PoolId": { - "target": "smithy.api#String", + "Value": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagValue", "traits": { - "smithy.api#documentation": "

          The unique identifier of the pool associated with the phone number

          " + "smithy.api#documentation": "

          The string value associated with the key of the tag.

          ", + "smithy.api#required": {} } + } + }, + "traits": { + "smithy.api#documentation": "

          The list of tags to be added to the specified topic.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#TagKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 }, - "Tags": { - "target": "com.amazonaws.pinpointsmsvoicev2#TagList", + "smithy.api#pattern": "^.+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#TagKeyList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagKey" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 200 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#TagList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#Tag" + }, + "traits": { + "smithy.api#length": { + "max": 200 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#TagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagResourceRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagResourceResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

          Adds or overwrites only the specified tags for the specified Amazon Pinpoint SMS\n Voice, version 2 resource. When you specify an existing tag key, the value is\n overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag\n consists of a key and an optional value. Tag keys must be unique per resource. For more\n information about tags, see Tagging Amazon Pinpoint resources in the Amazon Pinpoint Developer\n Guide.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#TagResourceRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#AmazonResourceName", "traits": { - "smithy.api#documentation": "

          An array of key and value pair tags that are associated with the phone number.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the resource.

          ", + "smithy.api#required": {} } }, - "CreatedTimestamp": { - "target": "smithy.api#Timestamp", + "Tags": { + "target": "com.amazonaws.pinpointsmsvoicev2#NonEmptyTagList", "traits": { - "smithy.api#documentation": "

          The time when the phone number was created, in UNIX epoch time format.

          " + "smithy.api#documentation": "

          An array of key and value pair tags that are associated with the resource.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#RequestableNumberType": { + "com.amazonaws.pinpointsmsvoicev2#TagResourceResult": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#TagValue": { "type": "string", "traits": { - "smithy.api#enum": [ - { - "value": "LONG_CODE", - "name": "LONG_CODE" - }, - { - "value": "TOLL_FREE", - "name": "TOLL_FREE" - }, - { - "value": "TEN_DLC", - "name": "TEN_DLC" - } - ] + "smithy.api#length": { + "max": 256 + }, + "smithy.api#pattern": "^.*$" } }, - "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException": { + "com.amazonaws.pinpointsmsvoicev2#TextMessageBody": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1600 + }, + "smithy.api#pattern": "^(?!\\s*$)[\\s\\S]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#TextMessageOriginationIdentity": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[A-Za-z0-9_:/\\+-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#TextValidation": { "type": "structure", "members": { - "Message": { - "target": "smithy.api#String" + "MinLength": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

          The minimum number of characters for the text field.

          ", + "smithy.api#required": {} + } }, - "ResourceType": { - "target": "com.amazonaws.pinpointsmsvoicev2#ResourceType", + "MaxLength": { + "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

          The type of resource that caused the exception.

          " + "smithy.api#documentation": "

          The maximum number of characters for the text field.

          ", + "smithy.api#required": {} } }, - "ResourceId": { + "Pattern": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The unique identifier of the resource.

          " + "smithy.api#documentation": "

          The regular expression used to validate the text field.

          ", + "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

          A requested resource couldn't be found.

          ", - "smithy.api#error": "client" + "smithy.api#documentation": "

          Validation rules for a text field.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#ResourceType": { + "com.amazonaws.pinpointsmsvoicev2#TextValue": { "type": "string", "traits": { - "smithy.api#enum": [ - { - "value": "account", - "name": "ACCOUNT" - }, - { - "value": "phone-number", - "name": "PHONE_NUMBER" - }, - { - "value": "sender-id", - "name": "SENDER_ID" - }, - { - "value": "pool", - "name": "POOL" - }, - { - "value": "configuration-set", - "name": "CONFIGURATION_SET" - }, - { - "value": "opt-out-list", - "name": "OPT_OUT_LIST" - }, - { - "value": "event-destination", - "name": "EVENT_DESTINATION" - }, - { - "value": "keyword", - "name": "KEYWORD" - }, - { - "value": "opted-out-number", - "name": "OPTED_OUT_NUMBER" - }, - { - "value": "registration", - "name": "REGISTRATION" - } - ] + "smithy.api#length": { + "min": 1, + "max": 2048 + } } }, - "com.amazonaws.pinpointsmsvoicev2#SendTextMessage": { + "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": { + "type": "structure", + "members": { + "Message": { + "target": "smithy.api#String" + } + }, + "traits": { + "smithy.api#documentation": "

          An error that occurred because too many requests were sent during a certain amount of\n time.

          ", + "smithy.api#error": "client", + "smithy.api#retryable": { + "throttling": true + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#TimeToLive": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 5, + "max": 259200 + } + } + }, + "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 20, + "max": 2048 + }, + "smithy.api#pattern": "^\\S+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#UntagResource": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#SendTextMessageRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#UntagResourceRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#SendTextMessageResult" + "target": "com.amazonaws.pinpointsmsvoicev2#UntagResourceResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" - }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, { "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" - }, { "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, @@ -5621,100 +11001,45 @@ } ], "traits": { - "smithy.api#documentation": "

          Creates a new text message and sends it to a recipient's phone number.

          \n

          SMS throughput limits are measured in Message Parts per Second (MPS). Your MPS limit\n depends on the destination country of your messages, as well as the type of phone number\n (origination number) that you use to send the message. For more information, see Message Parts per\n Second (MPS) limits in the Amazon Pinpoint User\n Guide.

          " + "smithy.api#documentation": "

          Removes the association of the specified tags from an Amazon Pinpoint SMS Voice V2\n resource. For more information on tags see Tagging Amazon Pinpoint resources in the Amazon Pinpoint Developer\n Guide.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#SendTextMessageRequest": { + "com.amazonaws.pinpointsmsvoicev2#UntagResourceRequest": { "type": "structure", "members": { - "DestinationPhoneNumber": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "ResourceArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#AmazonResourceName", "traits": { - "smithy.api#documentation": "

          The destination phone number in E.164 format.

          ", + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the resource.

          ", "smithy.api#required": {} } }, - "OriginationIdentity": { - "target": "com.amazonaws.pinpointsmsvoicev2#TextMessageOriginationIdentity", - "traits": { - "smithy.api#documentation": "

          The origination identity of the message. This can be either the PhoneNumber,\n PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

          " - } - }, - "MessageBody": { - "target": "com.amazonaws.pinpointsmsvoicev2#TextMessageBody", - "traits": { - "smithy.api#documentation": "

          The body of the text message.

          " - } - }, - "MessageType": { - "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", - "traits": { - "smithy.api#documentation": "

          The type of message. Valid values are\n TRANSACTIONAL\n for messages that are critical or time-sensitive and PROMOTIONAL for messages that\n aren't critical or time-sensitive.

          " - } - }, - "Keyword": { - "target": "com.amazonaws.pinpointsmsvoicev2#Keyword", - "traits": { - "smithy.api#documentation": "

          When you register a short code in the US, you must specify a program name. If you\n don’t have a US short code, omit this attribute.

          " - } - }, - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", - "traits": { - "smithy.api#documentation": "

          The name of the configuration set to use. This can be either the ConfigurationSetName\n or ConfigurationSetArn.

          " - } - }, - "MaxPrice": { - "target": "com.amazonaws.pinpointsmsvoicev2#MaxPrice", - "traits": { - "smithy.api#documentation": "

          The maximum amount that you want to spend, in US dollars, per each text message part.\n A text message can contain multiple parts.

          " - } - }, - "TimeToLive": { - "target": "com.amazonaws.pinpointsmsvoicev2#TimeToLive", - "traits": { - "smithy.api#documentation": "

          How long the text message is valid for. By default this is 72 hours.

          " - } - }, - "Context": { - "target": "com.amazonaws.pinpointsmsvoicev2#ContextMap", - "traits": { - "smithy.api#documentation": "

          You can specify custom data in this field. If you do, that data is logged to the event\n destination.

          " - } - }, - "DestinationCountryParameters": { - "target": "com.amazonaws.pinpointsmsvoicev2#DestinationCountryParameters", - "traits": { - "smithy.api#documentation": "

          This field is used for any country-specific registration requirements. Currently, this\n setting is only used when you send messages to recipients in India using a sender ID.\n For more information see Special requirements for sending SMS messages to recipients in India.\n

          " - } - }, - "DryRun": { - "target": "smithy.api#PrimitiveBoolean", + "TagKeys": { + "target": "com.amazonaws.pinpointsmsvoicev2#TagKeyList", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          When set to true, the message is checked and validated, but isn't sent to the end\n recipient.

          " + "smithy.api#documentation": "

          An array of tag key values to unassociate with the resource.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#SendTextMessageResult": { + "com.amazonaws.pinpointsmsvoicev2#UntagResourceResult": { "type": "structure", - "members": { - "MessageId": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

          The unique identifier for the message.

          " - } - } + "members": {}, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#SendVoiceMessage": { + "com.amazonaws.pinpointsmsvoicev2#UpdateEventDestination": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#SendVoiceMessageRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#UpdateEventDestinationRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#SendVoiceMessageResult" + "target": "com.amazonaws.pinpointsmsvoicev2#UpdateEventDestinationResult" }, "errors": [ { @@ -5729,9 +11054,6 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" - }, { "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, @@ -5740,331 +11062,298 @@ } ], "traits": { - "smithy.api#documentation": "

          Allows you to send a request that sends a text message through Amazon Pinpoint.\n This operation uses Amazon Polly to\n convert a text script into a voice message.

          " + "smithy.api#documentation": "

          Updates an existing event destination in a configuration set. You can update the\n IAM role ARN for CloudWatch Logs and Kinesis Data Firehose. You can\n also enable or disable the event destination.

          \n

          You may want to update an event destination to change its matching event types or\n updating the destination resource ARN. You can't change an event destination's type\n between CloudWatch Logs, Kinesis Data Firehose, and Amazon SNS.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#SendVoiceMessageRequest": { + "com.amazonaws.pinpointsmsvoicev2#UpdateEventDestinationRequest": { "type": "structure", "members": { - "DestinationPhoneNumber": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", "traits": { - "smithy.api#documentation": "

          The destination phone number in E.164 format.

          ", + "smithy.api#documentation": "

          The configuration set to update with the new event destination. Valid values for this\n can be the ConfigurationSetName or ConfigurationSetArn.

          ", "smithy.api#required": {} } }, - "OriginationIdentity": { - "target": "com.amazonaws.pinpointsmsvoicev2#VoiceMessageOriginationIdentity", + "EventDestinationName": { + "target": "com.amazonaws.pinpointsmsvoicev2#EventDestinationName", "traits": { - "smithy.api#documentation": "

          The origination identity to use for the voice call. This can be the PhoneNumber,\n PhoneNumberId, PhoneNumberArn, PoolId, or PoolArn.

          ", + "smithy.api#documentation": "

          The name to use for the event destination.

          ", "smithy.api#required": {} } }, - "MessageBody": { - "target": "com.amazonaws.pinpointsmsvoicev2#VoiceMessageBody", + "Enabled": { + "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "

          The text to convert to a voice message.

          " + "smithy.api#documentation": "

          When set to true logging is enabled.

          " } }, - "MessageBodyTextType": { - "target": "com.amazonaws.pinpointsmsvoicev2#VoiceMessageBodyTextType", + "MatchingEventTypes": { + "target": "com.amazonaws.pinpointsmsvoicev2#EventTypeList", "traits": { - "smithy.api#documentation": "

          Specifies if the MessageBody field contains text or speech synthesis\n markup language (SSML).

          \n
            \n
          • \n

            TEXT: This is the default value. When used the maximum character limit is\n 3000.

            \n
          • \n
          • \n

            SSML: When used the maximum character limit is 6000 including SSML\n tagging.

            \n
          • \n
          " + "smithy.api#documentation": "

          An array of event types that determine which events to log.

          \n \n

          The TEXT_SENT event type is not supported.

          \n
          " } }, - "VoiceId": { - "target": "com.amazonaws.pinpointsmsvoicev2#VoiceId", + "CloudWatchLogsDestination": { + "target": "com.amazonaws.pinpointsmsvoicev2#CloudWatchLogsDestination", "traits": { - "smithy.api#documentation": "

          The voice for the Amazon Polly\n service to use. By default this is set to \"MATTHEW\".

          " + "smithy.api#documentation": "

          An object that contains information about an event destination that sends data to\n CloudWatch Logs.

          " } }, - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", + "KinesisFirehoseDestination": { + "target": "com.amazonaws.pinpointsmsvoicev2#KinesisFirehoseDestination", "traits": { - "smithy.api#documentation": "

          The name of the configuration set to use. This can be either the ConfigurationSetName\n or ConfigurationSetArn.

          " + "smithy.api#documentation": "

          An object that contains information about an event destination for logging to Kinesis Data Firehose.

          " } }, - "MaxPricePerMinute": { - "target": "com.amazonaws.pinpointsmsvoicev2#MaxPrice", + "SnsDestination": { + "target": "com.amazonaws.pinpointsmsvoicev2#SnsDestination", "traits": { - "smithy.api#documentation": "

          The maximum amount to spend per voice message, in US dollars.

          " + "smithy.api#documentation": "

          An object that contains information about an event destination that sends data to\n Amazon SNS.

          " } - }, - "TimeToLive": { - "target": "com.amazonaws.pinpointsmsvoicev2#TimeToLive", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.pinpointsmsvoicev2#UpdateEventDestinationResult": { + "type": "structure", + "members": { + "ConfigurationSetArn": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          How long the voice message is valid for. By default this is 72 hours.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the ConfigurationSet that was updated.

          " } }, - "Context": { - "target": "com.amazonaws.pinpointsmsvoicev2#ContextMap", + "ConfigurationSetName": { + "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", "traits": { - "smithy.api#documentation": "

          You can specify custom data in this field. If you do, that data is logged to the event\n destination.

          " + "smithy.api#documentation": "

          The name of the configuration set.

          " } }, - "DryRun": { - "target": "smithy.api#PrimitiveBoolean", + "EventDestination": { + "target": "com.amazonaws.pinpointsmsvoicev2#EventDestination", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          When set to true, the message is checked and validated, but isn't sent to the end\n recipient.

          " + "smithy.api#documentation": "

          An EventDestination object containing the details of where events will be logged.\n

          " } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#SendVoiceMessageResult": { - "type": "structure", - "members": { - "MessageId": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

          The unique identifier for the message.

          " - } + "com.amazonaws.pinpointsmsvoicev2#UpdatePhoneNumber": { + "type": "operation", + "input": { + "target": "com.amazonaws.pinpointsmsvoicev2#UpdatePhoneNumberRequest" + }, + "output": { + "target": "com.amazonaws.pinpointsmsvoicev2#UpdatePhoneNumberResult" + }, + "errors": [ + { + "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" } - } - }, - "com.amazonaws.pinpointsmsvoicev2#SenderId": { - "type": "string", + ], "traits": { - "smithy.api#length": { - "min": 1, - "max": 11 - }, - "smithy.api#pattern": "^[A-Za-z0-9_-]+$" + "smithy.api#documentation": "

          Updates the configuration of an existing origination phone number. You can update the\n opt-out list, enable or disable two-way messaging, change the TwoWayChannelArn, enable\n or disable self-managed opt-outs, and enable or disable deletion protection.

          \n

          If the origination phone number is associated with a pool, an error is\n returned.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#SenderIdAndCountry": { + "com.amazonaws.pinpointsmsvoicev2#UpdatePhoneNumberRequest": { "type": "structure", "members": { - "SenderId": { - "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdOrArn", + "PhoneNumberId": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberIdOrArn", "traits": { - "smithy.api#documentation": "

          The unique identifier of the sender.

          ", + "smithy.api#documentation": "

          The unique identifier of the phone number. Valid values for this field can be either\n the PhoneNumberId or PhoneNumberArn.

          ", "smithy.api#required": {} } }, - "IsoCountryCode": { - "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "TwoWayEnabled": { + "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients.

          " } - } - }, - "traits": { - "smithy.api#documentation": "

          The alphanumeric sender ID in a specific country that you want to describe. For more\n information on sender IDs see Requesting\n sender IDs for SMS messaging with Amazon Pinpoint\n in the Amazon Pinpoint User Guide.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#SenderIdFilter": { - "type": "structure", - "members": { - "Name": { - "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdFilterName", + }, + "TwoWayChannelArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", "traits": { - "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the two way channel.

          " } }, - "Values": { - "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", + "TwoWayChannelRole": { + "target": "com.amazonaws.pinpointsmsvoicev2#IamRoleArn", "traits": { - "smithy.api#documentation": "

          An array of values to filter for.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

          " + } + }, + "SelfManagedOptOutsEnabled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

          By default this is set to false. When an end recipient sends a message that begins\n with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically\n replies with a customizable message and adds the end recipient to the OptOutList. When\n set to true you're responsible for responding to HELP and STOP requests. You're also\n responsible for tracking and honoring opt-out requests.

          " + } + }, + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", + "traits": { + "smithy.api#documentation": "

          The OptOutList to add the phone number to. Valid values for this field can be either\n the OutOutListName or OutOutListArn.

          " + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

          By default this is set to false. When set to true the phone number can't be deleted.\n

          " } } }, "traits": { - "smithy.api#documentation": "

          The information for a sender ID that meets a specified criteria.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#SenderIdFilterList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdFilter" - }, - "traits": { - "smithy.api#length": { - "max": 20 - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#SenderIdFilterName": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "sender-id", - "name": "SENDER_ID" - }, - { - "value": "iso-country-code", - "name": "ISO_COUNTRY_CODE" - }, - { - "value": "message-type", - "name": "MESSAGE_TYPE" - } - ] + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#SenderIdInformation": { + "com.amazonaws.pinpointsmsvoicev2#UpdatePhoneNumberResult": { "type": "structure", "members": { - "SenderIdArn": { + "PhoneNumberArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) associated with the SenderId.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the updated phone number.

          " } }, - "SenderId": { - "target": "com.amazonaws.pinpointsmsvoicev2#SenderId", + "PhoneNumberId": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The alphanumeric sender ID in a specific country that you'd like to describe.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The unique identifier of the phone number.

          " + } + }, + "PhoneNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", + "traits": { + "smithy.api#documentation": "

          The phone number that was updated.

          " + } + }, + "Status": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberStatus", + "traits": { + "smithy.api#documentation": "

          The current status of the request.

          " } }, "IsoCountryCode": { "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", "traits": { - "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          " } }, - "MessageTypes": { - "target": "com.amazonaws.pinpointsmsvoicev2#MessageTypeList", + "MessageType": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", "traits": { - "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          " + } + }, + "NumberCapabilities": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapabilityList", + "traits": { + "smithy.api#documentation": "

          Specifies if the number could be used for text messages, voice or both.

          " + } + }, + "NumberType": { + "target": "com.amazonaws.pinpointsmsvoicev2#NumberType", + "traits": { + "smithy.api#documentation": "

          The type of number that was requested.

          " } }, "MonthlyLeasingPrice": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The monthly leasing price, in US dollars.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The monthly leasing price of the phone number, in US dollars.

          " } - } - }, - "traits": { - "smithy.api#documentation": "

          The information for all SenderIds in an Amazon Web Services account.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#SenderIdInformationList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdInformation" - } - }, - "com.amazonaws.pinpointsmsvoicev2#SenderIdList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdAndCountry" - }, - "traits": { - "smithy.api#length": { - "max": 5 - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#SenderIdOrArn": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 256 }, - "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" - } - }, - "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException": { - "type": "structure", - "members": { - "Message": { - "target": "smithy.api#String" + "TwoWayEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients.

          " + } }, - "Reason": { - "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededExceptionReason", + "TwoWayChannelArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", "traits": { - "smithy.api#documentation": "

          The reason for the exception.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the two way channel.

          " } - } - }, - "traits": { - "smithy.api#documentation": "

          The request would cause a service quota to be exceeded.

          ", - "smithy.api#error": "client" - } - }, - "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededExceptionReason": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "CONFIGURATION_SETS_PER_ACCOUNT", - "name": "CONFIGURATION_SETS_PER_ACCOUNT" - }, - { - "value": "DAILY_DESTINATION_CALL_LIMIT", - "name": "DAILY_DESTINATION_CALL_LIMIT" - }, - { - "value": "EVENT_DESTINATIONS_PER_CONFIGURATION_SET", - "name": "EVENT_DESTINATIONS_PER_CONFIGURATION_SET" - }, - { - "value": "KEYWORDS_PER_PHONE_NUMBER", - "name": "KEYWORDS_PER_PHONE_NUMBER" - }, - { - "value": "KEYWORDS_PER_POOL", - "name": "KEYWORDS_PER_POOL" - }, - { - "value": "MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT", - "name": "MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT" - }, - { - "value": "MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE", - "name": "MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE" - }, - { - "value": "OPT_OUT_LISTS_PER_ACCOUNT", - "name": "OPT_OUT_LISTS_PER_ACCOUNT" - }, - { - "value": "ORIGINATION_IDENTITIES_PER_POOL", - "name": "ORIGINATION_IDENTITIES_PER_POOL" - }, - { - "value": "PHONE_NUMBERS_PER_ACCOUNT", - "name": "PHONE_NUMBERS_PER_ACCOUNT" - }, - { - "value": "PHONE_NUMBERS_PER_REGISTRATION", - "name": "PHONE_NUMBERS_PER_REGISTRATION" - }, - { - "value": "POOLS_PER_ACCOUNT", - "name": "POOLS_PER_ACCOUNT" - }, - { - "value": "TAGS_PER_RESOURCE", - "name": "TAGS_PER_RESOURCE" + }, + "TwoWayChannelRole": { + "target": "com.amazonaws.pinpointsmsvoicev2#IamRoleArn", + "traits": { + "smithy.api#documentation": "

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

          " + } + }, + "SelfManagedOptOutsEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          This is true if self managed opt-out are enabled.

          " } - ] + }, + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", + "traits": { + "smithy.api#documentation": "

          The name of the OptOutList associated with the phone number.

          " + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          When set to true the phone number can't be deleted.

          " + } + }, + "RegistrationId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration.

          " + } + }, + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

          The time when the phone number was created, in UNIX epoch time format.

          " + } + } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#SetDefaultMessageType": { + "com.amazonaws.pinpointsmsvoicev2#UpdatePool": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#SetDefaultMessageTypeRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#UpdatePoolRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#SetDefaultMessageTypeResult" + "target": "com.amazonaws.pinpointsmsvoicev2#UpdatePoolResult" }, "errors": [ { "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, @@ -6079,129 +11368,157 @@ } ], "traits": { - "smithy.api#documentation": "

          Sets the default message type on a configuration set.

          \n

          Choose the category of SMS messages that you plan to send from this account. If you\n send account-related messages or time-sensitive messages such as one-time passcodes,\n choose Transactional. If you plan to send messages that\n contain marketing material or other promotional content, choose Promotional. This setting applies to your entire Amazon Web Services\n account.

          " + "smithy.api#documentation": "

          Updates the configuration of an existing pool. You can update the opt-out list, enable\n or disable two-way messaging, change the TwoWayChannelArn, enable or\n disable self-managed opt-outs, enable or disable deletion protection, and enable or\n disable shared routes.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#SetDefaultMessageTypeRequest": { + "com.amazonaws.pinpointsmsvoicev2#UpdatePoolRequest": { "type": "structure", "members": { - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", + "PoolId": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolIdOrArn", "traits": { - "smithy.api#documentation": "

          The configuration set to update with a new default message type. This field can be the\n ConsigurationSetName or ConfigurationSetArn.

          ", + "smithy.api#documentation": "

          The unique identifier of the pool to update. Valid values are either the PoolId or\n PoolArn.

          ", "smithy.api#required": {} } }, - "MessageType": { - "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", + "TwoWayEnabled": { + "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients.

          " + } + }, + "TwoWayChannelArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the two way channel.

          " + } + }, + "TwoWayChannelRole": { + "target": "com.amazonaws.pinpointsmsvoicev2#IamRoleArn", + "traits": { + "smithy.api#documentation": "

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

          " + } + }, + "SelfManagedOptOutsEnabled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

          By default this is set to false. When an end recipient sends a message that begins\n with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically\n replies with a customizable message and adds the end recipient to the OptOutList. When\n set to true you're responsible for responding to HELP and STOP requests. You're also\n responsible for tracking and honoring opt-out requests.

          " + } + }, + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", + "traits": { + "smithy.api#documentation": "

          The OptOutList to associate with the pool. Valid values are either OptOutListName or\n OptOutListArn.

          " + } + }, + "SharedRoutesEnabled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

          Indicates whether shared routes are enabled for the pool.

          " + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

          When set to true the pool can't be deleted.

          " } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#SetDefaultMessageTypeResult": { + "com.amazonaws.pinpointsmsvoicev2#UpdatePoolResult": { "type": "structure", "members": { - "ConfigurationSetArn": { + "PoolArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the updated configuration set.

          " + "smithy.api#documentation": "

          The ARN of the pool.

          " } }, - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", + "PoolId": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The name of the configuration set that was updated.

          " + "smithy.api#documentation": "

          The unique identifier of the pool.

          " + } + }, + "Status": { + "target": "com.amazonaws.pinpointsmsvoicev2#PoolStatus", + "traits": { + "smithy.api#documentation": "

          The current status of the pool update request.

          " } }, "MessageType": { "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", "traits": { - "smithy.api#documentation": "

          The new default message type of the configuration set.

          " + "smithy.api#documentation": "

          The type of message for the pool to use.

          " } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#SetDefaultSenderId": { - "type": "operation", - "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#SetDefaultSenderIdRequest" - }, - "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#SetDefaultSenderIdResult" - }, - "errors": [ - { - "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" + "TwoWayEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients.

          " + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + "TwoWayChannelArn": { + "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", + "traits": { + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the two way channel.

          " + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" + "TwoWayChannelRole": { + "target": "com.amazonaws.pinpointsmsvoicev2#IamRoleArn", + "traits": { + "smithy.api#documentation": "

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

          " + } }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

          Sets default sender ID on a configuration set.

          \n

          When sending a text message to a destination country that supports sender IDs, the\n default sender ID on the configuration set specified will be used if no dedicated\n origination phone numbers or registered sender IDs are available in your account.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#SetDefaultSenderIdRequest": { - "type": "structure", - "members": { - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", + "SelfManagedOptOutsEnabled": { + "target": "smithy.api#PrimitiveBoolean", "traits": { - "smithy.api#documentation": "

          The configuration set to updated with a new default SenderId. This field can be the\n ConsigurationSetName or ConfigurationSetArn.

          ", - "smithy.api#required": {} + "smithy.api#default": false, + "smithy.api#documentation": "

          When an end recipient sends a message that begins with HELP or STOP to one of your\n dedicated numbers, Amazon Pinpoint automatically replies with a customizable message\n and adds the end recipient to the OptOutList. When set to true you're responsible for\n responding to HELP and STOP requests. You're also responsible for tracking and honoring\n opt-out requests.

          " } }, - "SenderId": { - "target": "com.amazonaws.pinpointsmsvoicev2#SenderId", + "OptOutListName": { + "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", "traits": { - "smithy.api#documentation": "

          The current sender ID for the configuration set. When sending a text message to a\n destination country which supports SenderIds, the default sender ID on the configuration\n set specified on SendTextMessage will be used if no dedicated\n origination phone numbers or registered SenderIds are available in your account, instead\n of a generic sender ID, such as 'NOTICE'.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The name of the OptOutList associated with the pool.

          " } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#SetDefaultSenderIdResult": { - "type": "structure", - "members": { - "ConfigurationSetArn": { - "target": "smithy.api#String", + }, + "SharedRoutesEnabled": { + "target": "smithy.api#PrimitiveBoolean", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the updated configuration set.

          " + "smithy.api#default": false, + "smithy.api#documentation": "

          Indicates whether shared routes are enabled for the pool.

          " } }, - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", + "DeletionProtectionEnabled": { + "target": "smithy.api#PrimitiveBoolean", "traits": { - "smithy.api#documentation": "

          The name of the configuration set that was updated.

          " + "smithy.api#default": false, + "smithy.api#documentation": "

          When set to true the pool can't be deleted.

          " } }, - "SenderId": { - "target": "com.amazonaws.pinpointsmsvoicev2#SenderId", + "CreatedTimestamp": { + "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

          The default sender ID to set for the ConfigurationSet.

          " + "smithy.api#documentation": "

          The time when the pool was created, in UNIX epoch time format.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#SetTextMessageSpendLimitOverride": { + "com.amazonaws.pinpointsmsvoicev2#UpdateSenderId": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#SetTextMessageSpendLimitOverrideRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#UpdateSenderIdRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#SetTextMessageSpendLimitOverrideResult" + "target": "com.amazonaws.pinpointsmsvoicev2#UpdateSenderIdResult" }, "errors": [ { @@ -6210,6 +11527,9 @@ { "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, + { + "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" + }, { "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" }, @@ -6218,674 +11538,484 @@ } ], "traits": { - "smithy.api#documentation": "

          Sets an account level monthly spend limit override for sending text messages. The\n requested spend limit must be less than or equal to the MaxLimit, which is\n set by Amazon Web Services.

          " + "smithy.api#documentation": "

          Updates the configuration of an existing sender ID.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#SetTextMessageSpendLimitOverrideRequest": { + "com.amazonaws.pinpointsmsvoicev2#UpdateSenderIdRequest": { "type": "structure", "members": { - "MonthlyLimit": { - "target": "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit", + "SenderId": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderIdOrArn", "traits": { - "smithy.api#documentation": "

          The new monthly limit to enforce on text messages.

          ", + "smithy.api#documentation": "

          The sender ID to update.

          ", "smithy.api#required": {} } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#SetTextMessageSpendLimitOverrideResult": { - "type": "structure", - "members": { - "MonthlyLimit": { - "target": "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit", + }, + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", "traits": { - "smithy.api#documentation": "

          The current monthly limit to enforce on sending text messages.

          " + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

          ", + "smithy.api#required": {} } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#SetVoiceMessageSpendLimitOverride": { - "type": "operation", - "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#SetVoiceMessageSpendLimitOverrideRequest" - }, - "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#SetVoiceMessageSpendLimitOverrideResult" - }, - "errors": [ - { - "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

          Sets an account level monthly spend limit override for sending voice messages. The\n requested spend limit must be less than or equal to the MaxLimit, which is\n set by Amazon Web Services.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#SetVoiceMessageSpendLimitOverrideRequest": { - "type": "structure", - "members": { - "MonthlyLimit": { - "target": "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit", + "DeletionProtectionEnabled": { + "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "

          The new monthly limit to enforce on voice messages.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          By default this is set to false. When set to true the sender ID can't be deleted.

          " } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#SetVoiceMessageSpendLimitOverrideResult": { + "com.amazonaws.pinpointsmsvoicev2#UpdateSenderIdResult": { "type": "structure", "members": { - "MonthlyLimit": { - "target": "com.amazonaws.pinpointsmsvoicev2#MonthlyLimit", + "SenderIdArn": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The current monthly limit to enforce on sending voice messages.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) associated with the SenderId.

          ", + "smithy.api#required": {} + } + }, + "SenderId": { + "target": "com.amazonaws.pinpointsmsvoicev2#SenderId", + "traits": { + "smithy.api#documentation": "

          The sender ID that was updated.

          ", + "smithy.api#required": {} + } + }, + "IsoCountryCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", + "traits": { + "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

          ", + "smithy.api#required": {} + } + }, + "MessageTypes": { + "target": "com.amazonaws.pinpointsmsvoicev2#MessageTypeList", + "traits": { + "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          ", + "smithy.api#required": {} + } + }, + "MonthlyLeasingPrice": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The monthly price, in US dollars, to lease the sender ID.

          ", + "smithy.api#required": {} + } + }, + "DeletionProtectionEnabled": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          By default this is set to false. When set to true the sender ID can't be deleted.

          ", + "smithy.api#required": {} + } + }, + "Registered": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

          True if the sender ID is registered..

          ", + "smithy.api#required": {} + } + }, + "RegistrationId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

          The unique identifier for the registration.

          " } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.pinpointsmsvoicev2#SnsDestination": { + "com.amazonaws.pinpointsmsvoicev2#ValidationException": { "type": "structure", "members": { - "TopicArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#SnsTopicArn", + "Message": { + "target": "smithy.api#String" + }, + "Reason": { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationExceptionReason", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to\n publish events to.

          ", - "smithy.api#required": {} + "smithy.api#documentation": "

          The reason for the exception.

          " + } + }, + "Fields": { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationExceptionFieldList", + "traits": { + "smithy.api#documentation": "

          The field that failed validation.

          " } } }, "traits": { - "smithy.api#documentation": "

          An object that defines an Amazon SNS destination for events. You can use\n Amazon SNS to send notification when certain events occur.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#SnsTopicArn": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 20, - "max": 2048 - }, - "smithy.api#pattern": "^arn:\\S+$" + "smithy.api#documentation": "

          A validation exception for a field.

          ", + "smithy.api#error": "client" } }, - "com.amazonaws.pinpointsmsvoicev2#SpendLimit": { + "com.amazonaws.pinpointsmsvoicev2#ValidationExceptionField": { "type": "structure", "members": { "Name": { - "target": "com.amazonaws.pinpointsmsvoicev2#SpendLimitName", - "traits": { - "smithy.api#documentation": "

          The name for the SpendLimit.

          ", - "smithy.api#required": {} - } - }, - "EnforcedLimit": { - "target": "smithy.api#PrimitiveLong", + "target": "smithy.api#String", "traits": { - "smithy.api#default": 0, - "smithy.api#documentation": "

          The maximum amount of money, in US dollars, that you want to be able to spend sending\n messages each month. This value has to be less than or equal to the amount in\n MaxLimit. To use this custom limit, Overridden must be set\n to true.

          ", + "smithy.api#documentation": "

          The name of the field.

          ", "smithy.api#required": {} } }, - "MaxLimit": { - "target": "smithy.api#PrimitiveLong", + "Message": { + "target": "smithy.api#String", "traits": { - "smithy.api#default": 0, - "smithy.api#documentation": "

          The maximum amount of money that you are able to spend to send messages each month,\n in US dollars.

          ", + "smithy.api#documentation": "

          The message associated with the validation exception with information to help\n determine its cause.

          ", "smithy.api#required": {} } - }, - "Overridden": { - "target": "smithy.api#PrimitiveBoolean", - "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          When set to True, the value that has been specified in the\n EnforcedLimit is used to determine the maximum amount in US dollars\n that can be spent to send messages each month, in US dollars.

          ", - "smithy.api#required": {} + } + }, + "traits": { + "smithy.api#documentation": "

          The field associated with the validation exception.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#ValidationExceptionFieldList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#ValidationExceptionField" + } + }, + "com.amazonaws.pinpointsmsvoicev2#ValidationExceptionReason": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "CANNOT_ADD_OPTED_OUT_NUMBER", + "name": "CANNOT_ADD_OPTED_OUT_NUMBER" + }, + { + "value": "CANNOT_PARSE", + "name": "CANNOT_PARSE" + }, + { + "value": "COUNTRY_CODE_MISMATCH", + "name": "COUNTRY_CODE_MISMATCH" + }, + { + "value": "DESTINATION_COUNTRY_BLOCKED", + "name": "DESTINATION_COUNTRY_BLOCKED" + }, + { + "value": "FIELD_VALIDATION_FAILED", + "name": "FIELD_VALIDATION_FAILED" + }, + { + "value": "ATTACHMENT_TYPE_NOT_SUPPORTED", + "name": "ATTACHMENT_TYPE_NOT_SUPPORTED" + }, + { + "value": "INVALID_ARN", + "name": "INVALID_ARN" + }, + { + "value": "INVALID_FILTER_VALUES", + "name": "INVALID_FILTER_VALUES" + }, + { + "value": "INVALID_IDENTITY_FOR_DESTINATION_COUNTRY", + "name": "INVALID_IDENTITY_FOR_DESTINATION_COUNTRY" + }, + { + "value": "INVALID_NEXT_TOKEN", + "name": "INVALID_NEXT_TOKEN" + }, + { + "value": "INVALID_PARAMETER", + "name": "INVALID_PARAMETER" + }, + { + "value": "INVALID_REQUEST", + "name": "INVALID_REQUEST" + }, + { + "value": "INVALID_REGISTRATION_ASSOCIATION", + "name": "INVALID_REGISTRATION_ASSOCIATION" + }, + { + "value": "MAXIMUM_SIZE_EXCEEDED", + "name": "MAXIMUM_SIZE_EXCEEDED" + }, + { + "value": "MISSING_PARAMETER", + "name": "MISSING_PARAMETER" + }, + { + "value": "PARAMETERS_CANNOT_BE_USED_TOGETHER", + "name": "PARAMETERS_CANNOT_BE_USED_TOGETHER" + }, + { + "value": "PHONE_NUMBER_CANNOT_BE_OPTED_IN", + "name": "PHONE_NUMBER_CANNOT_BE_OPTED_IN" + }, + { + "value": "PHONE_NUMBER_CANNOT_BE_RELEASED", + "name": "PHONE_NUMBER_CANNOT_BE_RELEASED" + }, + { + "value": "PRICE_OVER_THRESHOLD", + "name": "PRICE_OVER_THRESHOLD" + }, + { + "value": "RESOURCE_NOT_ACCESSIBLE", + "name": "RESOURCE_NOT_ACCESSIBLE" + }, + { + "value": "REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT", + "name": "REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT" + }, + { + "value": "SENDER_ID_NOT_REGISTERED", + "name": "SENDER_ID_NOT_REGISTERED" + }, + { + "value": "SENDER_ID_NOT_SUPPORTED", + "name": "SENDER_ID_NOT_SUPPORTED" + }, + { + "value": "SENDER_ID_REQUIRES_REGISTRATION", + "name": "SENDER_ID_REQUIRES_REGISTRATION" + }, + { + "value": "TWO_WAY_TOPIC_NOT_PRESENT", + "name": "TWO_WAY_TOPIC_NOT_PRESENT" + }, + { + "value": "TWO_WAY_NOT_ENABLED", + "name": "TWO_WAY_NOT_ENABLED" + }, + { + "value": "TWO_WAY_NOT_SUPPORTED_IN_COUNTRY", + "name": "TWO_WAY_NOT_SUPPORTED_IN_COUNTRY" + }, + { + "value": "TWO_WAY_NOT_SUPPORTED_IN_REGION", + "name": "TWO_WAY_NOT_SUPPORTED_IN_REGION" + }, + { + "value": "TWO_WAY_CHANNEL_NOT_PRESENT", + "name": "TWO_WAY_CHANNEL_NOT_PRESENT" + }, + { + "value": "UNKNOWN_REGISTRATION_FIELD", + "name": "UNKNOWN_REGISTRATION_FIELD" + }, + { + "value": "UNKNOWN_REGISTRATION_SECTION", + "name": "UNKNOWN_REGISTRATION_SECTION" + }, + { + "value": "UNKNOWN_REGISTRATION_TYPE", + "name": "UNKNOWN_REGISTRATION_TYPE" + }, + { + "value": "UNKNOWN_REGISTRATION_VERSION", + "name": "UNKNOWN_REGISTRATION_VERSION" + }, + { + "value": "UNKNOWN_OPERATION", + "name": "UNKNOWN_OPERATION" + }, + { + "value": "REGISTRATION_FIELD_CANNOT_BE_DELETED", + "name": "REGISTRATION_FIELD_CANNOT_BE_DELETED" + }, + { + "value": "VERIFICATION_CODE_MISMATCH", + "name": "VERIFICATION_CODE_MISMATCH" + }, + { + "value": "VOICE_CAPABILITY_NOT_AVAILABLE", + "name": "VOICE_CAPABILITY_NOT_AVAILABLE" + }, + { + "value": "OTHER", + "name": "OTHER" } - } - }, - "traits": { - "smithy.api#documentation": "

          Describes the current Amazon Pinpoint monthly spend limits for sending voice and\n text messages. For more information on increasing your monthly spend limit, see \n Requesting increases to your monthly SMS spending quota for Amazon Pinpoint\n in the Amazon Pinpoint User Guide.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#SpendLimitList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#SpendLimit" + ] } }, - "com.amazonaws.pinpointsmsvoicev2#SpendLimitName": { + "com.amazonaws.pinpointsmsvoicev2#VerificationChannel": { "type": "string", "traits": { "smithy.api#enum": [ { - "value": "TEXT_MESSAGE_MONTHLY_SPEND_LIMIT", - "name": "TEXT_MESSAGE_MONTHLY_SPEND_LIMIT" + "value": "TEXT", + "name": "TEXT" }, { - "value": "VOICE_MESSAGE_MONTHLY_SPEND_LIMIT", - "name": "VOICE_MESSAGE_MONTHLY_SPEND_LIMIT" + "value": "VOICE", + "name": "VOICE" } ] } }, - "com.amazonaws.pinpointsmsvoicev2#Tag": { - "type": "structure", - "members": { - "Key": { - "target": "com.amazonaws.pinpointsmsvoicev2#TagKey", - "traits": { - "smithy.api#documentation": "

          The key identifier, or name, of the tag.

          ", - "smithy.api#required": {} - } - }, - "Value": { - "target": "com.amazonaws.pinpointsmsvoicev2#TagValue", - "traits": { - "smithy.api#documentation": "

          The string value associated with the key of the tag.

          ", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

          The list of tags to be added to the specified topic.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#TagKey": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 128 - }, - "smithy.api#pattern": "^.+$" - } - }, - "com.amazonaws.pinpointsmsvoicev2#TagKeyList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#TagKey" - }, - "traits": { - "smithy.api#length": { - "min": 1, - "max": 200 - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#TagList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#Tag" - }, - "traits": { - "smithy.api#length": { - "max": 200 - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#TagResource": { - "type": "operation", - "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#TagResourceRequest" - }, - "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#TagResourceResult" - }, - "errors": [ - { - "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

          Adds or overwrites only the specified tags for the specified Amazon Pinpoint SMS\n Voice, version 2 resource. When you specify an existing tag key, the value is\n overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag\n consists of a key and an optional value. Tag keys must be unique per resource. For more\n information about tags, see Tagging Amazon Pinpoint resources in the Amazon Pinpoint Developer\n Guide.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#TagResourceRequest": { - "type": "structure", - "members": { - "ResourceArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#AmazonResourceName", - "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the resource.

          ", - "smithy.api#required": {} - } - }, - "Tags": { - "target": "com.amazonaws.pinpointsmsvoicev2#NonEmptyTagList", - "traits": { - "smithy.api#documentation": "

          An array of key and value pair tags that are associated with the resource.

          ", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#TagResourceResult": { - "type": "structure", - "members": {} - }, - "com.amazonaws.pinpointsmsvoicev2#TagValue": { - "type": "string", - "traits": { - "smithy.api#length": { - "max": 256 - }, - "smithy.api#pattern": "^.*$" - } - }, - "com.amazonaws.pinpointsmsvoicev2#TextMessageBody": { + "com.amazonaws.pinpointsmsvoicev2#VerificationCode": { "type": "string", "traits": { "smithy.api#length": { "min": 1, - "max": 1600 + "max": 20 }, - "smithy.api#pattern": "^(?!\\s*$)[\\s\\S]+$" + "smithy.api#pattern": "^[A-Za-z0-9]+$" } }, - "com.amazonaws.pinpointsmsvoicev2#TextMessageOriginationIdentity": { + "com.amazonaws.pinpointsmsvoicev2#VerificationMessageOriginationIdentity": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 256 }, - "smithy.api#pattern": "^[A-Za-z0-9_:/\\+-]+$" - } - }, - "com.amazonaws.pinpointsmsvoicev2#ThrottlingException": { - "type": "structure", - "members": { - "Message": { - "target": "smithy.api#String" - } - }, - "traits": { - "smithy.api#documentation": "

          An error that occurred because too many requests were sent during a certain amount of\n time.

          ", - "smithy.api#error": "client", - "smithy.api#retryable": { - "throttling": true - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#TimeToLive": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 5, - "max": 259200 - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 20, - "max": 2048 - }, - "smithy.api#pattern": "^arn:\\S+$" - } - }, - "com.amazonaws.pinpointsmsvoicev2#UntagResource": { - "type": "operation", - "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#UntagResourceRequest" - }, - "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#UntagResourceResult" - }, - "errors": [ - { - "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

          Removes the association of the specified tags from an Amazon Pinpoint SMS Voice V2\n resource. For more information on tags see Tagging Amazon Pinpoint resources in the Amazon Pinpoint Developer\n Guide.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#UntagResourceRequest": { - "type": "structure", - "members": { - "ResourceArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#AmazonResourceName", - "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the resource.

          ", - "smithy.api#required": {} - } - }, - "TagKeys": { - "target": "com.amazonaws.pinpointsmsvoicev2#TagKeyList", - "traits": { - "smithy.api#documentation": "

          An array of tag key values to unassociate with the resource.

          ", - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#UntagResourceResult": { - "type": "structure", - "members": {} - }, - "com.amazonaws.pinpointsmsvoicev2#UpdateEventDestination": { - "type": "operation", - "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#UpdateEventDestinationRequest" - }, - "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#UpdateEventDestinationResult" - }, - "errors": [ - { - "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" - } - ], + "smithy.api#pattern": "^[A-Za-z0-9_:/\\+-]+$" + } + }, + "com.amazonaws.pinpointsmsvoicev2#VerificationStatus": { + "type": "string", "traits": { - "smithy.api#documentation": "

          Updates an existing event destination in a configuration set. You can update the\n IAM role ARN for CloudWatch Logs and Kinesis Data Firehose. You can\n also enable or disable the event destination.

          \n

          You may want to update an event destination to change its matching event types or\n updating the destination resource ARN. You can't change an event destination's type\n between CloudWatch Logs, Kinesis Data Firehose, and Amazon SNS.

          " + "smithy.api#enum": [ + { + "value": "PENDING", + "name": "PENDING" + }, + { + "value": "VERIFIED", + "name": "VERIFIED" + } + ] } }, - "com.amazonaws.pinpointsmsvoicev2#UpdateEventDestinationRequest": { + "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberFilter": { "type": "structure", "members": { - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetNameOrArn", + "Name": { + "target": "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberFilterName", "traits": { - "smithy.api#documentation": "

          The configuration set to update with the new event destination. Valid values for this\n can be the ConfigurationSetName or ConfigurationSetArn.

          ", + "smithy.api#documentation": "

          The name of the attribute to filter on.

          ", "smithy.api#required": {} } }, - "EventDestinationName": { - "target": "com.amazonaws.pinpointsmsvoicev2#EventDestinationName", + "Values": { + "target": "com.amazonaws.pinpointsmsvoicev2#FilterValueList", "traits": { - "smithy.api#documentation": "

          The name to use for the event destination.

          ", + "smithy.api#documentation": "

          An array of values to filter on.

          ", "smithy.api#required": {} } - }, - "Enabled": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "

          When set to true logging is enabled.

          " - } - }, - "MatchingEventTypes": { - "target": "com.amazonaws.pinpointsmsvoicev2#EventTypeList", - "traits": { - "smithy.api#documentation": "

          An array of event types that determine which events to log.

          " - } - }, - "CloudWatchLogsDestination": { - "target": "com.amazonaws.pinpointsmsvoicev2#CloudWatchLogsDestination", - "traits": { - "smithy.api#documentation": "

          An object that contains information about an event destination that sends data to\n CloudWatch Logs.

          " - } - }, - "KinesisFirehoseDestination": { - "target": "com.amazonaws.pinpointsmsvoicev2#KinesisFirehoseDestination", - "traits": { - "smithy.api#documentation": "

          An object that contains information about an event destination for logging to Kinesis Data Firehose.

          " - } - }, - "SnsDestination": { - "target": "com.amazonaws.pinpointsmsvoicev2#SnsDestination", - "traits": { - "smithy.api#documentation": "

          An object that contains information about an event destination that sends data to\n Amazon SNS.

          " - } } + }, + "traits": { + "smithy.api#documentation": "

          The filter definition for filtering verified destination phone numbers that meets a specified criteria.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#UpdateEventDestinationResult": { - "type": "structure", - "members": { - "ConfigurationSetArn": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the ConfigurationSet that was updated.

          " - } - }, - "ConfigurationSetName": { - "target": "com.amazonaws.pinpointsmsvoicev2#ConfigurationSetName", - "traits": { - "smithy.api#documentation": "

          The name of the configuration set.

          " - } - }, - "EventDestination": { - "target": "com.amazonaws.pinpointsmsvoicev2#EventDestination", - "traits": { - "smithy.api#documentation": "

          An EventDestination object containing the details of where events will be logged.\n

          " - } + "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberFilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberFilter" + }, + "traits": { + "smithy.api#length": { + "max": 20 } } }, - "com.amazonaws.pinpointsmsvoicev2#UpdatePhoneNumber": { - "type": "operation", - "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#UpdatePhoneNumberRequest" - }, - "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#UpdatePhoneNumberResult" + "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberFilterName": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "status", + "name": "STATUS" + } + ] + } + }, + "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberIdOrArn" }, - "errors": [ - { - "target": "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ConflictException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#InternalServerException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ThrottlingException" - }, - { - "target": "com.amazonaws.pinpointsmsvoicev2#ValidationException" - } - ], "traits": { - "smithy.api#documentation": "

          Updates the configuration of an existing origination phone number. You can update the\n opt-out list, enable or disable two-way messaging, change the TwoWayChannelArn, enable\n or disable self-managed opt-outs, and enable or disable deletion protection.

          \n

          If the origination phone number is associated with a pool, an Error is\n returned.

          " + "smithy.api#length": { + "max": 5 + } } }, - "com.amazonaws.pinpointsmsvoicev2#UpdatePhoneNumberRequest": { - "type": "structure", - "members": { - "PhoneNumberId": { - "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumberIdOrArn", - "traits": { - "smithy.api#documentation": "

          The unique identifier of the phone number. Valid values for this field can be either\n the PhoneNumberId or PhoneNumberArn.

          ", - "smithy.api#required": {} - } - }, - "TwoWayEnabled": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients.

          " - } - }, - "TwoWayChannelArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", - "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the two way channel.

          " - } - }, - "SelfManagedOptOutsEnabled": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "

          By default this is set to false. When an end recipient sends a message that begins\n with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically\n replies with a customizable message and adds the end recipient to the OptOutList. When\n set to true you're responsible for responding to HELP and STOP requests. You're also\n responsible for tracking and honoring opt-out requests.

          " - } - }, - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", - "traits": { - "smithy.api#documentation": "

          The OptOutList to add the phone number to. Valid values for this field can be either\n the OutOutListName or OutOutListArn.

          " - } + "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberIdOrArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 }, - "DeletionProtectionEnabled": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "

          By default this is set to false. When set to true the phone number can't be deleted.\n

          " - } - } + "smithy.api#pattern": "^[A-Za-z0-9_:/-]+$" } }, - "com.amazonaws.pinpointsmsvoicev2#UpdatePhoneNumberResult": { + "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberInformation": { "type": "structure", "members": { - "PhoneNumberArn": { + "VerifiedDestinationNumberArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the updated phone number.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the verified destination phone number.

          ", + "smithy.api#required": {} } }, - "PhoneNumberId": { + "VerifiedDestinationNumberId": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The unique identifier of the phone number.

          " + "smithy.api#documentation": "

          The unique identifier for the verified destination phone number.

          ", + "smithy.api#required": {} } }, - "PhoneNumber": { + "DestinationPhoneNumber": { "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", "traits": { - "smithy.api#documentation": "

          The phone number that was updated.

          " + "smithy.api#documentation": "

          The verified destination phone number, in E.164 format.

          ", + "smithy.api#required": {} } }, "Status": { - "target": "com.amazonaws.pinpointsmsvoicev2#NumberStatus", - "traits": { - "smithy.api#documentation": "

          The current status of the request.

          " - } - }, - "IsoCountryCode": { - "target": "com.amazonaws.pinpointsmsvoicev2#IsoCountryCode", - "traits": { - "smithy.api#documentation": "

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.\n

          " - } - }, - "MessageType": { - "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", - "traits": { - "smithy.api#documentation": "

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or\n time-sensitive and PROMOTIONAL for messages that aren't critical or\n time-sensitive.

          " - } - }, - "NumberCapabilities": { - "target": "com.amazonaws.pinpointsmsvoicev2#NumberCapabilityList", - "traits": { - "smithy.api#documentation": "

          Specifies if the number could be used for text messages, voice or both.

          " - } - }, - "NumberType": { - "target": "com.amazonaws.pinpointsmsvoicev2#NumberType", - "traits": { - "smithy.api#documentation": "

          The type of number that was requested.

          " - } - }, - "MonthlyLeasingPrice": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

          The monthly leasing price of the phone number, in US dollars.

          " - } - }, - "TwoWayEnabled": { - "target": "smithy.api#PrimitiveBoolean", - "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients.

          " - } - }, - "TwoWayChannelArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", - "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the two way channel.

          " - } - }, - "SelfManagedOptOutsEnabled": { - "target": "smithy.api#PrimitiveBoolean", - "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          This is true if self managed opt-out are enabled.

          " - } - }, - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", - "traits": { - "smithy.api#documentation": "

          The name of the OptOutList associated with the phone number.

          " - } - }, - "DeletionProtectionEnabled": { - "target": "smithy.api#PrimitiveBoolean", + "target": "com.amazonaws.pinpointsmsvoicev2#VerificationStatus", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          When set to true the phone number can't be deleted.

          " + "smithy.api#documentation": "

          The status of the verified destination phone number.

          \n
            \n
          • \n

            \n PENDING: The phone number hasn't been verified yet.

            \n
          • \n
          • \n

            \n VERIFIED: The phone number is verified and can receive messages.

            \n
          • \n
          ", + "smithy.api#required": {} } }, "CreatedTimestamp": { "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

          The time when the phone number was created, in UNIX epoch time format.

          " + "smithy.api#documentation": "

          The time when the destination phone number was created, in UNIX epoch time format.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#documentation": "

          Provides information about the requested verified destintion phone number.

          " + } + }, + "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberInformationList": { + "type": "list", + "member": { + "target": "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberInformation" } }, - "com.amazonaws.pinpointsmsvoicev2#UpdatePool": { + "com.amazonaws.pinpointsmsvoicev2#VerifyDestinationNumber": { "type": "operation", "input": { - "target": "com.amazonaws.pinpointsmsvoicev2#UpdatePoolRequest" + "target": "com.amazonaws.pinpointsmsvoicev2#VerifyDestinationNumberRequest" }, "output": { - "target": "com.amazonaws.pinpointsmsvoicev2#UpdatePoolResult" + "target": "com.amazonaws.pinpointsmsvoicev2#VerifyDestinationNumberResult" }, "errors": [ { @@ -6908,285 +12038,72 @@ } ], "traits": { - "smithy.api#documentation": "

          Updates the configuration of an existing pool. You can update the opt-out list, enable\n or disable two-way messaging, change the TwoWayChannelArn, enable or\n disable self-managed opt-outs, enable or disable deletion protection, and enable or\n disable shared routes.

          " + "smithy.api#documentation": "

          Use the verification code that was received by the verified destination phone number to opt-in the verified destination phone number to receive more messages.

          " } }, - "com.amazonaws.pinpointsmsvoicev2#UpdatePoolRequest": { + "com.amazonaws.pinpointsmsvoicev2#VerifyDestinationNumberRequest": { "type": "structure", "members": { - "PoolId": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolIdOrArn", + "VerifiedDestinationNumberId": { + "target": "com.amazonaws.pinpointsmsvoicev2#VerifiedDestinationNumberIdOrArn", "traits": { - "smithy.api#documentation": "

          The unique identifier of the pool to update. Valid values are either the PoolId or\n PoolArn.

          ", + "smithy.api#documentation": "

          The unique identifier for the verififed destination phone number.

          ", "smithy.api#required": {} } }, - "TwoWayEnabled": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients.

          " - } - }, - "TwoWayChannelArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", - "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the two way channel.

          " - } - }, - "SelfManagedOptOutsEnabled": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "

          By default this is set to false. When an end recipient sends a message that begins\n with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically\n replies with a customizable message and adds the end recipient to the OptOutList. When\n set to true you're responsible for responding to HELP and STOP requests. You're also\n responsible for tracking and honoring opt-out requests.

          " - } - }, - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListNameOrArn", - "traits": { - "smithy.api#documentation": "

          The OptOutList to associate with the pool. Valid values are either OptOutListName or\n OptOutListArn.

          " - } - }, - "SharedRoutesEnabled": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "

          Indicates whether shared routes are enabled for the pool.

          " - } - }, - "DeletionProtectionEnabled": { - "target": "smithy.api#Boolean", + "VerificationCode": { + "target": "com.amazonaws.pinpointsmsvoicev2#VerificationCode", "traits": { - "smithy.api#documentation": "

          When set to true the pool can't be deleted.

          " + "smithy.api#documentation": "

          The verification code that was received by the verified destination phone number.

          ", + "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.pinpointsmsvoicev2#UpdatePoolResult": { + "com.amazonaws.pinpointsmsvoicev2#VerifyDestinationNumberResult": { "type": "structure", "members": { - "PoolArn": { + "VerifiedDestinationNumberArn": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The ARN of the pool.

          " + "smithy.api#documentation": "

          The Amazon Resource Name (ARN) for the verified destination phone number.

          ", + "smithy.api#required": {} } }, - "PoolId": { + "VerifiedDestinationNumberId": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

          The unique identifier of the pool.

          " - } - }, - "Status": { - "target": "com.amazonaws.pinpointsmsvoicev2#PoolStatus", - "traits": { - "smithy.api#documentation": "

          The current status of the pool update request.

          " - } - }, - "MessageType": { - "target": "com.amazonaws.pinpointsmsvoicev2#MessageType", - "traits": { - "smithy.api#documentation": "

          The type of message for the pool to use.

          " - } - }, - "TwoWayEnabled": { - "target": "smithy.api#PrimitiveBoolean", - "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          By default this is set to false. When set to true you can receive incoming text\n messages from your end recipients.

          " - } - }, - "TwoWayChannelArn": { - "target": "com.amazonaws.pinpointsmsvoicev2#TwoWayChannelArn", - "traits": { - "smithy.api#documentation": "

          The Amazon Resource Name (ARN) of the two way channel.

          " - } - }, - "SelfManagedOptOutsEnabled": { - "target": "smithy.api#PrimitiveBoolean", - "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          When an end recipient sends a message that begins with HELP or STOP to one of your\n dedicated numbers, Amazon Pinpoint automatically replies with a customizable message\n and adds the end recipient to the OptOutList. When set to true you're responsible for\n responding to HELP and STOP requests. You're also responsible for tracking and honoring\n opt-out requests.

          " - } - }, - "OptOutListName": { - "target": "com.amazonaws.pinpointsmsvoicev2#OptOutListName", - "traits": { - "smithy.api#documentation": "

          The name of the OptOutList associated with the pool.

          " + "smithy.api#documentation": "

          The unique identifier for the verified destination phone number.

          ", + "smithy.api#required": {} } }, - "SharedRoutesEnabled": { - "target": "smithy.api#PrimitiveBoolean", + "DestinationPhoneNumber": { + "target": "com.amazonaws.pinpointsmsvoicev2#PhoneNumber", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          Indicates whether shared routes are enabled for the pool.

          " + "smithy.api#documentation": "

          The phone number in E.164 format.

          ", + "smithy.api#required": {} } }, - "DeletionProtectionEnabled": { - "target": "smithy.api#PrimitiveBoolean", + "Status": { + "target": "com.amazonaws.pinpointsmsvoicev2#VerificationStatus", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

          When set to true the pool can't be deleted.

          " + "smithy.api#documentation": "

          The status for being able to send messages to the phone number.

          ", + "smithy.api#required": {} } }, "CreatedTimestamp": { "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

          The time when the pool was created, in UNIX epoch time format.

          " - } - } - } - }, - "com.amazonaws.pinpointsmsvoicev2#ValidationException": { - "type": "structure", - "members": { - "Message": { - "target": "smithy.api#String" - }, - "Reason": { - "target": "com.amazonaws.pinpointsmsvoicev2#ValidationExceptionReason", - "traits": { - "smithy.api#documentation": "

          The reason for the exception.

          " - } - }, - "Fields": { - "target": "com.amazonaws.pinpointsmsvoicev2#ValidationExceptionFieldList", - "traits": { - "smithy.api#documentation": "

          The field that failed validation.

          " - } - } - }, - "traits": { - "smithy.api#documentation": "

          A validation exception for a field.

          ", - "smithy.api#error": "client" - } - }, - "com.amazonaws.pinpointsmsvoicev2#ValidationExceptionField": { - "type": "structure", - "members": { - "Name": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

          The name of the field.

          ", - "smithy.api#required": {} - } - }, - "Message": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "

          The message associated with the validation exception with information to help\n determine its cause.

          ", + "smithy.api#documentation": "

          The time when the destination phone number was created, in UNIX epoch time format.

          ", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

          The field associated with the validation exception.

          " - } - }, - "com.amazonaws.pinpointsmsvoicev2#ValidationExceptionFieldList": { - "type": "list", - "member": { - "target": "com.amazonaws.pinpointsmsvoicev2#ValidationExceptionField" - } - }, - "com.amazonaws.pinpointsmsvoicev2#ValidationExceptionReason": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "UNKNOWN_OPERATION", - "name": "UNKNOWN_OPERATION" - }, - { - "value": "CANNOT_PARSE", - "name": "CANNOT_PARSE" - }, - { - "value": "FIELD_VALIDATION_FAILED", - "name": "FIELD_VALIDATION_FAILED" - }, - { - "value": "OTHER", - "name": "OTHER" - }, - { - "value": "INVALID_PARAMETER", - "name": "INVALID_PARAMETER" - }, - { - "value": "INVALID_ARN", - "name": "INVALID_ARN" - }, - { - "value": "INVALID_IDENTITY_FOR_DESTINATION_COUNTRY", - "name": "INVALID_IDENTITY_FOR_DESTINATION_COUNTRY" - }, - { - "value": "DESTINATION_COUNTRY_BLOCKED", - "name": "DESTINATION_COUNTRY_BLOCKED" - }, - { - "value": "CANNOT_ADD_OPTED_OUT_NUMBER", - "name": "CANNOT_ADD_OPTED_OUT_NUMBER" - }, - { - "value": "COUNTRY_CODE_MISMATCH", - "name": "COUNTRY_CODE_MISMATCH" - }, - { - "value": "INVALID_FILTER_VALUES", - "name": "INVALID_FILTER_VALUES" - }, - { - "value": "INVALID_NEXT_TOKEN", - "name": "INVALID_NEXT_TOKEN" - }, - { - "value": "MISSING_PARAMETER", - "name": "MISSING_PARAMETER" - }, - { - "value": "PARAMETERS_CANNOT_BE_USED_TOGETHER", - "name": "PARAMETERS_CANNOT_BE_USED_TOGETHER" - }, - { - "value": "PHONE_NUMBER_CANNOT_BE_OPTED_IN", - "name": "PHONE_NUMBER_CANNOT_BE_OPTED_IN" - }, - { - "value": "PHONE_NUMBER_CANNOT_BE_RELEASED", - "name": "PHONE_NUMBER_CANNOT_BE_RELEASED" - }, - { - "value": "PRICE_OVER_THRESHOLD", - "name": "PRICE_OVER_THRESHOLD" - }, - { - "value": "REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT", - "name": "REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT" - }, - { - "value": "SENDER_ID_NOT_REGISTERED", - "name": "SENDER_ID_NOT_REGISTERED" - }, - { - "value": "SENDER_ID_NOT_SUPPORTED", - "name": "SENDER_ID_NOT_SUPPORTED" - }, - { - "value": "TWO_WAY_NOT_ENABLED", - "name": "TWO_WAY_NOT_ENABLED" - }, - { - "value": "TWO_WAY_NOT_SUPPORTED_IN_COUNTRY", - "name": "TWO_WAY_NOT_SUPPORTED_IN_COUNTRY" - }, - { - "value": "TWO_WAY_NOT_SUPPORTED_IN_REGION", - "name": "TWO_WAY_NOT_SUPPORTED_IN_REGION" - }, - { - "value": "TWO_WAY_TOPIC_NOT_PRESENT", - "name": "TWO_WAY_TOPIC_NOT_PRESENT" - } - ] + "smithy.api#output": {} } }, "com.amazonaws.pinpointsmsvoicev2#VoiceId": {