module Stratosphere.QuickSight.VPCConnection.NetworkInterfaceProperty (
        NetworkInterfaceProperty(..), mkNetworkInterfaceProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NetworkInterfaceProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-vpcconnection-networkinterface.html>
    NetworkInterfaceProperty {NetworkInterfaceProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-vpcconnection-networkinterface.html#cfn-quicksight-vpcconnection-networkinterface-availabilityzone>
                              NetworkInterfaceProperty -> Maybe (Value Text)
availabilityZone :: (Prelude.Maybe (Value Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-vpcconnection-networkinterface.html#cfn-quicksight-vpcconnection-networkinterface-errormessage>
                              NetworkInterfaceProperty -> Maybe (Value Text)
errorMessage :: (Prelude.Maybe (Value Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-vpcconnection-networkinterface.html#cfn-quicksight-vpcconnection-networkinterface-networkinterfaceid>
                              NetworkInterfaceProperty -> Maybe (Value Text)
networkInterfaceId :: (Prelude.Maybe (Value Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-vpcconnection-networkinterface.html#cfn-quicksight-vpcconnection-networkinterface-status>
                              NetworkInterfaceProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-vpcconnection-networkinterface.html#cfn-quicksight-vpcconnection-networkinterface-subnetid>
                              NetworkInterfaceProperty -> Maybe (Value Text)
subnetId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool
(NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool)
-> (NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool)
-> Eq NetworkInterfaceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool
== :: NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool
$c/= :: NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool
/= :: NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool
Prelude.Eq, Int -> NetworkInterfaceProperty -> ShowS
[NetworkInterfaceProperty] -> ShowS
NetworkInterfaceProperty -> String
(Int -> NetworkInterfaceProperty -> ShowS)
-> (NetworkInterfaceProperty -> String)
-> ([NetworkInterfaceProperty] -> ShowS)
-> Show NetworkInterfaceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NetworkInterfaceProperty -> ShowS
showsPrec :: Int -> NetworkInterfaceProperty -> ShowS
$cshow :: NetworkInterfaceProperty -> String
show :: NetworkInterfaceProperty -> String
$cshowList :: [NetworkInterfaceProperty] -> ShowS
showList :: [NetworkInterfaceProperty] -> ShowS
Prelude.Show)
mkNetworkInterfaceProperty :: NetworkInterfaceProperty
mkNetworkInterfaceProperty :: NetworkInterfaceProperty
mkNetworkInterfaceProperty
  = NetworkInterfaceProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), availabilityZone :: Maybe (Value Text)
availabilityZone = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       errorMessage :: Maybe (Value Text)
errorMessage = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       networkInterfaceId :: Maybe (Value Text)
networkInterfaceId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       subnetId :: Maybe (Value Text)
subnetId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NetworkInterfaceProperty where
  toResourceProperties :: NetworkInterfaceProperty -> ResourceProperties
toResourceProperties NetworkInterfaceProperty {Maybe (Value Text)
()
haddock_workaround_ :: NetworkInterfaceProperty -> ()
availabilityZone :: NetworkInterfaceProperty -> Maybe (Value Text)
errorMessage :: NetworkInterfaceProperty -> Maybe (Value Text)
networkInterfaceId :: NetworkInterfaceProperty -> Maybe (Value Text)
status :: NetworkInterfaceProperty -> Maybe (Value Text)
subnetId :: NetworkInterfaceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
errorMessage :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
status :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::VPCConnection.NetworkInterface",
         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
"AvailabilityZone" (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)
availabilityZone,
                            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
"ErrorMessage" (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)
errorMessage,
                            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
"NetworkInterfaceId" (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)
networkInterfaceId,
                            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
"Status" (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)
status,
                            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
"SubnetId" (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)
subnetId])}
instance JSON.ToJSON NetworkInterfaceProperty where
  toJSON :: NetworkInterfaceProperty -> Value
toJSON NetworkInterfaceProperty {Maybe (Value Text)
()
haddock_workaround_ :: NetworkInterfaceProperty -> ()
availabilityZone :: NetworkInterfaceProperty -> Maybe (Value Text)
errorMessage :: NetworkInterfaceProperty -> Maybe (Value Text)
networkInterfaceId :: NetworkInterfaceProperty -> Maybe (Value Text)
status :: NetworkInterfaceProperty -> Maybe (Value Text)
subnetId :: NetworkInterfaceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
errorMessage :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
status :: Maybe (Value Text)
subnetId :: 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
"AvailabilityZone" (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)
availabilityZone,
               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
"ErrorMessage" (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)
errorMessage,
               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
"NetworkInterfaceId" (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)
networkInterfaceId,
               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
"Status" (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)
status,
               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
"SubnetId" (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)
subnetId]))
instance Property "AvailabilityZone" NetworkInterfaceProperty where
  type PropertyType "AvailabilityZone" NetworkInterfaceProperty = Value Prelude.Text
  set :: PropertyType "AvailabilityZone" NetworkInterfaceProperty
-> NetworkInterfaceProperty -> NetworkInterfaceProperty
set PropertyType "AvailabilityZone" NetworkInterfaceProperty
newValue NetworkInterfaceProperty {Maybe (Value Text)
()
haddock_workaround_ :: NetworkInterfaceProperty -> ()
availabilityZone :: NetworkInterfaceProperty -> Maybe (Value Text)
errorMessage :: NetworkInterfaceProperty -> Maybe (Value Text)
networkInterfaceId :: NetworkInterfaceProperty -> Maybe (Value Text)
status :: NetworkInterfaceProperty -> Maybe (Value Text)
subnetId :: NetworkInterfaceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
errorMessage :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
status :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
    = NetworkInterfaceProperty
        {availabilityZone :: Maybe (Value Text)
availabilityZone = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AvailabilityZone" NetworkInterfaceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
errorMessage :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
status :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
haddock_workaround_ :: ()
errorMessage :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
status :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
instance Property "ErrorMessage" NetworkInterfaceProperty where
  type PropertyType "ErrorMessage" NetworkInterfaceProperty = Value Prelude.Text
  set :: PropertyType "ErrorMessage" NetworkInterfaceProperty
-> NetworkInterfaceProperty -> NetworkInterfaceProperty
set PropertyType "ErrorMessage" NetworkInterfaceProperty
newValue NetworkInterfaceProperty {Maybe (Value Text)
()
haddock_workaround_ :: NetworkInterfaceProperty -> ()
availabilityZone :: NetworkInterfaceProperty -> Maybe (Value Text)
errorMessage :: NetworkInterfaceProperty -> Maybe (Value Text)
networkInterfaceId :: NetworkInterfaceProperty -> Maybe (Value Text)
status :: NetworkInterfaceProperty -> Maybe (Value Text)
subnetId :: NetworkInterfaceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
errorMessage :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
status :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
    = NetworkInterfaceProperty
        {errorMessage :: Maybe (Value Text)
errorMessage = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ErrorMessage" NetworkInterfaceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
status :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
status :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
instance Property "NetworkInterfaceId" NetworkInterfaceProperty where
  type PropertyType "NetworkInterfaceId" NetworkInterfaceProperty = Value Prelude.Text
  set :: PropertyType "NetworkInterfaceId" NetworkInterfaceProperty
-> NetworkInterfaceProperty -> NetworkInterfaceProperty
set PropertyType "NetworkInterfaceId" NetworkInterfaceProperty
newValue NetworkInterfaceProperty {Maybe (Value Text)
()
haddock_workaround_ :: NetworkInterfaceProperty -> ()
availabilityZone :: NetworkInterfaceProperty -> Maybe (Value Text)
errorMessage :: NetworkInterfaceProperty -> Maybe (Value Text)
networkInterfaceId :: NetworkInterfaceProperty -> Maybe (Value Text)
status :: NetworkInterfaceProperty -> Maybe (Value Text)
subnetId :: NetworkInterfaceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
errorMessage :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
status :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
    = NetworkInterfaceProperty
        {networkInterfaceId :: Maybe (Value Text)
networkInterfaceId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NetworkInterfaceId" NetworkInterfaceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
errorMessage :: Maybe (Value Text)
status :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
errorMessage :: Maybe (Value Text)
status :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
instance Property "Status" NetworkInterfaceProperty where
  type PropertyType "Status" NetworkInterfaceProperty = Value Prelude.Text
  set :: PropertyType "Status" NetworkInterfaceProperty
-> NetworkInterfaceProperty -> NetworkInterfaceProperty
set PropertyType "Status" NetworkInterfaceProperty
newValue NetworkInterfaceProperty {Maybe (Value Text)
()
haddock_workaround_ :: NetworkInterfaceProperty -> ()
availabilityZone :: NetworkInterfaceProperty -> Maybe (Value Text)
errorMessage :: NetworkInterfaceProperty -> Maybe (Value Text)
networkInterfaceId :: NetworkInterfaceProperty -> Maybe (Value Text)
status :: NetworkInterfaceProperty -> Maybe (Value Text)
subnetId :: NetworkInterfaceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
errorMessage :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
status :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
    = NetworkInterfaceProperty {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" NetworkInterfaceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
errorMessage :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
errorMessage :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
instance Property "SubnetId" NetworkInterfaceProperty where
  type PropertyType "SubnetId" NetworkInterfaceProperty = Value Prelude.Text
  set :: PropertyType "SubnetId" NetworkInterfaceProperty
-> NetworkInterfaceProperty -> NetworkInterfaceProperty
set PropertyType "SubnetId" NetworkInterfaceProperty
newValue NetworkInterfaceProperty {Maybe (Value Text)
()
haddock_workaround_ :: NetworkInterfaceProperty -> ()
availabilityZone :: NetworkInterfaceProperty -> Maybe (Value Text)
errorMessage :: NetworkInterfaceProperty -> Maybe (Value Text)
networkInterfaceId :: NetworkInterfaceProperty -> Maybe (Value Text)
status :: NetworkInterfaceProperty -> Maybe (Value Text)
subnetId :: NetworkInterfaceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
errorMessage :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
status :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
    = NetworkInterfaceProperty {subnetId :: Maybe (Value Text)
subnetId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SubnetId" NetworkInterfaceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
errorMessage :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
status :: Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
errorMessage :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
status :: Maybe (Value Text)
..}