module Stratosphere.Batch.JobDefinition.FirelensConfigurationProperty (
FirelensConfigurationProperty(..), mkFirelensConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FirelensConfigurationProperty
=
FirelensConfigurationProperty {FirelensConfigurationProperty -> ()
haddock_workaround_ :: (),
FirelensConfigurationProperty -> Maybe (Map Text (Value Text))
options :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
FirelensConfigurationProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (FirelensConfigurationProperty
-> FirelensConfigurationProperty -> Bool
(FirelensConfigurationProperty
-> FirelensConfigurationProperty -> Bool)
-> (FirelensConfigurationProperty
-> FirelensConfigurationProperty -> Bool)
-> Eq FirelensConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FirelensConfigurationProperty
-> FirelensConfigurationProperty -> Bool
== :: FirelensConfigurationProperty
-> FirelensConfigurationProperty -> Bool
$c/= :: FirelensConfigurationProperty
-> FirelensConfigurationProperty -> Bool
/= :: FirelensConfigurationProperty
-> FirelensConfigurationProperty -> Bool
Prelude.Eq, Int -> FirelensConfigurationProperty -> ShowS
[FirelensConfigurationProperty] -> ShowS
FirelensConfigurationProperty -> String
(Int -> FirelensConfigurationProperty -> ShowS)
-> (FirelensConfigurationProperty -> String)
-> ([FirelensConfigurationProperty] -> ShowS)
-> Show FirelensConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FirelensConfigurationProperty -> ShowS
showsPrec :: Int -> FirelensConfigurationProperty -> ShowS
$cshow :: FirelensConfigurationProperty -> String
show :: FirelensConfigurationProperty -> String
$cshowList :: [FirelensConfigurationProperty] -> ShowS
showList :: [FirelensConfigurationProperty] -> ShowS
Prelude.Show)
mkFirelensConfigurationProperty ::
Value Prelude.Text -> FirelensConfigurationProperty
mkFirelensConfigurationProperty :: Value Text -> FirelensConfigurationProperty
mkFirelensConfigurationProperty Value Text
type'
= FirelensConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type',
options :: Maybe (Map Text (Value Text))
options = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FirelensConfigurationProperty where
toResourceProperties :: FirelensConfigurationProperty -> ResourceProperties
toResourceProperties FirelensConfigurationProperty {Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: FirelensConfigurationProperty -> ()
options :: FirelensConfigurationProperty -> Maybe (Map Text (Value Text))
type' :: FirelensConfigurationProperty -> Value Text
haddock_workaround_ :: ()
options :: Maybe (Map Text (Value Text))
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Batch::JobDefinition.FirelensConfiguration",
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 -> Map Text (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
"Options" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
options]))}
instance JSON.ToJSON FirelensConfigurationProperty where
toJSON :: FirelensConfigurationProperty -> Value
toJSON FirelensConfigurationProperty {Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: FirelensConfigurationProperty -> ()
options :: FirelensConfigurationProperty -> Maybe (Map Text (Value Text))
type' :: FirelensConfigurationProperty -> Value Text
haddock_workaround_ :: ()
options :: Maybe (Map Text (Value Text))
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 -> Map Text (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
"Options" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
options])))
instance Property "Options" FirelensConfigurationProperty where
type PropertyType "Options" FirelensConfigurationProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "Options" FirelensConfigurationProperty
-> FirelensConfigurationProperty -> FirelensConfigurationProperty
set PropertyType "Options" FirelensConfigurationProperty
newValue FirelensConfigurationProperty {Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: FirelensConfigurationProperty -> ()
options :: FirelensConfigurationProperty -> Maybe (Map Text (Value Text))
type' :: FirelensConfigurationProperty -> Value Text
haddock_workaround_ :: ()
options :: Maybe (Map Text (Value Text))
type' :: Value Text
..}
= FirelensConfigurationProperty
{options :: Maybe (Map Text (Value Text))
options = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Options" FirelensConfigurationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
instance Property "Type" FirelensConfigurationProperty where
type PropertyType "Type" FirelensConfigurationProperty = Value Prelude.Text
set :: PropertyType "Type" FirelensConfigurationProperty
-> FirelensConfigurationProperty -> FirelensConfigurationProperty
set PropertyType "Type" FirelensConfigurationProperty
newValue FirelensConfigurationProperty {Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: FirelensConfigurationProperty -> ()
options :: FirelensConfigurationProperty -> Maybe (Map Text (Value Text))
type' :: FirelensConfigurationProperty -> Value Text
haddock_workaround_ :: ()
options :: Maybe (Map Text (Value Text))
type' :: Value Text
..}
= FirelensConfigurationProperty {type' :: Value Text
type' = PropertyType "Type" FirelensConfigurationProperty
Value Text
newValue, Maybe (Map Text (Value Text))
()
haddock_workaround_ :: ()
options :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
options :: Maybe (Map Text (Value Text))
..}