Beispiel #1
0
        public static void SQSAddPermission()
        {
            #region SQSAddPermission
            var client = new AmazonSQSClient();

            var request = new AddPermissionRequest
            {
                Actions = new List <string>()
                {
                    "GetQueueAttributes", "GetQueueUrl"
                },
                AWSAccountIds = new List <string>()
                {
                    "80398EXAMPLE"
                },
                Label    = "JohnDoeCanAccessQueues",
                QueueUrl = "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyTestQueue"
            };

            client.AddPermission(request);
            #endregion
        }