module Stratosphere.VpcLattice.ResourceConfiguration.ResourceConfigurationDefinitionProperty (
        module Exports, ResourceConfigurationDefinitionProperty(..),
        mkResourceConfigurationDefinitionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.VpcLattice.ResourceConfiguration.DnsResourceProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ResourceConfigurationDefinitionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-resourceconfiguration-resourceconfigurationdefinition.html>
    ResourceConfigurationDefinitionProperty {ResourceConfigurationDefinitionProperty -> ()
haddock_workaround_ :: (),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-resourceconfiguration-resourceconfigurationdefinition.html#cfn-vpclattice-resourceconfiguration-resourceconfigurationdefinition-arnresource>
                                             ResourceConfigurationDefinitionProperty -> Maybe (Value Text)
arnResource :: (Prelude.Maybe (Value Prelude.Text)),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-resourceconfiguration-resourceconfigurationdefinition.html#cfn-vpclattice-resourceconfiguration-resourceconfigurationdefinition-dnsresource>
                                             ResourceConfigurationDefinitionProperty
-> Maybe DnsResourceProperty
dnsResource :: (Prelude.Maybe DnsResourceProperty),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-resourceconfiguration-resourceconfigurationdefinition.html#cfn-vpclattice-resourceconfiguration-resourceconfigurationdefinition-ipresource>
                                             ResourceConfigurationDefinitionProperty -> Maybe (Value Text)
ipResource :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ResourceConfigurationDefinitionProperty
-> ResourceConfigurationDefinitionProperty -> Bool
(ResourceConfigurationDefinitionProperty
 -> ResourceConfigurationDefinitionProperty -> Bool)
-> (ResourceConfigurationDefinitionProperty
    -> ResourceConfigurationDefinitionProperty -> Bool)
-> Eq ResourceConfigurationDefinitionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResourceConfigurationDefinitionProperty
-> ResourceConfigurationDefinitionProperty -> Bool
== :: ResourceConfigurationDefinitionProperty
-> ResourceConfigurationDefinitionProperty -> Bool
$c/= :: ResourceConfigurationDefinitionProperty
-> ResourceConfigurationDefinitionProperty -> Bool
/= :: ResourceConfigurationDefinitionProperty
-> ResourceConfigurationDefinitionProperty -> Bool
Prelude.Eq, Int -> ResourceConfigurationDefinitionProperty -> ShowS
[ResourceConfigurationDefinitionProperty] -> ShowS
ResourceConfigurationDefinitionProperty -> String
(Int -> ResourceConfigurationDefinitionProperty -> ShowS)
-> (ResourceConfigurationDefinitionProperty -> String)
-> ([ResourceConfigurationDefinitionProperty] -> ShowS)
-> Show ResourceConfigurationDefinitionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResourceConfigurationDefinitionProperty -> ShowS
showsPrec :: Int -> ResourceConfigurationDefinitionProperty -> ShowS
$cshow :: ResourceConfigurationDefinitionProperty -> String
show :: ResourceConfigurationDefinitionProperty -> String
$cshowList :: [ResourceConfigurationDefinitionProperty] -> ShowS
showList :: [ResourceConfigurationDefinitionProperty] -> ShowS
Prelude.Show)
mkResourceConfigurationDefinitionProperty ::
  ResourceConfigurationDefinitionProperty
mkResourceConfigurationDefinitionProperty :: ResourceConfigurationDefinitionProperty
mkResourceConfigurationDefinitionProperty
  = ResourceConfigurationDefinitionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), arnResource :: Maybe (Value Text)
arnResource = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       dnsResource :: Maybe DnsResourceProperty
dnsResource = Maybe DnsResourceProperty
forall a. Maybe a
Prelude.Nothing, ipResource :: Maybe (Value Text)
ipResource = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ResourceConfigurationDefinitionProperty where
  toResourceProperties :: ResourceConfigurationDefinitionProperty -> ResourceProperties
toResourceProperties ResourceConfigurationDefinitionProperty {Maybe (Value Text)
Maybe DnsResourceProperty
()
haddock_workaround_ :: ResourceConfigurationDefinitionProperty -> ()
arnResource :: ResourceConfigurationDefinitionProperty -> Maybe (Value Text)
dnsResource :: ResourceConfigurationDefinitionProperty
-> Maybe DnsResourceProperty
ipResource :: ResourceConfigurationDefinitionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
arnResource :: Maybe (Value Text)
dnsResource :: Maybe DnsResourceProperty
ipResource :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::VpcLattice::ResourceConfiguration.ResourceConfigurationDefinition",
         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
"ArnResource" (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)
arnResource,
                            Key -> DnsResourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DnsResource" (DnsResourceProperty -> (Key, Value))
-> Maybe DnsResourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DnsResourceProperty
dnsResource,
                            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
"IpResource" (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)
ipResource])}
instance JSON.ToJSON ResourceConfigurationDefinitionProperty where
  toJSON :: ResourceConfigurationDefinitionProperty -> Value
