module Stratosphere.ImageBuilder.ImagePipeline.PipelineLoggingConfigurationProperty (
PipelineLoggingConfigurationProperty(..),
mkPipelineLoggingConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PipelineLoggingConfigurationProperty
=
PipelineLoggingConfigurationProperty {PipelineLoggingConfigurationProperty -> ()
haddock_workaround_ :: (),
PipelineLoggingConfigurationProperty -> Maybe (Value Text)
imageLogGroupName :: (Prelude.Maybe (Value Prelude.Text)),
PipelineLoggingConfigurationProperty -> Maybe (Value Text)
pipelineLogGroupName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (PipelineLoggingConfigurationProperty
-> PipelineLoggingConfigurationProperty -> Bool
(PipelineLoggingConfigurationProperty
-> PipelineLoggingConfigurationProperty -> Bool)
-> (PipelineLoggingConfigurationProperty
-> PipelineLoggingConfigurationProperty -> Bool)
-> Eq PipelineLoggingConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PipelineLoggingConfigurationProperty
-> PipelineLoggingConfigurationProperty -> Bool
== :: PipelineLoggingConfigurationProperty
-> PipelineLoggingConfigurationProperty -> Bool
$c/= :: PipelineLoggingConfigurationProperty
-> PipelineLoggingConfigurationProperty -> Bool
/= :: PipelineLoggingConfigurationProperty
-> PipelineLoggingConfigurationProperty -> Bool
Prelude.Eq, Int -> PipelineLoggingConfigurationProperty -> ShowS
[PipelineLoggingConfigurationProperty] -> ShowS
PipelineLoggingConfigurationProperty -> String
(Int -> PipelineLoggingConfigurationProperty -> ShowS)
-> (PipelineLoggingConfigurationProperty -> String)
-> ([PipelineLoggingConfigurationProperty] -> ShowS)
-> Show PipelineLoggingConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PipelineLoggingConfigurationProperty -> ShowS
showsPrec :: Int -> PipelineLoggingConfigurationProperty -> ShowS
$cshow :: PipelineLoggingConfigurationProperty -> String
show :: PipelineLoggingConfigurationProperty -> String
$cshowList :: [PipelineLoggingConfigurationProperty] -> ShowS
showList :: [PipelineLoggingConfigurationProperty] -> ShowS
Prelude.Show)
mkPipelineLoggingConfigurationProperty ::
PipelineLoggingConfigurationProperty
mkPipelineLoggingConfigurationProperty :: PipelineLoggingConfigurationProperty
mkPipelineLoggingConfigurationProperty
= PipelineLoggingConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), imageLogGroupName :: Maybe (Value Text)
imageLogGroupName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
pipelineLogGroupName :: Maybe (Value Text)
pipelineLogGroupName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PipelineLoggingConfigurationProperty where
toResourceProperties :: PipelineLoggingConfigurationProperty -> ResourceProperties
toResourceProperties PipelineLoggingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: PipelineLoggingConfigurationProperty -> ()
imageLogGroupName :: PipelineLoggingConfigurationProperty -> Maybe (Value Text)
pipelineLogGroupName :: PipelineLoggingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
imageLogGroupName :: Maybe (Value Text)
pipelineLogGroupName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ImageBuilder::ImagePipeline.PipelineLoggingConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"ImageLogGroupName" (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)
imageLogGroupName,
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
"PipelineLogGroupName"
(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)
pipelineLogGroupName])}
instance JSON.ToJSON PipelineLoggingConfigurationProperty where
toJSON :: PipelineLoggingConfigurationProperty -> Value
toJSON PipelineLoggingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: PipelineLoggingConfigurationProperty -> ()
imageLogGroupName :: PipelineLoggingConfigurationProperty -> Maybe (Value Text)
pipelineLogGroupName :: PipelineLoggingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
imageLogGroupName :: Maybe (Value Text)
pipelineLogGroupName :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"ImageLogGroupName" (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)
imageLogGroupName,
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
"PipelineLogGroupName"
(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)
pipelineLogGroupName]))
instance Property "ImageLogGroupName" PipelineLoggingConfigurationProperty where
type PropertyType "ImageLogGroupName" PipelineLoggingConfigurationProperty = Value Prelude.Text
set :: PropertyType
"ImageLogGroupName" PipelineLoggingConfigurationProperty
-> PipelineLoggingConfigurationProperty
-> PipelineLoggingConfigurationProperty
set PropertyType
"ImageLogGroupName" PipelineLoggingConfigurationProperty
newValue PipelineLoggingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: PipelineLoggingConfigurationProperty -> ()
imageLogGroupName :: PipelineLoggingConfigurationProperty -> Maybe (Value Text)
pipelineLogGroupName :: PipelineLoggingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
imageLogGroupName :: Maybe (Value Text)
pipelineLogGroupName :: Maybe (Value Text)
..}
= PipelineLoggingConfigurationProperty
{imageLogGroupName :: Maybe (Value Text)
imageLogGroupName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ImageLogGroupName" PipelineLoggingConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
pipelineLogGroupName :: Maybe (Value Text)
haddock_workaround_ :: ()
pipelineLogGroupName :: Maybe (Value Text)
..}
instance Property "PipelineLogGroupName" PipelineLoggingConfigurationProperty where
type PropertyType "PipelineLogGroupName" PipelineLoggingConfigurationProperty = Value Prelude.Text
set :: PropertyType
"PipelineLogGroupName" PipelineLoggingConfigurationProperty
-> PipelineLoggingConfigurationProperty
-> PipelineLoggingConfigurationProperty
set PropertyType
"PipelineLogGroupName" PipelineLoggingConfigurationProperty
newValue PipelineLoggingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: PipelineLoggingConfigurationProperty -> ()
imageLogGroupName :: PipelineLoggingConfigurationProperty -> Maybe (Value Text)
pipelineLogGroupName :: PipelineLoggingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
imageLogGroupName :: Maybe (Value Text)
pipelineLogGroupName :: Maybe (Value Text)
..}
= PipelineLoggingConfigurationProperty
{pipelineLogGroupName :: Maybe (Value Text)
pipelineLogGroupName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"PipelineLogGroupName" PipelineLoggingConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
imageLogGroupName :: Maybe (Value Text)
haddock_workaround_ :: ()
imageLogGroupName :: Maybe (Value Text)
..}