{-# 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.PutBucketLifecycleConfiguration
-- 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)
--
-- Creates a new lifecycle configuration for the bucket or replaces an
-- existing lifecycle configuration. For information about lifecycle
-- configuration, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html Managing your storage lifecycle>.
--
-- Bucket lifecycle configuration now supports specifying a lifecycle rule
-- using an object key name prefix, one or more object tags, or a
-- combination of both. Accordingly, this section describes the latest API.
-- The previous version of the API supported filtering based only on an
-- object key name prefix, which is supported for backward compatibility.
-- For the related API description, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html PutBucketLifecycle>.
--
-- __Rules__
--
-- You specify the lifecycle configuration in your request body. The
-- lifecycle configuration is specified as XML consisting of one or more
-- rules. Each rule consists of the following:
--
-- -   Filter identifying a subset of objects to which the rule applies.
--     The filter can be based on a key name prefix, object tags, or a
--     combination of both.
--
-- -   Status whether the rule is in effect.
--
-- -   One or more lifecycle transition and expiration actions that you
--     want Amazon S3 to perform on the objects identified by the filter.
--     If the state of your bucket is versioning-enabled or
--     versioning-suspended, you can have many versions of the same object
--     (one current version and zero or more noncurrent versions). Amazon
--     S3 provides predefined actions that you can specify for current and
--     noncurrent object versions.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html Object Lifecycle Management>
-- and
-- <https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html Lifecycle Configuration Elements>.
--
-- __Permissions__
--
-- By default, all Amazon S3 resources are private, including buckets,
-- objects, and related subresources (for example, lifecycle configuration
-- and website configuration). Only the resource owner (that is, the Amazon
-- Web Services account that created it) can access the resource. The
-- resource owner can optionally grant access permissions to others by
-- writing an access policy. For this operation, a user must get the
-- s3:PutLifecycleConfiguration permission.
--
-- You can also explicitly deny permissions. Explicit deny also supersedes
-- any other permissions. If you want to block users or accounts from
-- removing or deleting objects from your bucket, you must deny them
-- permissions for the following actions:
--
-- -   s3:DeleteObject
--
-- -   s3:DeleteObjectVersion
--
-- -   s3:PutLifecycleConfiguration
--
-- For more information about permissions, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html Managing Access Permissions to Your Amazon S3 Resources>.
--
-- The following are related to @PutBucketLifecycleConfiguration@:
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-configuration-examples.html Examples of Lifecycle Configuration>
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html GetBucketLifecycleConfiguration>
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html DeleteBucketLifecycle>
module Amazonka.S3.PutBucketLifecycleConfiguration
  ( -- * Creating a Request
    PutBucketLifecycleConfiguration (..),
    newPutBucketLifecycleConfiguration,

    -- * Request Lenses
    putBucketLifecycleConfiguration_lifecycleConfiguration,
    putBucketLifecycleConfiguration_expectedBucketOwner,
    putBucketLifecycleConfiguration_bucket,

    -- * Destructuring the Response
    PutBucketLifecycleConfigurationResponse (..),
    newPutBucketLifecycleConfigurationResponse,
  )
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:/ 'newPutBucketLifecycleConfiguration' smart constructor.
data PutBucketLifecycleConfiguration = PutBucketLifecycleConfiguration'
  { -- | Container for lifecycle rules. You can add as many as 1,000 rules.
    PutBucketLifecycleConfiguration
-> Maybe BucketLifecycleConfiguration
lifecycleConfiguration :: Prelude.Maybe BucketLifecycleConfiguration,
    -- | 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.
    PutBucketLifecycleConfiguration -> Maybe Text
expectedBucketOwner :: Prelude.Maybe Prelude.Text,
    -- | The name of the bucket for which to set the configuration.
    PutBucketLifecycleConfiguration -> BucketName
bucket :: BucketName
  }
  deriving (PutBucketLifecycleConfiguration
-> PutBucketLifecycleConfiguration -> Bool
(PutBucketLifecycleConfiguration
 -> PutBucketLifecycleConfiguration -> Bool)
-> (PutBucketLifecycleConfiguration
    -> PutBucketLifecycleConfiguration -> Bool)
-> Eq PutBucketLifecycleConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutBucketLifecycleConfiguration
-> PutBucketLifecycleConfiguration -> Bool
$c/= :: PutBucketLifecycleConfiguration
-> PutBucketLifecycleConfiguration -> Bool
== :: PutBucketLifecycleConfiguration
-> PutBucketLifecycleConfiguration -> Bool
$c== :: PutBucketLifecycleConfiguration
-> PutBucketLifecycleConfiguration -> Bool
Prelude.Eq, ReadPrec [PutBucketLifecycleConfiguration]
ReadPrec PutBucketLifecycleConfiguration
Int -> ReadS PutBucketLifecycleConfiguration
ReadS [PutBucketLifecycleConfiguration]
(Int -> ReadS PutBucketLifecycleConfiguration)
-> ReadS [PutBucketLifecycleConfiguration]
-> ReadPrec PutBucketLifecycleConfiguration
-> ReadPrec [PutBucketLifecycleConfiguration]
-> Read PutBucketLifecycleConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutBucketLifecycleConfiguration]
$creadListPrec :: ReadPrec [PutBucketLifecycleConfiguration]
readPrec :: ReadPrec PutBucketLifecycleConfiguration
$creadPrec :: ReadPrec PutBucketLifecycleConfiguration
readList :: ReadS [PutBucketLifecycleConfiguration]
$creadList :: ReadS [PutBucketLifecycleConfiguration]
readsPrec :: Int -> ReadS PutBucketLifecycleConfiguration
$creadsPrec :: Int -> ReadS PutBucketLifecycleConfiguration
Prelude.Read, Int -> PutBucketLifecycleConfiguration -> ShowS
[PutBucketLifecycleConfiguration] -> ShowS
PutBucketLifecycleConfiguration -> String
(Int -> PutBucketLifecycleConfiguration -> ShowS)
-> (PutBucketLifecycleConfiguration -> String)
-> ([PutBucketLifecycleConfiguration] -> ShowS)
-> Show PutBucketLifecycleConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutBucketLifecycleConfiguration] -> ShowS
$cshowList :: [PutBucketLifecycleConfiguration] -> ShowS
show :: PutBucketLifecycleConfiguration -> String
$cshow :: PutBucketLifecycleConfiguration -> String
showsPrec :: Int -> PutBucketLifecycleConfiguration -> ShowS
$cshowsPrec :: Int -> PutBucketLifecycleConfiguration -> ShowS
Prelude.Show, (forall x.
 PutBucketLifecycleConfiguration
 -> Rep PutBucketLifecycleConfiguration x)
