{-# 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.FinSpace.Types.Environment
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.FinSpace.Types.Environment where

import qualified Amazonka.Core as Core
import Amazonka.FinSpace.Types.EnvironmentStatus
import Amazonka.FinSpace.Types.FederationMode
import Amazonka.FinSpace.Types.FederationParameters
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Represents an FinSpace environment.
--
-- /See:/ 'newEnvironment' smart constructor.
data Environment = Environment'
  { -- | The current status of creation of the FinSpace environment.
    Environment -> Maybe EnvironmentStatus
status :: Prelude.Maybe EnvironmentStatus,
    -- | Configuration information when authentication mode is FEDERATED.
    Environment -> Maybe FederationParameters
federationParameters :: Prelude.Maybe FederationParameters,
    -- | The AWS account ID of the dedicated service account associated with your
    -- FinSpace environment.
    Environment -> Maybe Text
dedicatedServiceAccountId :: Prelude.Maybe Prelude.Text,
    -- | The sign-in url for the web application of your FinSpace environment.
    Environment -> Maybe Text
environmentUrl :: Prelude.Maybe Prelude.Text,
    -- | The authentication mode for the environment.
    Environment -> Maybe FederationMode
federationMode :: Prelude.Maybe FederationMode,
    -- | The ID of the AWS account in which the FinSpace environment is created.
    Environment -> Maybe Text
awsAccountId :: Prelude.Maybe Prelude.Text,
    -- | The name of the FinSpace environment.
    Environment -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The KMS key id used to encrypt in the FinSpace environment.
    Environment -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the FinSpace environment.
    Environment -> Maybe Text
environmentId :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of your FinSpace environment.
    Environment -> Maybe Text
environmentArn :: Prelude.Maybe Prelude.Text,
    -- | The url of the integrated FinSpace notebook environment in your web
    -- application.
    Environment -> Maybe Text
sageMakerStudioDomainUrl :: Prelude.Maybe Prelude.Text,
    -- | The description of the FinSpace environment.
    Environment -> Maybe Text
description :: Prelude.Maybe Prelude.Text
  }
  deriving (Environment -> Environment -> Bool
(Environment -> Environment -> Bool)
-> (Environment -> Environment -> Bool) -> Eq Environment
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Environment -> Environment -> Bool
$c/= :: Environment -> Environment -> Bool
== :: Environment -> Environment -> Bool
$c== :: Environment -> Environment -> Bool
Prelude.Eq, ReadPrec [Environment]
ReadPrec Environment
Int -> ReadS Environment
ReadS [Environment]
(Int -> ReadS Environment)
-> ReadS [Environment]
-> ReadPrec Environment
-> ReadPrec [Environment]
-> Read Environment
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Environment]
$creadListPrec :: ReadPrec [Environment]
readPrec :: ReadPrec Environment
$creadPrec :: ReadPrec Environment
readList :: ReadS [Environment]
$creadList :: ReadS [Environment]
readsPrec :: Int -> ReadS Environment
$creadsPrec :: Int -> ReadS Environment
Prelude.Read, Int -> Environment -> ShowS
[Environment] -> ShowS
Environment -> String
(Int -> Environment -> ShowS)
-> (Environment -> String)
-> ([Environment] -> ShowS)
-> Show Environment
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Environment] -> ShowS
$cshowList :: [Environment] -> ShowS
show :: Environment -> String
$cshow :: Environment -> String
showsPrec :: Int -> Environment -> ShowS
$cshowsPrec :: Int -> Environment -> ShowS
Prelude.Show, (forall x. Environment -> Rep Environment x)
-> (forall x. Rep Environment x -> Environment)
-> Generic Environment
forall x. Rep Environment x -> Environment
forall x. Environment -> Rep Environment x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Environment x -> Environment
$cfrom :: forall x. Environment -> Rep Environment x
Prelude.Generic)

