{-# 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.GetBucketIntelligentTieringConfiguration
-- 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)
--
-- Gets the S3 Intelligent-Tiering configuration from the specified bucket.
--
-- The S3 Intelligent-Tiering storage class is designed to optimize storage
-- costs by automatically moving data to the most cost-effective storage
-- access tier, without performance impact or operational overhead. S3
-- Intelligent-Tiering delivers automatic cost savings in two low latency
-- and high throughput access tiers. For data that can be accessed
-- asynchronously, you can choose to activate automatic archiving
-- capabilities within the S3 Intelligent-Tiering storage class.
--
-- The S3 Intelligent-Tiering storage class is the ideal storage class for
-- data with unknown, changing, or unpredictable access patterns,
-- independent of object size or retention period. If the size of an object
-- is less than 128 KB, it is not eligible for auto-tiering. Smaller
-- objects can be stored, but they are always charged at the Frequent
-- Access tier rates in the S3 Intelligent-Tiering storage class.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access Storage class for automatically optimizing frequently and infrequently accessed objects>.
--
-- Operations related to @GetBucketIntelligentTieringConfiguration@
-- include:
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketIntelligentTieringConfiguration.html DeleteBucketIntelligentTieringConfiguration>
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketIntelligentTieringConfiguration.html PutBucketIntelligentTieringConfiguration>
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketIntelligentTieringConfigurations.html ListBucketIntelligentTieringConfigurations>
module Amazonka.S3.GetBucketIntelligentTieringConfiguration
  ( -- * Creating a Request
    GetBucketIntelligentTieringConfiguration (..),
    newGetBucketIntelligentTieringConfiguration,

    -- * Request Lenses
    getBucketIntelligentTieringConfiguration_bucket,
    getBucketIntelligentTieringConfiguration_id,

    -- * Destructuring the Response
    GetBucketIntelligentTieringConfigurationResponse (..),
    newGetBucketIntelligentTieringConfigurationResponse,

    -- * Response Lenses
    getBucketIntelligentTieringConfigurationResponse_intelligentTieringConfiguration,
    getBucketIntelligentTieringConfigurationResponse_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:/ 'newGetBucketIntelligentTieringConfiguration' smart constructor.
data GetBucketIntelligentTieringConfiguration = GetBucketIntelligentTieringConfiguration'
  { -- | The name of the Amazon S3 bucket whose configuration you want to modify
    -- or retrieve.
    GetBucketIntelligentTieringConfiguration -> BucketName
bucket :: BucketName,
    -- | The ID used to identify the S3 Intelligent-Tiering configuration.
    GetBucketIntelligentTieringConfiguration -> Text
id :: Prelude.Text
  }
  deriving (GetBucketIntelligentTieringConfiguration
-> GetBucketIntelligentTieringConfiguration -> Bool
(GetBucketIntelligentTieringConfiguration
 -> GetBucketIntelligentTieringConfiguration -> Bool)
-> (GetBucketIntelligentTieringConfiguration
    -> GetBucketIntelligentTieringConfiguration -> Bool)
-> Eq GetBucketIntelligentTieringConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBucketIntelligentTieringConfiguration
-> GetBucketIntelligentTieringConfiguration -> Bool
$c/= :: GetBucketIntelligentTieringConfiguration
-> GetBucketIntelligentTieringConfiguration -> Bool
== :: GetBucketIntelligentTieringConfiguration
-> GetBucketIntelligentTieringConfiguration -> Bool
$c== :: GetBucketIntelligentTieringConfiguration
-> GetBucketIntelligentTieringConfiguration -> Bool
Prelude.Eq, ReadPrec [GetBucketIntelligentTieringConfiguration]
ReadPrec GetBucketIntelligentTieringConfiguration
Int -> ReadS GetBucketIntelligentTieringConfiguration
ReadS [GetBucketIntelligentTieringConfiguration]
(Int -> ReadS GetBucketIntelligentTieringConfiguration)
-> ReadS [GetBucketIntelligentTieringConfiguration]
-> ReadPrec GetBucketIntelligentTieringConfiguration
-> ReadPrec [GetBucketIntelligentTieringConfiguration]
-> Read GetBucketIntelligentTieringConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBucketIntelligentTieringConfiguration]
$creadListPrec :: ReadPrec [GetBucketIntelligentTieringConfiguration]
readPrec :: ReadPrec GetBucketIntelligentTieringConfiguration
$creadPrec :: ReadPrec GetBucketIntelligentTieringConfiguration
readList :: ReadS [GetBucketIntelligentTieringConfiguration]
$creadList :: ReadS [GetBucketIntelligentTieringConfiguration]
readsPrec :: Int -> ReadS GetBucketIntelligentTieringConfiguration
$creadsPrec :: Int -> ReadS GetBucketIntelligentTieringConfiguration
Prelude.Read, Int -> GetBucketIntelligentTieringConfiguration -> ShowS
[GetBucketIntelligentTieringConfiguration] -> ShowS
GetBucketIntelligentTieringConfiguration -> String
(Int -> GetBucketIntelligentTieringConfiguration -> ShowS)
-> (GetBucketIntelligentTieringConfiguration -> String)
-> ([GetBucketIntelligentTieringConfiguration] -> ShowS)
-> Show GetBucketIntelligentTieringConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBucketIntelligentTieringConfiguration] -> ShowS
$cshowList :: [GetBucketIntelligentTieringConfiguration] -> ShowS
show :: GetBucketIntelligentTieringConfiguration -> String
$cshow :: GetBucketIntelligentTieringConfiguration -> String
showsPrec :: Int -> GetBucketIntelligentTieringConfiguration -> ShowS
$cshowsPrec :: Int -> GetBucketIntelligentTieringConfiguration -> ShowS
Prelude.Show, (forall x.
 GetBucketIntelligentTieringConfiguration
 -> Rep GetBucketIntelligentTieringConfiguration x)
