{-# 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.ListLicenseSpecificationsForResource
(
ListLicenseSpecificationsForResource (..),
newListLicenseSpecificationsForResource,
listLicenseSpecificationsForResource_nextToken,
listLicenseSpecificationsForResource_maxResults,
listLicenseSpecificationsForResource_resourceArn,
ListLicenseSpecificationsForResourceResponse (..),
newListLicenseSpecificationsForResourceResponse,
listLicenseSpecificationsForResourceResponse_licenseSpecifications,
listLicenseSpecificationsForResourceResponse_nextToken,
listLicenseSpecificationsForResourceResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LicenseManager.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListLicenseSpecificationsForResource = ListLicenseSpecificationsForResource'
{
ListLicenseSpecificationsForResource -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListLicenseSpecificationsForResource -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
ListLicenseSpecificationsForResource -> Text
resourceArn :: Prelude.Text
}
deriving (ListLicenseSpecificationsForResource
-> ListLicenseSpecificationsForResource -> Bool
(ListLicenseSpecificationsForResource
-> ListLicenseSpecificationsForResource -> Bool)
-> (ListLicenseSpecificationsForResource
-> ListLicenseSpecificationsForResource -> Bool)
-> Eq ListLicenseSpecificationsForResource
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLicenseSpecificationsForResource
-> ListLicenseSpecificationsForResource -> Bool
$c/= :: ListLicenseSpecificationsForResource
-> ListLicenseSpecificationsForResource -> Bool
== :: ListLicenseSpecificationsForResource
-> ListLicenseSpecificationsForResource -> Bool
$c== :: ListLicenseSpecificationsForResource
-> ListLicenseSpecificationsForResource -> Bool
Prelude.Eq, ReadPrec [ListLicenseSpecificationsForResource]
ReadPrec ListLicenseSpecificationsForResource
Int -> ReadS ListLicenseSpecificationsForResource
ReadS [ListLicenseSpecificationsForResource]
(Int -> ReadS ListLicenseSpecificationsForResource)
-> ReadS [ListLicenseSpecificationsForResource]
-> ReadPrec ListLicenseSpecificationsForResource
-> ReadPrec [ListLicenseSpecificationsForResource]
-> Read ListLicenseSpecificationsForResource
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLicenseSpecificationsForResource]
$creadListPrec :: ReadPrec [ListLicenseSpecificationsForResource]
readPrec :: ReadPrec ListLicenseSpecificationsForResource
$creadPrec :: ReadPrec ListLicenseSpecificationsForResource
readList :: ReadS [ListLicenseSpecificationsForResource]
$creadList :: ReadS [ListLicenseSpecificationsForResource]
readsPrec :: Int -> ReadS ListLicenseSpecificationsForResource
$creadsPrec :: Int -> ReadS ListLicenseSpecificationsForResource
Prelude.Read, Int -> ListLicenseSpecificationsForResource -> ShowS
[ListLicenseSpecificationsForResource] -> ShowS
ListLicenseSpecificationsForResource -> String
(Int -> ListLicenseSpecificationsForResource -> ShowS)
-> (ListLicenseSpecificationsForResource -> String)
-> ([ListLicenseSpecificationsForResource] -> ShowS)
-> Show ListLicenseSpecificationsForResource
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLicenseSpecificationsForResource] -> ShowS
$cshowList :: [ListLicenseSpecificationsForResource] -> ShowS
show :: ListLicenseSpecificationsForResource -> String
$cshow :: ListLicenseSpecificationsForResource -> String
showsPrec :: Int -> ListLicenseSpecificationsForResource -> ShowS
$cshowsPrec :: Int -> ListLicenseSpecificationsForResource -> ShowS
Prelude.Show, (forall x.
ListLicenseSpecificationsForResource
-> Rep ListLicenseSpecificationsForResource x)
-> (forall x.
Rep ListLicenseSpecificationsForResource x
-> ListLicenseSpecificationsForResource)
-> Generic ListLicenseSpecificationsForResource
forall x.
Rep ListLicenseSpecificationsForResource x
-> ListLicenseSpecificationsForResource
forall x.
ListLicenseSpecificationsForResource
-> Rep ListLicenseSpecificationsForResource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListLicenseSpecificationsForResource x
-> ListLicenseSpecificationsForResource
$cfrom :: forall x.
ListLicenseSpecificationsForResource
-> Rep ListLicenseSpecificationsForResource x
Prelude.Generic)
newListLicenseSpecificationsForResource ::
Prelude.Text ->
ListLicenseSpecificationsForResource
newListLicenseSpecificationsForResource :: Text -> ListLicenseSpecificationsForResource
newListLicenseSpecificationsForResource Text
pResourceArn_ =
ListLicenseSpecificationsForResource' :: Maybe Text
-> Maybe Int -> Text -> ListLicenseSpecificationsForResource
ListLicenseSpecificationsForResource'
{ $sel:nextToken:ListLicenseSpecificationsForResource' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListLicenseSpecificationsForResource' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:resourceArn:ListLicenseSpecificationsForResource' :: Text
resourceArn = Text
pResourceArn_
}
listLicenseSpecificationsForResource_nextToken :: Lens.Lens' ListLicenseSpecificationsForResource (Prelude.Maybe Prelude.Text)
listLicenseSpecificationsForResource_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListLicenseSpecificationsForResource
-> f ListLicenseSpecificationsForResource
listLicenseSpecificationsForResource_nextToken = (ListLicenseSpecificationsForResource -> Maybe Text)
-> (ListLicenseSpecificationsForResource
-> Maybe Text -> ListLicenseSpecificationsForResource)
-> Lens
ListLicenseSpecificationsForResource
ListLicenseSpecificationsForResource
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseSpecificationsForResource' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLicenseSpecificationsForResource' :: ListLicenseSpecificationsForResource -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLicenseSpecificationsForResource
s@ListLicenseSpecificationsForResource' {} Maybe Text
a -> ListLicenseSpecificationsForResource
s {$sel:nextToken:ListLicenseSpecificationsForResource' :: Maybe Text
nextToken = Maybe Text
a} :: ListLicenseSpecificationsForResource)
listLicenseSpecificationsForResource_maxResults :: Lens.Lens' ListLicenseSpecificationsForResource (Prelude.Maybe Prelude.Int)
listLicenseSpecificationsForResource_maxResults :: (Maybe Int -> f (Maybe Int))
-> ListLicenseSpecificationsForResource
-> f ListLicenseSpecificationsForResource
listLicenseSpecificationsForResource_maxResults = (ListLicenseSpecificationsForResource -> Maybe Int)
-> (ListLicenseSpecificationsForResource
-> Maybe Int -> ListLicenseSpecificationsForResource)
-> Lens
ListLicenseSpecificationsForResource
ListLicenseSpecificationsForResource
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseSpecificationsForResource' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListLicenseSpecificationsForResource' :: ListLicenseSpecificationsForResource -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListLicenseSpecificationsForResource
s@ListLicenseSpecificationsForResource' {} Maybe Int
a -> ListLicenseSpecificationsForResource
s {$sel:maxResults:ListLicenseSpecificationsForResource' :: Maybe Int
maxResults = Maybe Int
a} :: ListLicenseSpecificationsForResource)
listLicenseSpecificationsForResource_resourceArn :: Lens.Lens' ListLicenseSpecificationsForResource Prelude.Text
listLicenseSpecificationsForResource_resourceArn :: (Text -> f Text)
-> ListLicenseSpecificationsForResource
-> f ListLicenseSpecificationsForResource
listLicenseSpecificationsForResource_resourceArn = (ListLicenseSpecificationsForResource -> Text)
-> (ListLicenseSpecificationsForResource
-> Text -> ListLicenseSpecificationsForResource)
-> Lens
ListLicenseSpecificationsForResource
ListLicenseSpecificationsForResource
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseSpecificationsForResource' {Text
resourceArn :: Text
$sel:resourceArn:ListLicenseSpecificationsForResource' :: ListLicenseSpecificationsForResource -> Text
resourceArn} -> Text
resourceArn) (\s :: ListLicenseSpecificationsForResource
s@ListLicenseSpecificationsForResource' {} Text
a -> ListLicenseSpecificationsForResource
s {$sel:resourceArn:ListLicenseSpecificationsForResource' :: Text
resourceArn = Text
a} :: ListLicenseSpecificationsForResource)
instance
Core.AWSPager
ListLicenseSpecificationsForResource
where
page :: ListLicenseSpecificationsForResource
-> AWSResponse ListLicenseSpecificationsForResource
-> Maybe ListLicenseSpecificationsForResource
page ListLicenseSpecificationsForResource
rq AWSResponse ListLicenseSpecificationsForResource
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListLicenseSpecificationsForResource
ListLicenseSpecificationsForResourceResponse
rs
ListLicenseSpecificationsForResourceResponse
-> Getting
(First Text) ListLicenseSpecificationsForResourceResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListLicenseSpecificationsForResourceResponse
-> Const (First Text) ListLicenseSpecificationsForResourceResponse
Lens' ListLicenseSpecificationsForResourceResponse (Maybe Text)
listLicenseSpecificationsForResourceResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListLicenseSpecificationsForResourceResponse
-> Const (First Text) ListLicenseSpecificationsForResourceResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) ListLicenseSpecificationsForResourceResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListLicenseSpecificationsForResource
forall a. Maybe a
Prelude.Nothing
| Maybe [LicenseSpecification] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListLicenseSpecificationsForResource
ListLicenseSpecificationsForResourceResponse
rs
ListLicenseSpecificationsForResourceResponse
-> Getting
(First [LicenseSpecification])
ListLicenseSpecificationsForResourceResponse
[LicenseSpecification]
-> Maybe [LicenseSpecification]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [LicenseSpecification]
-> Const
(First [LicenseSpecification]) (Maybe [LicenseSpecification]))
-> ListLicenseSpecificationsForResourceResponse
-> Const
(First [LicenseSpecification])
ListLicenseSpecificationsForResourceResponse
Lens'
ListLicenseSpecificationsForResourceResponse
(Maybe [LicenseSpecification])
listLicenseSpecificationsForResourceResponse_licenseSpecifications
((Maybe [LicenseSpecification]
-> Const
(First [LicenseSpecification]) (Maybe [LicenseSpecification]))
-> ListLicenseSpecificationsForResourceResponse
-> Const
(First [LicenseSpecification])
ListLicenseSpecificationsForResourceResponse)
-> (([LicenseSpecification]
-> Const (First [LicenseSpecification]) [LicenseSpecification])
-> Maybe [LicenseSpecification]
-> Const
(First [LicenseSpecification]) (Maybe [LicenseSpecification]))
-> Getting
(First [LicenseSpecification])
ListLicenseSpecificationsForResourceResponse
[LicenseSpecification]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([LicenseSpecification]
-> Const (First [LicenseSpecification]) [LicenseSpecification])
-> Maybe [LicenseSpecification]
-> Const
(First [LicenseSpecification]) (Maybe [LicenseSpecification])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListLicenseSpecificationsForResource
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListLicenseSpecificationsForResource
-> Maybe ListLicenseSpecificationsForResource
forall a. a -> Maybe a
Prelude.Just (ListLicenseSpecificationsForResource
-> Maybe ListLicenseSpecificationsForResource)
-> ListLicenseSpecificationsForResource
-> Maybe ListLicenseSpecificationsForResource
forall a b. (a -> b) -> a -> b
Prelude.$
ListLicenseSpecificationsForResource
rq
ListLicenseSpecificationsForResource
-> (ListLicenseSpecificationsForResource
-> ListLicenseSpecificationsForResource)
-> ListLicenseSpecificationsForResource
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListLicenseSpecificationsForResource
-> Identity ListLicenseSpecificationsForResource
Lens
ListLicenseSpecificationsForResource
ListLicenseSpecificationsForResource
(Maybe Text)
(Maybe Text)
listLicenseSpecificationsForResource_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListLicenseSpecificationsForResource
-> Identity ListLicenseSpecificationsForResource)
-> Maybe Text
-> ListLicenseSpecificationsForResource
-> ListLicenseSpecificationsForResource
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListLicenseSpecificationsForResource
ListLicenseSpecificationsForResourceResponse
rs
ListLicenseSpecificationsForResourceResponse
-> Getting
(First Text) ListLicenseSpecificationsForResourceResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListLicenseSpecificationsForResourceResponse
-> Const (First Text) ListLicenseSpecificationsForResourceResponse
Lens' ListLicenseSpecificationsForResourceResponse (Maybe Text)
listLicenseSpecificationsForResourceResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListLicenseSpecificationsForResourceResponse
-> Const (First Text) ListLicenseSpecificationsForResourceResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) ListLicenseSpecificationsForResourceResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance
Core.AWSRequest
ListLicenseSpecificationsForResource
where
type
AWSResponse ListLicenseSpecificationsForResource =
ListLicenseSpecificationsForResourceResponse
request :: ListLicenseSpecificationsForResource
-> Request ListLicenseSpecificationsForResource
request = Service
-> ListLicenseSpecificationsForResource
-> Request ListLicenseSpecificationsForResource
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListLicenseSpecificationsForResource
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse ListLicenseSpecificationsForResource)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse ListLicenseSpecificationsForResource))
-> Logger
-> Service
-> Proxy ListLicenseSpecificationsForResource
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse ListLicenseSpecificationsForResource)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [LicenseSpecification]
-> Maybe Text
-> Int
-> ListLicenseSpecificationsForResourceResponse
ListLicenseSpecificationsForResourceResponse'
(Maybe [LicenseSpecification]
-> Maybe Text
-> Int
-> ListLicenseSpecificationsForResourceResponse)
-> Either String (Maybe [LicenseSpecification])
-> Either
String
(Maybe Text -> Int -> ListLicenseSpecificationsForResourceResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [LicenseSpecification]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LicenseSpecifications"
Either String (Maybe (Maybe [LicenseSpecification]))
-> Maybe [LicenseSpecification]
-> Either String (Maybe [LicenseSpecification])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [LicenseSpecification]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe Text -> Int -> ListLicenseSpecificationsForResourceResponse)
-> Either String (Maybe Text)
-> Either
String (Int -> ListLicenseSpecificationsForResourceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either String (Int -> ListLicenseSpecificationsForResourceResponse)
-> Either String Int
-> Either String ListLicenseSpecificationsForResourceResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
ListLicenseSpecificationsForResource
instance
Prelude.NFData
ListLicenseSpecificationsForResource
instance
Core.ToHeaders
ListLicenseSpecificationsForResource
where
toHeaders :: ListLicenseSpecificationsForResource -> ResponseHeaders
toHeaders =
ResponseHeaders
-> ListLicenseSpecificationsForResource -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSLicenseManager.ListLicenseSpecificationsForResource" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance
Core.ToJSON
ListLicenseSpecificationsForResource
where
toJSON :: ListLicenseSpecificationsForResource -> Value
toJSON ListLicenseSpecificationsForResource' {Maybe Int
Maybe Text
Text
resourceArn :: Text
maxResults :: Maybe Int
nextToken :: Maybe Text
$sel:resourceArn:ListLicenseSpecificationsForResource' :: ListLicenseSpecificationsForResource -> Text
$sel:maxResults:ListLicenseSpecificationsForResource' :: ListLicenseSpecificationsForResource -> Maybe Int
$sel:nextToken:ListLicenseSpecificationsForResource' :: ListLicenseSpecificationsForResource -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"MaxResults" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxResults,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ResourceArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resourceArn)
]
)
instance
Core.ToPath
ListLicenseSpecificationsForResource
where
toPath :: ListLicenseSpecificationsForResource -> ByteString
toPath = ByteString -> ListLicenseSpecificationsForResource -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
ListLicenseSpecificationsForResource
where
toQuery :: ListLicenseSpecificationsForResource -> QueryString
toQuery = QueryString -> ListLicenseSpecificationsForResource -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListLicenseSpecificationsForResourceResponse = ListLicenseSpecificationsForResourceResponse'
{
ListLicenseSpecificationsForResourceResponse
-> Maybe [LicenseSpecification]
licenseSpecifications :: Prelude.Maybe [LicenseSpecification],
ListLicenseSpecificationsForResourceResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListLicenseSpecificationsForResourceResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListLicenseSpecificationsForResourceResponse
-> ListLicenseSpecificationsForResourceResponse -> Bool
(ListLicenseSpecificationsForResourceResponse
-> ListLicenseSpecificationsForResourceResponse -> Bool)
-> (ListLicenseSpecificationsForResourceResponse
-> ListLicenseSpecificationsForResourceResponse -> Bool)
-> Eq ListLicenseSpecificationsForResourceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLicenseSpecificationsForResourceResponse
-> ListLicenseSpecificationsForResourceResponse -> Bool
$c/= :: ListLicenseSpecificationsForResourceResponse
-> ListLicenseSpecificationsForResourceResponse -> Bool
== :: ListLicenseSpecificationsForResourceResponse
-> ListLicenseSpecificationsForResourceResponse -> Bool
$c== :: ListLicenseSpecificationsForResourceResponse
-> ListLicenseSpecificationsForResourceResponse -> Bool
Prelude.Eq, ReadPrec [ListLicenseSpecificationsForResourceResponse]
ReadPrec ListLicenseSpecificationsForResourceResponse
Int -> ReadS ListLicenseSpecificationsForResourceResponse
ReadS [ListLicenseSpecificationsForResourceResponse]
(Int -> ReadS ListLicenseSpecificationsForResourceResponse)
-> ReadS [ListLicenseSpecificationsForResourceResponse]
-> ReadPrec ListLicenseSpecificationsForResourceResponse
-> ReadPrec [ListLicenseSpecificationsForResourceResponse]
-> Read ListLicenseSpecificationsForResourceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLicenseSpecificationsForResourceResponse]
$creadListPrec :: ReadPrec [ListLicenseSpecificationsForResourceResponse]
readPrec :: ReadPrec ListLicenseSpecificationsForResourceResponse
$creadPrec :: ReadPrec ListLicenseSpecificationsForResourceResponse
readList :: ReadS [ListLicenseSpecificationsForResourceResponse]
$creadList :: ReadS [ListLicenseSpecificationsForResourceResponse]
readsPrec :: Int -> ReadS ListLicenseSpecificationsForResourceResponse
$creadsPrec :: Int -> ReadS ListLicenseSpecificationsForResourceResponse
Prelude.Read, Int -> ListLicenseSpecificationsForResourceResponse -> ShowS
[ListLicenseSpecificationsForResourceResponse] -> ShowS
ListLicenseSpecificationsForResourceResponse -> String
(Int -> ListLicenseSpecificationsForResourceResponse -> ShowS)
-> (ListLicenseSpecificationsForResourceResponse -> String)
-> ([ListLicenseSpecificationsForResourceResponse] -> ShowS)
-> Show ListLicenseSpecificationsForResourceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLicenseSpecificationsForResourceResponse] -> ShowS
$cshowList :: [ListLicenseSpecificationsForResourceResponse] -> ShowS
show :: ListLicenseSpecificationsForResourceResponse -> String
$cshow :: ListLicenseSpecificationsForResourceResponse -> String
showsPrec :: Int -> ListLicenseSpecificationsForResourceResponse -> ShowS
$cshowsPrec :: Int -> ListLicenseSpecificationsForResourceResponse -> ShowS
Prelude.Show, (forall x.
ListLicenseSpecificationsForResourceResponse
-> Rep ListLicenseSpecificationsForResourceResponse x)
-> (forall x.
Rep ListLicenseSpecificationsForResourceResponse x
-> ListLicenseSpecificationsForResourceResponse)
-> Generic ListLicenseSpecificationsForResourceResponse
forall x.
Rep ListLicenseSpecificationsForResourceResponse x
-> ListLicenseSpecificationsForResourceResponse
forall x.
ListLicenseSpecificationsForResourceResponse
-> Rep ListLicenseSpecificationsForResourceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListLicenseSpecificationsForResourceResponse x
-> ListLicenseSpecificationsForResourceResponse
$cfrom :: forall x.
ListLicenseSpecificationsForResourceResponse
-> Rep ListLicenseSpecificationsForResourceResponse x
Prelude.Generic)
newListLicenseSpecificationsForResourceResponse ::
Prelude.Int ->
ListLicenseSpecificationsForResourceResponse
newListLicenseSpecificationsForResourceResponse :: Int -> ListLicenseSpecificationsForResourceResponse
newListLicenseSpecificationsForResourceResponse
Int
pHttpStatus_ =
ListLicenseSpecificationsForResourceResponse' :: Maybe [LicenseSpecification]
-> Maybe Text
-> Int
-> ListLicenseSpecificationsForResourceResponse
ListLicenseSpecificationsForResourceResponse'
{ $sel:licenseSpecifications:ListLicenseSpecificationsForResourceResponse' :: Maybe [LicenseSpecification]
licenseSpecifications =
Maybe [LicenseSpecification]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListLicenseSpecificationsForResourceResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListLicenseSpecificationsForResourceResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listLicenseSpecificationsForResourceResponse_licenseSpecifications :: Lens.Lens' ListLicenseSpecificationsForResourceResponse (Prelude.Maybe [LicenseSpecification])
listLicenseSpecificationsForResourceResponse_licenseSpecifications :: (Maybe [LicenseSpecification] -> f (Maybe [LicenseSpecification]))
-> ListLicenseSpecificationsForResourceResponse
-> f ListLicenseSpecificationsForResourceResponse
listLicenseSpecificationsForResourceResponse_licenseSpecifications = (ListLicenseSpecificationsForResourceResponse
-> Maybe [LicenseSpecification])
-> (ListLicenseSpecificationsForResourceResponse
-> Maybe [LicenseSpecification]
-> ListLicenseSpecificationsForResourceResponse)
-> Lens'
ListLicenseSpecificationsForResourceResponse
(Maybe [LicenseSpecification])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseSpecificationsForResourceResponse' {Maybe [LicenseSpecification]
licenseSpecifications :: Maybe [LicenseSpecification]
$sel:licenseSpecifications:ListLicenseSpecificationsForResourceResponse' :: ListLicenseSpecificationsForResourceResponse
-> Maybe [LicenseSpecification]
licenseSpecifications} -> Maybe [LicenseSpecification]
licenseSpecifications) (\s :: ListLicenseSpecificationsForResourceResponse
s@ListLicenseSpecificationsForResourceResponse' {} Maybe [LicenseSpecification]
a -> ListLicenseSpecificationsForResourceResponse
s {$sel:licenseSpecifications:ListLicenseSpecificationsForResourceResponse' :: Maybe [LicenseSpecification]
licenseSpecifications = Maybe [LicenseSpecification]
a} :: ListLicenseSpecificationsForResourceResponse) ((Maybe [LicenseSpecification] -> f (Maybe [LicenseSpecification]))
-> ListLicenseSpecificationsForResourceResponse
-> f ListLicenseSpecificationsForResourceResponse)
-> ((Maybe [LicenseSpecification]
-> f (Maybe [LicenseSpecification]))
-> Maybe [LicenseSpecification]
-> f (Maybe [LicenseSpecification]))
-> (Maybe [LicenseSpecification]
-> f (Maybe [LicenseSpecification]))
-> ListLicenseSpecificationsForResourceResponse
-> f ListLicenseSpecificationsForResourceResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[LicenseSpecification]
[LicenseSpecification]
[LicenseSpecification]
[LicenseSpecification]
-> Iso
(Maybe [LicenseSpecification])
(Maybe [LicenseSpecification])
(Maybe [LicenseSpecification])
(Maybe [LicenseSpecification])
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 AnIso
[LicenseSpecification]
[LicenseSpecification]
[LicenseSpecification]
[LicenseSpecification]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listLicenseSpecificationsForResourceResponse_nextToken :: Lens.Lens' ListLicenseSpecificationsForResourceResponse (Prelude.Maybe Prelude.Text)
listLicenseSpecificationsForResourceResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListLicenseSpecificationsForResourceResponse
-> f ListLicenseSpecificationsForResourceResponse
listLicenseSpecificationsForResourceResponse_nextToken = (ListLicenseSpecificationsForResourceResponse -> Maybe Text)
-> (ListLicenseSpecificationsForResourceResponse
-> Maybe Text -> ListLicenseSpecificationsForResourceResponse)
-> Lens' ListLicenseSpecificationsForResourceResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseSpecificationsForResourceResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLicenseSpecificationsForResourceResponse' :: ListLicenseSpecificationsForResourceResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLicenseSpecificationsForResourceResponse
s@ListLicenseSpecificationsForResourceResponse' {} Maybe Text
a -> ListLicenseSpecificationsForResourceResponse
s {$sel:nextToken:ListLicenseSpecificationsForResourceResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListLicenseSpecificationsForResourceResponse)
listLicenseSpecificationsForResourceResponse_httpStatus :: Lens.Lens' ListLicenseSpecificationsForResourceResponse Prelude.Int
listLicenseSpecificationsForResourceResponse_httpStatus :: (Int -> f Int)
-> ListLicenseSpecificationsForResourceResponse
-> f ListLicenseSpecificationsForResourceResponse
listLicenseSpecificationsForResourceResponse_httpStatus = (ListLicenseSpecificationsForResourceResponse -> Int)
-> (ListLicenseSpecificationsForResourceResponse
-> Int -> ListLicenseSpecificationsForResourceResponse)
-> Lens
ListLicenseSpecificationsForResourceResponse
ListLicenseSpecificationsForResourceResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseSpecificationsForResourceResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListLicenseSpecificationsForResourceResponse' :: ListLicenseSpecificationsForResourceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListLicenseSpecificationsForResourceResponse
s@ListLicenseSpecificationsForResourceResponse' {} Int
a -> ListLicenseSpecificationsForResourceResponse
s {$sel:httpStatus:ListLicenseSpecificationsForResourceResponse' :: Int
httpStatus = Int
a} :: ListLicenseSpecificationsForResourceResponse)
instance
Prelude.NFData
ListLicenseSpecificationsForResourceResponse