-> (forall x.
    Rep PutBucketLifecycleConfiguration x
    -> PutBucketLifecycleConfiguration)
-> Generic PutBucketLifecycleConfiguration
forall x.
Rep PutBucketLifecycleConfiguration x
-> PutBucketLifecycleConfiguration
forall x.
PutBucketLifecycleConfiguration
-> Rep PutBucketLifecycleConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutBucketLifecycleConfiguration x
-> PutBucketLifecycleConfiguration
$cfrom :: forall x.
PutBucketLifecycleConfiguration
-> Rep PutBucketLifecycleConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'PutBucketLifecycleConfiguration' 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:
--
-- 'lifecycleConfiguration', 'putBucketLifecycleConfiguration_lifecycleConfiguration' - Container for lifecycle rules. You can add as many as 1,000 rules.
--
-- 'expectedBucketOwner', 'putBucketLifecycleConfiguration_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', 'putBucketLifecycleConfiguration_bucket' - The name of the bucket for which to set the configuration.
newPutBucketLifecycleConfiguration ::
  -- | 'bucket'
  BucketName ->
  PutBucketLifecycleConfiguration
newPutBucketLifecycleConfiguration :: BucketName -> PutBucketLifecycleConfiguration
newPutBucketLifecycleConfiguration BucketName
pBucket_ =
  PutBucketLifecycleConfiguration' :: Maybe BucketLifecycleConfiguration
