module Stratosphere.VpcLattice.ResourceConfiguration.DnsResourceProperty (
        DnsResourceProperty(..), mkDnsResourceProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DnsResourceProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-resourceconfiguration-dnsresource.html>
    DnsResourceProperty {DnsResourceProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-resourceconfiguration-dnsresource.html#cfn-vpclattice-resourceconfiguration-dnsresource-domainname>
                         DnsResourceProperty -> Value Text
domainName :: (Value Prelude.Text),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-resourceconfiguration-dnsresource.html#cfn-vpclattice-resourceconfiguration-dnsresource-ipaddresstype>
                         DnsResourceProperty -> Value Text
ipAddressType :: (Value Prelude.Text)}
  deriving stock (DnsResourceProperty -> DnsResourceProperty -> Bool
(DnsResourceProperty -> DnsResourceProperty -> Bool)
-> (DnsResourceProperty -> DnsResourceProperty -> Bool)
-> Eq DnsResourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DnsResourceProperty -> DnsResourceProperty -> Bool
== :: DnsResourceProperty -> DnsResourceProperty -> Bool
$c/= :: DnsResourceProperty -> DnsResourceProperty -> Bool
/= :: DnsResourceProperty -> DnsResourceProperty -> Bool
Prelude.Eq, Int -> DnsResourceProperty -> ShowS
[DnsResourceProperty] -> ShowS
DnsResourceProperty -> String
(Int -> DnsResourceProperty -> ShowS)
-> (DnsResourceProperty -> String)
-> ([DnsResourceProperty] -> ShowS)
-> Show DnsResourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DnsResourceProperty -> ShowS
showsPrec :: Int -> DnsResourceProperty -> ShowS
$cshow :: DnsResourceProperty -> String
show :: DnsResourceProperty -> String
$cshowList :: [DnsResourceProperty] -> ShowS
showList :: [DnsResourceProperty] -> ShowS
Prelude.Show)
mkDnsResourceProperty ::
  Value Prelude.Text -> Value Prelude.Text -> DnsResourceProperty
mkDnsResourceProperty :: Value Text -> Value Text -> DnsResourceProperty
mkDnsResourceProperty Value Text
domainName Value Text
ipAddressType
  = DnsResourceProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), domainName :: Value Text
domainName = Value Text
domainName,
       ipAddressType :: Value Text
ipAddressType = Value Text
ipAddressType}
instance ToResourceProperties DnsResourceProperty where
  toResourceProperties :: DnsResourceProperty -> ResourceProperties
toResourceProperties DnsResourceProperty {()
Value Text
haddock_workaround_ :: DnsResourceProperty -> ()
domainName :: DnsResourceProperty -> Value Text
ipAddressType :: DnsResourceProperty -> Value Text
haddock_workaround_ :: ()
domainName :: Value Text
ipAddressType :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::VpcLattice::ResourceConfiguration.DnsResource",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"DomainName" 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
domainName,
                       Key
"IpAddressType" 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
ipAddressType]}
instance JSON.ToJSON DnsResourceProperty where
  toJSON :: DnsResourceProperty -> Value
toJSON DnsResourceProperty {()
Value Text
haddock_workaround_ :: DnsResourceProperty -> ()
domainName :: DnsResourceProperty -> Value Text
ipAddressType :: DnsResourceProperty -> Value Text
haddock_workaround_ :: ()
domainName :: Value Text
ipAddressType :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"DomainName" 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
domainName,
         Key
"IpAddressType" 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
ipAddressType]
instance Property "DomainName" DnsResourceProperty where
  type PropertyType "DomainName" DnsResourceProperty = Value Prelude.Text
  set :: PropertyType "DomainName" DnsResourceProperty
-> DnsResourceProperty -> DnsResourceProperty
set PropertyType "DomainName" DnsResourceProperty
newValue DnsResourceProperty {()
Value Text
haddock_workaround_ :: DnsResourceProperty -> ()
domainName :: DnsResourceProperty -> Value Text
ipAddressType :: DnsResourceProperty -> Value Text
haddock_workaround_ :: ()
domainName :: Value Text
ipAddressType :: Value Text
..}
    = DnsResourceProperty {domainName :: Value Text
domainName = PropertyType "DomainName" DnsResourceProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
ipAddressType :: Value Text
haddock_workaround_ :: ()
ipAddressType :: Value Text
..}
instance Property "IpAddressType" DnsResourceProperty where
  type PropertyType "IpAddressType" DnsResourceProperty = Value Prelude.Text
  set :: PropertyType "IpAddressType" DnsResourceProperty
-> DnsResourceProperty -> DnsResourceProperty
set PropertyType "IpAddressType" DnsResourceProperty
newValue DnsResourceProperty {()
Value Text
haddock_workaround_ :: DnsResourceProperty -> ()
domainName :: DnsResourceProperty -> Value Text
ipAddressType :: DnsResourceProperty -> Value Text
haddock_workaround_ :: ()
domainName :: Value Text
ipAddressType :: Value Text
..}
    = DnsResourceProperty {ipAddressType :: Value Text
ipAddressType = PropertyType "IpAddressType" DnsResourceProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
domainName :: Value Text
haddock_workaround_ :: ()
domainName :: Value Text
..}