{-# 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.PutBucketCors
-- 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)
--
-- Sets the @cors@ configuration for your bucket. If the configuration
-- exists, Amazon S3 replaces it.
--
-- To use this operation, you must be allowed to perform the
-- @s3:PutBucketCORS@ action. By default, the bucket owner has this
-- permission and can grant it to others.
--
-- You set this configuration on a bucket so that the bucket can service
-- cross-origin requests. For example, you might want to enable a request
-- whose origin is @http:\/\/www.example.com@ to access your Amazon S3
-- bucket at @my.example.bucket.com@ by using the browser\'s
-- @XMLHttpRequest@ capability.
--
-- To enable cross-origin resource sharing (CORS) on a bucket, you add the
-- @cors@ subresource to the bucket. The @cors@ subresource is an XML
-- document in which you configure rules that identify origins and the HTTP
-- methods that can be executed on your bucket. The document is limited to
-- 64 KB in size.
--
-- When Amazon S3 receives a cross-origin request (or a pre-flight OPTIONS
-- request) against a bucket, it evaluates the @cors@ configuration on the
-- bucket and uses the first @CORSRule@ rule that matches the incoming
-- browser request to enable a cross-origin request. For a rule to match,
-- the following conditions must be met:
--
-- -   The request\'s @Origin@ header must match @AllowedOrigin@ elements.
--
-- -   The request method (for example, GET, PUT, HEAD, and so on) or the
--     @Access-Control-Request-Method@ header in case of a pre-flight
--     @OPTIONS@ request must be one of the @AllowedMethod@ elements.
--
-- -   Every header specified in the @Access-Control-Request-Headers@
--     request header of a pre-flight request must match an @AllowedHeader@
--     element.
--
-- For more information about CORS, go to
-- <https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html Enabling Cross-Origin Resource Sharing>
-- in the /Amazon S3 User Guide/.
--
-- __Related Resources__
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketCors.html GetBucketCors>
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketCors.html DeleteBucketCors>
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/RESTOPTIONSobject.html RESTOPTIONSobject>
module Amazonka.S3.PutBucketCors
  ( -- * Creating a Request
    PutBucketCors (..),
    newPutBucketCors,

    -- * Request Lenses
    putBucketCors_contentMD5,
    putBucketCors_expectedBucketOwner,
    putBucketCors_bucket,
    putBucketCors_cORSConfiguration,

    -- * Destructuring the Response
    PutBucketCorsResponse (..),
    newPutBucketCorsResponse,
  )
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:/ 'newPutBucketCors' smart constructor.
data PutBucketCors = PutBucketCors'
  { -- | The base64-encoded 128-bit MD5 digest of the data. This header must be
    -- used as a message integrity check to verify that the request body was
    -- not corrupted in transit. For more information, go to
    -- <http://www.ietf.org/rfc/rfc1864.txt RFC 1864.>
    --
    -- For requests made using the Amazon Web Services Command Line Interface
    -- (CLI) or Amazon Web Services SDKs, this field is calculated
    -- automatically.
    PutBucketCors -> Maybe Text
contentMD5 :: Prelude.Maybe Prelude.Text,
    -- | 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.
    PutBucketCors -> Maybe Text
expectedBucketOwner :: Prelude.Maybe Prelude.Text,
    -- | Specifies the bucket impacted by the @cors@configuration.
    PutBucketCors -> BucketName
bucket :: BucketName,
    -- | Describes the cross-origin access configuration for objects in an Amazon
    -- S3 bucket. For more information, see
    -- <https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html Enabling Cross-Origin Resource Sharing>
    -- in the /Amazon S3 User Guide/.
    PutBucketCors -> CORSConfiguration
cORSConfiguration :: CORSConfiguration
  }
  deriving (PutBucketCors -> PutBucketCors -> Bool
(PutBucketCors -> PutBucketCors -> Bool)
-> (PutBucketCors -> PutBucketCors -> Bool) -> Eq PutBucketCors
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutBucketCors -> PutBucketCors -> Bool
$c/= :: PutBucketCors -> PutBucketCors -> Bool
== :: PutBucketCors -> PutBucketCors -> Bool
$c== :: PutBucketCors -> PutBucketCors -> Bool
Prelude.Eq, ReadPrec [PutBucketCors]
ReadPrec PutBucketCors
Int -> ReadS PutBucketCors
ReadS [PutBucketCors]
(Int -> ReadS PutBucketCors)
-> ReadS [PutBucketCors]
-> ReadPrec PutBucketCors
-> ReadPrec [PutBucketCors]
-> Read PutBucketCors
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutBucketCors]
$creadListPrec :: ReadPrec [PutBucketCors]
readPrec :: ReadPrec PutBucketCors
$creadPrec :: ReadPrec PutBucketCors
readList :: ReadS [PutBucketCors]
$creadList :: ReadS [PutBucketCors]
readsPrec :: Int -> ReadS PutBucketCors
$creadsPrec :: Int -> ReadS PutBucketCors
Prelude.Read, Int -> PutBucketCors -> ShowS
[PutBucketCors] -> ShowS
PutBucketCors -> String
(Int -> PutBucketCors -> ShowS)
-> (PutBucketCors -> String)
-> ([PutBucketCors] -> ShowS)
-> Show PutBucketCors
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutBucketCors] -> ShowS
$cshowList :: [PutBucketCors] -> ShowS
show :: PutBucketCors -> String
$cshow :: PutBucketCors -> String
showsPrec :: Int -> PutBucketCors -> ShowS
$cshowsPrec :: Int -> PutBucketCors -> ShowS
Prelude.Show, (forall x. PutBucketCors -> Rep PutBucketCors x)
-> (forall x. Rep PutBucketCors x -> PutBucketCors)
-> Generic PutBucketCors
forall x. Rep PutBucketCors x -> PutBucketCors
forall x. PutBucketCors -> Rep PutBucketCors x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutBucketCors x -> PutBucketCors
$cfrom :: forall x. PutBucketCors -> Rep PutBucketCors x
Prelude.Generic)

