{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.S3.GetBucketPolicyStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves the policy status for an Amazon S3 bucket, indicating whether
-- the bucket is public. In order to use this operation, you must have the
-- @s3:GetBucketPolicyStatus@ permission. For more information about Amazon
-- S3 permissions, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html Specifying Permissions in a Policy>.
--
-- For more information about when Amazon S3 considers a bucket public, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status The Meaning of \"Public\">.
--
-- The following operations are related to @GetBucketPolicyStatus@:
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html Using Amazon S3 Block Public Access>
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetPublicAccessBlock.html GetPublicAccessBlock>
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutPublicAccessBlock.html PutPublicAccessBlock>
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeletePublicAccessBlock.html DeletePublicAccessBlock>
module Amazonka.S3.GetBucketPolicyStatus
  ( -- * Creating a Request
    GetBucketPolicyStatus (..),
    newGetBucketPolicyStatus,

    -- * Request Lenses
    getBucketPolicyStatus_expectedBucketOwner,
    getBucketPolicyStatus_bucket,

    -- * Destructuring the Response
    GetBucketPolicyStatusResponse (..),
    newGetBucketPolicyStatusResponse,

    -- * Response Lenses
    getBucketPolicyStatusResponse_policyStatus,
    getBucketPolicyStatusResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.S3.Types

-- | /See:/ 'newGetBucketPolicyStatus' smart constructor.
data GetBucketPolicyStatus = GetBucketPolicyStatus'
  { -- | The account ID of the expected bucket owner. If the bucket is owned by a
    -- different account, the request will fail with an HTTP
    -- @403 (Access Denied)@ error.
    GetBucketPolicyStatus -> Maybe Text
expectedBucketOwner :: Prelude.Maybe Prelude.Text,
    -- | The name of the Amazon S3 bucket whose policy status you want to
    -- retrieve.
    GetBucketPolicyStatus -> BucketName
bucket :: BucketName
  }
  deriving (GetBucketPolicyStatus -> GetBucketPolicyStatus -> Bool
(GetBucketPolicyStatus -> GetBucketPolicyStatus -> Bool)
-> (GetBucketPolicyStatus -> GetBucketPolicyStatus -> Bool)
-> Eq GetBucketPolicyStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBucketPolicyStatus -> GetBucketPolicyStatus -> Bool
$c/= :: GetBucketPolicyStatus -> GetBucketPolicyStatus -> Bool
== :: GetBucketPolicyStatus -> GetBucketPolicyStatus -> Bool
$c== :: GetBucketPolicyStatus -> GetBucketPolicyStatus -> Bool
Prelude.Eq, ReadPrec [GetBucketPolicyStatus]
ReadPrec GetBucketPolicyStatus
Int -> ReadS GetBucketPolicyStatus
ReadS [GetBucketPolicyStatus]
(Int -> ReadS GetBucketPolicyStatus)
-> ReadS [GetBucketPolicyStatus]
-> ReadPrec GetBucketPolicyStatus
-> ReadPrec [GetBucketPolicyStatus]
-> Read GetBucketPolicyStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBucketPolicyStatus]
$creadListPrec :: ReadPrec [GetBucketPolicyStatus]
readPrec :: ReadPrec GetBucketPolicyStatus
$creadPrec :: ReadPrec GetBucketPolicyStatus
readList :: ReadS [GetBucketPolicyStatus]
$creadList :: ReadS [GetBucketPolicyStatus]
readsPrec :: Int -> ReadS GetBucketPolicyStatus
$creadsPrec :: Int -> ReadS GetBucketPolicyStatus
Prelude.Read, Int -> GetBucketPolicyStatus -> ShowS
[GetBucketPolicyStatus] -> ShowS
GetBucketPolicyStatus -> String
(Int -> GetBucketPolicyStatus -> ShowS)
-> (GetBucketPolicyStatus -> String)
-> ([GetBucketPolicyStatus] -> ShowS)
-> Show GetBucketPolicyStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBucketPolicyStatus] -> ShowS
$cshowList :: [GetBucketPolicyStatus] -> ShowS
show :: GetBucketPolicyStatus -> String
$cshow :: GetBucketPolicyStatus -> String
showsPrec :: Int -> GetBucketPolicyStatus -> ShowS
$cshowsPrec :: Int -> GetBucketPolicyStatus -> ShowS
Prelude.Show, (forall x. GetBucketPolicyStatus -> Rep GetBucketPolicyStatus x)
-> (forall x. Rep GetBucketPolicyStatus x -> GetBucketPolicyStatus)
-> Generic GetBucketPolicyStatus
forall x. Rep GetBucketPolicyStatus x -> GetBucketPolicyStatus
forall x. GetBucketPolicyStatus -> Rep GetBucketPolicyStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetBucketPolicyStatus x -> GetBucketPolicyStatus
$cfrom :: forall x. GetBucketPolicyStatus -> Rep GetBucketPolicyStatus x
Prelude.Generic)

-- |
-- Create a value of 'GetBucketPolicyStatus' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'expectedBucketOwner', 'getBucketPolicyStatus_expectedBucketOwner' - The account ID of the expected bucket owner. If the bucket is owned by a
-- different account, the request will fail with an HTTP
-- @403 (Access Denied)@ error.
--
-- 'bucket', 'getBucketPolicyStatus_bucket' - The name of the Amazon S3 bucket whose policy status you want to
-- retrieve.
newGetBucketPolicyStatus ::
  -- | 'bucket'
  BucketName ->
  GetBucketPolicyStatus
newGetBucketPolicyStatus :: BucketName -> GetBucketPolicyStatus
newGetBucketPolicyStatus BucketName
pBucket_ =
  GetBucketPolicyStatus' :: Maybe Text -> BucketName -> GetBucketPolicyStatus
GetBucketPolicyStatus'
    { $sel:expectedBucketOwner:GetBucketPolicyStatus' :: Maybe Text
expectedBucketOwner =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:bucket:GetBucketPolicyStatus' :: BucketName
bucket = BucketName
pBucket_
    }

-- | The account ID of the expected bucket owner. If the bucket is owned by a
-- different account, the request will fail with an HTTP
-- @403 (Access Denied)@ error.
getBucketPolicyStatus_expectedBucketOwner :: Lens.Lens' GetBucketPolicyStatus (Prelude.Maybe Prelude.Text)
getBucketPolicyStatus_expectedBucketOwner :: (Maybe Text -> f (Maybe Text))
-> GetBucketPolicyStatus -> f GetBucketPolicyStatus
getBucketPolicyStatus_expectedBucketOwner = (GetBucketPolicyStatus -> Maybe Text)
-> (GetBucketPolicyStatus -> Maybe Text -> GetBucketPolicyStatus)
-> Lens
     GetBucketPolicyStatus
     GetBucketPolicyStatus
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBucketPolicyStatus' {Maybe Text
expectedBucketOwner :: Maybe Text
$sel:expectedBucketOwner:GetBucketPolicyStatus' :: GetBucketPolicyStatus -> Maybe Text
expectedBucketOwner} -> Maybe Text
expectedBucketOwner) (\s :: GetBucketPolicyStatus
s@GetBucketPolicyStatus' {} Maybe Text
a -> GetBucketPolicyStatus
s {$sel:expectedBucketOwner:GetBucketPolicyStatus' :: Maybe Text
expectedBucketOwner = Maybe Text
a} :: GetBucketPolicyStatus)

-- | The name of the Amazon S3 bucket whose policy status you want to
-- retrieve.
getBucketPolicyStatus_bucket :: Lens.Lens' GetBucketPolicyStatus BucketName
getBucketPolicyStatus_bucket :: (BucketName -> f BucketName)
-> GetBucketPolicyStatus -> f GetBucketPolicyStatus
getBucketPolicyStatus_bucket = (GetBucketPolicyStatus -> BucketName)
-> (GetBucketPolicyStatus -> BucketName -> GetBucketPolicyStatus)
-> Lens
     GetBucketPolicyStatus GetBucketPolicyStatus BucketName BucketName
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBucketPolicyStatus' {BucketName
bucket :: BucketName
$sel:bucket:GetBucketPolicyStatus' :: GetBucketPolicyStatus -> BucketName
bucket} -> BucketName
bucket) (\s :: GetBucketPolicyStatus
s@GetBucketPolicyStatus' {} BucketName
a -> GetBucketPolicyStatus
s {$sel:bucket:GetBucketPolicyStatus' :: BucketName
bucket = BucketName
a} :: GetBucketPolicyStatus)

instance Core.AWSRequest GetBucketPolicyStatus where
  type
    AWSResponse GetBucketPolicyStatus =
      GetBucketPolicyStatusResponse
  request :: GetBucketPolicyStatus -> Request GetBucketPolicyStatus
request =
    Request GetBucketPolicyStatus -> Request GetBucketPolicyStatus
forall a. Request a -> Request a
Request.s3vhost
      (Request GetBucketPolicyStatus -> Request GetBucketPolicyStatus)
-> (GetBucketPolicyStatus -> Request GetBucketPolicyStatus)
-> GetBucketPolicyStatus
-> Request GetBucketPolicyStatus
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Service -> GetBucketPolicyStatus -> Request GetBucketPolicyStatus
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetBucketPolicyStatus
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetBucketPolicyStatus)))
response =
    (Int
 -> ResponseHeaders
 -> [Node]
 -> Either String (AWSResponse GetBucketPolicyStatus))
-> Logger
-> Service
-> Proxy GetBucketPolicyStatus
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetBucketPolicyStatus)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe PolicyStatus -> Int -> GetBucketPolicyStatusResponse
GetBucketPolicyStatusResponse'
            (Maybe PolicyStatus -> Int -> GetBucketPolicyStatusResponse)
-> Either String (Maybe PolicyStatus)
-> Either String (Int -> GetBucketPolicyStatusResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node] -> Either String (Maybe PolicyStatus)
forall a. FromXML a => [Node] -> Either String a
Core.parseXML [Node]
x)
            Either String (Int -> GetBucketPolicyStatusResponse)
-> Either String Int -> Either String GetBucketPolicyStatusResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable GetBucketPolicyStatus

instance Prelude.NFData GetBucketPolicyStatus

instance Core.ToHeaders GetBucketPolicyStatus where
  toHeaders :: GetBucketPolicyStatus -> ResponseHeaders
toHeaders GetBucketPolicyStatus' {Maybe Text
BucketName
bucket :: BucketName
expectedBucketOwner :: Maybe Text
$sel:bucket:GetBucketPolicyStatus' :: GetBucketPolicyStatus -> BucketName
$sel:expectedBucketOwner:GetBucketPolicyStatus' :: GetBucketPolicyStatus -> Maybe Text
..} =
    [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ HeaderName
"x-amz-expected-bucket-owner"
          HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
expectedBucketOwner
      ]

instance Core.ToPath GetBucketPolicyStatus where
  toPath :: GetBucketPolicyStatus -> ByteString
toPath GetBucketPolicyStatus' {Maybe Text
BucketName
bucket :: BucketName
expectedBucketOwner :: Maybe Text
$sel:bucket:GetBucketPolicyStatus' :: GetBucketPolicyStatus -> BucketName
$sel:expectedBucketOwner:GetBucketPolicyStatus' :: GetBucketPolicyStatus -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/", BucketName -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS BucketName
bucket]

instance Core.ToQuery GetBucketPolicyStatus where
  toQuery :: GetBucketPolicyStatus -> QueryString
toQuery =
    QueryString -> GetBucketPolicyStatus -> QueryString
forall a b. a -> b -> a
Prelude.const ([QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat [QueryString
"policyStatus"])

-- | /See:/ 'newGetBucketPolicyStatusResponse' smart constructor.
data GetBucketPolicyStatusResponse = GetBucketPolicyStatusResponse'
  { -- | The policy status for the specified bucket.
    GetBucketPolicyStatusResponse -> Maybe PolicyStatus
policyStatus :: Prelude.Maybe PolicyStatus,
    -- | The response's http status code.
    GetBucketPolicyStatusResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetBucketPolicyStatusResponse
-> GetBucketPolicyStatusResponse -> Bool
(GetBucketPolicyStatusResponse
 -> GetBucketPolicyStatusResponse -> Bool)
-> (GetBucketPolicyStatusResponse
    -> GetBucketPolicyStatusResponse -> Bool)
-> Eq GetBucketPolicyStatusResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBucketPolicyStatusResponse
-> GetBucketPolicyStatusResponse -> Bool
$c/= :: GetBucketPolicyStatusResponse
-> GetBucketPolicyStatusResponse -> Bool
== :: GetBucketPolicyStatusResponse
-> GetBucketPolicyStatusResponse -> Bool
$c== :: GetBucketPolicyStatusResponse
-> GetBucketPolicyStatusResponse -> Bool
Prelude.Eq, ReadPrec [GetBucketPolicyStatusResponse]
ReadPrec GetBucketPolicyStatusResponse
Int -> ReadS GetBucketPolicyStatusResponse
ReadS [GetBucketPolicyStatusResponse]
(Int -> ReadS GetBucketPolicyStatusResponse)
-> ReadS [GetBucketPolicyStatusResponse]
-> ReadPrec GetBucketPolicyStatusResponse
-> ReadPrec [GetBucketPolicyStatusResponse]
-> Read GetBucketPolicyStatusResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBucketPolicyStatusResponse]
$creadListPrec :: ReadPrec [GetBucketPolicyStatusResponse]
readPrec :: ReadPrec GetBucketPolicyStatusResponse
$creadPrec :: ReadPrec GetBucketPolicyStatusResponse
readList :: ReadS [GetBucketPolicyStatusResponse]
$creadList :: ReadS [GetBucketPolicyStatusResponse]
readsPrec :: Int -> ReadS GetBucketPolicyStatusResponse
$creadsPrec :: Int -> ReadS GetBucketPolicyStatusResponse
Prelude.Read, Int -> GetBucketPolicyStatusResponse -> ShowS
[GetBucketPolicyStatusResponse] -> ShowS
GetBucketPolicyStatusResponse -> String
(Int -> GetBucketPolicyStatusResponse -> ShowS)
-> (GetBucketPolicyStatusResponse -> String)
-> ([GetBucketPolicyStatusResponse] -> ShowS)
-> Show GetBucketPolicyStatusResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBucketPolicyStatusResponse] -> ShowS
$cshowList :: [GetBucketPolicyStatusResponse] -> ShowS
show :: GetBucketPolicyStatusResponse -> String
$cshow :: GetBucketPolicyStatusResponse -> String
showsPrec :: Int -> GetBucketPolicyStatusResponse -> ShowS
$cshowsPrec :: Int -> GetBucketPolicyStatusResponse -> ShowS
Prelude.Show, (forall x.
 GetBucketPolicyStatusResponse
 -> Rep GetBucketPolicyStatusResponse x)
