{-# 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.EMR.Types.SupportedProductConfig -- 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.EMR.Types.SupportedProductConfig where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude -- | The list of supported product configurations that allow user-supplied -- arguments. EMR accepts these arguments and forwards them to the -- corresponding installation script as bootstrap action arguments. -- -- /See:/ 'newSupportedProductConfig' smart constructor. data SupportedProductConfig = SupportedProductConfig' { -- | The list of user-supplied arguments. args :: Prelude.Maybe [Prelude.Text], -- | The name of the product configuration. name :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'SupportedProductConfig' 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: -- -- 'args', 'supportedProductConfig_args' - The list of user-supplied arguments. -- -- 'name', 'supportedProductConfig_name' - The name of the product configuration. newSupportedProductConfig :: SupportedProductConfig newSupportedProductConfig = SupportedProductConfig' { args = Prelude.Nothing, name = Prelude.Nothing } -- | The list of user-supplied arguments. supportedProductConfig_args :: Lens.Lens' SupportedProductConfig (Prelude.Maybe [Prelude.Text]) supportedProductConfig_args = Lens.lens (\SupportedProductConfig' {args} -> args) (\s@SupportedProductConfig' {} a -> s {args = a} :: SupportedProductConfig) Prelude.. Lens.mapping Lens.coerced -- | The name of the product configuration. supportedProductConfig_name :: Lens.Lens' SupportedProductConfig (Prelude.Maybe Prelude.Text) supportedProductConfig_name = Lens.lens (\SupportedProductConfig' {name} -> name) (\s@SupportedProductConfig' {} a -> s {name = a} :: SupportedProductConfig) instance Prelude.Hashable SupportedProductConfig where hashWithSalt _salt SupportedProductConfig' {..} = _salt `Prelude.hashWithSalt` args `Prelude.hashWithSalt` name instance Prelude.NFData SupportedProductConfig where rnf SupportedProductConfig' {..} = Prelude.rnf args `Prelude.seq` Prelude.rnf name instance Data.ToJSON SupportedProductConfig where toJSON SupportedProductConfig' {..} = Data.object ( Prelude.catMaybes [ ("Args" Data..=) Prelude.<$> args, ("Name" Data..=) Prelude.<$> name ] )