-- |
-- Create a value of 'PutBucketCors' 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:
--
-- 'contentMD5', 'putBucketCors_contentMD5' - The base64-encoded 128-bit MD5 digest of the data. This header must be
-- used as a message integrity check to verify that the request body was
-- not corrupted in transit. For more information, go to
-- <http://www.ietf.org/rfc/rfc1864.txt RFC 1864.>
--
-- For requests made using the Amazon Web Services Command Line Interface
-- (CLI) or Amazon Web Services SDKs, this field is calculated
-- automatically.
--
-- 'expectedBucketOwner', 'putBucketCors_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', 'putBucketCors_bucket' - Specifies the bucket impacted by the @cors@configuration.
--
-- 'cORSConfiguration', 'putBucketCors_cORSConfiguration' - Describes the cross-origin access configuration for objects in an Amazon
-- S3 bucket. For more information, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html Enabling Cross-Origin Resource Sharing>
-- in the /Amazon S3 User Guide/.
newPutBucketCors ::
  -- | 'bucket'
  BucketName ->
  -- | 'cORSConfiguration'
  CORSConfiguration ->
  PutBucketCors
newPutBucketCors :: BucketName -> CORSConfiguration -> PutBucketCors
newPutBucketCors BucketName
pBucket_ CORSConfiguration
pCORSConfiguration_ =
  PutBucketCors' :: Maybe Text
-> Maybe Text -> BucketName -> CORSConfiguration -> PutBucketCors
PutBucketCors'
    { $sel:contentMD5:PutBucketCors' :: Maybe Text
contentMD5 = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:expectedBucketOwner:PutBucketCors' :: Maybe Text
expectedBucketOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:bucket:PutBucketCors' :: BucketName
bucket = BucketName
pBucket_,
      $sel:cORSConfiguration:PutBucketCors' :: CORSConfiguration
cORSConfiguration = CORSConfiguration
pCORSConfiguration_
    }

