/* * 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 codestar-notifications-2019-10-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.CodeStarNotifications.Model; using Amazon.CodeStarNotifications.Model.Internal.MarshallTransformations; using Amazon.CodeStarNotifications.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CodeStarNotifications { /// /// Implementation for accessing CodeStarNotifications /// /// This AWS CodeStar Notifications API Reference provides descriptions and usage examples /// of the operations and data types for the AWS CodeStar Notifications API. You can use /// the AWS CodeStar Notifications API to work with the following objects: /// /// /// /// Notification rules, by calling the following: /// /// /// /// Targets, by calling the following: /// /// /// /// Events, by calling the following: /// /// /// /// Tags, by calling the following: /// /// /// /// For information about how to use AWS CodeStar Notifications, see the Amazon /// Web Services Developer Tools Console User Guide. /// /// public partial class AmazonCodeStarNotificationsClient : AmazonServiceClient, IAmazonCodeStarNotifications { private static IServiceMetadata serviceMetadata = new AmazonCodeStarNotificationsMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private ICodeStarNotificationsPaginatorFactory _paginators; /// /// Paginators for the service /// public ICodeStarNotificationsPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CodeStarNotificationsPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// /// Constructs AmazonCodeStarNotificationsClient 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 AmazonCodeStarNotificationsClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCodeStarNotificationsConfig()) { } /// /// Constructs AmazonCodeStarNotificationsClient 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 AmazonCodeStarNotificationsClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCodeStarNotificationsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeStarNotificationsClient 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 AmazonCodeStarNotificationsClient Configuration Object public AmazonCodeStarNotificationsClient(AmazonCodeStarNotificationsConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonCodeStarNotificationsClient with AWS Credentials /// /// AWS Credentials public AmazonCodeStarNotificationsClient(AWSCredentials credentials) : this(credentials, new AmazonCodeStarNotificationsConfig()) { } /// /// Constructs AmazonCodeStarNotificationsClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonCodeStarNotificationsClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCodeStarNotificationsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeStarNotificationsClient with AWS Credentials and an /// AmazonCodeStarNotificationsClient Configuration object. /// /// AWS Credentials /// The AmazonCodeStarNotificationsClient Configuration Object public AmazonCodeStarNotificationsClient(AWSCredentials credentials, AmazonCodeStarNotificationsConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonCodeStarNotificationsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonCodeStarNotificationsClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCodeStarNotificationsConfig()) { } /// /// Constructs AmazonCodeStarNotificationsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonCodeStarNotificationsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCodeStarNotificationsConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonCodeStarNotificationsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCodeStarNotificationsClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonCodeStarNotificationsClient Configuration Object public AmazonCodeStarNotificationsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCodeStarNotificationsConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonCodeStarNotificationsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonCodeStarNotificationsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCodeStarNotificationsConfig()) { } /// /// Constructs AmazonCodeStarNotificationsClient 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 AmazonCodeStarNotificationsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCodeStarNotificationsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeStarNotificationsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCodeStarNotificationsClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonCodeStarNotificationsClient Configuration Object public AmazonCodeStarNotificationsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCodeStarNotificationsConfig 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 AmazonCodeStarNotificationsEndpointResolver()); } /// /// 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 CreateNotificationRule /// /// Creates a notification rule for a resource. The rule specifies the events you want /// notifications about and the targets (such as Chatbot topics or Chatbot clients configured /// for Slack) where you want to receive them. /// /// Container for the necessary parameters to execute the CreateNotificationRule service method. /// /// The response from the CreateNotificationRule service method, as returned by CodeStarNotifications. /// /// AWS CodeStar Notifications can't create the notification rule because you do not have /// sufficient permissions. /// /// /// AWS CodeStar Notifications can't complete the request because the resource is being /// modified by another process. Wait a few minutes and try again. /// /// /// Some or all of the configuration is incomplete, missing, or not valid. /// /// /// One of the AWS CodeStar Notifications limits has been exceeded. Limits apply to accounts, /// notification rules, notifications, resources, and targets. For more information, see /// Limits. /// /// /// A resource with the same name or ID already exists. Notification rule names must be /// unique in your Amazon Web Services account. /// /// /// One or more parameter values are not valid. /// /// REST API Reference for CreateNotificationRule Operation public virtual CreateNotificationRuleResponse CreateNotificationRule(CreateNotificationRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotificationRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateNotificationRule operation. /// /// /// Container for the necessary parameters to execute the CreateNotificationRule operation on AmazonCodeStarNotificationsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateNotificationRule /// operation. /// REST API Reference for CreateNotificationRule Operation public virtual IAsyncResult BeginCreateNotificationRule(CreateNotificationRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotificationRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateNotificationRule operation. /// /// /// The IAsyncResult returned by the call to BeginCreateNotificationRule. /// /// Returns a CreateNotificationRuleResult from CodeStarNotifications. /// REST API Reference for CreateNotificationRule Operation public virtual CreateNotificationRuleResponse EndCreateNotificationRule(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteNotificationRule /// /// Deletes a notification rule for a resource. /// /// Container for the necessary parameters to execute the DeleteNotificationRule service method. /// /// The response from the DeleteNotificationRule service method, as returned by CodeStarNotifications. /// /// AWS CodeStar Notifications can't complete the request because the resource is being /// modified by another process. Wait a few minutes and try again. /// /// /// One of the AWS CodeStar Notifications limits has been exceeded. Limits apply to accounts, /// notification rules, notifications, resources, and targets. For more information, see /// Limits. /// /// /// One or more parameter values are not valid. /// /// REST API Reference for DeleteNotificationRule Operation public virtual DeleteNotificationRuleResponse DeleteNotificationRule(DeleteNotificationRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteNotificationRule operation. /// /// /// Container for the necessary parameters to execute the DeleteNotificationRule operation on AmazonCodeStarNotificationsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteNotificationRule /// operation. /// REST API Reference for DeleteNotificationRule Operation public virtual IAsyncResult BeginDeleteNotificationRule(DeleteNotificationRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteNotificationRule operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteNotificationRule. /// /// Returns a DeleteNotificationRuleResult from CodeStarNotifications. /// REST API Reference for DeleteNotificationRule Operation public virtual DeleteNotificationRuleResponse EndDeleteNotificationRule(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteTarget /// /// Deletes a specified target for notifications. /// /// Container for the necessary parameters to execute the DeleteTarget service method. /// /// The response from the DeleteTarget service method, as returned by CodeStarNotifications. /// /// One or more parameter values are not valid. /// /// REST API Reference for DeleteTarget Operation public virtual DeleteTargetResponse DeleteTarget(DeleteTargetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTargetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteTarget operation. /// /// /// Container for the necessary parameters to execute the DeleteTarget operation on AmazonCodeStarNotificationsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteTarget /// operation. /// REST API Reference for DeleteTarget Operation public virtual IAsyncResult BeginDeleteTarget(DeleteTargetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTargetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteTarget operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteTarget. /// /// Returns a DeleteTargetResult from CodeStarNotifications. /// REST API Reference for DeleteTarget Operation public virtual DeleteTargetResponse EndDeleteTarget(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeNotificationRule /// /// Returns information about a specified notification rule. /// /// Container for the necessary parameters to execute the DescribeNotificationRule service method. /// /// The response from the DescribeNotificationRule service method, as returned by CodeStarNotifications. /// /// AWS CodeStar Notifications can't find a resource that matches the provided ARN. /// /// /// One or more parameter values are not valid. /// /// REST API Reference for DescribeNotificationRule Operation public virtual DescribeNotificationRuleResponse DescribeNotificationRule(DescribeNotificationRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeNotificationRule operation. /// /// /// Container for the necessary parameters to execute the DescribeNotificationRule operation on AmazonCodeStarNotificationsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeNotificationRule /// operation. /// REST API Reference for DescribeNotificationRule Operation public virtual IAsyncResult BeginDescribeNotificationRule(DescribeNotificationRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeNotificationRule operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeNotificationRule. /// /// Returns a DescribeNotificationRuleResult from CodeStarNotifications. /// REST API Reference for DescribeNotificationRule Operation public virtual DescribeNotificationRuleResponse EndDescribeNotificationRule(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListEventTypes /// /// Returns information about the event types available for configuring notifications. /// /// Container for the necessary parameters to execute the ListEventTypes service method. /// /// The response from the ListEventTypes service method, as returned by CodeStarNotifications. /// /// The value for the enumeration token used in the request to return the next batch of /// the results is not valid. /// /// /// One or more parameter values are not valid. /// /// REST API Reference for ListEventTypes Operation public virtual ListEventTypesResponse ListEventTypes(ListEventTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventTypesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListEventTypes operation. /// /// /// Container for the necessary parameters to execute the ListEventTypes operation on AmazonCodeStarNotificationsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEventTypes /// operation. /// REST API Reference for ListEventTypes Operation public virtual IAsyncResult BeginListEventTypes(ListEventTypesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventTypesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListEventTypes operation. /// /// /// The IAsyncResult returned by the call to BeginListEventTypes. /// /// Returns a ListEventTypesResult from CodeStarNotifications. /// REST API Reference for ListEventTypes Operation public virtual ListEventTypesResponse EndListEventTypes(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListNotificationRules /// /// Returns a list of the notification rules for an Amazon Web Services account. /// /// Container for the necessary parameters to execute the ListNotificationRules service method. /// /// The response from the ListNotificationRules service method, as returned by CodeStarNotifications. /// /// The value for the enumeration token used in the request to return the next batch of /// the results is not valid. /// /// /// One or more parameter values are not valid. /// /// REST API Reference for ListNotificationRules Operation public virtual ListNotificationRulesResponse ListNotificationRules(ListNotificationRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotificationRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotificationRulesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListNotificationRules operation. /// /// /// Container for the necessary parameters to execute the ListNotificationRules operation on AmazonCodeStarNotificationsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListNotificationRules /// operation. /// REST API Reference for ListNotificationRules Operation public virtual IAsyncResult BeginListNotificationRules(ListNotificationRulesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotificationRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotificationRulesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListNotificationRules operation. /// /// /// The IAsyncResult returned by the call to BeginListNotificationRules. /// /// Returns a ListNotificationRulesResult from CodeStarNotifications. /// REST API Reference for ListNotificationRules Operation public virtual ListNotificationRulesResponse EndListNotificationRules(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTagsForResource /// /// Returns a list of the tags associated with a notification rule. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by CodeStarNotifications. /// /// AWS CodeStar Notifications can't find a resource that matches the provided ARN. /// /// /// One or more parameter values are not valid. /// /// 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); } /// /// Initiates the asynchronous execution of the ListTagsForResource operation. /// /// /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonCodeStarNotificationsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation. /// REST API Reference for ListTagsForResource Operation public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTagsForResource operation. /// /// /// The IAsyncResult returned by the call to BeginListTagsForResource. /// /// Returns a ListTagsForResourceResult from CodeStarNotifications. /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTargets /// /// Returns a list of the notification rule targets for an Amazon Web Services account. /// /// Container for the necessary parameters to execute the ListTargets service method. /// /// The response from the ListTargets service method, as returned by CodeStarNotifications. /// /// The value for the enumeration token used in the request to return the next batch of /// the results is not valid. /// /// /// One or more parameter values are not valid. /// /// REST API Reference for ListTargets Operation public virtual ListTargetsResponse ListTargets(ListTargetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTargetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTargetsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListTargets operation. /// /// /// Container for the necessary parameters to execute the ListTargets operation on AmazonCodeStarNotificationsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTargets /// operation. /// REST API Reference for ListTargets Operation public virtual IAsyncResult BeginListTargets(ListTargetsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTargetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTargetsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTargets operation. /// /// /// The IAsyncResult returned by the call to BeginListTargets. /// /// Returns a ListTargetsResult from CodeStarNotifications. /// REST API Reference for ListTargets Operation public virtual ListTargetsResponse EndListTargets(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region Subscribe /// /// Creates an association between a notification rule and an Chatbot topic or Chatbot /// client so that the associated target can receive notifications when the events described /// in the rule are triggered. /// /// Container for the necessary parameters to execute the Subscribe service method. /// /// The response from the Subscribe service method, as returned by CodeStarNotifications. /// /// Some or all of the configuration is incomplete, missing, or not valid. /// /// /// AWS CodeStar Notifications can't find a resource that matches the provided ARN. /// /// /// One or more parameter values are not valid. /// /// REST API Reference for Subscribe Operation public virtual SubscribeResponse Subscribe(SubscribeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SubscribeRequestMarshaller.Instance; options.ResponseUnmarshaller = SubscribeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the Subscribe operation. /// /// /// Container for the necessary parameters to execute the Subscribe operation on AmazonCodeStarNotificationsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSubscribe /// operation. /// REST API Reference for Subscribe Operation public virtual IAsyncResult BeginSubscribe(SubscribeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SubscribeRequestMarshaller.Instance; options.ResponseUnmarshaller = SubscribeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the Subscribe operation. /// /// /// The IAsyncResult returned by the call to BeginSubscribe. /// /// Returns a SubscribeResult from CodeStarNotifications. /// REST API Reference for Subscribe Operation public virtual SubscribeResponse EndSubscribe(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region TagResource /// /// Associates a set of provided tags with a notification rule. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by CodeStarNotifications. /// /// AWS CodeStar Notifications can't complete the request because the resource is being /// modified by another process. Wait a few minutes and try again. /// /// /// One of the AWS CodeStar Notifications limits has been exceeded. Limits apply to accounts, /// notification rules, notifications, resources, and targets. For more information, see /// Limits. /// /// /// AWS CodeStar Notifications can't find a resource that matches the provided ARN. /// /// /// One or more parameter values are not valid. /// /// 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); } /// /// Initiates the asynchronous execution of the TagResource operation. /// /// /// Container for the necessary parameters to execute the TagResource operation on AmazonCodeStarNotificationsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation. /// REST API Reference for TagResource Operation public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the TagResource operation. /// /// /// The IAsyncResult returned by the call to BeginTagResource. /// /// Returns a TagResourceResult from CodeStarNotifications. /// REST API Reference for TagResource Operation public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region Unsubscribe /// /// Removes an association between a notification rule and an Chatbot topic so that subscribers /// to that topic stop receiving notifications when the events described in the rule are /// triggered. /// /// Container for the necessary parameters to execute the Unsubscribe service method. /// /// The response from the Unsubscribe service method, as returned by CodeStarNotifications. /// /// One or more parameter values are not valid. /// /// REST API Reference for Unsubscribe Operation public virtual UnsubscribeResponse Unsubscribe(UnsubscribeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UnsubscribeRequestMarshaller.Instance; options.ResponseUnmarshaller = UnsubscribeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the Unsubscribe operation. /// /// /// Container for the necessary parameters to execute the Unsubscribe operation on AmazonCodeStarNotificationsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUnsubscribe /// operation. /// REST API Reference for Unsubscribe Operation public virtual IAsyncResult BeginUnsubscribe(UnsubscribeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UnsubscribeRequestMarshaller.Instance; options.ResponseUnmarshaller = UnsubscribeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the Unsubscribe operation. /// /// /// The IAsyncResult returned by the call to BeginUnsubscribe. /// /// Returns a UnsubscribeResult from CodeStarNotifications. /// REST API Reference for Unsubscribe Operation public virtual UnsubscribeResponse EndUnsubscribe(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UntagResource /// /// Removes the association between one or more provided tags and a notification rule. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by CodeStarNotifications. /// /// AWS CodeStar Notifications can't complete the request because the resource is being /// modified by another process. Wait a few minutes and try again. /// /// /// One of the AWS CodeStar Notifications limits has been exceeded. Limits apply to accounts, /// notification rules, notifications, resources, and targets. For more information, see /// Limits. /// /// /// AWS CodeStar Notifications can't find a resource that matches the provided ARN. /// /// /// One or more parameter values are not valid. /// /// 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); } /// /// Initiates the asynchronous execution of the UntagResource operation. /// /// /// Container for the necessary parameters to execute the UntagResource operation on AmazonCodeStarNotificationsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation. /// REST API Reference for UntagResource Operation public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UntagResource operation. /// /// /// The IAsyncResult returned by the call to BeginUntagResource. /// /// Returns a UntagResourceResult from CodeStarNotifications. /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateNotificationRule /// /// Updates a notification rule for a resource. You can change the events that trigger /// the notification rule, the status of the rule, and the targets that receive the notifications. /// /// /// /// To add or remove tags for a notification rule, you must use TagResource and /// UntagResource. /// /// /// /// Container for the necessary parameters to execute the UpdateNotificationRule service method. /// /// The response from the UpdateNotificationRule service method, as returned by CodeStarNotifications. /// /// Some or all of the configuration is incomplete, missing, or not valid. /// /// /// AWS CodeStar Notifications can't find a resource that matches the provided ARN. /// /// /// One or more parameter values are not valid. /// /// REST API Reference for UpdateNotificationRule Operation public virtual UpdateNotificationRuleResponse UpdateNotificationRule(UpdateNotificationRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotificationRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateNotificationRule operation. /// /// /// Container for the necessary parameters to execute the UpdateNotificationRule operation on AmazonCodeStarNotificationsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateNotificationRule /// operation. /// REST API Reference for UpdateNotificationRule Operation public virtual IAsyncResult BeginUpdateNotificationRule(UpdateNotificationRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotificationRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateNotificationRule operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateNotificationRule. /// /// Returns a UpdateNotificationRuleResult from CodeStarNotifications. /// REST API Reference for UpdateNotificationRule Operation public virtual UpdateNotificationRuleResponse EndUpdateNotificationRule(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }