module Stratosphere.Pinpoint.Campaign.CustomDeliveryConfigurationProperty (
CustomDeliveryConfigurationProperty(..),
mkCustomDeliveryConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomDeliveryConfigurationProperty
=
CustomDeliveryConfigurationProperty {CustomDeliveryConfigurationProperty -> ()
haddock_workaround_ :: (),
CustomDeliveryConfigurationProperty -> Maybe (Value Text)
deliveryUri :: (Prelude.Maybe (Value Prelude.Text)),
CustomDeliveryConfigurationProperty -> Maybe (ValueList Text)
endpointTypes :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (CustomDeliveryConfigurationProperty
-> CustomDeliveryConfigurationProperty -> Bool
(CustomDeliveryConfigurationProperty
-> CustomDeliveryConfigurationProperty -> Bool)
-> (CustomDeliveryConfigurationProperty
-> CustomDeliveryConfigurationProperty -> Bool)
-> Eq CustomDeliveryConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomDeliveryConfigurationProperty
-> CustomDeliveryConfigurationProperty -> Bool
== :: CustomDeliveryConfigurationProperty
-> CustomDeliveryConfigurationProperty -> Bool
$c/= :: CustomDeliveryConfigurationProperty
-> CustomDeliveryConfigurationProperty -> Bool
/= :: CustomDeliveryConfigurationProperty
-> CustomDeliveryConfigurationProperty -> Bool
Prelude.Eq, Int -> CustomDeliveryConfigurationProperty -> ShowS
[CustomDeliveryConfigurationProperty] -> ShowS
CustomDeliveryConfigurationProperty -> String
(Int -> CustomDeliveryConfigurationProperty -> ShowS)
-> (CustomDeliveryConfigurationProperty -> String)
-> ([CustomDeliveryConfigurationProperty] -> ShowS)
-> Show CustomDeliveryConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomDeliveryConfigurationProperty -> ShowS
showsPrec :: Int -> CustomDeliveryConfigurationProperty -> ShowS
$cshow :: CustomDeliveryConfigurationProperty -> String
show :: CustomDeliveryConfigurationProperty -> String
$cshowList :: [CustomDeliveryConfigurationProperty] -> ShowS
showList :: [CustomDeliveryConfigurationProperty] -> ShowS
Prelude.Show)
mkCustomDeliveryConfigurationProperty ::
CustomDeliveryConfigurationProperty
mkCustomDeliveryConfigurationProperty :: CustomDeliveryConfigurationProperty
mkCustomDeliveryConfigurationProperty
= CustomDeliveryConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), deliveryUri :: Maybe (Value Text)
deliveryUri = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
endpointTypes :: Maybe (ValueList Text)
endpointTypes = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomDeliveryConfigurationProperty where
toResourceProperties :: CustomDeliveryConfigurationProperty -> ResourceProperties
toResourceProperties CustomDeliveryConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: CustomDeliveryConfigurationProperty -> ()
deliveryUri :: CustomDeliveryConfigurationProperty -> Maybe (Value Text)
endpointTypes :: CustomDeliveryConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
deliveryUri :: Maybe (Value Text)
endpointTypes :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Pinpoint::Campaign.CustomDeliveryConfiguration",
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
"DeliveryUri" (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)
deliveryUri,
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
"EndpointTypes" (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)
endpointTypes])}
instance JSON.ToJSON CustomDeliveryConfigurationProperty where
toJSON :: CustomDeliveryConfigurationProperty -> Value
toJSON CustomDeliveryConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: CustomDeliveryConfigurationProperty -> ()
deliveryUri :: CustomDeliveryConfigurationProperty -> Maybe (Value Text)
endpointTypes :: CustomDeliveryConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
deliveryUri :: Maybe (Value Text)
endpointTypes :: 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
"DeliveryUri" (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)
deliveryUri,
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
"EndpointTypes" (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)
endpointTypes]))
instance Property "DeliveryUri" CustomDeliveryConfigurationProperty where
type PropertyType "DeliveryUri" CustomDeliveryConfigurationProperty = Value Prelude.Text
set :: PropertyType "DeliveryUri" CustomDeliveryConfigurationProperty
-> CustomDeliveryConfigurationProperty
-> CustomDeliveryConfigurationProperty
set PropertyType "DeliveryUri" CustomDeliveryConfigurationProperty
newValue CustomDeliveryConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: CustomDeliveryConfigurationProperty -> ()
deliveryUri :: CustomDeliveryConfigurationProperty -> Maybe (Value Text)
endpointTypes :: CustomDeliveryConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
deliveryUri :: Maybe (Value Text)
endpointTypes :: Maybe (ValueList Text)
..}
= CustomDeliveryConfigurationProperty
{deliveryUri :: Maybe (Value Text)
deliveryUri = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DeliveryUri" CustomDeliveryConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
endpointTypes :: Maybe (ValueList Text)
haddock_workaround_ :: ()
endpointTypes :: Maybe (ValueList Text)
..}
instance Property "EndpointTypes" CustomDeliveryConfigurationProperty where
type PropertyType "EndpointTypes" CustomDeliveryConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "EndpointTypes" CustomDeliveryConfigurationProperty
-> CustomDeliveryConfigurationProperty
-> CustomDeliveryConfigurationProperty
set PropertyType "EndpointTypes" CustomDeliveryConfigurationProperty
newValue CustomDeliveryConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: CustomDeliveryConfigurationProperty -> ()
deliveryUri :: CustomDeliveryConfigurationProperty -> Maybe (Value Text)
endpointTypes :: CustomDeliveryConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
deliveryUri :: Maybe (Value Text)
endpointTypes :: Maybe (ValueList Text)
..}
= CustomDeliveryConfigurationProperty
{endpointTypes :: Maybe (ValueList Text)
endpointTypes = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EndpointTypes" CustomDeliveryConfigurationProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
deliveryUri :: Maybe (Value Text)
haddock_workaround_ :: ()
deliveryUri :: Maybe (Value Text)
..}