module Stratosphere.FSx.Volume.NfsExportsProperty (
module Exports, NfsExportsProperty(..), mkNfsExportsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.FSx.Volume.ClientConfigurationsProperty as Exports
import Stratosphere.ResourceProperties
data NfsExportsProperty
=
NfsExportsProperty {NfsExportsProperty -> ()
haddock_workaround_ :: (),
NfsExportsProperty -> [ClientConfigurationsProperty]
clientConfigurations :: [ClientConfigurationsProperty]}
deriving stock (NfsExportsProperty -> NfsExportsProperty -> Bool
(NfsExportsProperty -> NfsExportsProperty -> Bool)
-> (NfsExportsProperty -> NfsExportsProperty -> Bool)
-> Eq NfsExportsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NfsExportsProperty -> NfsExportsProperty -> Bool
== :: NfsExportsProperty -> NfsExportsProperty -> Bool
$c/= :: NfsExportsProperty -> NfsExportsProperty -> Bool
/= :: NfsExportsProperty -> NfsExportsProperty -> Bool
Prelude.Eq, Int -> NfsExportsProperty -> ShowS
[NfsExportsProperty] -> ShowS
NfsExportsProperty -> String
(Int -> NfsExportsProperty -> ShowS)
-> (NfsExportsProperty -> String)
-> ([NfsExportsProperty] -> ShowS)
-> Show NfsExportsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NfsExportsProperty -> ShowS
showsPrec :: Int -> NfsExportsProperty -> ShowS
$cshow :: NfsExportsProperty -> String
show :: NfsExportsProperty -> String
$cshowList :: [NfsExportsProperty] -> ShowS
showList :: [NfsExportsProperty] -> ShowS
Prelude.Show)
mkNfsExportsProperty ::
[ClientConfigurationsProperty] -> NfsExportsProperty
mkNfsExportsProperty :: [ClientConfigurationsProperty] -> NfsExportsProperty
mkNfsExportsProperty [ClientConfigurationsProperty]
clientConfigurations
= NfsExportsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
clientConfigurations :: [ClientConfigurationsProperty]
clientConfigurations = [ClientConfigurationsProperty]
clientConfigurations}
instance ToResourceProperties NfsExportsProperty where
toResourceProperties :: NfsExportsProperty -> ResourceProperties
toResourceProperties NfsExportsProperty {[ClientConfigurationsProperty]
()
haddock_workaround_ :: NfsExportsProperty -> ()
clientConfigurations :: NfsExportsProperty -> [ClientConfigurationsProperty]
haddock_workaround_ :: ()
clientConfigurations :: [ClientConfigurationsProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::FSx::Volume.NfsExports",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"ClientConfigurations" Key -> [ClientConfigurationsProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [ClientConfigurationsProperty]
clientConfigurations]}
instance JSON.ToJSON NfsExportsProperty where
toJSON :: NfsExportsProperty -> Value
toJSON NfsExportsProperty {[ClientConfigurationsProperty]
()
haddock_workaround_ :: NfsExportsProperty -> ()
clientConfigurations :: NfsExportsProperty -> [ClientConfigurationsProperty]
haddock_workaround_ :: ()
clientConfigurations :: [ClientConfigurationsProperty]
..}
= [(Key, Value)] -> Value
JSON.object [Key
"ClientConfigurations" Key -> [ClientConfigurationsProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [ClientConfigurationsProperty]
clientConfigurations]
instance Property "ClientConfigurations" NfsExportsProperty where
type PropertyType "ClientConfigurations" NfsExportsProperty = [ClientConfigurationsProperty]
set :: PropertyType "ClientConfigurations" NfsExportsProperty
-> NfsExportsProperty -> NfsExportsProperty
set PropertyType "ClientConfigurations" NfsExportsProperty
newValue NfsExportsProperty {[ClientConfigurationsProperty]
()
haddock_workaround_ :: NfsExportsProperty -> ()
clientConfigurations :: NfsExportsProperty -> [ClientConfigurationsProperty]
haddock_workaround_ :: ()
clientConfigurations :: [ClientConfigurationsProperty]
..}
= NfsExportsProperty {clientConfigurations :: [ClientConfigurationsProperty]
clientConfigurations = [ClientConfigurationsProperty]
PropertyType "ClientConfigurations" NfsExportsProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}