module Stratosphere.CloudFormation.Publisher (
Publisher(..), mkPublisher
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Publisher
=
Publisher {Publisher -> ()
haddock_workaround_ :: (),
Publisher -> Value Bool
acceptTermsAndConditions :: (Value Prelude.Bool),
Publisher -> Maybe (Value Text)
connectionArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (Publisher -> Publisher -> Bool
(Publisher -> Publisher -> Bool)
-> (Publisher -> Publisher -> Bool) -> Eq Publisher
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Publisher -> Publisher -> Bool
== :: Publisher -> Publisher -> Bool
$c/= :: Publisher -> Publisher -> Bool
/= :: Publisher -> Publisher -> Bool
Prelude.Eq, Int -> Publisher -> ShowS
[Publisher] -> ShowS
Publisher -> String
(Int -> Publisher -> ShowS)
-> (Publisher -> String)
-> ([Publisher] -> ShowS)
-> Show Publisher
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Publisher -> ShowS
showsPrec :: Int -> Publisher -> ShowS
$cshow :: Publisher -> String
show :: Publisher -> String
$cshowList :: [Publisher] -> ShowS
showList :: [Publisher] -> ShowS
Prelude.Show)
mkPublisher :: Value Prelude.Bool -> Publisher
mkPublisher :: Value Bool -> Publisher
mkPublisher Value Bool
acceptTermsAndConditions
= Publisher
{haddock_workaround_ :: ()
haddock_workaround_ = (),
acceptTermsAndConditions :: Value Bool
acceptTermsAndConditions = Value Bool
acceptTermsAndConditions,
connectionArn :: Maybe (Value Text)
connectionArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Publisher where
toResourceProperties :: Publisher -> ResourceProperties
toResourceProperties Publisher {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: Publisher -> ()
acceptTermsAndConditions :: Publisher -> Value Bool
connectionArn :: Publisher -> Maybe (Value Text)
haddock_workaround_ :: ()
acceptTermsAndConditions :: Value Bool
connectionArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CloudFormation::Publisher",
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
"AcceptTermsAndConditions" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
acceptTermsAndConditions]
([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
"ConnectionArn" (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)
connectionArn]))}
instance JSON.ToJSON Publisher where
toJSON :: Publisher -> Value
toJSON Publisher {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: Publisher -> ()
acceptTermsAndConditions :: Publisher -> Value Bool
connectionArn :: Publisher -> Maybe (Value Text)
haddock_workaround_ :: ()
acceptTermsAndConditions :: Value Bool
connectionArn :: Maybe (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
"AcceptTermsAndConditions" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
acceptTermsAndConditions]
([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
"ConnectionArn" (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)
connectionArn])))
instance Property "AcceptTermsAndConditions" Publisher where
type PropertyType "AcceptTermsAndConditions" Publisher = Value Prelude.Bool
set :: PropertyType "AcceptTermsAndConditions" Publisher
-> Publisher -> Publisher
set PropertyType "AcceptTermsAndConditions" Publisher
newValue Publisher {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: Publisher -> ()
acceptTermsAndConditions :: Publisher -> Value Bool
connectionArn :: Publisher -> Maybe (Value Text)
haddock_workaround_ :: ()
acceptTermsAndConditions :: Value Bool
connectionArn :: Maybe (Value Text)
..}
= Publisher {acceptTermsAndConditions :: Value Bool
acceptTermsAndConditions = PropertyType "AcceptTermsAndConditions" Publisher
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
connectionArn :: Maybe (Value Text)
haddock_workaround_ :: ()
connectionArn :: Maybe (Value Text)
..}
instance Property "ConnectionArn" Publisher where
type PropertyType "ConnectionArn" Publisher = Value Prelude.Text
set :: PropertyType "ConnectionArn" Publisher -> Publisher -> Publisher
set PropertyType "ConnectionArn" Publisher
newValue Publisher {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: Publisher -> ()
acceptTermsAndConditions :: Publisher -> Value Bool
connectionArn :: Publisher -> Maybe (Value Text)
haddock_workaround_ :: ()
acceptTermsAndConditions :: Value Bool
connectionArn :: Maybe (Value Text)
..}
= Publisher {connectionArn :: Maybe (Value Text)
connectionArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConnectionArn" Publisher
Value Text
newValue, ()
Value Bool
haddock_workaround_ :: ()
acceptTermsAndConditions :: Value Bool
haddock_workaround_ :: ()
acceptTermsAndConditions :: Value Bool
..}