module Stratosphere.SageMaker.ModelPackage.TransformOutputProperty (
TransformOutputProperty(..), mkTransformOutputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TransformOutputProperty
=
TransformOutputProperty {TransformOutputProperty -> ()
haddock_workaround_ :: (),
TransformOutputProperty -> Maybe (Value Text)
accept :: (Prelude.Maybe (Value Prelude.Text)),
TransformOutputProperty -> Maybe (Value Text)
assembleWith :: (Prelude.Maybe (Value Prelude.Text)),
TransformOutputProperty -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
TransformOutputProperty -> Value Text
s3OutputPath :: (Value Prelude.Text)}
deriving stock (TransformOutputProperty -> TransformOutputProperty -> Bool
(TransformOutputProperty -> TransformOutputProperty -> Bool)
-> (TransformOutputProperty -> TransformOutputProperty -> Bool)
-> Eq TransformOutputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TransformOutputProperty -> TransformOutputProperty -> Bool
== :: TransformOutputProperty -> TransformOutputProperty -> Bool
$c/= :: TransformOutputProperty -> TransformOutputProperty -> Bool
/= :: TransformOutputProperty -> TransformOutputProperty -> Bool
Prelude.Eq, Int -> TransformOutputProperty -> ShowS
[TransformOutputProperty] -> ShowS
TransformOutputProperty -> String
(Int -> TransformOutputProperty -> ShowS)
-> (TransformOutputProperty -> String)
-> ([TransformOutputProperty] -> ShowS)
-> Show TransformOutputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TransformOutputProperty -> ShowS
showsPrec :: Int -> TransformOutputProperty -> ShowS
$cshow :: TransformOutputProperty -> String
show :: TransformOutputProperty -> String
$cshowList :: [TransformOutputProperty] -> ShowS
showList :: [TransformOutputProperty] -> ShowS
Prelude.Show)
mkTransformOutputProperty ::
Value Prelude.Text -> TransformOutputProperty
mkTransformOutputProperty :: Value Text -> TransformOutputProperty
mkTransformOutputProperty Value Text
s3OutputPath
= TransformOutputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), s3OutputPath :: Value Text
s3OutputPath = Value Text
s3OutputPath,
accept :: Maybe (Value Text)
accept = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, assembleWith :: Maybe (Value Text)
assembleWith = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TransformOutputProperty where
toResourceProperties :: TransformOutputProperty -> ResourceProperties
toResourceProperties TransformOutputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TransformOutputProperty -> ()
accept :: TransformOutputProperty -> Maybe (Value Text)
assembleWith :: TransformOutputProperty -> Maybe (Value Text)
kmsKeyId :: TransformOutputProperty -> Maybe (Value Text)
s3OutputPath :: TransformOutputProperty -> Value Text
haddock_workaround_ :: ()
accept :: Maybe (Value Text)
assembleWith :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
s3OutputPath :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::ModelPackage.TransformOutput",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"S3OutputPath" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
s3OutputPath]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Accept" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
accept,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AssembleWith" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
assembleWith,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"KmsKeyId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
kmsKeyId]))}
instance JSON.ToJSON TransformOutputProperty where
toJSON :: TransformOutputProperty -> Value
toJSON TransformOutputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TransformOutputProperty -> ()
accept :: TransformOutputProperty -> Maybe (Value Text)
assembleWith :: TransformOutputProperty -> Maybe (Value Text)
kmsKeyId :: TransformOutputProperty -> Maybe (Value Text)
s3OutputPath :: TransformOutputProperty -> Value Text
haddock_workaround_ :: ()
accept :: Maybe (Value Text)
assembleWith :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
s3OutputPath :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"S3OutputPath" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
s3OutputPath]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Accept" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
accept,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AssembleWith" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
assembleWith,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"KmsKeyId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
kmsKeyId])))
instance Property "Accept" TransformOutputProperty where
type PropertyType "Accept" TransformOutputProperty = Value Prelude.Text
set :: PropertyType "Accept" TransformOutputProperty
-> TransformOutputProperty -> TransformOutputProperty
set PropertyType "Accept" TransformOutputProperty
newValue TransformOutputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TransformOutputProperty -> ()
accept :: TransformOutputProperty -> Maybe (Value Text)
assembleWith :: TransformOutputProperty -> Maybe (Value Text)
kmsKeyId :: TransformOutputProperty -> Maybe (Value Text)
s3OutputPath :: TransformOutputProperty -> Value Text
haddock_workaround_ :: ()
accept :: Maybe (Value Text)
assembleWith :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
s3OutputPath :: Value Text
..}
= TransformOutputProperty {accept :: Maybe (Value Text)
accept = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Accept" TransformOutputProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
assembleWith :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
s3OutputPath :: Value Text
haddock_workaround_ :: ()
assembleWith :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
s3OutputPath :: Value Text
..}
instance Property "AssembleWith" TransformOutputProperty where
type PropertyType "AssembleWith" TransformOutputProperty = Value Prelude.Text
set :: PropertyType "AssembleWith" TransformOutputProperty
-> TransformOutputProperty -> TransformOutputProperty
set PropertyType "AssembleWith" TransformOutputProperty
newValue TransformOutputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TransformOutputProperty -> ()
accept :: TransformOutputProperty -> Maybe (Value Text)
assembleWith :: TransformOutputProperty -> Maybe (Value Text)
kmsKeyId :: TransformOutputProperty -> Maybe (Value Text)
s3OutputPath :: TransformOutputProperty -> Value Text
haddock_workaround_ :: ()
accept :: Maybe (Value Text)
assembleWith :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
s3OutputPath :: Value Text
..}
= TransformOutputProperty
{assembleWith :: Maybe (Value Text)
assembleWith = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AssembleWith" TransformOutputProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
accept :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
s3OutputPath :: Value Text
haddock_workaround_ :: ()
accept :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
s3OutputPath :: Value Text
..}
instance Property "KmsKeyId" TransformOutputProperty where
type PropertyType "KmsKeyId" TransformOutputProperty = Value Prelude.Text
set :: PropertyType "KmsKeyId" TransformOutputProperty
-> TransformOutputProperty -> TransformOutputProperty
set PropertyType "KmsKeyId" TransformOutputProperty
newValue TransformOutputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TransformOutputProperty -> ()
accept :: TransformOutputProperty -> Maybe (Value Text)
assembleWith :: TransformOutputProperty -> Maybe (Value Text)
kmsKeyId :: TransformOutputProperty -> Maybe (Value Text)
s3OutputPath :: TransformOutputProperty -> Value Text
haddock_workaround_ :: ()
accept :: Maybe (Value Text)
assembleWith :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
s3OutputPath :: Value Text
..}
= TransformOutputProperty {kmsKeyId :: Maybe (Value Text)
kmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyId" TransformOutputProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
accept :: Maybe (Value Text)
assembleWith :: Maybe (Value Text)
s3OutputPath :: Value Text
haddock_workaround_ :: ()
accept :: Maybe (Value Text)
assembleWith :: Maybe (Value Text)
s3OutputPath :: Value Text
..}
instance Property "S3OutputPath" TransformOutputProperty where
type PropertyType "S3OutputPath" TransformOutputProperty = Value Prelude.Text
set :: PropertyType "S3OutputPath" TransformOutputProperty
-> TransformOutputProperty -> TransformOutputProperty
set PropertyType "S3OutputPath" TransformOutputProperty
newValue TransformOutputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TransformOutputProperty -> ()
accept :: TransformOutputProperty -> Maybe (Value Text)
assembleWith :: TransformOutputProperty -> Maybe (Value Text)
kmsKeyId :: TransformOutputProperty -> Maybe (Value Text)
s3OutputPath :: TransformOutputProperty -> Value Text
haddock_workaround_ :: ()
accept :: Maybe (Value Text)
assembleWith :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
s3OutputPath :: Value Text
..}
= TransformOutputProperty {s3OutputPath :: Value Text
s3OutputPath = PropertyType "S3OutputPath" TransformOutputProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
accept :: Maybe (Value Text)
assembleWith :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
accept :: Maybe (Value Text)
assembleWith :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
..}