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

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

-- |
-- Module      : Amazonka.SecurityHub.Types.AwsS3BucketDetails
-- 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)
module Amazonka.SecurityHub.Types.AwsS3BucketDetails where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SecurityHub.Types.AwsS3AccountPublicAccessBlockDetails
import Amazonka.SecurityHub.Types.AwsS3BucketBucketLifecycleConfigurationDetails
import Amazonka.SecurityHub.Types.AwsS3BucketLoggingConfiguration
import Amazonka.SecurityHub.Types.AwsS3BucketNotificationConfiguration
import Amazonka.SecurityHub.Types.AwsS3BucketServerSideEncryptionConfiguration
import Amazonka.SecurityHub.Types.AwsS3BucketWebsiteConfiguration

-- | The details of an Amazon S3 bucket.
--
-- /See:/ 'newAwsS3BucketDetails' smart constructor.
data AwsS3BucketDetails = AwsS3BucketDetails'
  { -- | Indicates when the S3 bucket was created.
    --
    -- Uses the @date-time@ format specified in
    -- <https://tools.ietf.org/html/rfc3339#section-5.6 RFC 3339 section 5.6, Internet Date\/Time Format>.
    -- The value cannot contain spaces. For example,
    -- @2020-03-22T13:22:13.933Z@.
    AwsS3BucketDetails -> Maybe Text
createdAt :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Web Services account identifier of the account that owns the
    -- S3 bucket.
    AwsS3BucketDetails -> Maybe Text
ownerAccountId :: Prelude.Maybe Prelude.Text,
    -- | The logging configuration for the S3 bucket.
    AwsS3BucketDetails -> Maybe AwsS3BucketLoggingConfiguration
bucketLoggingConfiguration :: Prelude.Maybe AwsS3BucketLoggingConfiguration,
    -- | The display name of the owner of the S3 bucket.
    AwsS3BucketDetails -> Maybe Text
ownerName :: Prelude.Maybe Prelude.Text,
    -- | The access control list for the S3 bucket.
    AwsS3BucketDetails -> Maybe Text
accessControlList :: Prelude.Maybe Prelude.Text,
    -- | The canonical user ID of the owner of the S3 bucket.
    AwsS3BucketDetails -> Maybe Text
ownerId :: Prelude.Maybe Prelude.Text,
    -- | Provides information about the Amazon S3 Public Access Block
    -- configuration for the S3 bucket.
    AwsS3BucketDetails -> Maybe AwsS3AccountPublicAccessBlockDetails
publicAccessBlockConfiguration :: Prelude.Maybe AwsS3AccountPublicAccessBlockDetails,
    -- | The website configuration parameters for the S3 bucket.
    AwsS3BucketDetails -> Maybe AwsS3BucketWebsiteConfiguration
bucketWebsiteConfiguration :: Prelude.Maybe AwsS3BucketWebsiteConfiguration,
    -- | The lifecycle configuration for objects in the S3 bucket.
    AwsS3BucketDetails
-> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
bucketLifecycleConfiguration :: Prelude.Maybe AwsS3BucketBucketLifecycleConfigurationDetails,
    -- | The notification configuration for the S3 bucket.
    AwsS3BucketDetails -> Maybe AwsS3BucketNotificationConfiguration
bucketNotificationConfiguration :: Prelude.Maybe AwsS3BucketNotificationConfiguration,
    -- | The encryption rules that are applied to the S3 bucket.
    AwsS3BucketDetails
-> Maybe AwsS3BucketServerSideEncryptionConfiguration
serverSideEncryptionConfiguration :: Prelude.Maybe AwsS3BucketServerSideEncryptionConfiguration
  }
  deriving (AwsS3BucketDetails -> AwsS3BucketDetails -> Bool
(AwsS3BucketDetails -> AwsS3BucketDetails -> Bool)
-> (AwsS3BucketDetails -> AwsS3BucketDetails -> Bool)
-> Eq AwsS3BucketDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsS3BucketDetails -> AwsS3BucketDetails -> Bool
$c/= :: AwsS3BucketDetails -> AwsS3BucketDetails -> Bool
== :: AwsS3BucketDetails -> AwsS3BucketDetails -> Bool
$c== :: AwsS3BucketDetails -> AwsS3BucketDetails -> Bool
Prelude.Eq, ReadPrec [AwsS3BucketDetails]
ReadPrec AwsS3BucketDetails
Int -> ReadS AwsS3BucketDetails
ReadS [AwsS3BucketDetails]
(Int -> ReadS AwsS3BucketDetails)
-> ReadS [AwsS3BucketDetails]
-> ReadPrec AwsS3BucketDetails
-> ReadPrec [AwsS3BucketDetails]
-> Read AwsS3BucketDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsS3BucketDetails]
$creadListPrec :: ReadPrec [AwsS3BucketDetails]
readPrec :: ReadPrec AwsS3BucketDetails
$creadPrec :: ReadPrec AwsS3BucketDetails
readList :: ReadS [AwsS3BucketDetails]
$creadList :: ReadS [AwsS3BucketDetails]
readsPrec :: Int -> ReadS AwsS3BucketDetails
$creadsPrec :: Int -> ReadS AwsS3BucketDetails
Prelude.Read, Int -> AwsS3BucketDetails -> ShowS
[AwsS3BucketDetails] -> ShowS
AwsS3BucketDetails -> String
(Int -> AwsS3BucketDetails -> ShowS)
-> (AwsS3BucketDetails -> String)
-> ([AwsS3BucketDetails] -> ShowS)
-> Show AwsS3BucketDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsS3BucketDetails] -> ShowS
$cshowList :: [AwsS3BucketDetails] -> ShowS
show :: AwsS3BucketDetails -> String
$cshow :: AwsS3BucketDetails -> String
showsPrec :: Int -> AwsS3BucketDetails -> ShowS
$cshowsPrec :: Int -> AwsS3BucketDetails -> ShowS
Prelude.Show, (forall x. AwsS3BucketDetails -> Rep AwsS3BucketDetails x)
-> (forall x. Rep AwsS3BucketDetails x -> AwsS3BucketDetails)
-> Generic AwsS3BucketDetails
forall x. Rep AwsS3BucketDetails x -> AwsS3BucketDetails
forall x. AwsS3BucketDetails -> Rep AwsS3BucketDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AwsS3BucketDetails x -> AwsS3BucketDetails
$cfrom :: forall x. AwsS3BucketDetails -> Rep AwsS3BucketDetails x
Prelude.Generic)

