{-# 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.ResultAttribute -- 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.ResultAttribute 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 inventory item result attribute. -- -- /See:/ 'newResultAttribute' smart constructor. data ResultAttribute = ResultAttribute' { -- | Name of the inventory item type. Valid value: @AWS:InstanceInformation@. -- Default Value: @AWS:InstanceInformation@. typeName :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ResultAttribute' 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: -- -- 'typeName', 'resultAttribute_typeName' - Name of the inventory item type. Valid value: @AWS:InstanceInformation@. -- Default Value: @AWS:InstanceInformation@. newResultAttribute :: -- | 'typeName' Prelude.Text -> ResultAttribute newResultAttribute pTypeName_ = ResultAttribute' {typeName = pTypeName_} -- | Name of the inventory item type. Valid value: @AWS:InstanceInformation@. -- Default Value: @AWS:InstanceInformation@. resultAttribute_typeName :: Lens.Lens' ResultAttribute Prelude.Text resultAttribute_typeName = Lens.lens (\ResultAttribute' {typeName} -> typeName) (\s@ResultAttribute' {} a -> s {typeName = a} :: ResultAttribute) instance Prelude.Hashable ResultAttribute where hashWithSalt _salt ResultAttribute' {..} = _salt `Prelude.hashWithSalt` typeName instance Prelude.NFData ResultAttribute where rnf ResultAttribute' {..} = Prelude.rnf typeName instance Data.ToJSON ResultAttribute where toJSON ResultAttribute' {..} = Data.object ( Prelude.catMaybes [Prelude.Just ("TypeName" Data..= typeName)] )