{-# 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.DescribeTransitGatewayVpcAttachments
(
DescribeTransitGatewayVpcAttachments (..),
newDescribeTransitGatewayVpcAttachments,
describeTransitGatewayVpcAttachments_dryRun,
describeTransitGatewayVpcAttachments_filters,
describeTransitGatewayVpcAttachments_maxResults,
describeTransitGatewayVpcAttachments_nextToken,
describeTransitGatewayVpcAttachments_transitGatewayAttachmentIds,
DescribeTransitGatewayVpcAttachmentsResponse (..),
newDescribeTransitGatewayVpcAttachmentsResponse,
describeTransitGatewayVpcAttachmentsResponse_nextToken,
describeTransitGatewayVpcAttachmentsResponse_transitGatewayVpcAttachments,
describeTransitGatewayVpcAttachmentsResponse_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 DescribeTransitGatewayVpcAttachments = DescribeTransitGatewayVpcAttachments'
{
DescribeTransitGatewayVpcAttachments -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
DescribeTransitGatewayVpcAttachments -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeTransitGatewayVpcAttachments -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
DescribeTransitGatewayVpcAttachments -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeTransitGatewayVpcAttachments -> Maybe [Text]
transitGatewayAttachmentIds :: Prelude.Maybe [Prelude.Text]
}
deriving (DescribeTransitGatewayVpcAttachments
-> DescribeTransitGatewayVpcAttachments -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTransitGatewayVpcAttachments
-> DescribeTransitGatewayVpcAttachments -> Bool
$c/= :: DescribeTransitGatewayVpcAttachments
-> DescribeTransitGatewayVpcAttachments -> Bool
== :: DescribeTransitGatewayVpcAttachments
-> DescribeTransitGatewayVpcAttachments -> Bool
$c== :: DescribeTransitGatewayVpcAttachments
-> DescribeTransitGatewayVpcAttachments -> Bool
Prelude.Eq, ReadPrec [DescribeTransitGatewayVpcAttachments]
ReadPrec DescribeTransitGatewayVpcAttachments
Int -> ReadS DescribeTransitGatewayVpcAttachments
ReadS [DescribeTransitGatewayVpcAttachments]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTransitGatewayVpcAttachments]
$creadListPrec :: ReadPrec [DescribeTransitGatewayVpcAttachments]
readPrec :: ReadPrec DescribeTransitGatewayVpcAttachments
$creadPrec :: ReadPrec DescribeTransitGatewayVpcAttachments
readList :: ReadS [DescribeTransitGatewayVpcAttachments]
$creadList :: ReadS [DescribeTransitGatewayVpcAttachments]
readsPrec :: Int -> ReadS DescribeTransitGatewayVpcAttachments
$creadsPrec :: Int -> ReadS DescribeTransitGatewayVpcAttachments
Prelude.Read, Int -> DescribeTransitGatewayVpcAttachments -> ShowS
[DescribeTransitGatewayVpcAttachments] -> ShowS
DescribeTransitGatewayVpcAttachments -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTransitGatewayVpcAttachments] -> ShowS
$cshowList :: [DescribeTransitGatewayVpcAttachments] -> ShowS
show :: DescribeTransitGatewayVpcAttachments -> String
$cshow :: DescribeTransitGatewayVpcAttachments -> String
showsPrec :: Int -> DescribeTransitGatewayVpcAttachments -> ShowS
$cshowsPrec :: Int -> DescribeTransitGatewayVpcAttachments -> ShowS
Prelude.Show, forall x.
Rep DescribeTransitGatewayVpcAttachments x
-> DescribeTransitGatewayVpcAttachments
forall x.
DescribeTransitGatewayVpcAttachments
-> Rep DescribeTransitGatewayVpcAttachments x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTransitGatewayVpcAttachments x
-> DescribeTransitGatewayVpcAttachments
$cfrom :: forall x.
DescribeTransitGatewayVpcAttachments
-> Rep DescribeTransitGatewayVpcAttachments x
Prelude.Generic)
newDescribeTransitGatewayVpcAttachments ::
DescribeTransitGatewayVpcAttachments
newDescribeTransitGatewayVpcAttachments :: DescribeTransitGatewayVpcAttachments
newDescribeTransitGatewayVpcAttachments =
DescribeTransitGatewayVpcAttachments'
{ $sel:dryRun:DescribeTransitGatewayVpcAttachments' :: Maybe Bool
dryRun =
forall a. Maybe a
Prelude.Nothing,
$sel:filters:DescribeTransitGatewayVpcAttachments' :: Maybe [Filter]
filters = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeTransitGatewayVpcAttachments' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeTransitGatewayVpcAttachments' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:transitGatewayAttachmentIds:DescribeTransitGatewayVpcAttachments' :: Maybe [Text]
transitGatewayAttachmentIds =
forall a. Maybe a
Prelude.Nothing
}
describeTransitGatewayVpcAttachments_dryRun :: Lens.Lens' DescribeTransitGatewayVpcAttachments (Prelude.Maybe Prelude.Bool)
describeTransitGatewayVpcAttachments_dryRun :: Lens' DescribeTransitGatewayVpcAttachments (Maybe Bool)
describeTransitGatewayVpcAttachments_dryRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTransitGatewayVpcAttachments' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: DescribeTransitGatewayVpcAttachments
s@DescribeTransitGatewayVpcAttachments' {} Maybe Bool
a -> DescribeTransitGatewayVpcAttachments
s {$sel:dryRun:DescribeTransitGatewayVpcAttachments' :: Maybe Bool
dryRun = Maybe Bool
a} :: DescribeTransitGatewayVpcAttachments)
describeTransitGatewayVpcAttachments_filters :: Lens.Lens' DescribeTransitGatewayVpcAttachments (Prelude.Maybe [Filter])
describeTransitGatewayVpcAttachments_filters :: Lens' DescribeTransitGatewayVpcAttachments (Maybe [Filter])
describeTransitGatewayVpcAttachments_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTransitGatewayVpcAttachments' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeTransitGatewayVpcAttachments
s@DescribeTransitGatewayVpcAttachments' {} Maybe [Filter]
a -> DescribeTransitGatewayVpcAttachments
s {$sel:filters:DescribeTransitGatewayVpcAttachments' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeTransitGatewayVpcAttachments) 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
describeTransitGatewayVpcAttachments_maxResults :: Lens.Lens' DescribeTransitGatewayVpcAttachments (Prelude.Maybe Prelude.Natural)
describeTransitGatewayVpcAttachments_maxResults :: Lens' DescribeTransitGatewayVpcAttachments (Maybe Natural)
describeTransitGatewayVpcAttachments_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTransitGatewayVpcAttachments' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeTransitGatewayVpcAttachments
s@DescribeTransitGatewayVpcAttachments' {} Maybe Natural
a -> DescribeTransitGatewayVpcAttachments
s {$sel:maxResults:DescribeTransitGatewayVpcAttachments' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeTransitGatewayVpcAttachments)
describeTransitGatewayVpcAttachments_nextToken :: Lens.Lens' DescribeTransitGatewayVpcAttachments (Prelude.Maybe Prelude.Text)
describeTransitGatewayVpcAttachments_nextToken :: Lens' DescribeTransitGatewayVpcAttachments (Maybe Text)
describeTransitGatewayVpcAttachments_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTransitGatewayVpcAttachments' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeTransitGatewayVpcAttachments
s@DescribeTransitGatewayVpcAttachments' {} Maybe Text
a -> DescribeTransitGatewayVpcAttachments
s {$sel:nextToken:DescribeTransitGatewayVpcAttachments' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeTransitGatewayVpcAttachments)
describeTransitGatewayVpcAttachments_transitGatewayAttachmentIds :: Lens.Lens' DescribeTransitGatewayVpcAttachments (Prelude.Maybe [Prelude.Text])
describeTransitGatewayVpcAttachments_transitGatewayAttachmentIds :: Lens' DescribeTransitGatewayVpcAttachments (Maybe [Text])
describeTransitGatewayVpcAttachments_transitGatewayAttachmentIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTransitGatewayVpcAttachments' {Maybe [Text]
transitGatewayAttachmentIds :: Maybe [Text]
$sel:transitGatewayAttachmentIds:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe [Text]
transitGatewayAttachmentIds} -> Maybe [Text]
transitGatewayAttachmentIds) (\s :: DescribeTransitGatewayVpcAttachments
s@DescribeTransitGatewayVpcAttachments' {} Maybe [Text]
a -> DescribeTransitGatewayVpcAttachments
s {$sel:transitGatewayAttachmentIds:DescribeTransitGatewayVpcAttachments' :: Maybe [Text]
transitGatewayAttachmentIds = Maybe [Text]
a} :: DescribeTransitGatewayVpcAttachments) 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
instance
Core.AWSPager
DescribeTransitGatewayVpcAttachments
where
page :: DescribeTransitGatewayVpcAttachments
-> AWSResponse DescribeTransitGatewayVpcAttachments
-> Maybe DescribeTransitGatewayVpcAttachments
page DescribeTransitGatewayVpcAttachments
rq AWSResponse DescribeTransitGatewayVpcAttachments
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeTransitGatewayVpcAttachments
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeTransitGatewayVpcAttachmentsResponse (Maybe Text)
describeTransitGatewayVpcAttachmentsResponse_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 DescribeTransitGatewayVpcAttachments
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
DescribeTransitGatewayVpcAttachmentsResponse
(Maybe [TransitGatewayVpcAttachment])
describeTransitGatewayVpcAttachmentsResponse_transitGatewayVpcAttachments
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.$ DescribeTransitGatewayVpcAttachments
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' DescribeTransitGatewayVpcAttachments (Maybe Text)
describeTransitGatewayVpcAttachments_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeTransitGatewayVpcAttachments
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeTransitGatewayVpcAttachmentsResponse (Maybe Text)
describeTransitGatewayVpcAttachmentsResponse_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
DescribeTransitGatewayVpcAttachments
where
type
AWSResponse DescribeTransitGatewayVpcAttachments =
DescribeTransitGatewayVpcAttachmentsResponse
request :: (Service -> Service)
-> DescribeTransitGatewayVpcAttachments
-> Request DescribeTransitGatewayVpcAttachments
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 DescribeTransitGatewayVpcAttachments
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DescribeTransitGatewayVpcAttachments)))
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 [TransitGatewayVpcAttachment]
-> Int
-> DescribeTransitGatewayVpcAttachmentsResponse
DescribeTransitGatewayVpcAttachmentsResponse'
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
"transitGatewayVpcAttachments"
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
DescribeTransitGatewayVpcAttachments
where
hashWithSalt :: Int -> DescribeTransitGatewayVpcAttachments -> Int
hashWithSalt
Int
_salt
DescribeTransitGatewayVpcAttachments' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
transitGatewayAttachmentIds :: Maybe [Text]
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:transitGatewayAttachmentIds:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe [Text]
$sel:nextToken:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe Text
$sel:maxResults:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe Natural
$sel:filters:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe [Filter]
$sel:dryRun:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> 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` Maybe [Text]
transitGatewayAttachmentIds
instance
Prelude.NFData
DescribeTransitGatewayVpcAttachments
where
rnf :: DescribeTransitGatewayVpcAttachments -> ()
rnf DescribeTransitGatewayVpcAttachments' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
transitGatewayAttachmentIds :: Maybe [Text]
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:transitGatewayAttachmentIds:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe [Text]
$sel:nextToken:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe Text
$sel:maxResults:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe Natural
$sel:filters:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe [Filter]
$sel:dryRun:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> 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 Maybe [Text]
transitGatewayAttachmentIds
instance
Data.ToHeaders
DescribeTransitGatewayVpcAttachments
where
toHeaders :: DescribeTransitGatewayVpcAttachments -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance
Data.ToPath
DescribeTransitGatewayVpcAttachments
where
toPath :: DescribeTransitGatewayVpcAttachments -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Data.ToQuery
DescribeTransitGatewayVpcAttachments
where
toQuery :: DescribeTransitGatewayVpcAttachments -> QueryString
toQuery DescribeTransitGatewayVpcAttachments' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
transitGatewayAttachmentIds :: Maybe [Text]
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:transitGatewayAttachmentIds:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe [Text]
$sel:nextToken:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe Text
$sel:maxResults:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe Natural
$sel:filters:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe [Filter]
$sel:dryRun:DescribeTransitGatewayVpcAttachments' :: DescribeTransitGatewayVpcAttachments -> Maybe Bool
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: ( ByteString
"DescribeTransitGatewayVpcAttachments" ::
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,
forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"TransitGatewayAttachmentIds"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
transitGatewayAttachmentIds
)
]
data DescribeTransitGatewayVpcAttachmentsResponse = DescribeTransitGatewayVpcAttachmentsResponse'
{
DescribeTransitGatewayVpcAttachmentsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeTransitGatewayVpcAttachmentsResponse
-> Maybe [TransitGatewayVpcAttachment]
transitGatewayVpcAttachments :: Prelude.Maybe [TransitGatewayVpcAttachment],
DescribeTransitGatewayVpcAttachmentsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeTransitGatewayVpcAttachmentsResponse
-> DescribeTransitGatewayVpcAttachmentsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTransitGatewayVpcAttachmentsResponse
-> DescribeTransitGatewayVpcAttachmentsResponse -> Bool
$c/= :: DescribeTransitGatewayVpcAttachmentsResponse
-> DescribeTransitGatewayVpcAttachmentsResponse -> Bool
== :: DescribeTransitGatewayVpcAttachmentsResponse
-> DescribeTransitGatewayVpcAttachmentsResponse -> Bool
$c== :: DescribeTransitGatewayVpcAttachmentsResponse
-> DescribeTransitGatewayVpcAttachmentsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeTransitGatewayVpcAttachmentsResponse]
ReadPrec DescribeTransitGatewayVpcAttachmentsResponse
Int -> ReadS DescribeTransitGatewayVpcAttachmentsResponse
ReadS [DescribeTransitGatewayVpcAttachmentsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTransitGatewayVpcAttachmentsResponse]
$creadListPrec :: ReadPrec [DescribeTransitGatewayVpcAttachmentsResponse]
readPrec :: ReadPrec DescribeTransitGatewayVpcAttachmentsResponse
$creadPrec :: ReadPrec DescribeTransitGatewayVpcAttachmentsResponse
readList :: ReadS [DescribeTransitGatewayVpcAttachmentsResponse]
$creadList :: ReadS [DescribeTransitGatewayVpcAttachmentsResponse]
readsPrec :: Int -> ReadS DescribeTransitGatewayVpcAttachmentsResponse
$creadsPrec :: Int -> ReadS DescribeTransitGatewayVpcAttachmentsResponse
Prelude.Read, Int -> DescribeTransitGatewayVpcAttachmentsResponse -> ShowS
[DescribeTransitGatewayVpcAttachmentsResponse] -> ShowS
DescribeTransitGatewayVpcAttachmentsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTransitGatewayVpcAttachmentsResponse] -> ShowS
$cshowList :: [DescribeTransitGatewayVpcAttachmentsResponse] -> ShowS
show :: DescribeTransitGatewayVpcAttachmentsResponse -> String
$cshow :: DescribeTransitGatewayVpcAttachmentsResponse -> String
showsPrec :: Int -> DescribeTransitGatewayVpcAttachmentsResponse -> ShowS
$cshowsPrec :: Int -> DescribeTransitGatewayVpcAttachmentsResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeTransitGatewayVpcAttachmentsResponse x
-> DescribeTransitGatewayVpcAttachmentsResponse
forall x.
DescribeTransitGatewayVpcAttachmentsResponse
-> Rep DescribeTransitGatewayVpcAttachmentsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTransitGatewayVpcAttachmentsResponse x
-> DescribeTransitGatewayVpcAttachmentsResponse
$cfrom :: forall x.
DescribeTransitGatewayVpcAttachmentsResponse
-> Rep DescribeTransitGatewayVpcAttachmentsResponse x
Prelude.Generic)
newDescribeTransitGatewayVpcAttachmentsResponse ::
Prelude.Int ->
DescribeTransitGatewayVpcAttachmentsResponse
newDescribeTransitGatewayVpcAttachmentsResponse :: Int -> DescribeTransitGatewayVpcAttachmentsResponse
newDescribeTransitGatewayVpcAttachmentsResponse
Int
pHttpStatus_ =
DescribeTransitGatewayVpcAttachmentsResponse'
{ $sel:nextToken:DescribeTransitGatewayVpcAttachmentsResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:transitGatewayVpcAttachments:DescribeTransitGatewayVpcAttachmentsResponse' :: Maybe [TransitGatewayVpcAttachment]
transitGatewayVpcAttachments =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeTransitGatewayVpcAttachmentsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeTransitGatewayVpcAttachmentsResponse_nextToken :: Lens.Lens' DescribeTransitGatewayVpcAttachmentsResponse (Prelude.Maybe Prelude.Text)
describeTransitGatewayVpcAttachmentsResponse_nextToken :: Lens' DescribeTransitGatewayVpcAttachmentsResponse (Maybe Text)
describeTransitGatewayVpcAttachmentsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTransitGatewayVpcAttachmentsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeTransitGatewayVpcAttachmentsResponse' :: DescribeTransitGatewayVpcAttachmentsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeTransitGatewayVpcAttachmentsResponse
s@DescribeTransitGatewayVpcAttachmentsResponse' {} Maybe Text
a -> DescribeTransitGatewayVpcAttachmentsResponse
s {$sel:nextToken:DescribeTransitGatewayVpcAttachmentsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeTransitGatewayVpcAttachmentsResponse)
describeTransitGatewayVpcAttachmentsResponse_transitGatewayVpcAttachments :: Lens.Lens' DescribeTransitGatewayVpcAttachmentsResponse (Prelude.Maybe [TransitGatewayVpcAttachment])
describeTransitGatewayVpcAttachmentsResponse_transitGatewayVpcAttachments :: Lens'
DescribeTransitGatewayVpcAttachmentsResponse
(Maybe [TransitGatewayVpcAttachment])
describeTransitGatewayVpcAttachmentsResponse_transitGatewayVpcAttachments = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTransitGatewayVpcAttachmentsResponse' {Maybe [TransitGatewayVpcAttachment]
transitGatewayVpcAttachments :: Maybe [TransitGatewayVpcAttachment]
$sel:transitGatewayVpcAttachments:DescribeTransitGatewayVpcAttachmentsResponse' :: DescribeTransitGatewayVpcAttachmentsResponse
-> Maybe [TransitGatewayVpcAttachment]
transitGatewayVpcAttachments} -> Maybe [TransitGatewayVpcAttachment]
transitGatewayVpcAttachments) (\s :: DescribeTransitGatewayVpcAttachmentsResponse
s@DescribeTransitGatewayVpcAttachmentsResponse' {} Maybe [TransitGatewayVpcAttachment]
a -> DescribeTransitGatewayVpcAttachmentsResponse
s {$sel:transitGatewayVpcAttachments:DescribeTransitGatewayVpcAttachmentsResponse' :: Maybe [TransitGatewayVpcAttachment]
transitGatewayVpcAttachments = Maybe [TransitGatewayVpcAttachment]
a} :: DescribeTransitGatewayVpcAttachmentsResponse) 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
describeTransitGatewayVpcAttachmentsResponse_httpStatus :: Lens.Lens' DescribeTransitGatewayVpcAttachmentsResponse Prelude.Int
describeTransitGatewayVpcAttachmentsResponse_httpStatus :: Lens' DescribeTransitGatewayVpcAttachmentsResponse Int
describeTransitGatewayVpcAttachmentsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTransitGatewayVpcAttachmentsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeTransitGatewayVpcAttachmentsResponse' :: DescribeTransitGatewayVpcAttachmentsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeTransitGatewayVpcAttachmentsResponse
s@DescribeTransitGatewayVpcAttachmentsResponse' {} Int
a -> DescribeTransitGatewayVpcAttachmentsResponse
s {$sel:httpStatus:DescribeTransitGatewayVpcAttachmentsResponse' :: Int
httpStatus = Int
a} :: DescribeTransitGatewayVpcAttachmentsResponse)
instance
Prelude.NFData
DescribeTransitGatewayVpcAttachmentsResponse
where
rnf :: DescribeTransitGatewayVpcAttachmentsResponse -> ()
rnf DescribeTransitGatewayVpcAttachmentsResponse' {Int
Maybe [TransitGatewayVpcAttachment]
Maybe Text
httpStatus :: Int
transitGatewayVpcAttachments :: Maybe [TransitGatewayVpcAttachment]
nextToken :: Maybe Text
$sel:httpStatus:DescribeTransitGatewayVpcAttachmentsResponse' :: DescribeTransitGatewayVpcAttachmentsResponse -> Int
$sel:transitGatewayVpcAttachments:DescribeTransitGatewayVpcAttachmentsResponse' :: DescribeTransitGatewayVpcAttachmentsResponse
-> Maybe [TransitGatewayVpcAttachment]
$sel:nextToken:DescribeTransitGatewayVpcAttachmentsResponse' :: DescribeTransitGatewayVpcAttachmentsResponse -> 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 [TransitGatewayVpcAttachment]
transitGatewayVpcAttachments
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus