{-# 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.MQ.Types.BrokerInstanceOption -- 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.MQ.Types.BrokerInstanceOption where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.MQ.Types.AvailabilityZone import Amazonka.MQ.Types.BrokerStorageType import Amazonka.MQ.Types.DeploymentMode import Amazonka.MQ.Types.EngineType import qualified Amazonka.Prelude as Prelude -- | Option for host instance type. -- -- /See:/ 'newBrokerInstanceOption' smart constructor. data BrokerInstanceOption = BrokerInstanceOption' { -- | The list of available az. availabilityZones :: Prelude.Maybe [AvailabilityZone], -- | The broker\'s engine type. engineType :: Prelude.Maybe EngineType, -- | The broker\'s instance type. hostInstanceType :: Prelude.Maybe Prelude.Text, -- | The broker\'s storage type. storageType :: Prelude.Maybe BrokerStorageType, -- | The list of supported deployment modes. supportedDeploymentModes :: Prelude.Maybe [DeploymentMode], -- | The list of supported engine versions. supportedEngineVersions :: Prelude.Maybe [Prelude.Text] } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'BrokerInstanceOption' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'availabilityZones', 'brokerInstanceOption_availabilityZones' - The list of available az. -- -- 'engineType', 'brokerInstanceOption_engineType' - The broker\'s engine type. -- -- 'hostInstanceType', 'brokerInstanceOption_hostInstanceType' - The broker\'s instance type. -- -- 'storageType', 'brokerInstanceOption_storageType' - The broker\'s storage type. -- -- 'supportedDeploymentModes', 'brokerInstanceOption_supportedDeploymentModes' - The list of supported deployment modes. -- -- 'supportedEngineVersions', 'brokerInstanceOption_supportedEngineVersions' - The list of supported engine versions. newBrokerInstanceOption :: BrokerInstanceOption newBrokerInstanceOption = BrokerInstanceOption' { availabilityZones = Prelude.Nothing, engineType = Prelude.Nothing, hostInstanceType = Prelude.Nothing, storageType = Prelude.Nothing, supportedDeploymentModes = Prelude.Nothing, supportedEngineVersions = Prelude.Nothing } -- | The list of available az. brokerInstanceOption_availabilityZones :: Lens.Lens' BrokerInstanceOption (Prelude.Maybe [AvailabilityZone]) brokerInstanceOption_availabilityZones = Lens.lens (\BrokerInstanceOption' {availabilityZones} -> availabilityZones) (\s@BrokerInstanceOption' {} a -> s {availabilityZones = a} :: BrokerInstanceOption) Prelude.. Lens.mapping Lens.coerced -- | The broker\'s engine type. brokerInstanceOption_engineType :: Lens.Lens' BrokerInstanceOption (Prelude.Maybe EngineType) brokerInstanceOption_engineType = Lens.lens (\BrokerInstanceOption' {engineType} -> engineType) (\s@BrokerInstanceOption' {} a -> s {engineType = a} :: BrokerInstanceOption) -- | The broker\'s instance type. brokerInstanceOption_hostInstanceType :: Lens.Lens' BrokerInstanceOption (Prelude.Maybe Prelude.Text) brokerInstanceOption_hostInstanceType = Lens.lens (\BrokerInstanceOption' {hostInstanceType} -> hostInstanceType) (\s@BrokerInstanceOption' {} a -> s {hostInstanceType = a} :: BrokerInstanceOption) -- | The broker\'s storage type. brokerInstanceOption_storageType :: Lens.Lens' BrokerInstanceOption (Prelude.Maybe BrokerStorageType) brokerInstanceOption_storageType = Lens.lens (\BrokerInstanceOption' {storageType} -> storageType) (\s@BrokerInstanceOption' {} a -> s {storageType = a} :: BrokerInstanceOption) -- | The list of supported deployment modes. brokerInstanceOption_supportedDeploymentModes :: Lens.Lens' BrokerInstanceOption (Prelude.Maybe [DeploymentMode]) brokerInstanceOption_supportedDeploymentModes = Lens.lens (\BrokerInstanceOption' {supportedDeploymentModes} -> supportedDeploymentModes) (\s@BrokerInstanceOption' {} a -> s {supportedDeploymentModes = a} :: BrokerInstanceOption) Prelude.. Lens.mapping Lens.coerced -- | The list of supported engine versions. brokerInstanceOption_supportedEngineVersions :: Lens.Lens' BrokerInstanceOption (Prelude.Maybe [Prelude.Text]) brokerInstanceOption_supportedEngineVersions = Lens.lens (\BrokerInstanceOption' {supportedEngineVersions} -> supportedEngineVersions) (\s@BrokerInstanceOption' {} a -> s {supportedEngineVersions = a} :: BrokerInstanceOption) Prelude.. Lens.mapping Lens.coerced instance Data.FromJSON BrokerInstanceOption where parseJSON = Data.withObject "BrokerInstanceOption" ( \x -> BrokerInstanceOption' Prelude.<$> ( x Data..:? "availabilityZones" Data..!= Prelude.mempty ) Prelude.<*> (x Data..:? "engineType") Prelude.<*> (x Data..:? "hostInstanceType") Prelude.<*> (x Data..:? "storageType") Prelude.<*> ( x Data..:? "supportedDeploymentModes" Data..!= Prelude.mempty ) Prelude.<*> ( x Data..:? "supportedEngineVersions" Data..!= Prelude.mempty ) ) instance Prelude.Hashable BrokerInstanceOption where hashWithSalt _salt BrokerInstanceOption' {..} = _salt `Prelude.hashWithSalt` availabilityZones `Prelude.hashWithSalt` engineType `Prelude.hashWithSalt` hostInstanceType `Prelude.hashWithSalt` storageType `Prelude.hashWithSalt` supportedDeploymentModes `Prelude.hashWithSalt` supportedEngineVersions instance Prelude.NFData BrokerInstanceOption where rnf BrokerInstanceOption' {..} = Prelude.rnf availabilityZones `Prelude.seq` Prelude.rnf engineType `Prelude.seq` Prelude.rnf hostInstanceType `Prelude.seq` Prelude.rnf storageType `Prelude.seq` Prelude.rnf supportedDeploymentModes `Prelude.seq` Prelude.rnf supportedEngineVersions