{-# 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.Schemas.Types.RegistrySummary -- 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.Schemas.Types.RegistrySummary 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 -- | /See:/ 'newRegistrySummary' smart constructor. data RegistrySummary = RegistrySummary' { -- | The ARN of the registry. registryArn :: Prelude.Maybe Prelude.Text, -- | The name of the registry. registryName :: Prelude.Maybe Prelude.Text, -- | Tags associated with the registry. tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text) } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'RegistrySummary' 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: -- -- 'registryArn', 'registrySummary_registryArn' - The ARN of the registry. -- -- 'registryName', 'registrySummary_registryName' - The name of the registry. -- -- 'tags', 'registrySummary_tags' - Tags associated with the registry. newRegistrySummary :: RegistrySummary newRegistrySummary = RegistrySummary' { registryArn = Prelude.Nothing, registryName = Prelude.Nothing, tags = Prelude.Nothing } -- | The ARN of the registry. registrySummary_registryArn :: Lens.Lens' RegistrySummary (Prelude.Maybe Prelude.Text) registrySummary_registryArn = Lens.lens (\RegistrySummary' {registryArn} -> registryArn) (\s@RegistrySummary' {} a -> s {registryArn = a} :: RegistrySummary) -- | The name of the registry. registrySummary_registryName :: Lens.Lens' RegistrySummary (Prelude.Maybe Prelude.Text) registrySummary_registryName = Lens.lens (\RegistrySummary' {registryName} -> registryName) (\s@RegistrySummary' {} a -> s {registryName = a} :: RegistrySummary) -- | Tags associated with the registry. registrySummary_tags :: Lens.Lens' RegistrySummary (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)) registrySummary_tags = Lens.lens (\RegistrySummary' {tags} -> tags) (\s@RegistrySummary' {} a -> s {tags = a} :: RegistrySummary) Prelude.. Lens.mapping Lens.coerced instance Data.FromJSON RegistrySummary where parseJSON = Data.withObject "RegistrySummary" ( \x -> RegistrySummary' Prelude.<$> (x Data..:? "RegistryArn") Prelude.<*> (x Data..:? "RegistryName") Prelude.<*> (x Data..:? "tags" Data..!= Prelude.mempty) ) instance Prelude.Hashable RegistrySummary where hashWithSalt _salt RegistrySummary' {..} = _salt `Prelude.hashWithSalt` registryArn `Prelude.hashWithSalt` registryName `Prelude.hashWithSalt` tags instance Prelude.NFData RegistrySummary where rnf RegistrySummary' {..} = Prelude.rnf registryArn `Prelude.seq` Prelude.rnf registryName `Prelude.seq` Prelude.rnf tags