module Stratosphere.ServiceDiscovery.Service.DnsRecordProperty (
DnsRecordProperty(..), mkDnsRecordProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DnsRecordProperty
=
DnsRecordProperty {DnsRecordProperty -> ()
haddock_workaround_ :: (),
DnsRecordProperty -> Value Double
tTL :: (Value Prelude.Double),
DnsRecordProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (DnsRecordProperty -> DnsRecordProperty -> Bool
(DnsRecordProperty -> DnsRecordProperty -> Bool)
-> (DnsRecordProperty -> DnsRecordProperty -> Bool)
-> Eq DnsRecordProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DnsRecordProperty -> DnsRecordProperty -> Bool
== :: DnsRecordProperty -> DnsRecordProperty -> Bool
$c/= :: DnsRecordProperty -> DnsRecordProperty -> Bool
/= :: DnsRecordProperty -> DnsRecordProperty -> Bool
Prelude.Eq, Int -> DnsRecordProperty -> ShowS
[DnsRecordProperty] -> ShowS
DnsRecordProperty -> String
(Int -> DnsRecordProperty -> ShowS)
-> (DnsRecordProperty -> String)
-> ([DnsRecordProperty] -> ShowS)
-> Show DnsRecordProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DnsRecordProperty -> ShowS
showsPrec :: Int -> DnsRecordProperty -> ShowS
$cshow :: DnsRecordProperty -> String
show :: DnsRecordProperty -> String
$cshowList :: [DnsRecordProperty] -> ShowS
showList :: [DnsRecordProperty] -> ShowS
Prelude.Show)
mkDnsRecordProperty ::
Value Prelude.Double -> Value Prelude.Text -> DnsRecordProperty
mkDnsRecordProperty :: Value Double -> Value Text -> DnsRecordProperty
mkDnsRecordProperty Value Double
tTL Value Text
type'
= DnsRecordProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), tTL :: Value Double
tTL = Value Double
tTL, type' :: Value Text
type' = Value Text
type'}
instance ToResourceProperties DnsRecordProperty where
toResourceProperties :: DnsRecordProperty -> ResourceProperties
toResourceProperties DnsRecordProperty {()
Value Double
Value Text
haddock_workaround_ :: DnsRecordProperty -> ()
tTL :: DnsRecordProperty -> Value Double
type' :: DnsRecordProperty -> Value Text
haddock_workaround_ :: ()
tTL :: Value Double
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ServiceDiscovery::Service.DnsRecord",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"TTL" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
tTL, Key
"Type" 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
type']}
instance JSON.ToJSON DnsRecordProperty where
toJSON :: DnsRecordProperty -> Value
toJSON DnsRecordProperty {()
Value Double
Value Text
haddock_workaround_ :: DnsRecordProperty -> ()
tTL :: DnsRecordProperty -> Value Double
type' :: DnsRecordProperty -> Value Text
haddock_workaround_ :: ()
tTL :: Value Double
type' :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"TTL" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
tTL, Key
"Type" 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
type']
instance Property "TTL" DnsRecordProperty where
type PropertyType "TTL" DnsRecordProperty = Value Prelude.Double
set :: PropertyType "TTL" DnsRecordProperty
-> DnsRecordProperty -> DnsRecordProperty
set PropertyType "TTL" DnsRecordProperty
newValue DnsRecordProperty {()
Value Double
Value Text
haddock_workaround_ :: DnsRecordProperty -> ()
tTL :: DnsRecordProperty -> Value Double
type' :: DnsRecordProperty -> Value Text
haddock_workaround_ :: ()
tTL :: Value Double
type' :: Value Text
..}
= DnsRecordProperty {tTL :: Value Double
tTL = PropertyType "TTL" DnsRecordProperty
Value Double
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
instance Property "Type" DnsRecordProperty where
type PropertyType "Type" DnsRecordProperty = Value Prelude.Text
set :: PropertyType "Type" DnsRecordProperty
-> DnsRecordProperty -> DnsRecordProperty
set PropertyType "Type" DnsRecordProperty
newValue DnsRecordProperty {()
Value Double
Value Text
haddock_workaround_ :: DnsRecordProperty -> ()
tTL :: DnsRecordProperty -> Value Double
type' :: DnsRecordProperty -> Value Text
haddock_workaround_ :: ()
tTL :: Value Double
type' :: Value Text
..}
= DnsRecordProperty {type' :: Value Text
type' = PropertyType "Type" DnsRecordProperty
Value Text
newValue, ()
Value Double
haddock_workaround_ :: ()
tTL :: Value Double
haddock_workaround_ :: ()
tTL :: Value Double
..}