{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SageMakerGeoSpatial.Types.ListVectorEnrichmentJobOutputConfig where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.SageMakerGeoSpatial.Types.VectorEnrichmentJobStatus
import Amazonka.SageMakerGeoSpatial.Types.VectorEnrichmentJobType
data ListVectorEnrichmentJobOutputConfig = ListVectorEnrichmentJobOutputConfig'
{
ListVectorEnrichmentJobOutputConfig -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
ListVectorEnrichmentJobOutputConfig -> Text
arn :: Prelude.Text,
ListVectorEnrichmentJobOutputConfig -> POSIX
creationTime :: Data.POSIX,
ListVectorEnrichmentJobOutputConfig -> Int
durationInSeconds :: Prelude.Int,
ListVectorEnrichmentJobOutputConfig -> Text
name :: Prelude.Text,
ListVectorEnrichmentJobOutputConfig -> VectorEnrichmentJobStatus
status :: VectorEnrichmentJobStatus,
ListVectorEnrichmentJobOutputConfig -> VectorEnrichmentJobType
type' :: VectorEnrichmentJobType
}
deriving (ListVectorEnrichmentJobOutputConfig
-> ListVectorEnrichmentJobOutputConfig -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListVectorEnrichmentJobOutputConfig
-> ListVectorEnrichmentJobOutputConfig -> Bool
$c/= :: ListVectorEnrichmentJobOutputConfig
-> ListVectorEnrichmentJobOutputConfig -> Bool
== :: ListVectorEnrichmentJobOutputConfig
-> ListVectorEnrichmentJobOutputConfig -> Bool
$c== :: ListVectorEnrichmentJobOutputConfig
-> ListVectorEnrichmentJobOutputConfig -> Bool
Prelude.Eq, ReadPrec [ListVectorEnrichmentJobOutputConfig]
ReadPrec ListVectorEnrichmentJobOutputConfig
Int -> ReadS ListVectorEnrichmentJobOutputConfig
ReadS [ListVectorEnrichmentJobOutputConfig]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListVectorEnrichmentJobOutputConfig]
$creadListPrec :: ReadPrec [ListVectorEnrichmentJobOutputConfig]
readPrec :: ReadPrec ListVectorEnrichmentJobOutputConfig
$creadPrec :: ReadPrec ListVectorEnrichmentJobOutputConfig
readList :: ReadS [ListVectorEnrichmentJobOutputConfig]
$creadList :: ReadS [ListVectorEnrichmentJobOutputConfig]
readsPrec :: Int -> ReadS ListVectorEnrichmentJobOutputConfig
$creadsPrec :: Int -> ReadS ListVectorEnrichmentJobOutputConfig
Prelude.Read, Int -> ListVectorEnrichmentJobOutputConfig -> ShowS
[ListVectorEnrichmentJobOutputConfig] -> ShowS
ListVectorEnrichmentJobOutputConfig -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListVectorEnrichmentJobOutputConfig] -> ShowS
$cshowList :: [ListVectorEnrichmentJobOutputConfig] -> ShowS
show :: ListVectorEnrichmentJobOutputConfig -> String
$cshow :: ListVectorEnrichmentJobOutputConfig -> String
showsPrec :: Int -> ListVectorEnrichmentJobOutputConfig -> ShowS
$cshowsPrec :: Int -> ListVectorEnrichmentJobOutputConfig -> ShowS
Prelude.Show, forall x.
Rep ListVectorEnrichmentJobOutputConfig x
-> ListVectorEnrichmentJobOutputConfig
forall x.
ListVectorEnrichmentJobOutputConfig
-> Rep ListVectorEnrichmentJobOutputConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListVectorEnrichmentJobOutputConfig x
-> ListVectorEnrichmentJobOutputConfig
$cfrom :: forall x.
ListVectorEnrichmentJobOutputConfig
-> Rep ListVectorEnrichmentJobOutputConfig x
Prelude.Generic)
newListVectorEnrichmentJobOutputConfig ::
Prelude.Text ->
Prelude.UTCTime ->
Prelude.Int ->
Prelude.Text ->
VectorEnrichmentJobStatus ->
VectorEnrichmentJobType ->
ListVectorEnrichmentJobOutputConfig
newListVectorEnrichmentJobOutputConfig :: Text
-> UTCTime
-> Int
-> Text
-> VectorEnrichmentJobStatus
-> VectorEnrichmentJobType
-> ListVectorEnrichmentJobOutputConfig
newListVectorEnrichmentJobOutputConfig
Text
pArn_
UTCTime
pCreationTime_
Int
pDurationInSeconds_
Text
pName_
VectorEnrichmentJobStatus
pStatus_
VectorEnrichmentJobType
pType_ =
ListVectorEnrichmentJobOutputConfig'
{ $sel:tags:ListVectorEnrichmentJobOutputConfig' :: Maybe (HashMap Text Text)
tags =
forall a. Maybe a
Prelude.Nothing,
$sel:arn:ListVectorEnrichmentJobOutputConfig' :: Text
arn = Text
pArn_,
$sel:creationTime:ListVectorEnrichmentJobOutputConfig' :: POSIX
creationTime =
forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_,
$sel:durationInSeconds:ListVectorEnrichmentJobOutputConfig' :: Int
durationInSeconds =
Int
pDurationInSeconds_,
$sel:name:ListVectorEnrichmentJobOutputConfig' :: Text
name = Text
pName_,
$sel:status:ListVectorEnrichmentJobOutputConfig' :: VectorEnrichmentJobStatus
status = VectorEnrichmentJobStatus
pStatus_,
$sel:type':ListVectorEnrichmentJobOutputConfig' :: VectorEnrichmentJobType
type' = VectorEnrichmentJobType
pType_
}
listVectorEnrichmentJobOutputConfig_tags :: Lens.Lens' ListVectorEnrichmentJobOutputConfig (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
listVectorEnrichmentJobOutputConfig_tags :: Lens'
ListVectorEnrichmentJobOutputConfig (Maybe (HashMap Text Text))
listVectorEnrichmentJobOutputConfig_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVectorEnrichmentJobOutputConfig' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: ListVectorEnrichmentJobOutputConfig
s@ListVectorEnrichmentJobOutputConfig' {} Maybe (HashMap Text Text)
a -> ListVectorEnrichmentJobOutputConfig
s {$sel:tags:ListVectorEnrichmentJobOutputConfig' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: ListVectorEnrichmentJobOutputConfig) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listVectorEnrichmentJobOutputConfig_arn :: Lens.Lens' ListVectorEnrichmentJobOutputConfig Prelude.Text
listVectorEnrichmentJobOutputConfig_arn :: Lens' ListVectorEnrichmentJobOutputConfig Text
listVectorEnrichmentJobOutputConfig_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVectorEnrichmentJobOutputConfig' {Text
arn :: Text
$sel:arn:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> Text
arn} -> Text
arn) (\s :: ListVectorEnrichmentJobOutputConfig
s@ListVectorEnrichmentJobOutputConfig' {} Text
a -> ListVectorEnrichmentJobOutputConfig
s {$sel:arn:ListVectorEnrichmentJobOutputConfig' :: Text
arn = Text
a} :: ListVectorEnrichmentJobOutputConfig)
listVectorEnrichmentJobOutputConfig_creationTime :: Lens.Lens' ListVectorEnrichmentJobOutputConfig Prelude.UTCTime
listVectorEnrichmentJobOutputConfig_creationTime :: Lens' ListVectorEnrichmentJobOutputConfig UTCTime
listVectorEnrichmentJobOutputConfig_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVectorEnrichmentJobOutputConfig' {POSIX
creationTime :: POSIX
$sel:creationTime:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> POSIX
creationTime} -> POSIX
creationTime) (\s :: ListVectorEnrichmentJobOutputConfig
s@ListVectorEnrichmentJobOutputConfig' {} POSIX
a -> ListVectorEnrichmentJobOutputConfig
s {$sel:creationTime:ListVectorEnrichmentJobOutputConfig' :: POSIX
creationTime = POSIX
a} :: ListVectorEnrichmentJobOutputConfig) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
listVectorEnrichmentJobOutputConfig_durationInSeconds :: Lens.Lens' ListVectorEnrichmentJobOutputConfig Prelude.Int
listVectorEnrichmentJobOutputConfig_durationInSeconds :: Lens' ListVectorEnrichmentJobOutputConfig Int
listVectorEnrichmentJobOutputConfig_durationInSeconds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVectorEnrichmentJobOutputConfig' {Int
durationInSeconds :: Int
$sel:durationInSeconds:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> Int
durationInSeconds} -> Int
durationInSeconds) (\s :: ListVectorEnrichmentJobOutputConfig
s@ListVectorEnrichmentJobOutputConfig' {} Int
a -> ListVectorEnrichmentJobOutputConfig
s {$sel:durationInSeconds:ListVectorEnrichmentJobOutputConfig' :: Int
durationInSeconds = Int
a} :: ListVectorEnrichmentJobOutputConfig)
listVectorEnrichmentJobOutputConfig_name :: Lens.Lens' ListVectorEnrichmentJobOutputConfig Prelude.Text
listVectorEnrichmentJobOutputConfig_name :: Lens' ListVectorEnrichmentJobOutputConfig Text
listVectorEnrichmentJobOutputConfig_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVectorEnrichmentJobOutputConfig' {Text
name :: Text
$sel:name:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> Text
name} -> Text
name) (\s :: ListVectorEnrichmentJobOutputConfig
s@ListVectorEnrichmentJobOutputConfig' {} Text
a -> ListVectorEnrichmentJobOutputConfig
s {$sel:name:ListVectorEnrichmentJobOutputConfig' :: Text
name = Text
a} :: ListVectorEnrichmentJobOutputConfig)
listVectorEnrichmentJobOutputConfig_status :: Lens.Lens' ListVectorEnrichmentJobOutputConfig VectorEnrichmentJobStatus
listVectorEnrichmentJobOutputConfig_status :: Lens' ListVectorEnrichmentJobOutputConfig VectorEnrichmentJobStatus
listVectorEnrichmentJobOutputConfig_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVectorEnrichmentJobOutputConfig' {VectorEnrichmentJobStatus
status :: VectorEnrichmentJobStatus
$sel:status:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> VectorEnrichmentJobStatus
status} -> VectorEnrichmentJobStatus
status) (\s :: ListVectorEnrichmentJobOutputConfig
s@ListVectorEnrichmentJobOutputConfig' {} VectorEnrichmentJobStatus
a -> ListVectorEnrichmentJobOutputConfig
s {$sel:status:ListVectorEnrichmentJobOutputConfig' :: VectorEnrichmentJobStatus
status = VectorEnrichmentJobStatus
a} :: ListVectorEnrichmentJobOutputConfig)
listVectorEnrichmentJobOutputConfig_type :: Lens.Lens' ListVectorEnrichmentJobOutputConfig VectorEnrichmentJobType
listVectorEnrichmentJobOutputConfig_type :: Lens' ListVectorEnrichmentJobOutputConfig VectorEnrichmentJobType
listVectorEnrichmentJobOutputConfig_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVectorEnrichmentJobOutputConfig' {VectorEnrichmentJobType
type' :: VectorEnrichmentJobType
$sel:type':ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> VectorEnrichmentJobType
type'} -> VectorEnrichmentJobType
type') (\s :: ListVectorEnrichmentJobOutputConfig
s@ListVectorEnrichmentJobOutputConfig' {} VectorEnrichmentJobType
a -> ListVectorEnrichmentJobOutputConfig
s {$sel:type':ListVectorEnrichmentJobOutputConfig' :: VectorEnrichmentJobType
type' = VectorEnrichmentJobType
a} :: ListVectorEnrichmentJobOutputConfig)
instance
Data.FromJSON
ListVectorEnrichmentJobOutputConfig
where
parseJSON :: Value -> Parser ListVectorEnrichmentJobOutputConfig
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ListVectorEnrichmentJobOutputConfig"
( \Object
x ->
Maybe (HashMap Text Text)
-> Text
-> POSIX
-> Int
-> Text
-> VectorEnrichmentJobStatus
-> VectorEnrichmentJobType
-> ListVectorEnrichmentJobOutputConfig
ListVectorEnrichmentJobOutputConfig'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Arn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"CreationTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"DurationInSeconds")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Status")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Type")
)
instance
Prelude.Hashable
ListVectorEnrichmentJobOutputConfig
where
hashWithSalt :: Int -> ListVectorEnrichmentJobOutputConfig -> Int
hashWithSalt
Int
_salt
ListVectorEnrichmentJobOutputConfig' {Int
Maybe (HashMap Text Text)
Text
POSIX
VectorEnrichmentJobStatus
VectorEnrichmentJobType
type' :: VectorEnrichmentJobType
status :: VectorEnrichmentJobStatus
name :: Text
durationInSeconds :: Int
creationTime :: POSIX
arn :: Text
tags :: Maybe (HashMap Text Text)
$sel:type':ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> VectorEnrichmentJobType
$sel:status:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> VectorEnrichmentJobStatus
$sel:name:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> Text
$sel:durationInSeconds:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> Int
$sel:creationTime:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> POSIX
$sel:arn:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> Text
$sel:tags:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> Maybe (HashMap Text Text)
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
arn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
creationTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Int
durationInSeconds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` VectorEnrichmentJobStatus
status
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` VectorEnrichmentJobType
type'
instance
Prelude.NFData
ListVectorEnrichmentJobOutputConfig
where
rnf :: ListVectorEnrichmentJobOutputConfig -> ()
rnf ListVectorEnrichmentJobOutputConfig' {Int
Maybe (HashMap Text Text)
Text
POSIX
VectorEnrichmentJobStatus
VectorEnrichmentJobType
type' :: VectorEnrichmentJobType
status :: VectorEnrichmentJobStatus
name :: Text
durationInSeconds :: Int
creationTime :: POSIX
arn :: Text
tags :: Maybe (HashMap Text Text)
$sel:type':ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> VectorEnrichmentJobType
$sel:status:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> VectorEnrichmentJobStatus
$sel:name:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> Text
$sel:durationInSeconds:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> Int
$sel:creationTime:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> POSIX
$sel:arn:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> Text
$sel:tags:ListVectorEnrichmentJobOutputConfig' :: ListVectorEnrichmentJobOutputConfig -> Maybe (HashMap Text Text)
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
creationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
durationInSeconds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf VectorEnrichmentJobStatus
status
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf VectorEnrichmentJobType
type'