/AWSSDK_WinRT/Amazon.SimpleNotificationService/IAmazonSimpleNotificationService.cs
https://github.com/cicorias/aws-sdk-net · C# · 451 lines · 86 code · 80 blank · 285 comment · 0 complexity · 5079adad099c63c354bb4b39142046c7 MD5 · raw file
- /*
- * Copyright 2010-2014 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.
- */
- using System;
- using System.Runtime.ExceptionServices;
- using System.Threading;
- using System.Threading.Tasks;
- using Amazon.SimpleNotificationService.Model;
- namespace Amazon.SimpleNotificationService
- {
- /// <summary>
- /// Implementation for accessing SimpleNotificationService
- ///
- /// Amazon Simple Notification Service
- /// <para>
- /// Amazon Simple Notification Service (Amazon SNS) is a web service that enables you
- /// to build distributed web-enabled applications. Applications can use Amazon SNS
- /// to easily push real-time notification messages to interested subscribers over
- /// multiple delivery protocols. For more information about this product see <a href="http://aws.amazon.com/sns/">http://aws.amazon.com/sns</a>.
- /// For detailed information about Amazon SNS features and their associated API calls, see
- /// the <a href="http://docs.aws.amazon.com/sns/latest/dg/">Amazon SNS Developer Guide</a>.
- /// </para>
- ///
- /// <para>
- /// We also provide SDKs that enable you to access Amazon SNS from your preferred programming
- /// language. The SDKs contain functionality that automatically takes care of tasks
- /// such as: cryptographically signing your service requests, retrying requests,
- /// and handling error responses. For a list of available SDKs, go to <a href="http://aws.amazon.com/tools/">Tools
- /// for Amazon Web Services</a>.
- /// </para>
- /// </summary>
- public partial interface IAmazonSimpleNotificationService : IDisposable
- {
-
- #region AddPermission
- /// <summary>
- /// Initiates the asynchronous execution of the AddPermission operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the AddPermission operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<AddPermissionResponse> AddPermissionAsync(AddPermissionRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region ConfirmSubscription
- /// <summary>
- /// Initiates the asynchronous execution of the ConfirmSubscription operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the ConfirmSubscription operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<ConfirmSubscriptionResponse> ConfirmSubscriptionAsync(ConfirmSubscriptionRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region CreatePlatformApplication
- /// <summary>
- /// Initiates the asynchronous execution of the CreatePlatformApplication operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the CreatePlatformApplication operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<CreatePlatformApplicationResponse> CreatePlatformApplicationAsync(CreatePlatformApplicationRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region CreatePlatformEndpoint
- /// <summary>
- /// Initiates the asynchronous execution of the CreatePlatformEndpoint operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the CreatePlatformEndpoint operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<CreatePlatformEndpointResponse> CreatePlatformEndpointAsync(CreatePlatformEndpointRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region CreateTopic
- /// <summary>
- /// Initiates the asynchronous execution of the CreateTopic operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the CreateTopic operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<CreateTopicResponse> CreateTopicAsync(CreateTopicRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region DeleteEndpoint
- /// <summary>
- /// Initiates the asynchronous execution of the DeleteEndpoint operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the DeleteEndpoint operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<DeleteEndpointResponse> DeleteEndpointAsync(DeleteEndpointRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region DeletePlatformApplication
- /// <summary>
- /// Initiates the asynchronous execution of the DeletePlatformApplication operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the DeletePlatformApplication operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<DeletePlatformApplicationResponse> DeletePlatformApplicationAsync(DeletePlatformApplicationRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region DeleteTopic
- /// <summary>
- /// Initiates the asynchronous execution of the DeleteTopic operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the DeleteTopic operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<DeleteTopicResponse> DeleteTopicAsync(DeleteTopicRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region GetEndpointAttributes
- /// <summary>
- /// Initiates the asynchronous execution of the GetEndpointAttributes operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the GetEndpointAttributes operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<GetEndpointAttributesResponse> GetEndpointAttributesAsync(GetEndpointAttributesRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region GetPlatformApplicationAttributes
- /// <summary>
- /// Initiates the asynchronous execution of the GetPlatformApplicationAttributes operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the GetPlatformApplicationAttributes operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<GetPlatformApplicationAttributesResponse> GetPlatformApplicationAttributesAsync(GetPlatformApplicationAttributesRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region GetSubscriptionAttributes
- /// <summary>
- /// Initiates the asynchronous execution of the GetSubscriptionAttributes operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the GetSubscriptionAttributes operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<GetSubscriptionAttributesResponse> GetSubscriptionAttributesAsync(GetSubscriptionAttributesRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region GetTopicAttributes
- /// <summary>
- /// Initiates the asynchronous execution of the GetTopicAttributes operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the GetTopicAttributes operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<GetTopicAttributesResponse> GetTopicAttributesAsync(GetTopicAttributesRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region ListEndpointsByPlatformApplication
- /// <summary>
- /// Initiates the asynchronous execution of the ListEndpointsByPlatformApplication operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the ListEndpointsByPlatformApplication operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<ListEndpointsByPlatformApplicationResponse> ListEndpointsByPlatformApplicationAsync(ListEndpointsByPlatformApplicationRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region ListPlatformApplications
- /// <summary>
- /// Initiates the asynchronous execution of the ListPlatformApplications operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the ListPlatformApplications operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<ListPlatformApplicationsResponse> ListPlatformApplicationsAsync(ListPlatformApplicationsRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region ListSubscriptions
- /// <summary>
- /// Initiates the asynchronous execution of the ListSubscriptions operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the ListSubscriptions operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<ListSubscriptionsResponse> ListSubscriptionsAsync(ListSubscriptionsRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region ListSubscriptionsByTopic
- /// <summary>
- /// Initiates the asynchronous execution of the ListSubscriptionsByTopic operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the ListSubscriptionsByTopic operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<ListSubscriptionsByTopicResponse> ListSubscriptionsByTopicAsync(ListSubscriptionsByTopicRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region ListTopics
- /// <summary>
- /// Initiates the asynchronous execution of the ListTopics operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the ListTopics operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<ListTopicsResponse> ListTopicsAsync(ListTopicsRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region Publish
- /// <summary>
- /// Initiates the asynchronous execution of the Publish operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the Publish operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<PublishResponse> PublishAsync(PublishRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region RemovePermission
- /// <summary>
- /// Initiates the asynchronous execution of the RemovePermission operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the RemovePermission operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<RemovePermissionResponse> RemovePermissionAsync(RemovePermissionRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region SetEndpointAttributes
- /// <summary>
- /// Initiates the asynchronous execution of the SetEndpointAttributes operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the SetEndpointAttributes operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<SetEndpointAttributesResponse> SetEndpointAttributesAsync(SetEndpointAttributesRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region SetPlatformApplicationAttributes
- /// <summary>
- /// Initiates the asynchronous execution of the SetPlatformApplicationAttributes operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the SetPlatformApplicationAttributes operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<SetPlatformApplicationAttributesResponse> SetPlatformApplicationAttributesAsync(SetPlatformApplicationAttributesRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region SetSubscriptionAttributes
- /// <summary>
- /// Initiates the asynchronous execution of the SetSubscriptionAttributes operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the SetSubscriptionAttributes operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<SetSubscriptionAttributesResponse> SetSubscriptionAttributesAsync(SetSubscriptionAttributesRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region SetTopicAttributes
- /// <summary>
- /// Initiates the asynchronous execution of the SetTopicAttributes operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the SetTopicAttributes operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<SetTopicAttributesResponse> SetTopicAttributesAsync(SetTopicAttributesRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region Subscribe
- /// <summary>
- /// Initiates the asynchronous execution of the Subscribe operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the Subscribe operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<SubscribeResponse> SubscribeAsync(SubscribeRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- #region Unsubscribe
- /// <summary>
- /// Initiates the asynchronous execution of the Unsubscribe operation.
- /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/>
- /// </summary>
- ///
- /// <param name="request">Container for the necessary parameters to execute the Unsubscribe operation.</param>
- /// <param name="cancellationToken">
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- /// </param>
- /// <returns>The task object representing the asynchronous operation.</returns>
- Task<UnsubscribeResponse> UnsubscribeAsync(UnsubscribeRequest request, CancellationToken cancellationToken = default(CancellationToken));
- #endregion
-
- }
- }