{-# 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.ELB.Types.TagKeyOnly -- 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.ELB.Types.TagKeyOnly where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.ELB.Internal import qualified Amazonka.Prelude as Prelude -- | The key of a tag. -- -- /See:/ 'newTagKeyOnly' smart constructor. data TagKeyOnly = TagKeyOnly' { -- | The name of the key. key :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'TagKeyOnly' 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', 'tagKeyOnly_key' - The name of the key. newTagKeyOnly :: TagKeyOnly newTagKeyOnly = TagKeyOnly' {key = Prelude.Nothing} -- | The name of the key. tagKeyOnly_key :: Lens.Lens' TagKeyOnly (Prelude.Maybe Prelude.Text) tagKeyOnly_key = Lens.lens (\TagKeyOnly' {key} -> key) (\s@TagKeyOnly' {} a -> s {key = a} :: TagKeyOnly) instance Prelude.Hashable TagKeyOnly where hashWithSalt _salt TagKeyOnly' {..} = _salt `Prelude.hashWithSalt` key instance Prelude.NFData TagKeyOnly where rnf TagKeyOnly' {..} = Prelude.rnf key instance Data.ToQuery TagKeyOnly where toQuery TagKeyOnly' {..} = Prelude.mconcat ["Key" Data.=: key]