{-# 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.InstanceInformationStringFilter -- 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.InstanceInformationStringFilter 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 filters to describe or get information about your managed nodes. -- -- /See:/ 'newInstanceInformationStringFilter' smart constructor. data InstanceInformationStringFilter = InstanceInformationStringFilter' { -- | The filter key name to describe your managed nodes. -- -- Valid filter key values: ActivationIds | AgentVersion | -- AssociationStatus | IamRole | InstanceIds | PingStatus | PlatformTypes | -- ResourceType | SourceIds | SourceTypes | \"tag-key\" | \"tag:@{keyname}@ -- -- - Valid values for the @AssociationStatus@ filter key: Success | -- Pending | Failed -- -- - Valid values for the @PingStatus@ filter key: Online | -- ConnectionLost | Inactive (deprecated) -- -- - Valid values for the @PlatformType@ filter key: Windows | Linux | -- MacOS -- -- - Valid values for the @ResourceType@ filter key: EC2Instance | -- ManagedInstance -- -- - Valid values for the @SourceType@ filter key: AWS::EC2::Instance | -- AWS::SSM::ManagedInstance | AWS::IoT::Thing -- -- - Valid tag examples: @Key=tag-key,Values=Purpose@ | -- @Key=tag:Purpose,Values=Test@. key :: Prelude.Text, -- | The filter values. values :: Prelude.NonEmpty Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'InstanceInformationStringFilter' 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', 'instanceInformationStringFilter_key' - The filter key name to describe your managed nodes. -- -- Valid filter key values: ActivationIds | AgentVersion | -- AssociationStatus | IamRole | InstanceIds | PingStatus | PlatformTypes | -- ResourceType | SourceIds | SourceTypes | \"tag-key\" | \"tag:@{keyname}@ -- -- - Valid values for the @AssociationStatus@ filter key: Success | -- Pending | Failed -- -- - Valid values for the @PingStatus@ filter key: Online | -- ConnectionLost | Inactive (deprecated) -- -- - Valid values for the @PlatformType@ filter key: Windows | Linux | -- MacOS -- -- - Valid values for the @ResourceType@ filter key: EC2Instance | -- ManagedInstance -- -- - Valid values for the @SourceType@ filter key: AWS::EC2::Instance | -- AWS::SSM::ManagedInstance | AWS::IoT::Thing -- -- - Valid tag examples: @Key=tag-key,Values=Purpose@ | -- @Key=tag:Purpose,Values=Test@. -- -- 'values', 'instanceInformationStringFilter_values' - The filter values. newInstanceInformationStringFilter :: -- | 'key' Prelude.Text -> -- | 'values' Prelude.NonEmpty Prelude.Text -> InstanceInformationStringFilter newInstanceInformationStringFilter pKey_ pValues_ = InstanceInformationStringFilter' { key = pKey_, values = Lens.coerced Lens.# pValues_ } -- | The filter key name to describe your managed nodes. -- -- Valid filter key values: ActivationIds | AgentVersion | -- AssociationStatus | IamRole | InstanceIds | PingStatus | PlatformTypes | -- ResourceType | SourceIds | SourceTypes | \"tag-key\" | \"tag:@{keyname}@ -- -- - Valid values for the @AssociationStatus@ filter key: Success | -- Pending | Failed -- -- - Valid values for the @PingStatus@ filter key: Online | -- ConnectionLost | Inactive (deprecated) -- -- - Valid values for the @PlatformType@ filter key: Windows | Linux | -- MacOS -- -- - Valid values for the @ResourceType@ filter key: EC2Instance | -- ManagedInstance -- -- - Valid values for the @SourceType@ filter key: AWS::EC2::Instance | -- AWS::SSM::ManagedInstance | AWS::IoT::Thing -- -- - Valid tag examples: @Key=tag-key,Values=Purpose@ | -- @Key=tag:Purpose,Values=Test@. instanceInformationStringFilter_key :: Lens.Lens' InstanceInformationStringFilter Prelude.Text instanceInformationStringFilter_key = Lens.lens (\InstanceInformationStringFilter' {key} -> key) (\s@InstanceInformationStringFilter' {} a -> s {key = a} :: InstanceInformationStringFilter) -- | The filter values. instanceInformationStringFilter_values :: Lens.Lens' InstanceInformationStringFilter (Prelude.NonEmpty Prelude.Text) instanceInformationStringFilter_values = Lens.lens (\InstanceInformationStringFilter' {values} -> values) (\s@InstanceInformationStringFilter' {} a -> s {values = a} :: InstanceInformationStringFilter) Prelude.. Lens.coerced instance Prelude.Hashable InstanceInformationStringFilter where hashWithSalt _salt InstanceInformationStringFilter' {..} = _salt `Prelude.hashWithSalt` key `Prelude.hashWithSalt` values instance Prelude.NFData InstanceInformationStringFilter where rnf InstanceInformationStringFilter' {..} = Prelude.rnf key `Prelude.seq` Prelude.rnf values instance Data.ToJSON InstanceInformationStringFilter where toJSON InstanceInformationStringFilter' {..} = Data.object ( Prelude.catMaybes [ Prelude.Just ("Key" Data..= key), Prelude.Just ("Values" Data..= values) ] )