{-# 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.MigrationHubReFactorSpaces.Types.EnvironmentSummary
-- 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.MigrationHubReFactorSpaces.Types.EnvironmentSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MigrationHubReFactorSpaces.Types.EnvironmentState
import Amazonka.MigrationHubReFactorSpaces.Types.ErrorResponse
import Amazonka.MigrationHubReFactorSpaces.Types.NetworkFabricType
import qualified Amazonka.Prelude as Prelude

-- | The summary information for environments as a response to
-- @ListEnvironments@.
--
-- /See:/ 'newEnvironmentSummary' smart constructor.
data EnvironmentSummary = EnvironmentSummary'
  { -- | The Amazon Resource Name (ARN) of the environment.
    EnvironmentSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | A timestamp that indicates when the environment is created.
    EnvironmentSummary -> Maybe POSIX
createdTime :: Prelude.Maybe Data.POSIX,
    -- | A description of the environment.
    EnvironmentSummary -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier of the environment.
    EnvironmentSummary -> Maybe Text
environmentId :: Prelude.Maybe Prelude.Text,
    -- | Any error associated with the environment resource.
    EnvironmentSummary -> Maybe ErrorResponse
error :: Prelude.Maybe ErrorResponse,
    -- | A timestamp that indicates when the environment was last updated.
    EnvironmentSummary -> Maybe POSIX
lastUpdatedTime :: Prelude.Maybe Data.POSIX,
    -- | The name of the environment.
    EnvironmentSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The network fabric type of the environment.
    EnvironmentSummary -> Maybe NetworkFabricType
networkFabricType :: Prelude.Maybe NetworkFabricType,
    -- | The Amazon Web Services account ID of the environment owner.
    EnvironmentSummary -> Maybe Text
ownerAccountId :: Prelude.Maybe Prelude.Text,
    -- | The current state of the environment.
    EnvironmentSummary -> Maybe EnvironmentState
state :: Prelude.Maybe EnvironmentState,
    -- | The tags assigned to the environment.
    EnvironmentSummary -> Maybe (Sensitive (HashMap Text Text))
tags :: Prelude.Maybe (Data.Sensitive (Prelude.HashMap Prelude.Text Prelude.Text)),
    -- | The ID of the transit gateway set up by the environment.
    EnvironmentSummary -> Maybe Text
transitGatewayId :: Prelude.Maybe Prelude.Text
  }
  deriving (EnvironmentSummary -> EnvironmentSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EnvironmentSummary -> EnvironmentSummary -> Bool
$c/= :: EnvironmentSummary -> EnvironmentSummary -> Bool
== :: EnvironmentSummary -> EnvironmentSummary -> Bool
$c== :: EnvironmentSummary -> EnvironmentSummary -> Bool
Prelude.Eq, Int -> EnvironmentSummary -> ShowS
[EnvironmentSummary] -> ShowS
EnvironmentSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EnvironmentSummary] -> ShowS
$cshowList :: [EnvironmentSummary] -> ShowS
show :: EnvironmentSummary -> String
$cshow :: EnvironmentSummary -> String
showsPrec :: Int -> EnvironmentSummary -> ShowS
$cshowsPrec :: Int -> EnvironmentSummary -> ShowS
Prelude.Show, forall x. Rep EnvironmentSummary x -> EnvironmentSummary
forall x. EnvironmentSummary -> Rep EnvironmentSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EnvironmentSummary x -> EnvironmentSummary
$cfrom :: forall x. EnvironmentSummary -> Rep EnvironmentSummary x
Prelude.Generic)

-- |
-- Create a value of 'EnvironmentSummary' 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:
--
-- 'arn', 'environmentSummary_arn' - The Amazon Resource Name (ARN) of the environment.
--
-- 'createdTime', 'environmentSummary_createdTime' - A timestamp that indicates when the environment is created.
--
-- 'description', 'environmentSummary_description' - A description of the environment.
--
-- 'environmentId', 'environmentSummary_environmentId' - The unique identifier of the environment.
--
-- 'error', 'environmentSummary_error' - Any error associated with the environment resource.
--
-- 'lastUpdatedTime', 'environmentSummary_lastUpdatedTime' - A timestamp that indicates when the environment was last updated.
--
-- 'name', 'environmentSummary_name' - The name of the environment.
--
-- 'networkFabricType', 'environmentSummary_networkFabricType' - The network fabric type of the environment.
--
-- 'ownerAccountId', 'environmentSummary_ownerAccountId' - The Amazon Web Services account ID of the environment owner.
--
-- 'state', 'environmentSummary_state' - The current state of the environment.
--
-- 'tags', 'environmentSummary_tags' - The tags assigned to the environment.
--
-- 'transitGatewayId', 'environmentSummary_transitGatewayId' - The ID of the transit gateway set up by the environment.
newEnvironmentSummary ::
  EnvironmentSummary
newEnvironmentSummary :: EnvironmentSummary
newEnvironmentSummary =
  EnvironmentSummary'
    { $sel:arn:EnvironmentSummary' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:createdTime:EnvironmentSummary' :: Maybe POSIX
createdTime = forall a. Maybe a
Prelude.Nothing,
      $sel:description:EnvironmentSummary' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:environmentId:EnvironmentSummary' :: Maybe Text
environmentId = forall a. Maybe a
Prelude.Nothing,
      $sel:error:EnvironmentSummary' :: Maybe ErrorResponse
error = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedTime:EnvironmentSummary' :: Maybe POSIX
lastUpdatedTime = forall a. Maybe a
Prelude.Nothing,
      $sel:name:EnvironmentSummary' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:networkFabricType:EnvironmentSummary' :: Maybe NetworkFabricType
networkFabricType = forall a. Maybe a
Prelude.Nothing,
      $sel:ownerAccountId:EnvironmentSummary' :: Maybe Text
ownerAccountId = forall a. Maybe a
Prelude.Nothing,
      $sel:state:EnvironmentSummary' :: Maybe EnvironmentState
state = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:EnvironmentSummary' :: Maybe (Sensitive (HashMap Text Text))
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:transitGatewayId:EnvironmentSummary' :: Maybe Text
transitGatewayId = forall a. Maybe a
Prelude.Nothing
    }

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

-- | A timestamp that indicates when the environment is created.
environmentSummary_createdTime :: Lens.Lens' EnvironmentSummary (Prelude.Maybe Prelude.UTCTime)
environmentSummary_createdTime :: Lens' EnvironmentSummary (Maybe UTCTime)
environmentSummary_createdTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentSummary' {Maybe POSIX
createdTime :: Maybe POSIX
$sel:createdTime:EnvironmentSummary' :: EnvironmentSummary -> Maybe POSIX
createdTime} -> Maybe POSIX
createdTime) (\s :: EnvironmentSummary
s@EnvironmentSummary' {} Maybe POSIX
a -> EnvironmentSummary
s {$sel:createdTime:EnvironmentSummary' :: Maybe POSIX
createdTime = Maybe POSIX
a} :: EnvironmentSummary) 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 :: Format). Iso' (Time a) UTCTime
Data._Time

-- | A description of the environment.
environmentSummary_description :: Lens.Lens' EnvironmentSummary (Prelude.Maybe Prelude.Text)
environmentSummary_description :: Lens' EnvironmentSummary (Maybe Text)
environmentSummary_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentSummary' {Maybe Text
description :: Maybe Text
$sel:description:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
description} -> Maybe Text
description) (\s :: EnvironmentSummary
s@EnvironmentSummary' {} Maybe Text
a -> EnvironmentSummary
s {$sel:description:EnvironmentSummary' :: Maybe Text
description = Maybe Text
a} :: EnvironmentSummary)