toJSON ResourceConfigurationDefinitionProperty {Maybe (Value Text)
Maybe DnsResourceProperty
()
haddock_workaround_ :: ResourceConfigurationDefinitionProperty -> ()
arnResource :: ResourceConfigurationDefinitionProperty -> Maybe (Value Text)
dnsResource :: ResourceConfigurationDefinitionProperty
-> Maybe DnsResourceProperty
ipResource :: ResourceConfigurationDefinitionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
arnResource :: Maybe (Value Text)
dnsResource :: Maybe DnsResourceProperty
ipResource :: 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
"ArnResource" (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)
arnResource,
               Key -> DnsResourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DnsResource" (DnsResourceProperty -> (Key, Value))
-> Maybe DnsResourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DnsResourceProperty
dnsResource,
               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
"IpResource" (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)
ipResource]))
instance Property "ArnResource" ResourceConfigurationDefinitionProperty where
  type PropertyType "ArnResource" ResourceConfigurationDefinitionProperty = Value Prelude.Text
  set :: PropertyType "ArnResource" ResourceConfigurationDefinitionProperty
-> ResourceConfigurationDefinitionProperty
-> ResourceConfigurationDefinitionProperty
set PropertyType "ArnResource" ResourceConfigurationDefinitionProperty
newValue ResourceConfigurationDefinitionProperty {Maybe (Value Text)
Maybe DnsResourceProperty
()
haddock_workaround_ :: ResourceConfigurationDefinitionProperty -> ()
arnResource :: ResourceConfigurationDefinitionProperty -> Maybe (Value Text)
dnsResource :: ResourceConfigurationDefinitionProperty
-> Maybe DnsResourceProperty
ipResource :: ResourceConfigurationDefinitionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
arnResource :: Maybe (Value Text)
dnsResource :: Maybe DnsResourceProperty
ipResource :: Maybe (Value Text)
..}
    = ResourceConfigurationDefinitionProperty
        {arnResource :: Maybe (Value Text)
arnResource = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ArnResource" ResourceConfigurationDefinitionProperty
Value Text
newValue, Maybe (Value Text)
Maybe DnsResourceProperty
()
haddock_workaround_ :: ()
dnsResource :: Maybe DnsResourceProperty
ipResource :: Maybe (Value Text)
haddock_workaround_ :: ()
dnsResource :: Maybe DnsResourceProperty
ipResource :: Maybe (Value Text)
..}
instance Property "DnsResource" ResourceConfigurationDefinitionProperty where
  type PropertyType "DnsResource" ResourceConfigurationDefinitionProperty = DnsResourceProperty
  set :: PropertyType "DnsResource" ResourceConfigurationDefinitionProperty
-> ResourceConfigurationDefinitionProperty
-> ResourceConfigurationDefinitionProperty
set PropertyType "DnsResource" ResourceConfigurationDefinitionProperty
newValue ResourceConfigurationDefinitionProperty {Maybe (Value Text)
Maybe DnsResourceProperty
()
haddock_workaround_ :: ResourceConfigurationDefinitionProperty -> ()
arnResource :: ResourceConfigurationDefinitionProperty -> Maybe (Value Text)
dnsResource :: ResourceConfigurationDefinitionProperty
-> Maybe DnsResourceProperty
ipResource :: ResourceConfigurationDefinitionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
arnResource :: Maybe (Value Text)
dnsResource :: Maybe DnsResourceProperty
ipResource :: Maybe (Value Text)
..}
    = ResourceConfigurationDefinitionProperty
        {dnsResource :: Maybe DnsResourceProperty
dnsResource = DnsResourceProperty -> Maybe DnsResourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DnsResource" ResourceConfigurationDefinitionProperty
DnsResourceProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
arnResource :: Maybe (Value Text)
ipResource :: Maybe (Value Text)
haddock_workaround_ :: ()
arnResource :: Maybe (Value Text)
ipResource :: Maybe (Value Text)
..}
instance Property "IpResource" ResourceConfigurationDefinitionProperty where
  type PropertyType "IpResource" ResourceConfigurationDefinitionProperty = Value Prelude.Text
  set :: PropertyType "IpResource" ResourceConfigurationDefinitionProperty
-> ResourceConfigurationDefinitionProperty
-> ResourceConfigurationDefinitionProperty
set PropertyType "IpResource" ResourceConfigurationDefinitionProperty
newValue ResourceConfigurationDefinitionProperty {Maybe (Value Text)
Maybe DnsResourceProperty
()
haddock_workaround_ :: ResourceConfigurationDefinitionProperty -> ()
arnResource :: ResourceConfigurationDefinitionProperty -> Maybe (Value Text)
dnsResource :: ResourceConfigurationDefinitionProperty
-> Maybe DnsResourceProperty
ipResource :: ResourceConfigurationDefinitionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
arnResource :: Maybe (Value Text)
dnsResource :: Maybe DnsResourceProperty
ipResource :: Maybe (Value Text)
..}
    = ResourceConfigurationDefinitionProperty
        {ipResource :: Maybe (Value Text)
ipResource = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IpResource" ResourceConfigurationDefinitionProperty
Value Text
newValue, Maybe (Value Text)
Maybe DnsResourceProperty
()
haddock_workaround_ :: ()
arnResource :: Maybe (Value Text)
dnsResource :: Maybe DnsResourceProperty
haddock_workaround_ :: ()
arnResource :: Maybe (Value Text)
dnsResource :: Maybe DnsResourceProperty
..}