{-# 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.SecurityHub.Types.AwsEcsClusterConfigurationDetails -- 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.SecurityHub.Types.AwsEcsClusterConfigurationDetails 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 import Amazonka.SecurityHub.Types.AwsEcsClusterConfigurationExecuteCommandConfigurationDetails -- | The run command configuration for the cluster. -- -- /See:/ 'newAwsEcsClusterConfigurationDetails' smart constructor. data AwsEcsClusterConfigurationDetails = AwsEcsClusterConfigurationDetails' { -- | Contains the run command configuration for the cluster. executeCommandConfiguration :: Prelude.Maybe AwsEcsClusterConfigurationExecuteCommandConfigurationDetails } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'AwsEcsClusterConfigurationDetails' 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: -- -- 'executeCommandConfiguration', 'awsEcsClusterConfigurationDetails_executeCommandConfiguration' - Contains the run command configuration for the cluster. newAwsEcsClusterConfigurationDetails :: AwsEcsClusterConfigurationDetails newAwsEcsClusterConfigurationDetails = AwsEcsClusterConfigurationDetails' { executeCommandConfiguration = Prelude.Nothing } -- | Contains the run command configuration for the cluster. awsEcsClusterConfigurationDetails_executeCommandConfiguration :: Lens.Lens' AwsEcsClusterConfigurationDetails (Prelude.Maybe AwsEcsClusterConfigurationExecuteCommandConfigurationDetails) awsEcsClusterConfigurationDetails_executeCommandConfiguration = Lens.lens (\AwsEcsClusterConfigurationDetails' {executeCommandConfiguration} -> executeCommandConfiguration) (\s@AwsEcsClusterConfigurationDetails' {} a -> s {executeCommandConfiguration = a} :: AwsEcsClusterConfigurationDetails) instance Data.FromJSON AwsEcsClusterConfigurationDetails where parseJSON = Data.withObject "AwsEcsClusterConfigurationDetails" ( \x -> AwsEcsClusterConfigurationDetails' Prelude.<$> (x Data..:? "ExecuteCommandConfiguration") ) instance Prelude.Hashable AwsEcsClusterConfigurationDetails where hashWithSalt _salt AwsEcsClusterConfigurationDetails' {..} = _salt `Prelude.hashWithSalt` executeCommandConfiguration instance Prelude.NFData AwsEcsClusterConfigurationDetails where rnf AwsEcsClusterConfigurationDetails' {..} = Prelude.rnf executeCommandConfiguration instance Data.ToJSON AwsEcsClusterConfigurationDetails where toJSON AwsEcsClusterConfigurationDetails' {..} = Data.object ( Prelude.catMaybes [ ("ExecuteCommandConfiguration" Data..=) Prelude.<$> executeCommandConfiguration ] )