-- |
-- Create a value of 'AwsS3BucketDetails' 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:
--
-- 'createdAt', 'awsS3BucketDetails_createdAt' - Indicates when the S3 bucket was created.
--
-- Uses the @date-time@ format specified in
-- <https://tools.ietf.org/html/rfc3339#section-5.6 RFC 3339 section 5.6, Internet Date\/Time Format>.
-- The value cannot contain spaces. For example,
-- @2020-03-22T13:22:13.933Z@.
--
-- 'ownerAccountId', 'awsS3BucketDetails_ownerAccountId' - The Amazon Web Services account identifier of the account that owns the
-- S3 bucket.
--
-- 'bucketLoggingConfiguration', 'awsS3BucketDetails_bucketLoggingConfiguration' - The logging configuration for the S3 bucket.
--
-- 'ownerName', 'awsS3BucketDetails_ownerName' - The display name of the owner of the S3 bucket.
--
-- 'accessControlList', 'awsS3BucketDetails_accessControlList' - The access control list for the S3 bucket.
--
-- 'ownerId', 'awsS3BucketDetails_ownerId' - The canonical user ID of the owner of the S3 bucket.
--
-- 'publicAccessBlockConfiguration', 'awsS3BucketDetails_publicAccessBlockConfiguration' - Provides information about the Amazon S3 Public Access Block
-- configuration for the S3 bucket.
--
-- 'bucketWebsiteConfiguration', 'awsS3BucketDetails_bucketWebsiteConfiguration' - The website configuration parameters for the S3 bucket.
--
-- 'bucketLifecycleConfiguration', 'awsS3BucketDetails_bucketLifecycleConfiguration' - The lifecycle configuration for objects in the S3 bucket.
--
-- 'bucketNotificationConfiguration', 'awsS3BucketDetails_bucketNotificationConfiguration' - The notification configuration for the S3 bucket.
--
-- 'serverSideEncryptionConfiguration', 'awsS3BucketDetails_serverSideEncryptionConfiguration' - The encryption rules that are applied to the S3 bucket.
newAwsS3BucketDetails ::
  AwsS3BucketDetails
newAwsS3BucketDetails :: AwsS3BucketDetails
newAwsS3BucketDetails =
  AwsS3BucketDetails' :: Maybe Text
-> Maybe Text
-> Maybe AwsS3BucketLoggingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AwsS3AccountPublicAccessBlockDetails
-> Maybe AwsS3BucketWebsiteConfiguration
-> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
-> Maybe AwsS3BucketNotificationConfiguration
-> Maybe AwsS3BucketServerSideEncryptionConfiguration
-> AwsS3BucketDetails
AwsS3BucketDetails'
    { $sel:createdAt:AwsS3BucketDetails' :: Maybe Text
createdAt = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:ownerAccountId:AwsS3BucketDetails' :: Maybe Text
ownerAccountId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:bucketLoggingConfiguration:AwsS3BucketDetails' :: Maybe AwsS3BucketLoggingConfiguration
bucketLoggingConfiguration = Maybe AwsS3BucketLoggingConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:ownerName:AwsS3BucketDetails' :: Maybe Text
ownerName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:accessControlList:AwsS3BucketDetails' :: Maybe Text
accessControlList = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:ownerId:AwsS3BucketDetails' :: Maybe Text
ownerId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:publicAccessBlockConfiguration:AwsS3BucketDetails' :: Maybe AwsS3AccountPublicAccessBlockDetails
publicAccessBlockConfiguration = Maybe AwsS3AccountPublicAccessBlockDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:bucketWebsiteConfiguration:AwsS3BucketDetails' :: Maybe AwsS3BucketWebsiteConfiguration
bucketWebsiteConfiguration = Maybe AwsS3BucketWebsiteConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:bucketLifecycleConfiguration:AwsS3BucketDetails' :: Maybe AwsS3BucketBucketLifecycleConfigurationDetails
bucketLifecycleConfiguration = Maybe AwsS3BucketBucketLifecycleConfigurationDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:bucketNotificationConfiguration:AwsS3BucketDetails' :: Maybe AwsS3BucketNotificationConfiguration
bucketNotificationConfiguration = Maybe AwsS3BucketNotificationConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:serverSideEncryptionConfiguration:AwsS3BucketDetails' :: Maybe AwsS3BucketServerSideEncryptionConfiguration
serverSideEncryptionConfiguration = Maybe AwsS3BucketServerSideEncryptionConfiguration
forall a. Maybe a
Prelude.Nothing
    }

