{-# 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.PutBucketInventoryConfiguration
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- This implementation of the @PUT@ action adds an inventory configuration
-- (identified by the inventory ID) to the bucket. You can have up to 1,000
-- inventory configurations per bucket.
--
-- Amazon S3 inventory generates inventories of the objects in the bucket
-- on a daily or weekly basis, and the results are published to a flat
-- file. The bucket that is inventoried is called the /source/ bucket, and
-- the bucket where the inventory flat file is stored is called the
-- /destination/ bucket. The /destination/ bucket must be in the same
-- Amazon Web Services Region as the /source/ bucket.
--
-- When you configure an inventory for a /source/ bucket, you specify the
-- /destination/ bucket where you want the inventory to be stored, and
-- whether to generate the inventory daily or weekly. You can also
-- configure what object metadata to include and whether to inventory all
-- object versions or only current versions. For more information, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html Amazon S3 Inventory>
-- in the Amazon S3 User Guide.
--
-- You must create a bucket policy on the /destination/ bucket to grant
-- permissions to Amazon S3 to write objects to the bucket in the defined
-- location. For an example policy, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-9 Granting Permissions for Amazon S3 Inventory and Storage Class Analysis>.
--
-- To use this operation, you must have permissions to perform the
-- @s3:PutInventoryConfiguration@ action. The bucket owner has this
-- permission by default and can grant this permission to others. For more
-- information about permissions, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources Permissions Related to Bucket Subresource Operations>
-- and
-- <https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html Managing Access Permissions to Your Amazon S3 Resources>
-- in the Amazon S3 User Guide.
--
-- __Special Errors__
--
-- -   __HTTP 400 Bad Request Error__
--
--     -   /Code:/ InvalidArgument
--
--     -   /Cause:/ Invalid Argument
--
-- -   __HTTP 400 Bad Request Error__
--
--     -   /Code:/ TooManyConfigurations
--
--     -   /Cause:/ You are attempting to create a new configuration but
--         have already reached the 1,000-configuration limit.
--
-- -   __HTTP 403 Forbidden Error__
--
--     -   /Code:/ AccessDenied
--
--     -   /Cause:/ You are not the owner of the specified bucket, or you
--         do not have the @s3:PutInventoryConfiguration@ bucket permission
--         to set the configuration on the bucket.
--
-- __Related Resources__
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketInventoryConfiguration.html GetBucketInventoryConfiguration>
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketInventoryConfiguration.html DeleteBucketInventoryConfiguration>
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketInventoryConfigurations.html ListBucketInventoryConfigurations>
module Amazonka.S3.PutBucketInventoryConfiguration
  ( -- * Creating a Request
    PutBucketInventoryConfiguration (..),
    newPutBucketInventoryConfiguration,

    -- * Request Lenses
    putBucketInventoryConfiguration_expectedBucketOwner,
    putBucketInventoryConfiguration_bucket,
    putBucketInventoryConfiguration_id,
    putBucketInventoryConfiguration_inventoryConfiguration,

    -- * Destructuring the Response
    PutBucketInventoryConfigurationResponse (..),
    newPutBucketInventoryConfigurationResponse,
  )
where

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

-- | /See:/ 'newPutBucketInventoryConfiguration' smart constructor.
data PutBucketInventoryConfiguration = PutBucketInventoryConfiguration'
  { -- | The account ID of the expected bucket owner. If the bucket is owned by a
    -- different account, the request fails with the HTTP status code
    -- @403 Forbidden@ (access denied).
    PutBucketInventoryConfiguration -> Maybe Text
expectedBucketOwner :: Prelude.Maybe Prelude.Text,
    -- | The name of the bucket where the inventory configuration will be stored.
    PutBucketInventoryConfiguration -> BucketName
bucket :: BucketName,
    -- | The ID used to identify the inventory configuration.
    PutBucketInventoryConfiguration -> Text
id :: Prelude.Text,
    -- | Specifies the inventory configuration.
    PutBucketInventoryConfiguration -> InventoryConfiguration
inventoryConfiguration :: InventoryConfiguration
  }
  deriving (PutBucketInventoryConfiguration
-> PutBucketInventoryConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutBucketInventoryConfiguration
-> PutBucketInventoryConfiguration -> Bool
$c/= :: PutBucketInventoryConfiguration
-> PutBucketInventoryConfiguration -> Bool
== :: PutBucketInventoryConfiguration
-> PutBucketInventoryConfiguration -> Bool
$c== :: PutBucketInventoryConfiguration
-> PutBucketInventoryConfiguration -> Bool
Prelude.Eq, Int -> PutBucketInventoryConfiguration -> ShowS
[PutBucketInventoryConfiguration] -> ShowS
PutBucketInventoryConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutBucketInventoryConfiguration] -> ShowS
$cshowList :: [PutBucketInventoryConfiguration] -> ShowS
show :: PutBucketInventoryConfiguration -> String
$cshow :: PutBucketInventoryConfiguration -> String
showsPrec :: Int -> PutBucketInventoryConfiguration -> ShowS
$cshowsPrec :: Int -> PutBucketInventoryConfiguration -> ShowS
Prelude.Show, forall x.
Rep PutBucketInventoryConfiguration x
-> PutBucketInventoryConfiguration
forall x.
PutBucketInventoryConfiguration
-> Rep PutBucketInventoryConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutBucketInventoryConfiguration x
-> PutBucketInventoryConfiguration
$cfrom :: forall x.
PutBucketInventoryConfiguration
-> Rep PutBucketInventoryConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'PutBucketInventoryConfiguration' 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', 'putBucketInventoryConfiguration_expectedBucketOwner' - The account ID of the expected bucket owner. If the bucket is owned by a
-- different account, the request fails with the HTTP status code
-- @403 Forbidden@ (access denied).
--
-- 'bucket', 'putBucketInventoryConfiguration_bucket' - The name of the bucket where the inventory configuration will be stored.
--
-- 'id', 'putBucketInventoryConfiguration_id' - The ID used to identify the inventory configuration.
--
-- 'inventoryConfiguration', 'putBucketInventoryConfiguration_inventoryConfiguration' - Specifies the inventory configuration.
newPutBucketInventoryConfiguration ::
  -- | 'bucket'
  BucketName ->
  -- | 'id'
  Prelude.Text ->
  -- | 'inventoryConfiguration'
  InventoryConfiguration ->
  PutBucketInventoryConfiguration
newPutBucketInventoryConfiguration :: BucketName
-> Text
-> InventoryConfiguration
-> PutBucketInventoryConfiguration
newPutBucketInventoryConfiguration
  BucketName
pBucket_
  Text
pId_
  InventoryConfiguration
pInventoryConfiguration_ =
    PutBucketInventoryConfiguration'
      { $sel:expectedBucketOwner:PutBucketInventoryConfiguration' :: Maybe Text
expectedBucketOwner =
          forall a. Maybe a
Prelude.Nothing,
        $sel:bucket:PutBucketInventoryConfiguration' :: BucketName
bucket = BucketName
pBucket_,
        $sel:id:PutBucketInventoryConfiguration' :: Text
id = Text
pId_,
        $sel:inventoryConfiguration:PutBucketInventoryConfiguration' :: InventoryConfiguration
inventoryConfiguration =
          InventoryConfiguration
pInventoryConfiguration_
      }

-- | The account ID of the expected bucket owner. If the bucket is owned by a
-- different account, the request fails with the HTTP status code
-- @403 Forbidden@ (access denied).
putBucketInventoryConfiguration_expectedBucketOwner :: Lens.Lens' PutBucketInventoryConfiguration (Prelude.Maybe Prelude.Text)
putBucketInventoryConfiguration_expectedBucketOwner :: Lens' PutBucketInventoryConfiguration (Maybe Text)
putBucketInventoryConfiguration_expectedBucketOwner = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBucketInventoryConfiguration' {Maybe Text
expectedBucketOwner :: Maybe Text
$sel:expectedBucketOwner:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> Maybe Text
expectedBucketOwner} -> Maybe Text
expectedBucketOwner) (\s :: PutBucketInventoryConfiguration
s@PutBucketInventoryConfiguration' {} Maybe Text
a -> PutBucketInventoryConfiguration
s {$sel:expectedBucketOwner:PutBucketInventoryConfiguration' :: Maybe Text
expectedBucketOwner = Maybe Text
a} :: PutBucketInventoryConfiguration)

