{-# 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.EnvironmentTemplateVersion
-- 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.EnvironmentTemplateVersion 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.TemplateVersionStatus

-- | The environment template version data.
--
-- /See:/ 'newEnvironmentTemplateVersion' smart constructor.
data EnvironmentTemplateVersion = EnvironmentTemplateVersion'
  { -- | A description of the minor version of an environment template.
    EnvironmentTemplateVersion -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | The recommended minor version of the environment template.
    EnvironmentTemplateVersion -> Maybe Text
recommendedMinorVersion :: Prelude.Maybe Prelude.Text,
    -- | The schema of the version of an environment template.
    EnvironmentTemplateVersion -> Maybe (Sensitive Text)
schema :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | The status message of the version of an environment template.
    EnvironmentTemplateVersion -> Maybe (Sensitive Text)
statusMessage :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | The Amazon Resource Name (ARN) of the version of an environment
    -- template.
    EnvironmentTemplateVersion -> Text
arn :: Prelude.Text,
    -- | The time when the version of an environment template was created.
    EnvironmentTemplateVersion -> POSIX
createdAt :: Data.POSIX,
    -- | The time when the version of an environment template was last modified.
    EnvironmentTemplateVersion -> POSIX
lastModifiedAt :: Data.POSIX,
    -- | The latest major version that\'s associated with the version of an
    -- environment template.
    EnvironmentTemplateVersion -> Text
majorVersion :: Prelude.Text,
    -- | The minor version of an environment template.
    EnvironmentTemplateVersion -> Text
minorVersion :: Prelude.Text,
    -- | The status of the version of an environment template.
    EnvironmentTemplateVersion -> TemplateVersionStatus
status :: TemplateVersionStatus,
    -- | The name of the version of an environment template.
    EnvironmentTemplateVersion -> Text
templateName :: Prelude.Text
  }
  deriving (EnvironmentTemplateVersion -> EnvironmentTemplateVersion -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EnvironmentTemplateVersion -> EnvironmentTemplateVersion -> Bool
$c/= :: EnvironmentTemplateVersion -> EnvironmentTemplateVersion -> Bool
== :: EnvironmentTemplateVersion -> EnvironmentTemplateVersion -> Bool
$c== :: EnvironmentTemplateVersion -> EnvironmentTemplateVersion -> Bool
Prelude.Eq, Int -> EnvironmentTemplateVersion -> ShowS
[EnvironmentTemplateVersion] -> ShowS
EnvironmentTemplateVersion -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EnvironmentTemplateVersion] -> ShowS
$cshowList :: [EnvironmentTemplateVersion] -> ShowS
show :: EnvironmentTemplateVersion -> String
$cshow :: EnvironmentTemplateVersion -> String
showsPrec :: Int -> EnvironmentTemplateVersion -> ShowS
$cshowsPrec :: Int -> EnvironmentTemplateVersion -> ShowS
Prelude.Show, forall x.
Rep EnvironmentTemplateVersion x -> EnvironmentTemplateVersion
forall x.
EnvironmentTemplateVersion -> Rep EnvironmentTemplateVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep EnvironmentTemplateVersion x -> EnvironmentTemplateVersion
$cfrom :: forall x.
EnvironmentTemplateVersion -> Rep EnvironmentTemplateVersion x
Prelude.Generic)

-- |
-- Create a value of 'EnvironmentTemplateVersion' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'description', 'environmentTemplateVersion_description' - A description of the minor version of an environment template.
--
-- 'recommendedMinorVersion', 'environmentTemplateVersion_recommendedMinorVersion' - The recommended minor version of the environment template.
--
-- 'schema', 'environmentTemplateVersion_schema' - The schema of the version of an environment template.
--
-- 'statusMessage', 'environmentTemplateVersion_statusMessage' - The status message of the version of an environment template.
--
-- 'arn', 'environmentTemplateVersion_arn' - The Amazon Resource Name (ARN) of the version of an environment
-- template.
--
-- 'createdAt', 'environmentTemplateVersion_createdAt' - The time when the version of an environment template was created.
--
-- 'lastModifiedAt', 'environmentTemplateVersion_lastModifiedAt' - The time when the version of an environment template was last modified.
--
-- 'majorVersion', 'environmentTemplateVersion_majorVersion' - The latest major version that\'s associated with the version of an
-- environment template.
--
-- 'minorVersion', 'environmentTemplateVersion_minorVersion' - The minor version of an environment template.
--
-- 'status', 'environmentTemplateVersion_status' - The status of the version of an environment template.
--
-- 'templateName', 'environmentTemplateVersion_templateName' - The name of the version of an environment template.
newEnvironmentTemplateVersion ::
  -- | 'arn'
  Prelude.Text ->
  -- | 'createdAt'
  Prelude.UTCTime ->
  -- | 'lastModifiedAt'
  Prelude.UTCTime ->
  -- | 'majorVersion'
  Prelude.Text ->
  -- | 'minorVersion'
  Prelude.Text ->
  -- | 'status'
  TemplateVersionStatus ->
  -- | 'templateName'
  Prelude.Text ->
  EnvironmentTemplateVersion
