{-# 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.ECR.GetLifecyclePolicy
(
GetLifecyclePolicy (..),
newGetLifecyclePolicy,
getLifecyclePolicy_registryId,
getLifecyclePolicy_repositoryName,
GetLifecyclePolicyResponse (..),
newGetLifecyclePolicyResponse,
getLifecyclePolicyResponse_registryId,
getLifecyclePolicyResponse_lastEvaluatedAt,
getLifecyclePolicyResponse_lifecyclePolicyText,
getLifecyclePolicyResponse_repositoryName,
getLifecyclePolicyResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ECR.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 GetLifecyclePolicy = GetLifecyclePolicy'
{
GetLifecyclePolicy -> Maybe Text
registryId :: Prelude.Maybe Prelude.Text,
GetLifecyclePolicy -> Text
repositoryName :: Prelude.Text
}
deriving (GetLifecyclePolicy -> GetLifecyclePolicy -> Bool
(GetLifecyclePolicy -> GetLifecyclePolicy -> Bool)
-> (GetLifecyclePolicy -> GetLifecyclePolicy -> Bool)
-> Eq GetLifecyclePolicy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetLifecyclePolicy -> GetLifecyclePolicy -> Bool
$c/= :: GetLifecyclePolicy -> GetLifecyclePolicy -> Bool
== :: GetLifecyclePolicy -> GetLifecyclePolicy -> Bool
$c== :: GetLifecyclePolicy -> GetLifecyclePolicy -> Bool
Prelude.Eq, ReadPrec [GetLifecyclePolicy]
ReadPrec GetLifecyclePolicy
Int -> ReadS GetLifecyclePolicy
ReadS [GetLifecyclePolicy]
(Int -> ReadS GetLifecyclePolicy)
-> ReadS [GetLifecyclePolicy]
-> ReadPrec GetLifecyclePolicy
-> ReadPrec [GetLifecyclePolicy]
-> Read GetLifecyclePolicy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetLifecyclePolicy]
$creadListPrec :: ReadPrec [GetLifecyclePolicy]
readPrec :: ReadPrec GetLifecyclePolicy
$creadPrec :: ReadPrec GetLifecyclePolicy
readList :: ReadS [GetLifecyclePolicy]
$creadList :: ReadS [GetLifecyclePolicy]
readsPrec :: Int -> ReadS GetLifecyclePolicy
$creadsPrec :: Int -> ReadS GetLifecyclePolicy
Prelude.Read, Int -> GetLifecyclePolicy -> ShowS
[GetLifecyclePolicy] -> ShowS
GetLifecyclePolicy -> String
(Int -> GetLifecyclePolicy -> ShowS)
-> (GetLifecyclePolicy -> String)
-> ([GetLifecyclePolicy] -> ShowS)
-> Show GetLifecyclePolicy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetLifecyclePolicy] -> ShowS
$cshowList :: [GetLifecyclePolicy] -> ShowS
show :: GetLifecyclePolicy -> String
$cshow :: GetLifecyclePolicy -> String
showsPrec :: Int -> GetLifecyclePolicy -> ShowS
$cshowsPrec :: Int -> GetLifecyclePolicy -> ShowS
Prelude.Show, (forall x. GetLifecyclePolicy -> Rep GetLifecyclePolicy x)
-> (forall x. Rep GetLifecyclePolicy x -> GetLifecyclePolicy)
-> Generic GetLifecyclePolicy
forall x. Rep GetLifecyclePolicy x -> GetLifecyclePolicy
forall x. GetLifecyclePolicy -> Rep GetLifecyclePolicy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetLifecyclePolicy x -> GetLifecyclePolicy
$cfrom :: forall x. GetLifecyclePolicy -> Rep GetLifecyclePolicy x
Prelude.Generic)
newGetLifecyclePolicy ::
Prelude.Text ->
GetLifecyclePolicy
newGetLifecyclePolicy :: Text -> GetLifecyclePolicy
newGetLifecyclePolicy Text
pRepositoryName_ =
GetLifecyclePolicy' :: Maybe Text -> Text -> GetLifecyclePolicy
GetLifecyclePolicy'
{ $sel:registryId:GetLifecyclePolicy' :: Maybe Text
registryId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:GetLifecyclePolicy' :: Text
repositoryName = Text
pRepositoryName_
}
getLifecyclePolicy_registryId :: Lens.Lens' GetLifecyclePolicy (Prelude.Maybe Prelude.Text)
getLifecyclePolicy_registryId :: (Maybe Text -> f (Maybe Text))
-> GetLifecyclePolicy -> f GetLifecyclePolicy
getLifecyclePolicy_registryId = (GetLifecyclePolicy -> Maybe Text)
-> (GetLifecyclePolicy -> Maybe Text -> GetLifecyclePolicy)
-> Lens
GetLifecyclePolicy GetLifecyclePolicy (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLifecyclePolicy' {Maybe Text
registryId :: Maybe Text
$sel:registryId:GetLifecyclePolicy' :: GetLifecyclePolicy -> Maybe Text
registryId} -> Maybe Text
registryId) (\s :: GetLifecyclePolicy
s@GetLifecyclePolicy' {} Maybe Text
a -> GetLifecyclePolicy
s {$sel:registryId:GetLifecyclePolicy' :: Maybe Text
registryId = Maybe Text
a} :: GetLifecyclePolicy)
getLifecyclePolicy_repositoryName :: Lens.Lens' GetLifecyclePolicy Prelude.Text
getLifecyclePolicy_repositoryName :: (Text -> f Text) -> GetLifecyclePolicy -> f GetLifecyclePolicy
getLifecyclePolicy_repositoryName = (GetLifecyclePolicy -> Text)
-> (GetLifecyclePolicy -> Text -> GetLifecyclePolicy)
-> Lens GetLifecyclePolicy GetLifecyclePolicy Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLifecyclePolicy' {Text
repositoryName :: Text
$sel:repositoryName:GetLifecyclePolicy' :: GetLifecyclePolicy -> Text
repositoryName} -> Text
repositoryName) (\s :: GetLifecyclePolicy
s@GetLifecyclePolicy' {} Text
a -> GetLifecyclePolicy
s {$sel:repositoryName:GetLifecyclePolicy' :: Text
repositoryName = Text
a} :: GetLifecyclePolicy)
instance Core.AWSRequest GetLifecyclePolicy where
type
AWSResponse GetLifecyclePolicy =
GetLifecyclePolicyResponse
request :: GetLifecyclePolicy -> Request GetLifecyclePolicy
request = Service -> GetLifecyclePolicy -> Request GetLifecyclePolicy
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetLifecyclePolicy
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetLifecyclePolicy)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetLifecyclePolicy))
-> Logger
-> Service
-> Proxy GetLifecyclePolicy
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetLifecyclePolicy)))
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 POSIX
-> Maybe Text
-> Maybe Text
-> Int
-> GetLifecyclePolicyResponse
GetLifecyclePolicyResponse'
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Int
-> GetLifecyclePolicyResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text -> Maybe Text -> Int -> GetLifecyclePolicyResponse)
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
"registryId")
Either
String
(Maybe POSIX
-> Maybe Text -> Maybe Text -> Int -> GetLifecyclePolicyResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> GetLifecyclePolicyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"lastEvaluatedAt")
Either
String
(Maybe Text -> Maybe Text -> Int -> GetLifecyclePolicyResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> GetLifecyclePolicyResponse)
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
"lifecyclePolicyText")
Either String (Maybe Text -> Int -> GetLifecyclePolicyResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetLifecyclePolicyResponse)
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
"repositoryName")
Either String (Int -> GetLifecyclePolicyResponse)
-> Either String Int -> Either String GetLifecyclePolicyResponse
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 GetLifecyclePolicy
instance Prelude.NFData GetLifecyclePolicy
instance Core.ToHeaders GetLifecyclePolicy where
toHeaders :: GetLifecyclePolicy -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetLifecyclePolicy -> 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
"AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicy" ::
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 GetLifecyclePolicy where
toJSON :: GetLifecyclePolicy -> Value
toJSON GetLifecyclePolicy' {Maybe Text
Text
repositoryName :: Text
registryId :: Maybe Text
$sel:repositoryName:GetLifecyclePolicy' :: GetLifecyclePolicy -> Text
$sel:registryId:GetLifecyclePolicy' :: GetLifecyclePolicy -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"registryId" 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
registryId,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"repositoryName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
repositoryName)
]
)
instance Core.ToPath GetLifecyclePolicy where
toPath :: GetLifecyclePolicy -> ByteString
toPath = ByteString -> GetLifecyclePolicy -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetLifecyclePolicy where
toQuery :: GetLifecyclePolicy -> QueryString
toQuery = QueryString -> GetLifecyclePolicy -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetLifecyclePolicyResponse = GetLifecyclePolicyResponse'
{
GetLifecyclePolicyResponse -> Maybe Text
registryId :: Prelude.Maybe Prelude.Text,
GetLifecyclePolicyResponse -> Maybe POSIX
lastEvaluatedAt :: Prelude.Maybe Core.POSIX,
GetLifecyclePolicyResponse -> Maybe Text
lifecyclePolicyText :: Prelude.Maybe Prelude.Text,
GetLifecyclePolicyResponse -> Maybe Text
repositoryName :: Prelude.Maybe Prelude.Text,
GetLifecyclePolicyResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetLifecyclePolicyResponse -> GetLifecyclePolicyResponse -> Bool
(GetLifecyclePolicyResponse -> GetLifecyclePolicyResponse -> Bool)
-> (GetLifecyclePolicyResponse
-> GetLifecyclePolicyResponse -> Bool)
-> Eq GetLifecyclePolicyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetLifecyclePolicyResponse -> GetLifecyclePolicyResponse -> Bool
$c/= :: GetLifecyclePolicyResponse -> GetLifecyclePolicyResponse -> Bool
== :: GetLifecyclePolicyResponse -> GetLifecyclePolicyResponse -> Bool
$c== :: GetLifecyclePolicyResponse -> GetLifecyclePolicyResponse -> Bool
Prelude.Eq, ReadPrec [GetLifecyclePolicyResponse]
ReadPrec GetLifecyclePolicyResponse
Int -> ReadS GetLifecyclePolicyResponse
ReadS [GetLifecyclePolicyResponse]
(Int -> ReadS GetLifecyclePolicyResponse)
-> ReadS [GetLifecyclePolicyResponse]
-> ReadPrec GetLifecyclePolicyResponse
-> ReadPrec [GetLifecyclePolicyResponse]
-> Read GetLifecyclePolicyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetLifecyclePolicyResponse]
$creadListPrec :: ReadPrec [GetLifecyclePolicyResponse]
readPrec :: ReadPrec GetLifecyclePolicyResponse
$creadPrec :: ReadPrec GetLifecyclePolicyResponse
readList :: ReadS [GetLifecyclePolicyResponse]
$creadList :: ReadS [GetLifecyclePolicyResponse]
readsPrec :: Int -> ReadS GetLifecyclePolicyResponse
$creadsPrec :: Int -> ReadS GetLifecyclePolicyResponse
Prelude.Read, Int -> GetLifecyclePolicyResponse -> ShowS
[GetLifecyclePolicyResponse] -> ShowS
GetLifecyclePolicyResponse -> String
(Int -> GetLifecyclePolicyResponse -> ShowS)
-> (GetLifecyclePolicyResponse -> String)
-> ([GetLifecyclePolicyResponse] -> ShowS)
-> Show GetLifecyclePolicyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetLifecyclePolicyResponse] -> ShowS
$cshowList :: [GetLifecyclePolicyResponse] -> ShowS
show :: GetLifecyclePolicyResponse -> String
$cshow :: GetLifecyclePolicyResponse -> String
showsPrec :: Int -> GetLifecyclePolicyResponse -> ShowS
$cshowsPrec :: Int -> GetLifecyclePolicyResponse -> ShowS
Prelude.Show, (forall x.
GetLifecyclePolicyResponse -> Rep GetLifecyclePolicyResponse x)
-> (forall x.
Rep GetLifecyclePolicyResponse x -> GetLifecyclePolicyResponse)
-> Generic GetLifecyclePolicyResponse
forall x.
Rep GetLifecyclePolicyResponse x -> GetLifecyclePolicyResponse
forall x.
GetLifecyclePolicyResponse -> Rep GetLifecyclePolicyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetLifecyclePolicyResponse x -> GetLifecyclePolicyResponse
$cfrom :: forall x.
GetLifecyclePolicyResponse -> Rep GetLifecyclePolicyResponse x
Prelude.Generic)
newGetLifecyclePolicyResponse ::
Prelude.Int ->
GetLifecyclePolicyResponse
newGetLifecyclePolicyResponse :: Int -> GetLifecyclePolicyResponse
newGetLifecyclePolicyResponse Int
pHttpStatus_ =
GetLifecyclePolicyResponse' :: Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Int
-> GetLifecyclePolicyResponse
GetLifecyclePolicyResponse'
{ $sel:registryId:GetLifecyclePolicyResponse' :: Maybe Text
registryId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastEvaluatedAt:GetLifecyclePolicyResponse' :: Maybe POSIX
lastEvaluatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:lifecyclePolicyText:GetLifecyclePolicyResponse' :: Maybe Text
lifecyclePolicyText = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:GetLifecyclePolicyResponse' :: Maybe Text
repositoryName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetLifecyclePolicyResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getLifecyclePolicyResponse_registryId :: Lens.Lens' GetLifecyclePolicyResponse (Prelude.Maybe Prelude.Text)
getLifecyclePolicyResponse_registryId :: (Maybe Text -> f (Maybe Text))
-> GetLifecyclePolicyResponse -> f GetLifecyclePolicyResponse
getLifecyclePolicyResponse_registryId = (GetLifecyclePolicyResponse -> Maybe Text)
-> (GetLifecyclePolicyResponse
-> Maybe Text -> GetLifecyclePolicyResponse)
-> Lens
GetLifecyclePolicyResponse
GetLifecyclePolicyResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLifecyclePolicyResponse' {Maybe Text
registryId :: Maybe Text
$sel:registryId:GetLifecyclePolicyResponse' :: GetLifecyclePolicyResponse -> Maybe Text
registryId} -> Maybe Text
registryId) (\s :: GetLifecyclePolicyResponse
s@GetLifecyclePolicyResponse' {} Maybe Text
a -> GetLifecyclePolicyResponse
s {$sel:registryId:GetLifecyclePolicyResponse' :: Maybe Text
registryId = Maybe Text
a} :: GetLifecyclePolicyResponse)
getLifecyclePolicyResponse_lastEvaluatedAt :: Lens.Lens' GetLifecyclePolicyResponse (Prelude.Maybe Prelude.UTCTime)
getLifecyclePolicyResponse_lastEvaluatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetLifecyclePolicyResponse -> f GetLifecyclePolicyResponse
getLifecyclePolicyResponse_lastEvaluatedAt = (GetLifecyclePolicyResponse -> Maybe POSIX)
-> (GetLifecyclePolicyResponse
-> Maybe POSIX -> GetLifecyclePolicyResponse)
-> Lens
GetLifecyclePolicyResponse
GetLifecyclePolicyResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLifecyclePolicyResponse' {Maybe POSIX
lastEvaluatedAt :: Maybe POSIX
$sel:lastEvaluatedAt:GetLifecyclePolicyResponse' :: GetLifecyclePolicyResponse -> Maybe POSIX
lastEvaluatedAt} -> Maybe POSIX
lastEvaluatedAt) (\s :: GetLifecyclePolicyResponse
s@GetLifecyclePolicyResponse' {} Maybe POSIX
a -> GetLifecyclePolicyResponse
s {$sel:lastEvaluatedAt:GetLifecyclePolicyResponse' :: Maybe POSIX
lastEvaluatedAt = Maybe POSIX
a} :: GetLifecyclePolicyResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetLifecyclePolicyResponse -> f GetLifecyclePolicyResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetLifecyclePolicyResponse
-> f GetLifecyclePolicyResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getLifecyclePolicyResponse_lifecyclePolicyText :: Lens.Lens' GetLifecyclePolicyResponse (Prelude.Maybe Prelude.Text)
getLifecyclePolicyResponse_lifecyclePolicyText :: (Maybe Text -> f (Maybe Text))
-> GetLifecyclePolicyResponse -> f GetLifecyclePolicyResponse
getLifecyclePolicyResponse_lifecyclePolicyText = (GetLifecyclePolicyResponse -> Maybe Text)
-> (GetLifecyclePolicyResponse
-> Maybe Text -> GetLifecyclePolicyResponse)
-> Lens
GetLifecyclePolicyResponse
GetLifecyclePolicyResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLifecyclePolicyResponse' {Maybe Text
lifecyclePolicyText :: Maybe Text
$sel:lifecyclePolicyText:GetLifecyclePolicyResponse' :: GetLifecyclePolicyResponse -> Maybe Text
lifecyclePolicyText} -> Maybe Text
lifecyclePolicyText) (\s :: GetLifecyclePolicyResponse
s@GetLifecyclePolicyResponse' {} Maybe Text
a -> GetLifecyclePolicyResponse
s {$sel:lifecyclePolicyText:GetLifecyclePolicyResponse' :: Maybe Text
lifecyclePolicyText = Maybe Text
a} :: GetLifecyclePolicyResponse)
getLifecyclePolicyResponse_repositoryName :: Lens.Lens' GetLifecyclePolicyResponse (Prelude.Maybe Prelude.Text)
getLifecyclePolicyResponse_repositoryName :: (Maybe Text -> f (Maybe Text))
-> GetLifecyclePolicyResponse -> f GetLifecyclePolicyResponse
getLifecyclePolicyResponse_repositoryName = (GetLifecyclePolicyResponse -> Maybe Text)
-> (GetLifecyclePolicyResponse
-> Maybe Text -> GetLifecyclePolicyResponse)
-> Lens
GetLifecyclePolicyResponse
GetLifecyclePolicyResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLifecyclePolicyResponse' {Maybe Text
repositoryName :: Maybe Text
$sel:repositoryName:GetLifecyclePolicyResponse' :: GetLifecyclePolicyResponse -> Maybe Text
repositoryName} -> Maybe Text
repositoryName) (\s :: GetLifecyclePolicyResponse
s@GetLifecyclePolicyResponse' {} Maybe Text
a -> GetLifecyclePolicyResponse
s {$sel:repositoryName:GetLifecyclePolicyResponse' :: Maybe Text
repositoryName = Maybe Text
a} :: GetLifecyclePolicyResponse)
getLifecyclePolicyResponse_httpStatus :: Lens.Lens' GetLifecyclePolicyResponse Prelude.Int
getLifecyclePolicyResponse_httpStatus :: (Int -> f Int)
-> GetLifecyclePolicyResponse -> f GetLifecyclePolicyResponse
getLifecyclePolicyResponse_httpStatus = (GetLifecyclePolicyResponse -> Int)
-> (GetLifecyclePolicyResponse
-> Int -> GetLifecyclePolicyResponse)
-> Lens
GetLifecyclePolicyResponse GetLifecyclePolicyResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLifecyclePolicyResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetLifecyclePolicyResponse' :: GetLifecyclePolicyResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetLifecyclePolicyResponse
s@GetLifecyclePolicyResponse' {} Int
a -> GetLifecyclePolicyResponse
s {$sel:httpStatus:GetLifecyclePolicyResponse' :: Int
httpStatus = Int
a} :: GetLifecyclePolicyResponse)
instance Prelude.NFData GetLifecyclePolicyResponse