-> (forall x.
    Rep GetBucketIntelligentTieringConfiguration x
    -> GetBucketIntelligentTieringConfiguration)
-> Generic GetBucketIntelligentTieringConfiguration
forall x.
Rep GetBucketIntelligentTieringConfiguration x
-> GetBucketIntelligentTieringConfiguration
forall x.
GetBucketIntelligentTieringConfiguration
-> Rep GetBucketIntelligentTieringConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetBucketIntelligentTieringConfiguration x
-> GetBucketIntelligentTieringConfiguration
$cfrom :: forall x.
GetBucketIntelligentTieringConfiguration
-> Rep GetBucketIntelligentTieringConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'GetBucketIntelligentTieringConfiguration' 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:
--
-- 'bucket', 'getBucketIntelligentTieringConfiguration_bucket' - The name of the Amazon S3 bucket whose configuration you want to modify
-- or retrieve.
--
-- 'id', 'getBucketIntelligentTieringConfiguration_id' - The ID used to identify the S3 Intelligent-Tiering configuration.
newGetBucketIntelligentTieringConfiguration ::
  -- | 'bucket'
  BucketName ->
  -- | 'id'
  Prelude.Text ->
  GetBucketIntelligentTieringConfiguration
newGetBucketIntelligentTieringConfiguration :: BucketName -> Text -> GetBucketIntelligentTieringConfiguration
newGetBucketIntelligentTieringConfiguration
  BucketName
pBucket_
  Text
pId_ =
    GetBucketIntelligentTieringConfiguration' :: BucketName -> Text -> GetBucketIntelligentTieringConfiguration
GetBucketIntelligentTieringConfiguration'
      { $sel:bucket:GetBucketIntelligentTieringConfiguration' :: BucketName
bucket =
          BucketName
pBucket_,
        $sel:id:GetBucketIntelligentTieringConfiguration' :: Text
id = Text
pId_
      }

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

-- | The ID used to identify the S3 Intelligent-Tiering configuration.
getBucketIntelligentTieringConfiguration_id :: Lens.Lens' GetBucketIntelligentTieringConfiguration Prelude.Text
getBucketIntelligentTieringConfiguration_id :: (Text -> f Text)
-> GetBucketIntelligentTieringConfiguration
-> f GetBucketIntelligentTieringConfiguration
getBucketIntelligentTieringConfiguration_id = (GetBucketIntelligentTieringConfiguration -> Text)
-> (GetBucketIntelligentTieringConfiguration
    -> Text -> GetBucketIntelligentTieringConfiguration)