-- | Indicates when the S3 bucket was created.
--
-- Uses the @date-time@ format specified in
-- <https://tools.ietf.org/html/rfc3339#section-5.6 RFC 3339 section 5.6, Internet Date\/Time Format>.
-- The value cannot contain spaces. For example,
-- @2020-03-22T13:22:13.933Z@.
awsS3BucketDetails_createdAt :: Lens.Lens' AwsS3BucketDetails (Prelude.Maybe Prelude.Text)
awsS3BucketDetails_createdAt :: (Maybe Text -> f (Maybe Text))
-> AwsS3BucketDetails -> f AwsS3BucketDetails
awsS3BucketDetails_createdAt = (AwsS3BucketDetails -> Maybe Text)
-> (AwsS3BucketDetails -> Maybe Text -> AwsS3BucketDetails)
-> Lens
     AwsS3BucketDetails AwsS3BucketDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsS3BucketDetails' {Maybe Text
createdAt :: Maybe Text
$sel:createdAt:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe Text
createdAt} -> Maybe Text
createdAt) (\s :: AwsS3BucketDetails
s@AwsS3BucketDetails' {} Maybe Text
a -> AwsS3BucketDetails
s {$sel:createdAt:AwsS3BucketDetails' :: Maybe Text
createdAt = Maybe Text
a} :: AwsS3BucketDetails)

-- | The Amazon Web Services account identifier of the account that owns the
-- S3 bucket.
awsS3BucketDetails_ownerAccountId :: Lens.Lens' AwsS3BucketDetails (Prelude.Maybe Prelude.Text)
awsS3BucketDetails_ownerAccountId :: (Maybe Text -> f (Maybe Text))
-> AwsS3BucketDetails -> f AwsS3BucketDetails
awsS3BucketDetails_ownerAccountId = (AwsS3BucketDetails -> Maybe Text)
-> (AwsS3BucketDetails -> Maybe Text -> AwsS3BucketDetails)
-> Lens
     AwsS3BucketDetails AwsS3BucketDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsS3BucketDetails' {Maybe Text
ownerAccountId :: Maybe Text
$sel:ownerAccountId:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe Text
ownerAccountId} -> Maybe Text
ownerAccountId) (\s :: AwsS3BucketDetails
s@AwsS3BucketDetails' {} Maybe Text
a -> AwsS3BucketDetails
s {$sel:ownerAccountId:AwsS3BucketDetails' :: Maybe Text
ownerAccountId = Maybe Text
a} :: AwsS3BucketDetails)

-- | The logging configuration for the S3 bucket.
awsS3BucketDetails_bucketLoggingConfiguration :: Lens.Lens' AwsS3BucketDetails (Prelude.Maybe AwsS3BucketLoggingConfiguration)
awsS3BucketDetails_bucketLoggingConfiguration :: (Maybe AwsS3BucketLoggingConfiguration
 -> f (Maybe AwsS3BucketLoggingConfiguration))
-> AwsS3BucketDetails -> f AwsS3BucketDetails
awsS3BucketDetails_bucketLoggingConfiguration = (AwsS3BucketDetails -> Maybe AwsS3BucketLoggingConfiguration)
-> (AwsS3BucketDetails
    -> Maybe AwsS3BucketLoggingConfiguration -> AwsS3BucketDetails)
-> Lens
     AwsS3BucketDetails
     AwsS3BucketDetails
     (Maybe AwsS3BucketLoggingConfiguration)
     (Maybe AwsS3BucketLoggingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsS3BucketDetails' {Maybe AwsS3BucketLoggingConfiguration
bucketLoggingConfiguration :: Maybe AwsS3BucketLoggingConfiguration
$sel:bucketLoggingConfiguration:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe AwsS3BucketLoggingConfiguration
bucketLoggingConfiguration} -> Maybe AwsS3BucketLoggingConfiguration
bucketLoggingConfiguration) (\s :: AwsS3BucketDetails
s@AwsS3BucketDetails' {} Maybe AwsS3BucketLoggingConfiguration
a -> AwsS3BucketDetails
s {$sel:bucketLoggingConfiguration:AwsS3BucketDetails' :: Maybe AwsS3BucketLoggingConfiguration
bucketLoggingConfiguration = Maybe AwsS3BucketLoggingConfiguration
a} :: AwsS3BucketDetails)

