module Stratosphere.SSM.Document.AttachmentsSourceProperty (
AttachmentsSourceProperty(..), mkAttachmentsSourceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AttachmentsSourceProperty
=
AttachmentsSourceProperty {AttachmentsSourceProperty -> ()
haddock_workaround_ :: (),
AttachmentsSourceProperty -> Maybe (Value Text)
key :: (Prelude.Maybe (Value Prelude.Text)),
AttachmentsSourceProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
AttachmentsSourceProperty -> Maybe (ValueList Text)
values :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (AttachmentsSourceProperty -> AttachmentsSourceProperty -> Bool
(AttachmentsSourceProperty -> AttachmentsSourceProperty -> Bool)
-> (AttachmentsSourceProperty -> AttachmentsSourceProperty -> Bool)
-> Eq AttachmentsSourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AttachmentsSourceProperty -> AttachmentsSourceProperty -> Bool
== :: AttachmentsSourceProperty -> AttachmentsSourceProperty -> Bool
$c/= :: AttachmentsSourceProperty -> AttachmentsSourceProperty -> Bool
/= :: AttachmentsSourceProperty -> AttachmentsSourceProperty -> Bool
Prelude.Eq, Int -> AttachmentsSourceProperty -> ShowS
[AttachmentsSourceProperty] -> ShowS
AttachmentsSourceProperty -> String
(Int -> AttachmentsSourceProperty -> ShowS)
-> (AttachmentsSourceProperty -> String)
-> ([AttachmentsSourceProperty] -> ShowS)
-> Show AttachmentsSourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AttachmentsSourceProperty -> ShowS
showsPrec :: Int -> AttachmentsSourceProperty -> ShowS
$cshow :: AttachmentsSourceProperty -> String
show :: AttachmentsSourceProperty -> String
$cshowList :: [AttachmentsSourceProperty] -> ShowS
showList :: [AttachmentsSourceProperty] -> ShowS
Prelude.Show)
mkAttachmentsSourceProperty :: AttachmentsSourceProperty
mkAttachmentsSourceProperty :: AttachmentsSourceProperty
mkAttachmentsSourceProperty
= AttachmentsSourceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Maybe (Value Text)
key = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, values :: Maybe (ValueList Text)
values = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AttachmentsSourceProperty where
toResourceProperties :: AttachmentsSourceProperty -> ResourceProperties
toResourceProperties AttachmentsSourceProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: AttachmentsSourceProperty -> ()
key :: AttachmentsSourceProperty -> Maybe (Value Text)
name :: AttachmentsSourceProperty -> Maybe (Value Text)
values :: AttachmentsSourceProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
name :: Maybe (Value Text)
values :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SSM::Document.AttachmentsSource",
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
"Key" (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)
key,
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
"Name" (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)
name,
Key -> ValueList 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
"Values" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
values])}
instance JSON.ToJSON AttachmentsSourceProperty where
toJSON :: AttachmentsSourceProperty -> Value
toJSON AttachmentsSourceProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: AttachmentsSourceProperty -> ()
key :: AttachmentsSourceProperty -> Maybe (Value Text)
name :: AttachmentsSourceProperty -> Maybe (Value Text)
values :: AttachmentsSourceProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
name :: Maybe (Value Text)
values :: Maybe (ValueList 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
"Key" (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)
key,
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
"Name" (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)
name,
Key -> ValueList 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
"Values" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
values]))
instance Property "Key" AttachmentsSourceProperty where
type PropertyType "Key" AttachmentsSourceProperty = Value Prelude.Text
set :: PropertyType "Key" AttachmentsSourceProperty
-> AttachmentsSourceProperty -> AttachmentsSourceProperty
set PropertyType "Key" AttachmentsSourceProperty
newValue AttachmentsSourceProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: AttachmentsSourceProperty -> ()
key :: AttachmentsSourceProperty -> Maybe (Value Text)
name :: AttachmentsSourceProperty -> Maybe (Value Text)
values :: AttachmentsSourceProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
name :: Maybe (Value Text)
values :: Maybe (ValueList Text)
..}
= AttachmentsSourceProperty {key :: Maybe (Value Text)
key = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Key" AttachmentsSourceProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
values :: Maybe (ValueList Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
values :: Maybe (ValueList Text)
..}
instance Property "Name" AttachmentsSourceProperty where
type PropertyType "Name" AttachmentsSourceProperty = Value Prelude.Text
set :: PropertyType "Name" AttachmentsSourceProperty
-> AttachmentsSourceProperty -> AttachmentsSourceProperty
set PropertyType "Name" AttachmentsSourceProperty
newValue AttachmentsSourceProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: AttachmentsSourceProperty -> ()
key :: AttachmentsSourceProperty -> Maybe (Value Text)
name :: AttachmentsSourceProperty -> Maybe (Value Text)
values :: AttachmentsSourceProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
name :: Maybe (Value Text)
values :: Maybe (ValueList Text)
..}
= AttachmentsSourceProperty {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" AttachmentsSourceProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
key :: Maybe (Value Text)
values :: Maybe (ValueList Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
values :: Maybe (ValueList Text)
..}
instance Property "Values" AttachmentsSourceProperty where
type PropertyType "Values" AttachmentsSourceProperty = ValueList Prelude.Text
set :: PropertyType "Values" AttachmentsSourceProperty
-> AttachmentsSourceProperty -> AttachmentsSourceProperty
set PropertyType "Values" AttachmentsSourceProperty
newValue AttachmentsSourceProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: AttachmentsSourceProperty -> ()
key :: AttachmentsSourceProperty -> Maybe (Value Text)
name :: AttachmentsSourceProperty -> Maybe (Value Text)
values :: AttachmentsSourceProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
name :: Maybe (Value Text)
values :: Maybe (ValueList Text)
..}
= AttachmentsSourceProperty {values :: Maybe (ValueList Text)
values = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Values" AttachmentsSourceProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
key :: Maybe (Value Text)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
name :: Maybe (Value Text)
..}