-> Lens
     GetBucketIntelligentTieringConfiguration
     GetBucketIntelligentTieringConfiguration
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBucketIntelligentTieringConfiguration' {Text
id :: Text
$sel:id:GetBucketIntelligentTieringConfiguration' :: GetBucketIntelligentTieringConfiguration -> Text
id} -> Text
id) (\s :: GetBucketIntelligentTieringConfiguration
s@GetBucketIntelligentTieringConfiguration' {} Text
a -> GetBucketIntelligentTieringConfiguration
s {$sel:id:GetBucketIntelligentTieringConfiguration' :: Text
id = Text
a} :: GetBucketIntelligentTieringConfiguration)

instance
  Core.AWSRequest
    GetBucketIntelligentTieringConfiguration
  where
  type
    AWSResponse
      GetBucketIntelligentTieringConfiguration =
      GetBucketIntelligentTieringConfigurationResponse
  request :: GetBucketIntelligentTieringConfiguration
-> Request GetBucketIntelligentTieringConfiguration
request =
    Request GetBucketIntelligentTieringConfiguration
-> Request GetBucketIntelligentTieringConfiguration
forall a. Request a -> Request a
Request.s3vhost
      (Request GetBucketIntelligentTieringConfiguration
 -> Request GetBucketIntelligentTieringConfiguration)
-> (GetBucketIntelligentTieringConfiguration
    -> Request GetBucketIntelligentTieringConfiguration)
-> GetBucketIntelligentTieringConfiguration
-> Request GetBucketIntelligentTieringConfiguration
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Service
-> GetBucketIntelligentTieringConfiguration
-> Request GetBucketIntelligentTieringConfiguration
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetBucketIntelligentTieringConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse GetBucketIntelligentTieringConfiguration)))
response =
    (Int
 -> ResponseHeaders
 -> [Node]
 -> Either
      String (AWSResponse GetBucketIntelligentTieringConfiguration))
-> Logger
-> Service
-> Proxy GetBucketIntelligentTieringConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse GetBucketIntelligentTieringConfiguration)))
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 IntelligentTieringConfiguration
-> Int -> GetBucketIntelligentTieringConfigurationResponse
GetBucketIntelligentTieringConfigurationResponse'
            (Maybe IntelligentTieringConfiguration
 -> Int -> GetBucketIntelligentTieringConfigurationResponse)
-> Either String (Maybe IntelligentTieringConfiguration)
-> Either
     String (Int -> GetBucketIntelligentTieringConfigurationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node] -> Either String (Maybe IntelligentTieringConfiguration)
forall a. FromXML a => [Node] -> Either String a
Core.parseXML [Node]
x)
              Either
  String (Int -> GetBucketIntelligentTieringConfigurationResponse)
-> Either String Int
-> Either String GetBucketIntelligentTieringConfigurationResponse
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
    GetBucketIntelligentTieringConfiguration

instance
  Prelude.NFData
    GetBucketIntelligentTieringConfiguration

instance
  Core.ToHeaders
    GetBucketIntelligentTieringConfiguration
  where
  toHeaders :: GetBucketIntelligentTieringConfiguration -> ResponseHeaders
toHeaders = ResponseHeaders
-> GetBucketIntelligentTieringConfiguration -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance
  Core.ToPath
    GetBucketIntelligentTieringConfiguration
  where
  toPath :: GetBucketIntelligentTieringConfiguration -> ByteString
toPath GetBucketIntelligentTieringConfiguration' {Text
BucketName
id :: Text
bucket :: BucketName
$sel:id:GetBucketIntelligentTieringConfiguration' :: GetBucketIntelligentTieringConfiguration -> Text
$sel:bucket:GetBucketIntelligentTieringConfiguration' :: GetBucketIntelligentTieringConfiguration -> BucketName
..} =
    [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
    GetBucketIntelligentTieringConfiguration
  where
  toQuery :: GetBucketIntelligentTieringConfiguration -> QueryString
toQuery GetBucketIntelligentTieringConfiguration' {Text
BucketName
id :: Text
bucket :: BucketName
$sel:id:GetBucketIntelligentTieringConfiguration' :: GetBucketIntelligentTieringConfiguration -> Text
$sel:bucket:GetBucketIntelligentTieringConfiguration' :: GetBucketIntelligentTieringConfiguration -> BucketName
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"id" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
id, QueryString
"intelligent-tiering"]