-- | The display name of the owner of the S3 bucket.
awsS3BucketDetails_ownerName :: Lens.Lens' AwsS3BucketDetails (Prelude.Maybe Prelude.Text)
awsS3BucketDetails_ownerName :: (Maybe Text -> f (Maybe Text))
-> AwsS3BucketDetails -> f AwsS3BucketDetails
awsS3BucketDetails_ownerName = (AwsS3BucketDetails -> Maybe Text)
-> (AwsS3BucketDetails -> Maybe Text -> AwsS3BucketDetails)
-> Lens
     AwsS3BucketDetails AwsS3BucketDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsS3BucketDetails' {Maybe Text
ownerName :: Maybe Text
$sel:ownerName:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe Text
ownerName} -> Maybe Text
ownerName) (\s :: AwsS3BucketDetails
s@AwsS3BucketDetails' {} Maybe Text
a -> AwsS3BucketDetails
s {$sel:ownerName:AwsS3BucketDetails' :: Maybe Text
ownerName = Maybe Text
a} :: AwsS3BucketDetails)

-- | The access control list for the S3 bucket.
awsS3BucketDetails_accessControlList :: Lens.Lens' AwsS3BucketDetails (Prelude.Maybe Prelude.Text)
awsS3BucketDetails_accessControlList :: (Maybe Text -> f (Maybe Text))
-> AwsS3BucketDetails -> f AwsS3BucketDetails
awsS3BucketDetails_accessControlList = (AwsS3BucketDetails -> Maybe Text)
-> (AwsS3BucketDetails -> Maybe Text -> AwsS3BucketDetails)
-> Lens
     AwsS3BucketDetails AwsS3BucketDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsS3BucketDetails' {Maybe Text
accessControlList :: Maybe Text
$sel:accessControlList:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe Text
accessControlList} -> Maybe Text
accessControlList) (\s :: AwsS3BucketDetails
s@AwsS3BucketDetails' {} Maybe Text
a -> AwsS3BucketDetails
s {$sel:accessControlList:AwsS3BucketDetails' :: Maybe Text
accessControlList = Maybe Text
a} :: AwsS3BucketDetails)

-- | The canonical user ID of the owner of the S3 bucket.
awsS3BucketDetails_ownerId :: Lens.Lens' AwsS3BucketDetails (Prelude.Maybe Prelude.Text)
awsS3BucketDetails_ownerId :: (Maybe Text -> f (Maybe Text))
-> AwsS3BucketDetails -> f AwsS3BucketDetails
awsS3BucketDetails_ownerId = (AwsS3BucketDetails -> Maybe Text)
-> (AwsS3BucketDetails -> Maybe Text -> AwsS3BucketDetails)
-> Lens
     AwsS3BucketDetails AwsS3BucketDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsS3BucketDetails' {Maybe Text
ownerId :: Maybe Text
$sel:ownerId:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe Text
ownerId} -> Maybe Text
ownerId) (\s :: AwsS3BucketDetails
s@AwsS3BucketDetails' {} Maybe Text
a -> AwsS3BucketDetails
s {$sel:ownerId:AwsS3BucketDetails' :: Maybe Text
ownerId = Maybe Text
a} :: AwsS3BucketDetails)

-- | Provides information about the Amazon S3 Public Access Block
-- configuration for the S3 bucket.
awsS3BucketDetails_publicAccessBlockConfiguration :: Lens.Lens' AwsS3BucketDetails (Prelude.Maybe AwsS3AccountPublicAccessBlockDetails)
awsS3BucketDetails_publicAccessBlockConfiguration :: (Maybe AwsS3AccountPublicAccessBlockDetails
 -> f (Maybe AwsS3AccountPublicAccessBlockDetails))
-> AwsS3BucketDetails -> f AwsS3BucketDetails
awsS3BucketDetails_publicAccessBlockConfiguration = (AwsS3BucketDetails -> Maybe AwsS3AccountPublicAccessBlockDetails)
-> (AwsS3BucketDetails
    -> Maybe AwsS3AccountPublicAccessBlockDetails
    -> AwsS3BucketDetails)
-> Lens
     AwsS3BucketDetails
     AwsS3BucketDetails
     (Maybe AwsS3AccountPublicAccessBlockDetails)
     (Maybe AwsS3AccountPublicAccessBlockDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsS3BucketDetails' {Maybe AwsS3AccountPublicAccessBlockDetails
publicAccessBlockConfiguration :: Maybe AwsS3AccountPublicAccessBlockDetails
$sel:publicAccessBlockConfiguration:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe AwsS3AccountPublicAccessBlockDetails
publicAccessBlockConfiguration} -> Maybe AwsS3AccountPublicAccessBlockDetails
publicAccessBlockConfiguration) (\s :: AwsS3BucketDetails
s@AwsS3BucketDetails' {} Maybe AwsS3AccountPublicAccessBlockDetails
a -> AwsS3BucketDetails
s {$sel:publicAccessBlockConfiguration:AwsS3BucketDetails' :: Maybe AwsS3AccountPublicAccessBlockDetails
publicAccessBlockConfiguration = Maybe AwsS3AccountPublicAccessBlockDetails
a} :: AwsS3BucketDetails)

