{-# 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.PolicyAttribute -- 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.PolicyAttribute 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 -- | Information about a policy attribute. -- -- /See:/ 'newPolicyAttribute' smart constructor. data PolicyAttribute = PolicyAttribute' { -- | The name of the attribute. attributeName :: Prelude.Maybe Prelude.Text, -- | The value of the attribute. attributeValue :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'PolicyAttribute' 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: -- -- 'attributeName', 'policyAttribute_attributeName' - The name of the attribute. -- -- 'attributeValue', 'policyAttribute_attributeValue' - The value of the attribute. newPolicyAttribute :: PolicyAttribute newPolicyAttribute = PolicyAttribute' { attributeName = Prelude.Nothing, attributeValue = Prelude.Nothing } -- | The name of the attribute. policyAttribute_attributeName :: Lens.Lens' PolicyAttribute (Prelude.Maybe Prelude.Text) policyAttribute_attributeName = Lens.lens (\PolicyAttribute' {attributeName} -> attributeName) (\s@PolicyAttribute' {} a -> s {attributeName = a} :: PolicyAttribute) -- | The value of the attribute. policyAttribute_attributeValue :: Lens.Lens' PolicyAttribute (Prelude.Maybe Prelude.Text) policyAttribute_attributeValue = Lens.lens (\PolicyAttribute' {attributeValue} -> attributeValue) (\s@PolicyAttribute' {} a -> s {attributeValue = a} :: PolicyAttribute) instance Prelude.Hashable PolicyAttribute where hashWithSalt _salt PolicyAttribute' {..} = _salt `Prelude.hashWithSalt` attributeName `Prelude.hashWithSalt` attributeValue instance Prelude.NFData PolicyAttribute where rnf PolicyAttribute' {..} = Prelude.rnf attributeName `Prelude.seq` Prelude.rnf attributeValue instance Data.ToQuery PolicyAttribute where toQuery PolicyAttribute' {..} = Prelude.mconcat [ "AttributeName" Data.=: attributeName, "AttributeValue" Data.=: attributeValue ]