-- | /See:/ 'newGetBucketIntelligentTieringConfigurationResponse' smart constructor.
data GetBucketIntelligentTieringConfigurationResponse = GetBucketIntelligentTieringConfigurationResponse'
  { -- | Container for S3 Intelligent-Tiering configuration.
    GetBucketIntelligentTieringConfigurationResponse
-> Maybe IntelligentTieringConfiguration
intelligentTieringConfiguration :: Prelude.Maybe IntelligentTieringConfiguration,
    -- | The response's http status code.
    GetBucketIntelligentTieringConfigurationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetBucketIntelligentTieringConfigurationResponse
-> GetBucketIntelligentTieringConfigurationResponse -> Bool
(GetBucketIntelligentTieringConfigurationResponse
 -> GetBucketIntelligentTieringConfigurationResponse -> Bool)
-> (GetBucketIntelligentTieringConfigurationResponse
    -> GetBucketIntelligentTieringConfigurationResponse -> Bool)
-> Eq GetBucketIntelligentTieringConfigurationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBucketIntelligentTieringConfigurationResponse
-> GetBucketIntelligentTieringConfigurationResponse -> Bool
$c/= :: GetBucketIntelligentTieringConfigurationResponse
-> GetBucketIntelligentTieringConfigurationResponse -> Bool
== :: GetBucketIntelligentTieringConfigurationResponse
-> GetBucketIntelligentTieringConfigurationResponse -> Bool
$c== :: GetBucketIntelligentTieringConfigurationResponse
-> GetBucketIntelligentTieringConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [GetBucketIntelligentTieringConfigurationResponse]
ReadPrec GetBucketIntelligentTieringConfigurationResponse
Int -> ReadS GetBucketIntelligentTieringConfigurationResponse
ReadS [GetBucketIntelligentTieringConfigurationResponse]
(Int -> ReadS GetBucketIntelligentTieringConfigurationResponse)
-> ReadS [GetBucketIntelligentTieringConfigurationResponse]
-> ReadPrec GetBucketIntelligentTieringConfigurationResponse
-> ReadPrec [GetBucketIntelligentTieringConfigurationResponse]
-> Read GetBucketIntelligentTieringConfigurationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBucketIntelligentTieringConfigurationResponse]
$creadListPrec :: ReadPrec [GetBucketIntelligentTieringConfigurationResponse]
readPrec :: ReadPrec GetBucketIntelligentTieringConfigurationResponse
$creadPrec :: ReadPrec GetBucketIntelligentTieringConfigurationResponse
readList :: ReadS [GetBucketIntelligentTieringConfigurationResponse]
$creadList :: ReadS [GetBucketIntelligentTieringConfigurationResponse]
readsPrec :: Int -> ReadS GetBucketIntelligentTieringConfigurationResponse
$creadsPrec :: Int -> ReadS GetBucketIntelligentTieringConfigurationResponse
Prelude.Read, Int -> GetBucketIntelligentTieringConfigurationResponse -> ShowS
[GetBucketIntelligentTieringConfigurationResponse] -> ShowS
GetBucketIntelligentTieringConfigurationResponse -> String
(Int -> GetBucketIntelligentTieringConfigurationResponse -> ShowS)
-> (GetBucketIntelligentTieringConfigurationResponse -> String)
-> ([GetBucketIntelligentTieringConfigurationResponse] -> ShowS)
-> Show GetBucketIntelligentTieringConfigurationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBucketIntelligentTieringConfigurationResponse] -> ShowS
$cshowList :: [GetBucketIntelligentTieringConfigurationResponse] -> ShowS
show :: GetBucketIntelligentTieringConfigurationResponse -> String
$cshow :: GetBucketIntelligentTieringConfigurationResponse -> String
showsPrec :: Int -> GetBucketIntelligentTieringConfigurationResponse -> ShowS
$cshowsPrec :: Int -> GetBucketIntelligentTieringConfigurationResponse -> ShowS
Prelude.Show, (forall x.
 GetBucketIntelligentTieringConfigurationResponse
 -> Rep GetBucketIntelligentTieringConfigurationResponse x)
