/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the pinpoint-sms-voice-v2-2022-03-31.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.PinpointSMSVoiceV2.Model;
using Amazon.PinpointSMSVoiceV2.Model.Internal.MarshallTransformations;
using Amazon.PinpointSMSVoiceV2.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.PinpointSMSVoiceV2
{
///
/// Implementation for accessing 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
/// 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
/// 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 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.
///
///
public partial class AmazonPinpointSMSVoiceV2Client : AmazonServiceClient, IAmazonPinpointSMSVoiceV2
{
private static IServiceMetadata serviceMetadata = new AmazonPinpointSMSVoiceV2Metadata();
private IPinpointSMSVoiceV2PaginatorFactory _paginators;
///
/// Paginators for the service
///
public IPinpointSMSVoiceV2PaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new PinpointSMSVoiceV2PaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
///
/// Constructs AmazonPinpointSMSVoiceV2Client with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonPinpointSMSVoiceV2Client()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonPinpointSMSVoiceV2Config()) { }
///
/// Constructs AmazonPinpointSMSVoiceV2Client with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonPinpointSMSVoiceV2Client(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonPinpointSMSVoiceV2Config{RegionEndpoint = region}) { }
///
/// Constructs AmazonPinpointSMSVoiceV2Client with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonPinpointSMSVoiceV2Client Configuration Object
public AmazonPinpointSMSVoiceV2Client(AmazonPinpointSMSVoiceV2Config config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonPinpointSMSVoiceV2Client with AWS Credentials
///
/// AWS Credentials
public AmazonPinpointSMSVoiceV2Client(AWSCredentials credentials)
: this(credentials, new AmazonPinpointSMSVoiceV2Config())
{
}
///
/// Constructs AmazonPinpointSMSVoiceV2Client with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonPinpointSMSVoiceV2Client(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonPinpointSMSVoiceV2Config{RegionEndpoint = region})
{
}
///
/// Constructs AmazonPinpointSMSVoiceV2Client with AWS Credentials and an
/// AmazonPinpointSMSVoiceV2Client Configuration object.
///
/// AWS Credentials
/// The AmazonPinpointSMSVoiceV2Client Configuration Object
public AmazonPinpointSMSVoiceV2Client(AWSCredentials credentials, AmazonPinpointSMSVoiceV2Config clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonPinpointSMSVoiceV2Client with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonPinpointSMSVoiceV2Client(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonPinpointSMSVoiceV2Config())
{
}
///
/// Constructs AmazonPinpointSMSVoiceV2Client with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonPinpointSMSVoiceV2Client(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonPinpointSMSVoiceV2Config() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonPinpointSMSVoiceV2Client with AWS Access Key ID, AWS Secret Key and an
/// AmazonPinpointSMSVoiceV2Client Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonPinpointSMSVoiceV2Client Configuration Object
public AmazonPinpointSMSVoiceV2Client(string awsAccessKeyId, string awsSecretAccessKey, AmazonPinpointSMSVoiceV2Config clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonPinpointSMSVoiceV2Client with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonPinpointSMSVoiceV2Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonPinpointSMSVoiceV2Config())
{
}
///
/// Constructs AmazonPinpointSMSVoiceV2Client with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonPinpointSMSVoiceV2Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonPinpointSMSVoiceV2Config{RegionEndpoint = region})
{
}
///
/// Constructs AmazonPinpointSMSVoiceV2Client with AWS Access Key ID, AWS Secret Key and an
/// AmazonPinpointSMSVoiceV2Client Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonPinpointSMSVoiceV2Client Configuration Object
public AmazonPinpointSMSVoiceV2Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonPinpointSMSVoiceV2Config clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonPinpointSMSVoiceV2EndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region AssociateOriginationIdentity
///
/// 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.
///
///
/// Container for the necessary parameters to execute the AssociateOriginationIdentity service method.
///
/// The response from the AssociateOriginationIdentity service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for AssociateOriginationIdentity Operation
public virtual AssociateOriginationIdentityResponse AssociateOriginationIdentity(AssociateOriginationIdentityRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateOriginationIdentityRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateOriginationIdentityResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the AssociateOriginationIdentity service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AssociateOriginationIdentity service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for AssociateOriginationIdentity Operation
public virtual Task AssociateOriginationIdentityAsync(AssociateOriginationIdentityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateOriginationIdentityRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateOriginationIdentityResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateConfigurationSet
///
/// 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.
///
///
/// Container for the necessary parameters to execute the CreateConfigurationSet service method.
///
/// The response from the CreateConfigurationSet service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for CreateConfigurationSet Operation
public virtual CreateConfigurationSetResponse CreateConfigurationSet(CreateConfigurationSetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateConfigurationSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateConfigurationSetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the CreateConfigurationSet service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateConfigurationSet service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for CreateConfigurationSet Operation
public virtual Task CreateConfigurationSetAsync(CreateConfigurationSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateConfigurationSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateConfigurationSetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateEventDestination
///
/// 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 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
/// destination can contain a reference to a single destination, such as a CloudWatch
/// or Kinesis Data Firehose destination.
///
///
/// Container for the necessary parameters to execute the CreateEventDestination service method.
///
/// The response from the CreateEventDestination service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for CreateEventDestination Operation
public virtual CreateEventDestinationResponse CreateEventDestination(CreateEventDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEventDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEventDestinationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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 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
/// destination can contain a reference to a single destination, such as a CloudWatch
/// or Kinesis Data Firehose destination.
///
///
/// Container for the necessary parameters to execute the CreateEventDestination service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateEventDestination service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for CreateEventDestination Operation
public virtual Task CreateEventDestinationAsync(CreateEventDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEventDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEventDestinationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateOptOutList
///
/// 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 Amazon Pinpoint User Guide.
///
///
/// Container for the necessary parameters to execute the CreateOptOutList service method.
///
/// The response from the CreateOptOutList service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for CreateOptOutList Operation
public virtual CreateOptOutListResponse CreateOptOutList(CreateOptOutListRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateOptOutListRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateOptOutListResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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 Amazon Pinpoint User Guide.
///
///
/// Container for the necessary parameters to execute the CreateOptOutList service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateOptOutList service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for CreateOptOutList Operation
public virtual Task CreateOptOutListAsync(CreateOptOutListRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateOptOutListRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateOptOutListResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreatePool
///
/// 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.
///
///
/// Container for the necessary parameters to execute the CreatePool service method.
///
/// The response from the CreatePool service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for CreatePool Operation
public virtual CreatePoolResponse CreatePool(CreatePoolRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePoolRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePoolResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the CreatePool service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreatePool service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for CreatePool Operation
public virtual Task CreatePoolAsync(CreatePoolRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePoolRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePoolResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteConfigurationSet
///
/// Deletes an existing configuration set.
///
///
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeleteConfigurationSet service method.
///
/// The response from the DeleteConfigurationSet service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteConfigurationSet Operation
public virtual DeleteConfigurationSetResponse DeleteConfigurationSet(DeleteConfigurationSetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteConfigurationSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteConfigurationSetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an existing configuration set.
///
///
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeleteConfigurationSet service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteConfigurationSet service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteConfigurationSet Operation
public virtual Task DeleteConfigurationSetAsync(DeleteConfigurationSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteConfigurationSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteConfigurationSetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteDefaultMessageType
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeleteDefaultMessageType service method.
///
/// The response from the DeleteDefaultMessageType service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteDefaultMessageType Operation
public virtual DeleteDefaultMessageTypeResponse DeleteDefaultMessageType(DeleteDefaultMessageTypeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDefaultMessageTypeRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDefaultMessageTypeResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeleteDefaultMessageType service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteDefaultMessageType service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteDefaultMessageType Operation
public virtual Task DeleteDefaultMessageTypeAsync(DeleteDefaultMessageTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDefaultMessageTypeRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDefaultMessageTypeResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteDefaultSenderId
///
/// Deletes an existing default sender ID on a configuration set.
///
///
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeleteDefaultSenderId service method.
///
/// The response from the DeleteDefaultSenderId service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteDefaultSenderId Operation
public virtual DeleteDefaultSenderIdResponse DeleteDefaultSenderId(DeleteDefaultSenderIdRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDefaultSenderIdRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDefaultSenderIdResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an existing default sender ID on a configuration set.
///
///
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeleteDefaultSenderId service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteDefaultSenderId service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteDefaultSenderId Operation
public virtual Task DeleteDefaultSenderIdAsync(DeleteDefaultSenderIdRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDefaultSenderIdRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDefaultSenderIdResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteEventDestination
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeleteEventDestination service method.
///
/// The response from the DeleteEventDestination service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteEventDestination Operation
public virtual DeleteEventDestinationResponse DeleteEventDestination(DeleteEventDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEventDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEventDestinationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeleteEventDestination service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteEventDestination service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteEventDestination Operation
public virtual Task DeleteEventDestinationAsync(DeleteEventDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEventDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEventDestinationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteKeyword
///
/// 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, Amazon Pinpoint responds with a customizable
/// message.
///
///
///
/// Keywords "HELP" and "STOP" can't be deleted or modified.
///
///
/// Container for the necessary parameters to execute the DeleteKeyword service method.
///
/// The response from the DeleteKeyword service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteKeyword Operation
public virtual DeleteKeywordResponse DeleteKeyword(DeleteKeywordRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteKeywordRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteKeywordResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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, Amazon Pinpoint responds with a customizable
/// message.
///
///
///
/// Keywords "HELP" and "STOP" can't be deleted or modified.
///
///
/// Container for the necessary parameters to execute the DeleteKeyword service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteKeyword service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteKeyword Operation
public virtual Task DeleteKeywordAsync(DeleteKeywordRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteKeywordRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteKeywordResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteOptedOutNumber
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeleteOptedOutNumber service method.
///
/// The response from the DeleteOptedOutNumber service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteOptedOutNumber Operation
public virtual DeleteOptedOutNumberResponse DeleteOptedOutNumber(DeleteOptedOutNumberRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteOptedOutNumberRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteOptedOutNumberResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeleteOptedOutNumber service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteOptedOutNumber service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteOptedOutNumber Operation
public virtual Task DeleteOptedOutNumberAsync(DeleteOptedOutNumberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteOptedOutNumberRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteOptedOutNumberResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteOptOutList
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeleteOptOutList service method.
///
/// The response from the DeleteOptOutList service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteOptOutList Operation
public virtual DeleteOptOutListResponse DeleteOptOutList(DeleteOptOutListRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteOptOutListRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteOptOutListResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeleteOptOutList service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteOptOutList service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteOptOutList Operation
public virtual Task DeleteOptOutListAsync(DeleteOptOutListRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteOptOutListRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteOptOutListResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeletePool
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeletePool service method.
///
/// The response from the DeletePool service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeletePool Operation
public virtual DeletePoolResponse DeletePool(DeletePoolRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePoolRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePoolResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DeletePool service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeletePool service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeletePool Operation
public virtual Task DeletePoolAsync(DeletePoolRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePoolRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePoolResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteTextMessageSpendLimitOverride
///
/// Deletes an account-level monthly spending limit override for sending text messages.
/// Deleting a spend limit override will set the EnforcedLimit
to equal the
/// MaxLimit
, which is controlled by Amazon Web Services. For more information
/// on spend limits (quotas) see Amazon
/// Pinpoint quotas in the Amazon Pinpoint Developer Guide.
///
/// Container for the necessary parameters to execute the DeleteTextMessageSpendLimitOverride service method.
///
/// The response from the DeleteTextMessageSpendLimitOverride service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteTextMessageSpendLimitOverride Operation
public virtual DeleteTextMessageSpendLimitOverrideResponse DeleteTextMessageSpendLimitOverride(DeleteTextMessageSpendLimitOverrideRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteTextMessageSpendLimitOverrideRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteTextMessageSpendLimitOverrideResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an account-level monthly spending limit override for sending text messages.
/// Deleting a spend limit override will set the EnforcedLimit
to equal the
/// MaxLimit
, which is controlled by Amazon Web Services. For more information
/// on spend limits (quotas) see Amazon
/// Pinpoint quotas in the Amazon Pinpoint Developer Guide.
///
/// Container for the necessary parameters to execute the DeleteTextMessageSpendLimitOverride service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteTextMessageSpendLimitOverride service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteTextMessageSpendLimitOverride Operation
public virtual Task DeleteTextMessageSpendLimitOverrideAsync(DeleteTextMessageSpendLimitOverrideRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteTextMessageSpendLimitOverrideRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteTextMessageSpendLimitOverrideResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteVoiceMessageSpendLimitOverride
///
/// Deletes an account level monthly spend limit override for sending voice messages.
/// Deleting a spend limit override sets the EnforcedLimit
equal to the MaxLimit
,
/// which is controlled by Amazon Web Services. For more information on spending limits
/// (quotas) see Amazon
/// Pinpoint quotas in the Amazon Pinpoint Developer Guide.
///
/// Container for the necessary parameters to execute the DeleteVoiceMessageSpendLimitOverride service method.
///
/// The response from the DeleteVoiceMessageSpendLimitOverride service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteVoiceMessageSpendLimitOverride Operation
public virtual DeleteVoiceMessageSpendLimitOverrideResponse DeleteVoiceMessageSpendLimitOverride(DeleteVoiceMessageSpendLimitOverrideRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVoiceMessageSpendLimitOverrideRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVoiceMessageSpendLimitOverrideResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an account level monthly spend limit override for sending voice messages.
/// Deleting a spend limit override sets the EnforcedLimit
equal to the MaxLimit
,
/// which is controlled by Amazon Web Services. For more information on spending limits
/// (quotas) see Amazon
/// Pinpoint quotas in the Amazon Pinpoint Developer Guide.
///
/// Container for the necessary parameters to execute the DeleteVoiceMessageSpendLimitOverride service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteVoiceMessageSpendLimitOverride service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DeleteVoiceMessageSpendLimitOverride Operation
public virtual Task DeleteVoiceMessageSpendLimitOverrideAsync(DeleteVoiceMessageSpendLimitOverrideRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVoiceMessageSpendLimitOverrideRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVoiceMessageSpendLimitOverrideResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeAccountAttributes
///
/// 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 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.
///
///
/// Container for the necessary parameters to execute the DescribeAccountAttributes service method.
///
/// The response from the DescribeAccountAttributes service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeAccountAttributes Operation
public virtual DescribeAccountAttributesResponse DescribeAccountAttributes(DescribeAccountAttributesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAccountAttributesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAccountAttributesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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 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.
///
///
/// Container for the necessary parameters to execute the DescribeAccountAttributes service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeAccountAttributes service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeAccountAttributes Operation
public virtual Task DescribeAccountAttributesAsync(DescribeAccountAttributesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAccountAttributesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAccountAttributesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeAccountLimits
///
/// 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 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 Guide.
///
///
/// Container for the necessary parameters to execute the DescribeAccountLimits service method.
///
/// The response from the DescribeAccountLimits service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeAccountLimits Operation
public virtual DescribeAccountLimitsResponse DescribeAccountLimits(DescribeAccountLimitsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAccountLimitsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAccountLimitsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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 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 Guide.
///
///
/// Container for the necessary parameters to execute the DescribeAccountLimits service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeAccountLimits service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeAccountLimits Operation
public virtual Task DescribeAccountLimitsAsync(DescribeAccountLimitsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAccountLimitsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAccountLimitsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeConfigurationSets
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DescribeConfigurationSets service method.
///
/// The response from the DescribeConfigurationSets service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeConfigurationSets Operation
public virtual DescribeConfigurationSetsResponse DescribeConfigurationSets(DescribeConfigurationSetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeConfigurationSetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeConfigurationSetsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DescribeConfigurationSets service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeConfigurationSets service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeConfigurationSets Operation
public virtual Task DescribeConfigurationSetsAsync(DescribeConfigurationSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeConfigurationSetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeConfigurationSetsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeKeywords
///
/// 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, Amazon Pinpoint responds with a customizable
/// message.
///
///
///
/// If you specify a keyword that isn't valid, an Error is returned.
///
///
/// Container for the necessary parameters to execute the DescribeKeywords service method.
///
/// The response from the DescribeKeywords service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeKeywords Operation
public virtual DescribeKeywordsResponse DescribeKeywords(DescribeKeywordsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeKeywordsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeKeywordsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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, Amazon Pinpoint responds with a customizable
/// message.
///
///
///
/// If you specify a keyword that isn't valid, an Error is returned.
///
///
/// Container for the necessary parameters to execute the DescribeKeywords service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeKeywords service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeKeywords Operation
public virtual Task DescribeKeywordsAsync(DescribeKeywordsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeKeywordsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeKeywordsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeOptedOutNumbers
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DescribeOptedOutNumbers service method.
///
/// The response from the DescribeOptedOutNumbers service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeOptedOutNumbers Operation
public virtual DescribeOptedOutNumbersResponse DescribeOptedOutNumbers(DescribeOptedOutNumbersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeOptedOutNumbersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeOptedOutNumbersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DescribeOptedOutNumbers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeOptedOutNumbers service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeOptedOutNumbers Operation
public virtual Task DescribeOptedOutNumbersAsync(DescribeOptedOutNumbersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeOptedOutNumbersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeOptedOutNumbersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeOptOutLists
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DescribeOptOutLists service method.
///
/// The response from the DescribeOptOutLists service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeOptOutLists Operation
public virtual DescribeOptOutListsResponse DescribeOptOutLists(DescribeOptOutListsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeOptOutListsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeOptOutListsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DescribeOptOutLists service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeOptOutLists service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeOptOutLists Operation
public virtual Task DescribeOptOutListsAsync(DescribeOptOutListsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeOptOutListsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeOptOutListsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribePhoneNumbers
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DescribePhoneNumbers service method.
///
/// The response from the DescribePhoneNumbers service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribePhoneNumbers Operation
public virtual DescribePhoneNumbersResponse DescribePhoneNumbers(DescribePhoneNumbersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePhoneNumbersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePhoneNumbersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DescribePhoneNumbers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribePhoneNumbers service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribePhoneNumbers Operation
public virtual Task DescribePhoneNumbersAsync(DescribePhoneNumbersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePhoneNumbersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePhoneNumbersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribePools
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DescribePools service method.
///
/// The response from the DescribePools service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribePools Operation
public virtual DescribePoolsResponse DescribePools(DescribePoolsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePoolsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePoolsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DescribePools service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribePools service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribePools Operation
public virtual Task DescribePoolsAsync(DescribePoolsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePoolsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePoolsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeSenderIds
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DescribeSenderIds service method.
///
/// The response from the DescribeSenderIds service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeSenderIds Operation
public virtual DescribeSenderIdsResponse DescribeSenderIds(DescribeSenderIdsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSenderIdsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSenderIdsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the DescribeSenderIds service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeSenderIds service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeSenderIds Operation
public virtual Task DescribeSenderIdsAsync(DescribeSenderIdsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSenderIdsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSenderIdsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeSpendLimits
///
/// 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
/// 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 in
/// the Amazon Pinpoint User Guide.
///
///
/// Container for the necessary parameters to execute the DescribeSpendLimits service method.
///
/// The response from the DescribeSpendLimits service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeSpendLimits Operation
public virtual DescribeSpendLimitsResponse DescribeSpendLimits(DescribeSpendLimitsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSpendLimitsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSpendLimitsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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
/// 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 in
/// the Amazon Pinpoint User Guide.
///
///
/// Container for the necessary parameters to execute the DescribeSpendLimits service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeSpendLimits service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DescribeSpendLimits Operation
public virtual Task DescribeSpendLimitsAsync(DescribeSpendLimitsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSpendLimitsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSpendLimitsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisassociateOriginationIdentity
///
/// Removes the specified origination identity from an existing pool.
///
///
///
/// If the origination identity isn't associated with the specified pool, an Error is
/// returned.
///
///
/// Container for the necessary parameters to execute the DisassociateOriginationIdentity service method.
///
/// The response from the DisassociateOriginationIdentity service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DisassociateOriginationIdentity Operation
public virtual DisassociateOriginationIdentityResponse DisassociateOriginationIdentity(DisassociateOriginationIdentityRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateOriginationIdentityRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateOriginationIdentityResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes the specified origination identity from an existing pool.
///
///
///
/// If the origination identity isn't associated with the specified pool, an Error is
/// returned.
///
///
/// Container for the necessary parameters to execute the DisassociateOriginationIdentity service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisassociateOriginationIdentity service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for DisassociateOriginationIdentity Operation
public virtual Task DisassociateOriginationIdentityAsync(DisassociateOriginationIdentityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateOriginationIdentityRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateOriginationIdentityResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListPoolOriginationIdentities
///
/// Lists all associated origination identities in your pool.
///
///
///
/// If you specify filters, the output includes information for only those origination
/// identities that meet the filter criteria.
///
///
/// Container for the necessary parameters to execute the ListPoolOriginationIdentities service method.
///
/// The response from the ListPoolOriginationIdentities service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for ListPoolOriginationIdentities Operation
public virtual ListPoolOriginationIdentitiesResponse ListPoolOriginationIdentities(ListPoolOriginationIdentitiesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPoolOriginationIdentitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPoolOriginationIdentitiesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all associated origination identities in your pool.
///
///
///
/// If you specify filters, the output includes information for only those origination
/// identities that meet the filter criteria.
///
///
/// Container for the necessary parameters to execute the ListPoolOriginationIdentities service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListPoolOriginationIdentities service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for ListPoolOriginationIdentities Operation
public virtual Task ListPoolOriginationIdentitiesAsync(ListPoolOriginationIdentitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPoolOriginationIdentitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPoolOriginationIdentitiesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
///
/// List all tags associated with a resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List all tags associated with a resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForResource service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for ListTagsForResource Operation
public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PutKeyword
///
/// 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, Amazon Pinpoint responds with a customizable
/// message.
///
///
///
/// If you specify a keyword that isn't valid, an Error is returned.
///
///
/// Container for the necessary parameters to execute the PutKeyword service method.
///
/// The response from the PutKeyword service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for PutKeyword Operation
public virtual PutKeywordResponse PutKeyword(PutKeywordRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutKeywordRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutKeywordResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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, Amazon Pinpoint responds with a customizable
/// message.
///
///
///
/// If you specify a keyword that isn't valid, an Error is returned.
///
///
/// Container for the necessary parameters to execute the PutKeyword service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutKeyword service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for PutKeyword Operation
public virtual Task PutKeywordAsync(PutKeywordRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutKeywordRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutKeywordResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PutOptedOutNumber
///
/// 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.
///
///
/// Container for the necessary parameters to execute the PutOptedOutNumber service method.
///
/// The response from the PutOptedOutNumber service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for PutOptedOutNumber Operation
public virtual PutOptedOutNumberResponse PutOptedOutNumber(PutOptedOutNumberRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutOptedOutNumberRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutOptedOutNumberResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the PutOptedOutNumber service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutOptedOutNumber service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for PutOptedOutNumber Operation
public virtual Task PutOptedOutNumberAsync(PutOptedOutNumberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutOptedOutNumberRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutOptedOutNumberResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ReleasePhoneNumber
///
/// 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.
///
///
/// Container for the necessary parameters to execute the ReleasePhoneNumber service method.
///
/// The response from the ReleasePhoneNumber service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for ReleasePhoneNumber Operation
public virtual ReleasePhoneNumberResponse ReleasePhoneNumber(ReleasePhoneNumberRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ReleasePhoneNumberRequestMarshaller.Instance;
options.ResponseUnmarshaller = ReleasePhoneNumberResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the ReleasePhoneNumber service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ReleasePhoneNumber service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for ReleasePhoneNumber Operation
public virtual Task ReleasePhoneNumberAsync(ReleasePhoneNumberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ReleasePhoneNumberRequestMarshaller.Instance;
options.ResponseUnmarshaller = ReleasePhoneNumberResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RequestPhoneNumber
///
/// Request an origination phone number for use in your account. For more information
/// on phone number request see
/// Requesting a number in the Amazon Pinpoint User Guide.
///
/// Container for the necessary parameters to execute the RequestPhoneNumber service method.
///
/// The response from the RequestPhoneNumber service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for RequestPhoneNumber Operation
public virtual RequestPhoneNumberResponse RequestPhoneNumber(RequestPhoneNumberRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RequestPhoneNumberRequestMarshaller.Instance;
options.ResponseUnmarshaller = RequestPhoneNumberResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Request an origination phone number for use in your account. For more information
/// on phone number request see
/// Requesting a number in the Amazon Pinpoint User Guide.
///
/// Container for the necessary parameters to execute the RequestPhoneNumber service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the RequestPhoneNumber service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for RequestPhoneNumber Operation
public virtual Task RequestPhoneNumberAsync(RequestPhoneNumberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RequestPhoneNumberRequestMarshaller.Instance;
options.ResponseUnmarshaller = RequestPhoneNumberResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region SendTextMessage
///
/// 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
/// 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 Guide.
///
///
/// Container for the necessary parameters to execute the SendTextMessage service method.
///
/// The response from the SendTextMessage service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for SendTextMessage Operation
public virtual SendTextMessageResponse SendTextMessage(SendTextMessageRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = SendTextMessageRequestMarshaller.Instance;
options.ResponseUnmarshaller = SendTextMessageResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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
/// 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 Guide.
///
///
/// Container for the necessary parameters to execute the SendTextMessage service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the SendTextMessage service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for SendTextMessage Operation
public virtual Task SendTextMessageAsync(SendTextMessageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = SendTextMessageRequestMarshaller.Instance;
options.ResponseUnmarshaller = SendTextMessageResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region SendVoiceMessage
///
/// Allows you to send a request that sends a text message through Amazon Pinpoint. This
/// operation uses Amazon Polly to convert
/// a text script into a voice message.
///
/// Container for the necessary parameters to execute the SendVoiceMessage service method.
///
/// The response from the SendVoiceMessage service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for SendVoiceMessage Operation
public virtual SendVoiceMessageResponse SendVoiceMessage(SendVoiceMessageRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = SendVoiceMessageRequestMarshaller.Instance;
options.ResponseUnmarshaller = SendVoiceMessageResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Allows you to send a request that sends a text message through Amazon Pinpoint. This
/// operation uses Amazon Polly to convert
/// a text script into a voice message.
///
/// Container for the necessary parameters to execute the SendVoiceMessage service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the SendVoiceMessage service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for SendVoiceMessage Operation
public virtual Task SendVoiceMessageAsync(SendVoiceMessageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = SendVoiceMessageRequestMarshaller.Instance;
options.ResponseUnmarshaller = SendVoiceMessageResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region SetDefaultMessageType
///
/// 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.
///
///
/// Container for the necessary parameters to execute the SetDefaultMessageType service method.
///
/// The response from the SetDefaultMessageType service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for SetDefaultMessageType Operation
public virtual SetDefaultMessageTypeResponse SetDefaultMessageType(SetDefaultMessageTypeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = SetDefaultMessageTypeRequestMarshaller.Instance;
options.ResponseUnmarshaller = SetDefaultMessageTypeResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the SetDefaultMessageType service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the SetDefaultMessageType service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for SetDefaultMessageType Operation
public virtual Task SetDefaultMessageTypeAsync(SetDefaultMessageTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = SetDefaultMessageTypeRequestMarshaller.Instance;
options.ResponseUnmarshaller = SetDefaultMessageTypeResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region SetDefaultSenderId
///
/// 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.
///
///
/// Container for the necessary parameters to execute the SetDefaultSenderId service method.
///
/// The response from the SetDefaultSenderId service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for SetDefaultSenderId Operation
public virtual SetDefaultSenderIdResponse SetDefaultSenderId(SetDefaultSenderIdRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = SetDefaultSenderIdRequestMarshaller.Instance;
options.ResponseUnmarshaller = SetDefaultSenderIdResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the SetDefaultSenderId service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the SetDefaultSenderId service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for SetDefaultSenderId Operation
public virtual Task SetDefaultSenderIdAsync(SetDefaultSenderIdRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = SetDefaultSenderIdRequestMarshaller.Instance;
options.ResponseUnmarshaller = SetDefaultSenderIdResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region SetTextMessageSpendLimitOverride
///
/// Sets an account level monthly spend limit override for sending text messages. The
/// requested spend limit must be less than or equal to the MaxLimit
, which
/// is set by Amazon Web Services.
///
/// Container for the necessary parameters to execute the SetTextMessageSpendLimitOverride service method.
///
/// The response from the SetTextMessageSpendLimitOverride service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for SetTextMessageSpendLimitOverride Operation
public virtual SetTextMessageSpendLimitOverrideResponse SetTextMessageSpendLimitOverride(SetTextMessageSpendLimitOverrideRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = SetTextMessageSpendLimitOverrideRequestMarshaller.Instance;
options.ResponseUnmarshaller = SetTextMessageSpendLimitOverrideResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Sets an account level monthly spend limit override for sending text messages. The
/// requested spend limit must be less than or equal to the MaxLimit
, which
/// is set by Amazon Web Services.
///
/// Container for the necessary parameters to execute the SetTextMessageSpendLimitOverride service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the SetTextMessageSpendLimitOverride service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for SetTextMessageSpendLimitOverride Operation
public virtual Task SetTextMessageSpendLimitOverrideAsync(SetTextMessageSpendLimitOverrideRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = SetTextMessageSpendLimitOverrideRequestMarshaller.Instance;
options.ResponseUnmarshaller = SetTextMessageSpendLimitOverrideResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region SetVoiceMessageSpendLimitOverride
///
/// Sets an account level monthly spend limit override for sending voice messages. The
/// requested spend limit must be less than or equal to the MaxLimit
, which
/// is set by Amazon Web Services.
///
/// Container for the necessary parameters to execute the SetVoiceMessageSpendLimitOverride service method.
///
/// The response from the SetVoiceMessageSpendLimitOverride service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for SetVoiceMessageSpendLimitOverride Operation
public virtual SetVoiceMessageSpendLimitOverrideResponse SetVoiceMessageSpendLimitOverride(SetVoiceMessageSpendLimitOverrideRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = SetVoiceMessageSpendLimitOverrideRequestMarshaller.Instance;
options.ResponseUnmarshaller = SetVoiceMessageSpendLimitOverrideResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Sets an account level monthly spend limit override for sending voice messages. The
/// requested spend limit must be less than or equal to the MaxLimit
, which
/// is set by Amazon Web Services.
///
/// Container for the necessary parameters to execute the SetVoiceMessageSpendLimitOverride service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the SetVoiceMessageSpendLimitOverride service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for SetVoiceMessageSpendLimitOverride Operation
public virtual Task SetVoiceMessageSpendLimitOverrideAsync(SetVoiceMessageSpendLimitOverrideRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = SetVoiceMessageSpendLimitOverrideRequestMarshaller.Instance;
options.ResponseUnmarshaller = SetVoiceMessageSpendLimitOverrideResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
///
/// Adds or overwrites only the specified tags for the specified Amazon Pinpoint SMS Voice,
/// version 2 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
/// Tagging Amazon Pinpoint resources in the Amazon Pinpoint Developer Guide.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds or overwrites only the specified tags for the specified Amazon Pinpoint SMS Voice,
/// version 2 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
/// Tagging Amazon Pinpoint resources in the Amazon Pinpoint Developer Guide.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagResource service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for TagResource Operation
public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UntagResource
///
/// Removes the association of the specified tags from an Amazon Pinpoint SMS Voice V2
/// resource. For more information on tags see
/// Tagging Amazon Pinpoint resources in the Amazon Pinpoint Developer Guide.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes the association of the specified tags from an Amazon Pinpoint SMS Voice V2
/// resource. For more information on tags see
/// Tagging Amazon Pinpoint resources in the Amazon Pinpoint Developer Guide.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagResource service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for UntagResource Operation
public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateEventDestination
///
/// 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
/// updating the destination resource ARN. You can't change an event destination's type
/// between CloudWatch Logs, Kinesis Data Firehose, and Amazon SNS.
///
///
/// Container for the necessary parameters to execute the UpdateEventDestination service method.
///
/// The response from the UpdateEventDestination service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for UpdateEventDestination Operation
public virtual UpdateEventDestinationResponse UpdateEventDestination(UpdateEventDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateEventDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateEventDestinationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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
/// updating the destination resource ARN. You can't change an event destination's type
/// between CloudWatch Logs, Kinesis Data Firehose, and Amazon SNS.
///
///
/// Container for the necessary parameters to execute the UpdateEventDestination service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateEventDestination service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for UpdateEventDestination Operation
public virtual Task UpdateEventDestinationAsync(UpdateEventDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateEventDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateEventDestinationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdatePhoneNumber
///
/// 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.
///
///
/// Container for the necessary parameters to execute the UpdatePhoneNumber service method.
///
/// The response from the UpdatePhoneNumber service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for UpdatePhoneNumber Operation
public virtual UpdatePhoneNumberResponse UpdatePhoneNumber(UpdatePhoneNumberRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdatePhoneNumberRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdatePhoneNumberResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
/// Container for the necessary parameters to execute the UpdatePhoneNumber service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdatePhoneNumber service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for UpdatePhoneNumber Operation
public virtual Task UpdatePhoneNumberAsync(UpdatePhoneNumberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdatePhoneNumberRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdatePhoneNumberResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdatePool
///
/// 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.
///
/// Container for the necessary parameters to execute the UpdatePool service method.
///
/// The response from the UpdatePool service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for UpdatePool Operation
public virtual UpdatePoolResponse UpdatePool(UpdatePoolRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdatePoolRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdatePoolResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the UpdatePool service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdatePool service method, as returned by PinpointSMSVoiceV2.
///
/// The request was denied because you don't have sufficient permissions to access the
/// resource.
///
///
/// 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.
///
///
/// 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.
///
///
/// A requested resource couldn't be found.
///
///
/// An error that occurred because too many requests were sent during a certain amount
/// of time.
///
///
/// A validation exception for a field.
///
/// REST API Reference for UpdatePool Operation
public virtual Task UpdatePoolAsync(UpdatePoolRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdatePoolRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdatePoolResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}