module Stratosphere.Greengrass.FunctionDefinitionVersion.FunctionProperty (
        module Exports, FunctionProperty(..), mkFunctionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Greengrass.FunctionDefinitionVersion.FunctionConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FunctionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-function.html>
    FunctionProperty {FunctionProperty -> ()
haddock_workaround_ :: (),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-function.html#cfn-greengrass-functiondefinitionversion-function-functionarn>
                      FunctionProperty -> Value Text
functionArn :: (Value Prelude.Text),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-function.html#cfn-greengrass-functiondefinitionversion-function-functionconfiguration>
                      FunctionProperty -> FunctionConfigurationProperty
functionConfiguration :: FunctionConfigurationProperty,
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-function.html#cfn-greengrass-functiondefinitionversion-function-id>
                      FunctionProperty -> Value Text
id :: (Value Prelude.Text)}
  deriving stock (FunctionProperty -> FunctionProperty -> Bool
(FunctionProperty -> FunctionProperty -> Bool)
-> (FunctionProperty -> FunctionProperty -> Bool)
-> Eq FunctionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FunctionProperty -> FunctionProperty -> Bool
== :: FunctionProperty -> FunctionProperty -> Bool
$c/= :: FunctionProperty -> FunctionProperty -> Bool
/= :: FunctionProperty -> FunctionProperty -> Bool
Prelude.Eq, Int -> FunctionProperty -> ShowS
[FunctionProperty] -> ShowS
FunctionProperty -> String
(Int -> FunctionProperty -> ShowS)
-> (FunctionProperty -> String)
-> ([FunctionProperty] -> ShowS)
-> Show FunctionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FunctionProperty -> ShowS
showsPrec :: Int -> FunctionProperty -> ShowS
$cshow :: FunctionProperty -> String
show :: FunctionProperty -> String
$cshowList :: [FunctionProperty] -> ShowS
showList :: [FunctionProperty] -> ShowS
Prelude.Show)
mkFunctionProperty ::
  Value Prelude.Text
  -> FunctionConfigurationProperty
     -> Value Prelude.Text -> FunctionProperty
mkFunctionProperty :: Value Text
-> FunctionConfigurationProperty -> Value Text -> FunctionProperty
mkFunctionProperty Value Text
functionArn FunctionConfigurationProperty
functionConfiguration Value Text
id
  = FunctionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), functionArn :: Value Text
functionArn = Value Text
functionArn,
       functionConfiguration :: FunctionConfigurationProperty
functionConfiguration = FunctionConfigurationProperty
functionConfiguration, id :: Value Text
id = Value Text
id}
instance ToResourceProperties FunctionProperty where
  toResourceProperties :: FunctionProperty -> ResourceProperties
toResourceProperties FunctionProperty {()
Value Text
FunctionConfigurationProperty
haddock_workaround_ :: FunctionProperty -> ()
functionArn :: FunctionProperty -> Value Text
functionConfiguration :: FunctionProperty -> FunctionConfigurationProperty
id :: FunctionProperty -> Value Text
haddock_workaround_ :: ()
functionArn :: Value Text
functionConfiguration :: FunctionConfigurationProperty
id :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Greengrass::FunctionDefinitionVersion.Function",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"FunctionArn" 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
functionArn,
                       Key
"FunctionConfiguration" Key -> FunctionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FunctionConfigurationProperty
functionConfiguration,
                       Key
"Id" 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
id]}
instance JSON.ToJSON FunctionProperty where
  toJSON :: FunctionProperty -> Value
toJSON FunctionProperty {()
Value Text
FunctionConfigurationProperty
haddock_workaround_ :: FunctionProperty -> ()
functionArn :: FunctionProperty -> Value Text
functionConfiguration :: FunctionProperty -> FunctionConfigurationProperty
id :: FunctionProperty -> Value Text
haddock_workaround_ :: ()
functionArn :: Value Text
functionConfiguration :: FunctionConfigurationProperty
id :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"FunctionArn" 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
functionArn,
         Key
"FunctionConfiguration" Key -> FunctionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FunctionConfigurationProperty
functionConfiguration,
         Key
"Id" 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
id]
instance Property "FunctionArn" FunctionProperty where
  type PropertyType "FunctionArn" FunctionProperty = Value Prelude.Text
  set :: PropertyType "FunctionArn" FunctionProperty
-> FunctionProperty -> FunctionProperty
set PropertyType "FunctionArn" FunctionProperty
newValue FunctionProperty {()
Value Text
FunctionConfigurationProperty
haddock_workaround_ :: FunctionProperty -> ()
functionArn :: FunctionProperty -> Value Text
functionConfiguration :: FunctionProperty -> FunctionConfigurationProperty
id :: FunctionProperty -> Value Text
haddock_workaround_ :: ()
functionArn :: Value Text
functionConfiguration :: FunctionConfigurationProperty
id :: Value Text
..}
    = FunctionProperty {functionArn :: Value Text
functionArn = PropertyType "FunctionArn" FunctionProperty
Value Text
newValue, ()
Value Text
FunctionConfigurationProperty
haddock_workaround_ :: ()
functionConfiguration :: FunctionConfigurationProperty
id :: Value Text
haddock_workaround_ :: ()
functionConfiguration :: FunctionConfigurationProperty
id :: Value Text
..}
instance Property "FunctionConfiguration" FunctionProperty where
  type PropertyType "FunctionConfiguration" FunctionProperty = FunctionConfigurationProperty
  set :: PropertyType "FunctionConfiguration" FunctionProperty
-> FunctionProperty -> FunctionProperty
set PropertyType "FunctionConfiguration" FunctionProperty
newValue FunctionProperty {()
Value Text
FunctionConfigurationProperty
haddock_workaround_ :: FunctionProperty -> ()
functionArn :: FunctionProperty -> Value Text
functionConfiguration :: FunctionProperty -> FunctionConfigurationProperty
id :: FunctionProperty -> Value Text
haddock_workaround_ :: ()
functionArn :: Value Text
functionConfiguration :: FunctionConfigurationProperty
id :: Value Text
..}
    = FunctionProperty {functionConfiguration :: FunctionConfigurationProperty
functionConfiguration = PropertyType "FunctionConfiguration" FunctionProperty
FunctionConfigurationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
functionArn :: Value Text
id :: Value Text
haddock_workaround_ :: ()
functionArn :: Value Text
id :: Value Text
..}
instance Property "Id" FunctionProperty where
  type PropertyType "Id" FunctionProperty = Value Prelude.Text
  set :: PropertyType "Id" FunctionProperty
-> FunctionProperty -> FunctionProperty
set PropertyType "Id" FunctionProperty
newValue FunctionProperty {()
Value Text
FunctionConfigurationProperty
haddock_workaround_ :: FunctionProperty -> ()
functionArn :: FunctionProperty -> Value Text
functionConfiguration :: FunctionProperty -> FunctionConfigurationProperty
id :: FunctionProperty -> Value Text
haddock_workaround_ :: ()
functionArn :: Value Text
functionConfiguration :: FunctionConfigurationProperty
id :: Value Text
..}
    = FunctionProperty {id :: Value Text
id = PropertyType "Id" FunctionProperty
Value Text
newValue, ()
Value Text
FunctionConfigurationProperty
haddock_workaround_ :: ()
functionArn :: Value Text
functionConfiguration :: FunctionConfigurationProperty
haddock_workaround_ :: ()
functionArn :: Value Text
functionConfiguration :: FunctionConfigurationProperty
..}