/* * 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.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; 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(); #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 #if 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 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 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 internal virtual CreateNotificationRuleResponse CreateNotificationRule(CreateNotificationRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotificationRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task CreateNotificationRuleAsync(CreateNotificationRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNotificationRuleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteNotificationRule internal virtual DeleteNotificationRuleResponse DeleteNotificationRule(DeleteNotificationRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a notification rule for a resource. /// /// Container for the necessary parameters to execute the DeleteNotificationRule service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DeleteNotificationRuleAsync(DeleteNotificationRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationRuleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteTarget internal virtual DeleteTargetResponse DeleteTarget(DeleteTargetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTargetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a specified target for notifications. /// /// Container for the necessary parameters to execute the DeleteTarget service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DeleteTargetAsync(DeleteTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTargetResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeNotificationRule internal virtual DescribeNotificationRuleResponse DescribeNotificationRule(DescribeNotificationRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a specified notification rule. /// /// Container for the necessary parameters to execute the DescribeNotificationRule service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeNotificationRuleAsync(DescribeNotificationRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationRuleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListEventTypes internal virtual ListEventTypesResponse ListEventTypes(ListEventTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventTypesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about the event types available for configuring notifications. /// /// Container for the necessary parameters to execute the ListEventTypes service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListEventTypesAsync(ListEventTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventTypesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListNotificationRules internal virtual ListNotificationRulesResponse ListNotificationRules(ListNotificationRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotificationRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotificationRulesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of the notification rules for an Amazon Web Services account. /// /// Container for the necessary parameters to execute the ListNotificationRules service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListNotificationRulesAsync(ListNotificationRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListNotificationRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNotificationRulesResponseUnmarshaller.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); } /// /// Returns a list of the tags associated with a notification rule. /// /// 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 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 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 ListTargets internal virtual ListTargetsResponse ListTargets(ListTargetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTargetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTargetsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListTargetsAsync(ListTargetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTargetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTargetsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region Subscribe internal virtual SubscribeResponse Subscribe(SubscribeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SubscribeRequestMarshaller.Instance; options.ResponseUnmarshaller = SubscribeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task SubscribeAsync(SubscribeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SubscribeRequestMarshaller.Instance; options.ResponseUnmarshaller = SubscribeResponseUnmarshaller.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); } /// /// Associates a set of provided tags with a notification rule. /// /// 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 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 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 Unsubscribe internal virtual UnsubscribeResponse Unsubscribe(UnsubscribeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UnsubscribeRequestMarshaller.Instance; options.ResponseUnmarshaller = UnsubscribeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task UnsubscribeAsync(UnsubscribeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UnsubscribeRequestMarshaller.Instance; options.ResponseUnmarshaller = UnsubscribeResponseUnmarshaller.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); } /// /// Removes the association between one or more provided tags and a notification rule. /// /// 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 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 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 UpdateNotificationRule internal virtual UpdateNotificationRuleResponse UpdateNotificationRule(UpdateNotificationRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotificationRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task UpdateNotificationRuleAsync(UpdateNotificationRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNotificationRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNotificationRuleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }