amazonka-fsx-2.0: gen/Amazonka/FSx/Types/UpdateFileSystemOntapConfiguration.hs
{-# 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.UpdateFileSystemOntapConfiguration
-- 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.UpdateFileSystemOntapConfiguration 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 qualified Amazonka.Prelude as Prelude
-- | The configuration updates for an Amazon FSx for NetApp ONTAP file
-- system.
--
-- /See:/ 'newUpdateFileSystemOntapConfiguration' smart constructor.
data UpdateFileSystemOntapConfiguration = UpdateFileSystemOntapConfiguration'
{ -- | (Multi-AZ only) A list of IDs of new virtual private cloud (VPC) route
-- tables to associate (add) with your Amazon FSx for NetApp ONTAP file
-- system.
addRouteTableIds :: Prelude.Maybe [Prelude.Text],
automaticBackupRetentionDays :: Prelude.Maybe Prelude.Natural,
dailyAutomaticBackupStartTime :: Prelude.Maybe Prelude.Text,
-- | The SSD IOPS (input\/output operations per second) configuration for an
-- Amazon FSx for NetApp ONTAP file system. The default is 3 IOPS per GB of
-- storage capacity, but you can provision additional IOPS per GB of
-- storage. The configuration consists of an IOPS mode (@AUTOMATIC@ or
-- @USER_PROVISIONED@), and in the case of @USER_PROVISIONED@ IOPS, the
-- total number of SSD IOPS provisioned.
diskIopsConfiguration :: Prelude.Maybe DiskIopsConfiguration,
-- | The ONTAP administrative password for the @fsxadmin@ user.
fsxAdminPassword :: Prelude.Maybe (Data.Sensitive Prelude.Text),
-- | (Multi-AZ only) A list of IDs of existing virtual private cloud (VPC)
-- route tables to disassociate (remove) from your Amazon FSx for NetApp
-- ONTAP file system. You can use the API operation to retrieve the list of
-- VPC route table IDs for a file system.
removeRouteTableIds :: Prelude.Maybe [Prelude.Text],
-- | Specifies the throughput of an FSx for NetApp ONTAP file system,
-- measured in megabytes per second (MBps). Valid values are 128, 256, 512,
-- 1024, 2048, and 4096 MBps.
throughputCapacity :: Prelude.Maybe Prelude.Natural,
weeklyMaintenanceStartTime :: Prelude.Maybe Prelude.Text
}
deriving (Prelude.Eq, Prelude.Show, Prelude.Generic)
-- |
-- Create a value of 'UpdateFileSystemOntapConfiguration' 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:
--
-- 'addRouteTableIds', 'updateFileSystemOntapConfiguration_addRouteTableIds' - (Multi-AZ only) A list of IDs of new virtual private cloud (VPC) route
-- tables to associate (add) with your Amazon FSx for NetApp ONTAP file
-- system.
--
-- 'automaticBackupRetentionDays', 'updateFileSystemOntapConfiguration_automaticBackupRetentionDays' - Undocumented member.
--
-- 'dailyAutomaticBackupStartTime', 'updateFileSystemOntapConfiguration_dailyAutomaticBackupStartTime' - Undocumented member.
--
-- 'diskIopsConfiguration', 'updateFileSystemOntapConfiguration_diskIopsConfiguration' - The SSD IOPS (input\/output operations per second) configuration for an
-- Amazon FSx for NetApp ONTAP file system. The default is 3 IOPS per GB of
-- storage capacity, but you can provision additional IOPS per GB of
-- storage. The configuration consists of an IOPS mode (@AUTOMATIC@ or
-- @USER_PROVISIONED@), and in the case of @USER_PROVISIONED@ IOPS, the
-- total number of SSD IOPS provisioned.
--
-- 'fsxAdminPassword', 'updateFileSystemOntapConfiguration_fsxAdminPassword' - The ONTAP administrative password for the @fsxadmin@ user.
--
-- 'removeRouteTableIds', 'updateFileSystemOntapConfiguration_removeRouteTableIds' - (Multi-AZ only) A list of IDs of existing virtual private cloud (VPC)
-- route tables to disassociate (remove) from your Amazon FSx for NetApp
-- ONTAP file system. You can use the API operation to retrieve the list of
-- VPC route table IDs for a file system.
--
-- 'throughputCapacity', 'updateFileSystemOntapConfiguration_throughputCapacity' - Specifies the throughput of an FSx for NetApp ONTAP file system,
-- measured in megabytes per second (MBps). Valid values are 128, 256, 512,
-- 1024, 2048, and 4096 MBps.
--
-- 'weeklyMaintenanceStartTime', 'updateFileSystemOntapConfiguration_weeklyMaintenanceStartTime' - Undocumented member.
newUpdateFileSystemOntapConfiguration ::
UpdateFileSystemOntapConfiguration
newUpdateFileSystemOntapConfiguration =
UpdateFileSystemOntapConfiguration'
{ addRouteTableIds =
Prelude.Nothing,
automaticBackupRetentionDays =
Prelude.Nothing,
dailyAutomaticBackupStartTime =
Prelude.Nothing,
diskIopsConfiguration = Prelude.Nothing,
fsxAdminPassword = Prelude.Nothing,
removeRouteTableIds = Prelude.Nothing,
throughputCapacity = Prelude.Nothing,
weeklyMaintenanceStartTime =
Prelude.Nothing
}
-- | (Multi-AZ only) A list of IDs of new virtual private cloud (VPC) route
-- tables to associate (add) with your Amazon FSx for NetApp ONTAP file
-- system.
updateFileSystemOntapConfiguration_addRouteTableIds :: Lens.Lens' UpdateFileSystemOntapConfiguration (Prelude.Maybe [Prelude.Text])
updateFileSystemOntapConfiguration_addRouteTableIds = Lens.lens (\UpdateFileSystemOntapConfiguration' {addRouteTableIds} -> addRouteTableIds) (\s@UpdateFileSystemOntapConfiguration' {} a -> s {addRouteTableIds = a} :: UpdateFileSystemOntapConfiguration) Prelude.. Lens.mapping Lens.coerced
-- | Undocumented member.
updateFileSystemOntapConfiguration_automaticBackupRetentionDays :: Lens.Lens' UpdateFileSystemOntapConfiguration (Prelude.Maybe Prelude.Natural)
updateFileSystemOntapConfiguration_automaticBackupRetentionDays = Lens.lens (\UpdateFileSystemOntapConfiguration' {automaticBackupRetentionDays} -> automaticBackupRetentionDays) (\s@UpdateFileSystemOntapConfiguration' {} a -> s {automaticBackupRetentionDays = a} :: UpdateFileSystemOntapConfiguration)
-- | Undocumented member.
updateFileSystemOntapConfiguration_dailyAutomaticBackupStartTime :: Lens.Lens' UpdateFileSystemOntapConfiguration (Prelude.Maybe Prelude.Text)
updateFileSystemOntapConfiguration_dailyAutomaticBackupStartTime = Lens.lens (\UpdateFileSystemOntapConfiguration' {dailyAutomaticBackupStartTime} -> dailyAutomaticBackupStartTime) (\s@UpdateFileSystemOntapConfiguration' {} a -> s {dailyAutomaticBackupStartTime = a} :: UpdateFileSystemOntapConfiguration)
-- | The SSD IOPS (input\/output operations per second) configuration for an
-- Amazon FSx for NetApp ONTAP file system. The default is 3 IOPS per GB of
-- storage capacity, but you can provision additional IOPS per GB of
-- storage. The configuration consists of an IOPS mode (@AUTOMATIC@ or
-- @USER_PROVISIONED@), and in the case of @USER_PROVISIONED@ IOPS, the
-- total number of SSD IOPS provisioned.
updateFileSystemOntapConfiguration_diskIopsConfiguration :: Lens.Lens' UpdateFileSystemOntapConfiguration (Prelude.Maybe DiskIopsConfiguration)
updateFileSystemOntapConfiguration_diskIopsConfiguration = Lens.lens (\UpdateFileSystemOntapConfiguration' {diskIopsConfiguration} -> diskIopsConfiguration) (\s@UpdateFileSystemOntapConfiguration' {} a -> s {diskIopsConfiguration = a} :: UpdateFileSystemOntapConfiguration)
-- | The ONTAP administrative password for the @fsxadmin@ user.
updateFileSystemOntapConfiguration_fsxAdminPassword :: Lens.Lens' UpdateFileSystemOntapConfiguration (Prelude.Maybe Prelude.Text)
updateFileSystemOntapConfiguration_fsxAdminPassword = Lens.lens (\UpdateFileSystemOntapConfiguration' {fsxAdminPassword} -> fsxAdminPassword) (\s@UpdateFileSystemOntapConfiguration' {} a -> s {fsxAdminPassword = a} :: UpdateFileSystemOntapConfiguration) Prelude.. Lens.mapping Data._Sensitive
-- | (Multi-AZ only) A list of IDs of existing virtual private cloud (VPC)
-- route tables to disassociate (remove) from your Amazon FSx for NetApp
-- ONTAP file system. You can use the API operation to retrieve the list of
-- VPC route table IDs for a file system.
updateFileSystemOntapConfiguration_removeRouteTableIds :: Lens.Lens' UpdateFileSystemOntapConfiguration (Prelude.Maybe [Prelude.Text])
updateFileSystemOntapConfiguration_removeRouteTableIds = Lens.lens (\UpdateFileSystemOntapConfiguration' {removeRouteTableIds} -> removeRouteTableIds) (\s@UpdateFileSystemOntapConfiguration' {} a -> s {removeRouteTableIds = a} :: UpdateFileSystemOntapConfiguration) Prelude.. Lens.mapping Lens.coerced
-- | Specifies the throughput of an FSx for NetApp ONTAP file system,
-- measured in megabytes per second (MBps). Valid values are 128, 256, 512,
-- 1024, 2048, and 4096 MBps.
updateFileSystemOntapConfiguration_throughputCapacity :: Lens.Lens' UpdateFileSystemOntapConfiguration (Prelude.Maybe Prelude.Natural)
updateFileSystemOntapConfiguration_throughputCapacity = Lens.lens (\UpdateFileSystemOntapConfiguration' {throughputCapacity} -> throughputCapacity) (\s@UpdateFileSystemOntapConfiguration' {} a -> s {throughputCapacity = a} :: UpdateFileSystemOntapConfiguration)
-- | Undocumented member.
updateFileSystemOntapConfiguration_weeklyMaintenanceStartTime :: Lens.Lens' UpdateFileSystemOntapConfiguration (Prelude.Maybe Prelude.Text)
updateFileSystemOntapConfiguration_weeklyMaintenanceStartTime = Lens.lens (\UpdateFileSystemOntapConfiguration' {weeklyMaintenanceStartTime} -> weeklyMaintenanceStartTime) (\s@UpdateFileSystemOntapConfiguration' {} a -> s {weeklyMaintenanceStartTime = a} :: UpdateFileSystemOntapConfiguration)
instance
Prelude.Hashable
UpdateFileSystemOntapConfiguration
where
hashWithSalt
_salt
UpdateFileSystemOntapConfiguration' {..} =
_salt
`Prelude.hashWithSalt` addRouteTableIds
`Prelude.hashWithSalt` automaticBackupRetentionDays
`Prelude.hashWithSalt` dailyAutomaticBackupStartTime
`Prelude.hashWithSalt` diskIopsConfiguration
`Prelude.hashWithSalt` fsxAdminPassword
`Prelude.hashWithSalt` removeRouteTableIds
`Prelude.hashWithSalt` throughputCapacity
`Prelude.hashWithSalt` weeklyMaintenanceStartTime
instance
Prelude.NFData
UpdateFileSystemOntapConfiguration
where
rnf UpdateFileSystemOntapConfiguration' {..} =
Prelude.rnf addRouteTableIds
`Prelude.seq` Prelude.rnf automaticBackupRetentionDays
`Prelude.seq` Prelude.rnf dailyAutomaticBackupStartTime
`Prelude.seq` Prelude.rnf diskIopsConfiguration
`Prelude.seq` Prelude.rnf fsxAdminPassword
`Prelude.seq` Prelude.rnf removeRouteTableIds
`Prelude.seq` Prelude.rnf throughputCapacity
`Prelude.seq` Prelude.rnf weeklyMaintenanceStartTime
instance
Data.ToJSON
UpdateFileSystemOntapConfiguration
where
toJSON UpdateFileSystemOntapConfiguration' {..} =
Data.object
( Prelude.catMaybes
[ ("AddRouteTableIds" Data..=)
Prelude.<$> addRouteTableIds,
("AutomaticBackupRetentionDays" Data..=)
Prelude.<$> automaticBackupRetentionDays,
("DailyAutomaticBackupStartTime" Data..=)
Prelude.<$> dailyAutomaticBackupStartTime,
("DiskIopsConfiguration" Data..=)
Prelude.<$> diskIopsConfiguration,
("FsxAdminPassword" Data..=)
Prelude.<$> fsxAdminPassword,
("RemoveRouteTableIds" Data..=)
Prelude.<$> removeRouteTableIds,
("ThroughputCapacity" Data..=)
Prelude.<$> throughputCapacity,
("WeeklyMaintenanceStartTime" Data..=)
Prelude.<$> weeklyMaintenanceStartTime
]
)