module Stratosphere.EC2.VPCEndpoint.DnsOptionsSpecificationProperty (
        DnsOptionsSpecificationProperty(..),
        mkDnsOptionsSpecificationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DnsOptionsSpecificationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-vpcendpoint-dnsoptionsspecification.html>
    DnsOptionsSpecificationProperty {DnsOptionsSpecificationProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-vpcendpoint-dnsoptionsspecification.html#cfn-ec2-vpcendpoint-dnsoptionsspecification-dnsrecordiptype>
                                     DnsOptionsSpecificationProperty -> Maybe (Value Text)
dnsRecordIpType :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-vpcendpoint-dnsoptionsspecification.html#cfn-ec2-vpcendpoint-dnsoptionsspecification-privatednsonlyforinboundresolverendpoint>
                                     DnsOptionsSpecificationProperty -> Maybe (Value Text)
privateDnsOnlyForInboundResolverEndpoint :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (DnsOptionsSpecificationProperty
-> DnsOptionsSpecificationProperty -> Bool
(DnsOptionsSpecificationProperty
 -> DnsOptionsSpecificationProperty -> Bool)
-> (DnsOptionsSpecificationProperty
    -> DnsOptionsSpecificationProperty -> Bool)
-> Eq DnsOptionsSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DnsOptionsSpecificationProperty
-> DnsOptionsSpecificationProperty -> Bool
== :: DnsOptionsSpecificationProperty
-> DnsOptionsSpecificationProperty -> Bool
$c/= :: DnsOptionsSpecificationProperty
-> DnsOptionsSpecificationProperty -> Bool
/= :: DnsOptionsSpecificationProperty
-> DnsOptionsSpecificationProperty -> Bool
Prelude.Eq, Int -> DnsOptionsSpecificationProperty -> ShowS
[DnsOptionsSpecificationProperty] -> ShowS
DnsOptionsSpecificationProperty -> String
(Int -> DnsOptionsSpecificationProperty -> ShowS)
-> (DnsOptionsSpecificationProperty -> String)
-> ([DnsOptionsSpecificationProperty] -> ShowS)
-> Show DnsOptionsSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DnsOptionsSpecificationProperty -> ShowS
showsPrec :: Int -> DnsOptionsSpecificationProperty -> ShowS
$cshow :: DnsOptionsSpecificationProperty -> String
show :: DnsOptionsSpecificationProperty -> String
$cshowList :: [DnsOptionsSpecificationProperty] -> ShowS
showList :: [DnsOptionsSpecificationProperty] -> ShowS
Prelude.Show)
mkDnsOptionsSpecificationProperty ::
  DnsOptionsSpecificationProperty
mkDnsOptionsSpecificationProperty :: DnsOptionsSpecificationProperty
mkDnsOptionsSpecificationProperty
  = DnsOptionsSpecificationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), dnsRecordIpType :: Maybe (Value Text)
dnsRecordIpType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       privateDnsOnlyForInboundResolverEndpoint :: Maybe (Value Text)
privateDnsOnlyForInboundResolverEndpoint = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DnsOptionsSpecificationProperty where
  toResourceProperties :: DnsOptionsSpecificationProperty -> ResourceProperties
toResourceProperties DnsOptionsSpecificationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DnsOptionsSpecificationProperty -> ()
dnsRecordIpType :: DnsOptionsSpecificationProperty -> Maybe (Value Text)
privateDnsOnlyForInboundResolverEndpoint :: DnsOptionsSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dnsRecordIpType :: Maybe (Value Text)
privateDnsOnlyForInboundResolverEndpoint :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::VPCEndpoint.DnsOptionsSpecification",
         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
"DnsRecordIpType" (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)
dnsRecordIpType,
                            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
"PrivateDnsOnlyForInboundResolverEndpoint"
                              (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)
privateDnsOnlyForInboundResolverEndpoint])}
instance JSON.ToJSON DnsOptionsSpecificationProperty where
  toJSON :: DnsOptionsSpecificationProperty -> Value
toJSON DnsOptionsSpecificationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DnsOptionsSpecificationProperty -> ()
dnsRecordIpType :: DnsOptionsSpecificationProperty -> Maybe (Value Text)
privateDnsOnlyForInboundResolverEndpoint :: DnsOptionsSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dnsRecordIpType :: Maybe (Value Text)
privateDnsOnlyForInboundResolverEndpoint :: Maybe (Value 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
"DnsRecordIpType" (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)
dnsRecordIpType,
               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
"PrivateDnsOnlyForInboundResolverEndpoint"
                 (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)
privateDnsOnlyForInboundResolverEndpoint]))
instance Property "DnsRecordIpType" DnsOptionsSpecificationProperty where
  type PropertyType "DnsRecordIpType" DnsOptionsSpecificationProperty = Value Prelude.Text
  set :: PropertyType "DnsRecordIpType" DnsOptionsSpecificationProperty
-> DnsOptionsSpecificationProperty
-> DnsOptionsSpecificationProperty
set PropertyType "DnsRecordIpType" DnsOptionsSpecificationProperty
newValue DnsOptionsSpecificationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DnsOptionsSpecificationProperty -> ()
dnsRecordIpType :: DnsOptionsSpecificationProperty -> Maybe (Value Text)
privateDnsOnlyForInboundResolverEndpoint :: DnsOptionsSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dnsRecordIpType :: Maybe (Value Text)
privateDnsOnlyForInboundResolverEndpoint :: Maybe (Value Text)
..}
    = DnsOptionsSpecificationProperty
        {dnsRecordIpType :: Maybe (Value Text)
dnsRecordIpType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DnsRecordIpType" DnsOptionsSpecificationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
privateDnsOnlyForInboundResolverEndpoint :: Maybe (Value Text)
haddock_workaround_ :: ()
privateDnsOnlyForInboundResolverEndpoint :: Maybe (Value Text)
..}
instance Property "PrivateDnsOnlyForInboundResolverEndpoint" DnsOptionsSpecificationProperty where
  type PropertyType "PrivateDnsOnlyForInboundResolverEndpoint" DnsOptionsSpecificationProperty = Value Prelude.Text
  set :: PropertyType
  "PrivateDnsOnlyForInboundResolverEndpoint"
  DnsOptionsSpecificationProperty
-> DnsOptionsSpecificationProperty
-> DnsOptionsSpecificationProperty
set PropertyType
  "PrivateDnsOnlyForInboundResolverEndpoint"
  DnsOptionsSpecificationProperty
newValue DnsOptionsSpecificationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DnsOptionsSpecificationProperty -> ()
dnsRecordIpType :: DnsOptionsSpecificationProperty -> Maybe (Value Text)
privateDnsOnlyForInboundResolverEndpoint :: DnsOptionsSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dnsRecordIpType :: Maybe (Value Text)
privateDnsOnlyForInboundResolverEndpoint :: Maybe (Value Text)
..}
    = DnsOptionsSpecificationProperty
        {privateDnsOnlyForInboundResolverEndpoint :: Maybe (Value Text)
privateDnsOnlyForInboundResolverEndpoint = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "PrivateDnsOnlyForInboundResolverEndpoint"
  DnsOptionsSpecificationProperty
Value Text
newValue,
         Maybe (Value Text)
()
haddock_workaround_ :: ()
dnsRecordIpType :: Maybe (Value Text)
haddock_workaround_ :: ()
dnsRecordIpType :: Maybe (Value Text)
..}