-- | The name of the bucket where the inventory configuration will be stored.
putBucketInventoryConfiguration_bucket :: Lens.Lens' PutBucketInventoryConfiguration BucketName
putBucketInventoryConfiguration_bucket :: Lens' PutBucketInventoryConfiguration BucketName
putBucketInventoryConfiguration_bucket = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBucketInventoryConfiguration' {BucketName
bucket :: BucketName
$sel:bucket:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> BucketName
bucket} -> BucketName
bucket) (\s :: PutBucketInventoryConfiguration
s@PutBucketInventoryConfiguration' {} BucketName
a -> PutBucketInventoryConfiguration
s {$sel:bucket:PutBucketInventoryConfiguration' :: BucketName
bucket = BucketName
a} :: PutBucketInventoryConfiguration)

-- | The ID used to identify the inventory configuration.
putBucketInventoryConfiguration_id :: Lens.Lens' PutBucketInventoryConfiguration Prelude.Text
putBucketInventoryConfiguration_id :: Lens' PutBucketInventoryConfiguration Text
putBucketInventoryConfiguration_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBucketInventoryConfiguration' {Text
id :: Text
$sel:id:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> Text
id} -> Text
id) (\s :: PutBucketInventoryConfiguration
s@PutBucketInventoryConfiguration' {} Text
a -> PutBucketInventoryConfiguration
s {$sel:id:PutBucketInventoryConfiguration' :: Text
id = Text
a} :: PutBucketInventoryConfiguration)

