{-# 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.Proton.Types.EnvironmentTemplateSummary -- 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.Proton.Types.EnvironmentTemplateSummary 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 import Amazonka.Proton.Types.Provisioning -- | The environment template data. -- -- /See:/ 'newEnvironmentTemplateSummary' smart constructor. data EnvironmentTemplateSummary = EnvironmentTemplateSummary' { -- | A description of the environment template. description :: Prelude.Maybe (Data.Sensitive Prelude.Text), -- | The name of the environment template as displayed in the developer -- interface. displayName :: Prelude.Maybe (Data.Sensitive Prelude.Text), -- | When included, indicates that the environment template is for customer -- provisioned and managed infrastructure. provisioning :: Prelude.Maybe Provisioning, -- | The recommended version of the environment template. recommendedVersion :: Prelude.Maybe Prelude.Text, -- | The Amazon Resource Name (ARN) of the environment template. arn :: Prelude.Text, -- | The time when the environment template was created. createdAt :: Data.POSIX, -- | The time when the environment template was last modified. lastModifiedAt :: Data.POSIX, -- | The name of the environment template. name :: Prelude.Text } deriving (Prelude.Eq, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'EnvironmentTemplateSummary' 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: -- -- 'description', 'environmentTemplateSummary_description' - A description of the environment template. -- -- 'displayName', 'environmentTemplateSummary_displayName' - The name of the environment template as displayed in the developer -- interface. -- -- 'provisioning', 'environmentTemplateSummary_provisioning' - When included, indicates that the environment template is for customer -- provisioned and managed infrastructure. -- -- 'recommendedVersion', 'environmentTemplateSummary_recommendedVersion' - The recommended version of the environment template. -- -- 'arn', 'environmentTemplateSummary_arn' - The Amazon Resource Name (ARN) of the environment template. -- -- 'createdAt', 'environmentTemplateSummary_createdAt' - The time when the environment template was created. -- -- 'lastModifiedAt', 'environmentTemplateSummary_lastModifiedAt' - The time when the environment template was last modified. -- -- 'name', 'environmentTemplateSummary_name' - The name of the environment template. newEnvironmentTemplateSummary :: -- | 'arn' Prelude.Text -> -- | 'createdAt' Prelude.UTCTime -> -- | 'lastModifiedAt' Prelude.UTCTime -> -- | 'name' Prelude.Text -> EnvironmentTemplateSummary newEnvironmentTemplateSummary pArn_ pCreatedAt_ pLastModifiedAt_ pName_ = EnvironmentTemplateSummary' { description = Prelude.Nothing, displayName = Prelude.Nothing, provisioning = Prelude.Nothing, recommendedVersion = Prelude.Nothing, arn = pArn_, createdAt = Data._Time Lens.# pCreatedAt_, lastModifiedAt = Data._Time Lens.# pLastModifiedAt_, name = pName_ } -- | A description of the environment template. environmentTemplateSummary_description :: Lens.Lens' EnvironmentTemplateSummary (Prelude.Maybe Prelude.Text) environmentTemplateSummary_description = Lens.lens (\EnvironmentTemplateSummary' {description} -> description) (\s@EnvironmentTemplateSummary' {} a -> s {description = a} :: EnvironmentTemplateSummary) Prelude.. Lens.mapping Data._Sensitive -- | The name of the environment template as displayed in the developer -- interface. environmentTemplateSummary_displayName :: Lens.Lens' EnvironmentTemplateSummary (Prelude.Maybe Prelude.Text) environmentTemplateSummary_displayName = Lens.lens (\EnvironmentTemplateSummary' {displayName} -> displayName) (\s@EnvironmentTemplateSummary' {} a -> s {displayName = a} :: EnvironmentTemplateSummary) Prelude.. Lens.mapping Data._Sensitive -- | When included, indicates that the environment template is for customer -- provisioned and managed infrastructure. environmentTemplateSummary_provisioning :: Lens.Lens' EnvironmentTemplateSummary (Prelude.Maybe Provisioning) environmentTemplateSummary_provisioning = Lens.lens (\EnvironmentTemplateSummary' {provisioning} -> provisioning) (\s@EnvironmentTemplateSummary' {} a -> s {provisioning = a} :: EnvironmentTemplateSummary) -- | The recommended version of the environment template. environmentTemplateSummary_recommendedVersion :: Lens.Lens' EnvironmentTemplateSummary (Prelude.Maybe Prelude.Text) environmentTemplateSummary_recommendedVersion = Lens.lens (\EnvironmentTemplateSummary' {recommendedVersion} -> recommendedVersion) (\s@EnvironmentTemplateSummary' {} a -> s {recommendedVersion = a} :: EnvironmentTemplateSummary) -- | The Amazon Resource Name (ARN) of the environment template. environmentTemplateSummary_arn :: Lens.Lens' EnvironmentTemplateSummary Prelude.Text environmentTemplateSummary_arn = Lens.lens (\EnvironmentTemplateSummary' {arn} -> arn) (\s@EnvironmentTemplateSummary' {} a -> s {arn = a} :: EnvironmentTemplateSummary) -- | The time when the environment template was created. environmentTemplateSummary_createdAt :: Lens.Lens' EnvironmentTemplateSummary Prelude.UTCTime environmentTemplateSummary_createdAt = Lens.lens (\EnvironmentTemplateSummary' {createdAt} -> createdAt) (\s@EnvironmentTemplateSummary' {} a -> s {createdAt = a} :: EnvironmentTemplateSummary) Prelude.. Data._Time -- | The time when the environment template was last modified. environmentTemplateSummary_lastModifiedAt :: Lens.Lens' EnvironmentTemplateSummary Prelude.UTCTime environmentTemplateSummary_lastModifiedAt = Lens.lens (\EnvironmentTemplateSummary' {lastModifiedAt} -> lastModifiedAt) (\s@EnvironmentTemplateSummary' {} a -> s {lastModifiedAt = a} :: EnvironmentTemplateSummary) Prelude.. Data._Time -- | The name of the environment template. environmentTemplateSummary_name :: Lens.Lens' EnvironmentTemplateSummary Prelude.Text environmentTemplateSummary_name = Lens.lens (\EnvironmentTemplateSummary' {name} -> name) (\s@EnvironmentTemplateSummary' {} a -> s {name = a} :: EnvironmentTemplateSummary) instance Data.FromJSON EnvironmentTemplateSummary where parseJSON = Data.withObject "EnvironmentTemplateSummary" ( \x -> EnvironmentTemplateSummary' Prelude.<$> (x Data..:? "description") Prelude.<*> (x Data..:? "displayName") Prelude.<*> (x Data..:? "provisioning") Prelude.<*> (x Data..:? "recommendedVersion") Prelude.<*> (x Data..: "arn") Prelude.<*> (x Data..: "createdAt") Prelude.<*> (x Data..: "lastModifiedAt") Prelude.<*> (x Data..: "name") ) instance Prelude.Hashable EnvironmentTemplateSummary where hashWithSalt _salt EnvironmentTemplateSummary' {..} = _salt `Prelude.hashWithSalt` description `Prelude.hashWithSalt` displayName `Prelude.hashWithSalt` provisioning `Prelude.hashWithSalt` recommendedVersion `Prelude.hashWithSalt` arn `Prelude.hashWithSalt` createdAt `Prelude.hashWithSalt` lastModifiedAt `Prelude.hashWithSalt` name instance Prelude.NFData EnvironmentTemplateSummary where rnf EnvironmentTemplateSummary' {..} = Prelude.rnf description `Prelude.seq` Prelude.rnf displayName `Prelude.seq` Prelude.rnf provisioning `Prelude.seq` Prelude.rnf recommendedVersion `Prelude.seq` Prelude.rnf arn `Prelude.seq` Prelude.rnf createdAt `Prelude.seq` Prelude.rnf lastModifiedAt `Prelude.seq` Prelude.rnf name