{-# 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.CloudFront.Types.TagKeys -- 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.CloudFront.Types.TagKeys 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 -- | A complex type that contains zero or more @Tag@ elements. -- -- /See:/ 'newTagKeys' smart constructor. data TagKeys = TagKeys' { -- | A complex type that contains @Tag@ key elements. items :: Prelude.Maybe [Prelude.Text] } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'TagKeys' 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: -- -- 'items', 'tagKeys_items' - A complex type that contains @Tag@ key elements. newTagKeys :: TagKeys newTagKeys = TagKeys' {items = Prelude.Nothing} -- | A complex type that contains @Tag@ key elements. tagKeys_items :: Lens.Lens' TagKeys (Prelude.Maybe [Prelude.Text]) tagKeys_items = Lens.lens (\TagKeys' {items} -> items) (\s@TagKeys' {} a -> s {items = a} :: TagKeys) Prelude.. Lens.mapping Lens.coerced instance Prelude.Hashable TagKeys where hashWithSalt _salt TagKeys' {..} = _salt `Prelude.hashWithSalt` items instance Prelude.NFData TagKeys where rnf TagKeys' {..} = Prelude.rnf items instance Data.ToXML TagKeys where toXML TagKeys' {..} = Prelude.mconcat [ "Items" Data.@= Data.toXML (Data.toXMLList "Key" Prelude.<$> items) ]