{-# 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.SSM.Types.AssociationExecutionFilter -- 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.SSM.Types.AssociationExecutionFilter 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.SSM.Types.AssociationExecutionFilterKey import Amazonka.SSM.Types.AssociationFilterOperatorType -- | Filters used in the request. -- -- /See:/ 'newAssociationExecutionFilter' smart constructor. data AssociationExecutionFilter = AssociationExecutionFilter' { -- | The key value used in the request. key :: AssociationExecutionFilterKey, -- | The value specified for the key. value :: Prelude.Text, -- | The filter type specified in the request. type' :: AssociationFilterOperatorType } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'AssociationExecutionFilter' 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: -- -- 'key', 'associationExecutionFilter_key' - The key value used in the request. -- -- 'value', 'associationExecutionFilter_value' - The value specified for the key. -- -- 'type'', 'associationExecutionFilter_type' - The filter type specified in the request. newAssociationExecutionFilter :: -- | 'key' AssociationExecutionFilterKey -> -- | 'value' Prelude.Text -> -- | 'type'' AssociationFilterOperatorType -> AssociationExecutionFilter newAssociationExecutionFilter pKey_ pValue_ pType_ = AssociationExecutionFilter' { key = pKey_, value = pValue_, type' = pType_ } -- | The key value used in the request. associationExecutionFilter_key :: Lens.Lens' AssociationExecutionFilter AssociationExecutionFilterKey associationExecutionFilter_key = Lens.lens (\AssociationExecutionFilter' {key} -> key) (\s@AssociationExecutionFilter' {} a -> s {key = a} :: AssociationExecutionFilter) -- | The value specified for the key. associationExecutionFilter_value :: Lens.Lens' AssociationExecutionFilter Prelude.Text associationExecutionFilter_value = Lens.lens (\AssociationExecutionFilter' {value} -> value) (\s@AssociationExecutionFilter' {} a -> s {value = a} :: AssociationExecutionFilter) -- | The filter type specified in the request. associationExecutionFilter_type :: Lens.Lens' AssociationExecutionFilter AssociationFilterOperatorType associationExecutionFilter_type = Lens.lens (\AssociationExecutionFilter' {type'} -> type') (\s@AssociationExecutionFilter' {} a -> s {type' = a} :: AssociationExecutionFilter) instance Prelude.Hashable AssociationExecutionFilter where hashWithSalt _salt AssociationExecutionFilter' {..} = _salt `Prelude.hashWithSalt` key `Prelude.hashWithSalt` value `Prelude.hashWithSalt` type' instance Prelude.NFData AssociationExecutionFilter where rnf AssociationExecutionFilter' {..} = Prelude.rnf key `Prelude.seq` Prelude.rnf value `Prelude.seq` Prelude.rnf type' instance Data.ToJSON AssociationExecutionFilter where toJSON AssociationExecutionFilter' {..} = Data.object ( Prelude.catMaybes [ Prelude.Just ("Key" Data..= key), Prelude.Just ("Value" Data..= value), Prelude.Just ("Type" Data..= type') ] )