{-# 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.GetTransitGatewayRouteTableAssociations
(
GetTransitGatewayRouteTableAssociations (..),
newGetTransitGatewayRouteTableAssociations,
getTransitGatewayRouteTableAssociations_dryRun,
getTransitGatewayRouteTableAssociations_filters,
getTransitGatewayRouteTableAssociations_maxResults,
getTransitGatewayRouteTableAssociations_nextToken,
getTransitGatewayRouteTableAssociations_transitGatewayRouteTableId,
GetTransitGatewayRouteTableAssociationsResponse (..),
newGetTransitGatewayRouteTableAssociationsResponse,
getTransitGatewayRouteTableAssociationsResponse_associations,
getTransitGatewayRouteTableAssociationsResponse_nextToken,
getTransitGatewayRouteTableAssociationsResponse_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 GetTransitGatewayRouteTableAssociations = GetTransitGatewayRouteTableAssociations'
{
GetTransitGatewayRouteTableAssociations -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
GetTransitGatewayRouteTableAssociations -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
GetTransitGatewayRouteTableAssociations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetTransitGatewayRouteTableAssociations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetTransitGatewayRouteTableAssociations -> Text
transitGatewayRouteTableId :: Prelude.Text
}
deriving (GetTransitGatewayRouteTableAssociations
-> GetTransitGatewayRouteTableAssociations -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetTransitGatewayRouteTableAssociations
-> GetTransitGatewayRouteTableAssociations -> Bool
$c/= :: GetTransitGatewayRouteTableAssociations
-> GetTransitGatewayRouteTableAssociations -> Bool
== :: GetTransitGatewayRouteTableAssociations
-> GetTransitGatewayRouteTableAssociations -> Bool
$c== :: GetTransitGatewayRouteTableAssociations
-> GetTransitGatewayRouteTableAssociations -> Bool
Prelude.Eq, ReadPrec [GetTransitGatewayRouteTableAssociations]
ReadPrec GetTransitGatewayRouteTableAssociations
Int -> ReadS GetTransitGatewayRouteTableAssociations
ReadS [GetTransitGatewayRouteTableAssociations]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetTransitGatewayRouteTableAssociations]
$creadListPrec :: ReadPrec [GetTransitGatewayRouteTableAssociations]
readPrec :: ReadPrec GetTransitGatewayRouteTableAssociations
$creadPrec :: ReadPrec GetTransitGatewayRouteTableAssociations
readList :: ReadS [GetTransitGatewayRouteTableAssociations]
$creadList :: ReadS [GetTransitGatewayRouteTableAssociations]
readsPrec :: Int -> ReadS GetTransitGatewayRouteTableAssociations
$creadsPrec :: Int -> ReadS GetTransitGatewayRouteTableAssociations
Prelude.Read, Int -> GetTransitGatewayRouteTableAssociations -> ShowS
[GetTransitGatewayRouteTableAssociations] -> ShowS
GetTransitGatewayRouteTableAssociations -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetTransitGatewayRouteTableAssociations] -> ShowS
$cshowList :: [GetTransitGatewayRouteTableAssociations] -> ShowS
show :: GetTransitGatewayRouteTableAssociations -> String
$cshow :: GetTransitGatewayRouteTableAssociations -> String
showsPrec :: Int -> GetTransitGatewayRouteTableAssociations -> ShowS
$cshowsPrec :: Int -> GetTransitGatewayRouteTableAssociations -> ShowS
Prelude.Show, forall x.
Rep GetTransitGatewayRouteTableAssociations x
-> GetTransitGatewayRouteTableAssociations
forall x.
GetTransitGatewayRouteTableAssociations
-> Rep GetTransitGatewayRouteTableAssociations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetTransitGatewayRouteTableAssociations x
-> GetTransitGatewayRouteTableAssociations
$cfrom :: forall x.
GetTransitGatewayRouteTableAssociations
-> Rep GetTransitGatewayRouteTableAssociations x
Prelude.Generic)
newGetTransitGatewayRouteTableAssociations ::
Prelude.Text ->
GetTransitGatewayRouteTableAssociations
newGetTransitGatewayRouteTableAssociations :: Text -> GetTransitGatewayRouteTableAssociations
newGetTransitGatewayRouteTableAssociations
Text
pTransitGatewayRouteTableId_ =
GetTransitGatewayRouteTableAssociations'
{ $sel:dryRun:GetTransitGatewayRouteTableAssociations' :: Maybe Bool
dryRun =
forall a. Maybe a
Prelude.Nothing,
$sel:filters:GetTransitGatewayRouteTableAssociations' :: Maybe [Filter]
filters = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetTransitGatewayRouteTableAssociations' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetTransitGatewayRouteTableAssociations' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:transitGatewayRouteTableId:GetTransitGatewayRouteTableAssociations' :: Text
transitGatewayRouteTableId =
Text
pTransitGatewayRouteTableId_
}
getTransitGatewayRouteTableAssociations_dryRun :: Lens.Lens' GetTransitGatewayRouteTableAssociations (Prelude.Maybe Prelude.Bool)
getTransitGatewayRouteTableAssociations_dryRun :: Lens' GetTransitGatewayRouteTableAssociations (Maybe Bool)
getTransitGatewayRouteTableAssociations_dryRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayRouteTableAssociations' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: GetTransitGatewayRouteTableAssociations
s@GetTransitGatewayRouteTableAssociations' {} Maybe Bool
a -> GetTransitGatewayRouteTableAssociations
s {$sel:dryRun:GetTransitGatewayRouteTableAssociations' :: Maybe Bool
dryRun = Maybe Bool
a} :: GetTransitGatewayRouteTableAssociations)
getTransitGatewayRouteTableAssociations_filters :: Lens.Lens' GetTransitGatewayRouteTableAssociations (Prelude.Maybe [Filter])
getTransitGatewayRouteTableAssociations_filters :: Lens' GetTransitGatewayRouteTableAssociations (Maybe [Filter])
getTransitGatewayRouteTableAssociations_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayRouteTableAssociations' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: GetTransitGatewayRouteTableAssociations
s@GetTransitGatewayRouteTableAssociations' {} Maybe [Filter]
a -> GetTransitGatewayRouteTableAssociations
s {$sel:filters:GetTransitGatewayRouteTableAssociations' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: GetTransitGatewayRouteTableAssociations) 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
getTransitGatewayRouteTableAssociations_maxResults :: Lens.Lens' GetTransitGatewayRouteTableAssociations (Prelude.Maybe Prelude.Natural)
getTransitGatewayRouteTableAssociations_maxResults :: Lens' GetTransitGatewayRouteTableAssociations (Maybe Natural)
getTransitGatewayRouteTableAssociations_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayRouteTableAssociations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetTransitGatewayRouteTableAssociations
s@GetTransitGatewayRouteTableAssociations' {} Maybe Natural
a -> GetTransitGatewayRouteTableAssociations
s {$sel:maxResults:GetTransitGatewayRouteTableAssociations' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetTransitGatewayRouteTableAssociations)
getTransitGatewayRouteTableAssociations_nextToken :: Lens.Lens' GetTransitGatewayRouteTableAssociations (Prelude.Maybe Prelude.Text)
getTransitGatewayRouteTableAssociations_nextToken :: Lens' GetTransitGatewayRouteTableAssociations (Maybe Text)
getTransitGatewayRouteTableAssociations_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayRouteTableAssociations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetTransitGatewayRouteTableAssociations
s@GetTransitGatewayRouteTableAssociations' {} Maybe Text
a -> GetTransitGatewayRouteTableAssociations
s {$sel:nextToken:GetTransitGatewayRouteTableAssociations' :: Maybe Text
nextToken = Maybe Text
a} :: GetTransitGatewayRouteTableAssociations)
getTransitGatewayRouteTableAssociations_transitGatewayRouteTableId :: Lens.Lens' GetTransitGatewayRouteTableAssociations Prelude.Text
getTransitGatewayRouteTableAssociations_transitGatewayRouteTableId :: Lens' GetTransitGatewayRouteTableAssociations Text
getTransitGatewayRouteTableAssociations_transitGatewayRouteTableId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayRouteTableAssociations' {Text
transitGatewayRouteTableId :: Text
$sel:transitGatewayRouteTableId:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Text
transitGatewayRouteTableId} -> Text
transitGatewayRouteTableId) (\s :: GetTransitGatewayRouteTableAssociations
s@GetTransitGatewayRouteTableAssociations' {} Text
a -> GetTransitGatewayRouteTableAssociations
s {$sel:transitGatewayRouteTableId:GetTransitGatewayRouteTableAssociations' :: Text
transitGatewayRouteTableId = Text
a} :: GetTransitGatewayRouteTableAssociations)
instance
Core.AWSPager
GetTransitGatewayRouteTableAssociations
where
page :: GetTransitGatewayRouteTableAssociations
-> AWSResponse GetTransitGatewayRouteTableAssociations
-> Maybe GetTransitGatewayRouteTableAssociations
page GetTransitGatewayRouteTableAssociations
rq AWSResponse GetTransitGatewayRouteTableAssociations
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetTransitGatewayRouteTableAssociations
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetTransitGatewayRouteTableAssociationsResponse (Maybe Text)
getTransitGatewayRouteTableAssociationsResponse_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 GetTransitGatewayRouteTableAssociations
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
GetTransitGatewayRouteTableAssociationsResponse
(Maybe [TransitGatewayRouteTableAssociation])
getTransitGatewayRouteTableAssociationsResponse_associations
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.$ GetTransitGatewayRouteTableAssociations
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' GetTransitGatewayRouteTableAssociations (Maybe Text)
getTransitGatewayRouteTableAssociations_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetTransitGatewayRouteTableAssociations
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetTransitGatewayRouteTableAssociationsResponse (Maybe Text)
getTransitGatewayRouteTableAssociationsResponse_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
GetTransitGatewayRouteTableAssociations
where
type
AWSResponse
GetTransitGatewayRouteTableAssociations =
GetTransitGatewayRouteTableAssociationsResponse
request :: (Service -> Service)
-> GetTransitGatewayRouteTableAssociations
-> Request GetTransitGatewayRouteTableAssociations
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 GetTransitGatewayRouteTableAssociations
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse GetTransitGatewayRouteTableAssociations)))
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 [TransitGatewayRouteTableAssociation]
-> Maybe Text
-> Int
-> GetTransitGatewayRouteTableAssociationsResponse
GetTransitGatewayRouteTableAssociationsResponse'
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
"associations"
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
GetTransitGatewayRouteTableAssociations
where
hashWithSalt :: Int -> GetTransitGatewayRouteTableAssociations -> Int
hashWithSalt
Int
_salt
GetTransitGatewayRouteTableAssociations' {Maybe Bool
Maybe Natural
Maybe [Filter]
Maybe Text
Text
transitGatewayRouteTableId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:transitGatewayRouteTableId:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Text
$sel:nextToken:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Maybe Text
$sel:maxResults:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Maybe Natural
$sel:filters:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Maybe [Filter]
$sel:dryRun:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> 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]
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
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
transitGatewayRouteTableId
instance
Prelude.NFData
GetTransitGatewayRouteTableAssociations
where
rnf :: GetTransitGatewayRouteTableAssociations -> ()
rnf GetTransitGatewayRouteTableAssociations' {Maybe Bool
Maybe Natural
Maybe [Filter]
Maybe Text
Text
transitGatewayRouteTableId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:transitGatewayRouteTableId:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Text
$sel:nextToken:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Maybe Text
$sel:maxResults:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Maybe Natural
$sel:filters:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Maybe [Filter]
$sel:dryRun:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> 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]
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
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
transitGatewayRouteTableId
instance
Data.ToHeaders
GetTransitGatewayRouteTableAssociations
where
toHeaders :: GetTransitGatewayRouteTableAssociations -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance
Data.ToPath
GetTransitGatewayRouteTableAssociations
where
toPath :: GetTransitGatewayRouteTableAssociations -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Data.ToQuery
GetTransitGatewayRouteTableAssociations
where
toQuery :: GetTransitGatewayRouteTableAssociations -> QueryString
toQuery GetTransitGatewayRouteTableAssociations' {Maybe Bool
Maybe Natural
Maybe [Filter]
Maybe Text
Text
transitGatewayRouteTableId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:transitGatewayRouteTableId:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Text
$sel:nextToken:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Maybe Text
$sel:maxResults:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Maybe Natural
$sel:filters:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Maybe [Filter]
$sel:dryRun:GetTransitGatewayRouteTableAssociations' :: GetTransitGatewayRouteTableAssociations -> Maybe Bool
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: ( ByteString
"GetTransitGatewayRouteTableAssociations" ::
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]
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,
ByteString
"TransitGatewayRouteTableId"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
transitGatewayRouteTableId
]
data GetTransitGatewayRouteTableAssociationsResponse = GetTransitGatewayRouteTableAssociationsResponse'
{
GetTransitGatewayRouteTableAssociationsResponse
-> Maybe [TransitGatewayRouteTableAssociation]
associations :: Prelude.Maybe [TransitGatewayRouteTableAssociation],
GetTransitGatewayRouteTableAssociationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetTransitGatewayRouteTableAssociationsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetTransitGatewayRouteTableAssociationsResponse
-> GetTransitGatewayRouteTableAssociationsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetTransitGatewayRouteTableAssociationsResponse
-> GetTransitGatewayRouteTableAssociationsResponse -> Bool
$c/= :: GetTransitGatewayRouteTableAssociationsResponse
-> GetTransitGatewayRouteTableAssociationsResponse -> Bool
== :: GetTransitGatewayRouteTableAssociationsResponse
-> GetTransitGatewayRouteTableAssociationsResponse -> Bool
$c== :: GetTransitGatewayRouteTableAssociationsResponse
-> GetTransitGatewayRouteTableAssociationsResponse -> Bool
Prelude.Eq, ReadPrec [GetTransitGatewayRouteTableAssociationsResponse]
ReadPrec GetTransitGatewayRouteTableAssociationsResponse
Int -> ReadS GetTransitGatewayRouteTableAssociationsResponse
ReadS [GetTransitGatewayRouteTableAssociationsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetTransitGatewayRouteTableAssociationsResponse]
$creadListPrec :: ReadPrec [GetTransitGatewayRouteTableAssociationsResponse]
readPrec :: ReadPrec GetTransitGatewayRouteTableAssociationsResponse
$creadPrec :: ReadPrec GetTransitGatewayRouteTableAssociationsResponse
readList :: ReadS [GetTransitGatewayRouteTableAssociationsResponse]
$creadList :: ReadS [GetTransitGatewayRouteTableAssociationsResponse]
readsPrec :: Int -> ReadS GetTransitGatewayRouteTableAssociationsResponse
$creadsPrec :: Int -> ReadS GetTransitGatewayRouteTableAssociationsResponse
Prelude.Read, Int -> GetTransitGatewayRouteTableAssociationsResponse -> ShowS
[GetTransitGatewayRouteTableAssociationsResponse] -> ShowS
GetTransitGatewayRouteTableAssociationsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetTransitGatewayRouteTableAssociationsResponse] -> ShowS
$cshowList :: [GetTransitGatewayRouteTableAssociationsResponse] -> ShowS
show :: GetTransitGatewayRouteTableAssociationsResponse -> String
$cshow :: GetTransitGatewayRouteTableAssociationsResponse -> String
showsPrec :: Int -> GetTransitGatewayRouteTableAssociationsResponse -> ShowS
$cshowsPrec :: Int -> GetTransitGatewayRouteTableAssociationsResponse -> ShowS
Prelude.Show, forall x.
Rep GetTransitGatewayRouteTableAssociationsResponse x
-> GetTransitGatewayRouteTableAssociationsResponse
forall x.
GetTransitGatewayRouteTableAssociationsResponse
-> Rep GetTransitGatewayRouteTableAssociationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetTransitGatewayRouteTableAssociationsResponse x
-> GetTransitGatewayRouteTableAssociationsResponse
$cfrom :: forall x.
GetTransitGatewayRouteTableAssociationsResponse
-> Rep GetTransitGatewayRouteTableAssociationsResponse x
Prelude.Generic)
newGetTransitGatewayRouteTableAssociationsResponse ::
Prelude.Int ->
GetTransitGatewayRouteTableAssociationsResponse
newGetTransitGatewayRouteTableAssociationsResponse :: Int -> GetTransitGatewayRouteTableAssociationsResponse
newGetTransitGatewayRouteTableAssociationsResponse
Int
pHttpStatus_ =
GetTransitGatewayRouteTableAssociationsResponse'
{ $sel:associations:GetTransitGatewayRouteTableAssociationsResponse' :: Maybe [TransitGatewayRouteTableAssociation]
associations =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetTransitGatewayRouteTableAssociationsResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetTransitGatewayRouteTableAssociationsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getTransitGatewayRouteTableAssociationsResponse_associations :: Lens.Lens' GetTransitGatewayRouteTableAssociationsResponse (Prelude.Maybe [TransitGatewayRouteTableAssociation])
getTransitGatewayRouteTableAssociationsResponse_associations :: Lens'
GetTransitGatewayRouteTableAssociationsResponse
(Maybe [TransitGatewayRouteTableAssociation])
getTransitGatewayRouteTableAssociationsResponse_associations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayRouteTableAssociationsResponse' {Maybe [TransitGatewayRouteTableAssociation]
associations :: Maybe [TransitGatewayRouteTableAssociation]
$sel:associations:GetTransitGatewayRouteTableAssociationsResponse' :: GetTransitGatewayRouteTableAssociationsResponse
-> Maybe [TransitGatewayRouteTableAssociation]
associations} -> Maybe [TransitGatewayRouteTableAssociation]
associations) (\s :: GetTransitGatewayRouteTableAssociationsResponse
s@GetTransitGatewayRouteTableAssociationsResponse' {} Maybe [TransitGatewayRouteTableAssociation]
a -> GetTransitGatewayRouteTableAssociationsResponse
s {$sel:associations:GetTransitGatewayRouteTableAssociationsResponse' :: Maybe [TransitGatewayRouteTableAssociation]
associations = Maybe [TransitGatewayRouteTableAssociation]
a} :: GetTransitGatewayRouteTableAssociationsResponse) 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
getTransitGatewayRouteTableAssociationsResponse_nextToken :: Lens.Lens' GetTransitGatewayRouteTableAssociationsResponse (Prelude.Maybe Prelude.Text)
getTransitGatewayRouteTableAssociationsResponse_nextToken :: Lens' GetTransitGatewayRouteTableAssociationsResponse (Maybe Text)
getTransitGatewayRouteTableAssociationsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayRouteTableAssociationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetTransitGatewayRouteTableAssociationsResponse' :: GetTransitGatewayRouteTableAssociationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetTransitGatewayRouteTableAssociationsResponse
s@GetTransitGatewayRouteTableAssociationsResponse' {} Maybe Text
a -> GetTransitGatewayRouteTableAssociationsResponse
s {$sel:nextToken:GetTransitGatewayRouteTableAssociationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetTransitGatewayRouteTableAssociationsResponse)
getTransitGatewayRouteTableAssociationsResponse_httpStatus :: Lens.Lens' GetTransitGatewayRouteTableAssociationsResponse Prelude.Int
getTransitGatewayRouteTableAssociationsResponse_httpStatus :: Lens' GetTransitGatewayRouteTableAssociationsResponse Int
getTransitGatewayRouteTableAssociationsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayRouteTableAssociationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetTransitGatewayRouteTableAssociationsResponse' :: GetTransitGatewayRouteTableAssociationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetTransitGatewayRouteTableAssociationsResponse
s@GetTransitGatewayRouteTableAssociationsResponse' {} Int
a -> GetTransitGatewayRouteTableAssociationsResponse
s {$sel:httpStatus:GetTransitGatewayRouteTableAssociationsResponse' :: Int
httpStatus = Int
a} :: GetTransitGatewayRouteTableAssociationsResponse)
instance
Prelude.NFData
GetTransitGatewayRouteTableAssociationsResponse
where
rnf :: GetTransitGatewayRouteTableAssociationsResponse -> ()
rnf
GetTransitGatewayRouteTableAssociationsResponse' {Int
Maybe [TransitGatewayRouteTableAssociation]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
associations :: Maybe [TransitGatewayRouteTableAssociation]
$sel:httpStatus:GetTransitGatewayRouteTableAssociationsResponse' :: GetTransitGatewayRouteTableAssociationsResponse -> Int
$sel:nextToken:GetTransitGatewayRouteTableAssociationsResponse' :: GetTransitGatewayRouteTableAssociationsResponse -> Maybe Text
$sel:associations:GetTransitGatewayRouteTableAssociationsResponse' :: GetTransitGatewayRouteTableAssociationsResponse
-> Maybe [TransitGatewayRouteTableAssociation]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [TransitGatewayRouteTableAssociation]
associations
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