{-# 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.DescribeTrunkInterfaceAssociations
(
DescribeTrunkInterfaceAssociations (..),
newDescribeTrunkInterfaceAssociations,
describeTrunkInterfaceAssociations_associationIds,
describeTrunkInterfaceAssociations_dryRun,
describeTrunkInterfaceAssociations_filters,
describeTrunkInterfaceAssociations_maxResults,
describeTrunkInterfaceAssociations_nextToken,
DescribeTrunkInterfaceAssociationsResponse (..),
newDescribeTrunkInterfaceAssociationsResponse,
describeTrunkInterfaceAssociationsResponse_interfaceAssociations,
describeTrunkInterfaceAssociationsResponse_nextToken,
describeTrunkInterfaceAssociationsResponse_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 DescribeTrunkInterfaceAssociations = DescribeTrunkInterfaceAssociations'
{
DescribeTrunkInterfaceAssociations -> Maybe [Text]
associationIds :: Prelude.Maybe [Prelude.Text],
DescribeTrunkInterfaceAssociations -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
DescribeTrunkInterfaceAssociations -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeTrunkInterfaceAssociations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
DescribeTrunkInterfaceAssociations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
}
deriving (DescribeTrunkInterfaceAssociations
-> DescribeTrunkInterfaceAssociations -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTrunkInterfaceAssociations
-> DescribeTrunkInterfaceAssociations -> Bool
$c/= :: DescribeTrunkInterfaceAssociations
-> DescribeTrunkInterfaceAssociations -> Bool
== :: DescribeTrunkInterfaceAssociations
-> DescribeTrunkInterfaceAssociations -> Bool
$c== :: DescribeTrunkInterfaceAssociations
-> DescribeTrunkInterfaceAssociations -> Bool
Prelude.Eq, ReadPrec [DescribeTrunkInterfaceAssociations]
ReadPrec DescribeTrunkInterfaceAssociations
Int -> ReadS DescribeTrunkInterfaceAssociations
ReadS [DescribeTrunkInterfaceAssociations]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTrunkInterfaceAssociations]
$creadListPrec :: ReadPrec [DescribeTrunkInterfaceAssociations]
readPrec :: ReadPrec DescribeTrunkInterfaceAssociations
$creadPrec :: ReadPrec DescribeTrunkInterfaceAssociations
readList :: ReadS [DescribeTrunkInterfaceAssociations]
$creadList :: ReadS [DescribeTrunkInterfaceAssociations]
readsPrec :: Int -> ReadS DescribeTrunkInterfaceAssociations
$creadsPrec :: Int -> ReadS DescribeTrunkInterfaceAssociations
Prelude.Read, Int -> DescribeTrunkInterfaceAssociations -> ShowS
[DescribeTrunkInterfaceAssociations] -> ShowS
DescribeTrunkInterfaceAssociations -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTrunkInterfaceAssociations] -> ShowS
$cshowList :: [DescribeTrunkInterfaceAssociations] -> ShowS
show :: DescribeTrunkInterfaceAssociations -> String
$cshow :: DescribeTrunkInterfaceAssociations -> String
showsPrec :: Int -> DescribeTrunkInterfaceAssociations -> ShowS
$cshowsPrec :: Int -> DescribeTrunkInterfaceAssociations -> ShowS
Prelude.Show, forall x.
Rep DescribeTrunkInterfaceAssociations x
-> DescribeTrunkInterfaceAssociations
forall x.
DescribeTrunkInterfaceAssociations
-> Rep DescribeTrunkInterfaceAssociations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTrunkInterfaceAssociations x
-> DescribeTrunkInterfaceAssociations
$cfrom :: forall x.
DescribeTrunkInterfaceAssociations
-> Rep DescribeTrunkInterfaceAssociations x
Prelude.Generic)
newDescribeTrunkInterfaceAssociations ::
DescribeTrunkInterfaceAssociations
newDescribeTrunkInterfaceAssociations :: DescribeTrunkInterfaceAssociations
newDescribeTrunkInterfaceAssociations =
DescribeTrunkInterfaceAssociations'
{ $sel:associationIds:DescribeTrunkInterfaceAssociations' :: Maybe [Text]
associationIds =
forall a. Maybe a
Prelude.Nothing,
$sel:dryRun:DescribeTrunkInterfaceAssociations' :: Maybe Bool
dryRun = forall a. Maybe a
Prelude.Nothing,
$sel:filters:DescribeTrunkInterfaceAssociations' :: Maybe [Filter]
filters = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeTrunkInterfaceAssociations' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeTrunkInterfaceAssociations' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
}
describeTrunkInterfaceAssociations_associationIds :: Lens.Lens' DescribeTrunkInterfaceAssociations (Prelude.Maybe [Prelude.Text])
describeTrunkInterfaceAssociations_associationIds :: Lens' DescribeTrunkInterfaceAssociations (Maybe [Text])
describeTrunkInterfaceAssociations_associationIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrunkInterfaceAssociations' {Maybe [Text]
associationIds :: Maybe [Text]
$sel:associationIds:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe [Text]
associationIds} -> Maybe [Text]
associationIds) (\s :: DescribeTrunkInterfaceAssociations
s@DescribeTrunkInterfaceAssociations' {} Maybe [Text]
a -> DescribeTrunkInterfaceAssociations
s {$sel:associationIds:DescribeTrunkInterfaceAssociations' :: Maybe [Text]
associationIds = Maybe [Text]
a} :: DescribeTrunkInterfaceAssociations) 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
describeTrunkInterfaceAssociations_dryRun :: Lens.Lens' DescribeTrunkInterfaceAssociations (Prelude.Maybe Prelude.Bool)
describeTrunkInterfaceAssociations_dryRun :: Lens' DescribeTrunkInterfaceAssociations (Maybe Bool)
describeTrunkInterfaceAssociations_dryRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrunkInterfaceAssociations' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: DescribeTrunkInterfaceAssociations
s@DescribeTrunkInterfaceAssociations' {} Maybe Bool
a -> DescribeTrunkInterfaceAssociations
s {$sel:dryRun:DescribeTrunkInterfaceAssociations' :: Maybe Bool
dryRun = Maybe Bool
a} :: DescribeTrunkInterfaceAssociations)
describeTrunkInterfaceAssociations_filters :: Lens.Lens' DescribeTrunkInterfaceAssociations (Prelude.Maybe [Filter])
describeTrunkInterfaceAssociations_filters :: Lens' DescribeTrunkInterfaceAssociations (Maybe [Filter])
describeTrunkInterfaceAssociations_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrunkInterfaceAssociations' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeTrunkInterfaceAssociations
s@DescribeTrunkInterfaceAssociations' {} Maybe [Filter]
a -> DescribeTrunkInterfaceAssociations
s {$sel:filters:DescribeTrunkInterfaceAssociations' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeTrunkInterfaceAssociations) 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
describeTrunkInterfaceAssociations_maxResults :: Lens.Lens' DescribeTrunkInterfaceAssociations (Prelude.Maybe Prelude.Natural)
describeTrunkInterfaceAssociations_maxResults :: Lens' DescribeTrunkInterfaceAssociations (Maybe Natural)
describeTrunkInterfaceAssociations_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrunkInterfaceAssociations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeTrunkInterfaceAssociations
s@DescribeTrunkInterfaceAssociations' {} Maybe Natural
a -> DescribeTrunkInterfaceAssociations
s {$sel:maxResults:DescribeTrunkInterfaceAssociations' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeTrunkInterfaceAssociations)
describeTrunkInterfaceAssociations_nextToken :: Lens.Lens' DescribeTrunkInterfaceAssociations (Prelude.Maybe Prelude.Text)
describeTrunkInterfaceAssociations_nextToken :: Lens' DescribeTrunkInterfaceAssociations (Maybe Text)
describeTrunkInterfaceAssociations_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrunkInterfaceAssociations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeTrunkInterfaceAssociations
s@DescribeTrunkInterfaceAssociations' {} Maybe Text
a -> DescribeTrunkInterfaceAssociations
s {$sel:nextToken:DescribeTrunkInterfaceAssociations' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeTrunkInterfaceAssociations)
instance
Core.AWSPager
DescribeTrunkInterfaceAssociations
where
page :: DescribeTrunkInterfaceAssociations
-> AWSResponse DescribeTrunkInterfaceAssociations
-> Maybe DescribeTrunkInterfaceAssociations
page DescribeTrunkInterfaceAssociations
rq AWSResponse DescribeTrunkInterfaceAssociations
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeTrunkInterfaceAssociations
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeTrunkInterfaceAssociationsResponse (Maybe Text)
describeTrunkInterfaceAssociationsResponse_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 DescribeTrunkInterfaceAssociations
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
DescribeTrunkInterfaceAssociationsResponse
(Maybe [TrunkInterfaceAssociation])
describeTrunkInterfaceAssociationsResponse_interfaceAssociations
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.$ DescribeTrunkInterfaceAssociations
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' DescribeTrunkInterfaceAssociations (Maybe Text)
describeTrunkInterfaceAssociations_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeTrunkInterfaceAssociations
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeTrunkInterfaceAssociationsResponse (Maybe Text)
describeTrunkInterfaceAssociationsResponse_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
DescribeTrunkInterfaceAssociations
where
type
AWSResponse DescribeTrunkInterfaceAssociations =
DescribeTrunkInterfaceAssociationsResponse
request :: (Service -> Service)
-> DescribeTrunkInterfaceAssociations
-> Request DescribeTrunkInterfaceAssociations
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 DescribeTrunkInterfaceAssociations
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeTrunkInterfaceAssociations)))
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 [TrunkInterfaceAssociation]
-> Maybe Text -> Int -> DescribeTrunkInterfaceAssociationsResponse
DescribeTrunkInterfaceAssociationsResponse'
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
"interfaceAssociationSet"
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
DescribeTrunkInterfaceAssociations
where
hashWithSalt :: Int -> DescribeTrunkInterfaceAssociations -> Int
hashWithSalt
Int
_salt
DescribeTrunkInterfaceAssociations' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
associationIds :: Maybe [Text]
$sel:nextToken:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe Text
$sel:maxResults:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe Natural
$sel:filters:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe [Filter]
$sel:dryRun:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe Bool
$sel:associationIds:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe [Text]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
associationIds
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
instance
Prelude.NFData
DescribeTrunkInterfaceAssociations
where
rnf :: DescribeTrunkInterfaceAssociations -> ()
rnf DescribeTrunkInterfaceAssociations' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
associationIds :: Maybe [Text]
$sel:nextToken:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe Text
$sel:maxResults:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe Natural
$sel:filters:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe [Filter]
$sel:dryRun:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe Bool
$sel:associationIds:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe [Text]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
associationIds
seq :: forall a b. a -> b -> b
`Prelude.seq` 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
instance
Data.ToHeaders
DescribeTrunkInterfaceAssociations
where
toHeaders :: DescribeTrunkInterfaceAssociations -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance
Data.ToPath
DescribeTrunkInterfaceAssociations
where
toPath :: DescribeTrunkInterfaceAssociations -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Data.ToQuery
DescribeTrunkInterfaceAssociations
where
toQuery :: DescribeTrunkInterfaceAssociations -> QueryString
toQuery DescribeTrunkInterfaceAssociations' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
dryRun :: Maybe Bool
associationIds :: Maybe [Text]
$sel:nextToken:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe Text
$sel:maxResults:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe Natural
$sel:filters:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe [Filter]
$sel:dryRun:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe Bool
$sel:associationIds:DescribeTrunkInterfaceAssociations' :: DescribeTrunkInterfaceAssociations -> Maybe [Text]
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: ( ByteString
"DescribeTrunkInterfaceAssociations" ::
Prelude.ByteString
),
ByteString
"Version"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2016-11-15" :: Prelude.ByteString),
forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"AssociationId"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
associationIds
),
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
]
data DescribeTrunkInterfaceAssociationsResponse = DescribeTrunkInterfaceAssociationsResponse'
{
DescribeTrunkInterfaceAssociationsResponse
-> Maybe [TrunkInterfaceAssociation]
interfaceAssociations :: Prelude.Maybe [TrunkInterfaceAssociation],
DescribeTrunkInterfaceAssociationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeTrunkInterfaceAssociationsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeTrunkInterfaceAssociationsResponse
-> DescribeTrunkInterfaceAssociationsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTrunkInterfaceAssociationsResponse
-> DescribeTrunkInterfaceAssociationsResponse -> Bool
$c/= :: DescribeTrunkInterfaceAssociationsResponse
-> DescribeTrunkInterfaceAssociationsResponse -> Bool
== :: DescribeTrunkInterfaceAssociationsResponse
-> DescribeTrunkInterfaceAssociationsResponse -> Bool
$c== :: DescribeTrunkInterfaceAssociationsResponse
-> DescribeTrunkInterfaceAssociationsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeTrunkInterfaceAssociationsResponse]
ReadPrec DescribeTrunkInterfaceAssociationsResponse
Int -> ReadS DescribeTrunkInterfaceAssociationsResponse
ReadS [DescribeTrunkInterfaceAssociationsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTrunkInterfaceAssociationsResponse]
$creadListPrec :: ReadPrec [DescribeTrunkInterfaceAssociationsResponse]
readPrec :: ReadPrec DescribeTrunkInterfaceAssociationsResponse
$creadPrec :: ReadPrec DescribeTrunkInterfaceAssociationsResponse
readList :: ReadS [DescribeTrunkInterfaceAssociationsResponse]
$creadList :: ReadS [DescribeTrunkInterfaceAssociationsResponse]
readsPrec :: Int -> ReadS DescribeTrunkInterfaceAssociationsResponse
$creadsPrec :: Int -> ReadS DescribeTrunkInterfaceAssociationsResponse
Prelude.Read, Int -> DescribeTrunkInterfaceAssociationsResponse -> ShowS
[DescribeTrunkInterfaceAssociationsResponse] -> ShowS
DescribeTrunkInterfaceAssociationsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTrunkInterfaceAssociationsResponse] -> ShowS
$cshowList :: [DescribeTrunkInterfaceAssociationsResponse] -> ShowS
show :: DescribeTrunkInterfaceAssociationsResponse -> String
$cshow :: DescribeTrunkInterfaceAssociationsResponse -> String
showsPrec :: Int -> DescribeTrunkInterfaceAssociationsResponse -> ShowS
$cshowsPrec :: Int -> DescribeTrunkInterfaceAssociationsResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeTrunkInterfaceAssociationsResponse x
-> DescribeTrunkInterfaceAssociationsResponse
forall x.
DescribeTrunkInterfaceAssociationsResponse
-> Rep DescribeTrunkInterfaceAssociationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTrunkInterfaceAssociationsResponse x
-> DescribeTrunkInterfaceAssociationsResponse
$cfrom :: forall x.
DescribeTrunkInterfaceAssociationsResponse
-> Rep DescribeTrunkInterfaceAssociationsResponse x
Prelude.Generic)
newDescribeTrunkInterfaceAssociationsResponse ::
Prelude.Int ->
DescribeTrunkInterfaceAssociationsResponse
newDescribeTrunkInterfaceAssociationsResponse :: Int -> DescribeTrunkInterfaceAssociationsResponse
newDescribeTrunkInterfaceAssociationsResponse
Int
pHttpStatus_ =
DescribeTrunkInterfaceAssociationsResponse'
{ $sel:interfaceAssociations:DescribeTrunkInterfaceAssociationsResponse' :: Maybe [TrunkInterfaceAssociation]
interfaceAssociations =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeTrunkInterfaceAssociationsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeTrunkInterfaceAssociationsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeTrunkInterfaceAssociationsResponse_interfaceAssociations :: Lens.Lens' DescribeTrunkInterfaceAssociationsResponse (Prelude.Maybe [TrunkInterfaceAssociation])
describeTrunkInterfaceAssociationsResponse_interfaceAssociations :: Lens'
DescribeTrunkInterfaceAssociationsResponse
(Maybe [TrunkInterfaceAssociation])
describeTrunkInterfaceAssociationsResponse_interfaceAssociations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrunkInterfaceAssociationsResponse' {Maybe [TrunkInterfaceAssociation]
interfaceAssociations :: Maybe [TrunkInterfaceAssociation]
$sel:interfaceAssociations:DescribeTrunkInterfaceAssociationsResponse' :: DescribeTrunkInterfaceAssociationsResponse
-> Maybe [TrunkInterfaceAssociation]
interfaceAssociations} -> Maybe [TrunkInterfaceAssociation]
interfaceAssociations) (\s :: DescribeTrunkInterfaceAssociationsResponse
s@DescribeTrunkInterfaceAssociationsResponse' {} Maybe [TrunkInterfaceAssociation]
a -> DescribeTrunkInterfaceAssociationsResponse
s {$sel:interfaceAssociations:DescribeTrunkInterfaceAssociationsResponse' :: Maybe [TrunkInterfaceAssociation]
interfaceAssociations = Maybe [TrunkInterfaceAssociation]
a} :: DescribeTrunkInterfaceAssociationsResponse) 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
describeTrunkInterfaceAssociationsResponse_nextToken :: Lens.Lens' DescribeTrunkInterfaceAssociationsResponse (Prelude.Maybe Prelude.Text)
describeTrunkInterfaceAssociationsResponse_nextToken :: Lens' DescribeTrunkInterfaceAssociationsResponse (Maybe Text)
describeTrunkInterfaceAssociationsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrunkInterfaceAssociationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeTrunkInterfaceAssociationsResponse' :: DescribeTrunkInterfaceAssociationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeTrunkInterfaceAssociationsResponse
s@DescribeTrunkInterfaceAssociationsResponse' {} Maybe Text
a -> DescribeTrunkInterfaceAssociationsResponse
s {$sel:nextToken:DescribeTrunkInterfaceAssociationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeTrunkInterfaceAssociationsResponse)
describeTrunkInterfaceAssociationsResponse_httpStatus :: Lens.Lens' DescribeTrunkInterfaceAssociationsResponse Prelude.Int
describeTrunkInterfaceAssociationsResponse_httpStatus :: Lens' DescribeTrunkInterfaceAssociationsResponse Int
describeTrunkInterfaceAssociationsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrunkInterfaceAssociationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeTrunkInterfaceAssociationsResponse' :: DescribeTrunkInterfaceAssociationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeTrunkInterfaceAssociationsResponse
s@DescribeTrunkInterfaceAssociationsResponse' {} Int
a -> DescribeTrunkInterfaceAssociationsResponse
s {$sel:httpStatus:DescribeTrunkInterfaceAssociationsResponse' :: Int
httpStatus = Int
a} :: DescribeTrunkInterfaceAssociationsResponse)
instance
Prelude.NFData
DescribeTrunkInterfaceAssociationsResponse
where
rnf :: DescribeTrunkInterfaceAssociationsResponse -> ()
rnf DescribeTrunkInterfaceAssociationsResponse' {Int
Maybe [TrunkInterfaceAssociation]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
interfaceAssociations :: Maybe [TrunkInterfaceAssociation]
$sel:httpStatus:DescribeTrunkInterfaceAssociationsResponse' :: DescribeTrunkInterfaceAssociationsResponse -> Int
$sel:nextToken:DescribeTrunkInterfaceAssociationsResponse' :: DescribeTrunkInterfaceAssociationsResponse -> Maybe Text
$sel:interfaceAssociations:DescribeTrunkInterfaceAssociationsResponse' :: DescribeTrunkInterfaceAssociationsResponse
-> Maybe [TrunkInterfaceAssociation]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [TrunkInterfaceAssociation]
interfaceAssociations
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