{-# 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.DescribeEgressOnlyInternetGateways
(
DescribeEgressOnlyInternetGateways (..),
newDescribeEgressOnlyInternetGateways,
describeEgressOnlyInternetGateways_dryRun,
describeEgressOnlyInternetGateways_egressOnlyInternetGatewayIds,
describeEgressOnlyInternetGateways_filters,
describeEgressOnlyInternetGateways_maxResults,
describeEgressOnlyInternetGateways_nextToken,
DescribeEgressOnlyInternetGatewaysResponse (..),
newDescribeEgressOnlyInternetGatewaysResponse,
describeEgressOnlyInternetGatewaysResponse_egressOnlyInternetGateways,
describeEgressOnlyInternetGatewaysResponse_nextToken,
describeEgressOnlyInternetGatewaysResponse_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 DescribeEgressOnlyInternetGateways = DescribeEgressOnlyInternetGateways'
{
DescribeEgressOnlyInternetGateways -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
DescribeEgressOnlyInternetGateways -> Maybe [Text]
egressOnlyInternetGatewayIds :: Prelude.Maybe [Prelude.Text],
DescribeEgressOnlyInternetGateways -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeEgressOnlyInternetGateways -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
DescribeEgressOnlyInternetGateways -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
}
deriving (DescribeEgressOnlyInternetGateways
-> DescribeEgressOnlyInternetGateways -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEgressOnlyInternetGateways
-> DescribeEgressOnlyInternetGateways -> Bool
$c/= :: DescribeEgressOnlyInternetGateways
-> DescribeEgressOnlyInternetGateways -> Bool
== :: DescribeEgressOnlyInternetGateways
-> DescribeEgressOnlyInternetGateways -> Bool
$c== :: DescribeEgressOnlyInternetGateways
-> DescribeEgressOnlyInternetGateways -> Bool
Prelude.Eq, ReadPrec [DescribeEgressOnlyInternetGateways]
ReadPrec DescribeEgressOnlyInternetGateways
Int -> ReadS DescribeEgressOnlyInternetGateways
ReadS [DescribeEgressOnlyInternetGateways]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEgressOnlyInternetGateways]
$creadListPrec :: ReadPrec [DescribeEgressOnlyInternetGateways]
readPrec :: ReadPrec DescribeEgressOnlyInternetGateways
$creadPrec :: ReadPrec DescribeEgressOnlyInternetGateways
readList :: ReadS [DescribeEgressOnlyInternetGateways]
$creadList :: ReadS [DescribeEgressOnlyInternetGateways]
readsPrec :: Int -> ReadS DescribeEgressOnlyInternetGateways
$creadsPrec :: Int -> ReadS DescribeEgressOnlyInternetGateways
Prelude.Read, Int -> DescribeEgressOnlyInternetGateways -> ShowS
[DescribeEgressOnlyInternetGateways] -> ShowS
DescribeEgressOnlyInternetGateways -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEgressOnlyInternetGateways] -> ShowS
$cshowList :: [DescribeEgressOnlyInternetGateways] -> ShowS
show :: DescribeEgressOnlyInternetGateways -> String
$cshow :: DescribeEgressOnlyInternetGateways -> String
showsPrec :: Int -> DescribeEgressOnlyInternetGateways -> ShowS
$cshowsPrec :: Int -> DescribeEgressOnlyInternetGateways -> ShowS
Prelude.Show, forall x.
Rep DescribeEgressOnlyInternetGateways x
-> DescribeEgressOnlyInternetGateways
forall x.
DescribeEgressOnlyInternetGateways
-> Rep DescribeEgressOnlyInternetGateways x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeEgressOnlyInternetGateways x
-> DescribeEgressOnlyInternetGateways
$cfrom :: forall x.
DescribeEgressOnlyInternetGateways
-> Rep DescribeEgressOnlyInternetGateways x
Prelude.Generic)
newDescribeEgressOnlyInternetGateways ::
DescribeEgressOnlyInternetGateways
newDescribeEgressOnlyInternetGateways :: DescribeEgressOnlyInternetGateways
newDescribeEgressOnlyInternetGateways =
DescribeEgressOnlyInternetGateways'
{ $sel:dryRun:DescribeEgressOnlyInternetGateways' :: Maybe Bool
dryRun =
forall a. Maybe a
Prelude.Nothing,
$sel:egressOnlyInternetGatewayIds:DescribeEgressOnlyInternetGateways' :: Maybe [Text]
egressOnlyInternetGatewayIds =
forall a. Maybe a
Prelude.Nothing,
$sel:filters:DescribeEgressOnlyInternetGateways' :: Maybe [Filter]
filters = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeEgressOnlyInternetGateways' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeEgressOnlyInternetGateways' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
}
describeEgressOnlyInternetGateways_dryRun :: Lens.Lens' DescribeEgressOnlyInternetGateways (Prelude.Maybe Prelude.Bool)
describeEgressOnlyInternetGateways_dryRun :: Lens' DescribeEgressOnlyInternetGateways (Maybe Bool)
describeEgressOnlyInternetGateways_dryRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEgressOnlyInternetGateways' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: DescribeEgressOnlyInternetGateways
s@DescribeEgressOnlyInternetGateways' {} Maybe Bool
a -> DescribeEgressOnlyInternetGateways
s {$sel:dryRun:DescribeEgressOnlyInternetGateways' :: Maybe Bool
dryRun = Maybe Bool
a} :: DescribeEgressOnlyInternetGateways)
describeEgressOnlyInternetGateways_egressOnlyInternetGatewayIds :: Lens.Lens' DescribeEgressOnlyInternetGateways (Prelude.Maybe [Prelude.Text])
describeEgressOnlyInternetGateways_egressOnlyInternetGatewayIds :: Lens' DescribeEgressOnlyInternetGateways (Maybe [Text])
describeEgressOnlyInternetGateways_egressOnlyInternetGatewayIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEgressOnlyInternetGateways' {Maybe [Text]
egressOnlyInternetGatewayIds :: Maybe [Text]
$sel:egressOnlyInternetGatewayIds:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe [Text]
egressOnlyInternetGatewayIds} -> Maybe [Text]
egressOnlyInternetGatewayIds) (\s :: DescribeEgressOnlyInternetGateways
s@DescribeEgressOnlyInternetGateways' {} Maybe [Text]
a -> DescribeEgressOnlyInternetGateways
s {$sel:egressOnlyInternetGatewayIds:DescribeEgressOnlyInternetGateways' :: Maybe [Text]
egressOnlyInternetGatewayIds = Maybe [Text]
a} :: DescribeEgressOnlyInternetGateways) 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
describeEgressOnlyInternetGateways_filters :: Lens.Lens' DescribeEgressOnlyInternetGateways (Prelude.Maybe [Filter])
describeEgressOnlyInternetGateways_filters :: Lens' DescribeEgressOnlyInternetGateways (Maybe [Filter])
describeEgressOnlyInternetGateways_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEgressOnlyInternetGateways' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeEgressOnlyInternetGateways
s@DescribeEgressOnlyInternetGateways' {} Maybe [Filter]
a -> DescribeEgressOnlyInternetGateways
s {$sel:filters:DescribeEgressOnlyInternetGateways' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeEgressOnlyInternetGateways) 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
describeEgressOnlyInternetGateways_maxResults :: Lens.Lens' DescribeEgressOnlyInternetGateways (Prelude.Maybe Prelude.Natural)
describeEgressOnlyInternetGateways_maxResults :: Lens' DescribeEgressOnlyInternetGateways (Maybe Natural)
describeEgressOnlyInternetGateways_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEgressOnlyInternetGateways' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeEgressOnlyInternetGateways
s@DescribeEgressOnlyInternetGateways' {} Maybe Natural
a -> DescribeEgressOnlyInternetGateways
s {$sel:maxResults:DescribeEgressOnlyInternetGateways' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeEgressOnlyInternetGateways)
describeEgressOnlyInternetGateways_nextToken :: Lens.Lens' DescribeEgressOnlyInternetGateways (Prelude.Maybe Prelude.Text)
describeEgressOnlyInternetGateways_nextToken :: Lens' DescribeEgressOnlyInternetGateways (Maybe Text)
describeEgressOnlyInternetGateways_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEgressOnlyInternetGateways' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeEgressOnlyInternetGateways
s@DescribeEgressOnlyInternetGateways' {} Maybe Text
a -> DescribeEgressOnlyInternetGateways
s {$sel:nextToken:DescribeEgressOnlyInternetGateways' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeEgressOnlyInternetGateways)
instance
Core.AWSPager
DescribeEgressOnlyInternetGateways
where
page :: DescribeEgressOnlyInternetGateways
-> AWSResponse DescribeEgressOnlyInternetGateways
-> Maybe DescribeEgressOnlyInternetGateways
page DescribeEgressOnlyInternetGateways
rq AWSResponse DescribeEgressOnlyInternetGateways
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeEgressOnlyInternetGateways
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeEgressOnlyInternetGatewaysResponse (Maybe Text)
describeEgressOnlyInternetGatewaysResponse_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 DescribeEgressOnlyInternetGateways
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
DescribeEgressOnlyInternetGatewaysResponse
(Maybe [EgressOnlyInternetGateway])
describeEgressOnlyInternetGatewaysResponse_egressOnlyInternetGateways
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.$ DescribeEgressOnlyInternetGateways
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' DescribeEgressOnlyInternetGateways (Maybe Text)
describeEgressOnlyInternetGateways_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeEgressOnlyInternetGateways
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeEgressOnlyInternetGatewaysResponse (Maybe Text)
describeEgressOnlyInternetGatewaysResponse_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
DescribeEgressOnlyInternetGateways
where
type
AWSResponse DescribeEgressOnlyInternetGateways =
DescribeEgressOnlyInternetGatewaysResponse
request :: (Service -> Service)
-> DescribeEgressOnlyInternetGateways
-> Request DescribeEgressOnlyInternetGateways
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 DescribeEgressOnlyInternetGateways
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeEgressOnlyInternetGateways)))
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 [EgressOnlyInternetGateway]
-> Maybe Text -> Int -> DescribeEgressOnlyInternetGatewaysResponse
DescribeEgressOnlyInternetGatewaysResponse'
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
"egressOnlyInternetGatewaySet"
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
DescribeEgressOnlyInternetGateways
where
hashWithSalt :: Int -> DescribeEgressOnlyInternetGateways -> Int
hashWithSalt
Int
_salt
DescribeEgressOnlyInternetGateways' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
egressOnlyInternetGatewayIds :: Maybe [Text]
dryRun :: Maybe Bool
$sel:nextToken:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe Text
$sel:maxResults:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe Natural
$sel:filters:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe [Filter]
$sel:egressOnlyInternetGatewayIds:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe [Text]
$sel:dryRun:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> 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 [Text]
egressOnlyInternetGatewayIds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Filter]
filters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
instance
Prelude.NFData
DescribeEgressOnlyInternetGateways
where
rnf :: DescribeEgressOnlyInternetGateways -> ()
rnf DescribeEgressOnlyInternetGateways' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
egressOnlyInternetGatewayIds :: Maybe [Text]
dryRun :: Maybe Bool
$sel:nextToken:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe Text
$sel:maxResults:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe Natural
$sel:filters:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe [Filter]
$sel:egressOnlyInternetGatewayIds:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe [Text]
$sel:dryRun:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> 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 [Text]
egressOnlyInternetGatewayIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Filter]
filters
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
instance
Data.ToHeaders
DescribeEgressOnlyInternetGateways
where
toHeaders :: DescribeEgressOnlyInternetGateways -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance
Data.ToPath
DescribeEgressOnlyInternetGateways
where
toPath :: DescribeEgressOnlyInternetGateways -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Data.ToQuery
DescribeEgressOnlyInternetGateways
where
toQuery :: DescribeEgressOnlyInternetGateways -> QueryString
toQuery DescribeEgressOnlyInternetGateways' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
egressOnlyInternetGatewayIds :: Maybe [Text]
dryRun :: Maybe Bool
$sel:nextToken:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe Text
$sel:maxResults:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe Natural
$sel:filters:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe [Filter]
$sel:egressOnlyInternetGatewayIds:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe [Text]
$sel:dryRun:DescribeEgressOnlyInternetGateways' :: DescribeEgressOnlyInternetGateways -> Maybe Bool
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: ( ByteString
"DescribeEgressOnlyInternetGateways" ::
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
"EgressOnlyInternetGatewayId"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
egressOnlyInternetGatewayIds
),
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]
filters),
ByteString
"MaxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
ByteString
"NextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
]
data DescribeEgressOnlyInternetGatewaysResponse = DescribeEgressOnlyInternetGatewaysResponse'
{
DescribeEgressOnlyInternetGatewaysResponse
-> Maybe [EgressOnlyInternetGateway]
egressOnlyInternetGateways :: Prelude.Maybe [EgressOnlyInternetGateway],
DescribeEgressOnlyInternetGatewaysResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeEgressOnlyInternetGatewaysResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeEgressOnlyInternetGatewaysResponse
-> DescribeEgressOnlyInternetGatewaysResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEgressOnlyInternetGatewaysResponse
-> DescribeEgressOnlyInternetGatewaysResponse -> Bool
$c/= :: DescribeEgressOnlyInternetGatewaysResponse
-> DescribeEgressOnlyInternetGatewaysResponse -> Bool
== :: DescribeEgressOnlyInternetGatewaysResponse
-> DescribeEgressOnlyInternetGatewaysResponse -> Bool
$c== :: DescribeEgressOnlyInternetGatewaysResponse
-> DescribeEgressOnlyInternetGatewaysResponse -> Bool
Prelude.Eq, ReadPrec [DescribeEgressOnlyInternetGatewaysResponse]
ReadPrec DescribeEgressOnlyInternetGatewaysResponse
Int -> ReadS DescribeEgressOnlyInternetGatewaysResponse
ReadS [DescribeEgressOnlyInternetGatewaysResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEgressOnlyInternetGatewaysResponse]
$creadListPrec :: ReadPrec [DescribeEgressOnlyInternetGatewaysResponse]
readPrec :: ReadPrec DescribeEgressOnlyInternetGatewaysResponse
$creadPrec :: ReadPrec DescribeEgressOnlyInternetGatewaysResponse
readList :: ReadS [DescribeEgressOnlyInternetGatewaysResponse]
$creadList :: ReadS [DescribeEgressOnlyInternetGatewaysResponse]
readsPrec :: Int -> ReadS DescribeEgressOnlyInternetGatewaysResponse
$creadsPrec :: Int -> ReadS DescribeEgressOnlyInternetGatewaysResponse
Prelude.Read, Int -> DescribeEgressOnlyInternetGatewaysResponse -> ShowS
[DescribeEgressOnlyInternetGatewaysResponse] -> ShowS
DescribeEgressOnlyInternetGatewaysResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEgressOnlyInternetGatewaysResponse] -> ShowS
$cshowList :: [DescribeEgressOnlyInternetGatewaysResponse] -> ShowS
show :: DescribeEgressOnlyInternetGatewaysResponse -> String
$cshow :: DescribeEgressOnlyInternetGatewaysResponse -> String
showsPrec :: Int -> DescribeEgressOnlyInternetGatewaysResponse -> ShowS
$cshowsPrec :: Int -> DescribeEgressOnlyInternetGatewaysResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeEgressOnlyInternetGatewaysResponse x
-> DescribeEgressOnlyInternetGatewaysResponse
forall x.
DescribeEgressOnlyInternetGatewaysResponse
-> Rep DescribeEgressOnlyInternetGatewaysResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeEgressOnlyInternetGatewaysResponse x
-> DescribeEgressOnlyInternetGatewaysResponse
$cfrom :: forall x.
DescribeEgressOnlyInternetGatewaysResponse
-> Rep DescribeEgressOnlyInternetGatewaysResponse x
Prelude.Generic)
newDescribeEgressOnlyInternetGatewaysResponse ::
Prelude.Int ->
DescribeEgressOnlyInternetGatewaysResponse
newDescribeEgressOnlyInternetGatewaysResponse :: Int -> DescribeEgressOnlyInternetGatewaysResponse
newDescribeEgressOnlyInternetGatewaysResponse
Int
pHttpStatus_ =
DescribeEgressOnlyInternetGatewaysResponse'
{ $sel:egressOnlyInternetGateways:DescribeEgressOnlyInternetGatewaysResponse' :: Maybe [EgressOnlyInternetGateway]
egressOnlyInternetGateways =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeEgressOnlyInternetGatewaysResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeEgressOnlyInternetGatewaysResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeEgressOnlyInternetGatewaysResponse_egressOnlyInternetGateways :: Lens.Lens' DescribeEgressOnlyInternetGatewaysResponse (Prelude.Maybe [EgressOnlyInternetGateway])
describeEgressOnlyInternetGatewaysResponse_egressOnlyInternetGateways :: Lens'
DescribeEgressOnlyInternetGatewaysResponse
(Maybe [EgressOnlyInternetGateway])
describeEgressOnlyInternetGatewaysResponse_egressOnlyInternetGateways = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEgressOnlyInternetGatewaysResponse' {Maybe [EgressOnlyInternetGateway]
egressOnlyInternetGateways :: Maybe [EgressOnlyInternetGateway]
$sel:egressOnlyInternetGateways:DescribeEgressOnlyInternetGatewaysResponse' :: DescribeEgressOnlyInternetGatewaysResponse
-> Maybe [EgressOnlyInternetGateway]
egressOnlyInternetGateways} -> Maybe [EgressOnlyInternetGateway]
egressOnlyInternetGateways) (\s :: DescribeEgressOnlyInternetGatewaysResponse
s@DescribeEgressOnlyInternetGatewaysResponse' {} Maybe [EgressOnlyInternetGateway]
a -> DescribeEgressOnlyInternetGatewaysResponse
s {$sel:egressOnlyInternetGateways:DescribeEgressOnlyInternetGatewaysResponse' :: Maybe [EgressOnlyInternetGateway]
egressOnlyInternetGateways = Maybe [EgressOnlyInternetGateway]
a} :: DescribeEgressOnlyInternetGatewaysResponse) 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
describeEgressOnlyInternetGatewaysResponse_nextToken :: Lens.Lens' DescribeEgressOnlyInternetGatewaysResponse (Prelude.Maybe Prelude.Text)
describeEgressOnlyInternetGatewaysResponse_nextToken :: Lens' DescribeEgressOnlyInternetGatewaysResponse (Maybe Text)
describeEgressOnlyInternetGatewaysResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEgressOnlyInternetGatewaysResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeEgressOnlyInternetGatewaysResponse' :: DescribeEgressOnlyInternetGatewaysResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeEgressOnlyInternetGatewaysResponse
s@DescribeEgressOnlyInternetGatewaysResponse' {} Maybe Text
a -> DescribeEgressOnlyInternetGatewaysResponse
s {$sel:nextToken:DescribeEgressOnlyInternetGatewaysResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeEgressOnlyInternetGatewaysResponse)
describeEgressOnlyInternetGatewaysResponse_httpStatus :: Lens.Lens' DescribeEgressOnlyInternetGatewaysResponse Prelude.Int
describeEgressOnlyInternetGatewaysResponse_httpStatus :: Lens' DescribeEgressOnlyInternetGatewaysResponse Int
describeEgressOnlyInternetGatewaysResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEgressOnlyInternetGatewaysResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeEgressOnlyInternetGatewaysResponse' :: DescribeEgressOnlyInternetGatewaysResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeEgressOnlyInternetGatewaysResponse
s@DescribeEgressOnlyInternetGatewaysResponse' {} Int
a -> DescribeEgressOnlyInternetGatewaysResponse
s {$sel:httpStatus:DescribeEgressOnlyInternetGatewaysResponse' :: Int
httpStatus = Int
a} :: DescribeEgressOnlyInternetGatewaysResponse)
instance
Prelude.NFData
DescribeEgressOnlyInternetGatewaysResponse
where
rnf :: DescribeEgressOnlyInternetGatewaysResponse -> ()
rnf DescribeEgressOnlyInternetGatewaysResponse' {Int
Maybe [EgressOnlyInternetGateway]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
egressOnlyInternetGateways :: Maybe [EgressOnlyInternetGateway]
$sel:httpStatus:DescribeEgressOnlyInternetGatewaysResponse' :: DescribeEgressOnlyInternetGatewaysResponse -> Int
$sel:nextToken:DescribeEgressOnlyInternetGatewaysResponse' :: DescribeEgressOnlyInternetGatewaysResponse -> Maybe Text
$sel:egressOnlyInternetGateways:DescribeEgressOnlyInternetGatewaysResponse' :: DescribeEgressOnlyInternetGatewaysResponse
-> Maybe [EgressOnlyInternetGateway]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [EgressOnlyInternetGateway]
egressOnlyInternetGateways
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