-- | The unique identifier of the environment.
environmentSummary_environmentId :: Lens.Lens' EnvironmentSummary (Prelude.Maybe Prelude.Text)
environmentSummary_environmentId :: Lens' EnvironmentSummary (Maybe Text)
environmentSummary_environmentId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentSummary' {Maybe Text
environmentId :: Maybe Text
$sel:environmentId:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
environmentId} -> Maybe Text
environmentId) (\s :: EnvironmentSummary
s@EnvironmentSummary' {} Maybe Text
a -> EnvironmentSummary
s {$sel:environmentId:EnvironmentSummary' :: Maybe Text
environmentId = Maybe Text
a} :: EnvironmentSummary)

-- | Any error associated with the environment resource.
environmentSummary_error :: Lens.Lens' EnvironmentSummary (Prelude.Maybe ErrorResponse)
environmentSummary_error :: Lens' EnvironmentSummary (Maybe ErrorResponse)
environmentSummary_error = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentSummary' {Maybe ErrorResponse
error :: Maybe ErrorResponse
$sel:error:EnvironmentSummary' :: EnvironmentSummary -> Maybe ErrorResponse
error} -> Maybe ErrorResponse
error) (\s :: EnvironmentSummary
s@EnvironmentSummary' {} Maybe ErrorResponse
a -> EnvironmentSummary
s {$sel:error:EnvironmentSummary' :: Maybe ErrorResponse
error = Maybe ErrorResponse
a} :: EnvironmentSummary)

-- | A timestamp that indicates when the environment was last updated.
environmentSummary_lastUpdatedTime :: Lens.Lens' EnvironmentSummary (Prelude.Maybe Prelude.UTCTime)
environmentSummary_lastUpdatedTime :: Lens' EnvironmentSummary (Maybe UTCTime)
environmentSummary_lastUpdatedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentSummary' {Maybe POSIX
lastUpdatedTime :: Maybe POSIX
$sel:lastUpdatedTime:EnvironmentSummary' :: EnvironmentSummary -> Maybe POSIX
lastUpdatedTime} -> Maybe POSIX
lastUpdatedTime) (\s :: EnvironmentSummary
s@EnvironmentSummary' {} Maybe POSIX
a -> EnvironmentSummary
s {$sel:lastUpdatedTime:EnvironmentSummary' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
a} :: EnvironmentSummary) 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 :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The name of the environment.
environmentSummary_name :: Lens.Lens' EnvironmentSummary (Prelude.Maybe Prelude.Text)
environmentSummary_name :: Lens' EnvironmentSummary (Maybe Text)
environmentSummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentSummary' {Maybe Text
name :: Maybe Text
$sel:name:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: EnvironmentSummary
s@EnvironmentSummary' {} Maybe Text
a -> EnvironmentSummary
s {$sel:name:EnvironmentSummary' :: Maybe Text
name = Maybe Text
a} :: EnvironmentSummary)

-- | The network fabric type of the environment.
environmentSummary_networkFabricType :: Lens.Lens' EnvironmentSummary (Prelude.Maybe NetworkFabricType)
environmentSummary_networkFabricType :: Lens' EnvironmentSummary (Maybe NetworkFabricType)
environmentSummary_networkFabricType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentSummary' {Maybe NetworkFabricType
networkFabricType :: Maybe NetworkFabricType
$sel:networkFabricType:EnvironmentSummary' :: EnvironmentSummary -> Maybe NetworkFabricType
networkFabricType} -> Maybe NetworkFabricType
networkFabricType) (\s :: EnvironmentSummary
s@EnvironmentSummary' {} Maybe NetworkFabricType
a -> EnvironmentSummary
s {$sel:networkFabricType:EnvironmentSummary' :: Maybe NetworkFabricType
networkFabricType = Maybe NetworkFabricType
a} :: EnvironmentSummary)

