/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ using System; using Amazon.Runtime.SharedInterfaces; namespace Amazon.SQS { public partial interface IAmazonSQS : IDisposable, ICoreAmazonSQS { #if BCL /// /// This is a utility method which updates the policy of a queue to allow the /// S3 bucket to publish events to it. /// /// The queue that will have its policy updated. /// The bucket that will be given access to send messages from. /// The ARN for the SQS queue. This can be used when setting up the S3 bucket notification. string AuthorizeS3ToSendMessage(string queueUrl, string bucket); #endif #if AWS_ASYNC_API /// /// This is a utility method which asynchronously updates the policy of a queue to allow the /// S3 bucket to publish events to it. /// /// The queue that will have its policy updated. /// The bucket that will be given access to send messages from. /// A Task containing the ARN for the SQS queue. This can be used when setting up the S3 bucket notification. System.Threading.Tasks.Task AuthorizeS3ToSendMessageAsync(string queueUrl, string bucket); #endif } }