/*
* 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 connectcampaigns-2021-01-30.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.ConnectCampaignService.Model;
using Amazon.ConnectCampaignService.Model.Internal.MarshallTransformations;
using Amazon.ConnectCampaignService.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ConnectCampaignService
{
///
/// Implementation for accessing ConnectCampaignService
///
/// Provide APIs to create and manage Amazon Connect Campaigns.
///
public partial class AmazonConnectCampaignServiceClient : AmazonServiceClient, IAmazonConnectCampaignService
{
private static IServiceMetadata serviceMetadata = new AmazonConnectCampaignServiceMetadata();
#region Constructors
///
/// Constructs AmazonConnectCampaignServiceClient 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 AmazonConnectCampaignServiceClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonConnectCampaignServiceConfig()) { }
///
/// Constructs AmazonConnectCampaignServiceClient 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 AmazonConnectCampaignServiceClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonConnectCampaignServiceConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonConnectCampaignServiceClient 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 AmazonConnectCampaignServiceClient Configuration Object
public AmazonConnectCampaignServiceClient(AmazonConnectCampaignServiceConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonConnectCampaignServiceClient with AWS Credentials
///
/// AWS Credentials
public AmazonConnectCampaignServiceClient(AWSCredentials credentials)
: this(credentials, new AmazonConnectCampaignServiceConfig())
{
}
///
/// Constructs AmazonConnectCampaignServiceClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonConnectCampaignServiceClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonConnectCampaignServiceConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonConnectCampaignServiceClient with AWS Credentials and an
/// AmazonConnectCampaignServiceClient Configuration object.
///
/// AWS Credentials
/// The AmazonConnectCampaignServiceClient Configuration Object
public AmazonConnectCampaignServiceClient(AWSCredentials credentials, AmazonConnectCampaignServiceConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonConnectCampaignServiceClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonConnectCampaignServiceClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonConnectCampaignServiceConfig())
{
}
///
/// Constructs AmazonConnectCampaignServiceClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonConnectCampaignServiceClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonConnectCampaignServiceConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonConnectCampaignServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonConnectCampaignServiceClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonConnectCampaignServiceClient Configuration Object
public AmazonConnectCampaignServiceClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonConnectCampaignServiceConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonConnectCampaignServiceClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonConnectCampaignServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonConnectCampaignServiceConfig())
{
}
///
/// Constructs AmazonConnectCampaignServiceClient 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 AmazonConnectCampaignServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonConnectCampaignServiceConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonConnectCampaignServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonConnectCampaignServiceClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonConnectCampaignServiceClient Configuration Object
public AmazonConnectCampaignServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonConnectCampaignServiceConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IConnectCampaignServicePaginatorFactory _paginators;
///
/// Paginators for the service
///
public IConnectCampaignServicePaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ConnectCampaignServicePaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customizes the runtime pipeline.
///
/// Runtime pipeline for the current client.
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonConnectCampaignServiceEndpointResolver());
}
///
/// 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 CreateCampaign
internal virtual CreateCampaignResponse CreateCampaign(CreateCampaignRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCampaignRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCampaignResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a campaign for the specified Amazon Connect account. This API is idempotent.
///
/// Container for the necessary parameters to execute the CreateCampaign service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateCampaign service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The specified resource was not found.
///
///
/// Request would cause a service quota to be exceeded.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateCampaign Operation
public virtual Task CreateCampaignAsync(CreateCampaignRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCampaignRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCampaignResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteCampaign
internal virtual DeleteCampaignResponse DeleteCampaign(DeleteCampaignRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteCampaignRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteCampaignResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a campaign from the specified Amazon Connect account.
///
/// Container for the necessary parameters to execute the DeleteCampaign service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteCampaign service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The specified resource was not found.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteCampaign Operation
public virtual Task DeleteCampaignAsync(DeleteCampaignRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteCampaignRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteCampaignResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteConnectInstanceConfig
internal virtual DeleteConnectInstanceConfigResponse DeleteConnectInstanceConfig(DeleteConnectInstanceConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteConnectInstanceConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteConnectInstanceConfigResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a connect instance config from the specified AWS account.
///
/// Container for the necessary parameters to execute the DeleteConnectInstanceConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteConnectInstanceConfig service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The request could not be processed because of conflict in the current state.
///
///
/// The specified resource was not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteConnectInstanceConfig Operation
public virtual Task DeleteConnectInstanceConfigAsync(DeleteConnectInstanceConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteConnectInstanceConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteConnectInstanceConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteInstanceOnboardingJob
internal virtual DeleteInstanceOnboardingJobResponse DeleteInstanceOnboardingJob(DeleteInstanceOnboardingJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteInstanceOnboardingJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteInstanceOnboardingJobResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Delete the Connect Campaigns onboarding job for the specified Amazon Connect instance.
///
/// Container for the necessary parameters to execute the DeleteInstanceOnboardingJob service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteInstanceOnboardingJob service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The request could not be processed because of conflict in the current state.
///
///
/// The specified resource was not found.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteInstanceOnboardingJob Operation
public virtual Task DeleteInstanceOnboardingJobAsync(DeleteInstanceOnboardingJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteInstanceOnboardingJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteInstanceOnboardingJobResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeCampaign
internal virtual DescribeCampaignResponse DescribeCampaign(DescribeCampaignRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCampaignRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCampaignResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Describes the specific campaign.
///
/// Container for the necessary parameters to execute the DescribeCampaign service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeCampaign service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The specified resource was not found.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DescribeCampaign Operation
public virtual Task DescribeCampaignAsync(DescribeCampaignRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCampaignRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCampaignResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetCampaignState
internal virtual GetCampaignStateResponse GetCampaignState(GetCampaignStateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCampaignStateRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCampaignStateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Get state of a campaign for the specified Amazon Connect account.
///
/// Container for the necessary parameters to execute the GetCampaignState service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetCampaignState service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The specified resource was not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetCampaignState Operation
public virtual Task GetCampaignStateAsync(GetCampaignStateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCampaignStateRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCampaignStateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetCampaignStateBatch
internal virtual GetCampaignStateBatchResponse GetCampaignStateBatch(GetCampaignStateBatchRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCampaignStateBatchRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCampaignStateBatchResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Get state of campaigns for the specified Amazon Connect account.
///
/// Container for the necessary parameters to execute the GetCampaignStateBatch service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetCampaignStateBatch service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetCampaignStateBatch Operation
public virtual Task GetCampaignStateBatchAsync(GetCampaignStateBatchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCampaignStateBatchRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCampaignStateBatchResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetConnectInstanceConfig
internal virtual GetConnectInstanceConfigResponse GetConnectInstanceConfig(GetConnectInstanceConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetConnectInstanceConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetConnectInstanceConfigResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Get the specific Connect instance config.
///
/// Container for the necessary parameters to execute the GetConnectInstanceConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetConnectInstanceConfig service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The specified resource was not found.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetConnectInstanceConfig Operation
public virtual Task GetConnectInstanceConfigAsync(GetConnectInstanceConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetConnectInstanceConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetConnectInstanceConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetInstanceOnboardingJobStatus
internal virtual GetInstanceOnboardingJobStatusResponse GetInstanceOnboardingJobStatus(GetInstanceOnboardingJobStatusRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInstanceOnboardingJobStatusRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInstanceOnboardingJobStatusResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Get the specific instance onboarding job status.
///
/// Container for the necessary parameters to execute the GetInstanceOnboardingJobStatus service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetInstanceOnboardingJobStatus service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The specified resource was not found.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetInstanceOnboardingJobStatus Operation
public virtual Task GetInstanceOnboardingJobStatusAsync(GetInstanceOnboardingJobStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInstanceOnboardingJobStatusRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInstanceOnboardingJobStatusResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListCampaigns
internal virtual ListCampaignsResponse ListCampaigns(ListCampaignsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCampaignsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCampaignsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Provides summary information about the campaigns under the specified Amazon Connect
/// account.
///
/// Container for the necessary parameters to execute the ListCampaigns service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListCampaigns service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListCampaigns Operation
public virtual Task ListCampaignsAsync(ListCampaignsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCampaignsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCampaignsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List tags for 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 ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The specified resource was not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// 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 PauseCampaign
internal virtual PauseCampaignResponse PauseCampaign(PauseCampaignRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PauseCampaignRequestMarshaller.Instance;
options.ResponseUnmarshaller = PauseCampaignResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Pauses a campaign for the specified Amazon Connect account.
///
/// Container for the necessary parameters to execute the PauseCampaign service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PauseCampaign service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The request could not be processed because of conflict in the current state of the
/// campaign.
///
///
/// The specified resource was not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for PauseCampaign Operation
public virtual Task PauseCampaignAsync(PauseCampaignRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PauseCampaignRequestMarshaller.Instance;
options.ResponseUnmarshaller = PauseCampaignResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PutDialRequestBatch
internal virtual PutDialRequestBatchResponse PutDialRequestBatch(PutDialRequestBatchRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutDialRequestBatchRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutDialRequestBatchResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates dials requests for the specified campaign Amazon Connect account. This API
/// is idempotent.
///
/// Container for the necessary parameters to execute the PutDialRequestBatch service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutDialRequestBatch service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The request could not be processed because of conflict in the current state of the
/// campaign.
///
///
/// The specified resource was not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for PutDialRequestBatch Operation
public virtual Task PutDialRequestBatchAsync(PutDialRequestBatchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutDialRequestBatchRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutDialRequestBatchResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ResumeCampaign
internal virtual ResumeCampaignResponse ResumeCampaign(ResumeCampaignRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ResumeCampaignRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResumeCampaignResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Stops a campaign for the specified Amazon Connect account.
///
/// Container for the necessary parameters to execute the ResumeCampaign service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ResumeCampaign service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The request could not be processed because of conflict in the current state of the
/// campaign.
///
///
/// The specified resource was not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ResumeCampaign Operation
public virtual Task ResumeCampaignAsync(ResumeCampaignRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ResumeCampaignRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResumeCampaignResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartCampaign
internal virtual StartCampaignResponse StartCampaign(StartCampaignRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartCampaignRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartCampaignResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Starts a campaign for the specified Amazon Connect account.
///
/// Container for the necessary parameters to execute the StartCampaign service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartCampaign service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The request could not be processed because of conflict in the current state of the
/// campaign.
///
///
/// The specified resource was not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for StartCampaign Operation
public virtual Task StartCampaignAsync(StartCampaignRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartCampaignRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartCampaignResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartInstanceOnboardingJob
internal virtual StartInstanceOnboardingJobResponse StartInstanceOnboardingJob(StartInstanceOnboardingJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartInstanceOnboardingJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartInstanceOnboardingJobResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Onboard the specific Amazon Connect instance to Connect Campaigns.
///
/// Container for the necessary parameters to execute the StartInstanceOnboardingJob service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartInstanceOnboardingJob service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The specified resource was not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for StartInstanceOnboardingJob Operation
public virtual Task StartInstanceOnboardingJobAsync(StartInstanceOnboardingJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartInstanceOnboardingJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartInstanceOnboardingJobResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StopCampaign
internal virtual StopCampaignResponse StopCampaign(StopCampaignRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopCampaignRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopCampaignResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Stops a campaign for the specified Amazon Connect account.
///
/// Container for the necessary parameters to execute the StopCampaign service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StopCampaign service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The request could not be processed because of conflict in the current state of the
/// campaign.
///
///
/// The specified resource was not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for StopCampaign Operation
public virtual Task StopCampaignAsync(StopCampaignRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopCampaignRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopCampaignResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
internal virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Tag a resource.
///
/// 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 ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The specified resource was not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// 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
internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Untag a resource.
///
/// 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 ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The specified resource was not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// 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 UpdateCampaignDialerConfig
internal virtual UpdateCampaignDialerConfigResponse UpdateCampaignDialerConfig(UpdateCampaignDialerConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateCampaignDialerConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateCampaignDialerConfigResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates the dialer config of a campaign. This API is idempotent.
///
/// Container for the necessary parameters to execute the UpdateCampaignDialerConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateCampaignDialerConfig service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The specified resource was not found.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UpdateCampaignDialerConfig Operation
public virtual Task UpdateCampaignDialerConfigAsync(UpdateCampaignDialerConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateCampaignDialerConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateCampaignDialerConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateCampaignName
internal virtual UpdateCampaignNameResponse UpdateCampaignName(UpdateCampaignNameRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateCampaignNameRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateCampaignNameResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates the name of a campaign. This API is idempotent.
///
/// Container for the necessary parameters to execute the UpdateCampaignName service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateCampaignName service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The specified resource was not found.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UpdateCampaignName Operation
public virtual Task UpdateCampaignNameAsync(UpdateCampaignNameRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateCampaignNameRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateCampaignNameResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateCampaignOutboundCallConfig
internal virtual UpdateCampaignOutboundCallConfigResponse UpdateCampaignOutboundCallConfig(UpdateCampaignOutboundCallConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateCampaignOutboundCallConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateCampaignOutboundCallConfigResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates the outbound call config of a campaign. This API is idempotent.
///
/// Container for the necessary parameters to execute the UpdateCampaignOutboundCallConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateCampaignOutboundCallConfig service method, as returned by ConnectCampaignService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource.
///
///
/// Request processing failed because of an error or failure with the service.
///
///
/// The specified resource was not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UpdateCampaignOutboundCallConfig Operation
public virtual Task UpdateCampaignOutboundCallConfigAsync(UpdateCampaignOutboundCallConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateCampaignOutboundCallConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateCampaignOutboundCallConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}