-- | The base64-encoded 128-bit MD5 digest of the data. This header must be
-- used as a message integrity check to verify that the request body was
-- not corrupted in transit. For more information, go to
-- <http://www.ietf.org/rfc/rfc1864.txt RFC 1864.>
--
-- For requests made using the Amazon Web Services Command Line Interface
-- (CLI) or Amazon Web Services SDKs, this field is calculated
-- automatically.
putBucketCors_contentMD5 :: Lens.Lens' PutBucketCors (Prelude.Maybe Prelude.Text)
putBucketCors_contentMD5 :: (Maybe Text -> f (Maybe Text)) -> PutBucketCors -> f PutBucketCors
putBucketCors_contentMD5 = (PutBucketCors -> Maybe Text)
-> (PutBucketCors -> Maybe Text -> PutBucketCors)
-> Lens PutBucketCors PutBucketCors (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBucketCors' {Maybe Text
contentMD5 :: Maybe Text
$sel:contentMD5:PutBucketCors' :: PutBucketCors -> Maybe Text
contentMD5} -> Maybe Text
contentMD5) (\s :: PutBucketCors
s@PutBucketCors' {} Maybe Text
a -> PutBucketCors
s {$sel:contentMD5:PutBucketCors' :: Maybe Text
contentMD5 = Maybe Text
a} :: PutBucketCors)

-- | 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.
putBucketCors_expectedBucketOwner :: Lens.Lens' PutBucketCors (Prelude.Maybe Prelude.Text)
putBucketCors_expectedBucketOwner :: (Maybe Text -> f (Maybe Text)) -> PutBucketCors -> f PutBucketCors
putBucketCors_expectedBucketOwner = (PutBucketCors -> Maybe Text)
-> (PutBucketCors -> Maybe Text -> PutBucketCors)
-> Lens PutBucketCors PutBucketCors (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBucketCors' {Maybe Text
expectedBucketOwner :: Maybe Text
$sel:expectedBucketOwner:PutBucketCors' :: PutBucketCors -> Maybe Text
expectedBucketOwner} -> Maybe Text
expectedBucketOwner) (\s :: PutBucketCors
s@PutBucketCors' {} Maybe Text
a -> PutBucketCors
s {$sel:expectedBucketOwner:PutBucketCors' :: Maybe Text
expectedBucketOwner = Maybe Text
a} :: PutBucketCors)

-- | Specifies the bucket impacted by the @cors@configuration.
putBucketCors_bucket :: Lens.Lens' PutBucketCors BucketName
putBucketCors_bucket :: (BucketName -> f BucketName) -> PutBucketCors -> f PutBucketCors
putBucketCors_bucket = (PutBucketCors -> BucketName)
-> (PutBucketCors -> BucketName -> PutBucketCors)
-> Lens PutBucketCors PutBucketCors BucketName BucketName
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBucketCors' {BucketName
bucket :: BucketName
$sel:bucket:PutBucketCors' :: PutBucketCors -> BucketName
bucket} -> BucketName
bucket) (\s :: PutBucketCors
s@PutBucketCors' {} BucketName
a -> PutBucketCors
s {$sel:bucket:PutBucketCors' :: BucketName
bucket = BucketName
a} :: PutBucketCors)

-- | Describes the cross-origin access configuration for objects in an Amazon
-- S3 bucket. For more information, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html Enabling Cross-Origin Resource Sharing>
-- in the /Amazon S3 User Guide/.
putBucketCors_cORSConfiguration :: Lens.Lens' PutBucketCors CORSConfiguration
putBucketCors_cORSConfiguration :: (CORSConfiguration -> f CORSConfiguration)
-> PutBucketCors -> f PutBucketCors
putBucketCors_cORSConfiguration = (PutBucketCors -> CORSConfiguration)
-> (PutBucketCors -> CORSConfiguration -> PutBucketCors)
-> Lens
     PutBucketCors PutBucketCors CORSConfiguration CORSConfiguration
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBucketCors' {CORSConfiguration
cORSConfiguration :: CORSConfiguration
$sel:cORSConfiguration:PutBucketCors' :: PutBucketCors -> CORSConfiguration
cORSConfiguration} -> CORSConfiguration
cORSConfiguration) (\s :: PutBucketCors
s@PutBucketCors' {} CORSConfiguration
a -> PutBucketCors
s {$sel:cORSConfiguration:PutBucketCors' :: CORSConfiguration
cORSConfiguration = CORSConfiguration
a} :: PutBucketCors)

