module Stratosphere.Route53.RecordSetGroup.AliasTargetProperty (
AliasTargetProperty(..), mkAliasTargetProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AliasTargetProperty
=
AliasTargetProperty {AliasTargetProperty -> ()
haddock_workaround_ :: (),
AliasTargetProperty -> Value Text
dNSName :: (Value Prelude.Text),
AliasTargetProperty -> Maybe (Value Bool)
evaluateTargetHealth :: (Prelude.Maybe (Value Prelude.Bool)),
AliasTargetProperty -> Value Text
hostedZoneId :: (Value Prelude.Text)}
deriving stock (AliasTargetProperty -> AliasTargetProperty -> Bool
(AliasTargetProperty -> AliasTargetProperty -> Bool)
-> (AliasTargetProperty -> AliasTargetProperty -> Bool)
-> Eq AliasTargetProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AliasTargetProperty -> AliasTargetProperty -> Bool
== :: AliasTargetProperty -> AliasTargetProperty -> Bool
$c/= :: AliasTargetProperty -> AliasTargetProperty -> Bool
/= :: AliasTargetProperty -> AliasTargetProperty -> Bool
Prelude.Eq, Int -> AliasTargetProperty -> ShowS
[AliasTargetProperty] -> ShowS
AliasTargetProperty -> String
(Int -> AliasTargetProperty -> ShowS)
-> (AliasTargetProperty -> String)
-> ([AliasTargetProperty] -> ShowS)
-> Show AliasTargetProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AliasTargetProperty -> ShowS
showsPrec :: Int -> AliasTargetProperty -> ShowS
$cshow :: AliasTargetProperty -> String
show :: AliasTargetProperty -> String
$cshowList :: [AliasTargetProperty] -> ShowS
showList :: [AliasTargetProperty] -> ShowS
Prelude.Show)
mkAliasTargetProperty ::
Value Prelude.Text -> Value Prelude.Text -> AliasTargetProperty
mkAliasTargetProperty :: Value Text -> Value Text -> AliasTargetProperty
mkAliasTargetProperty Value Text
dNSName Value Text
hostedZoneId
= AliasTargetProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), dNSName :: Value Text
dNSName = Value Text
dNSName,
hostedZoneId :: Value Text
hostedZoneId = Value Text
hostedZoneId,
evaluateTargetHealth :: Maybe (Value Bool)
evaluateTargetHealth = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AliasTargetProperty where
toResourceProperties :: AliasTargetProperty -> ResourceProperties
toResourceProperties AliasTargetProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: AliasTargetProperty -> ()
dNSName :: AliasTargetProperty -> Value Text
evaluateTargetHealth :: AliasTargetProperty -> Maybe (Value Bool)
hostedZoneId :: AliasTargetProperty -> Value Text
haddock_workaround_ :: ()
dNSName :: Value Text
evaluateTargetHealth :: Maybe (Value Bool)
hostedZoneId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Route53::RecordSetGroup.AliasTarget",
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
"DNSName" 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
dNSName, Key
"HostedZoneId" 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
hostedZoneId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"EvaluateTargetHealth"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
evaluateTargetHealth]))}
instance JSON.ToJSON AliasTargetProperty where
toJSON :: AliasTargetProperty -> Value
toJSON AliasTargetProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: AliasTargetProperty -> ()
dNSName :: AliasTargetProperty -> Value Text
evaluateTargetHealth :: AliasTargetProperty -> Maybe (Value Bool)
hostedZoneId :: AliasTargetProperty -> Value Text
haddock_workaround_ :: ()
dNSName :: Value Text
evaluateTargetHealth :: Maybe (Value Bool)
hostedZoneId :: 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
"DNSName" 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
dNSName, Key
"HostedZoneId" 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
hostedZoneId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"EvaluateTargetHealth"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
evaluateTargetHealth])))
instance Property "DNSName" AliasTargetProperty where
type PropertyType "DNSName" AliasTargetProperty = Value Prelude.Text
set :: PropertyType "DNSName" AliasTargetProperty
-> AliasTargetProperty -> AliasTargetProperty
set PropertyType "DNSName" AliasTargetProperty
newValue AliasTargetProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: AliasTargetProperty -> ()
dNSName :: AliasTargetProperty -> Value Text
evaluateTargetHealth :: AliasTargetProperty -> Maybe (Value Bool)
hostedZoneId :: AliasTargetProperty -> Value Text
haddock_workaround_ :: ()
dNSName :: Value Text
evaluateTargetHealth :: Maybe (Value Bool)
hostedZoneId :: Value Text
..}
= AliasTargetProperty {dNSName :: Value Text
dNSName = PropertyType "DNSName" AliasTargetProperty
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
evaluateTargetHealth :: Maybe (Value Bool)
hostedZoneId :: Value Text
haddock_workaround_ :: ()
evaluateTargetHealth :: Maybe (Value Bool)
hostedZoneId :: Value Text
..}
instance Property "EvaluateTargetHealth" AliasTargetProperty where
type PropertyType "EvaluateTargetHealth" AliasTargetProperty = Value Prelude.Bool
set :: PropertyType "EvaluateTargetHealth" AliasTargetProperty
-> AliasTargetProperty -> AliasTargetProperty
set PropertyType "EvaluateTargetHealth" AliasTargetProperty
newValue AliasTargetProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: AliasTargetProperty -> ()
dNSName :: AliasTargetProperty -> Value Text
evaluateTargetHealth :: AliasTargetProperty -> Maybe (Value Bool)
hostedZoneId :: AliasTargetProperty -> Value Text
haddock_workaround_ :: ()
dNSName :: Value Text
evaluateTargetHealth :: Maybe (Value Bool)
hostedZoneId :: Value Text
..}
= AliasTargetProperty
{evaluateTargetHealth :: Maybe (Value Bool)
evaluateTargetHealth = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EvaluateTargetHealth" AliasTargetProperty
Value Bool
newValue, ()
Value Text
haddock_workaround_ :: ()
dNSName :: Value Text
hostedZoneId :: Value Text
haddock_workaround_ :: ()
dNSName :: Value Text
hostedZoneId :: Value Text
..}
instance Property "HostedZoneId" AliasTargetProperty where
type PropertyType "HostedZoneId" AliasTargetProperty = Value Prelude.Text
set :: PropertyType "HostedZoneId" AliasTargetProperty
-> AliasTargetProperty -> AliasTargetProperty
set PropertyType "HostedZoneId" AliasTargetProperty
newValue AliasTargetProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: AliasTargetProperty -> ()
dNSName :: AliasTargetProperty -> Value Text
evaluateTargetHealth :: AliasTargetProperty -> Maybe (Value Bool)
hostedZoneId :: AliasTargetProperty -> Value Text
haddock_workaround_ :: ()
dNSName :: Value Text
evaluateTargetHealth :: Maybe (Value Bool)
hostedZoneId :: Value Text
..}
= AliasTargetProperty {hostedZoneId :: Value Text
hostedZoneId = PropertyType "HostedZoneId" AliasTargetProperty
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
dNSName :: Value Text
evaluateTargetHealth :: Maybe (Value Bool)
haddock_workaround_ :: ()
dNSName :: Value Text
evaluateTargetHealth :: Maybe (Value Bool)
..}