{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.FSx.Types.CreateFileSystemOntapConfiguration
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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

-- | The ONTAP configuration properties of the FSx for ONTAP file system that
-- you are creating.
--
-- /See:/ 'newCreateFileSystemOntapConfiguration' smart constructor.
data CreateFileSystemOntapConfiguration = CreateFileSystemOntapConfiguration'
  { CreateFileSystemOntapConfiguration -> Maybe Natural
automaticBackupRetentionDays :: Prelude.Maybe Prelude.Natural,
    CreateFileSystemOntapConfiguration -> Maybe Text
dailyAutomaticBackupStartTime :: Prelude.Maybe Prelude.Text,
    -- | The SSD IOPS configuration for the FSx for ONTAP file system.
    CreateFileSystemOntapConfiguration -> Maybe DiskIopsConfiguration
diskIopsConfiguration :: Prelude.Maybe DiskIopsConfiguration,
    -- | (Multi-AZ only) Specifies the IP address range in which the endpoints to
    -- access your file system will be created. By default in the Amazon FSx
    -- API, Amazon FSx selects an unused IP address range for you from the
    -- 198.19.* range. By default in the Amazon FSx console, Amazon FSx chooses
    -- the last 64 IP addresses from the VPC’s primary CIDR range to use as the
    -- endpoint IP address range for the file system. You can have overlapping
    -- endpoint IP addresses for file systems deployed in the same VPC\/route
    -- tables.
    CreateFileSystemOntapConfiguration -> Maybe Text
endpointIpAddressRange :: Prelude.Maybe Prelude.Text,
    -- | The ONTAP administrative password for the @fsxadmin@ user with which you
    -- administer your file system using the NetApp ONTAP CLI and REST API.
    CreateFileSystemOntapConfiguration -> Maybe (Sensitive Text)
fsxAdminPassword :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | Required when @DeploymentType@ is set to @MULTI_AZ_1@. This specifies
    -- the subnet in which you want the preferred file server to be located.
    CreateFileSystemOntapConfiguration -> Maybe Text
preferredSubnetId :: Prelude.Maybe Prelude.Text,
    -- | (Multi-AZ only) Specifies the virtual private cloud (VPC) route tables
    -- in which your file system\'s endpoints will be created. You should
    -- specify all VPC route tables associated with the subnets in which your
    -- clients are located. By default, Amazon FSx selects your VPC\'s default
    -- route table.
    CreateFileSystemOntapConfiguration -> Maybe [Text]
routeTableIds :: Prelude.Maybe [Prelude.Text],
    CreateFileSystemOntapConfiguration -> Maybe Text
weeklyMaintenanceStartTime :: Prelude.Maybe Prelude.Text,
    -- | Specifies the FSx for ONTAP file system deployment type to use in
    -- creating the file system.
    --
    -- -   @MULTI_AZ_1@ - (Default) A high availability file system configured
    --     for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ)
    --     unavailability.
    --
    -- -   @SINGLE_AZ_1@ - A file system configured for Single-AZ redundancy.
    --
    -- For information about the use cases for Multi-AZ and Single-AZ
    -- deployments, refer to
    -- <https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/high-availability-AZ.html Choosing a file system deployment type>.
    CreateFileSystemOntapConfiguration -> OntapDeploymentType
deploymentType :: OntapDeploymentType,
    -- | Sets the throughput capacity for the file system that you\'re creating.
    -- Valid values are 128, 256, 512, 1024, 2048, and 4096 MBps.
    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)

-- |
-- Create a value of 'CreateFileSystemOntapConfiguration' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'automaticBackupRetentionDays', 'createFileSystemOntapConfiguration_automaticBackupRetentionDays' - Undocumented member.
--
-- 'dailyAutomaticBackupStartTime', 'createFileSystemOntapConfiguration_dailyAutomaticBackupStartTime' - Undocumented member.
--
-- 'diskIopsConfiguration', 'createFileSystemOntapConfiguration_diskIopsConfiguration' - The SSD IOPS configuration for the FSx for ONTAP file system.
--
-- 'endpointIpAddressRange', 'createFileSystemOntapConfiguration_endpointIpAddressRange' - (Multi-AZ only) Specifies the IP address range in which the endpoints to
-- access your file system will be created. By default in the Amazon FSx
-- API, Amazon FSx selects an unused IP address range for you from the
-- 198.19.* range. By default in the Amazon FSx console, Amazon FSx chooses
-- the last 64 IP addresses from the VPC’s primary CIDR range to use as the
-- endpoint IP address range for the file system. You can have overlapping
-- endpoint IP addresses for file systems deployed in the same VPC\/route
-- tables.
--
-- 'fsxAdminPassword', 'createFileSystemOntapConfiguration_fsxAdminPassword' - The ONTAP administrative password for the @fsxadmin@ user with which you
-- administer your file system using the NetApp ONTAP CLI and REST API.
--
-- 'preferredSubnetId', 'createFileSystemOntapConfiguration_preferredSubnetId' - Required when @DeploymentType@ is set to @MULTI_AZ_1@. This specifies
-- the subnet in which you want the preferred file server to be located.
--
-- 'routeTableIds', 'createFileSystemOntapConfiguration_routeTableIds' - (Multi-AZ only) Specifies the virtual private cloud (VPC) route tables
-- in which your file system\'s endpoints will be created. You should
-- specify all VPC route tables associated with the subnets in which your
-- clients are located. By default, Amazon FSx selects your VPC\'s default
-- route table.
--
-- 'weeklyMaintenanceStartTime', 'createFileSystemOntapConfiguration_weeklyMaintenanceStartTime' - Undocumented member.
--
-- 'deploymentType', 'createFileSystemOntapConfiguration_deploymentType' - Specifies the FSx for ONTAP file system deployment type to use in
-- creating the file system.
--
-- -   @MULTI_AZ_1@ - (Default) A high availability file system configured
--     for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ)
--     unavailability.
--
-- -   @SINGLE_AZ_1@ - A file system configured for Single-AZ redundancy.
--
-- For information about the use cases for Multi-AZ and Single-AZ
-- deployments, refer to
-- <https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/high-availability-AZ.html Choosing a file system deployment type>.
--
-- 'throughputCapacity', 'createFileSystemOntapConfiguration_throughputCapacity' - Sets the throughput capacity for the file system that you\'re creating.
-- Valid values are 128, 256, 512, 1024, 2048, and 4096 MBps.
newCreateFileSystemOntapConfiguration ::
  -- | 'deploymentType'
  OntapDeploymentType ->
  -- | 'throughputCapacity'
  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_
      }

-- | Undocumented member.
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)

-- | Undocumented member.
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)

-- | The SSD IOPS configuration for the FSx for ONTAP file system.
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)

-- | (Multi-AZ only) Specifies the IP address range in which the endpoints to
-- access your file system will be created. By default in the Amazon FSx
-- API, Amazon FSx selects an unused IP address range for you from the
-- 198.19.* range. By default in the Amazon FSx console, Amazon FSx chooses
-- the last 64 IP addresses from the VPC’s primary CIDR range to use as the
-- endpoint IP address range for the file system. You can have overlapping
-- endpoint IP addresses for file systems deployed in the same VPC\/route
-- tables.
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)

-- | The ONTAP administrative password for the @fsxadmin@ user with which you
-- administer your file system using the NetApp ONTAP CLI and REST API.
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

-- | Required when @DeploymentType@ is set to @MULTI_AZ_1@. This specifies
-- the subnet in which you want the preferred file server to be located.
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)

-- | (Multi-AZ only) Specifies the virtual private cloud (VPC) route tables
-- in which your file system\'s endpoints will be created. You should
-- specify all VPC route tables associated with the subnets in which your
-- clients are located. By default, Amazon FSx selects your VPC\'s default
-- route table.
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

-- | Undocumented member.
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)

-- | Specifies the FSx for ONTAP file system deployment type to use in
-- creating the file system.
--
-- -   @MULTI_AZ_1@ - (Default) A high availability file system configured
--     for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ)
--     unavailability.
--
-- -   @SINGLE_AZ_1@ - A file system configured for Single-AZ redundancy.
--
-- For information about the use cases for Multi-AZ and Single-AZ
-- deployments, refer to
-- <https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/high-availability-AZ.html Choosing a file system deployment type>.
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)

-- | Sets the throughput capacity for the file system that you\'re creating.
-- Valid values are 128, 256, 512, 1024, 2048, and 4096 MBps.
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)
          ]
      )