-> Maybe Text -> BucketName -> PutBucketLifecycleConfiguration
PutBucketLifecycleConfiguration'
    { $sel:lifecycleConfiguration:PutBucketLifecycleConfiguration' :: Maybe BucketLifecycleConfiguration
lifecycleConfiguration =
        Maybe BucketLifecycleConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:expectedBucketOwner:PutBucketLifecycleConfiguration' :: Maybe Text
expectedBucketOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:bucket:PutBucketLifecycleConfiguration' :: BucketName
bucket = BucketName
pBucket_
    }

-- | Container for lifecycle rules. You can add as many as 1,000 rules.
putBucketLifecycleConfiguration_lifecycleConfiguration :: Lens.Lens' PutBucketLifecycleConfiguration (Prelude.Maybe BucketLifecycleConfiguration)
putBucketLifecycleConfiguration_lifecycleConfiguration :: (Maybe BucketLifecycleConfiguration
 -> f (Maybe BucketLifecycleConfiguration))
-> PutBucketLifecycleConfiguration
-> f PutBucketLifecycleConfiguration
putBucketLifecycleConfiguration_lifecycleConfiguration = (PutBucketLifecycleConfiguration
 -> Maybe BucketLifecycleConfiguration)
-> (PutBucketLifecycleConfiguration
    -> Maybe BucketLifecycleConfiguration
    -> PutBucketLifecycleConfiguration)
-> Lens
     PutBucketLifecycleConfiguration
     PutBucketLifecycleConfiguration
     (Maybe BucketLifecycleConfiguration)
     (Maybe BucketLifecycleConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBucketLifecycleConfiguration' {Maybe BucketLifecycleConfiguration
lifecycleConfiguration :: Maybe BucketLifecycleConfiguration
$sel:lifecycleConfiguration:PutBucketLifecycleConfiguration' :: PutBucketLifecycleConfiguration
-> Maybe BucketLifecycleConfiguration
lifecycleConfiguration} -> Maybe BucketLifecycleConfiguration
lifecycleConfiguration) (\s :: PutBucketLifecycleConfiguration
s@PutBucketLifecycleConfiguration' {} Maybe BucketLifecycleConfiguration
a -> PutBucketLifecycleConfiguration
s {$sel:lifecycleConfiguration:PutBucketLifecycleConfiguration' :: Maybe BucketLifecycleConfiguration
lifecycleConfiguration = Maybe BucketLifecycleConfiguration
a} :: PutBucketLifecycleConfiguration)

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

-- | The name of the bucket for which to set the configuration.
putBucketLifecycleConfiguration_bucket :: Lens.Lens' PutBucketLifecycleConfiguration BucketName
putBucketLifecycleConfiguration_bucket :: (BucketName -> f BucketName)
-> PutBucketLifecycleConfiguration
-> f PutBucketLifecycleConfiguration
putBucketLifecycleConfiguration_bucket = (PutBucketLifecycleConfiguration -> BucketName)
-> (PutBucketLifecycleConfiguration
    -> BucketName -> PutBucketLifecycleConfiguration)
-> Lens
     PutBucketLifecycleConfiguration
     PutBucketLifecycleConfiguration
     BucketName
     BucketName
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBucketLifecycleConfiguration' {BucketName
bucket :: BucketName
$sel:bucket:PutBucketLifecycleConfiguration' :: PutBucketLifecycleConfiguration -> BucketName
bucket} -> BucketName
bucket) (\s :: PutBucketLifecycleConfiguration
s@PutBucketLifecycleConfiguration' {} BucketName
a -> PutBucketLifecycleConfiguration
s {$sel:bucket:PutBucketLifecycleConfiguration' :: BucketName
bucket = BucketName
a} :: PutBucketLifecycleConfiguration)

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

instance
  Prelude.Hashable
    PutBucketLifecycleConfiguration

instance
  Prelude.NFData
    PutBucketLifecycleConfiguration

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

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

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

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

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

instance
  Prelude.NFData
    PutBucketLifecycleConfigurationResponse