-- |
-- Create a value of 'Environment' 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:
--
-- 'status', 'environment_status' - The current status of creation of the FinSpace environment.
--
-- 'federationParameters', 'environment_federationParameters' - Configuration information when authentication mode is FEDERATED.
--
-- 'dedicatedServiceAccountId', 'environment_dedicatedServiceAccountId' - The AWS account ID of the dedicated service account associated with your
-- FinSpace environment.
--
-- 'environmentUrl', 'environment_environmentUrl' - The sign-in url for the web application of your FinSpace environment.
--
-- 'federationMode', 'environment_federationMode' - The authentication mode for the environment.
--
-- 'awsAccountId', 'environment_awsAccountId' - The ID of the AWS account in which the FinSpace environment is created.
--
-- 'name', 'environment_name' - The name of the FinSpace environment.
--
-- 'kmsKeyId', 'environment_kmsKeyId' - The KMS key id used to encrypt in the FinSpace environment.
--
-- 'environmentId', 'environment_environmentId' - The identifier of the FinSpace environment.
--
-- 'environmentArn', 'environment_environmentArn' - The Amazon Resource Name (ARN) of your FinSpace environment.
--
-- 'sageMakerStudioDomainUrl', 'environment_sageMakerStudioDomainUrl' - The url of the integrated FinSpace notebook environment in your web
-- application.
--
-- 'description', 'environment_description' - The description of the FinSpace environment.
newEnvironment ::
  Environment
newEnvironment :: Environment
newEnvironment =
  Environment' :: Maybe EnvironmentStatus
-> Maybe FederationParameters
-> Maybe Text
-> Maybe Text
-> Maybe FederationMode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Environment
Environment'
    { $sel:status:Environment' :: Maybe EnvironmentStatus
status = Maybe EnvironmentStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:federationParameters:Environment' :: Maybe FederationParameters
federationParameters = Maybe FederationParameters
forall a. Maybe a
Prelude.Nothing,
      $sel:dedicatedServiceAccountId:Environment' :: Maybe Text
dedicatedServiceAccountId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:environmentUrl:Environment' :: Maybe Text
environmentUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:federationMode:Environment' :: Maybe FederationMode
federationMode = Maybe FederationMode
forall a. Maybe a
Prelude.Nothing,
      $sel:awsAccountId:Environment' :: Maybe Text
awsAccountId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:Environment' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:kmsKeyId:Environment' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:environmentId:Environment' :: Maybe Text
environmentId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:environmentArn:Environment' :: Maybe Text
environmentArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sageMakerStudioDomainUrl:Environment' :: Maybe Text
sageMakerStudioDomainUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:description:Environment' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The current status of creation of the FinSpace environment.
environment_status :: Lens.Lens' Environment (Prelude.Maybe EnvironmentStatus)
environment_status :: (Maybe EnvironmentStatus -> f (Maybe EnvironmentStatus))
-> Environment -> f Environment
environment_status = (Environment -> Maybe EnvironmentStatus)
-> (Environment -> Maybe EnvironmentStatus -> Environment)
-> Lens
     Environment
     Environment
     (Maybe EnvironmentStatus)
     (Maybe EnvironmentStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Environment' {Maybe EnvironmentStatus
status :: Maybe EnvironmentStatus
$sel:status:Environment' :: Environment -> Maybe EnvironmentStatus
status} -> Maybe EnvironmentStatus
status) (\s :: Environment
s@Environment' {} Maybe EnvironmentStatus
a -> Environment
s {$sel:status:Environment' :: Maybe EnvironmentStatus
status = Maybe EnvironmentStatus
a} :: Environment)

-- | Configuration information when authentication mode is FEDERATED.
environment_federationParameters :: Lens.Lens' Environment (Prelude.Maybe FederationParameters)
environment_federationParameters :: (Maybe FederationParameters -> f (Maybe FederationParameters))
-> Environment -> f Environment
environment_federationParameters = (Environment -> Maybe FederationParameters)
-> (Environment -> Maybe FederationParameters -> Environment)
-> Lens
     Environment
     Environment
     (Maybe FederationParameters)
     (Maybe FederationParameters)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Environment' {Maybe FederationParameters
federationParameters :: Maybe FederationParameters
$sel:federationParameters:Environment' :: Environment -> Maybe FederationParameters
federationParameters} -> Maybe FederationParameters
federationParameters) (\s :: Environment
s@Environment' {} Maybe FederationParameters
a -> Environment
s {$sel:federationParameters:Environment' :: Maybe FederationParameters
federationParameters = Maybe FederationParameters
a} :: Environment)

