module Stratosphere.IoTAnalytics.Dataset.ContainerActionProperty (
module Exports, ContainerActionProperty(..),
mkContainerActionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoTAnalytics.Dataset.ResourceConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.IoTAnalytics.Dataset.VariableProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ContainerActionProperty
=
ContainerActionProperty {ContainerActionProperty -> ()
haddock_workaround_ :: (),
ContainerActionProperty -> Value Text
executionRoleArn :: (Value Prelude.Text),
ContainerActionProperty -> Value Text
image :: (Value Prelude.Text),
ContainerActionProperty -> ResourceConfigurationProperty
resourceConfiguration :: ResourceConfigurationProperty,
ContainerActionProperty -> Maybe [VariableProperty]
variables :: (Prelude.Maybe [VariableProperty])}
deriving stock (ContainerActionProperty -> ContainerActionProperty -> Bool
(ContainerActionProperty -> ContainerActionProperty -> Bool)
-> (ContainerActionProperty -> ContainerActionProperty -> Bool)
-> Eq ContainerActionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ContainerActionProperty -> ContainerActionProperty -> Bool
== :: ContainerActionProperty -> ContainerActionProperty -> Bool
$c/= :: ContainerActionProperty -> ContainerActionProperty -> Bool
/= :: ContainerActionProperty -> ContainerActionProperty -> Bool
Prelude.Eq, Int -> ContainerActionProperty -> ShowS
[ContainerActionProperty] -> ShowS
ContainerActionProperty -> String
(Int -> ContainerActionProperty -> ShowS)
-> (ContainerActionProperty -> String)
-> ([ContainerActionProperty] -> ShowS)
-> Show ContainerActionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ContainerActionProperty -> ShowS
showsPrec :: Int -> ContainerActionProperty -> ShowS
$cshow :: ContainerActionProperty -> String
show :: ContainerActionProperty -> String
$cshowList :: [ContainerActionProperty] -> ShowS
showList :: [ContainerActionProperty] -> ShowS
Prelude.Show)
mkContainerActionProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> ResourceConfigurationProperty -> ContainerActionProperty
mkContainerActionProperty :: Value Text
-> Value Text
-> ResourceConfigurationProperty
-> ContainerActionProperty
mkContainerActionProperty
Value Text
executionRoleArn
Value Text
image
ResourceConfigurationProperty
resourceConfiguration
= ContainerActionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), executionRoleArn :: Value Text
executionRoleArn = Value Text
executionRoleArn,
image :: Value Text
image = Value Text
image, resourceConfiguration :: ResourceConfigurationProperty
resourceConfiguration = ResourceConfigurationProperty
resourceConfiguration,
variables :: Maybe [VariableProperty]
variables = Maybe [VariableProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ContainerActionProperty where
toResourceProperties :: ContainerActionProperty -> ResourceProperties
toResourceProperties ContainerActionProperty {Maybe [VariableProperty]
()
Value Text
ResourceConfigurationProperty
haddock_workaround_ :: ContainerActionProperty -> ()
executionRoleArn :: ContainerActionProperty -> Value Text
image :: ContainerActionProperty -> Value Text
resourceConfiguration :: ContainerActionProperty -> ResourceConfigurationProperty
variables :: ContainerActionProperty -> Maybe [VariableProperty]
haddock_workaround_ :: ()
executionRoleArn :: Value Text
image :: Value Text
resourceConfiguration :: ResourceConfigurationProperty
variables :: Maybe [VariableProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Dataset.ContainerAction",
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
"ExecutionRoleArn" 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
executionRoleArn,
Key
"Image" 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
image,
Key
"ResourceConfiguration" Key -> ResourceConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ResourceConfigurationProperty
resourceConfiguration]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> [VariableProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Variables" ([VariableProperty] -> (Key, Value))
-> Maybe [VariableProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [VariableProperty]
variables]))}
instance JSON.ToJSON ContainerActionProperty where
toJSON :: ContainerActionProperty -> Value
toJSON ContainerActionProperty {Maybe [VariableProperty]
()
Value Text
ResourceConfigurationProperty
haddock_workaround_ :: ContainerActionProperty -> ()
executionRoleArn :: ContainerActionProperty -> Value Text
image :: ContainerActionProperty -> Value Text
resourceConfiguration :: ContainerActionProperty -> ResourceConfigurationProperty
variables :: ContainerActionProperty -> Maybe [VariableProperty]
haddock_workaround_ :: ()
executionRoleArn :: Value Text
image :: Value Text
resourceConfiguration :: ResourceConfigurationProperty
variables :: Maybe [VariableProperty]
..}
= [(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
"ExecutionRoleArn" 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
executionRoleArn,
Key
"Image" 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
image,
Key
"ResourceConfiguration" Key -> ResourceConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ResourceConfigurationProperty
resourceConfiguration]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> [VariableProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Variables" ([VariableProperty] -> (Key, Value))
-> Maybe [VariableProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [VariableProperty]
variables])))
instance Property "ExecutionRoleArn" ContainerActionProperty where
type PropertyType "ExecutionRoleArn" ContainerActionProperty = Value Prelude.Text
set :: PropertyType "ExecutionRoleArn" ContainerActionProperty
-> ContainerActionProperty -> ContainerActionProperty
set PropertyType "ExecutionRoleArn" ContainerActionProperty
newValue ContainerActionProperty {Maybe [VariableProperty]
()
Value Text
ResourceConfigurationProperty
haddock_workaround_ :: ContainerActionProperty -> ()
executionRoleArn :: ContainerActionProperty -> Value Text
image :: ContainerActionProperty -> Value Text
resourceConfiguration :: ContainerActionProperty -> ResourceConfigurationProperty
variables :: ContainerActionProperty -> Maybe [VariableProperty]
haddock_workaround_ :: ()
executionRoleArn :: Value Text
image :: Value Text
resourceConfiguration :: ResourceConfigurationProperty
variables :: Maybe [VariableProperty]
..}
= ContainerActionProperty {executionRoleArn :: Value Text
executionRoleArn = PropertyType "ExecutionRoleArn" ContainerActionProperty
Value Text
newValue, Maybe [VariableProperty]
()
Value Text
ResourceConfigurationProperty
haddock_workaround_ :: ()
image :: Value Text
resourceConfiguration :: ResourceConfigurationProperty
variables :: Maybe [VariableProperty]
haddock_workaround_ :: ()
image :: Value Text
resourceConfiguration :: ResourceConfigurationProperty
variables :: Maybe [VariableProperty]
..}
instance Property "Image" ContainerActionProperty where
type PropertyType "Image" ContainerActionProperty = Value Prelude.Text
set :: PropertyType "Image" ContainerActionProperty
-> ContainerActionProperty -> ContainerActionProperty
set PropertyType "Image" ContainerActionProperty
newValue ContainerActionProperty {Maybe [VariableProperty]
()
Value Text
ResourceConfigurationProperty
haddock_workaround_ :: ContainerActionProperty -> ()
executionRoleArn :: ContainerActionProperty -> Value Text
image :: ContainerActionProperty -> Value Text
resourceConfiguration :: ContainerActionProperty -> ResourceConfigurationProperty
variables :: ContainerActionProperty -> Maybe [VariableProperty]
haddock_workaround_ :: ()
executionRoleArn :: Value Text
image :: Value Text
resourceConfiguration :: ResourceConfigurationProperty
variables :: Maybe [VariableProperty]
..}
= ContainerActionProperty {image :: Value Text
image = PropertyType "Image" ContainerActionProperty
Value Text
newValue, Maybe [VariableProperty]
()
Value Text
ResourceConfigurationProperty
haddock_workaround_ :: ()
executionRoleArn :: Value Text
resourceConfiguration :: ResourceConfigurationProperty
variables :: Maybe [VariableProperty]
haddock_workaround_ :: ()
executionRoleArn :: Value Text
resourceConfiguration :: ResourceConfigurationProperty
variables :: Maybe [VariableProperty]
..}
instance Property "ResourceConfiguration" ContainerActionProperty where
type PropertyType "ResourceConfiguration" ContainerActionProperty = ResourceConfigurationProperty
set :: PropertyType "ResourceConfiguration" ContainerActionProperty
-> ContainerActionProperty -> ContainerActionProperty
set PropertyType "ResourceConfiguration" ContainerActionProperty
newValue ContainerActionProperty {Maybe [VariableProperty]
()
Value Text
ResourceConfigurationProperty
haddock_workaround_ :: ContainerActionProperty -> ()
executionRoleArn :: ContainerActionProperty -> Value Text
image :: ContainerActionProperty -> Value Text
resourceConfiguration :: ContainerActionProperty -> ResourceConfigurationProperty
variables :: ContainerActionProperty -> Maybe [VariableProperty]
haddock_workaround_ :: ()
executionRoleArn :: Value Text
image :: Value Text
resourceConfiguration :: ResourceConfigurationProperty
variables :: Maybe [VariableProperty]
..}
= ContainerActionProperty {resourceConfiguration :: ResourceConfigurationProperty
resourceConfiguration = PropertyType "ResourceConfiguration" ContainerActionProperty
ResourceConfigurationProperty
newValue, Maybe [VariableProperty]
()
Value Text
haddock_workaround_ :: ()
executionRoleArn :: Value Text
image :: Value Text
variables :: Maybe [VariableProperty]
haddock_workaround_ :: ()
executionRoleArn :: Value Text
image :: Value Text
variables :: Maybe [VariableProperty]
..}
instance Property "Variables" ContainerActionProperty where
type PropertyType "Variables" ContainerActionProperty = [VariableProperty]
set :: PropertyType "Variables" ContainerActionProperty
-> ContainerActionProperty -> ContainerActionProperty
set PropertyType "Variables" ContainerActionProperty
newValue ContainerActionProperty {Maybe [VariableProperty]
()
Value Text
ResourceConfigurationProperty
haddock_workaround_ :: ContainerActionProperty -> ()
executionRoleArn :: ContainerActionProperty -> Value Text
image :: ContainerActionProperty -> Value Text
resourceConfiguration :: ContainerActionProperty -> ResourceConfigurationProperty
variables :: ContainerActionProperty -> Maybe [VariableProperty]
haddock_workaround_ :: ()
executionRoleArn :: Value Text
image :: Value Text
resourceConfiguration :: ResourceConfigurationProperty
variables :: Maybe [VariableProperty]
..}
= ContainerActionProperty {variables :: Maybe [VariableProperty]
variables = [VariableProperty] -> Maybe [VariableProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [VariableProperty]
PropertyType "Variables" ContainerActionProperty
newValue, ()
Value Text
ResourceConfigurationProperty
haddock_workaround_ :: ()
executionRoleArn :: Value Text
image :: Value Text
resourceConfiguration :: ResourceConfigurationProperty
haddock_workaround_ :: ()
executionRoleArn :: Value Text
image :: Value Text
resourceConfiguration :: ResourceConfigurationProperty
..}