module Stratosphere.DataBrew.Project.SampleProperty (
        SampleProperty(..), mkSampleProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SampleProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-project-sample.html>
    SampleProperty {SampleProperty -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-project-sample.html#cfn-databrew-project-sample-size>
                    SampleProperty -> Maybe (Value Integer)
size :: (Prelude.Maybe (Value Prelude.Integer)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-project-sample.html#cfn-databrew-project-sample-type>
                    SampleProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (SampleProperty -> SampleProperty -> Bool
(SampleProperty -> SampleProperty -> Bool)
-> (SampleProperty -> SampleProperty -> Bool) -> Eq SampleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SampleProperty -> SampleProperty -> Bool
== :: SampleProperty -> SampleProperty -> Bool
$c/= :: SampleProperty -> SampleProperty -> Bool
/= :: SampleProperty -> SampleProperty -> Bool
Prelude.Eq, Int -> SampleProperty -> ShowS
[SampleProperty] -> ShowS
SampleProperty -> String
(Int -> SampleProperty -> ShowS)
-> (SampleProperty -> String)
-> ([SampleProperty] -> ShowS)
-> Show SampleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SampleProperty -> ShowS
showsPrec :: Int -> SampleProperty -> ShowS
$cshow :: SampleProperty -> String
show :: SampleProperty -> String
$cshowList :: [SampleProperty] -> ShowS
showList :: [SampleProperty] -> ShowS
Prelude.Show)
mkSampleProperty :: Value Prelude.Text -> SampleProperty
mkSampleProperty :: Value Text -> SampleProperty
mkSampleProperty Value Text
type'
  = SampleProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type', size :: Maybe (Value Integer)
size = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SampleProperty where
  toResourceProperties :: SampleProperty -> ResourceProperties
toResourceProperties SampleProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: SampleProperty -> ()
size :: SampleProperty -> Maybe (Value Integer)
type' :: SampleProperty -> Value Text
haddock_workaround_ :: ()
size :: Maybe (Value Integer)
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataBrew::Project.Sample",
         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
"Type" 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
type']
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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..=) Key
"Size" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
size]))}
instance JSON.ToJSON SampleProperty where
  toJSON :: SampleProperty -> Value
toJSON SampleProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: SampleProperty -> ()
size :: SampleProperty -> Maybe (Value Integer)
type' :: SampleProperty -> Value Text
haddock_workaround_ :: ()
size :: Maybe (Value Integer)
type' :: 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
"Type" 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
type']
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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..=) Key
"Size" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
size])))
instance Property "Size" SampleProperty where
  type PropertyType "Size" SampleProperty = Value Prelude.Integer
  set :: PropertyType "Size" SampleProperty
-> SampleProperty -> SampleProperty
set PropertyType "Size" SampleProperty
newValue SampleProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: SampleProperty -> ()
size :: SampleProperty -> Maybe (Value Integer)
type' :: SampleProperty -> Value Text
haddock_workaround_ :: ()
size :: Maybe (Value Integer)
type' :: Value Text
..}
    = SampleProperty {size :: Maybe (Value Integer)
size = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Size" SampleProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
instance Property "Type" SampleProperty where
  type PropertyType "Type" SampleProperty = Value Prelude.Text
  set :: PropertyType "Type" SampleProperty
-> SampleProperty -> SampleProperty
set PropertyType "Type" SampleProperty
newValue SampleProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: SampleProperty -> ()
size :: SampleProperty -> Maybe (Value Integer)
type' :: SampleProperty -> Value Text
haddock_workaround_ :: ()
size :: Maybe (Value Integer)
type' :: Value Text
..}
    = SampleProperty {type' :: Value Text
type' = PropertyType "Type" SampleProperty
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
size :: Maybe (Value Integer)
haddock_workaround_ :: ()
size :: Maybe (Value Integer)
..}