{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.FSx.Types.CreateFileSystemOntapConfiguration where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.FSx.Types.DiskIopsConfiguration
import Amazonka.FSx.Types.OntapDeploymentType
import qualified Amazonka.Prelude as Prelude
data CreateFileSystemOntapConfiguration = CreateFileSystemOntapConfiguration'
{ CreateFileSystemOntapConfiguration -> Maybe Natural
automaticBackupRetentionDays :: Prelude.Maybe Prelude.Natural,
CreateFileSystemOntapConfiguration -> Maybe Text
dailyAutomaticBackupStartTime :: Prelude.Maybe Prelude.Text,
CreateFileSystemOntapConfiguration -> Maybe DiskIopsConfiguration
diskIopsConfiguration :: Prelude.Maybe DiskIopsConfiguration,
CreateFileSystemOntapConfiguration -> Maybe Text
endpointIpAddressRange :: Prelude.Maybe Prelude.Text,
CreateFileSystemOntapConfiguration -> Maybe (Sensitive Text)
fsxAdminPassword :: Prelude.Maybe (Data.Sensitive Prelude.Text),
CreateFileSystemOntapConfiguration -> Maybe Text
preferredSubnetId :: Prelude.Maybe Prelude.Text,
CreateFileSystemOntapConfiguration -> Maybe [Text]
routeTableIds :: Prelude.Maybe [Prelude.Text],
CreateFileSystemOntapConfiguration -> Maybe Text
weeklyMaintenanceStartTime :: Prelude.Maybe Prelude.Text,
CreateFileSystemOntapConfiguration -> OntapDeploymentType
deploymentType :: OntapDeploymentType,
CreateFileSystemOntapConfiguration -> Natural
throughputCapacity :: Prelude.Natural
}
deriving (CreateFileSystemOntapConfiguration
-> CreateFileSystemOntapConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateFileSystemOntapConfiguration
-> CreateFileSystemOntapConfiguration -> Bool
$c/= :: CreateFileSystemOntapConfiguration
-> CreateFileSystemOntapConfiguration -> Bool
== :: CreateFileSystemOntapConfiguration
-> CreateFileSystemOntapConfiguration -> Bool
$c== :: CreateFileSystemOntapConfiguration
-> CreateFileSystemOntapConfiguration -> Bool
Prelude.Eq, Int -> CreateFileSystemOntapConfiguration -> ShowS
[CreateFileSystemOntapConfiguration] -> ShowS
CreateFileSystemOntapConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateFileSystemOntapConfiguration] -> ShowS
$cshowList :: [CreateFileSystemOntapConfiguration] -> ShowS
show :: CreateFileSystemOntapConfiguration -> String
$cshow :: CreateFileSystemOntapConfiguration -> String
showsPrec :: Int -> CreateFileSystemOntapConfiguration -> ShowS
$cshowsPrec :: Int -> CreateFileSystemOntapConfiguration -> ShowS
Prelude.Show, forall x.
Rep CreateFileSystemOntapConfiguration x
-> CreateFileSystemOntapConfiguration
forall x.
CreateFileSystemOntapConfiguration
-> Rep CreateFileSystemOntapConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateFileSystemOntapConfiguration x
-> CreateFileSystemOntapConfiguration
$cfrom :: forall x.
CreateFileSystemOntapConfiguration
-> Rep CreateFileSystemOntapConfiguration x
Prelude.Generic)
newCreateFileSystemOntapConfiguration ::
OntapDeploymentType ->
Prelude.Natural ->
CreateFileSystemOntapConfiguration
newCreateFileSystemOntapConfiguration :: OntapDeploymentType
-> Natural -> CreateFileSystemOntapConfiguration
newCreateFileSystemOntapConfiguration
OntapDeploymentType
pDeploymentType_
Natural
pThroughputCapacity_ =
CreateFileSystemOntapConfiguration'
{ $sel:automaticBackupRetentionDays:CreateFileSystemOntapConfiguration' :: Maybe Natural
automaticBackupRetentionDays =
forall a. Maybe a
Prelude.Nothing,
$sel:dailyAutomaticBackupStartTime:CreateFileSystemOntapConfiguration' :: Maybe Text
dailyAutomaticBackupStartTime =
forall a. Maybe a
Prelude.Nothing,
$sel:diskIopsConfiguration:CreateFileSystemOntapConfiguration' :: Maybe DiskIopsConfiguration
diskIopsConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:endpointIpAddressRange:CreateFileSystemOntapConfiguration' :: Maybe Text
endpointIpAddressRange =
forall a. Maybe a
Prelude.Nothing,
$sel:fsxAdminPassword:CreateFileSystemOntapConfiguration' :: Maybe (Sensitive Text)
fsxAdminPassword = forall a. Maybe a
Prelude.Nothing,
$sel:preferredSubnetId:CreateFileSystemOntapConfiguration' :: Maybe Text
preferredSubnetId = forall a. Maybe a
Prelude.Nothing,
$sel:routeTableIds:CreateFileSystemOntapConfiguration' :: Maybe [Text]
routeTableIds = forall a. Maybe a
Prelude.Nothing,
$sel:weeklyMaintenanceStartTime:CreateFileSystemOntapConfiguration' :: Maybe Text
weeklyMaintenanceStartTime =
forall a. Maybe a
Prelude.Nothing,
$sel:deploymentType:CreateFileSystemOntapConfiguration' :: OntapDeploymentType
deploymentType = OntapDeploymentType
pDeploymentType_,
$sel:throughputCapacity:CreateFileSystemOntapConfiguration' :: Natural
throughputCapacity =
Natural
pThroughputCapacity_
}
createFileSystemOntapConfiguration_automaticBackupRetentionDays :: Lens.Lens' CreateFileSystemOntapConfiguration (Prelude.Maybe Prelude.Natural)
createFileSystemOntapConfiguration_automaticBackupRetentionDays :: Lens' CreateFileSystemOntapConfiguration (Maybe Natural)
createFileSystemOntapConfiguration_automaticBackupRetentionDays = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFileSystemOntapConfiguration' {Maybe Natural
automaticBackupRetentionDays :: Maybe Natural
$sel:automaticBackupRetentionDays:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Natural
automaticBackupRetentionDays} -> Maybe Natural
automaticBackupRetentionDays) (\s :: CreateFileSystemOntapConfiguration
s@CreateFileSystemOntapConfiguration' {} Maybe Natural
a -> CreateFileSystemOntapConfiguration
s {$sel:automaticBackupRetentionDays:CreateFileSystemOntapConfiguration' :: Maybe Natural
automaticBackupRetentionDays = Maybe Natural
a} :: CreateFileSystemOntapConfiguration)
createFileSystemOntapConfiguration_dailyAutomaticBackupStartTime :: Lens.Lens' CreateFileSystemOntapConfiguration (Prelude.Maybe Prelude.Text)
createFileSystemOntapConfiguration_dailyAutomaticBackupStartTime :: Lens' CreateFileSystemOntapConfiguration (Maybe Text)
createFileSystemOntapConfiguration_dailyAutomaticBackupStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFileSystemOntapConfiguration' {Maybe Text
dailyAutomaticBackupStartTime :: Maybe Text
$sel:dailyAutomaticBackupStartTime:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
dailyAutomaticBackupStartTime} -> Maybe Text
dailyAutomaticBackupStartTime) (\s :: CreateFileSystemOntapConfiguration
s@CreateFileSystemOntapConfiguration' {} Maybe Text
a -> CreateFileSystemOntapConfiguration
s {$sel:dailyAutomaticBackupStartTime:CreateFileSystemOntapConfiguration' :: Maybe Text
dailyAutomaticBackupStartTime = Maybe Text
a} :: CreateFileSystemOntapConfiguration)
createFileSystemOntapConfiguration_diskIopsConfiguration :: Lens.Lens' CreateFileSystemOntapConfiguration (Prelude.Maybe DiskIopsConfiguration)
createFileSystemOntapConfiguration_diskIopsConfiguration :: Lens'
CreateFileSystemOntapConfiguration (Maybe DiskIopsConfiguration)
createFileSystemOntapConfiguration_diskIopsConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFileSystemOntapConfiguration' {Maybe DiskIopsConfiguration
diskIopsConfiguration :: Maybe DiskIopsConfiguration
$sel:diskIopsConfiguration:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe DiskIopsConfiguration
diskIopsConfiguration} -> Maybe DiskIopsConfiguration
diskIopsConfiguration) (\s :: CreateFileSystemOntapConfiguration
s@CreateFileSystemOntapConfiguration' {} Maybe DiskIopsConfiguration
a -> CreateFileSystemOntapConfiguration
s {$sel:diskIopsConfiguration:CreateFileSystemOntapConfiguration' :: Maybe DiskIopsConfiguration
diskIopsConfiguration = Maybe DiskIopsConfiguration
a} :: CreateFileSystemOntapConfiguration)
createFileSystemOntapConfiguration_endpointIpAddressRange :: Lens.Lens' CreateFileSystemOntapConfiguration (Prelude.Maybe Prelude.Text)
createFileSystemOntapConfiguration_endpointIpAddressRange :: Lens' CreateFileSystemOntapConfiguration (Maybe Text)
createFileSystemOntapConfiguration_endpointIpAddressRange = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFileSystemOntapConfiguration' {Maybe Text
endpointIpAddressRange :: Maybe Text
$sel:endpointIpAddressRange:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
endpointIpAddressRange} -> Maybe Text
endpointIpAddressRange) (\s :: CreateFileSystemOntapConfiguration
s@CreateFileSystemOntapConfiguration' {} Maybe Text
a -> CreateFileSystemOntapConfiguration
s {$sel:endpointIpAddressRange:CreateFileSystemOntapConfiguration' :: Maybe Text
endpointIpAddressRange = Maybe Text
a} :: CreateFileSystemOntapConfiguration)
createFileSystemOntapConfiguration_fsxAdminPassword :: Lens.Lens' CreateFileSystemOntapConfiguration (Prelude.Maybe Prelude.Text)
createFileSystemOntapConfiguration_fsxAdminPassword :: Lens' CreateFileSystemOntapConfiguration (Maybe Text)
createFileSystemOntapConfiguration_fsxAdminPassword = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFileSystemOntapConfiguration' {Maybe (Sensitive Text)
fsxAdminPassword :: Maybe (Sensitive Text)
$sel:fsxAdminPassword:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe (Sensitive Text)
fsxAdminPassword} -> Maybe (Sensitive Text)
fsxAdminPassword) (\s :: CreateFileSystemOntapConfiguration
s@CreateFileSystemOntapConfiguration' {} Maybe (Sensitive Text)
a -> CreateFileSystemOntapConfiguration
s {$sel:fsxAdminPassword:CreateFileSystemOntapConfiguration' :: Maybe (Sensitive Text)
fsxAdminPassword = Maybe (Sensitive Text)
a} :: CreateFileSystemOntapConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall a. Iso' (Sensitive a) a
Data._Sensitive
createFileSystemOntapConfiguration_preferredSubnetId :: Lens.Lens' CreateFileSystemOntapConfiguration (Prelude.Maybe Prelude.Text)
createFileSystemOntapConfiguration_preferredSubnetId :: Lens' CreateFileSystemOntapConfiguration (Maybe Text)
createFileSystemOntapConfiguration_preferredSubnetId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFileSystemOntapConfiguration' {Maybe Text
preferredSubnetId :: Maybe Text
$sel:preferredSubnetId:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
preferredSubnetId} -> Maybe Text
preferredSubnetId) (\s :: CreateFileSystemOntapConfiguration
s@CreateFileSystemOntapConfiguration' {} Maybe Text
a -> CreateFileSystemOntapConfiguration
s {$sel:preferredSubnetId:CreateFileSystemOntapConfiguration' :: Maybe Text
preferredSubnetId = Maybe Text
a} :: CreateFileSystemOntapConfiguration)
createFileSystemOntapConfiguration_routeTableIds :: Lens.Lens' CreateFileSystemOntapConfiguration (Prelude.Maybe [Prelude.Text])
createFileSystemOntapConfiguration_routeTableIds :: Lens' CreateFileSystemOntapConfiguration (Maybe [Text])
createFileSystemOntapConfiguration_routeTableIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFileSystemOntapConfiguration' {Maybe [Text]
routeTableIds :: Maybe [Text]
$sel:routeTableIds:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe [Text]
routeTableIds} -> Maybe [Text]
routeTableIds) (\s :: CreateFileSystemOntapConfiguration
s@CreateFileSystemOntapConfiguration' {} Maybe [Text]
a -> CreateFileSystemOntapConfiguration
s {$sel:routeTableIds:CreateFileSystemOntapConfiguration' :: Maybe [Text]
routeTableIds = Maybe [Text]
a} :: CreateFileSystemOntapConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createFileSystemOntapConfiguration_weeklyMaintenanceStartTime :: Lens.Lens' CreateFileSystemOntapConfiguration (Prelude.Maybe Prelude.Text)
createFileSystemOntapConfiguration_weeklyMaintenanceStartTime :: Lens' CreateFileSystemOntapConfiguration (Maybe Text)
createFileSystemOntapConfiguration_weeklyMaintenanceStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFileSystemOntapConfiguration' {Maybe Text
weeklyMaintenanceStartTime :: Maybe Text
$sel:weeklyMaintenanceStartTime:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
weeklyMaintenanceStartTime} -> Maybe Text
weeklyMaintenanceStartTime) (\s :: CreateFileSystemOntapConfiguration
s@CreateFileSystemOntapConfiguration' {} Maybe Text
a -> CreateFileSystemOntapConfiguration
s {$sel:weeklyMaintenanceStartTime:CreateFileSystemOntapConfiguration' :: Maybe Text
weeklyMaintenanceStartTime = Maybe Text
a} :: CreateFileSystemOntapConfiguration)
createFileSystemOntapConfiguration_deploymentType :: Lens.Lens' CreateFileSystemOntapConfiguration OntapDeploymentType
createFileSystemOntapConfiguration_deploymentType :: Lens' CreateFileSystemOntapConfiguration OntapDeploymentType
createFileSystemOntapConfiguration_deploymentType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFileSystemOntapConfiguration' {OntapDeploymentType
deploymentType :: OntapDeploymentType
$sel:deploymentType:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> OntapDeploymentType
deploymentType} -> OntapDeploymentType
deploymentType) (\s :: CreateFileSystemOntapConfiguration
s@CreateFileSystemOntapConfiguration' {} OntapDeploymentType
a -> CreateFileSystemOntapConfiguration
s {$sel:deploymentType:CreateFileSystemOntapConfiguration' :: OntapDeploymentType
deploymentType = OntapDeploymentType
a} :: CreateFileSystemOntapConfiguration)
createFileSystemOntapConfiguration_throughputCapacity :: Lens.Lens' CreateFileSystemOntapConfiguration Prelude.Natural
createFileSystemOntapConfiguration_throughputCapacity :: Lens' CreateFileSystemOntapConfiguration Natural
createFileSystemOntapConfiguration_throughputCapacity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFileSystemOntapConfiguration' {Natural
throughputCapacity :: Natural
$sel:throughputCapacity:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Natural
throughputCapacity} -> Natural
throughputCapacity) (\s :: CreateFileSystemOntapConfiguration
s@CreateFileSystemOntapConfiguration' {} Natural
a -> CreateFileSystemOntapConfiguration
s {$sel:throughputCapacity:CreateFileSystemOntapConfiguration' :: Natural
throughputCapacity = Natural
a} :: CreateFileSystemOntapConfiguration)
instance
Prelude.Hashable
CreateFileSystemOntapConfiguration
where
hashWithSalt :: Int -> CreateFileSystemOntapConfiguration -> Int
hashWithSalt
Int
_salt
CreateFileSystemOntapConfiguration' {Natural
Maybe Natural
Maybe [Text]
Maybe Text
Maybe (Sensitive Text)
Maybe DiskIopsConfiguration
OntapDeploymentType
throughputCapacity :: Natural
deploymentType :: OntapDeploymentType
weeklyMaintenanceStartTime :: Maybe Text
routeTableIds :: Maybe [Text]
preferredSubnetId :: Maybe Text
fsxAdminPassword :: Maybe (Sensitive Text)
endpointIpAddressRange :: Maybe Text
diskIopsConfiguration :: Maybe DiskIopsConfiguration
dailyAutomaticBackupStartTime :: Maybe Text
automaticBackupRetentionDays :: Maybe Natural
$sel:throughputCapacity:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Natural
$sel:deploymentType:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> OntapDeploymentType
$sel:weeklyMaintenanceStartTime:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
$sel:routeTableIds:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe [Text]
$sel:preferredSubnetId:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
$sel:fsxAdminPassword:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe (Sensitive Text)
$sel:endpointIpAddressRange:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
$sel:diskIopsConfiguration:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe DiskIopsConfiguration
$sel:dailyAutomaticBackupStartTime:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
$sel:automaticBackupRetentionDays:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Natural
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
automaticBackupRetentionDays
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dailyAutomaticBackupStartTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DiskIopsConfiguration
diskIopsConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
endpointIpAddressRange
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
fsxAdminPassword
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
preferredSubnetId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
routeTableIds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
weeklyMaintenanceStartTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` OntapDeploymentType
deploymentType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Natural
throughputCapacity
instance
Prelude.NFData
CreateFileSystemOntapConfiguration
where
rnf :: CreateFileSystemOntapConfiguration -> ()
rnf CreateFileSystemOntapConfiguration' {Natural
Maybe Natural
Maybe [Text]
Maybe Text
Maybe (Sensitive Text)
Maybe DiskIopsConfiguration
OntapDeploymentType
throughputCapacity :: Natural
deploymentType :: OntapDeploymentType
weeklyMaintenanceStartTime :: Maybe Text
routeTableIds :: Maybe [Text]
preferredSubnetId :: Maybe Text
fsxAdminPassword :: Maybe (Sensitive Text)
endpointIpAddressRange :: Maybe Text
diskIopsConfiguration :: Maybe DiskIopsConfiguration
dailyAutomaticBackupStartTime :: Maybe Text
automaticBackupRetentionDays :: Maybe Natural
$sel:throughputCapacity:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Natural
$sel:deploymentType:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> OntapDeploymentType
$sel:weeklyMaintenanceStartTime:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
$sel:routeTableIds:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe [Text]
$sel:preferredSubnetId:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
$sel:fsxAdminPassword:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe (Sensitive Text)
$sel:endpointIpAddressRange:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
$sel:diskIopsConfiguration:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe DiskIopsConfiguration
$sel:dailyAutomaticBackupStartTime:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
$sel:automaticBackupRetentionDays:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Natural
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
automaticBackupRetentionDays
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dailyAutomaticBackupStartTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DiskIopsConfiguration
diskIopsConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
endpointIpAddressRange
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
fsxAdminPassword
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
preferredSubnetId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
routeTableIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
weeklyMaintenanceStartTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf OntapDeploymentType
deploymentType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Natural
throughputCapacity
instance
Data.ToJSON
CreateFileSystemOntapConfiguration
where
toJSON :: CreateFileSystemOntapConfiguration -> Value
toJSON CreateFileSystemOntapConfiguration' {Natural
Maybe Natural
Maybe [Text]
Maybe Text
Maybe (Sensitive Text)
Maybe DiskIopsConfiguration
OntapDeploymentType
throughputCapacity :: Natural
deploymentType :: OntapDeploymentType
weeklyMaintenanceStartTime :: Maybe Text
routeTableIds :: Maybe [Text]
preferredSubnetId :: Maybe Text
fsxAdminPassword :: Maybe (Sensitive Text)
endpointIpAddressRange :: Maybe Text
diskIopsConfiguration :: Maybe DiskIopsConfiguration
dailyAutomaticBackupStartTime :: Maybe Text
automaticBackupRetentionDays :: Maybe Natural
$sel:throughputCapacity:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Natural
$sel:deploymentType:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> OntapDeploymentType
$sel:weeklyMaintenanceStartTime:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
$sel:routeTableIds:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe [Text]
$sel:preferredSubnetId:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
$sel:fsxAdminPassword:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe (Sensitive Text)
$sel:endpointIpAddressRange:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
$sel:diskIopsConfiguration:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe DiskIopsConfiguration
$sel:dailyAutomaticBackupStartTime:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Text
$sel:automaticBackupRetentionDays:CreateFileSystemOntapConfiguration' :: CreateFileSystemOntapConfiguration -> Maybe Natural
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"AutomaticBackupRetentionDays" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
automaticBackupRetentionDays,
(Key
"DailyAutomaticBackupStartTime" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
dailyAutomaticBackupStartTime,
(Key
"DiskIopsConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DiskIopsConfiguration
diskIopsConfiguration,
(Key
"EndpointIpAddressRange" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
endpointIpAddressRange,
(Key
"FsxAdminPassword" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Text)
fsxAdminPassword,
(Key
"PreferredSubnetId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
preferredSubnetId,
(Key
"RouteTableIds" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
routeTableIds,
(Key
"WeeklyMaintenanceStartTime" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
weeklyMaintenanceStartTime,
forall a. a -> Maybe a
Prelude.Just
(Key
"DeploymentType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= OntapDeploymentType
deploymentType),
forall a. a -> Maybe a
Prelude.Just
(Key
"ThroughputCapacity" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Natural
throughputCapacity)
]
)