-- | The Amazon Web Services account ID of the environment owner.
environmentSummary_ownerAccountId :: Lens.Lens' EnvironmentSummary (Prelude.Maybe Prelude.Text)
environmentSummary_ownerAccountId :: Lens' EnvironmentSummary (Maybe Text)
environmentSummary_ownerAccountId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentSummary' {Maybe Text
ownerAccountId :: Maybe Text
$sel:ownerAccountId:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
ownerAccountId} -> Maybe Text
ownerAccountId) (\s :: EnvironmentSummary
s@EnvironmentSummary' {} Maybe Text
a -> EnvironmentSummary
s {$sel:ownerAccountId:EnvironmentSummary' :: Maybe Text
ownerAccountId = Maybe Text
a} :: EnvironmentSummary)

-- | The current state of the environment.
environmentSummary_state :: Lens.Lens' EnvironmentSummary (Prelude.Maybe EnvironmentState)
environmentSummary_state :: Lens' EnvironmentSummary (Maybe EnvironmentState)
environmentSummary_state = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentSummary' {Maybe EnvironmentState
state :: Maybe EnvironmentState
$sel:state:EnvironmentSummary' :: EnvironmentSummary -> Maybe EnvironmentState
state} -> Maybe EnvironmentState
state) (\s :: EnvironmentSummary
s@EnvironmentSummary' {} Maybe EnvironmentState
a -> EnvironmentSummary
s {$sel:state:EnvironmentSummary' :: Maybe EnvironmentState
state = Maybe EnvironmentState
a} :: EnvironmentSummary)

-- | The tags assigned to the environment.
environmentSummary_tags :: Lens.Lens' EnvironmentSummary (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
environmentSummary_tags :: Lens' EnvironmentSummary (Maybe (HashMap Text Text))
environmentSummary_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentSummary' {Maybe (Sensitive (HashMap Text Text))
tags :: Maybe (Sensitive (HashMap Text Text))
$sel:tags:EnvironmentSummary' :: EnvironmentSummary -> Maybe (Sensitive (HashMap Text Text))
tags} -> Maybe (Sensitive (HashMap Text Text))
tags) (\s :: EnvironmentSummary
s@EnvironmentSummary' {} Maybe (Sensitive (HashMap Text Text))
a -> EnvironmentSummary
s {$sel:tags:EnvironmentSummary' :: Maybe (Sensitive (HashMap Text Text))
tags = Maybe (Sensitive (HashMap Text Text))
a} :: EnvironmentSummary) 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 forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced)

-- | The ID of the transit gateway set up by the environment.
environmentSummary_transitGatewayId :: Lens.Lens' EnvironmentSummary (Prelude.Maybe Prelude.Text)
environmentSummary_transitGatewayId :: Lens' EnvironmentSummary (Maybe Text)
environmentSummary_transitGatewayId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentSummary' {Maybe Text
transitGatewayId :: Maybe Text
$sel:transitGatewayId:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
transitGatewayId} -> Maybe Text
transitGatewayId) (\s :: EnvironmentSummary
s@EnvironmentSummary' {} Maybe Text
a -> EnvironmentSummary
s {$sel:transitGatewayId:EnvironmentSummary' :: Maybe Text
transitGatewayId = Maybe Text
a} :: EnvironmentSummary)

instance Data.FromJSON EnvironmentSummary where
  parseJSON :: Value -> Parser EnvironmentSummary
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"EnvironmentSummary"
      ( \Object
x ->
          Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ErrorResponse
-> Maybe POSIX
-> Maybe Text
-> Maybe NetworkFabricType
-> Maybe Text
-> Maybe EnvironmentState
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe Text
-> EnvironmentSummary
EnvironmentSummary'
            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
"Arn")
            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
"CreatedTime")
            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
"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
"EnvironmentId")
            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
"Error")
            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
"LastUpdatedTime")
            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
"Name")
            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
"NetworkFabricType")
            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
