Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient.SetTopicAttributesAsync C# (CSharp) Method

SetTopicAttributesAsync() public method

Allows a topic owner to set an attribute of the topic to a new value.
/// Indicates that the user has been denied access to the requested resource. /// /// Indicates an internal service error. /// /// Indicates that a request parameter does not comply with the associated constraints. /// /// Indicates that the requested resource does not exist. ///
public SetTopicAttributesAsync ( string topicArn, string attributeName, string attributeValue, System cancellationToken = default(CancellationToken) ) : Task
topicArn string The ARN of the topic to modify.
attributeName string The name of the attribute you want to set. Only a subset of the topic's attributes are mutable. Valid values: Policy | DisplayName | DeliveryPolicy
attributeValue string The new value for the attribute.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<SetTopicAttributesResponse> SetTopicAttributesAsync(string topicArn, string attributeName, string attributeValue, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var request = new SetTopicAttributesRequest();
            request.TopicArn = topicArn;
            request.AttributeName = attributeName;
            request.AttributeValue = attributeValue;
            return SetTopicAttributesAsync(request, cancellationToken);
        }

Same methods

AmazonSimpleNotificationServiceClient::SetTopicAttributesAsync ( SetTopicAttributesRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleNotificationServiceClient::SetTopicAttributesAsync ( SetTopicAttributesRequest request, SetTopicAttributesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
AmazonSimpleNotificationServiceClient::SetTopicAttributesAsync ( string topicArn, string attributeName, string attributeValue, SetTopicAttributesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
AmazonSimpleNotificationServiceClient