{-# 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.Route53Resolver.Types.FirewallDomainListMetadata -- 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.Route53Resolver.Types.FirewallDomainListMetadata 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 -- | Minimal high-level information for a firewall domain list. The action -- ListFirewallDomainLists returns an array of these objects. -- -- To retrieve full information for a firewall domain list, call -- GetFirewallDomainList and ListFirewallDomains. -- -- /See:/ 'newFirewallDomainListMetadata' smart constructor. data FirewallDomainListMetadata = FirewallDomainListMetadata' { -- | The Amazon Resource Name (ARN) of the firewall domain list metadata. arn :: Prelude.Maybe Prelude.Text, -- | A unique string defined by you to identify the request. This allows you -- to retry failed requests without the risk of running the operation -- twice. This can be any unique string, for example, a timestamp. creatorRequestId :: Prelude.Maybe Prelude.Text, -- | The ID of the domain list. id :: Prelude.Maybe Prelude.Text, -- | The owner of the list, used only for lists that are not managed by you. -- For example, the managed domain list -- @AWSManagedDomainsMalwareDomainList@ has the managed owner name -- @Route 53 Resolver DNS Firewall@. managedOwnerName :: Prelude.Maybe Prelude.Text, -- | The name of the domain list. name :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'FirewallDomainListMetadata' 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: -- -- 'arn', 'firewallDomainListMetadata_arn' - The Amazon Resource Name (ARN) of the firewall domain list metadata. -- -- 'creatorRequestId', 'firewallDomainListMetadata_creatorRequestId' - A unique string defined by you to identify the request. This allows you -- to retry failed requests without the risk of running the operation -- twice. This can be any unique string, for example, a timestamp. -- -- 'id', 'firewallDomainListMetadata_id' - The ID of the domain list. -- -- 'managedOwnerName', 'firewallDomainListMetadata_managedOwnerName' - The owner of the list, used only for lists that are not managed by you. -- For example, the managed domain list -- @AWSManagedDomainsMalwareDomainList@ has the managed owner name -- @Route 53 Resolver DNS Firewall@. -- -- 'name', 'firewallDomainListMetadata_name' - The name of the domain list. newFirewallDomainListMetadata :: FirewallDomainListMetadata newFirewallDomainListMetadata = FirewallDomainListMetadata' { arn = Prelude.Nothing, creatorRequestId = Prelude.Nothing, id = Prelude.Nothing, managedOwnerName = Prelude.Nothing, name = Prelude.Nothing } -- | The Amazon Resource Name (ARN) of the firewall domain list metadata. firewallDomainListMetadata_arn :: Lens.Lens' FirewallDomainListMetadata (Prelude.Maybe Prelude.Text) firewallDomainListMetadata_arn = Lens.lens (\FirewallDomainListMetadata' {arn} -> arn) (\s@FirewallDomainListMetadata' {} a -> s {arn = a} :: FirewallDomainListMetadata) -- | A unique string defined by you to identify the request. This allows you -- to retry failed requests without the risk of running the operation -- twice. This can be any unique string, for example, a timestamp. firewallDomainListMetadata_creatorRequestId :: Lens.Lens' FirewallDomainListMetadata (Prelude.Maybe Prelude.Text) firewallDomainListMetadata_creatorRequestId = Lens.lens (\FirewallDomainListMetadata' {creatorRequestId} -> creatorRequestId) (\s@FirewallDomainListMetadata' {} a -> s {creatorRequestId = a} :: FirewallDomainListMetadata) -- | The ID of the domain list. firewallDomainListMetadata_id :: Lens.Lens' FirewallDomainListMetadata (Prelude.Maybe Prelude.Text) firewallDomainListMetadata_id = Lens.lens (\FirewallDomainListMetadata' {id} -> id) (\s@FirewallDomainListMetadata' {} a -> s {id = a} :: FirewallDomainListMetadata) -- | The owner of the list, used only for lists that are not managed by you. -- For example, the managed domain list -- @AWSManagedDomainsMalwareDomainList@ has the managed owner name -- @Route 53 Resolver DNS Firewall@. firewallDomainListMetadata_managedOwnerName :: Lens.Lens' FirewallDomainListMetadata (Prelude.Maybe Prelude.Text) firewallDomainListMetadata_managedOwnerName = Lens.lens (\FirewallDomainListMetadata' {managedOwnerName} -> managedOwnerName) (\s@FirewallDomainListMetadata' {} a -> s {managedOwnerName = a} :: FirewallDomainListMetadata) -- | The name of the domain list. firewallDomainListMetadata_name :: Lens.Lens' FirewallDomainListMetadata (Prelude.Maybe Prelude.Text) firewallDomainListMetadata_name = Lens.lens (\FirewallDomainListMetadata' {name} -> name) (\s@FirewallDomainListMetadata' {} a -> s {name = a} :: FirewallDomainListMetadata) instance Data.FromJSON FirewallDomainListMetadata where parseJSON = Data.withObject "FirewallDomainListMetadata" ( \x -> FirewallDomainListMetadata' Prelude.<$> (x Data..:? "Arn") Prelude.<*> (x Data..:? "CreatorRequestId") Prelude.<*> (x Data..:? "Id") Prelude.<*> (x Data..:? "ManagedOwnerName") Prelude.<*> (x Data..:? "Name") ) instance Prelude.Hashable FirewallDomainListMetadata where hashWithSalt _salt FirewallDomainListMetadata' {..} = _salt `Prelude.hashWithSalt` arn `Prelude.hashWithSalt` creatorRequestId `Prelude.hashWithSalt` id `Prelude.hashWithSalt` managedOwnerName `Prelude.hashWithSalt` name instance Prelude.NFData FirewallDomainListMetadata where rnf FirewallDomainListMetadata' {..} = Prelude.rnf arn `Prelude.seq` Prelude.rnf creatorRequestId `Prelude.seq` Prelude.rnf id `Prelude.seq` Prelude.rnf managedOwnerName `Prelude.seq` Prelude.rnf name