newEnvironmentTemplateVersion :: Text
-> UTCTime
-> UTCTime
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersion
newEnvironmentTemplateVersion
  Text
pArn_
  UTCTime
pCreatedAt_
  UTCTime
pLastModifiedAt_
  Text
pMajorVersion_
  Text
pMinorVersion_
  TemplateVersionStatus
pStatus_
  Text
pTemplateName_ =
    EnvironmentTemplateVersion'
      { $sel:description:EnvironmentTemplateVersion' :: Maybe (Sensitive Text)
description =
          forall a. Maybe a
Prelude.Nothing,
        $sel:recommendedMinorVersion:EnvironmentTemplateVersion' :: Maybe Text
recommendedMinorVersion = forall a. Maybe a
Prelude.Nothing,
        $sel:schema:EnvironmentTemplateVersion' :: Maybe (Sensitive Text)
schema = forall a. Maybe a
Prelude.Nothing,
        $sel:statusMessage:EnvironmentTemplateVersion' :: Maybe (Sensitive Text)
statusMessage = forall a. Maybe a
Prelude.Nothing,
        $sel:arn:EnvironmentTemplateVersion' :: Text
arn = Text
pArn_,
        $sel:createdAt:EnvironmentTemplateVersion' :: POSIX
createdAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedAt_,
        $sel:lastModifiedAt:EnvironmentTemplateVersion' :: POSIX
lastModifiedAt =
          forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastModifiedAt_,
        $sel:majorVersion:EnvironmentTemplateVersion' :: Text
majorVersion = Text
pMajorVersion_,
        $sel:minorVersion:EnvironmentTemplateVersion' :: Text
minorVersion = Text
pMinorVersion_,
        $sel:status:EnvironmentTemplateVersion' :: TemplateVersionStatus
status = TemplateVersionStatus
pStatus_,
        $sel:templateName:EnvironmentTemplateVersion' :: Text
templateName = Text
pTemplateName_
      }

-- | A description of the minor version of an environment template.
environmentTemplateVersion_description :: Lens.Lens' EnvironmentTemplateVersion (Prelude.Maybe Prelude.Text)
environmentTemplateVersion_description :: Lens' EnvironmentTemplateVersion (Maybe Text)
environmentTemplateVersion_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersion' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: EnvironmentTemplateVersion
s@EnvironmentTemplateVersion' {} Maybe (Sensitive Text)
a -> EnvironmentTemplateVersion
s {$sel:description:EnvironmentTemplateVersion' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: EnvironmentTemplateVersion) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall a. Iso' (Sensitive a) a
Data._Sensitive

-- | The recommended minor version of the environment template.
environmentTemplateVersion_recommendedMinorVersion :: Lens.Lens' EnvironmentTemplateVersion (Prelude.Maybe Prelude.Text)
environmentTemplateVersion_recommendedMinorVersion :: Lens' EnvironmentTemplateVersion (Maybe Text)
environmentTemplateVersion_recommendedMinorVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersion' {Maybe Text
recommendedMinorVersion :: Maybe Text
$sel:recommendedMinorVersion:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Maybe Text
recommendedMinorVersion} -> Maybe Text
recommendedMinorVersion) (\s :: EnvironmentTemplateVersion
s@EnvironmentTemplateVersion' {} Maybe Text
a -> EnvironmentTemplateVersion
s {$sel:recommendedMinorVersion:EnvironmentTemplateVersion' :: Maybe Text
recommendedMinorVersion = Maybe Text
a} :: EnvironmentTemplateVersion)

-- | The schema of the version of an environment template.
environmentTemplateVersion_schema :: Lens.Lens' EnvironmentTemplateVersion (Prelude.Maybe Prelude.Text)
environmentTemplateVersion_schema :: Lens' EnvironmentTemplateVersion (Maybe Text)
environmentTemplateVersion_schema = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersion' {Maybe (Sensitive Text)
schema :: Maybe (Sensitive Text)
$sel:schema:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Maybe (Sensitive Text)
schema} -> Maybe (Sensitive Text)
schema) (\s :: EnvironmentTemplateVersion
s@EnvironmentTemplateVersion' {} Maybe (Sensitive Text)
a -> EnvironmentTemplateVersion
s {$sel:schema:EnvironmentTemplateVersion' :: Maybe (Sensitive Text)
schema = Maybe (Sensitive Text)
a} :: EnvironmentTemplateVersion) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall a. Iso' (Sensitive a) a
Data._Sensitive

