clients/client-pinpoint-sms-voice-v2/README.md
AWS SDK for JavaScript PinpointSMSVoiceV2 Client for Node.js, Browser and React Native.
<p>Welcome to the <i>End User Messaging SMS, version 2 API Reference</i>. This guide provides information about End User Messaging SMS, version 2 API resources, including supported HTTP methods, parameters, and schemas.</p> <p>Amazon Pinpoint is an Amazon Web Services service that you can use to engage with your recipients across multiple messaging channels. The End User Messaging SMS, version 2 API provides programmatic access to options that are unique to the SMS and voice channels. End User Messaging SMS, version 2 resources such as phone numbers, sender IDs, and opt-out lists can be used by the Amazon Pinpoint API.</p> <p>If you're new to End User Messaging SMS, it's also helpful to review the <a href="https://docs.aws.amazon.com/sms-voice/latest/userguide/what-is-service.html"> End User Messaging SMS User Guide</a>, where you'll find tutorials, code samples, and procedures that demonstrate how to use End User Messaging SMS features programmatically and how to integrate functionality into mobile apps and other types of applications. The guide also provides key information, such as End User Messaging SMS integration with other Amazon Web Services services, and the quotas that apply to use of the service.</p> <p> <b>Regional availability</b> </p> <p>The <i>End User Messaging SMS version 2 API Reference</i> 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 <a href="https://docs.aws.amazon.com/hgeneral/latest/gr/rande.html#pinpoint_region">Amazon Web Services Service Endpoints</a> and <a href="https://docs.aws.amazon.com/general/latest/gr/pinpoint.html">Amazon Pinpoint endpoints and quotas</a> in the Amazon Web Services General Reference. To learn more about Amazon Web Services Regions, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande-manage.html">Managing Amazon Web Services Regions</a> in the Amazon Web Services General Reference.</p> <p>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 <a href="http://aws.amazon.com/about-aws/global-infrastructure/">Amazon Web Services Global Infrastructure.</a> </p>To install this package, use the CLI of your favorite package manager:
npm install @aws-sdk/client-pinpoint-sms-voice-v2yarn add @aws-sdk/client-pinpoint-sms-voice-v2pnpm add @aws-sdk/client-pinpoint-sms-voice-v2The AWS SDK is modulized by clients and commands.
To send a request, you only need to import the PinpointSMSVoiceV2Client and
the commands you need, for example ListNotifyCountriesCommand:
// ES5 example
const { PinpointSMSVoiceV2Client, ListNotifyCountriesCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2");
// ES6+ example
import { PinpointSMSVoiceV2Client, ListNotifyCountriesCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2";
To send a request:
send operation on the client, providing the command object as input.const client = new PinpointSMSVoiceV2Client({ region: "REGION" });
const params = { /** input parameters */ };
const command = new ListNotifyCountriesCommand(params);
We recommend using the await operator to wait for the promise returned by send operation as follows:
// async/await.
try {
const data = await client.send(command);
// process data.
} catch (error) {
// error handling.
} finally {
// finally.
}
You can also use Promise chaining.
client
.send(command)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
})
.finally(() => {
// finally.
});
The aggregated client class is exported from the same package, but without the "Client" suffix.
PinpointSMSVoiceV2 extends PinpointSMSVoiceV2Client and additionally supports all operations, waiters, and paginators as methods.
This style may be familiar to you from the AWS SDK for JavaScript v2.
If you are bundling the AWS SDK, we recommend using only the bare-bones client (PinpointSMSVoiceV2Client).
More details are in the blog post on
modular packages in AWS SDK for JavaScript.
import { PinpointSMSVoiceV2 } from "@aws-sdk/client-pinpoint-sms-voice-v2";
const client = new PinpointSMSVoiceV2({ region: "REGION" });
// async/await.
try {
const data = await client.listNotifyCountries(params);
// process data.
} catch (error) {
// error handling.
}
// Promises.
client
.listNotifyCountries(params)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
});
// callbacks (not recommended).
client.listNotifyCountries(params, (err, data) => {
// process err and data.
});
When the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).
try {
const data = await client.send(command);
// process data.
} catch (error) {
const { requestId, cfId, extendedRequestId } = error.$metadata;
console.log({ requestId, cfId, extendedRequestId });
/**
* The keys within exceptions are also parsed.
* You can access them by specifying exception names:
* if (error.name === 'SomeServiceException') {
* const value = error.specialKeyInException;
* }
*/
}
See also docs/ERROR_HANDLING.
Please use these community resources for getting help. We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
aws-sdk-js
on AWS Developer Blog.aws-sdk-js.To test your universal JavaScript code in Node.js, browser and react-native environments, visit our code samples repo.
This client code is generated automatically. Any modifications will be overwritten the next time the @aws-sdk/client-pinpoint-sms-voice-v2 package is updated.
To contribute to client you can check our generate clients scripts.
This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.
Command API Reference / Input / Output
</details> <details> <summary> AssociateProtectConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> CarrierLookup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateConfigurationSet </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateEventDestination </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateNotifyConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateOptOutList </summary>Command API Reference / Input / Output
</details> <details> <summary> CreatePool </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateProtectConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateRcsAgent </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateRegistration </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateRegistrationAssociation </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateRegistrationAttachment </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateRegistrationVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateVerifiedDestinationNumber </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAccountDefaultProtectConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteConfigurationSet </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDefaultMessageType </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDefaultSenderId </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteEventDestination </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteKeyword </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteMediaMessageSpendLimitOverride </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteNotifyConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteNotifyMessageSpendLimitOverride </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteOptedOutNumber </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteOptOutList </summary>Command API Reference / Input / Output
</details> <details> <summary> DeletePool </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteProtectConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteProtectConfigurationRuleSetNumberOverride </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteRcsAgent </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteRegistration </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteRegistrationAttachment </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteRegistrationFieldValue </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteResourcePolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteTextMessageSpendLimitOverride </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteVerifiedDestinationNumber </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteVoiceMessageSpendLimitOverride </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeAccountAttributes </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeAccountLimits </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeConfigurationSets </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeKeywords </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeNotifyConfigurations </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeNotifyTemplates </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeOptedOutNumbers </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeOptOutLists </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribePhoneNumbers </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribePools </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeProtectConfigurations </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeRcsAgentCountryLaunchStatus </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeRcsAgents </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeRegistrationAttachments </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeRegistrationFieldDefinitions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeRegistrationFieldValues </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeRegistrations </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeRegistrationSectionDefinitions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeRegistrationTypeDefinitions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeRegistrationVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeSenderIds </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeSpendLimits </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeVerifiedDestinationNumbers </summary>Command API Reference / Input / Output
</details> <details> <summary> DisassociateOriginationIdentity </summary>Command API Reference / Input / Output
</details> <details> <summary> DisassociateProtectConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> DiscardRegistrationVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> GetProtectConfigurationCountryRuleSet </summary>Command API Reference / Input / Output
</details> <details> <summary> GetResourcePolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> ListNotifyCountries </summary>Command API Reference / Input / Output
</details> <details> <summary> ListPoolOriginationIdentities </summary>Command API Reference / Input / Output
</details> <details> <summary> ListProtectConfigurationRuleSetNumberOverrides </summary>Command API Reference / Input / Output
</details> <details> <summary> ListRegistrationAssociations </summary>Command API Reference / Input / Output
</details> <details> <summary> ListTagsForResource </summary>Command API Reference / Input / Output
</details> <details> <summary> PutKeyword </summary>Command API Reference / Input / Output
</details> <details> <summary> PutMessageFeedback </summary>Command API Reference / Input / Output
</details> <details> <summary> PutOptedOutNumber </summary>Command API Reference / Input / Output
</details> <details> <summary> PutProtectConfigurationRuleSetNumberOverride </summary>Command API Reference / Input / Output
</details> <details> <summary> PutRegistrationFieldValue </summary>Command API Reference / Input / Output
</details> <details> <summary> PutResourcePolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> ReleasePhoneNumber </summary>Command API Reference / Input / Output
</details> <details> <summary> ReleaseSenderId </summary>Command API Reference / Input / Output
</details> <details> <summary> RequestPhoneNumber </summary>Command API Reference / Input / Output
</details> <details> <summary> RequestSenderId </summary>Command API Reference / Input / Output
</details> <details> <summary> SendDestinationNumberVerificationCode </summary>Command API Reference / Input / Output
</details> <details> <summary> SendMediaMessage </summary>Command API Reference / Input / Output
</details> <details> <summary> SendNotifyTextMessage </summary>Command API Reference / Input / Output
</details> <details> <summary> SendNotifyVoiceMessage </summary>Command API Reference / Input / Output
</details> <details> <summary> SendTextMessage </summary>Command API Reference / Input / Output
</details> <details> <summary> SendVoiceMessage </summary>Command API Reference / Input / Output
</details> <details> <summary> SetAccountDefaultProtectConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> SetDefaultMessageFeedbackEnabled </summary>Command API Reference / Input / Output
</details> <details> <summary> SetDefaultMessageType </summary>Command API Reference / Input / Output
</details> <details> <summary> SetDefaultSenderId </summary>Command API Reference / Input / Output
</details> <details> <summary> SetMediaMessageSpendLimitOverride </summary>Command API Reference / Input / Output
</details> <details> <summary> SetNotifyMessageSpendLimitOverride </summary>Command API Reference / Input / Output
</details> <details> <summary> SetTextMessageSpendLimitOverride </summary>Command API Reference / Input / Output
</details> <details> <summary> SetVoiceMessageSpendLimitOverride </summary>Command API Reference / Input / Output
</details> <details> <summary> SubmitRegistrationVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> TagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> UntagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateEventDestination </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateNotifyConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdatePhoneNumber </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdatePool </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateProtectConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateProtectConfigurationCountryRuleSet </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateRcsAgent </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateSenderId </summary> </details> <details> <summary> VerifyDestinationNumber </summary> </details>