JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
  • Detail:
  • Field |
  • Constr |
  • Method
com.amazonaws.services.pinpointsmsvoicev2

Class AmazonPinpointSMSVoiceV2Client

  • All Implemented Interfaces:
    AmazonPinpointSMSVoiceV2
    Direct Known Subclasses:
    AmazonPinpointSMSVoiceV2AsyncClient


    @ThreadSafe
     @Generated(value="com.amazonaws:aws-java-sdk-code-generator")
    public class AmazonPinpointSMSVoiceV2Client
    extends AmazonWebServiceClient
    implements AmazonPinpointSMSVoiceV2 
    Client for accessing Amazon Pinpoint SMS Voice V2. All service calls made using this client are blocking, and will not return until the service call completes.

    Welcome to the AWS End User Messaging SMS and Voice, version 2 API Reference. This guide provides information about AWS End User Messaging 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 your recipients across multiple messaging channels. The AWS End User Messaging SMS and Voice, version 2 API provides programmatic access to options that are unique to the SMS and voice channels. AWS End User Messaging SMS and Voice, version 2 resources such as phone numbers, sender IDs, and opt-out lists can be used by the Amazon Pinpoint API.

    If you're new to AWS End User Messaging SMS and Voice, it's also helpful to review the AWS End User Messaging SMS User Guide. The AWS End User Messaging SMS User Guide provides tutorials, code samples, and procedures that demonstrate how to use AWS End User Messaging SMS and Voice features programmatically and how to integrate functionality into mobile apps and other types of applications. The guide also provides key information, such as AWS End User Messaging SMS and Voice integration with other Amazon Web Services services, and the quotas that apply to use of the service.

    Regional availability

    The AWS End User Messaging 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.

    • Method Detail

      • associateOriginationIdentity

        public AssociateOriginationIdentityResult associateOriginationIdentity(AssociateOriginationIdentityRequest request)

        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.

        Specified by:
        associateOriginationIdentity in interface AmazonPinpointSMSVoiceV2
        Parameters:
        associateOriginationIdentityRequest -
        Returns:
        Result of the AssociateOriginationIdentity operation returned by the service.
        Throws:
        ServiceQuotaExceededException - The request would cause a service quota to be exceeded.
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • associateProtectConfiguration

        public AssociateProtectConfigurationResult associateProtectConfiguration(AssociateProtectConfigurationRequest request)

        Associate a protect configuration with a configuration set. This replaces the configuration sets current protect configuration. A configuration set can only be associated with one protect configuration at a time. A protect configuration can be associated with multiple configuration sets.

        Specified by:
        associateProtectConfiguration in interface AmazonPinpointSMSVoiceV2
        Parameters:
        associateProtectConfigurationRequest -
        Returns:
        Result of the AssociateProtectConfiguration operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • createConfigurationSet

        public CreateConfigurationSetResult createConfigurationSet(CreateConfigurationSetRequest request)

        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 that you send.

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

        Specified by:
        createConfigurationSet in interface AmazonPinpointSMSVoiceV2
        Parameters:
        createConfigurationSetRequest -
        Returns:
        Result of the CreateConfigurationSet operation returned by the service.
        Throws:
        ServiceQuotaExceededException - The request would cause a service quota to be exceeded.
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • createEventDestination

        public CreateEventDestinationResult createEventDestination(CreateEventDestinationRequest request)

        Creates a new event destination in a configuration set.

        An event destination is a location where you send message events. The event options are Amazon CloudWatch, Amazon 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 destination can contain a reference to a single destination, such as a CloudWatch or Firehose destination.

        Specified by:
        createEventDestination in interface AmazonPinpointSMSVoiceV2
        Parameters:
        createEventDestinationRequest -
        Returns:
        Result of the CreateEventDestination operation returned by the service.
        Throws:
        ServiceQuotaExceededException - The request would cause a service quota to be exceeded.
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • createOptOutList

        public CreateOptOutListResult createOptOutList(CreateOptOutListRequest request)

        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 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 opt-out keywords, see SMS opt out in the AWS End User Messaging SMS User Guide.

        Specified by:
        createOptOutList in interface AmazonPinpointSMSVoiceV2
        Parameters:
        createOptOutListRequest -
        Returns:
        Result of the CreateOptOutList operation returned by the service.
        Throws:
        ServiceQuotaExceededException - The request would cause a service quota to be exceeded.
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • createPool

        public CreatePoolResult createPool(CreatePoolRequest request)

        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 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.

        Specified by:
        createPool in interface AmazonPinpointSMSVoiceV2
        Parameters:
        createPoolRequest -
        Returns:
        Result of the CreatePool operation returned by the service.
        Throws:
        ServiceQuotaExceededException - The request would cause a service quota to be exceeded.
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • createProtectConfiguration

        public CreateProtectConfigurationResult createProtectConfiguration(CreateProtectConfigurationRequest request)

        Create a new protect configuration. By default all country rule sets for each capability are set to ALLOW. Update the country rule sets using UpdateProtectConfigurationCountryRuleSet. A protect configurations name is stored as a Tag with the key set to Name and value as the name of the protect configuration.

        Specified by:
        createProtectConfiguration in interface AmazonPinpointSMSVoiceV2
        Parameters:
        createProtectConfigurationRequest -
        Returns:
        Result of the CreateProtectConfiguration operation returned by the service.
        Throws:
        ServiceQuotaExceededException - The request would cause a service quota to be exceeded.
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ValidationException - A validation exception for a field.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • createRegistration

        public CreateRegistrationResult createRegistration(CreateRegistrationRequest request)

        Creates a new registration based on the RegistrationType field.

        Specified by:
        createRegistration in interface AmazonPinpointSMSVoiceV2
        Parameters:
        createRegistrationRequest -
        Returns:
        Result of the CreateRegistration operation returned by the service.
        Throws:
        ServiceQuotaExceededException - The request would cause a service quota to be exceeded.
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • createRegistrationAttachment

        public CreateRegistrationAttachmentResult createRegistrationAttachment(CreateRegistrationAttachmentRequest request)

        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.

        Specified by:
        createRegistrationAttachment in interface AmazonPinpointSMSVoiceV2
        Parameters:
        createRegistrationAttachmentRequest -
        Returns:
        Result of the CreateRegistrationAttachment operation returned by the service.
        Throws:
        ServiceQuotaExceededException - The request would cause a service quota to be exceeded.
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • createVerifiedDestinationNumber

        public CreateVerifiedDestinationNumberResult createVerifiedDestinationNumber(CreateVerifiedDestinationNumberRequest request)

        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.

        Specified by:
        createVerifiedDestinationNumber in interface AmazonPinpointSMSVoiceV2
        Parameters:
        createVerifiedDestinationNumberRequest -
        Returns:
        Result of the CreateVerifiedDestinationNumber operation returned by the service.
        Throws:
        ServiceQuotaExceededException - The request would cause a service quota to be exceeded.
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • deleteDefaultMessageType

        public DeleteDefaultMessageTypeResult deleteDefaultMessageType(DeleteDefaultMessageTypeRequest request)

        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 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 account.

        Specified by:
        deleteDefaultMessageType in interface AmazonPinpointSMSVoiceV2
        Parameters:
        deleteDefaultMessageTypeRequest -
        Returns:
        Result of the DeleteDefaultMessageType operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • deleteEventDestination

        public DeleteEventDestinationResult deleteEventDestination(DeleteEventDestinationRequest request)

        Deletes an existing event destination.

        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.

        Specified by:
        deleteEventDestination in interface AmazonPinpointSMSVoiceV2
        Parameters:
        deleteEventDestinationRequest -
        Returns:
        Result of the DeleteEventDestination operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • deleteKeyword

        public DeleteKeywordResult deleteKeyword(DeleteKeywordRequest request)

        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 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, AWS End User Messaging SMS and Voice responds with a customizable message.

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

        Specified by:
        deleteKeyword in interface AmazonPinpointSMSVoiceV2
        Parameters:
        deleteKeywordRequest -
        Returns:
        Result of the DeleteKeyword operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • deleteOptOutList

        public DeleteOptOutListResult deleteOptOutList(DeleteOptOutListRequest request)

        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.

        Specified by:
        deleteOptOutList in interface AmazonPinpointSMSVoiceV2
        Parameters:
        deleteOptOutListRequest -
        Returns:
        Result of the DeleteOptOutList operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • deleteOptedOutNumber

        public DeleteOptedOutNumberResult deleteOptedOutNumber(DeleteOptedOutNumberRequest request)

        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.

        Specified by:
        deleteOptedOutNumber in interface AmazonPinpointSMSVoiceV2
        Parameters:
        deleteOptedOutNumberRequest -
        Returns:
        Result of the DeleteOptedOutNumber operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • deletePool

        public DeletePoolResult deletePool(DeletePoolRequest request)

        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 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.

        Specified by:
        deletePool in interface AmazonPinpointSMSVoiceV2
        Parameters:
        deletePoolRequest -
        Returns:
        Result of the DeletePool operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • deleteProtectConfiguration

        public DeleteProtectConfigurationResult deleteProtectConfiguration(DeleteProtectConfigurationRequest request)

        Permanently delete the protect configuration. The protect configuration must have deletion protection disabled and must not be associated as the account default protect configuration or associated with a configuration set.

        Specified by:
        deleteProtectConfiguration in interface AmazonPinpointSMSVoiceV2
        Parameters:
        deleteProtectConfigurationRequest -
        Returns:
        Result of the DeleteProtectConfiguration operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • deleteRegistration

        public DeleteRegistrationResult deleteRegistration(DeleteRegistrationRequest request)

        Permanently delete an existing registration from your account.

        Specified by:
        deleteRegistration in interface AmazonPinpointSMSVoiceV2
        Parameters:
        deleteRegistrationRequest -
        Returns:
        Result of the DeleteRegistration operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • describeAccountAttributes

        public DescribeAccountAttributesResult describeAccountAttributes(DescribeAccountAttributesRequest request)

        Describes attributes of your Amazon Web Services account. The supported account 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 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.

        Specified by:
        describeAccountAttributes in interface AmazonPinpointSMSVoiceV2
        Parameters:
        describeAccountAttributesRequest -
        Returns:
        Result of the DescribeAccountAttributes operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ValidationException - A validation exception for a field.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • describeAccountLimits

        public DescribeAccountLimitsResult describeAccountLimits(DescribeAccountLimitsRequest request)

        Describes the current AWS End User Messaging SMS and Voice 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 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 Quotas in the AWS End User Messaging SMS User Guide.

        Specified by:
        describeAccountLimits in interface AmazonPinpointSMSVoiceV2
        Parameters:
        describeAccountLimitsRequest -
        Returns:
        Result of the DescribeAccountLimits operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ValidationException - A validation exception for a field.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • describeConfigurationSets

        public DescribeConfigurationSetsResult describeConfigurationSets(DescribeConfigurationSetsRequest request)

        Describes the specified configuration sets or all in your account.

        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.

        Specified by:
        describeConfigurationSets in interface AmazonPinpointSMSVoiceV2
        Parameters:
        describeConfigurationSetsRequest -
        Returns:
        Result of the DescribeConfigurationSets operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • describeKeywords

        public DescribeKeywordsResult describeKeywords(DescribeKeywordsRequest request)

        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 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, AWS End User Messaging SMS and Voice responds with a customizable message.

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

        Specified by:
        describeKeywords in interface AmazonPinpointSMSVoiceV2
        Parameters:
        describeKeywordsRequest -
        Returns:
        Result of the DescribeKeywords operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • describeOptOutLists

        public DescribeOptOutListsResult describeOptOutLists(DescribeOptOutListsRequest request)

        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 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.

        Specified by:
        describeOptOutLists in interface AmazonPinpointSMSVoiceV2
        Parameters:
        describeOptOutListsRequest -
        Returns:
        Result of the DescribeOptOutLists operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • describeOptedOutNumbers

        public DescribeOptedOutNumbersResult describeOptedOutNumbers(DescribeOptedOutNumbersRequest request)

        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 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.

        Specified by:
        describeOptedOutNumbers in interface AmazonPinpointSMSVoiceV2
        Parameters:
        describeOptedOutNumbersRequest -
        Returns:
        Result of the DescribeOptedOutNumbers operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • describePhoneNumbers

        public DescribePhoneNumbersResult describePhoneNumbers(DescribePhoneNumbersRequest request)

        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 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.

        Specified by:
        describePhoneNumbers in interface AmazonPinpointSMSVoiceV2
        Parameters:
        describePhoneNumbersRequest -
        Returns:
        Result of the DescribePhoneNumbers operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • describePools

        public DescribePoolsResult describePools(DescribePoolsRequest request)

        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 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 phone numbers and SenderIds that are associated with your Amazon Web Services account.

        Specified by:
        describePools in interface AmazonPinpointSMSVoiceV2
        Parameters:
        describePoolsRequest -
        Returns:
        Result of the DescribePools operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • describeSenderIds

        public DescribeSenderIdsResult describeSenderIds(DescribeSenderIdsRequest request)

        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 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.

        Specified by:
        describeSenderIds in interface AmazonPinpointSMSVoiceV2
        Parameters:
        describeSenderIdsRequest -
        Returns:
        Result of the DescribeSenderIds operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • disassociateOriginationIdentity

        public DisassociateOriginationIdentityResult disassociateOriginationIdentity(DisassociateOriginationIdentityRequest request)

        Removes the specified origination identity from an existing pool.

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

        Specified by:
        disassociateOriginationIdentity in interface AmazonPinpointSMSVoiceV2
        Parameters:
        disassociateOriginationIdentityRequest -
        Returns:
        Result of the DisassociateOriginationIdentity operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • putKeyword

        public PutKeywordResult putKeyword(PutKeywordRequest request)

        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 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, AWS End User Messaging SMS and Voice responds with a customizable message.

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

        Specified by:
        putKeyword in interface AmazonPinpointSMSVoiceV2
        Parameters:
        putKeywordRequest -
        Returns:
        Result of the PutKeyword operation returned by the service.
        Throws:
        ServiceQuotaExceededException - The request would cause a service quota to be exceeded.
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • releasePhoneNumber

        public ReleasePhoneNumberResult releasePhoneNumber(ReleasePhoneNumberRequest request)

        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.

        Specified by:
        releasePhoneNumber in interface AmazonPinpointSMSVoiceV2
        Parameters:
        releasePhoneNumberRequest -
        Returns:
        Result of the ReleasePhoneNumber operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • releaseSenderId

        public ReleaseSenderIdResult releaseSenderId(ReleaseSenderIdRequest request)

        Releases an existing sender ID in your account.

        Specified by:
        releaseSenderId in interface AmazonPinpointSMSVoiceV2
        Parameters:
        releaseSenderIdRequest -
        Returns:
        Result of the ReleaseSenderId operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • requestSenderId

        public RequestSenderIdResult requestSenderId(RequestSenderIdRequest request)

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

        Specified by:
        requestSenderId in interface AmazonPinpointSMSVoiceV2
        Parameters:
        requestSenderIdRequest -
        Returns:
        Result of the RequestSenderId operation returned by the service.
        Throws:
        ServiceQuotaExceededException - The request would cause a service quota to be exceeded.
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • sendDestinationNumberVerificationCode

        public SendDestinationNumberVerificationCodeResult sendDestinationNumberVerificationCode(SendDestinationNumberVerificationCodeRequest request)

        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.

        Specified by:
        sendDestinationNumberVerificationCode in interface AmazonPinpointSMSVoiceV2
        Parameters:
        sendDestinationNumberVerificationCodeRequest -
        Returns:
        Result of the SendDestinationNumberVerificationCode operation returned by the service.
        Throws:
        ServiceQuotaExceededException - The request would cause a service quota to be exceeded.
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • sendMediaMessage

        public SendMediaMessageResult sendMediaMessage(SendMediaMessageRequest request)

        Creates a new multimedia message (MMS) and sends it to a recipient's phone number.

        Specified by:
        sendMediaMessage in interface AmazonPinpointSMSVoiceV2
        Parameters:
        sendMediaMessageRequest -
        Returns:
        Result of the SendMediaMessage operation returned by the service.
        Throws:
        ServiceQuotaExceededException - The request would cause a service quota to be exceeded.
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • sendTextMessage

        public SendTextMessageResult sendTextMessage(SendTextMessageRequest request)

        Creates a new text message and sends it to a recipient's phone number. SendTextMessage only sends an SMS message to one recipient each time it is invoked.

        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 about MPS, see Message Parts per Second (MPS) limits in the AWS End User Messaging SMS User Guide.

        Specified by:
        sendTextMessage in interface AmazonPinpointSMSVoiceV2
        Parameters:
        sendTextMessageRequest -
        Returns:
        Result of the SendTextMessage operation returned by the service.
        Throws:
        ServiceQuotaExceededException - The request would cause a service quota to be exceeded.
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • setDefaultMessageType

        public SetDefaultMessageTypeResult setDefaultMessageType(SetDefaultMessageTypeRequest request)

        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 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 account.

        Specified by:
        setDefaultMessageType in interface AmazonPinpointSMSVoiceV2
        Parameters:
        setDefaultMessageTypeRequest -
        Returns:
        Result of the SetDefaultMessageType operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • setDefaultSenderId

        public SetDefaultSenderIdResult setDefaultSenderId(SetDefaultSenderIdRequest request)

        Sets default sender ID on a configuration set.

        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.

        Specified by:
        setDefaultSenderId in interface AmazonPinpointSMSVoiceV2
        Parameters:
        setDefaultSenderIdRequest -
        Returns:
        Result of the SetDefaultSenderId operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • tagResource

        public TagResourceResult tagResource(TagResourceRequest request)

        Adds or overwrites only the specified tags for the specified resource. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and an optional value. Tag keys must be unique per resource. For more information about tags, see Tags in the AWS End User Messaging SMS User Guide.

        Specified by:
        tagResource in interface AmazonPinpointSMSVoiceV2
        Parameters:
        tagResourceRequest -
        Returns:
        Result of the TagResource operation returned by the service.
        Throws:
        ServiceQuotaExceededException - The request would cause a service quota to be exceeded.
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • updateEventDestination

        public UpdateEventDestinationResult updateEventDestination(UpdateEventDestinationRequest request)

        Updates an existing event destination in a configuration set. You can update the IAM role ARN for CloudWatch Logs and 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 updating the destination resource ARN. You can't change an event destination's type between CloudWatch Logs, Firehose, and Amazon SNS.

        Specified by:
        updateEventDestination in interface AmazonPinpointSMSVoiceV2
        Parameters:
        updateEventDestinationRequest -
        Returns:
        Result of the UpdateEventDestination operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • updatePhoneNumber

        public UpdatePhoneNumberResult updatePhoneNumber(UpdatePhoneNumberRequest request)

        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 returned.

        Specified by:
        updatePhoneNumber in interface AmazonPinpointSMSVoiceV2
        Parameters:
        updatePhoneNumberRequest -
        Returns:
        Result of the UpdatePhoneNumber operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • updatePool

        public UpdatePoolResult updatePool(UpdatePoolRequest request)

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

        Specified by:
        updatePool in interface AmazonPinpointSMSVoiceV2
        Parameters:
        updatePoolRequest -
        Returns:
        Result of the UpdatePool operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • verifyDestinationNumber

        public VerifyDestinationNumberResult verifyDestinationNumber(VerifyDestinationNumberRequest request)

        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.

        Specified by:
        verifyDestinationNumber in interface AmazonPinpointSMSVoiceV2
        Parameters:
        verifyDestinationNumberRequest -
        Returns:
        Result of the VerifyDestinationNumber operation returned by the service.
        Throws:
        ThrottlingException - An error that occurred because too many requests were sent during a certain amount of time.
        AccessDeniedException - The request was denied because you don't have sufficient permissions to access the resource.
        ResourceNotFoundException - A requested resource couldn't be found.
        ValidationException - A validation exception for a field.
        ConflictException - 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.
        InternalServerException - 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.
        See Also:
        AWS API Documentation
      • getCachedResponseMetadata

        public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
        Returns additional metadata for a previously executed successful, request, typically used for debugging issues where a service isn't acting as expected. This data isn't considered part of the result data returned by an operation, so it's available through this separate, diagnostic interface.

        Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.

        Specified by:
        getCachedResponseMetadata in interface AmazonPinpointSMSVoiceV2
        Parameters:
        request - The originally executed request
        Returns:
        The response metadata for the specified request, or null if none is available.
Skip navigation links
  • Detail:
  • Field |
  • Constr |
  • Method

AltStyle によって変換されたページ (->オリジナル) /