instance Core.AWSRequest PutBucketCors where
  type
    AWSResponse PutBucketCors =
      PutBucketCorsResponse
  request :: PutBucketCors -> Request PutBucketCors
request =
    Request PutBucketCors -> Request PutBucketCors
forall a. Request a -> Request a
Request.contentMD5Header
      (Request PutBucketCors -> Request PutBucketCors)
-> (PutBucketCors -> Request PutBucketCors)
-> PutBucketCors
-> Request PutBucketCors
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Request PutBucketCors -> Request PutBucketCors
forall a. Request a -> Request a
Request.s3vhost
      (Request PutBucketCors -> Request PutBucketCors)
-> (PutBucketCors -> Request PutBucketCors)
-> PutBucketCors
-> Request PutBucketCors
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Service -> PutBucketCors -> Request PutBucketCors
forall a. (ToRequest a, ToElement a) => Service -> a -> Request a
Request.putXML Service
defaultService
  response :: Logger
-> Service
-> Proxy PutBucketCors
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse PutBucketCors)))
response =
    AWSResponse PutBucketCors
-> Logger
-> Service
-> Proxy PutBucketCors
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse PutBucketCors)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull AWSResponse PutBucketCors
PutBucketCorsResponse
PutBucketCorsResponse'

instance Prelude.Hashable PutBucketCors

instance Prelude.NFData PutBucketCors

instance Core.ToElement PutBucketCors where
  toElement :: PutBucketCors -> Element
toElement PutBucketCors' {Maybe Text
BucketName
CORSConfiguration
cORSConfiguration :: CORSConfiguration
bucket :: BucketName
expectedBucketOwner :: Maybe Text
contentMD5 :: Maybe Text
$sel:cORSConfiguration:PutBucketCors' :: PutBucketCors -> CORSConfiguration
$sel:bucket:PutBucketCors' :: PutBucketCors -> BucketName
$sel:expectedBucketOwner:PutBucketCors' :: PutBucketCors -> Maybe Text
$sel:contentMD5:PutBucketCors' :: PutBucketCors -> Maybe Text
..} =
    Name -> CORSConfiguration -> Element
forall a. ToXML a => Name -> a -> Element
Core.mkElement
      Name
"{http://s3.amazonaws.com/doc/2006-03-01/}CORSConfiguration"
      CORSConfiguration
cORSConfiguration

instance Core.ToHeaders PutBucketCors where
  toHeaders :: PutBucketCors -> [Header]
toHeaders PutBucketCors' {Maybe Text
BucketName
CORSConfiguration
cORSConfiguration :: CORSConfiguration
bucket :: BucketName
expectedBucketOwner :: Maybe Text
contentMD5 :: Maybe Text
$sel:cORSConfiguration:PutBucketCors' :: PutBucketCors -> CORSConfiguration
$sel:bucket:PutBucketCors' :: PutBucketCors -> BucketName
$sel:expectedBucketOwner:PutBucketCors' :: PutBucketCors -> Maybe Text
$sel:contentMD5:PutBucketCors' :: PutBucketCors -> Maybe Text
..} =
    [[Header]] -> [Header]
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ HeaderName
"Content-MD5" HeaderName -> Maybe Text -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# Maybe Text
contentMD5,
        HeaderName
"x-amz-expected-bucket-owner"
          HeaderName -> Maybe Text -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# Maybe Text
expectedBucketOwner
      ]

instance Core.ToPath PutBucketCors where
  toPath :: PutBucketCors -> ByteString
toPath PutBucketCors' {Maybe Text
BucketName
CORSConfiguration
cORSConfiguration :: CORSConfiguration
bucket :: BucketName
expectedBucketOwner :: Maybe Text
contentMD5 :: Maybe Text
$sel:cORSConfiguration:PutBucketCors' :: PutBucketCors -> CORSConfiguration
$sel:bucket:PutBucketCors' :: PutBucketCors -> BucketName
$sel:expectedBucketOwner:PutBucketCors' :: PutBucketCors -> Maybe Text
$sel:contentMD5:PutBucketCors' :: PutBucketCors -> 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 PutBucketCors where
  toQuery :: PutBucketCors -> QueryString
toQuery = QueryString -> PutBucketCors -> QueryString
forall a b. a -> b -> a
Prelude.const ([QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat [QueryString
"cors"])

-- | /See:/ 'newPutBucketCorsResponse' smart constructor.
data PutBucketCorsResponse = PutBucketCorsResponse'
  {
  }
  deriving (PutBucketCorsResponse -> PutBucketCorsResponse -> Bool
(PutBucketCorsResponse -> PutBucketCorsResponse -> Bool)
-> (PutBucketCorsResponse -> PutBucketCorsResponse -> Bool)
-> Eq PutBucketCorsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutBucketCorsResponse -> PutBucketCorsResponse -> Bool
$c/= :: PutBucketCorsResponse -> PutBucketCorsResponse -> Bool
== :: PutBucketCorsResponse -> PutBucketCorsResponse -> Bool
$c== :: PutBucketCorsResponse -> PutBucketCorsResponse -> Bool
Prelude.Eq, ReadPrec [PutBucketCorsResponse]
ReadPrec PutBucketCorsResponse
Int -> ReadS PutBucketCorsResponse
ReadS [PutBucketCorsResponse]
(Int -> ReadS PutBucketCorsResponse)
-> ReadS [PutBucketCorsResponse]
-> ReadPrec PutBucketCorsResponse
-> ReadPrec [PutBucketCorsResponse]
-> Read PutBucketCorsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutBucketCorsResponse]
$creadListPrec :: ReadPrec [PutBucketCorsResponse]
readPrec :: ReadPrec PutBucketCorsResponse
$creadPrec :: ReadPrec PutBucketCorsResponse
readList :: ReadS [PutBucketCorsResponse]
$creadList :: ReadS [PutBucketCorsResponse]
readsPrec :: Int -> ReadS PutBucketCorsResponse
$creadsPrec :: Int -> ReadS PutBucketCorsResponse
Prelude.Read, Int -> PutBucketCorsResponse -> ShowS
[PutBucketCorsResponse] -> ShowS
PutBucketCorsResponse -> String
(Int -> PutBucketCorsResponse -> ShowS)
-> (PutBucketCorsResponse -> String)
-> ([PutBucketCorsResponse] -> ShowS)
-> Show PutBucketCorsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutBucketCorsResponse] -> ShowS
$cshowList :: [PutBucketCorsResponse] -> ShowS
show :: PutBucketCorsResponse -> String
$cshow :: PutBucketCorsResponse -> String
showsPrec :: Int -> PutBucketCorsResponse -> ShowS
$cshowsPrec :: Int -> PutBucketCorsResponse -> ShowS
Prelude.Show, (forall x. PutBucketCorsResponse -> Rep PutBucketCorsResponse x)
-> (forall x. Rep PutBucketCorsResponse x -> PutBucketCorsResponse)
-> Generic PutBucketCorsResponse
forall x. Rep PutBucketCorsResponse x -> PutBucketCorsResponse
forall x. PutBucketCorsResponse -> Rep PutBucketCorsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutBucketCorsResponse x -> PutBucketCorsResponse
$cfrom :: forall x. PutBucketCorsResponse -> Rep PutBucketCorsResponse x
Prelude.Generic)

-- |
-- Create a value of 'PutBucketCorsResponse' 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.
newPutBucketCorsResponse ::
  PutBucketCorsResponse
newPutBucketCorsResponse :: PutBucketCorsResponse
newPutBucketCorsResponse = PutBucketCorsResponse
PutBucketCorsResponse'

instance Prelude.NFData PutBucketCorsResponse