Class AddPermissionRequest
- Namespace
- Amazon.SimpleNotificationService.Model
- Assembly
- AWSSDK.SimpleNotificationService.dll
Container for the parameters to the AddPermission operation. Adds a statement to a topic's access control policy, granting access for the specified AWS accounts to the specified actions.
public class AddPermissionRequest : AmazonSimpleNotificationServiceRequest
- Inheritance
-
AddPermissionRequest
Constructors
AddPermissionRequest()
Empty constructor used to set properties independently even when a simple constructor is available
public AddPermissionRequest()
AddPermissionRequest(string, string, List<string>, List<string>)
Instantiates AddPermissionRequest with the parameterized properties
public AddPermissionRequest(string topicArn, string label, List<string> awsAccountId, List<string> actionName)
Parameters
topicArnstringThe ARN of the topic whose access control policy you wish to modify.
labelstringA unique identifier for the new policy statement.
awsAccountIdList<string>The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
actionNameList<string>The action you want to allow for the specified principal(s). Valid values: Any Amazon SNS action name, for example
.Publish
Properties
AWSAccountId
Gets and sets the property AWSAccountId.
The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
public List<string> AWSAccountId { get; set; }
Property Value
ActionName
Gets and sets the property ActionName.
The action you want to allow for the specified principal(s).
Valid values: Any Amazon SNS action name, for example
Publish.
public List<string> ActionName { get; set; }
Property Value
Label
Gets and sets the property Label.
A unique identifier for the new policy statement.
public string Label { get; set; }
Property Value
TopicArn
Gets and sets the property TopicArn.
The ARN of the topic whose access control policy you wish to modify.
public string TopicArn { get; set; }