module Stratosphere.SageMaker.ProcessingJob.AppSpecificationProperty (
        AppSpecificationProperty(..), mkAppSpecificationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AppSpecificationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-appspecification.html>
    AppSpecificationProperty {AppSpecificationProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-appspecification.html#cfn-sagemaker-processingjob-appspecification-containerarguments>
                              AppSpecificationProperty -> Maybe (ValueList Text)
containerArguments :: (Prelude.Maybe (ValueList Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-appspecification.html#cfn-sagemaker-processingjob-appspecification-containerentrypoint>
                              AppSpecificationProperty -> Maybe (ValueList Text)
containerEntrypoint :: (Prelude.Maybe (ValueList Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-appspecification.html#cfn-sagemaker-processingjob-appspecification-imageuri>
                              AppSpecificationProperty -> Value Text
imageUri :: (Value Prelude.Text)}
  deriving stock (AppSpecificationProperty -> AppSpecificationProperty -> Bool
(AppSpecificationProperty -> AppSpecificationProperty -> Bool)
-> (AppSpecificationProperty -> AppSpecificationProperty -> Bool)
-> Eq AppSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AppSpecificationProperty -> AppSpecificationProperty -> Bool
== :: AppSpecificationProperty -> AppSpecificationProperty -> Bool
$c/= :: AppSpecificationProperty -> AppSpecificationProperty -> Bool
/= :: AppSpecificationProperty -> AppSpecificationProperty -> Bool
Prelude.Eq, Int -> AppSpecificationProperty -> ShowS
[AppSpecificationProperty] -> ShowS
AppSpecificationProperty -> String
(Int -> AppSpecificationProperty -> ShowS)
-> (AppSpecificationProperty -> String)
-> ([AppSpecificationProperty] -> ShowS)
-> Show AppSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AppSpecificationProperty -> ShowS
showsPrec :: Int -> AppSpecificationProperty -> ShowS
$cshow :: AppSpecificationProperty -> String
show :: AppSpecificationProperty -> String
$cshowList :: [AppSpecificationProperty] -> ShowS
showList :: [AppSpecificationProperty] -> ShowS
Prelude.Show)
mkAppSpecificationProperty ::
  Value Prelude.Text -> AppSpecificationProperty
mkAppSpecificationProperty :: Value Text -> AppSpecificationProperty
mkAppSpecificationProperty Value Text
imageUri
  = AppSpecificationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), imageUri :: Value Text
imageUri = Value Text
imageUri,
       containerArguments :: Maybe (ValueList Text)
containerArguments = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       containerEntrypoint :: Maybe (ValueList Text)
containerEntrypoint = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AppSpecificationProperty where
  toResourceProperties :: AppSpecificationProperty -> ResourceProperties
toResourceProperties AppSpecificationProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AppSpecificationProperty -> ()
containerArguments :: AppSpecificationProperty -> Maybe (ValueList Text)
containerEntrypoint :: AppSpecificationProperty -> Maybe (ValueList Text)
imageUri :: AppSpecificationProperty -> Value Text
haddock_workaround_ :: ()
containerArguments :: Maybe (ValueList Text)
containerEntrypoint :: Maybe (ValueList Text)
imageUri :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::ProcessingJob.AppSpecification",
         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
"ImageUri" 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
imageUri]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> ValueList 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
"ContainerArguments" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
containerArguments,
                               Key -> ValueList 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
"ContainerEntrypoint" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
containerEntrypoint]))}
instance JSON.ToJSON AppSpecificationProperty where
  toJSON :: AppSpecificationProperty -> Value
toJSON AppSpecificationProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AppSpecificationProperty -> ()
containerArguments :: AppSpecificationProperty -> Maybe (ValueList Text)
containerEntrypoint :: AppSpecificationProperty -> Maybe (ValueList Text)
imageUri :: AppSpecificationProperty -> Value Text
haddock_workaround_ :: ()
containerArguments :: Maybe (ValueList Text)
containerEntrypoint :: Maybe (ValueList Text)
imageUri :: 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
"ImageUri" 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
imageUri]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> ValueList 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
"ContainerArguments" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
containerArguments,
                  Key -> ValueList 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