-- | The website configuration parameters for the S3 bucket.
awsS3BucketDetails_bucketWebsiteConfiguration :: Lens.Lens' AwsS3BucketDetails (Prelude.Maybe AwsS3BucketWebsiteConfiguration)
awsS3BucketDetails_bucketWebsiteConfiguration :: (Maybe AwsS3BucketWebsiteConfiguration
 -> f (Maybe AwsS3BucketWebsiteConfiguration))
-> AwsS3BucketDetails -> f AwsS3BucketDetails
awsS3BucketDetails_bucketWebsiteConfiguration = (AwsS3BucketDetails -> Maybe AwsS3BucketWebsiteConfiguration)
-> (AwsS3BucketDetails
    -> Maybe AwsS3BucketWebsiteConfiguration -> AwsS3BucketDetails)
-> Lens
     AwsS3BucketDetails
     AwsS3BucketDetails
     (Maybe AwsS3BucketWebsiteConfiguration)
     (Maybe AwsS3BucketWebsiteConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsS3BucketDetails' {Maybe AwsS3BucketWebsiteConfiguration
bucketWebsiteConfiguration :: Maybe AwsS3BucketWebsiteConfiguration
$sel:bucketWebsiteConfiguration:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe AwsS3BucketWebsiteConfiguration
bucketWebsiteConfiguration} -> Maybe AwsS3BucketWebsiteConfiguration
bucketWebsiteConfiguration) (\s :: AwsS3BucketDetails
s@AwsS3BucketDetails' {} Maybe AwsS3BucketWebsiteConfiguration
a -> AwsS3BucketDetails
s {$sel:bucketWebsiteConfiguration:AwsS3BucketDetails' :: Maybe AwsS3BucketWebsiteConfiguration
bucketWebsiteConfiguration = Maybe AwsS3BucketWebsiteConfiguration
a} :: AwsS3BucketDetails)

-- | The lifecycle configuration for objects in the S3 bucket.
awsS3BucketDetails_bucketLifecycleConfiguration :: Lens.Lens' AwsS3BucketDetails (Prelude.Maybe AwsS3BucketBucketLifecycleConfigurationDetails)
awsS3BucketDetails_bucketLifecycleConfiguration :: (Maybe AwsS3BucketBucketLifecycleConfigurationDetails
 -> f (Maybe AwsS3BucketBucketLifecycleConfigurationDetails))
-> AwsS3BucketDetails -> f AwsS3BucketDetails
awsS3BucketDetails_bucketLifecycleConfiguration = (AwsS3BucketDetails
 -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails)
-> (AwsS3BucketDetails
    -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
    -> AwsS3BucketDetails)
-> Lens
     AwsS3BucketDetails
     AwsS3BucketDetails
     (Maybe AwsS3BucketBucketLifecycleConfigurationDetails)
     (Maybe AwsS3BucketBucketLifecycleConfigurationDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsS3BucketDetails' {Maybe AwsS3BucketBucketLifecycleConfigurationDetails
bucketLifecycleConfiguration :: Maybe AwsS3BucketBucketLifecycleConfigurationDetails
$sel:bucketLifecycleConfiguration:AwsS3BucketDetails' :: AwsS3BucketDetails
-> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
bucketLifecycleConfiguration} -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
bucketLifecycleConfiguration) (\s :: AwsS3BucketDetails
s@AwsS3BucketDetails' {} Maybe AwsS3BucketBucketLifecycleConfigurationDetails
a -> AwsS3BucketDetails
s {$sel:bucketLifecycleConfiguration:AwsS3BucketDetails' :: Maybe AwsS3BucketBucketLifecycleConfigurationDetails
bucketLifecycleConfiguration = Maybe AwsS3BucketBucketLifecycleConfigurationDetails
a} :: AwsS3BucketDetails)

-- | The notification configuration for the S3 bucket.
awsS3BucketDetails_bucketNotificationConfiguration :: Lens.Lens' AwsS3BucketDetails (Prelude.Maybe AwsS3BucketNotificationConfiguration)
awsS3BucketDetails_bucketNotificationConfiguration :: (Maybe AwsS3BucketNotificationConfiguration
 -> f (Maybe AwsS3BucketNotificationConfiguration))
-> AwsS3BucketDetails -> f AwsS3BucketDetails
awsS3BucketDetails_bucketNotificationConfiguration = (AwsS3BucketDetails -> Maybe AwsS3BucketNotificationConfiguration)
-> (AwsS3BucketDetails
    -> Maybe AwsS3BucketNotificationConfiguration
    -> AwsS3BucketDetails)