-- | The status message of the version of an environment template.
environmentTemplateVersion_statusMessage :: Lens.Lens' EnvironmentTemplateVersion (Prelude.Maybe Prelude.Text)
environmentTemplateVersion_statusMessage :: Lens' EnvironmentTemplateVersion (Maybe Text)
environmentTemplateVersion_statusMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersion' {Maybe (Sensitive Text)
statusMessage :: Maybe (Sensitive Text)
$sel:statusMessage:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Maybe (Sensitive Text)
statusMessage} -> Maybe (Sensitive Text)
statusMessage) (\s :: EnvironmentTemplateVersion
s@EnvironmentTemplateVersion' {} Maybe (Sensitive Text)
a -> EnvironmentTemplateVersion
s {$sel:statusMessage:EnvironmentTemplateVersion' :: Maybe (Sensitive Text)
statusMessage = Maybe (Sensitive Text)
a} :: EnvironmentTemplateVersion) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall a. Iso' (Sensitive a) a
Data._Sensitive

-- | The Amazon Resource Name (ARN) of the version of an environment
-- template.
environmentTemplateVersion_arn :: Lens.Lens' EnvironmentTemplateVersion Prelude.Text
environmentTemplateVersion_arn :: Lens' EnvironmentTemplateVersion Text
environmentTemplateVersion_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersion' {Text
arn :: Text
$sel:arn:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Text
arn} -> Text
arn) (\s :: EnvironmentTemplateVersion
s@EnvironmentTemplateVersion' {} Text
a -> EnvironmentTemplateVersion
s {$sel:arn:EnvironmentTemplateVersion' :: Text
arn = Text
a} :: EnvironmentTemplateVersion)

-- | The time when the version of an environment template was created.
environmentTemplateVersion_createdAt :: Lens.Lens' EnvironmentTemplateVersion Prelude.UTCTime
environmentTemplateVersion_createdAt :: Lens' EnvironmentTemplateVersion UTCTime
environmentTemplateVersion_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersion' {POSIX
createdAt :: POSIX
$sel:createdAt:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> POSIX
createdAt} -> POSIX
createdAt) (\s :: EnvironmentTemplateVersion
s@EnvironmentTemplateVersion' {} POSIX
a -> EnvironmentTemplateVersion
s {$sel:createdAt:EnvironmentTemplateVersion' :: POSIX
createdAt = POSIX
a} :: EnvironmentTemplateVersion) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The time when the version of an environment template was last modified.
environmentTemplateVersion_lastModifiedAt :: Lens.Lens' EnvironmentTemplateVersion Prelude.UTCTime
environmentTemplateVersion_lastModifiedAt :: Lens' EnvironmentTemplateVersion UTCTime
environmentTemplateVersion_lastModifiedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersion' {POSIX
lastModifiedAt :: POSIX
$sel:lastModifiedAt:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> POSIX
lastModifiedAt} -> POSIX
lastModifiedAt) (\s :: EnvironmentTemplateVersion
s@EnvironmentTemplateVersion' {} POSIX
a -> EnvironmentTemplateVersion
s {$sel:lastModifiedAt:EnvironmentTemplateVersion' :: POSIX
lastModifiedAt = POSIX
a} :: EnvironmentTemplateVersion) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The latest major version that\'s associated with the version of an
-- environment template.
environmentTemplateVersion_majorVersion :: Lens.Lens' EnvironmentTemplateVersion Prelude.Text
environmentTemplateVersion_majorVersion :: Lens' EnvironmentTemplateVersion Text
environmentTemplateVersion_majorVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersion' {Text
majorVersion :: Text
$sel:majorVersion:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Text
majorVersion} -> Text
majorVersion) (\s :: EnvironmentTemplateVersion
s@EnvironmentTemplateVersion' {} Text
a -> EnvironmentTemplateVersion
s {$sel:majorVersion:EnvironmentTemplateVersion' :: Text
majorVersion = Text
a} :: EnvironmentTemplateVersion)

-- | The minor version of an environment template.
environmentTemplateVersion_minorVersion :: Lens.Lens' EnvironmentTemplateVersion Prelude.Text
environmentTemplateVersion_minorVersion :: Lens' EnvironmentTemplateVersion Text
environmentTemplateVersion_minorVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersion' {Text
minorVersion :: Text
$sel:minorVersion:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Text
minorVersion} -> Text
minorVersion) (\s :: EnvironmentTemplateVersion
s@EnvironmentTemplateVersion' {} Text
a -> EnvironmentTemplateVersion
s {$sel:minorVersion:EnvironmentTemplateVersion' :: Text
minorVersion = Text
a} :: EnvironmentTemplateVersion)

