{-# 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.GetTransitGatewayAttachmentPropagations
(
GetTransitGatewayAttachmentPropagations (..),
newGetTransitGatewayAttachmentPropagations,
getTransitGatewayAttachmentPropagations_dryRun,
getTransitGatewayAttachmentPropagations_filters,
getTransitGatewayAttachmentPropagations_maxResults,
getTransitGatewayAttachmentPropagations_nextToken,
getTransitGatewayAttachmentPropagations_transitGatewayAttachmentId,
GetTransitGatewayAttachmentPropagationsResponse (..),
newGetTransitGatewayAttachmentPropagationsResponse,
getTransitGatewayAttachmentPropagationsResponse_nextToken,
getTransitGatewayAttachmentPropagationsResponse_transitGatewayAttachmentPropagations,
getTransitGatewayAttachmentPropagationsResponse_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 GetTransitGatewayAttachmentPropagations = GetTransitGatewayAttachmentPropagations'
{
GetTransitGatewayAttachmentPropagations -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
GetTransitGatewayAttachmentPropagations -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
GetTransitGatewayAttachmentPropagations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetTransitGatewayAttachmentPropagations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetTransitGatewayAttachmentPropagations -> Text
transitGatewayAttachmentId :: Prelude.Text
}
deriving (GetTransitGatewayAttachmentPropagations
-> GetTransitGatewayAttachmentPropagations -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetTransitGatewayAttachmentPropagations
-> GetTransitGatewayAttachmentPropagations -> Bool
$c/= :: GetTransitGatewayAttachmentPropagations
-> GetTransitGatewayAttachmentPropagations -> Bool
== :: GetTransitGatewayAttachmentPropagations
-> GetTransitGatewayAttachmentPropagations -> Bool
$c== :: GetTransitGatewayAttachmentPropagations
-> GetTransitGatewayAttachmentPropagations -> Bool
Prelude.Eq, ReadPrec [GetTransitGatewayAttachmentPropagations]
ReadPrec GetTransitGatewayAttachmentPropagations
Int -> ReadS GetTransitGatewayAttachmentPropagations
ReadS [GetTransitGatewayAttachmentPropagations]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetTransitGatewayAttachmentPropagations]
$creadListPrec :: ReadPrec [GetTransitGatewayAttachmentPropagations]
readPrec :: ReadPrec GetTransitGatewayAttachmentPropagations
$creadPrec :: ReadPrec GetTransitGatewayAttachmentPropagations
readList :: ReadS [GetTransitGatewayAttachmentPropagations]
$creadList :: ReadS [GetTransitGatewayAttachmentPropagations]
readsPrec :: Int -> ReadS GetTransitGatewayAttachmentPropagations
$creadsPrec :: Int -> ReadS GetTransitGatewayAttachmentPropagations
Prelude.Read, Int -> GetTransitGatewayAttachmentPropagations -> ShowS
[GetTransitGatewayAttachmentPropagations] -> ShowS
GetTransitGatewayAttachmentPropagations -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetTransitGatewayAttachmentPropagations] -> ShowS
$cshowList :: [GetTransitGatewayAttachmentPropagations] -> ShowS
show :: GetTransitGatewayAttachmentPropagations -> String
$cshow :: GetTransitGatewayAttachmentPropagations -> String
showsPrec :: Int -> GetTransitGatewayAttachmentPropagations -> ShowS
$cshowsPrec :: Int -> GetTransitGatewayAttachmentPropagations -> ShowS
Prelude.Show, forall x.
Rep GetTransitGatewayAttachmentPropagations x
-> GetTransitGatewayAttachmentPropagations
forall x.
GetTransitGatewayAttachmentPropagations
-> Rep GetTransitGatewayAttachmentPropagations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetTransitGatewayAttachmentPropagations x
-> GetTransitGatewayAttachmentPropagations
$cfrom :: forall x.
GetTransitGatewayAttachmentPropagations
-> Rep GetTransitGatewayAttachmentPropagations x
Prelude.Generic)
newGetTransitGatewayAttachmentPropagations ::
Prelude.Text ->
GetTransitGatewayAttachmentPropagations
newGetTransitGatewayAttachmentPropagations :: Text -> GetTransitGatewayAttachmentPropagations
newGetTransitGatewayAttachmentPropagations
Text
pTransitGatewayAttachmentId_ =
GetTransitGatewayAttachmentPropagations'
{ $sel:dryRun:GetTransitGatewayAttachmentPropagations' :: Maybe Bool
dryRun =
forall a. Maybe a
Prelude.Nothing,
$sel:filters:GetTransitGatewayAttachmentPropagations' :: Maybe [Filter]
filters = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetTransitGatewayAttachmentPropagations' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetTransitGatewayAttachmentPropagations' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:transitGatewayAttachmentId:GetTransitGatewayAttachmentPropagations' :: Text
transitGatewayAttachmentId =
Text
pTransitGatewayAttachmentId_
}
getTransitGatewayAttachmentPropagations_dryRun :: Lens.Lens' GetTransitGatewayAttachmentPropagations (Prelude.Maybe Prelude.Bool)
getTransitGatewayAttachmentPropagations_dryRun :: Lens' GetTransitGatewayAttachmentPropagations (Maybe Bool)
getTransitGatewayAttachmentPropagations_dryRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayAttachmentPropagations' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: GetTransitGatewayAttachmentPropagations
s@GetTransitGatewayAttachmentPropagations' {} Maybe Bool
a -> GetTransitGatewayAttachmentPropagations
s {$sel:dryRun:GetTransitGatewayAttachmentPropagations' :: Maybe Bool
dryRun = Maybe Bool
a} :: GetTransitGatewayAttachmentPropagations)
getTransitGatewayAttachmentPropagations_filters :: Lens.Lens' GetTransitGatewayAttachmentPropagations (Prelude.Maybe [Filter])
getTransitGatewayAttachmentPropagations_filters :: Lens' GetTransitGatewayAttachmentPropagations (Maybe [Filter])
getTransitGatewayAttachmentPropagations_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayAttachmentPropagations' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: GetTransitGatewayAttachmentPropagations
s@GetTransitGatewayAttachmentPropagations' {} Maybe [Filter]
a -> GetTransitGatewayAttachmentPropagations
s {$sel:filters:GetTransitGatewayAttachmentPropagations' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: GetTransitGatewayAttachmentPropagations) 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
getTransitGatewayAttachmentPropagations_maxResults :: Lens.Lens' GetTransitGatewayAttachmentPropagations (Prelude.Maybe Prelude.Natural)
getTransitGatewayAttachmentPropagations_maxResults :: Lens' GetTransitGatewayAttachmentPropagations (Maybe Natural)
getTransitGatewayAttachmentPropagations_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayAttachmentPropagations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetTransitGatewayAttachmentPropagations
s@GetTransitGatewayAttachmentPropagations' {} Maybe Natural
a -> GetTransitGatewayAttachmentPropagations
s {$sel:maxResults:GetTransitGatewayAttachmentPropagations' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetTransitGatewayAttachmentPropagations)
getTransitGatewayAttachmentPropagations_nextToken :: Lens.Lens' GetTransitGatewayAttachmentPropagations (Prelude.Maybe Prelude.Text)
getTransitGatewayAttachmentPropagations_nextToken :: Lens' GetTransitGatewayAttachmentPropagations (Maybe Text)
getTransitGatewayAttachmentPropagations_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayAttachmentPropagations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetTransitGatewayAttachmentPropagations
s@GetTransitGatewayAttachmentPropagations' {} Maybe Text
a -> GetTransitGatewayAttachmentPropagations
s {$sel:nextToken:GetTransitGatewayAttachmentPropagations' :: Maybe Text
nextToken = Maybe Text
a} :: GetTransitGatewayAttachmentPropagations)
getTransitGatewayAttachmentPropagations_transitGatewayAttachmentId :: Lens.Lens' GetTransitGatewayAttachmentPropagations Prelude.Text
getTransitGatewayAttachmentPropagations_transitGatewayAttachmentId :: Lens' GetTransitGatewayAttachmentPropagations Text
getTransitGatewayAttachmentPropagations_transitGatewayAttachmentId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayAttachmentPropagations' {Text
transitGatewayAttachmentId :: Text
$sel:transitGatewayAttachmentId:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Text
transitGatewayAttachmentId} -> Text
transitGatewayAttachmentId) (\s :: GetTransitGatewayAttachmentPropagations
s@GetTransitGatewayAttachmentPropagations' {} Text
a -> GetTransitGatewayAttachmentPropagations
s {$sel:transitGatewayAttachmentId:GetTransitGatewayAttachmentPropagations' :: Text
transitGatewayAttachmentId = Text
a} :: GetTransitGatewayAttachmentPropagations)
instance
Core.AWSPager
GetTransitGatewayAttachmentPropagations
where
page :: GetTransitGatewayAttachmentPropagations
-> AWSResponse GetTransitGatewayAttachmentPropagations
-> Maybe GetTransitGatewayAttachmentPropagations
page GetTransitGatewayAttachmentPropagations
rq AWSResponse GetTransitGatewayAttachmentPropagations
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetTransitGatewayAttachmentPropagations
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetTransitGatewayAttachmentPropagationsResponse (Maybe Text)
getTransitGatewayAttachmentPropagationsResponse_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 GetTransitGatewayAttachmentPropagations
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
GetTransitGatewayAttachmentPropagationsResponse
(Maybe [TransitGatewayAttachmentPropagation])
getTransitGatewayAttachmentPropagationsResponse_transitGatewayAttachmentPropagations
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.$ GetTransitGatewayAttachmentPropagations
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' GetTransitGatewayAttachmentPropagations (Maybe Text)
getTransitGatewayAttachmentPropagations_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetTransitGatewayAttachmentPropagations
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetTransitGatewayAttachmentPropagationsResponse (Maybe Text)
getTransitGatewayAttachmentPropagationsResponse_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
GetTransitGatewayAttachmentPropagations
where
type
AWSResponse
GetTransitGatewayAttachmentPropagations =
GetTransitGatewayAttachmentPropagationsResponse
request :: (Service -> Service)
-> GetTransitGatewayAttachmentPropagations
-> Request GetTransitGatewayAttachmentPropagations
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 GetTransitGatewayAttachmentPropagations
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse GetTransitGatewayAttachmentPropagations)))
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 Text
-> Maybe [TransitGatewayAttachmentPropagation]
-> Int
-> GetTransitGatewayAttachmentPropagationsResponse
GetTransitGatewayAttachmentPropagationsResponse'
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
"nextToken")
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
"transitGatewayAttachmentPropagations"
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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
GetTransitGatewayAttachmentPropagations
where
hashWithSalt :: Int -> GetTransitGatewayAttachmentPropagations -> Int
hashWithSalt
Int
_salt
GetTransitGatewayAttachmentPropagations' {Maybe Bool
Maybe Natural
Maybe [Filter]
Maybe Text
Text
transitGatewayAttachmentId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:transitGatewayAttachmentId:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Text
$sel:nextToken:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Maybe Text
$sel:maxResults:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Maybe Natural
$sel:filters:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Maybe [Filter]
$sel:dryRun:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> 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
transitGatewayAttachmentId
instance
Prelude.NFData
GetTransitGatewayAttachmentPropagations
where
rnf :: GetTransitGatewayAttachmentPropagations -> ()
rnf GetTransitGatewayAttachmentPropagations' {Maybe Bool
Maybe Natural
Maybe [Filter]
Maybe Text
Text
transitGatewayAttachmentId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:transitGatewayAttachmentId:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Text
$sel:nextToken:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Maybe Text
$sel:maxResults:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Maybe Natural
$sel:filters:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Maybe [Filter]
$sel:dryRun:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> 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
transitGatewayAttachmentId
instance
Data.ToHeaders
GetTransitGatewayAttachmentPropagations
where
toHeaders :: GetTransitGatewayAttachmentPropagations -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance
Data.ToPath
GetTransitGatewayAttachmentPropagations
where
toPath :: GetTransitGatewayAttachmentPropagations -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Data.ToQuery
GetTransitGatewayAttachmentPropagations
where
toQuery :: GetTransitGatewayAttachmentPropagations -> QueryString
toQuery GetTransitGatewayAttachmentPropagations' {Maybe Bool
Maybe Natural
Maybe [Filter]
Maybe Text
Text
transitGatewayAttachmentId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:transitGatewayAttachmentId:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Text
$sel:nextToken:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Maybe Text
$sel:maxResults:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Maybe Natural
$sel:filters:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Maybe [Filter]
$sel:dryRun:GetTransitGatewayAttachmentPropagations' :: GetTransitGatewayAttachmentPropagations -> Maybe Bool
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: ( ByteString
"GetTransitGatewayAttachmentPropagations" ::
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
"TransitGatewayAttachmentId"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
transitGatewayAttachmentId
]
data GetTransitGatewayAttachmentPropagationsResponse = GetTransitGatewayAttachmentPropagationsResponse'
{
GetTransitGatewayAttachmentPropagationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetTransitGatewayAttachmentPropagationsResponse
-> Maybe [TransitGatewayAttachmentPropagation]
transitGatewayAttachmentPropagations :: Prelude.Maybe [TransitGatewayAttachmentPropagation],
GetTransitGatewayAttachmentPropagationsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetTransitGatewayAttachmentPropagationsResponse
-> GetTransitGatewayAttachmentPropagationsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetTransitGatewayAttachmentPropagationsResponse
-> GetTransitGatewayAttachmentPropagationsResponse -> Bool
$c/= :: GetTransitGatewayAttachmentPropagationsResponse
-> GetTransitGatewayAttachmentPropagationsResponse -> Bool
== :: GetTransitGatewayAttachmentPropagationsResponse
-> GetTransitGatewayAttachmentPropagationsResponse -> Bool
$c== :: GetTransitGatewayAttachmentPropagationsResponse
-> GetTransitGatewayAttachmentPropagationsResponse -> Bool
Prelude.Eq, ReadPrec [GetTransitGatewayAttachmentPropagationsResponse]
ReadPrec GetTransitGatewayAttachmentPropagationsResponse
Int -> ReadS GetTransitGatewayAttachmentPropagationsResponse
ReadS [GetTransitGatewayAttachmentPropagationsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetTransitGatewayAttachmentPropagationsResponse]
$creadListPrec :: ReadPrec [GetTransitGatewayAttachmentPropagationsResponse]
readPrec :: ReadPrec GetTransitGatewayAttachmentPropagationsResponse
$creadPrec :: ReadPrec GetTransitGatewayAttachmentPropagationsResponse
readList :: ReadS [GetTransitGatewayAttachmentPropagationsResponse]
$creadList :: ReadS [GetTransitGatewayAttachmentPropagationsResponse]
readsPrec :: Int -> ReadS GetTransitGatewayAttachmentPropagationsResponse
$creadsPrec :: Int -> ReadS GetTransitGatewayAttachmentPropagationsResponse
Prelude.Read, Int -> GetTransitGatewayAttachmentPropagationsResponse -> ShowS
[GetTransitGatewayAttachmentPropagationsResponse] -> ShowS
GetTransitGatewayAttachmentPropagationsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetTransitGatewayAttachmentPropagationsResponse] -> ShowS
$cshowList :: [GetTransitGatewayAttachmentPropagationsResponse] -> ShowS
show :: GetTransitGatewayAttachmentPropagationsResponse -> String
$cshow :: GetTransitGatewayAttachmentPropagationsResponse -> String
showsPrec :: Int -> GetTransitGatewayAttachmentPropagationsResponse -> ShowS
$cshowsPrec :: Int -> GetTransitGatewayAttachmentPropagationsResponse -> ShowS
Prelude.Show, forall x.
Rep GetTransitGatewayAttachmentPropagationsResponse x
-> GetTransitGatewayAttachmentPropagationsResponse
forall x.
GetTransitGatewayAttachmentPropagationsResponse
-> Rep GetTransitGatewayAttachmentPropagationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetTransitGatewayAttachmentPropagationsResponse x
-> GetTransitGatewayAttachmentPropagationsResponse
$cfrom :: forall x.
GetTransitGatewayAttachmentPropagationsResponse
-> Rep GetTransitGatewayAttachmentPropagationsResponse x
Prelude.Generic)
newGetTransitGatewayAttachmentPropagationsResponse ::
Prelude.Int ->
GetTransitGatewayAttachmentPropagationsResponse
newGetTransitGatewayAttachmentPropagationsResponse :: Int -> GetTransitGatewayAttachmentPropagationsResponse
newGetTransitGatewayAttachmentPropagationsResponse
Int
pHttpStatus_ =
GetTransitGatewayAttachmentPropagationsResponse'
{ $sel:nextToken:GetTransitGatewayAttachmentPropagationsResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:transitGatewayAttachmentPropagations:GetTransitGatewayAttachmentPropagationsResponse' :: Maybe [TransitGatewayAttachmentPropagation]
transitGatewayAttachmentPropagations =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetTransitGatewayAttachmentPropagationsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getTransitGatewayAttachmentPropagationsResponse_nextToken :: Lens.Lens' GetTransitGatewayAttachmentPropagationsResponse (Prelude.Maybe Prelude.Text)
getTransitGatewayAttachmentPropagationsResponse_nextToken :: Lens' GetTransitGatewayAttachmentPropagationsResponse (Maybe Text)
getTransitGatewayAttachmentPropagationsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayAttachmentPropagationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetTransitGatewayAttachmentPropagationsResponse' :: GetTransitGatewayAttachmentPropagationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetTransitGatewayAttachmentPropagationsResponse
s@GetTransitGatewayAttachmentPropagationsResponse' {} Maybe Text
a -> GetTransitGatewayAttachmentPropagationsResponse
s {$sel:nextToken:GetTransitGatewayAttachmentPropagationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetTransitGatewayAttachmentPropagationsResponse)
getTransitGatewayAttachmentPropagationsResponse_transitGatewayAttachmentPropagations :: Lens.Lens' GetTransitGatewayAttachmentPropagationsResponse (Prelude.Maybe [TransitGatewayAttachmentPropagation])
getTransitGatewayAttachmentPropagationsResponse_transitGatewayAttachmentPropagations :: Lens'
GetTransitGatewayAttachmentPropagationsResponse
(Maybe [TransitGatewayAttachmentPropagation])
getTransitGatewayAttachmentPropagationsResponse_transitGatewayAttachmentPropagations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayAttachmentPropagationsResponse' {Maybe [TransitGatewayAttachmentPropagation]
transitGatewayAttachmentPropagations :: Maybe [TransitGatewayAttachmentPropagation]
$sel:transitGatewayAttachmentPropagations:GetTransitGatewayAttachmentPropagationsResponse' :: GetTransitGatewayAttachmentPropagationsResponse
-> Maybe [TransitGatewayAttachmentPropagation]
transitGatewayAttachmentPropagations} -> Maybe [TransitGatewayAttachmentPropagation]
transitGatewayAttachmentPropagations) (\s :: GetTransitGatewayAttachmentPropagationsResponse
s@GetTransitGatewayAttachmentPropagationsResponse' {} Maybe [TransitGatewayAttachmentPropagation]
a -> GetTransitGatewayAttachmentPropagationsResponse
s {$sel:transitGatewayAttachmentPropagations:GetTransitGatewayAttachmentPropagationsResponse' :: Maybe [TransitGatewayAttachmentPropagation]
transitGatewayAttachmentPropagations = Maybe [TransitGatewayAttachmentPropagation]
a} :: GetTransitGatewayAttachmentPropagationsResponse) 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
getTransitGatewayAttachmentPropagationsResponse_httpStatus :: Lens.Lens' GetTransitGatewayAttachmentPropagationsResponse Prelude.Int
getTransitGatewayAttachmentPropagationsResponse_httpStatus :: Lens' GetTransitGatewayAttachmentPropagationsResponse Int
getTransitGatewayAttachmentPropagationsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayAttachmentPropagationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetTransitGatewayAttachmentPropagationsResponse' :: GetTransitGatewayAttachmentPropagationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetTransitGatewayAttachmentPropagationsResponse
s@GetTransitGatewayAttachmentPropagationsResponse' {} Int
a -> GetTransitGatewayAttachmentPropagationsResponse
s {$sel:httpStatus:GetTransitGatewayAttachmentPropagationsResponse' :: Int
httpStatus = Int
a} :: GetTransitGatewayAttachmentPropagationsResponse)
instance
Prelude.NFData
GetTransitGatewayAttachmentPropagationsResponse
where
rnf :: GetTransitGatewayAttachmentPropagationsResponse -> ()
rnf
GetTransitGatewayAttachmentPropagationsResponse' {Int
Maybe [TransitGatewayAttachmentPropagation]
Maybe Text
httpStatus :: Int
transitGatewayAttachmentPropagations :: Maybe [TransitGatewayAttachmentPropagation]
nextToken :: Maybe Text
$sel:httpStatus:GetTransitGatewayAttachmentPropagationsResponse' :: GetTransitGatewayAttachmentPropagationsResponse -> Int
$sel:transitGatewayAttachmentPropagations:GetTransitGatewayAttachmentPropagationsResponse' :: GetTransitGatewayAttachmentPropagationsResponse
-> Maybe [TransitGatewayAttachmentPropagation]
$sel:nextToken:GetTransitGatewayAttachmentPropagationsResponse' :: GetTransitGatewayAttachmentPropagationsResponse -> Maybe Text
..} =
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 Maybe [TransitGatewayAttachmentPropagation]
transitGatewayAttachmentPropagations
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus