private static void AddSQSPermission(Policy policy, string topicArn, string sqsQueueArn) { Statement statement = new Statement(Statement.StatementEffect.Allow); statement.Actions.Add(SQSActionIdentifiers.SendMessage); statement.Resources.Add(new Resource(sqsQueueArn)); statement.Conditions.Add(ConditionFactory.NewSourceArnCondition(topicArn)); statement.Principals.Add(new Principal("*")); policy.Statements.Add(statement); }