-- | The AWS account ID of the dedicated service account associated with your
-- FinSpace environment.
environment_dedicatedServiceAccountId :: Lens.Lens' Environment (Prelude.Maybe Prelude.Text)
environment_dedicatedServiceAccountId :: (Maybe Text -> f (Maybe Text)) -> Environment -> f Environment
environment_dedicatedServiceAccountId = (Environment -> Maybe Text)
-> (Environment -> Maybe Text -> Environment)
-> Lens Environment Environment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Environment' {Maybe Text
dedicatedServiceAccountId :: Maybe Text
$sel:dedicatedServiceAccountId:Environment' :: Environment -> Maybe Text
dedicatedServiceAccountId} -> Maybe Text
dedicatedServiceAccountId) (\s :: Environment
s@Environment' {} Maybe Text
a -> Environment
s {$sel:dedicatedServiceAccountId:Environment' :: Maybe Text
dedicatedServiceAccountId = Maybe Text
a} :: Environment)

-- | The sign-in url for the web application of your FinSpace environment.
environment_environmentUrl :: Lens.Lens' Environment (Prelude.Maybe Prelude.Text)
environment_environmentUrl :: (Maybe Text -> f (Maybe Text)) -> Environment -> f Environment
environment_environmentUrl = (Environment -> Maybe Text)
-> (Environment -> Maybe Text -> Environment)
-> Lens Environment Environment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Environment' {Maybe Text
environmentUrl :: Maybe Text
$sel:environmentUrl:Environment' :: Environment -> Maybe Text
environmentUrl} -> Maybe Text
environmentUrl) (\s :: Environment
s@Environment' {} Maybe Text
a -> Environment
s {$sel:environmentUrl:Environment' :: Maybe Text
environmentUrl = Maybe Text
a} :: Environment)

-- | The authentication mode for the environment.
environment_federationMode :: Lens.Lens' Environment (Prelude.Maybe FederationMode)
environment_federationMode :: (Maybe FederationMode -> f (Maybe FederationMode))
-> Environment -> f Environment
environment_federationMode = (Environment -> Maybe FederationMode)
-> (Environment -> Maybe FederationMode -> Environment)
-> Lens
     Environment
     Environment
     (Maybe FederationMode)
     (Maybe FederationMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Environment' {Maybe FederationMode
federationMode :: Maybe FederationMode
$sel:federationMode:Environment' :: Environment -> Maybe FederationMode
federationMode} -> Maybe FederationMode
federationMode) (\s :: Environment
s@Environment' {} Maybe FederationMode
a -> Environment
s {$sel:federationMode:Environment' :: Maybe FederationMode
federationMode = Maybe FederationMode
a} :: Environment)

-- | The ID of the AWS account in which the FinSpace environment is created.
environment_awsAccountId :: Lens.Lens' Environment (Prelude.Maybe Prelude.Text)
environment_awsAccountId :: (Maybe Text -> f (Maybe Text)) -> Environment -> f Environment
environment_awsAccountId = (Environment -> Maybe Text)
-> (Environment -> Maybe Text -> Environment)
-> Lens Environment Environment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Environment' {Maybe Text
awsAccountId :: Maybe Text
$sel:awsAccountId:Environment' :: Environment -> Maybe Text
awsAccountId} -> Maybe Text
awsAccountId) (\s :: Environment
s@Environment' {} Maybe Text
a -> Environment
s {$sel:awsAccountId:Environment' :: Maybe Text
awsAccountId = Maybe Text
a} :: Environment)

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

-- | The KMS key id used to encrypt in the FinSpace environment.
environment_kmsKeyId :: Lens.Lens' Environment (Prelude.Maybe Prelude.Text)
environment_kmsKeyId :: (Maybe Text -> f (Maybe Text)) -> Environment -> f Environment
environment_kmsKeyId = (Environment -> Maybe Text)
-> (Environment -> Maybe Text -> Environment)
-> Lens Environment Environment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Environment' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:Environment' :: Environment -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: Environment
s@Environment' {} Maybe Text
a -> Environment
s {$sel:kmsKeyId:Environment' :: Maybe Text
kmsKeyId = Maybe Text
a} :: Environment)

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

-- | The Amazon Resource Name (ARN) of your FinSpace environment.
environment_environmentArn :: Lens.Lens' Environment (Prelude.Maybe Prelude.Text)
environment_environmentArn :: (Maybe Text -> f (Maybe Text)) -> Environment -> f Environment
environment_environmentArn = (Environment -> Maybe Text)
-> (Environment -> Maybe Text -> Environment)
-> Lens Environment Environment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Environment' {Maybe Text
environmentArn :: Maybe Text
$sel:environmentArn:Environment' :: Environment -> Maybe Text
environmentArn} -> Maybe Text
environmentArn) (\s :: Environment
s@Environment' {} Maybe Text
a -> Environment
s {$sel:environmentArn:Environment' :: Maybe Text
environmentArn = Maybe Text
a} :: Environment)

