{-# 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.EMR.DescribeReleaseLabel
(
DescribeReleaseLabel (..),
newDescribeReleaseLabel,
describeReleaseLabel_nextToken,
describeReleaseLabel_releaseLabel,
describeReleaseLabel_maxResults,
DescribeReleaseLabelResponse (..),
newDescribeReleaseLabelResponse,
describeReleaseLabelResponse_nextToken,
describeReleaseLabelResponse_releaseLabel,
describeReleaseLabelResponse_applications,
describeReleaseLabelResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.EMR.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeReleaseLabel = DescribeReleaseLabel'
{
DescribeReleaseLabel -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeReleaseLabel -> Maybe Text
releaseLabel :: Prelude.Maybe Prelude.Text,
DescribeReleaseLabel -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (DescribeReleaseLabel -> DescribeReleaseLabel -> Bool
(DescribeReleaseLabel -> DescribeReleaseLabel -> Bool)
-> (DescribeReleaseLabel -> DescribeReleaseLabel -> Bool)
-> Eq DescribeReleaseLabel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeReleaseLabel -> DescribeReleaseLabel -> Bool
$c/= :: DescribeReleaseLabel -> DescribeReleaseLabel -> Bool
== :: DescribeReleaseLabel -> DescribeReleaseLabel -> Bool
$c== :: DescribeReleaseLabel -> DescribeReleaseLabel -> Bool
Prelude.Eq, ReadPrec [DescribeReleaseLabel]
ReadPrec DescribeReleaseLabel
Int -> ReadS DescribeReleaseLabel
ReadS [DescribeReleaseLabel]
(Int -> ReadS DescribeReleaseLabel)
-> ReadS [DescribeReleaseLabel]
-> ReadPrec DescribeReleaseLabel
-> ReadPrec [DescribeReleaseLabel]
-> Read DescribeReleaseLabel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeReleaseLabel]
$creadListPrec :: ReadPrec [DescribeReleaseLabel]
readPrec :: ReadPrec DescribeReleaseLabel
$creadPrec :: ReadPrec DescribeReleaseLabel
readList :: ReadS [DescribeReleaseLabel]
$creadList :: ReadS [DescribeReleaseLabel]
readsPrec :: Int -> ReadS DescribeReleaseLabel
$creadsPrec :: Int -> ReadS DescribeReleaseLabel
Prelude.Read, Int -> DescribeReleaseLabel -> ShowS
[DescribeReleaseLabel] -> ShowS
DescribeReleaseLabel -> String
(Int -> DescribeReleaseLabel -> ShowS)
-> (DescribeReleaseLabel -> String)
-> ([DescribeReleaseLabel] -> ShowS)
-> Show DescribeReleaseLabel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeReleaseLabel] -> ShowS
$cshowList :: [DescribeReleaseLabel] -> ShowS
show :: DescribeReleaseLabel -> String
$cshow :: DescribeReleaseLabel -> String
showsPrec :: Int -> DescribeReleaseLabel -> ShowS
$cshowsPrec :: Int -> DescribeReleaseLabel -> ShowS
Prelude.Show, (forall x. DescribeReleaseLabel -> Rep DescribeReleaseLabel x)
-> (forall x. Rep DescribeReleaseLabel x -> DescribeReleaseLabel)
-> Generic DescribeReleaseLabel
forall x. Rep DescribeReleaseLabel x -> DescribeReleaseLabel
forall x. DescribeReleaseLabel -> Rep DescribeReleaseLabel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeReleaseLabel x -> DescribeReleaseLabel
$cfrom :: forall x. DescribeReleaseLabel -> Rep DescribeReleaseLabel x
Prelude.Generic)
newDescribeReleaseLabel ::
DescribeReleaseLabel
newDescribeReleaseLabel :: DescribeReleaseLabel
newDescribeReleaseLabel =
DescribeReleaseLabel' :: Maybe Text -> Maybe Text -> Maybe Natural -> DescribeReleaseLabel
DescribeReleaseLabel'
{ $sel:nextToken:DescribeReleaseLabel' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:releaseLabel:DescribeReleaseLabel' :: Maybe Text
releaseLabel = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeReleaseLabel' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
describeReleaseLabel_nextToken :: Lens.Lens' DescribeReleaseLabel (Prelude.Maybe Prelude.Text)
describeReleaseLabel_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeReleaseLabel -> f DescribeReleaseLabel
describeReleaseLabel_nextToken = (DescribeReleaseLabel -> Maybe Text)
-> (DescribeReleaseLabel -> Maybe Text -> DescribeReleaseLabel)
-> Lens
DescribeReleaseLabel DescribeReleaseLabel (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReleaseLabel' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeReleaseLabel' :: DescribeReleaseLabel -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeReleaseLabel
s@DescribeReleaseLabel' {} Maybe Text
a -> DescribeReleaseLabel
s {$sel:nextToken:DescribeReleaseLabel' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeReleaseLabel)
describeReleaseLabel_releaseLabel :: Lens.Lens' DescribeReleaseLabel (Prelude.Maybe Prelude.Text)
describeReleaseLabel_releaseLabel :: (Maybe Text -> f (Maybe Text))
-> DescribeReleaseLabel -> f DescribeReleaseLabel
describeReleaseLabel_releaseLabel = (DescribeReleaseLabel -> Maybe Text)
-> (DescribeReleaseLabel -> Maybe Text -> DescribeReleaseLabel)
-> Lens
DescribeReleaseLabel DescribeReleaseLabel (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReleaseLabel' {Maybe Text
releaseLabel :: Maybe Text
$sel:releaseLabel:DescribeReleaseLabel' :: DescribeReleaseLabel -> Maybe Text
releaseLabel} -> Maybe Text
releaseLabel) (\s :: DescribeReleaseLabel
s@DescribeReleaseLabel' {} Maybe Text
a -> DescribeReleaseLabel
s {$sel:releaseLabel:DescribeReleaseLabel' :: Maybe Text
releaseLabel = Maybe Text
a} :: DescribeReleaseLabel)
describeReleaseLabel_maxResults :: Lens.Lens' DescribeReleaseLabel (Prelude.Maybe Prelude.Natural)
describeReleaseLabel_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> DescribeReleaseLabel -> f DescribeReleaseLabel
describeReleaseLabel_maxResults = (DescribeReleaseLabel -> Maybe Natural)
-> (DescribeReleaseLabel -> Maybe Natural -> DescribeReleaseLabel)
-> Lens
DescribeReleaseLabel
DescribeReleaseLabel
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReleaseLabel' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeReleaseLabel' :: DescribeReleaseLabel -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeReleaseLabel
s@DescribeReleaseLabel' {} Maybe Natural
a -> DescribeReleaseLabel
s {$sel:maxResults:DescribeReleaseLabel' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeReleaseLabel)
instance Core.AWSRequest DescribeReleaseLabel where
type
AWSResponse DescribeReleaseLabel =
DescribeReleaseLabelResponse
request :: DescribeReleaseLabel -> Request DescribeReleaseLabel
request = Service -> DescribeReleaseLabel -> Request DescribeReleaseLabel
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeReleaseLabel
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeReleaseLabel)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeReleaseLabel))
-> Logger
-> Service
-> Proxy DescribeReleaseLabel
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeReleaseLabel)))
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 Text
-> Maybe Text
-> Maybe [SimplifiedApplication]
-> Int
-> DescribeReleaseLabelResponse
DescribeReleaseLabelResponse'
(Maybe Text
-> Maybe Text
-> Maybe [SimplifiedApplication]
-> Int
-> DescribeReleaseLabelResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [SimplifiedApplication]
-> Int
-> DescribeReleaseLabelResponse)
forall (f :: * -> *) a b. Functor 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
(Maybe Text
-> Maybe [SimplifiedApplication]
-> Int
-> DescribeReleaseLabelResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [SimplifiedApplication]
-> Int -> DescribeReleaseLabelResponse)
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
"ReleaseLabel")
Either
String
(Maybe [SimplifiedApplication]
-> Int -> DescribeReleaseLabelResponse)
-> Either String (Maybe [SimplifiedApplication])
-> Either String (Int -> DescribeReleaseLabelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (Maybe [SimplifiedApplication]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Applications" Either String (Maybe (Maybe [SimplifiedApplication]))
-> Maybe [SimplifiedApplication]
-> Either String (Maybe [SimplifiedApplication])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [SimplifiedApplication]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> DescribeReleaseLabelResponse)
-> Either String Int -> Either String DescribeReleaseLabelResponse
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 DescribeReleaseLabel
instance Prelude.NFData DescribeReleaseLabel
instance Core.ToHeaders DescribeReleaseLabel where
toHeaders :: DescribeReleaseLabel -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeReleaseLabel -> 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
"ElasticMapReduce.DescribeReleaseLabel" ::
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 DescribeReleaseLabel where
toJSON :: DescribeReleaseLabel -> Value
toJSON DescribeReleaseLabel' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
releaseLabel :: Maybe Text
nextToken :: Maybe Text
$sel:maxResults:DescribeReleaseLabel' :: DescribeReleaseLabel -> Maybe Natural
$sel:releaseLabel:DescribeReleaseLabel' :: DescribeReleaseLabel -> Maybe Text
$sel:nextToken:DescribeReleaseLabel' :: DescribeReleaseLabel -> 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
"ReleaseLabel" 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
releaseLabel,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath DescribeReleaseLabel where
toPath :: DescribeReleaseLabel -> ByteString
toPath = ByteString -> DescribeReleaseLabel -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeReleaseLabel where
toQuery :: DescribeReleaseLabel -> QueryString
toQuery = QueryString -> DescribeReleaseLabel -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeReleaseLabelResponse = DescribeReleaseLabelResponse'
{
DescribeReleaseLabelResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeReleaseLabelResponse -> Maybe Text
releaseLabel :: Prelude.Maybe Prelude.Text,
DescribeReleaseLabelResponse -> Maybe [SimplifiedApplication]
applications :: Prelude.Maybe [SimplifiedApplication],
DescribeReleaseLabelResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeReleaseLabelResponse
-> DescribeReleaseLabelResponse -> Bool
(DescribeReleaseLabelResponse
-> DescribeReleaseLabelResponse -> Bool)
-> (DescribeReleaseLabelResponse
-> DescribeReleaseLabelResponse -> Bool)
-> Eq DescribeReleaseLabelResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeReleaseLabelResponse
-> DescribeReleaseLabelResponse -> Bool
$c/= :: DescribeReleaseLabelResponse
-> DescribeReleaseLabelResponse -> Bool
== :: DescribeReleaseLabelResponse
-> DescribeReleaseLabelResponse -> Bool
$c== :: DescribeReleaseLabelResponse
-> DescribeReleaseLabelResponse -> Bool
Prelude.Eq, ReadPrec [DescribeReleaseLabelResponse]
ReadPrec DescribeReleaseLabelResponse
Int -> ReadS DescribeReleaseLabelResponse
ReadS [DescribeReleaseLabelResponse]
(Int -> ReadS DescribeReleaseLabelResponse)
-> ReadS [DescribeReleaseLabelResponse]
-> ReadPrec DescribeReleaseLabelResponse
-> ReadPrec [DescribeReleaseLabelResponse]
-> Read DescribeReleaseLabelResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeReleaseLabelResponse]
$creadListPrec :: ReadPrec [DescribeReleaseLabelResponse]
readPrec :: ReadPrec DescribeReleaseLabelResponse
$creadPrec :: ReadPrec DescribeReleaseLabelResponse
readList :: ReadS [DescribeReleaseLabelResponse]
$creadList :: ReadS [DescribeReleaseLabelResponse]
readsPrec :: Int -> ReadS DescribeReleaseLabelResponse
$creadsPrec :: Int -> ReadS DescribeReleaseLabelResponse
Prelude.Read, Int -> DescribeReleaseLabelResponse -> ShowS
[DescribeReleaseLabelResponse] -> ShowS
DescribeReleaseLabelResponse -> String
(Int -> DescribeReleaseLabelResponse -> ShowS)
-> (DescribeReleaseLabelResponse -> String)
-> ([DescribeReleaseLabelResponse] -> ShowS)
-> Show DescribeReleaseLabelResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeReleaseLabelResponse] -> ShowS
$cshowList :: [DescribeReleaseLabelResponse] -> ShowS
show :: DescribeReleaseLabelResponse -> String
$cshow :: DescribeReleaseLabelResponse -> String
showsPrec :: Int -> DescribeReleaseLabelResponse -> ShowS
$cshowsPrec :: Int -> DescribeReleaseLabelResponse -> ShowS
Prelude.Show, (forall x.
DescribeReleaseLabelResponse -> Rep DescribeReleaseLabelResponse x)
-> (forall x.
Rep DescribeReleaseLabelResponse x -> DescribeReleaseLabelResponse)
-> Generic DescribeReleaseLabelResponse
forall x.
Rep DescribeReleaseLabelResponse x -> DescribeReleaseLabelResponse
forall x.
DescribeReleaseLabelResponse -> Rep DescribeReleaseLabelResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeReleaseLabelResponse x -> DescribeReleaseLabelResponse
$cfrom :: forall x.
DescribeReleaseLabelResponse -> Rep DescribeReleaseLabelResponse x
Prelude.Generic)
newDescribeReleaseLabelResponse ::
Prelude.Int ->
DescribeReleaseLabelResponse
newDescribeReleaseLabelResponse :: Int -> DescribeReleaseLabelResponse
newDescribeReleaseLabelResponse Int
pHttpStatus_ =
DescribeReleaseLabelResponse' :: Maybe Text
-> Maybe Text
-> Maybe [SimplifiedApplication]
-> Int
-> DescribeReleaseLabelResponse
DescribeReleaseLabelResponse'
{ $sel:nextToken:DescribeReleaseLabelResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:releaseLabel:DescribeReleaseLabelResponse' :: Maybe Text
releaseLabel = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:applications:DescribeReleaseLabelResponse' :: Maybe [SimplifiedApplication]
applications = Maybe [SimplifiedApplication]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeReleaseLabelResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeReleaseLabelResponse_nextToken :: Lens.Lens' DescribeReleaseLabelResponse (Prelude.Maybe Prelude.Text)
describeReleaseLabelResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeReleaseLabelResponse -> f DescribeReleaseLabelResponse
describeReleaseLabelResponse_nextToken = (DescribeReleaseLabelResponse -> Maybe Text)
-> (DescribeReleaseLabelResponse
-> Maybe Text -> DescribeReleaseLabelResponse)
-> Lens
DescribeReleaseLabelResponse
DescribeReleaseLabelResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReleaseLabelResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeReleaseLabelResponse' :: DescribeReleaseLabelResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeReleaseLabelResponse
s@DescribeReleaseLabelResponse' {} Maybe Text
a -> DescribeReleaseLabelResponse
s {$sel:nextToken:DescribeReleaseLabelResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeReleaseLabelResponse)
describeReleaseLabelResponse_releaseLabel :: Lens.Lens' DescribeReleaseLabelResponse (Prelude.Maybe Prelude.Text)
describeReleaseLabelResponse_releaseLabel :: (Maybe Text -> f (Maybe Text))
-> DescribeReleaseLabelResponse -> f DescribeReleaseLabelResponse
describeReleaseLabelResponse_releaseLabel = (DescribeReleaseLabelResponse -> Maybe Text)
-> (DescribeReleaseLabelResponse
-> Maybe Text -> DescribeReleaseLabelResponse)
-> Lens
DescribeReleaseLabelResponse
DescribeReleaseLabelResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReleaseLabelResponse' {Maybe Text
releaseLabel :: Maybe Text
$sel:releaseLabel:DescribeReleaseLabelResponse' :: DescribeReleaseLabelResponse -> Maybe Text
releaseLabel} -> Maybe Text
releaseLabel) (\s :: DescribeReleaseLabelResponse
s@DescribeReleaseLabelResponse' {} Maybe Text
a -> DescribeReleaseLabelResponse
s {$sel:releaseLabel:DescribeReleaseLabelResponse' :: Maybe Text
releaseLabel = Maybe Text
a} :: DescribeReleaseLabelResponse)
describeReleaseLabelResponse_applications :: Lens.Lens' DescribeReleaseLabelResponse (Prelude.Maybe [SimplifiedApplication])
describeReleaseLabelResponse_applications :: (Maybe [SimplifiedApplication]
-> f (Maybe [SimplifiedApplication]))
-> DescribeReleaseLabelResponse -> f DescribeReleaseLabelResponse
describeReleaseLabelResponse_applications = (DescribeReleaseLabelResponse -> Maybe [SimplifiedApplication])
-> (DescribeReleaseLabelResponse
-> Maybe [SimplifiedApplication] -> DescribeReleaseLabelResponse)
-> Lens
DescribeReleaseLabelResponse
DescribeReleaseLabelResponse
(Maybe [SimplifiedApplication])
(Maybe [SimplifiedApplication])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReleaseLabelResponse' {Maybe [SimplifiedApplication]
applications :: Maybe [SimplifiedApplication]
$sel:applications:DescribeReleaseLabelResponse' :: DescribeReleaseLabelResponse -> Maybe [SimplifiedApplication]
applications} -> Maybe [SimplifiedApplication]
applications) (\s :: DescribeReleaseLabelResponse
s@DescribeReleaseLabelResponse' {} Maybe [SimplifiedApplication]
a -> DescribeReleaseLabelResponse
s {$sel:applications:DescribeReleaseLabelResponse' :: Maybe [SimplifiedApplication]
applications = Maybe [SimplifiedApplication]
a} :: DescribeReleaseLabelResponse) ((Maybe [SimplifiedApplication]
-> f (Maybe [SimplifiedApplication]))
-> DescribeReleaseLabelResponse -> f DescribeReleaseLabelResponse)
-> ((Maybe [SimplifiedApplication]
-> f (Maybe [SimplifiedApplication]))
-> Maybe [SimplifiedApplication]
-> f (Maybe [SimplifiedApplication]))
-> (Maybe [SimplifiedApplication]
-> f (Maybe [SimplifiedApplication]))
-> DescribeReleaseLabelResponse
-> f DescribeReleaseLabelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[SimplifiedApplication]
[SimplifiedApplication]
[SimplifiedApplication]
[SimplifiedApplication]
-> Iso
(Maybe [SimplifiedApplication])
(Maybe [SimplifiedApplication])
(Maybe [SimplifiedApplication])
(Maybe [SimplifiedApplication])
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
[SimplifiedApplication]
[SimplifiedApplication]
[SimplifiedApplication]
[SimplifiedApplication]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeReleaseLabelResponse_httpStatus :: Lens.Lens' DescribeReleaseLabelResponse Prelude.Int
describeReleaseLabelResponse_httpStatus :: (Int -> f Int)
-> DescribeReleaseLabelResponse -> f DescribeReleaseLabelResponse
describeReleaseLabelResponse_httpStatus = (DescribeReleaseLabelResponse -> Int)
-> (DescribeReleaseLabelResponse
-> Int -> DescribeReleaseLabelResponse)
-> Lens
DescribeReleaseLabelResponse DescribeReleaseLabelResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReleaseLabelResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeReleaseLabelResponse' :: DescribeReleaseLabelResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeReleaseLabelResponse
s@DescribeReleaseLabelResponse' {} Int
a -> DescribeReleaseLabelResponse
s {$sel:httpStatus:DescribeReleaseLabelResponse' :: Int
httpStatus = Int
a} :: DescribeReleaseLabelResponse)
instance Prelude.NFData DescribeReleaseLabelResponse