"OwnerAccountId")
            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
"State")
            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
"Tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            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
"TransitGatewayId")
      )

instance Prelude.Hashable EnvironmentSummary where
  hashWithSalt :: Int -> EnvironmentSummary -> Int
hashWithSalt Int
_salt EnvironmentSummary' {Maybe Text
Maybe (Sensitive (HashMap Text Text))
Maybe POSIX
Maybe EnvironmentState
Maybe ErrorResponse
Maybe NetworkFabricType
transitGatewayId :: Maybe Text
tags :: Maybe (Sensitive (HashMap Text Text))
state :: Maybe EnvironmentState
ownerAccountId :: Maybe Text
networkFabricType :: Maybe NetworkFabricType
name :: Maybe Text
lastUpdatedTime :: Maybe POSIX
error :: Maybe ErrorResponse
environmentId :: Maybe Text
description :: Maybe Text
createdTime :: Maybe POSIX
arn :: Maybe Text
$sel:transitGatewayId:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
$sel:tags:EnvironmentSummary' :: EnvironmentSummary -> Maybe (Sensitive (HashMap Text Text))
$sel:state:EnvironmentSummary' :: EnvironmentSummary -> Maybe EnvironmentState
$sel:ownerAccountId:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
$sel:networkFabricType:EnvironmentSummary' :: EnvironmentSummary -> Maybe NetworkFabricType
$sel:name:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
$sel:lastUpdatedTime:EnvironmentSummary' :: EnvironmentSummary -> Maybe POSIX
$sel:error:EnvironmentSummary' :: EnvironmentSummary -> Maybe ErrorResponse
$sel:environmentId:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
$sel:description:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
$sel:createdTime:EnvironmentSummary' :: EnvironmentSummary -> Maybe POSIX
$sel:arn:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
createdTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
environmentId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ErrorResponse
error
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdatedTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe NetworkFabricType
networkFabricType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
ownerAccountId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EnvironmentState
state
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive (HashMap Text Text))
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
transitGatewayId

instance Prelude.NFData EnvironmentSummary where
  rnf :: EnvironmentSummary -> ()
rnf EnvironmentSummary' {Maybe Text
Maybe (Sensitive (HashMap Text Text))
Maybe POSIX
Maybe EnvironmentState
Maybe ErrorResponse
Maybe NetworkFabricType
transitGatewayId :: Maybe Text
tags :: Maybe (Sensitive (HashMap Text Text))
state :: Maybe EnvironmentState
ownerAccountId :: Maybe Text
networkFabricType :: Maybe NetworkFabricType
name :: Maybe Text
lastUpdatedTime :: Maybe POSIX
error :: Maybe ErrorResponse
environmentId :: Maybe Text
description :: Maybe Text
createdTime :: Maybe POSIX
arn :: Maybe Text
$sel:transitGatewayId:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
$sel:tags:EnvironmentSummary' :: EnvironmentSummary -> Maybe (Sensitive (HashMap Text Text))
$sel:state:EnvironmentSummary' :: EnvironmentSummary -> Maybe EnvironmentState
$sel:ownerAccountId:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
$sel:networkFabricType:EnvironmentSummary' :: EnvironmentSummary -> Maybe NetworkFabricType
$sel:name:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
$sel:lastUpdatedTime:EnvironmentSummary' :: EnvironmentSummary -> Maybe POSIX
$sel:error:EnvironmentSummary' :: EnvironmentSummary -> Maybe ErrorResponse
$sel:environmentId:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
$sel:description:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
$sel:createdTime:EnvironmentSummary' :: EnvironmentSummary -> Maybe POSIX
$sel:arn:EnvironmentSummary' :: EnvironmentSummary -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
environmentId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ErrorResponse
error
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe NetworkFabricType
networkFabricType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
ownerAccountId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EnvironmentState
state
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive (HashMap Text Text))
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
transitGatewayId