{-# 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.SageMaker.DescribeImageVersion
(
DescribeImageVersion (..),
newDescribeImageVersion,
describeImageVersion_version,
describeImageVersion_imageName,
DescribeImageVersionResponse (..),
newDescribeImageVersionResponse,
describeImageVersionResponse_creationTime,
describeImageVersionResponse_failureReason,
describeImageVersionResponse_containerImage,
describeImageVersionResponse_lastModifiedTime,
describeImageVersionResponse_imageVersionStatus,
describeImageVersionResponse_version,
describeImageVersionResponse_baseImage,
describeImageVersionResponse_imageArn,
describeImageVersionResponse_imageVersionArn,
describeImageVersionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types
data DescribeImageVersion = DescribeImageVersion'
{
DescribeImageVersion -> Maybe Natural
version :: Prelude.Maybe Prelude.Natural,
DescribeImageVersion -> Text
imageName :: Prelude.Text
}
deriving (DescribeImageVersion -> DescribeImageVersion -> Bool
(DescribeImageVersion -> DescribeImageVersion -> Bool)
-> (DescribeImageVersion -> DescribeImageVersion -> Bool)
-> Eq DescribeImageVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeImageVersion -> DescribeImageVersion -> Bool
$c/= :: DescribeImageVersion -> DescribeImageVersion -> Bool
== :: DescribeImageVersion -> DescribeImageVersion -> Bool
$c== :: DescribeImageVersion -> DescribeImageVersion -> Bool
Prelude.Eq, ReadPrec [DescribeImageVersion]
ReadPrec DescribeImageVersion
Int -> ReadS DescribeImageVersion
ReadS [DescribeImageVersion]
(Int -> ReadS DescribeImageVersion)
-> ReadS [DescribeImageVersion]
-> ReadPrec DescribeImageVersion
-> ReadPrec [DescribeImageVersion]
-> Read DescribeImageVersion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeImageVersion]
$creadListPrec :: ReadPrec [DescribeImageVersion]
readPrec :: ReadPrec DescribeImageVersion
$creadPrec :: ReadPrec DescribeImageVersion
readList :: ReadS [DescribeImageVersion]
$creadList :: ReadS [DescribeImageVersion]
readsPrec :: Int -> ReadS DescribeImageVersion
$creadsPrec :: Int -> ReadS DescribeImageVersion
Prelude.Read, Int -> DescribeImageVersion -> ShowS
[DescribeImageVersion] -> ShowS
DescribeImageVersion -> String
(Int -> DescribeImageVersion -> ShowS)
-> (DescribeImageVersion -> String)
-> ([DescribeImageVersion] -> ShowS)
-> Show DescribeImageVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeImageVersion] -> ShowS
$cshowList :: [DescribeImageVersion] -> ShowS
show :: DescribeImageVersion -> String
$cshow :: DescribeImageVersion -> String
showsPrec :: Int -> DescribeImageVersion -> ShowS
$cshowsPrec :: Int -> DescribeImageVersion -> ShowS
Prelude.Show, (forall x. DescribeImageVersion -> Rep DescribeImageVersion x)
-> (forall x. Rep DescribeImageVersion x -> DescribeImageVersion)
-> Generic DescribeImageVersion
forall x. Rep DescribeImageVersion x -> DescribeImageVersion
forall x. DescribeImageVersion -> Rep DescribeImageVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeImageVersion x -> DescribeImageVersion
$cfrom :: forall x. DescribeImageVersion -> Rep DescribeImageVersion x
Prelude.Generic)
newDescribeImageVersion ::
Prelude.Text ->
DescribeImageVersion
newDescribeImageVersion :: Text -> DescribeImageVersion
newDescribeImageVersion Text
pImageName_ =
DescribeImageVersion' :: Maybe Natural -> Text -> DescribeImageVersion
DescribeImageVersion'
{ $sel:version:DescribeImageVersion' :: Maybe Natural
version = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:imageName:DescribeImageVersion' :: Text
imageName = Text
pImageName_
}
describeImageVersion_version :: Lens.Lens' DescribeImageVersion (Prelude.Maybe Prelude.Natural)
describeImageVersion_version :: (Maybe Natural -> f (Maybe Natural))
-> DescribeImageVersion -> f DescribeImageVersion
describeImageVersion_version = (DescribeImageVersion -> Maybe Natural)
-> (DescribeImageVersion -> Maybe Natural -> DescribeImageVersion)
-> Lens
DescribeImageVersion
DescribeImageVersion
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageVersion' {Maybe Natural
version :: Maybe Natural
$sel:version:DescribeImageVersion' :: DescribeImageVersion -> Maybe Natural
version} -> Maybe Natural
version) (\s :: DescribeImageVersion
s@DescribeImageVersion' {} Maybe Natural
a -> DescribeImageVersion
s {$sel:version:DescribeImageVersion' :: Maybe Natural
version = Maybe Natural
a} :: DescribeImageVersion)
describeImageVersion_imageName :: Lens.Lens' DescribeImageVersion Prelude.Text
describeImageVersion_imageName :: (Text -> f Text) -> DescribeImageVersion -> f DescribeImageVersion
describeImageVersion_imageName = (DescribeImageVersion -> Text)
-> (DescribeImageVersion -> Text -> DescribeImageVersion)
-> Lens DescribeImageVersion DescribeImageVersion Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageVersion' {Text
imageName :: Text
$sel:imageName:DescribeImageVersion' :: DescribeImageVersion -> Text
imageName} -> Text
imageName) (\s :: DescribeImageVersion
s@DescribeImageVersion' {} Text
a -> DescribeImageVersion
s {$sel:imageName:DescribeImageVersion' :: Text
imageName = Text
a} :: DescribeImageVersion)
instance Core.AWSRequest DescribeImageVersion where
type
AWSResponse DescribeImageVersion =
DescribeImageVersionResponse
request :: DescribeImageVersion -> Request DescribeImageVersion
request = Service -> DescribeImageVersion -> Request DescribeImageVersion
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeImageVersion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeImageVersion)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeImageVersion))
-> Logger
-> Service
-> Proxy DescribeImageVersion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeImageVersion)))
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 POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe ImageVersionStatus
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeImageVersionResponse
DescribeImageVersionResponse'
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe ImageVersionStatus
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeImageVersionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe ImageVersionStatus
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeImageVersionResponse)
forall (f :: * -> *) a b. Functor 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
"CreationTime")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe ImageVersionStatus
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeImageVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe ImageVersionStatus
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeImageVersionResponse)
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
"FailureReason")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe ImageVersionStatus
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeImageVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe ImageVersionStatus
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeImageVersionResponse)
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
"ContainerImage")
Either
String
(Maybe POSIX
-> Maybe ImageVersionStatus
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeImageVersionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe ImageVersionStatus
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeImageVersionResponse)
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
"LastModifiedTime")
Either
String
(Maybe ImageVersionStatus
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeImageVersionResponse)
-> Either String (Maybe ImageVersionStatus)
-> Either
String
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeImageVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ImageVersionStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ImageVersionStatus")
Either
String
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeImageVersionResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DescribeImageVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Version")
Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DescribeImageVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> DescribeImageVersionResponse)
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
"BaseImage")
Either
String
(Maybe Text -> Maybe Text -> Int -> DescribeImageVersionResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> DescribeImageVersionResponse)
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
"ImageArn")
Either String (Maybe Text -> Int -> DescribeImageVersionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeImageVersionResponse)
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
"ImageVersionArn")
Either String (Int -> DescribeImageVersionResponse)
-> Either String Int -> Either String DescribeImageVersionResponse
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 DescribeImageVersion
instance Prelude.NFData DescribeImageVersion
instance Core.ToHeaders DescribeImageVersion where
toHeaders :: DescribeImageVersion -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeImageVersion -> 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
"SageMaker.DescribeImageVersion" ::
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 DescribeImageVersion where
toJSON :: DescribeImageVersion -> Value
toJSON DescribeImageVersion' {Maybe Natural
Text
imageName :: Text
version :: Maybe Natural
$sel:imageName:DescribeImageVersion' :: DescribeImageVersion -> Text
$sel:version:DescribeImageVersion' :: DescribeImageVersion -> Maybe Natural
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Version" 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
version,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ImageName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
imageName)
]
)
instance Core.ToPath DescribeImageVersion where
toPath :: DescribeImageVersion -> ByteString
toPath = ByteString -> DescribeImageVersion -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeImageVersion where
toQuery :: DescribeImageVersion -> QueryString
toQuery = QueryString -> DescribeImageVersion -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeImageVersionResponse = DescribeImageVersionResponse'
{
DescribeImageVersionResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
DescribeImageVersionResponse -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
DescribeImageVersionResponse -> Maybe Text
containerImage :: Prelude.Maybe Prelude.Text,
DescribeImageVersionResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
DescribeImageVersionResponse -> Maybe ImageVersionStatus
imageVersionStatus :: Prelude.Maybe ImageVersionStatus,
DescribeImageVersionResponse -> Maybe Natural
version :: Prelude.Maybe Prelude.Natural,
DescribeImageVersionResponse -> Maybe Text
baseImage :: Prelude.Maybe Prelude.Text,
DescribeImageVersionResponse -> Maybe Text
imageArn :: Prelude.Maybe Prelude.Text,
DescribeImageVersionResponse -> Maybe Text
imageVersionArn :: Prelude.Maybe Prelude.Text,
DescribeImageVersionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeImageVersionResponse
-> DescribeImageVersionResponse -> Bool
(DescribeImageVersionResponse
-> DescribeImageVersionResponse -> Bool)
-> (DescribeImageVersionResponse
-> DescribeImageVersionResponse -> Bool)
-> Eq DescribeImageVersionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeImageVersionResponse
-> DescribeImageVersionResponse -> Bool
$c/= :: DescribeImageVersionResponse
-> DescribeImageVersionResponse -> Bool
== :: DescribeImageVersionResponse
-> DescribeImageVersionResponse -> Bool
$c== :: DescribeImageVersionResponse
-> DescribeImageVersionResponse -> Bool
Prelude.Eq, ReadPrec [DescribeImageVersionResponse]
ReadPrec DescribeImageVersionResponse
Int -> ReadS DescribeImageVersionResponse
ReadS [DescribeImageVersionResponse]
(Int -> ReadS DescribeImageVersionResponse)
-> ReadS [DescribeImageVersionResponse]
-> ReadPrec DescribeImageVersionResponse
-> ReadPrec [DescribeImageVersionResponse]
-> Read DescribeImageVersionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeImageVersionResponse]
$creadListPrec :: ReadPrec [DescribeImageVersionResponse]
readPrec :: ReadPrec DescribeImageVersionResponse
$creadPrec :: ReadPrec DescribeImageVersionResponse
readList :: ReadS [DescribeImageVersionResponse]
$creadList :: ReadS [DescribeImageVersionResponse]
readsPrec :: Int -> ReadS DescribeImageVersionResponse
$creadsPrec :: Int -> ReadS DescribeImageVersionResponse
Prelude.Read, Int -> DescribeImageVersionResponse -> ShowS
[DescribeImageVersionResponse] -> ShowS
DescribeImageVersionResponse -> String
(Int -> DescribeImageVersionResponse -> ShowS)
-> (DescribeImageVersionResponse -> String)
-> ([DescribeImageVersionResponse] -> ShowS)
-> Show DescribeImageVersionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeImageVersionResponse] -> ShowS
$cshowList :: [DescribeImageVersionResponse] -> ShowS
show :: DescribeImageVersionResponse -> String
$cshow :: DescribeImageVersionResponse -> String
showsPrec :: Int -> DescribeImageVersionResponse -> ShowS
$cshowsPrec :: Int -> DescribeImageVersionResponse -> ShowS
Prelude.Show, (forall x.
DescribeImageVersionResponse -> Rep DescribeImageVersionResponse x)
-> (forall x.
Rep DescribeImageVersionResponse x -> DescribeImageVersionResponse)
-> Generic DescribeImageVersionResponse
forall x.
Rep DescribeImageVersionResponse x -> DescribeImageVersionResponse
forall x.
DescribeImageVersionResponse -> Rep DescribeImageVersionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeImageVersionResponse x -> DescribeImageVersionResponse
$cfrom :: forall x.
DescribeImageVersionResponse -> Rep DescribeImageVersionResponse x
Prelude.Generic)
newDescribeImageVersionResponse ::
Prelude.Int ->
DescribeImageVersionResponse
newDescribeImageVersionResponse :: Int -> DescribeImageVersionResponse
newDescribeImageVersionResponse Int
pHttpStatus_ =
DescribeImageVersionResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe ImageVersionStatus
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeImageVersionResponse
DescribeImageVersionResponse'
{ $sel:creationTime:DescribeImageVersionResponse' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:failureReason:DescribeImageVersionResponse' :: Maybe Text
failureReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:containerImage:DescribeImageVersionResponse' :: Maybe Text
containerImage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTime:DescribeImageVersionResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:imageVersionStatus:DescribeImageVersionResponse' :: Maybe ImageVersionStatus
imageVersionStatus = Maybe ImageVersionStatus
forall a. Maybe a
Prelude.Nothing,
$sel:version:DescribeImageVersionResponse' :: Maybe Natural
version = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:baseImage:DescribeImageVersionResponse' :: Maybe Text
baseImage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:imageArn:DescribeImageVersionResponse' :: Maybe Text
imageArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:imageVersionArn:DescribeImageVersionResponse' :: Maybe Text
imageVersionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeImageVersionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeImageVersionResponse_creationTime :: Lens.Lens' DescribeImageVersionResponse (Prelude.Maybe Prelude.UTCTime)
describeImageVersionResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeImageVersionResponse -> f DescribeImageVersionResponse
describeImageVersionResponse_creationTime = (DescribeImageVersionResponse -> Maybe POSIX)
-> (DescribeImageVersionResponse
-> Maybe POSIX -> DescribeImageVersionResponse)
-> Lens
DescribeImageVersionResponse
DescribeImageVersionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageVersionResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeImageVersionResponse' :: DescribeImageVersionResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeImageVersionResponse
s@DescribeImageVersionResponse' {} Maybe POSIX
a -> DescribeImageVersionResponse
s {$sel:creationTime:DescribeImageVersionResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeImageVersionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeImageVersionResponse -> f DescribeImageVersionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeImageVersionResponse
-> f DescribeImageVersionResponse
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
describeImageVersionResponse_failureReason :: Lens.Lens' DescribeImageVersionResponse (Prelude.Maybe Prelude.Text)
describeImageVersionResponse_failureReason :: (Maybe Text -> f (Maybe Text))
-> DescribeImageVersionResponse -> f DescribeImageVersionResponse
describeImageVersionResponse_failureReason = (DescribeImageVersionResponse -> Maybe Text)
-> (DescribeImageVersionResponse
-> Maybe Text -> DescribeImageVersionResponse)
-> Lens
DescribeImageVersionResponse
DescribeImageVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageVersionResponse' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:DescribeImageVersionResponse' :: DescribeImageVersionResponse -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: DescribeImageVersionResponse
s@DescribeImageVersionResponse' {} Maybe Text
a -> DescribeImageVersionResponse
s {$sel:failureReason:DescribeImageVersionResponse' :: Maybe Text
failureReason = Maybe Text
a} :: DescribeImageVersionResponse)
describeImageVersionResponse_containerImage :: Lens.Lens' DescribeImageVersionResponse (Prelude.Maybe Prelude.Text)
describeImageVersionResponse_containerImage :: (Maybe Text -> f (Maybe Text))
-> DescribeImageVersionResponse -> f DescribeImageVersionResponse
describeImageVersionResponse_containerImage = (DescribeImageVersionResponse -> Maybe Text)
-> (DescribeImageVersionResponse
-> Maybe Text -> DescribeImageVersionResponse)
-> Lens
DescribeImageVersionResponse
DescribeImageVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageVersionResponse' {Maybe Text
containerImage :: Maybe Text
$sel:containerImage:DescribeImageVersionResponse' :: DescribeImageVersionResponse -> Maybe Text
containerImage} -> Maybe Text
containerImage) (\s :: DescribeImageVersionResponse
s@DescribeImageVersionResponse' {} Maybe Text
a -> DescribeImageVersionResponse
s {$sel:containerImage:DescribeImageVersionResponse' :: Maybe Text
containerImage = Maybe Text
a} :: DescribeImageVersionResponse)
describeImageVersionResponse_lastModifiedTime :: Lens.Lens' DescribeImageVersionResponse (Prelude.Maybe Prelude.UTCTime)
describeImageVersionResponse_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeImageVersionResponse -> f DescribeImageVersionResponse
describeImageVersionResponse_lastModifiedTime = (DescribeImageVersionResponse -> Maybe POSIX)
-> (DescribeImageVersionResponse
-> Maybe POSIX -> DescribeImageVersionResponse)
-> Lens
DescribeImageVersionResponse
DescribeImageVersionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageVersionResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribeImageVersionResponse' :: DescribeImageVersionResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribeImageVersionResponse
s@DescribeImageVersionResponse' {} Maybe POSIX
a -> DescribeImageVersionResponse
s {$sel:lastModifiedTime:DescribeImageVersionResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribeImageVersionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeImageVersionResponse -> f DescribeImageVersionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeImageVersionResponse
-> f DescribeImageVersionResponse
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
describeImageVersionResponse_imageVersionStatus :: Lens.Lens' DescribeImageVersionResponse (Prelude.Maybe ImageVersionStatus)
describeImageVersionResponse_imageVersionStatus :: (Maybe ImageVersionStatus -> f (Maybe ImageVersionStatus))
-> DescribeImageVersionResponse -> f DescribeImageVersionResponse
describeImageVersionResponse_imageVersionStatus = (DescribeImageVersionResponse -> Maybe ImageVersionStatus)
-> (DescribeImageVersionResponse
-> Maybe ImageVersionStatus -> DescribeImageVersionResponse)
-> Lens
DescribeImageVersionResponse
DescribeImageVersionResponse
(Maybe ImageVersionStatus)
(Maybe ImageVersionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageVersionResponse' {Maybe ImageVersionStatus
imageVersionStatus :: Maybe ImageVersionStatus
$sel:imageVersionStatus:DescribeImageVersionResponse' :: DescribeImageVersionResponse -> Maybe ImageVersionStatus
imageVersionStatus} -> Maybe ImageVersionStatus
imageVersionStatus) (\s :: DescribeImageVersionResponse
s@DescribeImageVersionResponse' {} Maybe ImageVersionStatus
a -> DescribeImageVersionResponse
s {$sel:imageVersionStatus:DescribeImageVersionResponse' :: Maybe ImageVersionStatus
imageVersionStatus = Maybe ImageVersionStatus
a} :: DescribeImageVersionResponse)
describeImageVersionResponse_version :: Lens.Lens' DescribeImageVersionResponse (Prelude.Maybe Prelude.Natural)
describeImageVersionResponse_version :: (Maybe Natural -> f (Maybe Natural))
-> DescribeImageVersionResponse -> f DescribeImageVersionResponse
describeImageVersionResponse_version = (DescribeImageVersionResponse -> Maybe Natural)
-> (DescribeImageVersionResponse
-> Maybe Natural -> DescribeImageVersionResponse)
-> Lens
DescribeImageVersionResponse
DescribeImageVersionResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageVersionResponse' {Maybe Natural
version :: Maybe Natural
$sel:version:DescribeImageVersionResponse' :: DescribeImageVersionResponse -> Maybe Natural
version} -> Maybe Natural
version) (\s :: DescribeImageVersionResponse
s@DescribeImageVersionResponse' {} Maybe Natural
a -> DescribeImageVersionResponse
s {$sel:version:DescribeImageVersionResponse' :: Maybe Natural
version = Maybe Natural
a} :: DescribeImageVersionResponse)
describeImageVersionResponse_baseImage :: Lens.Lens' DescribeImageVersionResponse (Prelude.Maybe Prelude.Text)
describeImageVersionResponse_baseImage :: (Maybe Text -> f (Maybe Text))
-> DescribeImageVersionResponse -> f DescribeImageVersionResponse
describeImageVersionResponse_baseImage = (DescribeImageVersionResponse -> Maybe Text)
-> (DescribeImageVersionResponse
-> Maybe Text -> DescribeImageVersionResponse)
-> Lens
DescribeImageVersionResponse
DescribeImageVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageVersionResponse' {Maybe Text
baseImage :: Maybe Text
$sel:baseImage:DescribeImageVersionResponse' :: DescribeImageVersionResponse -> Maybe Text
baseImage} -> Maybe Text
baseImage) (\s :: DescribeImageVersionResponse
s@DescribeImageVersionResponse' {} Maybe Text
a -> DescribeImageVersionResponse
s {$sel:baseImage:DescribeImageVersionResponse' :: Maybe Text
baseImage = Maybe Text
a} :: DescribeImageVersionResponse)
describeImageVersionResponse_imageArn :: Lens.Lens' DescribeImageVersionResponse (Prelude.Maybe Prelude.Text)
describeImageVersionResponse_imageArn :: (Maybe Text -> f (Maybe Text))
-> DescribeImageVersionResponse -> f DescribeImageVersionResponse
describeImageVersionResponse_imageArn = (DescribeImageVersionResponse -> Maybe Text)
-> (DescribeImageVersionResponse
-> Maybe Text -> DescribeImageVersionResponse)
-> Lens
DescribeImageVersionResponse
DescribeImageVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageVersionResponse' {Maybe Text
imageArn :: Maybe Text
$sel:imageArn:DescribeImageVersionResponse' :: DescribeImageVersionResponse -> Maybe Text
imageArn} -> Maybe Text
imageArn) (\s :: DescribeImageVersionResponse
s@DescribeImageVersionResponse' {} Maybe Text
a -> DescribeImageVersionResponse
s {$sel:imageArn:DescribeImageVersionResponse' :: Maybe Text
imageArn = Maybe Text
a} :: DescribeImageVersionResponse)
describeImageVersionResponse_imageVersionArn :: Lens.Lens' DescribeImageVersionResponse (Prelude.Maybe Prelude.Text)
describeImageVersionResponse_imageVersionArn :: (Maybe Text -> f (Maybe Text))
-> DescribeImageVersionResponse -> f DescribeImageVersionResponse
describeImageVersionResponse_imageVersionArn = (DescribeImageVersionResponse -> Maybe Text)
-> (DescribeImageVersionResponse
-> Maybe Text -> DescribeImageVersionResponse)
-> Lens
DescribeImageVersionResponse
DescribeImageVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageVersionResponse' {Maybe Text
imageVersionArn :: Maybe Text
$sel:imageVersionArn:DescribeImageVersionResponse' :: DescribeImageVersionResponse -> Maybe Text
imageVersionArn} -> Maybe Text
imageVersionArn) (\s :: DescribeImageVersionResponse
s@DescribeImageVersionResponse' {} Maybe Text
a -> DescribeImageVersionResponse
s {$sel:imageVersionArn:DescribeImageVersionResponse' :: Maybe Text
imageVersionArn = Maybe Text
a} :: DescribeImageVersionResponse)
describeImageVersionResponse_httpStatus :: Lens.Lens' DescribeImageVersionResponse Prelude.Int
describeImageVersionResponse_httpStatus :: (Int -> f Int)
-> DescribeImageVersionResponse -> f DescribeImageVersionResponse
describeImageVersionResponse_httpStatus = (DescribeImageVersionResponse -> Int)
-> (DescribeImageVersionResponse
-> Int -> DescribeImageVersionResponse)
-> Lens
DescribeImageVersionResponse DescribeImageVersionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageVersionResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeImageVersionResponse' :: DescribeImageVersionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeImageVersionResponse
s@DescribeImageVersionResponse' {} Int
a -> DescribeImageVersionResponse
s {$sel:httpStatus:DescribeImageVersionResponse' :: Int
httpStatus = Int
a} :: DescribeImageVersionResponse)
instance Prelude.NFData DescribeImageVersionResponse