-> (forall x.
    Rep GetBucketIntelligentTieringConfigurationResponse x
    -> GetBucketIntelligentTieringConfigurationResponse)
-> Generic GetBucketIntelligentTieringConfigurationResponse
forall x.
Rep GetBucketIntelligentTieringConfigurationResponse x
-> GetBucketIntelligentTieringConfigurationResponse
forall x.
GetBucketIntelligentTieringConfigurationResponse
-> Rep GetBucketIntelligentTieringConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetBucketIntelligentTieringConfigurationResponse x
-> GetBucketIntelligentTieringConfigurationResponse
$cfrom :: forall x.
GetBucketIntelligentTieringConfigurationResponse
-> Rep GetBucketIntelligentTieringConfigurationResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetBucketIntelligentTieringConfigurationResponse' 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:
--
-- 'intelligentTieringConfiguration', 'getBucketIntelligentTieringConfigurationResponse_intelligentTieringConfiguration' - Container for S3 Intelligent-Tiering configuration.
--
-- 'httpStatus', 'getBucketIntelligentTieringConfigurationResponse_httpStatus' - The response's http status code.
newGetBucketIntelligentTieringConfigurationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetBucketIntelligentTieringConfigurationResponse
newGetBucketIntelligentTieringConfigurationResponse :: Int -> GetBucketIntelligentTieringConfigurationResponse
newGetBucketIntelligentTieringConfigurationResponse
  Int
pHttpStatus_ =
    GetBucketIntelligentTieringConfigurationResponse' :: Maybe IntelligentTieringConfiguration
-> Int -> GetBucketIntelligentTieringConfigurationResponse
GetBucketIntelligentTieringConfigurationResponse'
      { $sel:intelligentTieringConfiguration:GetBucketIntelligentTieringConfigurationResponse' :: Maybe IntelligentTieringConfiguration
intelligentTieringConfiguration =
          Maybe IntelligentTieringConfiguration
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetBucketIntelligentTieringConfigurationResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | Container for S3 Intelligent-Tiering configuration.
getBucketIntelligentTieringConfigurationResponse_intelligentTieringConfiguration :: Lens.Lens' GetBucketIntelligentTieringConfigurationResponse (Prelude.Maybe IntelligentTieringConfiguration)
getBucketIntelligentTieringConfigurationResponse_intelligentTieringConfiguration :: (Maybe IntelligentTieringConfiguration
 -> f (Maybe IntelligentTieringConfiguration))
-> GetBucketIntelligentTieringConfigurationResponse
-> f GetBucketIntelligentTieringConfigurationResponse
getBucketIntelligentTieringConfigurationResponse_intelligentTieringConfiguration = (GetBucketIntelligentTieringConfigurationResponse
 -> Maybe IntelligentTieringConfiguration)
-> (GetBucketIntelligentTieringConfigurationResponse
    -> Maybe IntelligentTieringConfiguration
    -> GetBucketIntelligentTieringConfigurationResponse)
-> Lens
     GetBucketIntelligentTieringConfigurationResponse
     GetBucketIntelligentTieringConfigurationResponse
     (Maybe IntelligentTieringConfiguration)
     (Maybe IntelligentTieringConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBucketIntelligentTieringConfigurationResponse' {Maybe IntelligentTieringConfiguration
intelligentTieringConfiguration :: Maybe IntelligentTieringConfiguration
$sel:intelligentTieringConfiguration:GetBucketIntelligentTieringConfigurationResponse' :: GetBucketIntelligentTieringConfigurationResponse
-> Maybe IntelligentTieringConfiguration
intelligentTieringConfiguration} -> Maybe IntelligentTieringConfiguration
intelligentTieringConfiguration) (\s :: GetBucketIntelligentTieringConfigurationResponse
s@GetBucketIntelligentTieringConfigurationResponse' {} Maybe IntelligentTieringConfiguration
a -> GetBucketIntelligentTieringConfigurationResponse
s {$sel:intelligentTieringConfiguration:GetBucketIntelligentTieringConfigurationResponse' :: Maybe IntelligentTieringConfiguration
intelligentTieringConfiguration = Maybe IntelligentTieringConfiguration
a} :: GetBucketIntelligentTieringConfigurationResponse)

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

instance
  Prelude.NFData
    GetBucketIntelligentTieringConfigurationResponse