{-# 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 #-}
module Amazonka.Config.DescribeRetentionConfigurations
(
DescribeRetentionConfigurations (..),
newDescribeRetentionConfigurations,
describeRetentionConfigurations_retentionConfigurationNames,
describeRetentionConfigurations_nextToken,
DescribeRetentionConfigurationsResponse (..),
newDescribeRetentionConfigurationsResponse,
describeRetentionConfigurationsResponse_retentionConfigurations,
describeRetentionConfigurationsResponse_nextToken,
describeRetentionConfigurationsResponse_httpStatus,
)
where
import Amazonka.Config.Types
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
data DescribeRetentionConfigurations = DescribeRetentionConfigurations'
{
DescribeRetentionConfigurations -> Maybe [Text]
retentionConfigurationNames :: Prelude.Maybe [Prelude.Text],
DescribeRetentionConfigurations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
}
deriving (DescribeRetentionConfigurations
-> DescribeRetentionConfigurations -> Bool
(DescribeRetentionConfigurations
-> DescribeRetentionConfigurations -> Bool)
-> (DescribeRetentionConfigurations
-> DescribeRetentionConfigurations -> Bool)
-> Eq DescribeRetentionConfigurations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRetentionConfigurations
-> DescribeRetentionConfigurations -> Bool
$c/= :: DescribeRetentionConfigurations
-> DescribeRetentionConfigurations -> Bool
== :: DescribeRetentionConfigurations
-> DescribeRetentionConfigurations -> Bool
$c== :: DescribeRetentionConfigurations
-> DescribeRetentionConfigurations -> Bool
Prelude.Eq, ReadPrec [DescribeRetentionConfigurations]
ReadPrec DescribeRetentionConfigurations
Int -> ReadS DescribeRetentionConfigurations
ReadS [DescribeRetentionConfigurations]
(Int -> ReadS DescribeRetentionConfigurations)
-> ReadS [DescribeRetentionConfigurations]
-> ReadPrec DescribeRetentionConfigurations
-> ReadPrec [DescribeRetentionConfigurations]
-> Read DescribeRetentionConfigurations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRetentionConfigurations]
$creadListPrec :: ReadPrec [DescribeRetentionConfigurations]
readPrec :: ReadPrec DescribeRetentionConfigurations
$creadPrec :: ReadPrec DescribeRetentionConfigurations
readList :: ReadS [DescribeRetentionConfigurations]
$creadList :: ReadS [DescribeRetentionConfigurations]
readsPrec :: Int -> ReadS DescribeRetentionConfigurations
$creadsPrec :: Int -> ReadS DescribeRetentionConfigurations
Prelude.Read, Int -> DescribeRetentionConfigurations -> ShowS
[DescribeRetentionConfigurations] -> ShowS
DescribeRetentionConfigurations -> String
(Int -> DescribeRetentionConfigurations -> ShowS)
-> (DescribeRetentionConfigurations -> String)
-> ([DescribeRetentionConfigurations] -> ShowS)
-> Show DescribeRetentionConfigurations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRetentionConfigurations] -> ShowS
$cshowList :: [DescribeRetentionConfigurations] -> ShowS
show :: DescribeRetentionConfigurations -> String
$cshow :: DescribeRetentionConfigurations -> String
showsPrec :: Int -> DescribeRetentionConfigurations -> ShowS
$cshowsPrec :: Int -> DescribeRetentionConfigurations -> ShowS
Prelude.Show, (forall x.
DescribeRetentionConfigurations
-> Rep DescribeRetentionConfigurations x)
-> (forall x.
Rep DescribeRetentionConfigurations x
-> DescribeRetentionConfigurations)
-> Generic DescribeRetentionConfigurations
forall x.
Rep DescribeRetentionConfigurations x
-> DescribeRetentionConfigurations
forall x.
DescribeRetentionConfigurations
-> Rep DescribeRetentionConfigurations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeRetentionConfigurations x
-> DescribeRetentionConfigurations
$cfrom :: forall x.
DescribeRetentionConfigurations
-> Rep DescribeRetentionConfigurations x
Prelude.Generic)
newDescribeRetentionConfigurations ::
DescribeRetentionConfigurations
newDescribeRetentionConfigurations :: DescribeRetentionConfigurations
newDescribeRetentionConfigurations =
DescribeRetentionConfigurations' :: Maybe [Text] -> Maybe Text -> DescribeRetentionConfigurations
DescribeRetentionConfigurations'
{ $sel:retentionConfigurationNames:DescribeRetentionConfigurations' :: Maybe [Text]
retentionConfigurationNames =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeRetentionConfigurations' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
describeRetentionConfigurations_retentionConfigurationNames :: Lens.Lens' DescribeRetentionConfigurations (Prelude.Maybe [Prelude.Text])
describeRetentionConfigurations_retentionConfigurationNames :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeRetentionConfigurations
-> f DescribeRetentionConfigurations
describeRetentionConfigurations_retentionConfigurationNames = (DescribeRetentionConfigurations -> Maybe [Text])
-> (DescribeRetentionConfigurations
-> Maybe [Text] -> DescribeRetentionConfigurations)
-> Lens
DescribeRetentionConfigurations
DescribeRetentionConfigurations
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRetentionConfigurations' {Maybe [Text]
retentionConfigurationNames :: Maybe [Text]
$sel:retentionConfigurationNames:DescribeRetentionConfigurations' :: DescribeRetentionConfigurations -> Maybe [Text]
retentionConfigurationNames} -> Maybe [Text]
retentionConfigurationNames) (\s :: DescribeRetentionConfigurations
s@DescribeRetentionConfigurations' {} Maybe [Text]
a -> DescribeRetentionConfigurations
s {$sel:retentionConfigurationNames:DescribeRetentionConfigurations' :: Maybe [Text]
retentionConfigurationNames = Maybe [Text]
a} :: DescribeRetentionConfigurations) ((Maybe [Text] -> f (Maybe [Text]))
-> DescribeRetentionConfigurations
-> f DescribeRetentionConfigurations)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeRetentionConfigurations
-> f DescribeRetentionConfigurations
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeRetentionConfigurations_nextToken :: Lens.Lens' DescribeRetentionConfigurations (Prelude.Maybe Prelude.Text)
describeRetentionConfigurations_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeRetentionConfigurations
-> f DescribeRetentionConfigurations
describeRetentionConfigurations_nextToken = (DescribeRetentionConfigurations -> Maybe Text)
-> (DescribeRetentionConfigurations
-> Maybe Text -> DescribeRetentionConfigurations)
-> Lens
DescribeRetentionConfigurations
DescribeRetentionConfigurations
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRetentionConfigurations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeRetentionConfigurations' :: DescribeRetentionConfigurations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeRetentionConfigurations
s@DescribeRetentionConfigurations' {} Maybe Text
a -> DescribeRetentionConfigurations
s {$sel:nextToken:DescribeRetentionConfigurations' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeRetentionConfigurations)
instance
Core.AWSPager
DescribeRetentionConfigurations
where
page :: DescribeRetentionConfigurations
-> AWSResponse DescribeRetentionConfigurations
-> Maybe DescribeRetentionConfigurations
page DescribeRetentionConfigurations
rq AWSResponse DescribeRetentionConfigurations
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeRetentionConfigurations
DescribeRetentionConfigurationsResponse
rs
DescribeRetentionConfigurationsResponse
-> Getting
(First Text) DescribeRetentionConfigurationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeRetentionConfigurationsResponse
-> Const (First Text) DescribeRetentionConfigurationsResponse
Lens' DescribeRetentionConfigurationsResponse (Maybe Text)
describeRetentionConfigurationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeRetentionConfigurationsResponse
-> Const (First Text) DescribeRetentionConfigurationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeRetentionConfigurationsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeRetentionConfigurations
forall a. Maybe a
Prelude.Nothing
| Maybe [RetentionConfiguration] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeRetentionConfigurations
DescribeRetentionConfigurationsResponse
rs
DescribeRetentionConfigurationsResponse
-> Getting
(First [RetentionConfiguration])
DescribeRetentionConfigurationsResponse
[RetentionConfiguration]
-> Maybe [RetentionConfiguration]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [RetentionConfiguration]
-> Const
(First [RetentionConfiguration]) (Maybe [RetentionConfiguration]))
-> DescribeRetentionConfigurationsResponse
-> Const
(First [RetentionConfiguration])
DescribeRetentionConfigurationsResponse
Lens'
DescribeRetentionConfigurationsResponse
(Maybe [RetentionConfiguration])
describeRetentionConfigurationsResponse_retentionConfigurations
((Maybe [RetentionConfiguration]
-> Const
(First [RetentionConfiguration]) (Maybe [RetentionConfiguration]))
-> DescribeRetentionConfigurationsResponse
-> Const
(First [RetentionConfiguration])
DescribeRetentionConfigurationsResponse)
-> (([RetentionConfiguration]
-> Const (First [RetentionConfiguration]) [RetentionConfiguration])
-> Maybe [RetentionConfiguration]
-> Const
(First [RetentionConfiguration]) (Maybe [RetentionConfiguration]))
-> Getting
(First [RetentionConfiguration])
DescribeRetentionConfigurationsResponse
[RetentionConfiguration]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([RetentionConfiguration]
-> Const (First [RetentionConfiguration]) [RetentionConfiguration])
-> Maybe [RetentionConfiguration]
-> Const
(First [RetentionConfiguration]) (Maybe [RetentionConfiguration])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeRetentionConfigurations
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeRetentionConfigurations
-> Maybe DescribeRetentionConfigurations
forall a. a -> Maybe a
Prelude.Just (DescribeRetentionConfigurations
-> Maybe DescribeRetentionConfigurations)
-> DescribeRetentionConfigurations
-> Maybe DescribeRetentionConfigurations
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeRetentionConfigurations
rq
DescribeRetentionConfigurations
-> (DescribeRetentionConfigurations
-> DescribeRetentionConfigurations)
-> DescribeRetentionConfigurations
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeRetentionConfigurations
-> Identity DescribeRetentionConfigurations
Lens
DescribeRetentionConfigurations
DescribeRetentionConfigurations
(Maybe Text)
(Maybe Text)
describeRetentionConfigurations_nextToken
((Maybe Text -> Identity (Maybe Text))
-> DescribeRetentionConfigurations
-> Identity DescribeRetentionConfigurations)
-> Maybe Text
-> DescribeRetentionConfigurations
-> DescribeRetentionConfigurations
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeRetentionConfigurations
DescribeRetentionConfigurationsResponse
rs
DescribeRetentionConfigurationsResponse
-> Getting
(First Text) DescribeRetentionConfigurationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeRetentionConfigurationsResponse
-> Const (First Text) DescribeRetentionConfigurationsResponse
Lens' DescribeRetentionConfigurationsResponse (Maybe Text)
describeRetentionConfigurationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeRetentionConfigurationsResponse
-> Const (First Text) DescribeRetentionConfigurationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeRetentionConfigurationsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance
Core.AWSRequest
DescribeRetentionConfigurations
where
type
AWSResponse DescribeRetentionConfigurations =
DescribeRetentionConfigurationsResponse
request :: DescribeRetentionConfigurations
-> Request DescribeRetentionConfigurations
request = Service
-> DescribeRetentionConfigurations
-> Request DescribeRetentionConfigurations
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeRetentionConfigurations
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeRetentionConfigurations)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeRetentionConfigurations))
-> Logger
-> Service
-> Proxy DescribeRetentionConfigurations
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeRetentionConfigurations)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [RetentionConfiguration]
-> Maybe Text -> Int -> DescribeRetentionConfigurationsResponse
DescribeRetentionConfigurationsResponse'
(Maybe [RetentionConfiguration]
-> Maybe Text -> Int -> DescribeRetentionConfigurationsResponse)
-> Either String (Maybe [RetentionConfiguration])
-> Either
String
(Maybe Text -> Int -> DescribeRetentionConfigurationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [RetentionConfiguration]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RetentionConfigurations"
Either String (Maybe (Maybe [RetentionConfiguration]))
-> Maybe [RetentionConfiguration]
-> Either String (Maybe [RetentionConfiguration])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [RetentionConfiguration]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe Text -> Int -> DescribeRetentionConfigurationsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeRetentionConfigurationsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either String (Int -> DescribeRetentionConfigurationsResponse)
-> Either String Int
-> Either String DescribeRetentionConfigurationsResponse
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
DescribeRetentionConfigurations
instance
Prelude.NFData
DescribeRetentionConfigurations
instance
Core.ToHeaders
DescribeRetentionConfigurations
where
toHeaders :: DescribeRetentionConfigurations -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribeRetentionConfigurations -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"StarlingDoveService.DescribeRetentionConfigurations" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DescribeRetentionConfigurations where
toJSON :: DescribeRetentionConfigurations -> Value
toJSON DescribeRetentionConfigurations' {Maybe [Text]
Maybe Text
nextToken :: Maybe Text
retentionConfigurationNames :: Maybe [Text]
$sel:nextToken:DescribeRetentionConfigurations' :: DescribeRetentionConfigurations -> Maybe Text
$sel:retentionConfigurationNames:DescribeRetentionConfigurations' :: DescribeRetentionConfigurations -> Maybe [Text]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"RetentionConfigurationNames" 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]
retentionConfigurationNames,
(Text
"NextToken" 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
nextToken
]
)
instance Core.ToPath DescribeRetentionConfigurations where
toPath :: DescribeRetentionConfigurations -> ByteString
toPath = ByteString -> DescribeRetentionConfigurations -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeRetentionConfigurations where
toQuery :: DescribeRetentionConfigurations -> QueryString
toQuery = QueryString -> DescribeRetentionConfigurations -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeRetentionConfigurationsResponse = DescribeRetentionConfigurationsResponse'
{
DescribeRetentionConfigurationsResponse
-> Maybe [RetentionConfiguration]
retentionConfigurations :: Prelude.Maybe [RetentionConfiguration],
DescribeRetentionConfigurationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeRetentionConfigurationsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeRetentionConfigurationsResponse
-> DescribeRetentionConfigurationsResponse -> Bool
(DescribeRetentionConfigurationsResponse
-> DescribeRetentionConfigurationsResponse -> Bool)
-> (DescribeRetentionConfigurationsResponse
-> DescribeRetentionConfigurationsResponse -> Bool)
-> Eq DescribeRetentionConfigurationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRetentionConfigurationsResponse
-> DescribeRetentionConfigurationsResponse -> Bool
$c/= :: DescribeRetentionConfigurationsResponse
-> DescribeRetentionConfigurationsResponse -> Bool
== :: DescribeRetentionConfigurationsResponse
-> DescribeRetentionConfigurationsResponse -> Bool
$c== :: DescribeRetentionConfigurationsResponse
-> DescribeRetentionConfigurationsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeRetentionConfigurationsResponse]
ReadPrec DescribeRetentionConfigurationsResponse
Int -> ReadS DescribeRetentionConfigurationsResponse
ReadS [DescribeRetentionConfigurationsResponse]
(Int -> ReadS DescribeRetentionConfigurationsResponse)
-> ReadS [DescribeRetentionConfigurationsResponse]
-> ReadPrec DescribeRetentionConfigurationsResponse
-> ReadPrec [DescribeRetentionConfigurationsResponse]
-> Read DescribeRetentionConfigurationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRetentionConfigurationsResponse]
$creadListPrec :: ReadPrec [DescribeRetentionConfigurationsResponse]
readPrec :: ReadPrec DescribeRetentionConfigurationsResponse
$creadPrec :: ReadPrec DescribeRetentionConfigurationsResponse
readList :: ReadS [DescribeRetentionConfigurationsResponse]
$creadList :: ReadS [DescribeRetentionConfigurationsResponse]
readsPrec :: Int -> ReadS DescribeRetentionConfigurationsResponse
$creadsPrec :: Int -> ReadS DescribeRetentionConfigurationsResponse
Prelude.Read, Int -> DescribeRetentionConfigurationsResponse -> ShowS
[DescribeRetentionConfigurationsResponse] -> ShowS
DescribeRetentionConfigurationsResponse -> String
(Int -> DescribeRetentionConfigurationsResponse -> ShowS)
-> (DescribeRetentionConfigurationsResponse -> String)
-> ([DescribeRetentionConfigurationsResponse] -> ShowS)
-> Show DescribeRetentionConfigurationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRetentionConfigurationsResponse] -> ShowS
$cshowList :: [DescribeRetentionConfigurationsResponse] -> ShowS
show :: DescribeRetentionConfigurationsResponse -> String
$cshow :: DescribeRetentionConfigurationsResponse -> String
showsPrec :: Int -> DescribeRetentionConfigurationsResponse -> ShowS
$cshowsPrec :: Int -> DescribeRetentionConfigurationsResponse -> ShowS
Prelude.Show, (forall x.
DescribeRetentionConfigurationsResponse
-> Rep DescribeRetentionConfigurationsResponse x)
-> (forall x.
Rep DescribeRetentionConfigurationsResponse x
-> DescribeRetentionConfigurationsResponse)
-> Generic DescribeRetentionConfigurationsResponse
forall x.
Rep DescribeRetentionConfigurationsResponse x
-> DescribeRetentionConfigurationsResponse
forall x.
DescribeRetentionConfigurationsResponse
-> Rep DescribeRetentionConfigurationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeRetentionConfigurationsResponse x
-> DescribeRetentionConfigurationsResponse
$cfrom :: forall x.
DescribeRetentionConfigurationsResponse
-> Rep DescribeRetentionConfigurationsResponse x
Prelude.Generic)
newDescribeRetentionConfigurationsResponse ::
Prelude.Int ->
DescribeRetentionConfigurationsResponse
newDescribeRetentionConfigurationsResponse :: Int -> DescribeRetentionConfigurationsResponse
newDescribeRetentionConfigurationsResponse
Int
pHttpStatus_ =
DescribeRetentionConfigurationsResponse' :: Maybe [RetentionConfiguration]
-> Maybe Text -> Int -> DescribeRetentionConfigurationsResponse
DescribeRetentionConfigurationsResponse'
{ $sel:retentionConfigurations:DescribeRetentionConfigurationsResponse' :: Maybe [RetentionConfiguration]
retentionConfigurations =
Maybe [RetentionConfiguration]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeRetentionConfigurationsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeRetentionConfigurationsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeRetentionConfigurationsResponse_retentionConfigurations :: Lens.Lens' DescribeRetentionConfigurationsResponse (Prelude.Maybe [RetentionConfiguration])
describeRetentionConfigurationsResponse_retentionConfigurations :: (Maybe [RetentionConfiguration]
-> f (Maybe [RetentionConfiguration]))
-> DescribeRetentionConfigurationsResponse
-> f DescribeRetentionConfigurationsResponse
describeRetentionConfigurationsResponse_retentionConfigurations = (DescribeRetentionConfigurationsResponse
-> Maybe [RetentionConfiguration])
-> (DescribeRetentionConfigurationsResponse
-> Maybe [RetentionConfiguration]
-> DescribeRetentionConfigurationsResponse)
-> Lens'
DescribeRetentionConfigurationsResponse
(Maybe [RetentionConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRetentionConfigurationsResponse' {Maybe [RetentionConfiguration]
retentionConfigurations :: Maybe [RetentionConfiguration]
$sel:retentionConfigurations:DescribeRetentionConfigurationsResponse' :: DescribeRetentionConfigurationsResponse
-> Maybe [RetentionConfiguration]
retentionConfigurations} -> Maybe [RetentionConfiguration]
retentionConfigurations) (\s :: DescribeRetentionConfigurationsResponse
s@DescribeRetentionConfigurationsResponse' {} Maybe [RetentionConfiguration]
a -> DescribeRetentionConfigurationsResponse
s {$sel:retentionConfigurations:DescribeRetentionConfigurationsResponse' :: Maybe [RetentionConfiguration]
retentionConfigurations = Maybe [RetentionConfiguration]
a} :: DescribeRetentionConfigurationsResponse) ((Maybe [RetentionConfiguration]
-> f (Maybe [RetentionConfiguration]))
-> DescribeRetentionConfigurationsResponse
-> f DescribeRetentionConfigurationsResponse)
-> ((Maybe [RetentionConfiguration]
-> f (Maybe [RetentionConfiguration]))
-> Maybe [RetentionConfiguration]
-> f (Maybe [RetentionConfiguration]))
-> (Maybe [RetentionConfiguration]
-> f (Maybe [RetentionConfiguration]))
-> DescribeRetentionConfigurationsResponse
-> f DescribeRetentionConfigurationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[RetentionConfiguration]
[RetentionConfiguration]
[RetentionConfiguration]
[RetentionConfiguration]
-> Iso
(Maybe [RetentionConfiguration])
(Maybe [RetentionConfiguration])
(Maybe [RetentionConfiguration])
(Maybe [RetentionConfiguration])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[RetentionConfiguration]
[RetentionConfiguration]
[RetentionConfiguration]
[RetentionConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeRetentionConfigurationsResponse_nextToken :: Lens.Lens' DescribeRetentionConfigurationsResponse (Prelude.Maybe Prelude.Text)
describeRetentionConfigurationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeRetentionConfigurationsResponse
-> f DescribeRetentionConfigurationsResponse
describeRetentionConfigurationsResponse_nextToken = (DescribeRetentionConfigurationsResponse -> Maybe Text)
-> (DescribeRetentionConfigurationsResponse
-> Maybe Text -> DescribeRetentionConfigurationsResponse)
-> Lens' DescribeRetentionConfigurationsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRetentionConfigurationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeRetentionConfigurationsResponse' :: DescribeRetentionConfigurationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeRetentionConfigurationsResponse
s@DescribeRetentionConfigurationsResponse' {} Maybe Text
a -> DescribeRetentionConfigurationsResponse
s {$sel:nextToken:DescribeRetentionConfigurationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeRetentionConfigurationsResponse)
describeRetentionConfigurationsResponse_httpStatus :: Lens.Lens' DescribeRetentionConfigurationsResponse Prelude.Int
describeRetentionConfigurationsResponse_httpStatus :: (Int -> f Int)
-> DescribeRetentionConfigurationsResponse
-> f DescribeRetentionConfigurationsResponse
describeRetentionConfigurationsResponse_httpStatus = (DescribeRetentionConfigurationsResponse -> Int)
-> (DescribeRetentionConfigurationsResponse
-> Int -> DescribeRetentionConfigurationsResponse)
-> Lens
DescribeRetentionConfigurationsResponse
DescribeRetentionConfigurationsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRetentionConfigurationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeRetentionConfigurationsResponse' :: DescribeRetentionConfigurationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeRetentionConfigurationsResponse
s@DescribeRetentionConfigurationsResponse' {} Int
a -> DescribeRetentionConfigurationsResponse
s {$sel:httpStatus:DescribeRetentionConfigurationsResponse' :: Int
httpStatus = Int
a} :: DescribeRetentionConfigurationsResponse)
instance
Prelude.NFData
DescribeRetentionConfigurationsResponse