{-# 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.GetTransitGatewayPolicyTableAssociations
(
GetTransitGatewayPolicyTableAssociations (..),
newGetTransitGatewayPolicyTableAssociations,
getTransitGatewayPolicyTableAssociations_dryRun,
getTransitGatewayPolicyTableAssociations_filters,
getTransitGatewayPolicyTableAssociations_maxResults,
getTransitGatewayPolicyTableAssociations_nextToken,
getTransitGatewayPolicyTableAssociations_transitGatewayPolicyTableId,
GetTransitGatewayPolicyTableAssociationsResponse (..),
newGetTransitGatewayPolicyTableAssociationsResponse,
getTransitGatewayPolicyTableAssociationsResponse_associations,
getTransitGatewayPolicyTableAssociationsResponse_nextToken,
getTransitGatewayPolicyTableAssociationsResponse_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 GetTransitGatewayPolicyTableAssociations = GetTransitGatewayPolicyTableAssociations'
{
GetTransitGatewayPolicyTableAssociations -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
GetTransitGatewayPolicyTableAssociations -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
GetTransitGatewayPolicyTableAssociations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetTransitGatewayPolicyTableAssociations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetTransitGatewayPolicyTableAssociations -> Text
transitGatewayPolicyTableId :: Prelude.Text
}
deriving (GetTransitGatewayPolicyTableAssociations
-> GetTransitGatewayPolicyTableAssociations -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetTransitGatewayPolicyTableAssociations
-> GetTransitGatewayPolicyTableAssociations -> Bool
$c/= :: GetTransitGatewayPolicyTableAssociations
-> GetTransitGatewayPolicyTableAssociations -> Bool
== :: GetTransitGatewayPolicyTableAssociations
-> GetTransitGatewayPolicyTableAssociations -> Bool
$c== :: GetTransitGatewayPolicyTableAssociations
-> GetTransitGatewayPolicyTableAssociations -> Bool
Prelude.Eq, ReadPrec [GetTransitGatewayPolicyTableAssociations]
ReadPrec GetTransitGatewayPolicyTableAssociations
Int -> ReadS GetTransitGatewayPolicyTableAssociations
ReadS [GetTransitGatewayPolicyTableAssociations]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetTransitGatewayPolicyTableAssociations]
$creadListPrec :: ReadPrec [GetTransitGatewayPolicyTableAssociations]
readPrec :: ReadPrec GetTransitGatewayPolicyTableAssociations
$creadPrec :: ReadPrec GetTransitGatewayPolicyTableAssociations
readList :: ReadS [GetTransitGatewayPolicyTableAssociations]
$creadList :: ReadS [GetTransitGatewayPolicyTableAssociations]
readsPrec :: Int -> ReadS GetTransitGatewayPolicyTableAssociations
$creadsPrec :: Int -> ReadS GetTransitGatewayPolicyTableAssociations
Prelude.Read, Int -> GetTransitGatewayPolicyTableAssociations -> ShowS
[GetTransitGatewayPolicyTableAssociations] -> ShowS
GetTransitGatewayPolicyTableAssociations -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetTransitGatewayPolicyTableAssociations] -> ShowS
$cshowList :: [GetTransitGatewayPolicyTableAssociations] -> ShowS
show :: GetTransitGatewayPolicyTableAssociations -> String
$cshow :: GetTransitGatewayPolicyTableAssociations -> String
showsPrec :: Int -> GetTransitGatewayPolicyTableAssociations -> ShowS
$cshowsPrec :: Int -> GetTransitGatewayPolicyTableAssociations -> ShowS
Prelude.Show, forall x.
Rep GetTransitGatewayPolicyTableAssociations x
-> GetTransitGatewayPolicyTableAssociations
forall x.
GetTransitGatewayPolicyTableAssociations
-> Rep GetTransitGatewayPolicyTableAssociations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetTransitGatewayPolicyTableAssociations x
-> GetTransitGatewayPolicyTableAssociations
$cfrom :: forall x.
GetTransitGatewayPolicyTableAssociations
-> Rep GetTransitGatewayPolicyTableAssociations x
Prelude.Generic)
newGetTransitGatewayPolicyTableAssociations ::
Prelude.Text ->
GetTransitGatewayPolicyTableAssociations
newGetTransitGatewayPolicyTableAssociations :: Text -> GetTransitGatewayPolicyTableAssociations
newGetTransitGatewayPolicyTableAssociations
Text
pTransitGatewayPolicyTableId_ =
GetTransitGatewayPolicyTableAssociations'
{ $sel:dryRun:GetTransitGatewayPolicyTableAssociations' :: Maybe Bool
dryRun =
forall a. Maybe a
Prelude.Nothing,
$sel:filters:GetTransitGatewayPolicyTableAssociations' :: Maybe [Filter]
filters = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetTransitGatewayPolicyTableAssociations' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetTransitGatewayPolicyTableAssociations' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:transitGatewayPolicyTableId:GetTransitGatewayPolicyTableAssociations' :: Text
transitGatewayPolicyTableId =
Text
pTransitGatewayPolicyTableId_
}
getTransitGatewayPolicyTableAssociations_dryRun :: Lens.Lens' GetTransitGatewayPolicyTableAssociations (Prelude.Maybe Prelude.Bool)
getTransitGatewayPolicyTableAssociations_dryRun :: Lens' GetTransitGatewayPolicyTableAssociations (Maybe Bool)
getTransitGatewayPolicyTableAssociations_dryRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayPolicyTableAssociations' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: GetTransitGatewayPolicyTableAssociations
s@GetTransitGatewayPolicyTableAssociations' {} Maybe Bool
a -> GetTransitGatewayPolicyTableAssociations
s {$sel:dryRun:GetTransitGatewayPolicyTableAssociations' :: Maybe Bool
dryRun = Maybe Bool
a} :: GetTransitGatewayPolicyTableAssociations)
getTransitGatewayPolicyTableAssociations_filters :: Lens.Lens' GetTransitGatewayPolicyTableAssociations (Prelude.Maybe [Filter])
getTransitGatewayPolicyTableAssociations_filters :: Lens' GetTransitGatewayPolicyTableAssociations (Maybe [Filter])
getTransitGatewayPolicyTableAssociations_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayPolicyTableAssociations' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: GetTransitGatewayPolicyTableAssociations
s@GetTransitGatewayPolicyTableAssociations' {} Maybe [Filter]
a -> GetTransitGatewayPolicyTableAssociations
s {$sel:filters:GetTransitGatewayPolicyTableAssociations' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: GetTransitGatewayPolicyTableAssociations) 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
getTransitGatewayPolicyTableAssociations_maxResults :: Lens.Lens' GetTransitGatewayPolicyTableAssociations (Prelude.Maybe Prelude.Natural)
getTransitGatewayPolicyTableAssociations_maxResults :: Lens' GetTransitGatewayPolicyTableAssociations (Maybe Natural)
getTransitGatewayPolicyTableAssociations_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayPolicyTableAssociations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetTransitGatewayPolicyTableAssociations
s@GetTransitGatewayPolicyTableAssociations' {} Maybe Natural
a -> GetTransitGatewayPolicyTableAssociations
s {$sel:maxResults:GetTransitGatewayPolicyTableAssociations' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetTransitGatewayPolicyTableAssociations)
getTransitGatewayPolicyTableAssociations_nextToken :: Lens.Lens' GetTransitGatewayPolicyTableAssociations (Prelude.Maybe Prelude.Text)
getTransitGatewayPolicyTableAssociations_nextToken :: Lens' GetTransitGatewayPolicyTableAssociations (Maybe Text)
getTransitGatewayPolicyTableAssociations_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayPolicyTableAssociations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetTransitGatewayPolicyTableAssociations
s@GetTransitGatewayPolicyTableAssociations' {} Maybe Text
a -> GetTransitGatewayPolicyTableAssociations
s {$sel:nextToken:GetTransitGatewayPolicyTableAssociations' :: Maybe Text
nextToken = Maybe Text
a} :: GetTransitGatewayPolicyTableAssociations)
getTransitGatewayPolicyTableAssociations_transitGatewayPolicyTableId :: Lens.Lens' GetTransitGatewayPolicyTableAssociations Prelude.Text
getTransitGatewayPolicyTableAssociations_transitGatewayPolicyTableId :: Lens' GetTransitGatewayPolicyTableAssociations Text
getTransitGatewayPolicyTableAssociations_transitGatewayPolicyTableId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayPolicyTableAssociations' {Text
transitGatewayPolicyTableId :: Text
$sel:transitGatewayPolicyTableId:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Text
transitGatewayPolicyTableId} -> Text
transitGatewayPolicyTableId) (\s :: GetTransitGatewayPolicyTableAssociations
s@GetTransitGatewayPolicyTableAssociations' {} Text
a -> GetTransitGatewayPolicyTableAssociations
s {$sel:transitGatewayPolicyTableId:GetTransitGatewayPolicyTableAssociations' :: Text
transitGatewayPolicyTableId = Text
a} :: GetTransitGatewayPolicyTableAssociations)
instance
Core.AWSPager
GetTransitGatewayPolicyTableAssociations
where
page :: GetTransitGatewayPolicyTableAssociations
-> AWSResponse GetTransitGatewayPolicyTableAssociations
-> Maybe GetTransitGatewayPolicyTableAssociations
page GetTransitGatewayPolicyTableAssociations
rq AWSResponse GetTransitGatewayPolicyTableAssociations
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetTransitGatewayPolicyTableAssociations
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetTransitGatewayPolicyTableAssociationsResponse (Maybe Text)
getTransitGatewayPolicyTableAssociationsResponse_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 GetTransitGatewayPolicyTableAssociations
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
GetTransitGatewayPolicyTableAssociationsResponse
(Maybe [TransitGatewayPolicyTableAssociation])
getTransitGatewayPolicyTableAssociationsResponse_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.$ GetTransitGatewayPolicyTableAssociations
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' GetTransitGatewayPolicyTableAssociations (Maybe Text)
getTransitGatewayPolicyTableAssociations_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetTransitGatewayPolicyTableAssociations
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetTransitGatewayPolicyTableAssociationsResponse (Maybe Text)
getTransitGatewayPolicyTableAssociationsResponse_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
GetTransitGatewayPolicyTableAssociations
where
type
AWSResponse
GetTransitGatewayPolicyTableAssociations =
GetTransitGatewayPolicyTableAssociationsResponse
request :: (Service -> Service)
-> GetTransitGatewayPolicyTableAssociations
-> Request GetTransitGatewayPolicyTableAssociations
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 GetTransitGatewayPolicyTableAssociations
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse GetTransitGatewayPolicyTableAssociations)))
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 [TransitGatewayPolicyTableAssociation]
-> Maybe Text
-> Int
-> GetTransitGatewayPolicyTableAssociationsResponse
GetTransitGatewayPolicyTableAssociationsResponse'
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
GetTransitGatewayPolicyTableAssociations
where
hashWithSalt :: Int -> GetTransitGatewayPolicyTableAssociations -> Int
hashWithSalt
Int
_salt
GetTransitGatewayPolicyTableAssociations' {Maybe Bool
Maybe Natural
Maybe [Filter]
Maybe Text
Text
transitGatewayPolicyTableId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:transitGatewayPolicyTableId:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Text
$sel:nextToken:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Maybe Text
$sel:maxResults:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Maybe Natural
$sel:filters:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Maybe [Filter]
$sel:dryRun:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> 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
transitGatewayPolicyTableId
instance
Prelude.NFData
GetTransitGatewayPolicyTableAssociations
where
rnf :: GetTransitGatewayPolicyTableAssociations -> ()
rnf GetTransitGatewayPolicyTableAssociations' {Maybe Bool
Maybe Natural
Maybe [Filter]
Maybe Text
Text
transitGatewayPolicyTableId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:transitGatewayPolicyTableId:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Text
$sel:nextToken:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Maybe Text
$sel:maxResults:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Maybe Natural
$sel:filters:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Maybe [Filter]
$sel:dryRun:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> 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
transitGatewayPolicyTableId
instance
Data.ToHeaders
GetTransitGatewayPolicyTableAssociations
where
toHeaders :: GetTransitGatewayPolicyTableAssociations -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance
Data.ToPath
GetTransitGatewayPolicyTableAssociations
where
toPath :: GetTransitGatewayPolicyTableAssociations -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Data.ToQuery
GetTransitGatewayPolicyTableAssociations
where
toQuery :: GetTransitGatewayPolicyTableAssociations -> QueryString
toQuery GetTransitGatewayPolicyTableAssociations' {Maybe Bool
Maybe Natural
Maybe [Filter]
Maybe Text
Text
transitGatewayPolicyTableId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:transitGatewayPolicyTableId:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Text
$sel:nextToken:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Maybe Text
$sel:maxResults:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Maybe Natural
$sel:filters:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Maybe [Filter]
$sel:dryRun:GetTransitGatewayPolicyTableAssociations' :: GetTransitGatewayPolicyTableAssociations -> Maybe Bool
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: ( ByteString
"GetTransitGatewayPolicyTableAssociations" ::
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
"TransitGatewayPolicyTableId"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
transitGatewayPolicyTableId
]
data GetTransitGatewayPolicyTableAssociationsResponse = GetTransitGatewayPolicyTableAssociationsResponse'
{
GetTransitGatewayPolicyTableAssociationsResponse
-> Maybe [TransitGatewayPolicyTableAssociation]
associations :: Prelude.Maybe [TransitGatewayPolicyTableAssociation],
GetTransitGatewayPolicyTableAssociationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetTransitGatewayPolicyTableAssociationsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetTransitGatewayPolicyTableAssociationsResponse
-> GetTransitGatewayPolicyTableAssociationsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetTransitGatewayPolicyTableAssociationsResponse
-> GetTransitGatewayPolicyTableAssociationsResponse -> Bool
$c/= :: GetTransitGatewayPolicyTableAssociationsResponse
-> GetTransitGatewayPolicyTableAssociationsResponse -> Bool
== :: GetTransitGatewayPolicyTableAssociationsResponse
-> GetTransitGatewayPolicyTableAssociationsResponse -> Bool
$c== :: GetTransitGatewayPolicyTableAssociationsResponse
-> GetTransitGatewayPolicyTableAssociationsResponse -> Bool
Prelude.Eq, ReadPrec [GetTransitGatewayPolicyTableAssociationsResponse]
ReadPrec GetTransitGatewayPolicyTableAssociationsResponse
Int -> ReadS GetTransitGatewayPolicyTableAssociationsResponse
ReadS [GetTransitGatewayPolicyTableAssociationsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetTransitGatewayPolicyTableAssociationsResponse]
$creadListPrec :: ReadPrec [GetTransitGatewayPolicyTableAssociationsResponse]
readPrec :: ReadPrec GetTransitGatewayPolicyTableAssociationsResponse
$creadPrec :: ReadPrec GetTransitGatewayPolicyTableAssociationsResponse
readList :: ReadS [GetTransitGatewayPolicyTableAssociationsResponse]
$creadList :: ReadS [GetTransitGatewayPolicyTableAssociationsResponse]
readsPrec :: Int -> ReadS GetTransitGatewayPolicyTableAssociationsResponse
$creadsPrec :: Int -> ReadS GetTransitGatewayPolicyTableAssociationsResponse
Prelude.Read, Int -> GetTransitGatewayPolicyTableAssociationsResponse -> ShowS
[GetTransitGatewayPolicyTableAssociationsResponse] -> ShowS
GetTransitGatewayPolicyTableAssociationsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetTransitGatewayPolicyTableAssociationsResponse] -> ShowS
$cshowList :: [GetTransitGatewayPolicyTableAssociationsResponse] -> ShowS
show :: GetTransitGatewayPolicyTableAssociationsResponse -> String
$cshow :: GetTransitGatewayPolicyTableAssociationsResponse -> String
showsPrec :: Int -> GetTransitGatewayPolicyTableAssociationsResponse -> ShowS
$cshowsPrec :: Int -> GetTransitGatewayPolicyTableAssociationsResponse -> ShowS
Prelude.Show, forall x.
Rep GetTransitGatewayPolicyTableAssociationsResponse x
-> GetTransitGatewayPolicyTableAssociationsResponse
forall x.
GetTransitGatewayPolicyTableAssociationsResponse
-> Rep GetTransitGatewayPolicyTableAssociationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetTransitGatewayPolicyTableAssociationsResponse x
-> GetTransitGatewayPolicyTableAssociationsResponse
$cfrom :: forall x.
GetTransitGatewayPolicyTableAssociationsResponse
-> Rep GetTransitGatewayPolicyTableAssociationsResponse x
Prelude.Generic)
newGetTransitGatewayPolicyTableAssociationsResponse ::
Prelude.Int ->
GetTransitGatewayPolicyTableAssociationsResponse
newGetTransitGatewayPolicyTableAssociationsResponse :: Int -> GetTransitGatewayPolicyTableAssociationsResponse
newGetTransitGatewayPolicyTableAssociationsResponse
Int
pHttpStatus_ =
GetTransitGatewayPolicyTableAssociationsResponse'
{ $sel:associations:GetTransitGatewayPolicyTableAssociationsResponse' :: Maybe [TransitGatewayPolicyTableAssociation]
associations =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetTransitGatewayPolicyTableAssociationsResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetTransitGatewayPolicyTableAssociationsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getTransitGatewayPolicyTableAssociationsResponse_associations :: Lens.Lens' GetTransitGatewayPolicyTableAssociationsResponse (Prelude.Maybe [TransitGatewayPolicyTableAssociation])
getTransitGatewayPolicyTableAssociationsResponse_associations :: Lens'
GetTransitGatewayPolicyTableAssociationsResponse
(Maybe [TransitGatewayPolicyTableAssociation])
getTransitGatewayPolicyTableAssociationsResponse_associations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayPolicyTableAssociationsResponse' {Maybe [TransitGatewayPolicyTableAssociation]
associations :: Maybe [TransitGatewayPolicyTableAssociation]
$sel:associations:GetTransitGatewayPolicyTableAssociationsResponse' :: GetTransitGatewayPolicyTableAssociationsResponse
-> Maybe [TransitGatewayPolicyTableAssociation]
associations} -> Maybe [TransitGatewayPolicyTableAssociation]
associations) (\s :: GetTransitGatewayPolicyTableAssociationsResponse
s@GetTransitGatewayPolicyTableAssociationsResponse' {} Maybe [TransitGatewayPolicyTableAssociation]
a -> GetTransitGatewayPolicyTableAssociationsResponse
s {$sel:associations:GetTransitGatewayPolicyTableAssociationsResponse' :: Maybe [TransitGatewayPolicyTableAssociation]
associations = Maybe [TransitGatewayPolicyTableAssociation]
a} :: GetTransitGatewayPolicyTableAssociationsResponse) 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
getTransitGatewayPolicyTableAssociationsResponse_nextToken :: Lens.Lens' GetTransitGatewayPolicyTableAssociationsResponse (Prelude.Maybe Prelude.Text)
getTransitGatewayPolicyTableAssociationsResponse_nextToken :: Lens' GetTransitGatewayPolicyTableAssociationsResponse (Maybe Text)
getTransitGatewayPolicyTableAssociationsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayPolicyTableAssociationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetTransitGatewayPolicyTableAssociationsResponse' :: GetTransitGatewayPolicyTableAssociationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetTransitGatewayPolicyTableAssociationsResponse
s@GetTransitGatewayPolicyTableAssociationsResponse' {} Maybe Text
a -> GetTransitGatewayPolicyTableAssociationsResponse
s {$sel:nextToken:GetTransitGatewayPolicyTableAssociationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetTransitGatewayPolicyTableAssociationsResponse)
getTransitGatewayPolicyTableAssociationsResponse_httpStatus :: Lens.Lens' GetTransitGatewayPolicyTableAssociationsResponse Prelude.Int
getTransitGatewayPolicyTableAssociationsResponse_httpStatus :: Lens' GetTransitGatewayPolicyTableAssociationsResponse Int
getTransitGatewayPolicyTableAssociationsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayPolicyTableAssociationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetTransitGatewayPolicyTableAssociationsResponse' :: GetTransitGatewayPolicyTableAssociationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetTransitGatewayPolicyTableAssociationsResponse
s@GetTransitGatewayPolicyTableAssociationsResponse' {} Int
a -> GetTransitGatewayPolicyTableAssociationsResponse
s {$sel:httpStatus:GetTransitGatewayPolicyTableAssociationsResponse' :: Int
httpStatus = Int
a} :: GetTransitGatewayPolicyTableAssociationsResponse)
instance
Prelude.NFData
GetTransitGatewayPolicyTableAssociationsResponse
where
rnf :: GetTransitGatewayPolicyTableAssociationsResponse -> ()
rnf
GetTransitGatewayPolicyTableAssociationsResponse' {Int
Maybe [TransitGatewayPolicyTableAssociation]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
associations :: Maybe [TransitGatewayPolicyTableAssociation]
$sel:httpStatus:GetTransitGatewayPolicyTableAssociationsResponse' :: GetTransitGatewayPolicyTableAssociationsResponse -> Int
$sel:nextToken:GetTransitGatewayPolicyTableAssociationsResponse' :: GetTransitGatewayPolicyTableAssociationsResponse -> Maybe Text
$sel:associations:GetTransitGatewayPolicyTableAssociationsResponse' :: GetTransitGatewayPolicyTableAssociationsResponse
-> Maybe [TransitGatewayPolicyTableAssociation]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [TransitGatewayPolicyTableAssociation]
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