{-# 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.LicenseManager.ListAssociationsForLicenseConfiguration
(
ListAssociationsForLicenseConfiguration (..),
newListAssociationsForLicenseConfiguration,
listAssociationsForLicenseConfiguration_maxResults,
listAssociationsForLicenseConfiguration_nextToken,
listAssociationsForLicenseConfiguration_licenseConfigurationArn,
ListAssociationsForLicenseConfigurationResponse (..),
newListAssociationsForLicenseConfigurationResponse,
listAssociationsForLicenseConfigurationResponse_licenseConfigurationAssociations,
listAssociationsForLicenseConfigurationResponse_nextToken,
listAssociationsForLicenseConfigurationResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.LicenseManager.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListAssociationsForLicenseConfiguration = ListAssociationsForLicenseConfiguration'
{
ListAssociationsForLicenseConfiguration -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
ListAssociationsForLicenseConfiguration -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAssociationsForLicenseConfiguration -> Text
licenseConfigurationArn :: Prelude.Text
}
deriving (ListAssociationsForLicenseConfiguration
-> ListAssociationsForLicenseConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAssociationsForLicenseConfiguration
-> ListAssociationsForLicenseConfiguration -> Bool
$c/= :: ListAssociationsForLicenseConfiguration
-> ListAssociationsForLicenseConfiguration -> Bool
== :: ListAssociationsForLicenseConfiguration
-> ListAssociationsForLicenseConfiguration -> Bool
$c== :: ListAssociationsForLicenseConfiguration
-> ListAssociationsForLicenseConfiguration -> Bool
Prelude.Eq, ReadPrec [ListAssociationsForLicenseConfiguration]
ReadPrec ListAssociationsForLicenseConfiguration
Int -> ReadS ListAssociationsForLicenseConfiguration
ReadS [ListAssociationsForLicenseConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAssociationsForLicenseConfiguration]
$creadListPrec :: ReadPrec [ListAssociationsForLicenseConfiguration]
readPrec :: ReadPrec ListAssociationsForLicenseConfiguration
$creadPrec :: ReadPrec ListAssociationsForLicenseConfiguration
readList :: ReadS [ListAssociationsForLicenseConfiguration]
$creadList :: ReadS [ListAssociationsForLicenseConfiguration]
readsPrec :: Int -> ReadS ListAssociationsForLicenseConfiguration
$creadsPrec :: Int -> ReadS ListAssociationsForLicenseConfiguration
Prelude.Read, Int -> ListAssociationsForLicenseConfiguration -> ShowS
[ListAssociationsForLicenseConfiguration] -> ShowS
ListAssociationsForLicenseConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAssociationsForLicenseConfiguration] -> ShowS
$cshowList :: [ListAssociationsForLicenseConfiguration] -> ShowS
show :: ListAssociationsForLicenseConfiguration -> String
$cshow :: ListAssociationsForLicenseConfiguration -> String
showsPrec :: Int -> ListAssociationsForLicenseConfiguration -> ShowS
$cshowsPrec :: Int -> ListAssociationsForLicenseConfiguration -> ShowS
Prelude.Show, forall x.
Rep ListAssociationsForLicenseConfiguration x
-> ListAssociationsForLicenseConfiguration
forall x.
ListAssociationsForLicenseConfiguration
-> Rep ListAssociationsForLicenseConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAssociationsForLicenseConfiguration x
-> ListAssociationsForLicenseConfiguration
$cfrom :: forall x.
ListAssociationsForLicenseConfiguration
-> Rep ListAssociationsForLicenseConfiguration x
Prelude.Generic)
newListAssociationsForLicenseConfiguration ::
Prelude.Text ->
ListAssociationsForLicenseConfiguration
newListAssociationsForLicenseConfiguration :: Text -> ListAssociationsForLicenseConfiguration
newListAssociationsForLicenseConfiguration
Text
pLicenseConfigurationArn_ =
ListAssociationsForLicenseConfiguration'
{ $sel:maxResults:ListAssociationsForLicenseConfiguration' :: Maybe Int
maxResults =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListAssociationsForLicenseConfiguration' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:licenseConfigurationArn:ListAssociationsForLicenseConfiguration' :: Text
licenseConfigurationArn =
Text
pLicenseConfigurationArn_
}
listAssociationsForLicenseConfiguration_maxResults :: Lens.Lens' ListAssociationsForLicenseConfiguration (Prelude.Maybe Prelude.Int)
listAssociationsForLicenseConfiguration_maxResults :: Lens' ListAssociationsForLicenseConfiguration (Maybe Int)
listAssociationsForLicenseConfiguration_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociationsForLicenseConfiguration' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListAssociationsForLicenseConfiguration' :: ListAssociationsForLicenseConfiguration -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListAssociationsForLicenseConfiguration
s@ListAssociationsForLicenseConfiguration' {} Maybe Int
a -> ListAssociationsForLicenseConfiguration
s {$sel:maxResults:ListAssociationsForLicenseConfiguration' :: Maybe Int
maxResults = Maybe Int
a} :: ListAssociationsForLicenseConfiguration)
listAssociationsForLicenseConfiguration_nextToken :: Lens.Lens' ListAssociationsForLicenseConfiguration (Prelude.Maybe Prelude.Text)
listAssociationsForLicenseConfiguration_nextToken :: Lens' ListAssociationsForLicenseConfiguration (Maybe Text)
listAssociationsForLicenseConfiguration_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociationsForLicenseConfiguration' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAssociationsForLicenseConfiguration' :: ListAssociationsForLicenseConfiguration -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAssociationsForLicenseConfiguration
s@ListAssociationsForLicenseConfiguration' {} Maybe Text
a -> ListAssociationsForLicenseConfiguration
s {$sel:nextToken:ListAssociationsForLicenseConfiguration' :: Maybe Text
nextToken = Maybe Text
a} :: ListAssociationsForLicenseConfiguration)
listAssociationsForLicenseConfiguration_licenseConfigurationArn :: Lens.Lens' ListAssociationsForLicenseConfiguration Prelude.Text
listAssociationsForLicenseConfiguration_licenseConfigurationArn :: Lens' ListAssociationsForLicenseConfiguration Text
listAssociationsForLicenseConfiguration_licenseConfigurationArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociationsForLicenseConfiguration' {Text
licenseConfigurationArn :: Text
$sel:licenseConfigurationArn:ListAssociationsForLicenseConfiguration' :: ListAssociationsForLicenseConfiguration -> Text
licenseConfigurationArn} -> Text
licenseConfigurationArn) (\s :: ListAssociationsForLicenseConfiguration
s@ListAssociationsForLicenseConfiguration' {} Text
a -> ListAssociationsForLicenseConfiguration
s {$sel:licenseConfigurationArn:ListAssociationsForLicenseConfiguration' :: Text
licenseConfigurationArn = Text
a} :: ListAssociationsForLicenseConfiguration)
instance
Core.AWSPager
ListAssociationsForLicenseConfiguration
where
page :: ListAssociationsForLicenseConfiguration
-> AWSResponse ListAssociationsForLicenseConfiguration
-> Maybe ListAssociationsForLicenseConfiguration
page ListAssociationsForLicenseConfiguration
rq AWSResponse ListAssociationsForLicenseConfiguration
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAssociationsForLicenseConfiguration
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAssociationsForLicenseConfigurationResponse (Maybe Text)
listAssociationsForLicenseConfigurationResponse_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 ListAssociationsForLicenseConfiguration
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
ListAssociationsForLicenseConfigurationResponse
(Maybe [LicenseConfigurationAssociation])
listAssociationsForLicenseConfigurationResponse_licenseConfigurationAssociations
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.$ ListAssociationsForLicenseConfiguration
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListAssociationsForLicenseConfiguration (Maybe Text)
listAssociationsForLicenseConfiguration_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAssociationsForLicenseConfiguration
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAssociationsForLicenseConfigurationResponse (Maybe Text)
listAssociationsForLicenseConfigurationResponse_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
ListAssociationsForLicenseConfiguration
where
type
AWSResponse
ListAssociationsForLicenseConfiguration =
ListAssociationsForLicenseConfigurationResponse
request :: (Service -> Service)
-> ListAssociationsForLicenseConfiguration
-> Request ListAssociationsForLicenseConfiguration
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListAssociationsForLicenseConfiguration
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse ListAssociationsForLicenseConfiguration)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [LicenseConfigurationAssociation]
-> Maybe Text
-> Int
-> ListAssociationsForLicenseConfigurationResponse
ListAssociationsForLicenseConfigurationResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LicenseConfigurationAssociations"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"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
ListAssociationsForLicenseConfiguration
where
hashWithSalt :: Int -> ListAssociationsForLicenseConfiguration -> Int
hashWithSalt
Int
_salt
ListAssociationsForLicenseConfiguration' {Maybe Int
Maybe Text
Text
licenseConfigurationArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Int
$sel:licenseConfigurationArn:ListAssociationsForLicenseConfiguration' :: ListAssociationsForLicenseConfiguration -> Text
$sel:nextToken:ListAssociationsForLicenseConfiguration' :: ListAssociationsForLicenseConfiguration -> Maybe Text
$sel:maxResults:ListAssociationsForLicenseConfiguration' :: ListAssociationsForLicenseConfiguration -> Maybe Int
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
licenseConfigurationArn
instance
Prelude.NFData
ListAssociationsForLicenseConfiguration
where
rnf :: ListAssociationsForLicenseConfiguration -> ()
rnf ListAssociationsForLicenseConfiguration' {Maybe Int
Maybe Text
Text
licenseConfigurationArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Int
$sel:licenseConfigurationArn:ListAssociationsForLicenseConfiguration' :: ListAssociationsForLicenseConfiguration -> Text
$sel:nextToken:ListAssociationsForLicenseConfiguration' :: ListAssociationsForLicenseConfiguration -> Maybe Text
$sel:maxResults:ListAssociationsForLicenseConfiguration' :: ListAssociationsForLicenseConfiguration -> Maybe Int
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
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
licenseConfigurationArn
instance
Data.ToHeaders
ListAssociationsForLicenseConfiguration
where
toHeaders :: ListAssociationsForLicenseConfiguration -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"AWSLicenseManager.ListAssociationsForLicenseConfiguration" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance
Data.ToJSON
ListAssociationsForLicenseConfiguration
where
toJSON :: ListAssociationsForLicenseConfiguration -> Value
toJSON ListAssociationsForLicenseConfiguration' {Maybe Int
Maybe Text
Text
licenseConfigurationArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Int
$sel:licenseConfigurationArn:ListAssociationsForLicenseConfiguration' :: ListAssociationsForLicenseConfiguration -> Text
$sel:nextToken:ListAssociationsForLicenseConfiguration' :: ListAssociationsForLicenseConfiguration -> Maybe Text
$sel:maxResults:ListAssociationsForLicenseConfiguration' :: ListAssociationsForLicenseConfiguration -> Maybe Int
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxResults,
(Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
forall a. a -> Maybe a
Prelude.Just
( Key
"LicenseConfigurationArn"
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
licenseConfigurationArn
)
]
)
instance
Data.ToPath
ListAssociationsForLicenseConfiguration
where
toPath :: ListAssociationsForLicenseConfiguration -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Data.ToQuery
ListAssociationsForLicenseConfiguration
where
toQuery :: ListAssociationsForLicenseConfiguration -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data ListAssociationsForLicenseConfigurationResponse = ListAssociationsForLicenseConfigurationResponse'
{
ListAssociationsForLicenseConfigurationResponse
-> Maybe [LicenseConfigurationAssociation]
licenseConfigurationAssociations :: Prelude.Maybe [LicenseConfigurationAssociation],
ListAssociationsForLicenseConfigurationResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAssociationsForLicenseConfigurationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAssociationsForLicenseConfigurationResponse
-> ListAssociationsForLicenseConfigurationResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAssociationsForLicenseConfigurationResponse
-> ListAssociationsForLicenseConfigurationResponse -> Bool
$c/= :: ListAssociationsForLicenseConfigurationResponse
-> ListAssociationsForLicenseConfigurationResponse -> Bool
== :: ListAssociationsForLicenseConfigurationResponse
-> ListAssociationsForLicenseConfigurationResponse -> Bool
$c== :: ListAssociationsForLicenseConfigurationResponse
-> ListAssociationsForLicenseConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [ListAssociationsForLicenseConfigurationResponse]
ReadPrec ListAssociationsForLicenseConfigurationResponse
Int -> ReadS ListAssociationsForLicenseConfigurationResponse
ReadS [ListAssociationsForLicenseConfigurationResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAssociationsForLicenseConfigurationResponse]
$creadListPrec :: ReadPrec [ListAssociationsForLicenseConfigurationResponse]
readPrec :: ReadPrec ListAssociationsForLicenseConfigurationResponse
$creadPrec :: ReadPrec ListAssociationsForLicenseConfigurationResponse
readList :: ReadS [ListAssociationsForLicenseConfigurationResponse]
$creadList :: ReadS [ListAssociationsForLicenseConfigurationResponse]
readsPrec :: Int -> ReadS ListAssociationsForLicenseConfigurationResponse
$creadsPrec :: Int -> ReadS ListAssociationsForLicenseConfigurationResponse
Prelude.Read, Int -> ListAssociationsForLicenseConfigurationResponse -> ShowS
[ListAssociationsForLicenseConfigurationResponse] -> ShowS
ListAssociationsForLicenseConfigurationResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAssociationsForLicenseConfigurationResponse] -> ShowS
$cshowList :: [ListAssociationsForLicenseConfigurationResponse] -> ShowS
show :: ListAssociationsForLicenseConfigurationResponse -> String
$cshow :: ListAssociationsForLicenseConfigurationResponse -> String
showsPrec :: Int -> ListAssociationsForLicenseConfigurationResponse -> ShowS
$cshowsPrec :: Int -> ListAssociationsForLicenseConfigurationResponse -> ShowS
Prelude.Show, forall x.
Rep ListAssociationsForLicenseConfigurationResponse x
-> ListAssociationsForLicenseConfigurationResponse
forall x.
ListAssociationsForLicenseConfigurationResponse
-> Rep ListAssociationsForLicenseConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAssociationsForLicenseConfigurationResponse x
-> ListAssociationsForLicenseConfigurationResponse
$cfrom :: forall x.
ListAssociationsForLicenseConfigurationResponse
-> Rep ListAssociationsForLicenseConfigurationResponse x
Prelude.Generic)
newListAssociationsForLicenseConfigurationResponse ::
Prelude.Int ->
ListAssociationsForLicenseConfigurationResponse
newListAssociationsForLicenseConfigurationResponse :: Int -> ListAssociationsForLicenseConfigurationResponse
newListAssociationsForLicenseConfigurationResponse
Int
pHttpStatus_ =
ListAssociationsForLicenseConfigurationResponse'
{ $sel:licenseConfigurationAssociations:ListAssociationsForLicenseConfigurationResponse' :: Maybe [LicenseConfigurationAssociation]
licenseConfigurationAssociations =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListAssociationsForLicenseConfigurationResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAssociationsForLicenseConfigurationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAssociationsForLicenseConfigurationResponse_licenseConfigurationAssociations :: Lens.Lens' ListAssociationsForLicenseConfigurationResponse (Prelude.Maybe [LicenseConfigurationAssociation])
listAssociationsForLicenseConfigurationResponse_licenseConfigurationAssociations :: Lens'
ListAssociationsForLicenseConfigurationResponse
(Maybe [LicenseConfigurationAssociation])
listAssociationsForLicenseConfigurationResponse_licenseConfigurationAssociations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociationsForLicenseConfigurationResponse' {Maybe [LicenseConfigurationAssociation]
licenseConfigurationAssociations :: Maybe [LicenseConfigurationAssociation]
$sel:licenseConfigurationAssociations:ListAssociationsForLicenseConfigurationResponse' :: ListAssociationsForLicenseConfigurationResponse
-> Maybe [LicenseConfigurationAssociation]
licenseConfigurationAssociations} -> Maybe [LicenseConfigurationAssociation]
licenseConfigurationAssociations) (\s :: ListAssociationsForLicenseConfigurationResponse
s@ListAssociationsForLicenseConfigurationResponse' {} Maybe [LicenseConfigurationAssociation]
a -> ListAssociationsForLicenseConfigurationResponse
s {$sel:licenseConfigurationAssociations:ListAssociationsForLicenseConfigurationResponse' :: Maybe [LicenseConfigurationAssociation]
licenseConfigurationAssociations = Maybe [LicenseConfigurationAssociation]
a} :: ListAssociationsForLicenseConfigurationResponse) 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
listAssociationsForLicenseConfigurationResponse_nextToken :: Lens.Lens' ListAssociationsForLicenseConfigurationResponse (Prelude.Maybe Prelude.Text)
listAssociationsForLicenseConfigurationResponse_nextToken :: Lens' ListAssociationsForLicenseConfigurationResponse (Maybe Text)
listAssociationsForLicenseConfigurationResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociationsForLicenseConfigurationResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAssociationsForLicenseConfigurationResponse' :: ListAssociationsForLicenseConfigurationResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAssociationsForLicenseConfigurationResponse
s@ListAssociationsForLicenseConfigurationResponse' {} Maybe Text
a -> ListAssociationsForLicenseConfigurationResponse
s {$sel:nextToken:ListAssociationsForLicenseConfigurationResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAssociationsForLicenseConfigurationResponse)
listAssociationsForLicenseConfigurationResponse_httpStatus :: Lens.Lens' ListAssociationsForLicenseConfigurationResponse Prelude.Int
listAssociationsForLicenseConfigurationResponse_httpStatus :: Lens' ListAssociationsForLicenseConfigurationResponse Int
listAssociationsForLicenseConfigurationResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociationsForLicenseConfigurationResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAssociationsForLicenseConfigurationResponse' :: ListAssociationsForLicenseConfigurationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAssociationsForLicenseConfigurationResponse
s@ListAssociationsForLicenseConfigurationResponse' {} Int
a -> ListAssociationsForLicenseConfigurationResponse
s {$sel:httpStatus:ListAssociationsForLicenseConfigurationResponse' :: Int
httpStatus = Int
a} :: ListAssociationsForLicenseConfigurationResponse)
instance
Prelude.NFData
ListAssociationsForLicenseConfigurationResponse
where
rnf :: ListAssociationsForLicenseConfigurationResponse -> ()
rnf
ListAssociationsForLicenseConfigurationResponse' {Int
Maybe [LicenseConfigurationAssociation]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
licenseConfigurationAssociations :: Maybe [LicenseConfigurationAssociation]
$sel:httpStatus:ListAssociationsForLicenseConfigurationResponse' :: ListAssociationsForLicenseConfigurationResponse -> Int
$sel:nextToken:ListAssociationsForLicenseConfigurationResponse' :: ListAssociationsForLicenseConfigurationResponse -> Maybe Text
$sel:licenseConfigurationAssociations:ListAssociationsForLicenseConfigurationResponse' :: ListAssociationsForLicenseConfigurationResponse
-> Maybe [LicenseConfigurationAssociation]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [LicenseConfigurationAssociation]
licenseConfigurationAssociations
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