-- | Specifies the inventory configuration.
putBucketInventoryConfiguration_inventoryConfiguration :: Lens.Lens' PutBucketInventoryConfiguration InventoryConfiguration
putBucketInventoryConfiguration_inventoryConfiguration :: Lens' PutBucketInventoryConfiguration InventoryConfiguration
putBucketInventoryConfiguration_inventoryConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBucketInventoryConfiguration' {InventoryConfiguration
inventoryConfiguration :: InventoryConfiguration
$sel:inventoryConfiguration:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> InventoryConfiguration
inventoryConfiguration} -> InventoryConfiguration
inventoryConfiguration) (\s :: PutBucketInventoryConfiguration
s@PutBucketInventoryConfiguration' {} InventoryConfiguration
a -> PutBucketInventoryConfiguration
s {$sel:inventoryConfiguration:PutBucketInventoryConfiguration' :: InventoryConfiguration
inventoryConfiguration = InventoryConfiguration
a} :: PutBucketInventoryConfiguration)

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

instance
  Prelude.Hashable
    PutBucketInventoryConfiguration
  where
  hashWithSalt :: Int -> PutBucketInventoryConfiguration -> Int
hashWithSalt
    Int
_salt
    PutBucketInventoryConfiguration' {Maybe Text
Text
BucketName
InventoryConfiguration
inventoryConfiguration :: InventoryConfiguration
id :: Text
bucket :: BucketName
expectedBucketOwner :: Maybe Text
$sel:inventoryConfiguration:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> InventoryConfiguration
$sel:id:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> Text
$sel:bucket:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> BucketName
$sel:expectedBucketOwner:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> Maybe Text
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
expectedBucketOwner
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` BucketName
bucket
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` InventoryConfiguration
inventoryConfiguration

instance
  Prelude.NFData
    PutBucketInventoryConfiguration
  where
  rnf :: PutBucketInventoryConfiguration -> ()
rnf PutBucketInventoryConfiguration' {Maybe Text
Text
BucketName
InventoryConfiguration
inventoryConfiguration :: InventoryConfiguration
id :: Text
bucket :: BucketName
expectedBucketOwner :: Maybe Text
$sel:inventoryConfiguration:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> InventoryConfiguration
$sel:id:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> Text
$sel:bucket:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> BucketName
$sel:expectedBucketOwner:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
expectedBucketOwner
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf BucketName
bucket
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
id
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf InventoryConfiguration
inventoryConfiguration

instance
  Data.ToElement
    PutBucketInventoryConfiguration
  where
  toElement :: PutBucketInventoryConfiguration -> Element
toElement PutBucketInventoryConfiguration' {Maybe Text
Text
BucketName
InventoryConfiguration
inventoryConfiguration :: InventoryConfiguration
id :: Text
bucket :: BucketName
expectedBucketOwner :: Maybe Text
$sel:inventoryConfiguration:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> InventoryConfiguration
$sel:id:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> Text
$sel:bucket:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> BucketName
$sel:expectedBucketOwner:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> Maybe Text
..} =
    forall a. ToXML a => Name -> a -> Element
Data.mkElement
      Name
"{http://s3.amazonaws.com/doc/2006-03-01/}InventoryConfiguration"
      InventoryConfiguration
inventoryConfiguration

instance
  Data.ToHeaders
    PutBucketInventoryConfiguration
  where
  toHeaders :: PutBucketInventoryConfiguration -> [Header]
toHeaders PutBucketInventoryConfiguration' {Maybe Text
Text
BucketName
InventoryConfiguration
inventoryConfiguration :: InventoryConfiguration
id :: Text
bucket :: BucketName
expectedBucketOwner :: Maybe Text
$sel:inventoryConfiguration:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> InventoryConfiguration
$sel:id:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> Text
$sel:bucket:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> BucketName
$sel:expectedBucketOwner:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ HeaderName
"x-amz-expected-bucket-owner"
          forall a. ToHeader a => HeaderName -> a -> [Header]
Data.=# Maybe Text
expectedBucketOwner
      ]

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

instance Data.ToQuery PutBucketInventoryConfiguration where
  toQuery :: PutBucketInventoryConfiguration -> QueryString
toQuery PutBucketInventoryConfiguration' {Maybe Text
Text
BucketName
InventoryConfiguration
inventoryConfiguration :: InventoryConfiguration
id :: Text
bucket :: BucketName
expectedBucketOwner :: Maybe Text
$sel:inventoryConfiguration:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> InventoryConfiguration
$sel:id:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> Text
$sel:bucket:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> BucketName
$sel:expectedBucketOwner:PutBucketInventoryConfiguration' :: PutBucketInventoryConfiguration -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"id" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
id, QueryString
"inventory"]

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

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

instance
  Prelude.NFData
    PutBucketInventoryConfigurationResponse
  where
  rnf :: PutBucketInventoryConfigurationResponse -> ()
rnf PutBucketInventoryConfigurationResponse
_ = ()