Amazon Integrator V6 - Online Help
Amazon Integrator V6
Questions / Feedback?

SetTopicAttributes Method

Sets attributes on the specified topic.

Syntax

[VB.NET]
Public Sub SetTopicAttributes(ByVal TopicArn As String, ByVal AttributeType As Integer, ByVal AttributeValue As String)
[C#]
public void SetTopicAttributes(string topicArn, int attributeType, string attributeValue);

Remarks

This method may be used to specify attributes on the specified topic.

TopicArn specifies the topic.

AttributeType determines which attribute is set and AttributeValue specifies the value. The following table provides more information:

AttributeTypeAttributeValue
0 (DisplayName) A human readable name to be used in the "From" field for email based endpoints
1 (AccessPolicy) A JSON serialized access policy for the topic
2 (DeliveryPolicy)A JSON serialized delivery policy for the topic

An example access policy is:

{"Version":"2008-10-17","Id":"__default_policy_ID","Statement":[{"Sid":"__default_statement_ID","Effect":"Allow","Principal":{"AWS":"*"},"Action":["SNS:Publish","SNS:RemovePermission","SNS:SetTopicAttributes","SNS:DeleteTopic","SNS:ListSubscriptionsByTopic","SNS:GetTopicAttributes","SNS:Receive","SNS:AddPermission","SNS:Subscribe"],"Resource":"arn:aws:sns:us-east-1:120151960619:TestTopic","Condition":{"StringEquals":{"AWS:SourceOwner":"120151960619"}}},{"Sid":"__console_pub_0","Effect":"Allow","Principal":{"AWS":"*"},"Action":"SNS:Publish","Resource":"arn:aws:sns:us-east-1:120151960619:TestTopic"}]}

An example delivery policy is:

{"http":{"defaultHealthyRetryPolicy": {"minDelayTarget": 1, "maxDelayTarget": 5, "numRetries": 5, "numMaxDelayRetries": 5, "backoffFunction": "linear"}}}

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 6.0.6240.0