{-# 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 #-}
module Amazonka.IoTAnalytics.Types.CustomerManagedChannelS3StorageSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data CustomerManagedChannelS3StorageSummary = CustomerManagedChannelS3StorageSummary'
{
CustomerManagedChannelS3StorageSummary -> Maybe Text
bucket :: Prelude.Maybe Prelude.Text,
CustomerManagedChannelS3StorageSummary -> Maybe Text
keyPrefix :: Prelude.Maybe Prelude.Text,
CustomerManagedChannelS3StorageSummary -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text
}
deriving (CustomerManagedChannelS3StorageSummary
-> CustomerManagedChannelS3StorageSummary -> Bool
(CustomerManagedChannelS3StorageSummary
-> CustomerManagedChannelS3StorageSummary -> Bool)
-> (CustomerManagedChannelS3StorageSummary
-> CustomerManagedChannelS3StorageSummary -> Bool)
-> Eq CustomerManagedChannelS3StorageSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CustomerManagedChannelS3StorageSummary
-> CustomerManagedChannelS3StorageSummary -> Bool
$c/= :: CustomerManagedChannelS3StorageSummary
-> CustomerManagedChannelS3StorageSummary -> Bool
== :: CustomerManagedChannelS3StorageSummary
-> CustomerManagedChannelS3StorageSummary -> Bool
$c== :: CustomerManagedChannelS3StorageSummary
-> CustomerManagedChannelS3StorageSummary -> Bool
Prelude.Eq, ReadPrec [CustomerManagedChannelS3StorageSummary]
ReadPrec CustomerManagedChannelS3StorageSummary
Int -> ReadS CustomerManagedChannelS3StorageSummary
ReadS [CustomerManagedChannelS3StorageSummary]
(Int -> ReadS CustomerManagedChannelS3StorageSummary)
-> ReadS [CustomerManagedChannelS3StorageSummary]
-> ReadPrec CustomerManagedChannelS3StorageSummary
-> ReadPrec [CustomerManagedChannelS3StorageSummary]
-> Read CustomerManagedChannelS3StorageSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CustomerManagedChannelS3StorageSummary]
$creadListPrec :: ReadPrec [CustomerManagedChannelS3StorageSummary]
readPrec :: ReadPrec CustomerManagedChannelS3StorageSummary
$creadPrec :: ReadPrec CustomerManagedChannelS3StorageSummary
readList :: ReadS [CustomerManagedChannelS3StorageSummary]
$creadList :: ReadS [CustomerManagedChannelS3StorageSummary]
readsPrec :: Int -> ReadS CustomerManagedChannelS3StorageSummary
$creadsPrec :: Int -> ReadS CustomerManagedChannelS3StorageSummary
Prelude.Read, Int -> CustomerManagedChannelS3StorageSummary -> ShowS
[CustomerManagedChannelS3StorageSummary] -> ShowS
CustomerManagedChannelS3StorageSummary -> String
(Int -> CustomerManagedChannelS3StorageSummary -> ShowS)
-> (CustomerManagedChannelS3StorageSummary -> String)
-> ([CustomerManagedChannelS3StorageSummary] -> ShowS)
-> Show CustomerManagedChannelS3StorageSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CustomerManagedChannelS3StorageSummary] -> ShowS
$cshowList :: [CustomerManagedChannelS3StorageSummary] -> ShowS
show :: CustomerManagedChannelS3StorageSummary -> String
$cshow :: CustomerManagedChannelS3StorageSummary -> String
showsPrec :: Int -> CustomerManagedChannelS3StorageSummary -> ShowS
$cshowsPrec :: Int -> CustomerManagedChannelS3StorageSummary -> ShowS
Prelude.Show, (forall x.
CustomerManagedChannelS3StorageSummary
-> Rep CustomerManagedChannelS3StorageSummary x)
-> (forall x.
Rep CustomerManagedChannelS3StorageSummary x
-> CustomerManagedChannelS3StorageSummary)
-> Generic CustomerManagedChannelS3StorageSummary
forall x.
Rep CustomerManagedChannelS3StorageSummary x
-> CustomerManagedChannelS3StorageSummary
forall x.
CustomerManagedChannelS3StorageSummary
-> Rep CustomerManagedChannelS3StorageSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CustomerManagedChannelS3StorageSummary x
-> CustomerManagedChannelS3StorageSummary
$cfrom :: forall x.
CustomerManagedChannelS3StorageSummary
-> Rep CustomerManagedChannelS3StorageSummary x
Prelude.Generic)
newCustomerManagedChannelS3StorageSummary ::
CustomerManagedChannelS3StorageSummary
newCustomerManagedChannelS3StorageSummary :: CustomerManagedChannelS3StorageSummary
newCustomerManagedChannelS3StorageSummary =
CustomerManagedChannelS3StorageSummary' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> CustomerManagedChannelS3StorageSummary
CustomerManagedChannelS3StorageSummary'
{ $sel:bucket:CustomerManagedChannelS3StorageSummary' :: Maybe Text
bucket =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:keyPrefix:CustomerManagedChannelS3StorageSummary' :: Maybe Text
keyPrefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:roleArn:CustomerManagedChannelS3StorageSummary' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
customerManagedChannelS3StorageSummary_bucket :: Lens.Lens' CustomerManagedChannelS3StorageSummary (Prelude.Maybe Prelude.Text)
customerManagedChannelS3StorageSummary_bucket :: (Maybe Text -> f (Maybe Text))
-> CustomerManagedChannelS3StorageSummary
-> f CustomerManagedChannelS3StorageSummary
customerManagedChannelS3StorageSummary_bucket = (CustomerManagedChannelS3StorageSummary -> Maybe Text)
-> (CustomerManagedChannelS3StorageSummary
-> Maybe Text -> CustomerManagedChannelS3StorageSummary)
-> Lens
CustomerManagedChannelS3StorageSummary
CustomerManagedChannelS3StorageSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomerManagedChannelS3StorageSummary' {Maybe Text
bucket :: Maybe Text
$sel:bucket:CustomerManagedChannelS3StorageSummary' :: CustomerManagedChannelS3StorageSummary -> Maybe Text
bucket} -> Maybe Text
bucket) (\s :: CustomerManagedChannelS3StorageSummary
s@CustomerManagedChannelS3StorageSummary' {} Maybe Text
a -> CustomerManagedChannelS3StorageSummary
s {$sel:bucket:CustomerManagedChannelS3StorageSummary' :: Maybe Text
bucket = Maybe Text
a} :: CustomerManagedChannelS3StorageSummary)
customerManagedChannelS3StorageSummary_keyPrefix :: Lens.Lens' CustomerManagedChannelS3StorageSummary (Prelude.Maybe Prelude.Text)
customerManagedChannelS3StorageSummary_keyPrefix :: (Maybe Text -> f (Maybe Text))
-> CustomerManagedChannelS3StorageSummary
-> f CustomerManagedChannelS3StorageSummary
customerManagedChannelS3StorageSummary_keyPrefix = (CustomerManagedChannelS3StorageSummary -> Maybe Text)
-> (CustomerManagedChannelS3StorageSummary
-> Maybe Text -> CustomerManagedChannelS3StorageSummary)
-> Lens
CustomerManagedChannelS3StorageSummary
CustomerManagedChannelS3StorageSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomerManagedChannelS3StorageSummary' {Maybe Text
keyPrefix :: Maybe Text
$sel:keyPrefix:CustomerManagedChannelS3StorageSummary' :: CustomerManagedChannelS3StorageSummary -> Maybe Text
keyPrefix} -> Maybe Text
keyPrefix) (\s :: CustomerManagedChannelS3StorageSummary
s@CustomerManagedChannelS3StorageSummary' {} Maybe Text
a -> CustomerManagedChannelS3StorageSummary
s {$sel:keyPrefix:CustomerManagedChannelS3StorageSummary' :: Maybe Text
keyPrefix = Maybe Text
a} :: CustomerManagedChannelS3StorageSummary)
customerManagedChannelS3StorageSummary_roleArn :: Lens.Lens' CustomerManagedChannelS3StorageSummary (Prelude.Maybe Prelude.Text)
customerManagedChannelS3StorageSummary_roleArn :: (Maybe Text -> f (Maybe Text))
-> CustomerManagedChannelS3StorageSummary
-> f CustomerManagedChannelS3StorageSummary
customerManagedChannelS3StorageSummary_roleArn = (CustomerManagedChannelS3StorageSummary -> Maybe Text)
-> (CustomerManagedChannelS3StorageSummary
-> Maybe Text -> CustomerManagedChannelS3StorageSummary)
-> Lens
CustomerManagedChannelS3StorageSummary
CustomerManagedChannelS3StorageSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomerManagedChannelS3StorageSummary' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:CustomerManagedChannelS3StorageSummary' :: CustomerManagedChannelS3StorageSummary -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: CustomerManagedChannelS3StorageSummary
s@CustomerManagedChannelS3StorageSummary' {} Maybe Text
a -> CustomerManagedChannelS3StorageSummary
s {$sel:roleArn:CustomerManagedChannelS3StorageSummary' :: Maybe Text
roleArn = Maybe Text
a} :: CustomerManagedChannelS3StorageSummary)
instance
Core.FromJSON
CustomerManagedChannelS3StorageSummary
where
parseJSON :: Value -> Parser CustomerManagedChannelS3StorageSummary
parseJSON =
String
-> (Object -> Parser CustomerManagedChannelS3StorageSummary)
-> Value
-> Parser CustomerManagedChannelS3StorageSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"CustomerManagedChannelS3StorageSummary"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> CustomerManagedChannelS3StorageSummary
CustomerManagedChannelS3StorageSummary'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> CustomerManagedChannelS3StorageSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> CustomerManagedChannelS3StorageSummary)
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
"bucket")
Parser
(Maybe Text
-> Maybe Text -> CustomerManagedChannelS3StorageSummary)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> CustomerManagedChannelS3StorageSummary)
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
"keyPrefix")
Parser (Maybe Text -> CustomerManagedChannelS3StorageSummary)
-> Parser (Maybe Text)
-> Parser CustomerManagedChannelS3StorageSummary
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
"roleArn")
)
instance
Prelude.Hashable
CustomerManagedChannelS3StorageSummary
instance
Prelude.NFData
CustomerManagedChannelS3StorageSummary