def get_bucket_policy(params = {}, options = {}, &block)
      req = build_request(:get_bucket_policy, params)
      req.send_request(options, &block)
    end
def get_bucket_policy(params = {}, options = {}, &block)
      req = build_request(:get_bucket_policy, params)
      req.send_request(options, &block)
    end
Returns the policy of a specified bucket.

 @option params [required, String] :bucket

 @return [Types::GetBucketPolicyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:

   * {Types::GetBucketPolicyOutput#policy #policy} => IO


 @example Example: To get bucket policy

   # The following example returns bucket policy associated with a bucket.

   resp = client.get_bucket_policy({
     bucket: "examplebucket",
   })

   resp.to_h outputs the following:
   {
     policy: "{\"Version\":\"2008-10-17\",\"Id\":\"LogPolicy\",\"Statement\":[{\"Sid\":\"Enables the log delivery group to publish logs to your bucket \",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"111122223333\"},\"Action\":[\"s3:GetBucketAcl\",\"s3:GetObjectAcl\",\"s3:PutObject\"],\"Resource\":[\"arn:aws:s3:::policytest1/*\",\"arn:aws:s3:::policytest1\"]}]}",
   }

 @example Request syntax with placeholder values

   resp = client.get_bucket_policy({
     bucket: "BucketName", # required
   })

 @example Response structure

   resp.policy #=> String

 @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketPolicy AWS API Documentation

 @overload get_bucket_policy(params = {})
 @param [Hash] params ({})