"ContainerEntrypoint" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
containerEntrypoint])))
instance Property "ContainerArguments" AppSpecificationProperty where
  type PropertyType "ContainerArguments" AppSpecificationProperty = ValueList Prelude.Text
  set :: PropertyType "ContainerArguments" AppSpecificationProperty
-> AppSpecificationProperty -> AppSpecificationProperty
set PropertyType "ContainerArguments" AppSpecificationProperty
newValue AppSpecificationProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AppSpecificationProperty -> ()
containerArguments :: AppSpecificationProperty -> Maybe (ValueList Text)
containerEntrypoint :: AppSpecificationProperty -> Maybe (ValueList Text)
imageUri :: AppSpecificationProperty -> Value Text
haddock_workaround_ :: ()
containerArguments :: Maybe (ValueList Text)
containerEntrypoint :: Maybe (ValueList Text)
imageUri :: Value Text
..}
    = AppSpecificationProperty
        {containerArguments :: Maybe (ValueList Text)
containerArguments = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ContainerArguments" AppSpecificationProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
containerEntrypoint :: Maybe (ValueList Text)
imageUri :: Value Text
haddock_workaround_ :: ()
containerEntrypoint :: Maybe (ValueList Text)
imageUri :: Value Text
..}
instance Property "ContainerEntrypoint" AppSpecificationProperty where
  type PropertyType "ContainerEntrypoint" AppSpecificationProperty = ValueList Prelude.Text
  set :: PropertyType "ContainerEntrypoint" AppSpecificationProperty
-> AppSpecificationProperty -> AppSpecificationProperty
set PropertyType "ContainerEntrypoint" AppSpecificationProperty
newValue AppSpecificationProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AppSpecificationProperty -> ()
containerArguments :: AppSpecificationProperty -> Maybe (ValueList Text)
containerEntrypoint :: AppSpecificationProperty -> Maybe (ValueList Text)
imageUri :: AppSpecificationProperty -> Value Text
haddock_workaround_ :: ()
containerArguments :: Maybe (ValueList Text)
containerEntrypoint :: Maybe (ValueList Text)
imageUri :: Value Text
..}
    = AppSpecificationProperty
        {containerEntrypoint :: Maybe (ValueList Text)
containerEntrypoint = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ContainerEntrypoint" AppSpecificationProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
containerArguments :: Maybe (ValueList Text)
imageUri :: Value Text
haddock_workaround_ :: ()
containerArguments :: Maybe (ValueList Text)
imageUri :: Value Text
..}
instance Property "ImageUri" AppSpecificationProperty where
  type PropertyType "ImageUri" AppSpecificationProperty = Value Prelude.Text
  set :: PropertyType "ImageUri" AppSpecificationProperty
-> AppSpecificationProperty -> AppSpecificationProperty
set PropertyType "ImageUri" AppSpecificationProperty
newValue AppSpecificationProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AppSpecificationProperty -> ()
containerArguments :: AppSpecificationProperty -> Maybe (ValueList Text)
containerEntrypoint :: AppSpecificationProperty -> Maybe (ValueList Text)
imageUri :: AppSpecificationProperty -> Value Text
haddock_workaround_ :: ()
containerArguments :: Maybe (ValueList Text)
containerEntrypoint :: Maybe (ValueList Text)
imageUri :: Value Text
..}
    = AppSpecificationProperty {imageUri :: Value Text
imageUri = PropertyType "ImageUri" AppSpecificationProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
containerArguments :: Maybe (ValueList Text)
containerEntrypoint :: Maybe (ValueList Text)
haddock_workaround_ :: ()
containerArguments :: Maybe (ValueList Text)
containerEntrypoint :: Maybe (ValueList Text)
..}