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