module Stratosphere.SageMaker.ModelPackage.TransformResourcesProperty (
        TransformResourcesProperty(..), mkTransformResourcesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TransformResourcesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-transformresources.html>
    TransformResourcesProperty {TransformResourcesProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-transformresources.html#cfn-sagemaker-modelpackage-transformresources-instancecount>
                                TransformResourcesProperty -> Value Integer
instanceCount :: (Value Prelude.Integer),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-transformresources.html#cfn-sagemaker-modelpackage-transformresources-instancetype>
                                TransformResourcesProperty -> Value Text
instanceType :: (Value Prelude.Text),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-transformresources.html#cfn-sagemaker-modelpackage-transformresources-volumekmskeyid>
                                TransformResourcesProperty -> Maybe (Value Text)
volumeKmsKeyId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (TransformResourcesProperty -> TransformResourcesProperty -> Bool
(TransformResourcesProperty -> TransformResourcesProperty -> Bool)
-> (TransformResourcesProperty
    -> TransformResourcesProperty -> Bool)
-> Eq TransformResourcesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TransformResourcesProperty -> TransformResourcesProperty -> Bool
== :: TransformResourcesProperty -> TransformResourcesProperty -> Bool
$c/= :: TransformResourcesProperty -> TransformResourcesProperty -> Bool
/= :: TransformResourcesProperty -> TransformResourcesProperty -> Bool
Prelude.Eq, Int -> TransformResourcesProperty -> ShowS
[TransformResourcesProperty] -> ShowS
TransformResourcesProperty -> String
(Int -> TransformResourcesProperty -> ShowS)
-> (TransformResourcesProperty -> String)
-> ([TransformResourcesProperty] -> ShowS)
-> Show TransformResourcesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TransformResourcesProperty -> ShowS
showsPrec :: Int -> TransformResourcesProperty -> ShowS
$cshow :: TransformResourcesProperty -> String
show :: TransformResourcesProperty -> String
$cshowList :: [TransformResourcesProperty] -> ShowS
showList :: [TransformResourcesProperty] -> ShowS
Prelude.Show)
mkTransformResourcesProperty ::
  Value Prelude.Integer
  -> Value Prelude.Text -> TransformResourcesProperty
mkTransformResourcesProperty :: Value Integer -> Value Text -> TransformResourcesProperty
mkTransformResourcesProperty Value Integer
instanceCount Value Text
instanceType
  = TransformResourcesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), instanceCount :: Value Integer
instanceCount = Value Integer
instanceCount,
       instanceType :: Value Text
instanceType = Value Text
instanceType, volumeKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TransformResourcesProperty where
  toResourceProperties :: TransformResourcesProperty -> ResourceProperties
toResourceProperties TransformResourcesProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: TransformResourcesProperty -> ()
instanceCount :: TransformResourcesProperty -> Value Integer
instanceType :: TransformResourcesProperty -> Value Text
volumeKmsKeyId :: TransformResourcesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::ModelPackage.TransformResources",
         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
"InstanceCount" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
instanceCount,
                            Key
"InstanceType" 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
instanceType]
                           ([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
"VolumeKmsKeyId" (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)
volumeKmsKeyId]))}
instance JSON.ToJSON TransformResourcesProperty where
  toJSON :: TransformResourcesProperty -> Value
toJSON TransformResourcesProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: TransformResourcesProperty -> ()
instanceCount :: TransformResourcesProperty -> Value Integer
instanceType :: TransformResourcesProperty -> Value Text
volumeKmsKeyId :: TransformResourcesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
volumeKmsKeyId :: Maybe (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
"InstanceCount" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
instanceCount,
               Key
"InstanceType" 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
instanceType]
              ([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
"VolumeKmsKeyId" (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)
volumeKmsKeyId])))
instance Property "InstanceCount" TransformResourcesProperty where
  type PropertyType "InstanceCount" TransformResourcesProperty = Value Prelude.Integer
  set :: PropertyType "InstanceCount" TransformResourcesProperty
-> TransformResourcesProperty -> TransformResourcesProperty
set PropertyType "InstanceCount" TransformResourcesProperty
newValue TransformResourcesProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: TransformResourcesProperty -> ()
instanceCount :: TransformResourcesProperty -> Value Integer
instanceType :: TransformResourcesProperty -> Value Text
volumeKmsKeyId :: TransformResourcesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
..}
    = TransformResourcesProperty {instanceCount :: Value Integer
instanceCount = PropertyType "InstanceCount" TransformResourcesProperty
Value Integer
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
..}
instance Property "InstanceType" TransformResourcesProperty where
  type PropertyType "InstanceType" TransformResourcesProperty = Value Prelude.Text
  set :: PropertyType "InstanceType" TransformResourcesProperty
-> TransformResourcesProperty -> TransformResourcesProperty
set PropertyType "InstanceType" TransformResourcesProperty
newValue TransformResourcesProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: TransformResourcesProperty -> ()
instanceCount :: TransformResourcesProperty -> Value Integer
instanceType :: TransformResourcesProperty -> Value Text
volumeKmsKeyId :: TransformResourcesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
..}
    = TransformResourcesProperty {instanceType :: Value Text
instanceType = PropertyType "InstanceType" TransformResourcesProperty
Value Text
newValue, Maybe (Value Text)
()
Value Integer
haddock_workaround_ :: ()
instanceCount :: Value Integer
volumeKmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
instanceCount :: Value Integer
volumeKmsKeyId :: Maybe (Value Text)
..}
instance Property "VolumeKmsKeyId" TransformResourcesProperty where
  type PropertyType "VolumeKmsKeyId" TransformResourcesProperty = Value Prelude.Text
  set :: PropertyType "VolumeKmsKeyId" TransformResourcesProperty
-> TransformResourcesProperty -> TransformResourcesProperty
set PropertyType "VolumeKmsKeyId" TransformResourcesProperty
newValue TransformResourcesProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: TransformResourcesProperty -> ()
instanceCount :: TransformResourcesProperty -> Value Integer
instanceType :: TransformResourcesProperty -> Value Text
volumeKmsKeyId :: TransformResourcesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
..}
    = TransformResourcesProperty
        {volumeKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VolumeKmsKeyId" TransformResourcesProperty
Value Text
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
..}