module Stratosphere.QuickSight.DataSource.VpcConnectionPropertiesProperty (
VpcConnectionPropertiesProperty(..),
mkVpcConnectionPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcConnectionPropertiesProperty
=
VpcConnectionPropertiesProperty {VpcConnectionPropertiesProperty -> ()
haddock_workaround_ :: (),
VpcConnectionPropertiesProperty -> Value Text
vpcConnectionArn :: (Value Prelude.Text)}
deriving stock (VpcConnectionPropertiesProperty
-> VpcConnectionPropertiesProperty -> Bool
(VpcConnectionPropertiesProperty
-> VpcConnectionPropertiesProperty -> Bool)
-> (VpcConnectionPropertiesProperty
-> VpcConnectionPropertiesProperty -> Bool)
-> Eq VpcConnectionPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcConnectionPropertiesProperty
-> VpcConnectionPropertiesProperty -> Bool
== :: VpcConnectionPropertiesProperty
-> VpcConnectionPropertiesProperty -> Bool
$c/= :: VpcConnectionPropertiesProperty
-> VpcConnectionPropertiesProperty -> Bool
/= :: VpcConnectionPropertiesProperty
-> VpcConnectionPropertiesProperty -> Bool
Prelude.Eq, Int -> VpcConnectionPropertiesProperty -> ShowS
[VpcConnectionPropertiesProperty] -> ShowS
VpcConnectionPropertiesProperty -> String
(Int -> VpcConnectionPropertiesProperty -> ShowS)
-> (VpcConnectionPropertiesProperty -> String)
-> ([VpcConnectionPropertiesProperty] -> ShowS)
-> Show VpcConnectionPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcConnectionPropertiesProperty -> ShowS
showsPrec :: Int -> VpcConnectionPropertiesProperty -> ShowS
$cshow :: VpcConnectionPropertiesProperty -> String
show :: VpcConnectionPropertiesProperty -> String
$cshowList :: [VpcConnectionPropertiesProperty] -> ShowS
showList :: [VpcConnectionPropertiesProperty] -> ShowS
Prelude.Show)
mkVpcConnectionPropertiesProperty ::
Value Prelude.Text -> VpcConnectionPropertiesProperty
mkVpcConnectionPropertiesProperty :: Value Text -> VpcConnectionPropertiesProperty
mkVpcConnectionPropertiesProperty Value Text
vpcConnectionArn
= VpcConnectionPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), vpcConnectionArn :: Value Text
vpcConnectionArn = Value Text
vpcConnectionArn}
instance ToResourceProperties VpcConnectionPropertiesProperty where
toResourceProperties :: VpcConnectionPropertiesProperty -> ResourceProperties
toResourceProperties VpcConnectionPropertiesProperty {()
Value Text
haddock_workaround_ :: VpcConnectionPropertiesProperty -> ()
vpcConnectionArn :: VpcConnectionPropertiesProperty -> Value Text
haddock_workaround_ :: ()
vpcConnectionArn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::DataSource.VpcConnectionProperties",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"VpcConnectionArn" 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
vpcConnectionArn]}
instance JSON.ToJSON VpcConnectionPropertiesProperty where
toJSON :: VpcConnectionPropertiesProperty -> Value
toJSON VpcConnectionPropertiesProperty {()
Value Text
haddock_workaround_ :: VpcConnectionPropertiesProperty -> ()
vpcConnectionArn :: VpcConnectionPropertiesProperty -> Value Text
haddock_workaround_ :: ()
vpcConnectionArn :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"VpcConnectionArn" 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
vpcConnectionArn]
instance Property "VpcConnectionArn" VpcConnectionPropertiesProperty where
type PropertyType "VpcConnectionArn" VpcConnectionPropertiesProperty = Value Prelude.Text
set :: PropertyType "VpcConnectionArn" VpcConnectionPropertiesProperty
-> VpcConnectionPropertiesProperty
-> VpcConnectionPropertiesProperty
set PropertyType "VpcConnectionArn" VpcConnectionPropertiesProperty
newValue VpcConnectionPropertiesProperty {()
Value Text
haddock_workaround_ :: VpcConnectionPropertiesProperty -> ()
vpcConnectionArn :: VpcConnectionPropertiesProperty -> Value Text
haddock_workaround_ :: ()
vpcConnectionArn :: Value Text
..}
= VpcConnectionPropertiesProperty {vpcConnectionArn :: Value Text
vpcConnectionArn = PropertyType "VpcConnectionArn" VpcConnectionPropertiesProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}