-> (forall x.
    Rep GetBucketPolicyStatusResponse x
    -> GetBucketPolicyStatusResponse)
-> Generic GetBucketPolicyStatusResponse
forall x.
Rep GetBucketPolicyStatusResponse x
-> GetBucketPolicyStatusResponse
forall x.
GetBucketPolicyStatusResponse
-> Rep GetBucketPolicyStatusResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetBucketPolicyStatusResponse x
-> GetBucketPolicyStatusResponse
$cfrom :: forall x.
GetBucketPolicyStatusResponse
-> Rep GetBucketPolicyStatusResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetBucketPolicyStatusResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'policyStatus', 'getBucketPolicyStatusResponse_policyStatus' - The policy status for the specified bucket.
--
-- 'httpStatus', 'getBucketPolicyStatusResponse_httpStatus' - The response's http status code.
newGetBucketPolicyStatusResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetBucketPolicyStatusResponse
newGetBucketPolicyStatusResponse :: Int -> GetBucketPolicyStatusResponse
newGetBucketPolicyStatusResponse Int
pHttpStatus_ =
  GetBucketPolicyStatusResponse' :: Maybe PolicyStatus -> Int -> GetBucketPolicyStatusResponse
GetBucketPolicyStatusResponse'
    { $sel:policyStatus:GetBucketPolicyStatusResponse' :: Maybe PolicyStatus
policyStatus =
        Maybe PolicyStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetBucketPolicyStatusResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The policy status for the specified bucket.
getBucketPolicyStatusResponse_policyStatus :: Lens.Lens' GetBucketPolicyStatusResponse (Prelude.Maybe PolicyStatus)
getBucketPolicyStatusResponse_policyStatus :: (Maybe PolicyStatus -> f (Maybe PolicyStatus))
-> GetBucketPolicyStatusResponse -> f GetBucketPolicyStatusResponse
getBucketPolicyStatusResponse_policyStatus = (GetBucketPolicyStatusResponse -> Maybe PolicyStatus)
-> (GetBucketPolicyStatusResponse
    -> Maybe PolicyStatus -> GetBucketPolicyStatusResponse)
-> Lens
     GetBucketPolicyStatusResponse
     GetBucketPolicyStatusResponse
     (Maybe PolicyStatus)
     (Maybe PolicyStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBucketPolicyStatusResponse' {Maybe PolicyStatus
policyStatus :: Maybe PolicyStatus
$sel:policyStatus:GetBucketPolicyStatusResponse' :: GetBucketPolicyStatusResponse -> Maybe PolicyStatus
policyStatus} -> Maybe PolicyStatus
policyStatus) (\s :: GetBucketPolicyStatusResponse
s@GetBucketPolicyStatusResponse' {} Maybe PolicyStatus
a -> GetBucketPolicyStatusResponse
s {$sel:policyStatus:GetBucketPolicyStatusResponse' :: Maybe PolicyStatus
policyStatus = Maybe PolicyStatus
a} :: GetBucketPolicyStatusResponse)

-- | The response's http status code.
getBucketPolicyStatusResponse_httpStatus :: Lens.Lens' GetBucketPolicyStatusResponse Prelude.Int
getBucketPolicyStatusResponse_httpStatus :: (Int -> f Int)
-> GetBucketPolicyStatusResponse -> f GetBucketPolicyStatusResponse
getBucketPolicyStatusResponse_httpStatus = (GetBucketPolicyStatusResponse -> Int)
-> (GetBucketPolicyStatusResponse
    -> Int -> GetBucketPolicyStatusResponse)
-> Lens
     GetBucketPolicyStatusResponse GetBucketPolicyStatusResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBucketPolicyStatusResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetBucketPolicyStatusResponse' :: GetBucketPolicyStatusResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetBucketPolicyStatusResponse
s@GetBucketPolicyStatusResponse' {} Int
a -> GetBucketPolicyStatusResponse
s {$sel:httpStatus:GetBucketPolicyStatusResponse' :: Int
httpStatus = Int
a} :: GetBucketPolicyStatusResponse)

instance Prelude.NFData GetBucketPolicyStatusResponse