-- | The status of the version of an environment template.
environmentTemplateVersion_status :: Lens.Lens' EnvironmentTemplateVersion TemplateVersionStatus
environmentTemplateVersion_status :: Lens' EnvironmentTemplateVersion TemplateVersionStatus
environmentTemplateVersion_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersion' {TemplateVersionStatus
status :: TemplateVersionStatus
$sel:status:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> TemplateVersionStatus
status} -> TemplateVersionStatus
status) (\s :: EnvironmentTemplateVersion
s@EnvironmentTemplateVersion' {} TemplateVersionStatus
a -> EnvironmentTemplateVersion
s {$sel:status:EnvironmentTemplateVersion' :: TemplateVersionStatus
status = TemplateVersionStatus
a} :: EnvironmentTemplateVersion)

-- | The name of the version of an environment template.
environmentTemplateVersion_templateName :: Lens.Lens' EnvironmentTemplateVersion Prelude.Text
environmentTemplateVersion_templateName :: Lens' EnvironmentTemplateVersion Text
environmentTemplateVersion_templateName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersion' {Text
templateName :: Text
$sel:templateName:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Text
templateName} -> Text
templateName) (\s :: EnvironmentTemplateVersion
s@EnvironmentTemplateVersion' {} Text
a -> EnvironmentTemplateVersion
s {$sel:templateName:EnvironmentTemplateVersion' :: Text
templateName = Text
a} :: EnvironmentTemplateVersion)

instance Data.FromJSON EnvironmentTemplateVersion where
  parseJSON :: Value -> Parser EnvironmentTemplateVersion
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"EnvironmentTemplateVersion"
      ( \Object
x ->
          Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersion
EnvironmentTemplateVersion'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"description")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"recommendedMinorVersion")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"schema")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"statusMessage")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"arn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"createdAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"lastModifiedAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"majorVersion")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"minorVersion")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"status")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"templateName")
      )

instance Prelude.Hashable EnvironmentTemplateVersion where
  hashWithSalt :: Int -> EnvironmentTemplateVersion -> Int
hashWithSalt Int
_salt EnvironmentTemplateVersion' {Maybe Text
Maybe (Sensitive Text)
Text
POSIX
TemplateVersionStatus
templateName :: Text
status :: TemplateVersionStatus
minorVersion :: Text
majorVersion :: Text
lastModifiedAt :: POSIX
createdAt :: POSIX
arn :: Text
statusMessage :: Maybe (Sensitive Text)
schema :: Maybe (Sensitive Text)
recommendedMinorVersion :: Maybe Text
description :: Maybe (Sensitive Text)
$sel:templateName:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Text
$sel:status:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> TemplateVersionStatus
$sel:minorVersion:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Text
$sel:majorVersion:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Text
$sel:lastModifiedAt:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> POSIX
$sel:createdAt:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> POSIX
$sel:arn:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Text
$sel:statusMessage:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Maybe (Sensitive Text)
$sel:schema:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Maybe (Sensitive Text)
$sel:recommendedMinorVersion:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Maybe Text
$sel:description:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Maybe (Sensitive Text)
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
recommendedMinorVersion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
schema
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
statusMessage
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
arn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
createdAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
lastModifiedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
majorVersion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
minorVersion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` TemplateVersionStatus
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
templateName

instance Prelude.NFData EnvironmentTemplateVersion where
  rnf :: EnvironmentTemplateVersion -> ()
rnf EnvironmentTemplateVersion' {Maybe Text
Maybe (Sensitive Text)
Text
POSIX
TemplateVersionStatus
templateName :: Text
status :: TemplateVersionStatus
minorVersion :: Text
majorVersion :: Text
lastModifiedAt :: POSIX
createdAt :: POSIX
arn :: Text
statusMessage :: Maybe (Sensitive Text)
schema :: Maybe (Sensitive Text)
recommendedMinorVersion :: Maybe Text
description :: Maybe (Sensitive Text)
$sel:templateName:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Text
$sel:status:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> TemplateVersionStatus
$sel:minorVersion:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Text
$sel:majorVersion:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Text
$sel:lastModifiedAt:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> POSIX
$sel:createdAt:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> POSIX
$sel:arn:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Text
$sel:statusMessage:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Maybe (Sensitive Text)
$sel:schema:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Maybe (Sensitive Text)
$sel:recommendedMinorVersion:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Maybe Text
$sel:description:EnvironmentTemplateVersion' :: EnvironmentTemplateVersion -> Maybe (Sensitive Text)
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
recommendedMinorVersion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
schema
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
statusMessage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
createdAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
lastModifiedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
majorVersion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
minorVersion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf TemplateVersionStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
templateName