-> Lens
     AwsS3BucketDetails
     AwsS3BucketDetails
     (Maybe AwsS3BucketNotificationConfiguration)
     (Maybe AwsS3BucketNotificationConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsS3BucketDetails' {Maybe AwsS3BucketNotificationConfiguration
bucketNotificationConfiguration :: Maybe AwsS3BucketNotificationConfiguration
$sel:bucketNotificationConfiguration:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe AwsS3BucketNotificationConfiguration
bucketNotificationConfiguration} -> Maybe AwsS3BucketNotificationConfiguration
bucketNotificationConfiguration) (\s :: AwsS3BucketDetails
s@AwsS3BucketDetails' {} Maybe AwsS3BucketNotificationConfiguration
a -> AwsS3BucketDetails
s {$sel:bucketNotificationConfiguration:AwsS3BucketDetails' :: Maybe AwsS3BucketNotificationConfiguration
bucketNotificationConfiguration = Maybe AwsS3BucketNotificationConfiguration
a} :: AwsS3BucketDetails)

-- | The encryption rules that are applied to the S3 bucket.
awsS3BucketDetails_serverSideEncryptionConfiguration :: Lens.Lens' AwsS3BucketDetails (Prelude.Maybe AwsS3BucketServerSideEncryptionConfiguration)
awsS3BucketDetails_serverSideEncryptionConfiguration :: (Maybe AwsS3BucketServerSideEncryptionConfiguration
 -> f (Maybe AwsS3BucketServerSideEncryptionConfiguration))
-> AwsS3BucketDetails -> f AwsS3BucketDetails
awsS3BucketDetails_serverSideEncryptionConfiguration = (AwsS3BucketDetails
 -> Maybe AwsS3BucketServerSideEncryptionConfiguration)
-> (AwsS3BucketDetails
    -> Maybe AwsS3BucketServerSideEncryptionConfiguration
    -> AwsS3BucketDetails)
-> Lens
     AwsS3BucketDetails
     AwsS3BucketDetails
     (Maybe AwsS3BucketServerSideEncryptionConfiguration)
     (Maybe AwsS3BucketServerSideEncryptionConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsS3BucketDetails' {Maybe AwsS3BucketServerSideEncryptionConfiguration
serverSideEncryptionConfiguration :: Maybe AwsS3BucketServerSideEncryptionConfiguration
$sel:serverSideEncryptionConfiguration:AwsS3BucketDetails' :: AwsS3BucketDetails
-> Maybe AwsS3BucketServerSideEncryptionConfiguration
serverSideEncryptionConfiguration} -> Maybe AwsS3BucketServerSideEncryptionConfiguration
serverSideEncryptionConfiguration) (\s :: AwsS3BucketDetails
s@AwsS3BucketDetails' {} Maybe AwsS3BucketServerSideEncryptionConfiguration
a -> AwsS3BucketDetails
s {$sel:serverSideEncryptionConfiguration:AwsS3BucketDetails' :: Maybe AwsS3BucketServerSideEncryptionConfiguration
serverSideEncryptionConfiguration = Maybe AwsS3BucketServerSideEncryptionConfiguration
a} :: AwsS3BucketDetails)

instance Core.FromJSON AwsS3BucketDetails where
  parseJSON :: Value -> Parser AwsS3BucketDetails
parseJSON =
    String