-- | The url of the integrated FinSpace notebook environment in your web
-- application.
environment_sageMakerStudioDomainUrl :: Lens.Lens' Environment (Prelude.Maybe Prelude.Text)
environment_sageMakerStudioDomainUrl :: (Maybe Text -> f (Maybe Text)) -> Environment -> f Environment
environment_sageMakerStudioDomainUrl = (Environment -> Maybe Text)
-> (Environment -> Maybe Text -> Environment)
-> Lens Environment Environment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Environment' {Maybe Text
sageMakerStudioDomainUrl :: Maybe Text
$sel:sageMakerStudioDomainUrl:Environment' :: Environment -> Maybe Text
sageMakerStudioDomainUrl} -> Maybe Text
sageMakerStudioDomainUrl) (\s :: Environment
s@Environment' {} Maybe Text
a -> Environment
s {$sel:sageMakerStudioDomainUrl:Environment' :: Maybe Text
sageMakerStudioDomainUrl = Maybe Text
a} :: Environment)

-- | The description of the FinSpace environment.
environment_description :: Lens.Lens' Environment (Prelude.Maybe Prelude.Text)
environment_description :: (Maybe Text -> f (Maybe Text)) -> Environment -> f Environment
environment_description = (Environment -> Maybe Text)
-> (Environment -> Maybe Text -> Environment)
-> Lens Environment Environment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Environment' {Maybe Text
description :: Maybe Text
$sel:description:Environment' :: Environment -> Maybe Text
description} -> Maybe Text
description) (\s :: Environment
s@Environment' {} Maybe Text
a -> Environment
s {$sel:description:Environment' :: Maybe Text
description = Maybe Text
a} :: Environment)

instance Core.FromJSON Environment where
  parseJSON :: Value -> Parser Environment
parseJSON =
    String
-> (Object -> Parser Environment) -> Value -> Parser Environment
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"Environment"
      ( \Object
x ->
          Maybe EnvironmentStatus
-> Maybe FederationParameters
-> Maybe Text
-> Maybe Text
-> Maybe FederationMode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Environment
Environment'
            (Maybe EnvironmentStatus
 -> Maybe FederationParameters
 -> Maybe Text
 -> Maybe Text
 -> Maybe FederationMode
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Environment)
-> Parser (Maybe EnvironmentStatus)
-> Parser
     (Maybe FederationParameters
      -> Maybe Text
      -> Maybe Text
      -> Maybe FederationMode
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Environment)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe EnvironmentStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"status")
            Parser
  (Maybe FederationParameters
   -> Maybe Text
   -> Maybe Text
   -> Maybe FederationMode
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Environment)
-> Parser (Maybe FederationParameters)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe FederationMode
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Environment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe FederationParameters)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"federationParameters")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe FederationMode
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Environment)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe FederationMode
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Environment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"dedicatedServiceAccountId")
            Parser
  (Maybe Text
   -> Maybe FederationMode
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Environment)
-> Parser (Maybe Text)
-> Parser
     (Maybe FederationMode
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Environment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"environmentUrl")
            Parser
  (Maybe FederationMode
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Environment)
-> Parser (Maybe FederationMode)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Environment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe FederationMode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"federationMode")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Environment)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Environment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"awsAccountId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Environment)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Environment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"name")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Environment)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text -> Maybe Text -> Maybe Text -> Environment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"kmsKeyId")
            Parser
  (Maybe Text
   -> Maybe Text -> Maybe Text -> Maybe Text -> Environment)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> Maybe Text -> Environment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"environmentId")
            Parser (Maybe Text -> Maybe Text -> Maybe Text -> Environment)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> Environment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"environmentArn")
            Parser (Maybe Text -> Maybe Text -> Environment)
-> Parser (Maybe Text) -> Parser (Maybe Text -> Environment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"sageMakerStudioDomainUrl")
            Parser (Maybe Text -> Environment)
-> Parser (Maybe Text) -> Parser Environment
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"description")
      )

instance Prelude.Hashable Environment

instance Prelude.NFData Environment