{-# 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.SageMaker.Types.DataCaptureConfigSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SageMaker.Types.CaptureStatus
data DataCaptureConfigSummary = DataCaptureConfigSummary'
{ DataCaptureConfigSummary -> Bool
enableCapture :: Prelude.Bool,
DataCaptureConfigSummary -> CaptureStatus
captureStatus :: CaptureStatus,
DataCaptureConfigSummary -> Natural
currentSamplingPercentage :: Prelude.Natural,
DataCaptureConfigSummary -> Text
destinationS3Uri :: Prelude.Text,
DataCaptureConfigSummary -> Text
kmsKeyId :: Prelude.Text
}
deriving (DataCaptureConfigSummary -> DataCaptureConfigSummary -> Bool
(DataCaptureConfigSummary -> DataCaptureConfigSummary -> Bool)
-> (DataCaptureConfigSummary -> DataCaptureConfigSummary -> Bool)
-> Eq DataCaptureConfigSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DataCaptureConfigSummary -> DataCaptureConfigSummary -> Bool
$c/= :: DataCaptureConfigSummary -> DataCaptureConfigSummary -> Bool
== :: DataCaptureConfigSummary -> DataCaptureConfigSummary -> Bool
$c== :: DataCaptureConfigSummary -> DataCaptureConfigSummary -> Bool
Prelude.Eq, ReadPrec [DataCaptureConfigSummary]
ReadPrec DataCaptureConfigSummary
Int -> ReadS DataCaptureConfigSummary
ReadS [DataCaptureConfigSummary]
(Int -> ReadS DataCaptureConfigSummary)
-> ReadS [DataCaptureConfigSummary]
-> ReadPrec DataCaptureConfigSummary
-> ReadPrec [DataCaptureConfigSummary]
-> Read DataCaptureConfigSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DataCaptureConfigSummary]
$creadListPrec :: ReadPrec [DataCaptureConfigSummary]
readPrec :: ReadPrec DataCaptureConfigSummary
$creadPrec :: ReadPrec DataCaptureConfigSummary
readList :: ReadS [DataCaptureConfigSummary]
$creadList :: ReadS [DataCaptureConfigSummary]
readsPrec :: Int -> ReadS DataCaptureConfigSummary
$creadsPrec :: Int -> ReadS DataCaptureConfigSummary
Prelude.Read, Int -> DataCaptureConfigSummary -> ShowS
[DataCaptureConfigSummary] -> ShowS
DataCaptureConfigSummary -> String
(Int -> DataCaptureConfigSummary -> ShowS)
-> (DataCaptureConfigSummary -> String)
-> ([DataCaptureConfigSummary] -> ShowS)
-> Show DataCaptureConfigSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DataCaptureConfigSummary] -> ShowS
$cshowList :: [DataCaptureConfigSummary] -> ShowS
show :: DataCaptureConfigSummary -> String
$cshow :: DataCaptureConfigSummary -> String
showsPrec :: Int -> DataCaptureConfigSummary -> ShowS
$cshowsPrec :: Int -> DataCaptureConfigSummary -> ShowS
Prelude.Show, (forall x.
DataCaptureConfigSummary -> Rep DataCaptureConfigSummary x)
-> (forall x.
Rep DataCaptureConfigSummary x -> DataCaptureConfigSummary)
-> Generic DataCaptureConfigSummary
forall x.
Rep DataCaptureConfigSummary x -> DataCaptureConfigSummary
forall x.
DataCaptureConfigSummary -> Rep DataCaptureConfigSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DataCaptureConfigSummary x -> DataCaptureConfigSummary
$cfrom :: forall x.
DataCaptureConfigSummary -> Rep DataCaptureConfigSummary x
Prelude.Generic)
newDataCaptureConfigSummary ::
Prelude.Bool ->
CaptureStatus ->
Prelude.Natural ->
Prelude.Text ->
Prelude.Text ->
DataCaptureConfigSummary
newDataCaptureConfigSummary :: Bool
-> CaptureStatus
-> Natural
-> Text
-> Text
-> DataCaptureConfigSummary
newDataCaptureConfigSummary
Bool
pEnableCapture_
CaptureStatus
pCaptureStatus_
Natural
pCurrentSamplingPercentage_
Text
pDestinationS3Uri_
Text
pKmsKeyId_ =
DataCaptureConfigSummary' :: Bool
-> CaptureStatus
-> Natural
-> Text
-> Text
-> DataCaptureConfigSummary
DataCaptureConfigSummary'
{ $sel:enableCapture:DataCaptureConfigSummary' :: Bool
enableCapture =
Bool
pEnableCapture_,
$sel:captureStatus:DataCaptureConfigSummary' :: CaptureStatus
captureStatus = CaptureStatus
pCaptureStatus_,
$sel:currentSamplingPercentage:DataCaptureConfigSummary' :: Natural
currentSamplingPercentage =
Natural
pCurrentSamplingPercentage_,
$sel:destinationS3Uri:DataCaptureConfigSummary' :: Text
destinationS3Uri = Text
pDestinationS3Uri_,
$sel:kmsKeyId:DataCaptureConfigSummary' :: Text
kmsKeyId = Text
pKmsKeyId_
}
dataCaptureConfigSummary_enableCapture :: Lens.Lens' DataCaptureConfigSummary Prelude.Bool
dataCaptureConfigSummary_enableCapture :: (Bool -> f Bool)
-> DataCaptureConfigSummary -> f DataCaptureConfigSummary
dataCaptureConfigSummary_enableCapture = (DataCaptureConfigSummary -> Bool)
-> (DataCaptureConfigSummary -> Bool -> DataCaptureConfigSummary)
-> Lens DataCaptureConfigSummary DataCaptureConfigSummary Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataCaptureConfigSummary' {Bool
enableCapture :: Bool
$sel:enableCapture:DataCaptureConfigSummary' :: DataCaptureConfigSummary -> Bool
enableCapture} -> Bool
enableCapture) (\s :: DataCaptureConfigSummary
s@DataCaptureConfigSummary' {} Bool
a -> DataCaptureConfigSummary
s {$sel:enableCapture:DataCaptureConfigSummary' :: Bool
enableCapture = Bool
a} :: DataCaptureConfigSummary)
dataCaptureConfigSummary_captureStatus :: Lens.Lens' DataCaptureConfigSummary CaptureStatus
dataCaptureConfigSummary_captureStatus :: (CaptureStatus -> f CaptureStatus)
-> DataCaptureConfigSummary -> f DataCaptureConfigSummary
dataCaptureConfigSummary_captureStatus = (DataCaptureConfigSummary -> CaptureStatus)
-> (DataCaptureConfigSummary
-> CaptureStatus -> DataCaptureConfigSummary)
-> Lens
DataCaptureConfigSummary
DataCaptureConfigSummary
CaptureStatus
CaptureStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataCaptureConfigSummary' {CaptureStatus
captureStatus :: CaptureStatus
$sel:captureStatus:DataCaptureConfigSummary' :: DataCaptureConfigSummary -> CaptureStatus
captureStatus} -> CaptureStatus
captureStatus) (\s :: DataCaptureConfigSummary
s@DataCaptureConfigSummary' {} CaptureStatus
a -> DataCaptureConfigSummary
s {$sel:captureStatus:DataCaptureConfigSummary' :: CaptureStatus
captureStatus = CaptureStatus
a} :: DataCaptureConfigSummary)
dataCaptureConfigSummary_currentSamplingPercentage :: Lens.Lens' DataCaptureConfigSummary Prelude.Natural
dataCaptureConfigSummary_currentSamplingPercentage :: (Natural -> f Natural)
-> DataCaptureConfigSummary -> f DataCaptureConfigSummary
dataCaptureConfigSummary_currentSamplingPercentage = (DataCaptureConfigSummary -> Natural)
-> (DataCaptureConfigSummary
-> Natural -> DataCaptureConfigSummary)
-> Lens
DataCaptureConfigSummary DataCaptureConfigSummary Natural Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataCaptureConfigSummary' {Natural
currentSamplingPercentage :: Natural
$sel:currentSamplingPercentage:DataCaptureConfigSummary' :: DataCaptureConfigSummary -> Natural
currentSamplingPercentage} -> Natural
currentSamplingPercentage) (\s :: DataCaptureConfigSummary
s@DataCaptureConfigSummary' {} Natural
a -> DataCaptureConfigSummary
s {$sel:currentSamplingPercentage:DataCaptureConfigSummary' :: Natural
currentSamplingPercentage = Natural
a} :: DataCaptureConfigSummary)
dataCaptureConfigSummary_destinationS3Uri :: Lens.Lens' DataCaptureConfigSummary Prelude.Text
dataCaptureConfigSummary_destinationS3Uri :: (Text -> f Text)
-> DataCaptureConfigSummary -> f DataCaptureConfigSummary
dataCaptureConfigSummary_destinationS3Uri = (DataCaptureConfigSummary -> Text)
-> (DataCaptureConfigSummary -> Text -> DataCaptureConfigSummary)
-> Lens DataCaptureConfigSummary DataCaptureConfigSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataCaptureConfigSummary' {Text
destinationS3Uri :: Text
$sel:destinationS3Uri:DataCaptureConfigSummary' :: DataCaptureConfigSummary -> Text
destinationS3Uri} -> Text
destinationS3Uri) (\s :: DataCaptureConfigSummary
s@DataCaptureConfigSummary' {} Text
a -> DataCaptureConfigSummary
s {$sel:destinationS3Uri:DataCaptureConfigSummary' :: Text
destinationS3Uri = Text
a} :: DataCaptureConfigSummary)
dataCaptureConfigSummary_kmsKeyId :: Lens.Lens' DataCaptureConfigSummary Prelude.Text
dataCaptureConfigSummary_kmsKeyId :: (Text -> f Text)
-> DataCaptureConfigSummary -> f DataCaptureConfigSummary
dataCaptureConfigSummary_kmsKeyId = (DataCaptureConfigSummary -> Text)
-> (DataCaptureConfigSummary -> Text -> DataCaptureConfigSummary)
-> Lens DataCaptureConfigSummary DataCaptureConfigSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataCaptureConfigSummary' {Text
kmsKeyId :: Text
$sel:kmsKeyId:DataCaptureConfigSummary' :: DataCaptureConfigSummary -> Text
kmsKeyId} -> Text
kmsKeyId) (\s :: DataCaptureConfigSummary
s@DataCaptureConfigSummary' {} Text
a -> DataCaptureConfigSummary
s {$sel:kmsKeyId:DataCaptureConfigSummary' :: Text
kmsKeyId = Text
a} :: DataCaptureConfigSummary)
instance Core.FromJSON DataCaptureConfigSummary where
parseJSON :: Value -> Parser DataCaptureConfigSummary
parseJSON =
String
-> (Object -> Parser DataCaptureConfigSummary)
-> Value
-> Parser DataCaptureConfigSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"DataCaptureConfigSummary"
( \Object
x ->
Bool
-> CaptureStatus
-> Natural
-> Text
-> Text
-> DataCaptureConfigSummary
DataCaptureConfigSummary'
(Bool
-> CaptureStatus
-> Natural
-> Text
-> Text
-> DataCaptureConfigSummary)
-> Parser Bool
-> Parser
(CaptureStatus
-> Natural -> Text -> Text -> DataCaptureConfigSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Bool
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"EnableCapture")
Parser
(CaptureStatus
-> Natural -> Text -> Text -> DataCaptureConfigSummary)
-> Parser CaptureStatus
-> Parser (Natural -> Text -> Text -> DataCaptureConfigSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser CaptureStatus
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"CaptureStatus")
Parser (Natural -> Text -> Text -> DataCaptureConfigSummary)
-> Parser Natural
-> Parser (Text -> Text -> DataCaptureConfigSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Natural
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"CurrentSamplingPercentage")
Parser (Text -> Text -> DataCaptureConfigSummary)
-> Parser Text -> Parser (Text -> DataCaptureConfigSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"DestinationS3Uri")
Parser (Text -> DataCaptureConfigSummary)
-> Parser Text -> Parser DataCaptureConfigSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"KmsKeyId")
)
instance Prelude.Hashable DataCaptureConfigSummary
instance Prelude.NFData DataCaptureConfigSummary