-> (Object -> Parser AwsS3BucketDetails)
-> Value
-> Parser AwsS3BucketDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"AwsS3BucketDetails"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe AwsS3BucketLoggingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AwsS3AccountPublicAccessBlockDetails
-> Maybe AwsS3BucketWebsiteConfiguration
-> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
-> Maybe AwsS3BucketNotificationConfiguration
-> Maybe AwsS3BucketServerSideEncryptionConfiguration
-> AwsS3BucketDetails
AwsS3BucketDetails'
            (Maybe Text
 -> Maybe Text
 -> Maybe AwsS3BucketLoggingConfiguration
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe AwsS3AccountPublicAccessBlockDetails
 -> Maybe AwsS3BucketWebsiteConfiguration
 -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
 -> Maybe AwsS3BucketNotificationConfiguration
 -> Maybe AwsS3BucketServerSideEncryptionConfiguration
 -> AwsS3BucketDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe AwsS3BucketLoggingConfiguration
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe AwsS3AccountPublicAccessBlockDetails
      -> Maybe AwsS3BucketWebsiteConfiguration
      -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
      -> Maybe AwsS3BucketNotificationConfiguration
      -> Maybe AwsS3BucketServerSideEncryptionConfiguration
      -> AwsS3BucketDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreatedAt")
            Parser
  (Maybe Text
   -> Maybe AwsS3BucketLoggingConfiguration
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe AwsS3AccountPublicAccessBlockDetails
   -> Maybe AwsS3BucketWebsiteConfiguration
   -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
   -> Maybe AwsS3BucketNotificationConfiguration
   -> Maybe AwsS3BucketServerSideEncryptionConfiguration
   -> AwsS3BucketDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe AwsS3BucketLoggingConfiguration
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe AwsS3AccountPublicAccessBlockDetails
      -> Maybe AwsS3BucketWebsiteConfiguration
      -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
      -> Maybe AwsS3BucketNotificationConfiguration
      -> Maybe AwsS3BucketServerSideEncryptionConfiguration
      -> AwsS3BucketDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OwnerAccountId")
            Parser
  (Maybe AwsS3BucketLoggingConfiguration
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe AwsS3AccountPublicAccessBlockDetails
   -> Maybe AwsS3BucketWebsiteConfiguration
   -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
   -> Maybe AwsS3BucketNotificationConfiguration
   -> Maybe AwsS3BucketServerSideEncryptionConfiguration
   -> AwsS3BucketDetails)
-> Parser (Maybe AwsS3BucketLoggingConfiguration)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe AwsS3AccountPublicAccessBlockDetails
      -> Maybe AwsS3BucketWebsiteConfiguration
      -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
      -> Maybe AwsS3BucketNotificationConfiguration
      -> Maybe AwsS3BucketServerSideEncryptionConfiguration
      -> AwsS3BucketDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AwsS3BucketLoggingConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"BucketLoggingConfiguration")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe AwsS3AccountPublicAccessBlockDetails
   -> Maybe AwsS3BucketWebsiteConfiguration
   -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
   -> Maybe AwsS3BucketNotificationConfiguration
   -> Maybe AwsS3BucketServerSideEncryptionConfiguration
   -> AwsS3BucketDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe AwsS3AccountPublicAccessBlockDetails
      -> Maybe AwsS3BucketWebsiteConfiguration
      -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
      -> Maybe AwsS3BucketNotificationConfiguration
      -> Maybe AwsS3BucketServerSideEncryptionConfiguration
      -> AwsS3BucketDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OwnerName")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe AwsS3AccountPublicAccessBlockDetails
   -> Maybe AwsS3BucketWebsiteConfiguration
   -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
   -> Maybe AwsS3BucketNotificationConfiguration
   -> Maybe AwsS3BucketServerSideEncryptionConfiguration
   -> AwsS3BucketDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe AwsS3AccountPublicAccessBlockDetails
      -> Maybe AwsS3BucketWebsiteConfiguration
      -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
      -> Maybe AwsS3BucketNotificationConfiguration
      -> Maybe AwsS3BucketServerSideEncryptionConfiguration
      -> AwsS3BucketDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AccessControlList")
            Parser
  (Maybe Text
   -> Maybe AwsS3AccountPublicAccessBlockDetails
   -> Maybe AwsS3BucketWebsiteConfiguration
   -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
   -> Maybe AwsS3BucketNotificationConfiguration
   -> Maybe AwsS3BucketServerSideEncryptionConfiguration
   -> AwsS3BucketDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe AwsS3AccountPublicAccessBlockDetails
      -> Maybe AwsS3BucketWebsiteConfiguration
      -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
      -> Maybe AwsS3BucketNotificationConfiguration
      -> Maybe AwsS3BucketServerSideEncryptionConfiguration
      -> AwsS3BucketDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OwnerId")
            Parser
  (Maybe AwsS3AccountPublicAccessBlockDetails
   -> Maybe AwsS3BucketWebsiteConfiguration
   -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
   -> Maybe AwsS3BucketNotificationConfiguration
   -> Maybe AwsS3BucketServerSideEncryptionConfiguration
   -> AwsS3BucketDetails)
-> Parser (Maybe AwsS3AccountPublicAccessBlockDetails)
-> Parser
     (Maybe AwsS3BucketWebsiteConfiguration
      -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
      -> Maybe AwsS3BucketNotificationConfiguration
      -> Maybe AwsS3BucketServerSideEncryptionConfiguration
      -> AwsS3BucketDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe AwsS3AccountPublicAccessBlockDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PublicAccessBlockConfiguration")
            Parser
  (Maybe AwsS3BucketWebsiteConfiguration
   -> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
   -> Maybe AwsS3BucketNotificationConfiguration
   -> Maybe AwsS3BucketServerSideEncryptionConfiguration
   -> AwsS3BucketDetails)
-> Parser (Maybe AwsS3BucketWebsiteConfiguration)
-> Parser
     (Maybe AwsS3BucketBucketLifecycleConfigurationDetails
      -> Maybe AwsS3BucketNotificationConfiguration
      -> Maybe AwsS3BucketServerSideEncryptionConfiguration
      -> AwsS3BucketDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AwsS3BucketWebsiteConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"BucketWebsiteConfiguration")
            Parser
  (Maybe AwsS3BucketBucketLifecycleConfigurationDetails
   -> Maybe AwsS3BucketNotificationConfiguration
   -> Maybe AwsS3BucketServerSideEncryptionConfiguration
   -> AwsS3BucketDetails)
-> Parser (Maybe AwsS3BucketBucketLifecycleConfigurationDetails)
-> Parser
     (Maybe AwsS3BucketNotificationConfiguration
      -> Maybe AwsS3BucketServerSideEncryptionConfiguration
      -> AwsS3BucketDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Parser (Maybe AwsS3BucketBucketLifecycleConfigurationDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"BucketLifecycleConfiguration")
            Parser
  (Maybe AwsS3BucketNotificationConfiguration
   -> Maybe AwsS3BucketServerSideEncryptionConfiguration
   -> AwsS3BucketDetails)
-> Parser (Maybe AwsS3BucketNotificationConfiguration)
-> Parser
     (Maybe AwsS3BucketServerSideEncryptionConfiguration
      -> AwsS3BucketDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe AwsS3BucketNotificationConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"BucketNotificationConfiguration")
            Parser
  (Maybe AwsS3BucketServerSideEncryptionConfiguration
   -> AwsS3BucketDetails)
-> Parser (Maybe AwsS3BucketServerSideEncryptionConfiguration)
-> Parser AwsS3BucketDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Parser (Maybe AwsS3BucketServerSideEncryptionConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ServerSideEncryptionConfiguration")
      )

instance Prelude.Hashable AwsS3BucketDetails

instance Prelude.NFData AwsS3BucketDetails

instance Core.ToJSON AwsS3BucketDetails where
  toJSON :: AwsS3BucketDetails -> Value
toJSON AwsS3BucketDetails' {Maybe Text
Maybe AwsS3AccountPublicAccessBlockDetails
Maybe AwsS3BucketBucketLifecycleConfigurationDetails
Maybe AwsS3BucketLoggingConfiguration
Maybe AwsS3BucketNotificationConfiguration
Maybe AwsS3BucketServerSideEncryptionConfiguration
Maybe AwsS3BucketWebsiteConfiguration
serverSideEncryptionConfiguration :: Maybe AwsS3BucketServerSideEncryptionConfiguration
bucketNotificationConfiguration :: Maybe AwsS3BucketNotificationConfiguration
bucketLifecycleConfiguration :: Maybe AwsS3BucketBucketLifecycleConfigurationDetails
bucketWebsiteConfiguration :: Maybe AwsS3BucketWebsiteConfiguration
publicAccessBlockConfiguration :: Maybe AwsS3AccountPublicAccessBlockDetails
ownerId :: Maybe Text
accessControlList :: Maybe Text
ownerName :: Maybe Text
bucketLoggingConfiguration :: Maybe AwsS3BucketLoggingConfiguration
ownerAccountId :: Maybe Text
createdAt :: Maybe Text
$sel:serverSideEncryptionConfiguration:AwsS3BucketDetails' :: AwsS3BucketDetails
-> Maybe AwsS3BucketServerSideEncryptionConfiguration
$sel:bucketNotificationConfiguration:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe AwsS3BucketNotificationConfiguration
$sel:bucketLifecycleConfiguration:AwsS3BucketDetails' :: AwsS3BucketDetails
-> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
$sel:bucketWebsiteConfiguration:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe AwsS3BucketWebsiteConfiguration
$sel:publicAccessBlockConfiguration:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe AwsS3AccountPublicAccessBlockDetails
$sel:ownerId:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe Text
$sel:accessControlList:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe Text
$sel:ownerName:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe Text
$sel:bucketLoggingConfiguration:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe AwsS3BucketLoggingConfiguration
$sel:ownerAccountId:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe Text
$sel:createdAt:AwsS3BucketDetails' :: AwsS3BucketDetails -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"CreatedAt" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
createdAt,
            (Text
"OwnerAccountId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
ownerAccountId,
            (Text
"BucketLoggingConfiguration" Text -> AwsS3BucketLoggingConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (AwsS3BucketLoggingConfiguration -> Pair)
-> Maybe AwsS3BucketLoggingConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsS3BucketLoggingConfiguration
bucketLoggingConfiguration,
            (Text
"OwnerName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
ownerName,
            (Text
"AccessControlList" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
accessControlList,
            (Text
"OwnerId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
ownerId,
            (Text
"PublicAccessBlockConfiguration" Text -> AwsS3AccountPublicAccessBlockDetails -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (AwsS3AccountPublicAccessBlockDetails -> Pair)
-> Maybe AwsS3AccountPublicAccessBlockDetails -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsS3AccountPublicAccessBlockDetails
publicAccessBlockConfiguration,
            (Text
"BucketWebsiteConfiguration" Text -> AwsS3BucketWebsiteConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (AwsS3BucketWebsiteConfiguration -> Pair)
-> Maybe AwsS3BucketWebsiteConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsS3BucketWebsiteConfiguration
bucketWebsiteConfiguration,
            (Text
"BucketLifecycleConfiguration" Text -> AwsS3BucketBucketLifecycleConfigurationDetails -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (AwsS3BucketBucketLifecycleConfigurationDetails -> Pair)
-> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsS3BucketBucketLifecycleConfigurationDetails
bucketLifecycleConfiguration,
            (Text
"BucketNotificationConfiguration" Text -> AwsS3BucketNotificationConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (AwsS3BucketNotificationConfiguration -> Pair)
-> Maybe AwsS3BucketNotificationConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsS3BucketNotificationConfiguration
bucketNotificationConfiguration,
            (Text
"ServerSideEncryptionConfiguration" Text -> AwsS3BucketServerSideEncryptionConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (AwsS3BucketServerSideEncryptionConfiguration -> Pair)
-> Maybe AwsS3BucketServerSideEncryptionConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsS3BucketServerSideEncryptionConfiguration
serverSideEncryptionConfiguration
          ]
      )