{-# 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.EC2.DescribeFlowLogs
(
DescribeFlowLogs (..),
newDescribeFlowLogs,
describeFlowLogs_dryRun,
describeFlowLogs_filter,
describeFlowLogs_flowLogIds,
describeFlowLogs_maxResults,
describeFlowLogs_nextToken,
DescribeFlowLogsResponse (..),
newDescribeFlowLogsResponse,
describeFlowLogsResponse_flowLogs,
describeFlowLogsResponse_nextToken,
describeFlowLogsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EC2.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeFlowLogs = DescribeFlowLogs'
{
DescribeFlowLogs -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
DescribeFlowLogs -> Maybe [Filter]
filter' :: Prelude.Maybe [Filter],
DescribeFlowLogs -> Maybe [Text]
flowLogIds :: Prelude.Maybe [Prelude.Text],
DescribeFlowLogs -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
DescribeFlowLogs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
}
deriving (DescribeFlowLogs -> DescribeFlowLogs -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeFlowLogs -> DescribeFlowLogs -> Bool
$c/= :: DescribeFlowLogs -> DescribeFlowLogs -> Bool
== :: DescribeFlowLogs -> DescribeFlowLogs -> Bool
$c== :: DescribeFlowLogs -> DescribeFlowLogs -> Bool
Prelude.Eq, ReadPrec [DescribeFlowLogs]
ReadPrec DescribeFlowLogs
Int -> ReadS DescribeFlowLogs
ReadS [DescribeFlowLogs]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeFlowLogs]
$creadListPrec :: ReadPrec [DescribeFlowLogs]
readPrec :: ReadPrec DescribeFlowLogs
$creadPrec :: ReadPrec DescribeFlowLogs
readList :: ReadS [DescribeFlowLogs]
$creadList :: ReadS [DescribeFlowLogs]
readsPrec :: Int -> ReadS DescribeFlowLogs
$creadsPrec :: Int -> ReadS DescribeFlowLogs
Prelude.Read, Int -> DescribeFlowLogs -> ShowS
[DescribeFlowLogs] -> ShowS
DescribeFlowLogs -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeFlowLogs] -> ShowS
$cshowList :: [DescribeFlowLogs] -> ShowS
show :: DescribeFlowLogs -> String
$cshow :: DescribeFlowLogs -> String
showsPrec :: Int -> DescribeFlowLogs -> ShowS
$cshowsPrec :: Int -> DescribeFlowLogs -> ShowS
Prelude.Show, forall x. Rep DescribeFlowLogs x -> DescribeFlowLogs
forall x. DescribeFlowLogs -> Rep DescribeFlowLogs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeFlowLogs x -> DescribeFlowLogs
$cfrom :: forall x. DescribeFlowLogs -> Rep DescribeFlowLogs x
Prelude.Generic)
newDescribeFlowLogs ::
DescribeFlowLogs
newDescribeFlowLogs :: DescribeFlowLogs
newDescribeFlowLogs =
DescribeFlowLogs'
{ $sel:dryRun:DescribeFlowLogs' :: Maybe Bool
dryRun = forall a. Maybe a
Prelude.Nothing,
$sel:filter':DescribeFlowLogs' :: Maybe [Filter]
filter' = forall a. Maybe a
Prelude.Nothing,
$sel:flowLogIds:DescribeFlowLogs' :: Maybe [Text]
flowLogIds = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeFlowLogs' :: Maybe Int
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeFlowLogs' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
}
describeFlowLogs_dryRun :: Lens.Lens' DescribeFlowLogs (Prelude.Maybe Prelude.Bool)
describeFlowLogs_dryRun :: Lens' DescribeFlowLogs (Maybe Bool)
describeFlowLogs_dryRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowLogs' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: DescribeFlowLogs
s@DescribeFlowLogs' {} Maybe Bool
a -> DescribeFlowLogs
s {$sel:dryRun:DescribeFlowLogs' :: Maybe Bool
dryRun = Maybe Bool
a} :: DescribeFlowLogs)
describeFlowLogs_filter :: Lens.Lens' DescribeFlowLogs (Prelude.Maybe [Filter])
describeFlowLogs_filter :: Lens' DescribeFlowLogs (Maybe [Filter])
describeFlowLogs_filter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowLogs' {Maybe [Filter]
filter' :: Maybe [Filter]
$sel:filter':DescribeFlowLogs' :: DescribeFlowLogs -> Maybe [Filter]
filter'} -> Maybe [Filter]
filter') (\s :: DescribeFlowLogs
s@DescribeFlowLogs' {} Maybe [Filter]
a -> DescribeFlowLogs
s {$sel:filter':DescribeFlowLogs' :: Maybe [Filter]
filter' = Maybe [Filter]
a} :: DescribeFlowLogs) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeFlowLogs_flowLogIds :: Lens.Lens' DescribeFlowLogs (Prelude.Maybe [Prelude.Text])
describeFlowLogs_flowLogIds :: Lens' DescribeFlowLogs (Maybe [Text])
describeFlowLogs_flowLogIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowLogs' {Maybe [Text]
flowLogIds :: Maybe [Text]
$sel:flowLogIds:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe [Text]
flowLogIds} -> Maybe [Text]
flowLogIds) (\s :: DescribeFlowLogs
s@DescribeFlowLogs' {} Maybe [Text]
a -> DescribeFlowLogs
s {$sel:flowLogIds:DescribeFlowLogs' :: Maybe [Text]
flowLogIds = Maybe [Text]
a} :: DescribeFlowLogs) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeFlowLogs_maxResults :: Lens.Lens' DescribeFlowLogs (Prelude.Maybe Prelude.Int)
describeFlowLogs_maxResults :: Lens' DescribeFlowLogs (Maybe Int)
describeFlowLogs_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowLogs' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: DescribeFlowLogs
s@DescribeFlowLogs' {} Maybe Int
a -> DescribeFlowLogs
s {$sel:maxResults:DescribeFlowLogs' :: Maybe Int
maxResults = Maybe Int
a} :: DescribeFlowLogs)
describeFlowLogs_nextToken :: Lens.Lens' DescribeFlowLogs (Prelude.Maybe Prelude.Text)
describeFlowLogs_nextToken :: Lens' DescribeFlowLogs (Maybe Text)
describeFlowLogs_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowLogs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeFlowLogs
s@DescribeFlowLogs' {} Maybe Text
a -> DescribeFlowLogs
s {$sel:nextToken:DescribeFlowLogs' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeFlowLogs)
instance Core.AWSPager DescribeFlowLogs where
page :: DescribeFlowLogs
-> AWSResponse DescribeFlowLogs -> Maybe DescribeFlowLogs
page DescribeFlowLogs
rq AWSResponse DescribeFlowLogs
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeFlowLogs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeFlowLogsResponse (Maybe Text)
describeFlowLogsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeFlowLogs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeFlowLogsResponse (Maybe [FlowLog])
describeFlowLogsResponse_flowLogs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ DescribeFlowLogs
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' DescribeFlowLogs (Maybe Text)
describeFlowLogs_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeFlowLogs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeFlowLogsResponse (Maybe Text)
describeFlowLogsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest DescribeFlowLogs where
type
AWSResponse DescribeFlowLogs =
DescribeFlowLogsResponse
request :: (Service -> Service)
-> DescribeFlowLogs -> Request DescribeFlowLogs
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeFlowLogs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeFlowLogs)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [FlowLog] -> Maybe Text -> Int -> DescribeFlowLogsResponse
DescribeFlowLogsResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"flowLogSet"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"item")
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"nextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeFlowLogs where
hashWithSalt :: Int -> DescribeFlowLogs -> Int
hashWithSalt Int
_salt DescribeFlowLogs' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [Filter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Int
flowLogIds :: Maybe [Text]
filter' :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:nextToken:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe Text
$sel:maxResults:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe Int
$sel:flowLogIds:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe [Text]
$sel:filter':DescribeFlowLogs' :: DescribeFlowLogs -> Maybe [Filter]
$sel:dryRun:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe Bool
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
dryRun
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Filter]
filter'
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
flowLogIds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
instance Prelude.NFData DescribeFlowLogs where
rnf :: DescribeFlowLogs -> ()
rnf DescribeFlowLogs' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [Filter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Int
flowLogIds :: Maybe [Text]
filter' :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:nextToken:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe Text
$sel:maxResults:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe Int
$sel:flowLogIds:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe [Text]
$sel:filter':DescribeFlowLogs' :: DescribeFlowLogs -> Maybe [Filter]
$sel:dryRun:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe Bool
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
dryRun
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Filter]
filter'
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
flowLogIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
instance Data.ToHeaders DescribeFlowLogs where
toHeaders :: DescribeFlowLogs -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath DescribeFlowLogs where
toPath :: DescribeFlowLogs -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery DescribeFlowLogs where
toQuery :: DescribeFlowLogs -> QueryString
toQuery DescribeFlowLogs' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [Filter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Int
flowLogIds :: Maybe [Text]
filter' :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:nextToken:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe Text
$sel:maxResults:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe Int
$sel:flowLogIds:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe [Text]
$sel:filter':DescribeFlowLogs' :: DescribeFlowLogs -> Maybe [Filter]
$sel:dryRun:DescribeFlowLogs' :: DescribeFlowLogs -> Maybe Bool
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"DescribeFlowLogs" :: Prelude.ByteString),
ByteString
"Version"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2016-11-15" :: Prelude.ByteString),
ByteString
"DryRun" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Bool
dryRun,
forall a. ToQuery a => a -> QueryString
Data.toQuery
(forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"Filter" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filter'),
forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"FlowLogId"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
flowLogIds
),
ByteString
"MaxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
maxResults,
ByteString
"NextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
]
data DescribeFlowLogsResponse = DescribeFlowLogsResponse'
{
DescribeFlowLogsResponse -> Maybe [FlowLog]
flowLogs :: Prelude.Maybe [FlowLog],
DescribeFlowLogsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeFlowLogsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeFlowLogsResponse -> DescribeFlowLogsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeFlowLogsResponse -> DescribeFlowLogsResponse -> Bool
$c/= :: DescribeFlowLogsResponse -> DescribeFlowLogsResponse -> Bool
== :: DescribeFlowLogsResponse -> DescribeFlowLogsResponse -> Bool
$c== :: DescribeFlowLogsResponse -> DescribeFlowLogsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeFlowLogsResponse]
ReadPrec DescribeFlowLogsResponse
Int -> ReadS DescribeFlowLogsResponse
ReadS [DescribeFlowLogsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeFlowLogsResponse]
$creadListPrec :: ReadPrec [DescribeFlowLogsResponse]
readPrec :: ReadPrec DescribeFlowLogsResponse
$creadPrec :: ReadPrec DescribeFlowLogsResponse
readList :: ReadS [DescribeFlowLogsResponse]
$creadList :: ReadS [DescribeFlowLogsResponse]
readsPrec :: Int -> ReadS DescribeFlowLogsResponse
$creadsPrec :: Int -> ReadS DescribeFlowLogsResponse
Prelude.Read, Int -> DescribeFlowLogsResponse -> ShowS
[DescribeFlowLogsResponse] -> ShowS
DescribeFlowLogsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeFlowLogsResponse] -> ShowS
$cshowList :: [DescribeFlowLogsResponse] -> ShowS
show :: DescribeFlowLogsResponse -> String
$cshow :: DescribeFlowLogsResponse -> String
showsPrec :: Int -> DescribeFlowLogsResponse -> ShowS
$cshowsPrec :: Int -> DescribeFlowLogsResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeFlowLogsResponse x -> DescribeFlowLogsResponse
forall x.
DescribeFlowLogsResponse -> Rep DescribeFlowLogsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeFlowLogsResponse x -> DescribeFlowLogsResponse
$cfrom :: forall x.
DescribeFlowLogsResponse -> Rep DescribeFlowLogsResponse x
Prelude.Generic)
newDescribeFlowLogsResponse ::
Prelude.Int ->
DescribeFlowLogsResponse
newDescribeFlowLogsResponse :: Int -> DescribeFlowLogsResponse
newDescribeFlowLogsResponse Int
pHttpStatus_ =
DescribeFlowLogsResponse'
{ $sel:flowLogs:DescribeFlowLogsResponse' :: Maybe [FlowLog]
flowLogs =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeFlowLogsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeFlowLogsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeFlowLogsResponse_flowLogs :: Lens.Lens' DescribeFlowLogsResponse (Prelude.Maybe [FlowLog])
describeFlowLogsResponse_flowLogs :: Lens' DescribeFlowLogsResponse (Maybe [FlowLog])
describeFlowLogsResponse_flowLogs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowLogsResponse' {Maybe [FlowLog]
flowLogs :: Maybe [FlowLog]
$sel:flowLogs:DescribeFlowLogsResponse' :: DescribeFlowLogsResponse -> Maybe [FlowLog]
flowLogs} -> Maybe [FlowLog]
flowLogs) (\s :: DescribeFlowLogsResponse
s@DescribeFlowLogsResponse' {} Maybe [FlowLog]
a -> DescribeFlowLogsResponse
s {$sel:flowLogs:DescribeFlowLogsResponse' :: Maybe [FlowLog]
flowLogs = Maybe [FlowLog]
a} :: DescribeFlowLogsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeFlowLogsResponse_nextToken :: Lens.Lens' DescribeFlowLogsResponse (Prelude.Maybe Prelude.Text)
describeFlowLogsResponse_nextToken :: Lens' DescribeFlowLogsResponse (Maybe Text)
describeFlowLogsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowLogsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeFlowLogsResponse' :: DescribeFlowLogsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeFlowLogsResponse
s@DescribeFlowLogsResponse' {} Maybe Text
a -> DescribeFlowLogsResponse
s {$sel:nextToken:DescribeFlowLogsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeFlowLogsResponse)
describeFlowLogsResponse_httpStatus :: Lens.Lens' DescribeFlowLogsResponse Prelude.Int
describeFlowLogsResponse_httpStatus :: Lens' DescribeFlowLogsResponse Int
describeFlowLogsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowLogsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeFlowLogsResponse' :: DescribeFlowLogsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeFlowLogsResponse
s@DescribeFlowLogsResponse' {} Int
a -> DescribeFlowLogsResponse
s {$sel:httpStatus:DescribeFlowLogsResponse' :: Int
httpStatus = Int
a} :: DescribeFlowLogsResponse)
instance Prelude.NFData DescribeFlowLogsResponse where
rnf :: DescribeFlowLogsResponse -> ()
rnf DescribeFlowLogsResponse' {Int
Maybe [FlowLog]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
flowLogs :: Maybe [FlowLog]
$sel:httpStatus:DescribeFlowLogsResponse' :: DescribeFlowLogsResponse -> Int
$sel:nextToken:DescribeFlowLogsResponse' :: DescribeFlowLogsResponse -> Maybe Text
$sel:flowLogs:DescribeFlowLogsResponse' :: DescribeFlowLogsResponse -> Maybe [FlowLog]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [FlowLog]
flowLogs
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus