{-# 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.EMR.Types.Studio
-- 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.EMR.Types.Studio where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EMR.Types.AuthMode
import Amazonka.EMR.Types.Tag
import qualified Amazonka.Prelude as Prelude

-- | Details for an Amazon EMR Studio including ID, creation time, name, and
-- so on.
--
-- /See:/ 'newStudio' smart constructor.
data Studio = Studio'
  { -- | Specifies whether the Amazon EMR Studio authenticates users using IAM or
    -- IAM Identity Center.
    Studio -> Maybe AuthMode
authMode :: Prelude.Maybe AuthMode,
    -- | The time the Amazon EMR Studio was created.
    Studio -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    -- | The Amazon S3 location to back up Amazon EMR Studio Workspaces and
    -- notebook files.
    Studio -> Maybe Text
defaultS3Location :: Prelude.Maybe Prelude.Text,
    -- | The detailed description of the Amazon EMR Studio.
    Studio -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Engine security group associated with the Amazon EMR
    -- Studio. The Engine security group allows inbound network traffic from
    -- resources in the Workspace security group.
    Studio -> Maybe Text
engineSecurityGroupId :: Prelude.Maybe Prelude.Text,
    -- | Your identity provider\'s authentication endpoint. Amazon EMR Studio
    -- redirects federated users to this endpoint for authentication when
    -- logging in to a Studio with the Studio URL.
    Studio -> Maybe Text
idpAuthUrl :: Prelude.Maybe Prelude.Text,
    -- | The name of your identity provider\'s @RelayState@ parameter.
    Studio -> Maybe Text
idpRelayStateParameterName :: Prelude.Maybe Prelude.Text,
    -- | The name of the Amazon EMR Studio.
    Studio -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The name of the IAM role assumed by the Amazon EMR Studio.
    Studio -> Maybe Text
serviceRole :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the Amazon EMR Studio.
    Studio -> Maybe Text
studioArn :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Amazon EMR Studio.
    Studio -> Maybe Text
studioId :: Prelude.Maybe Prelude.Text,
    -- | The list of IDs of the subnets associated with the Amazon EMR Studio.
    Studio -> Maybe [Text]
subnetIds :: Prelude.Maybe [Prelude.Text],
    -- | A list of tags associated with the Amazon EMR Studio.
    Studio -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | The unique access URL of the Amazon EMR Studio.
    Studio -> Maybe Text
url :: Prelude.Maybe Prelude.Text,
    -- | The name of the IAM role assumed by users logged in to the Amazon EMR
    -- Studio. A Studio only requires a @UserRole@ when you use IAM
    -- authentication.
    Studio -> Maybe Text
userRole :: Prelude.Maybe Prelude.Text,
    -- | The ID of the VPC associated with the Amazon EMR Studio.
    Studio -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Workspace security group associated with the Amazon EMR
    -- Studio. The Workspace security group allows outbound network traffic to
    -- resources in the Engine security group and to the internet.
    Studio -> Maybe Text
workspaceSecurityGroupId :: Prelude.Maybe Prelude.Text
  }
  deriving (Studio -> Studio -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Studio -> Studio -> Bool
$c/= :: Studio -> Studio -> Bool
== :: Studio -> Studio -> Bool
$c== :: Studio -> Studio -> Bool
Prelude.Eq, ReadPrec [Studio]
ReadPrec Studio
Int -> ReadS Studio
ReadS [Studio]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Studio]
$creadListPrec :: ReadPrec [Studio]
readPrec :: ReadPrec Studio
$creadPrec :: ReadPrec Studio
readList :: ReadS [Studio]
$creadList :: ReadS [Studio]
readsPrec :: Int -> ReadS Studio
$creadsPrec :: Int -> ReadS Studio
Prelude.Read, Int -> Studio -> ShowS
[Studio] -> ShowS
Studio -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Studio] -> ShowS
$cshowList :: [Studio] -> ShowS
show :: Studio -> String
$cshow :: Studio -> String
showsPrec :: Int -> Studio -> ShowS
$cshowsPrec :: Int -> Studio -> ShowS
Prelude.Show, forall x. Rep Studio x -> Studio
forall x. Studio -> Rep Studio x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Studio x -> Studio
$cfrom :: forall x. Studio -> Rep Studio x
Prelude.Generic)

-- |
-- Create a value of 'Studio' 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:
--
-- 'authMode', 'studio_authMode' - Specifies whether the Amazon EMR Studio authenticates users using IAM or
-- IAM Identity Center.
--
-- 'creationTime', 'studio_creationTime' - The time the Amazon EMR Studio was created.
--
-- 'defaultS3Location', 'studio_defaultS3Location' - The Amazon S3 location to back up Amazon EMR Studio Workspaces and
-- notebook files.
--
-- 'description', 'studio_description' - The detailed description of the Amazon EMR Studio.
--
-- 'engineSecurityGroupId', 'studio_engineSecurityGroupId' - The ID of the Engine security group associated with the Amazon EMR
-- Studio. The Engine security group allows inbound network traffic from
-- resources in the Workspace security group.
--
-- 'idpAuthUrl', 'studio_idpAuthUrl' - Your identity provider\'s authentication endpoint. Amazon EMR Studio
-- redirects federated users to this endpoint for authentication when
-- logging in to a Studio with the Studio URL.
--
-- 'idpRelayStateParameterName', 'studio_idpRelayStateParameterName' - The name of your identity provider\'s @RelayState@ parameter.
--
-- 'name', 'studio_name' - The name of the Amazon EMR Studio.
--
-- 'serviceRole', 'studio_serviceRole' - The name of the IAM role assumed by the Amazon EMR Studio.
--
-- 'studioArn', 'studio_studioArn' - The Amazon Resource Name (ARN) of the Amazon EMR Studio.
--
-- 'studioId', 'studio_studioId' - The ID of the Amazon EMR Studio.
--
-- 'subnetIds', 'studio_subnetIds' - The list of IDs of the subnets associated with the Amazon EMR Studio.
--
-- 'tags', 'studio_tags' - A list of tags associated with the Amazon EMR Studio.
--
-- 'url', 'studio_url' - The unique access URL of the Amazon EMR Studio.
--
-- 'userRole', 'studio_userRole' - The name of the IAM role assumed by users logged in to the Amazon EMR
-- Studio. A Studio only requires a @UserRole@ when you use IAM
-- authentication.
--
-- 'vpcId', 'studio_vpcId' - The ID of the VPC associated with the Amazon EMR Studio.
--
-- 'workspaceSecurityGroupId', 'studio_workspaceSecurityGroupId' - The ID of the Workspace security group associated with the Amazon EMR
-- Studio. The Workspace security group allows outbound network traffic to
-- resources in the Engine security group and to the internet.
newStudio ::
  Studio
newStudio :: Studio
newStudio =
  Studio'
    { $sel:authMode:Studio' :: Maybe AuthMode
authMode = forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:Studio' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:defaultS3Location:Studio' :: Maybe Text
defaultS3Location = forall a. Maybe a
Prelude.Nothing,
      $sel:description:Studio' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:engineSecurityGroupId:Studio' :: Maybe Text
engineSecurityGroupId = forall a. Maybe a
Prelude.Nothing,
      $sel:idpAuthUrl:Studio' :: Maybe Text
idpAuthUrl = forall a. Maybe a
Prelude.Nothing,
      $sel:idpRelayStateParameterName:Studio' :: Maybe Text
idpRelayStateParameterName = forall a. Maybe a
Prelude.Nothing,
      $sel:name:Studio' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:serviceRole:Studio' :: Maybe Text
serviceRole = forall a. Maybe a
Prelude.Nothing,
      $sel:studioArn:Studio' :: Maybe Text
studioArn = forall a. Maybe a
Prelude.Nothing,
      $sel:studioId:Studio' :: Maybe Text
studioId = forall a. Maybe a
Prelude.Nothing,
      $sel:subnetIds:Studio' :: Maybe [Text]
subnetIds = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:Studio' :: Maybe [Tag]
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:url:Studio' :: Maybe Text
url = forall a. Maybe a
Prelude.Nothing,
      $sel:userRole:Studio' :: Maybe Text
userRole = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcId:Studio' :: Maybe Text
vpcId = forall a. Maybe a
Prelude.Nothing,
      $sel:workspaceSecurityGroupId:Studio' :: Maybe Text
workspaceSecurityGroupId = forall a. Maybe a
Prelude.Nothing
    }

-- | Specifies whether the Amazon EMR Studio authenticates users using IAM or
-- IAM Identity Center.
studio_authMode :: Lens.Lens' Studio (Prelude.Maybe AuthMode)
studio_authMode :: Lens' Studio (Maybe AuthMode)
studio_authMode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe AuthMode
authMode :: Maybe AuthMode
$sel:authMode:Studio' :: Studio -> Maybe AuthMode
authMode} -> Maybe AuthMode
authMode) (\s :: Studio
s@Studio' {} Maybe AuthMode
a -> Studio
s {$sel:authMode:Studio' :: Maybe AuthMode
authMode = Maybe AuthMode
a} :: Studio)

-- | The time the Amazon EMR Studio was created.
studio_creationTime :: Lens.Lens' Studio (Prelude.Maybe Prelude.UTCTime)
studio_creationTime :: Lens' Studio (Maybe UTCTime)
studio_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:Studio' :: Studio -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: Studio
s@Studio' {} Maybe POSIX
a -> Studio
s {$sel:creationTime:Studio' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: Studio) 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 Amazon S3 location to back up Amazon EMR Studio Workspaces and
-- notebook files.
studio_defaultS3Location :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_defaultS3Location :: Lens' Studio (Maybe Text)
studio_defaultS3Location = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
defaultS3Location :: Maybe Text
$sel:defaultS3Location:Studio' :: Studio -> Maybe Text
defaultS3Location} -> Maybe Text
defaultS3Location) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:defaultS3Location:Studio' :: Maybe Text
defaultS3Location = Maybe Text
a} :: Studio)

-- | The detailed description of the Amazon EMR Studio.
studio_description :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_description :: Lens' Studio (Maybe Text)
studio_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
description :: Maybe Text
$sel:description:Studio' :: Studio -> Maybe Text
description} -> Maybe Text
description) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:description:Studio' :: Maybe Text
description = Maybe Text
a} :: Studio)

-- | The ID of the Engine security group associated with the Amazon EMR
-- Studio. The Engine security group allows inbound network traffic from
-- resources in the Workspace security group.
studio_engineSecurityGroupId :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_engineSecurityGroupId :: Lens' Studio (Maybe Text)
studio_engineSecurityGroupId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
engineSecurityGroupId :: Maybe Text
$sel:engineSecurityGroupId:Studio' :: Studio -> Maybe Text
engineSecurityGroupId} -> Maybe Text
engineSecurityGroupId) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:engineSecurityGroupId:Studio' :: Maybe Text
engineSecurityGroupId = Maybe Text
a} :: Studio)

-- | Your identity provider\'s authentication endpoint. Amazon EMR Studio
-- redirects federated users to this endpoint for authentication when
-- logging in to a Studio with the Studio URL.
studio_idpAuthUrl :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_idpAuthUrl :: Lens' Studio (Maybe Text)
studio_idpAuthUrl = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
idpAuthUrl :: Maybe Text
$sel:idpAuthUrl:Studio' :: Studio -> Maybe Text
idpAuthUrl} -> Maybe Text
idpAuthUrl) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:idpAuthUrl:Studio' :: Maybe Text
idpAuthUrl = Maybe Text
a} :: Studio)

-- | The name of your identity provider\'s @RelayState@ parameter.
studio_idpRelayStateParameterName :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_idpRelayStateParameterName :: Lens' Studio (Maybe Text)
studio_idpRelayStateParameterName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
idpRelayStateParameterName :: Maybe Text
$sel:idpRelayStateParameterName:Studio' :: Studio -> Maybe Text
idpRelayStateParameterName} -> Maybe Text
idpRelayStateParameterName) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:idpRelayStateParameterName:Studio' :: Maybe Text
idpRelayStateParameterName = Maybe Text
a} :: Studio)

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

-- | The name of the IAM role assumed by the Amazon EMR Studio.
studio_serviceRole :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_serviceRole :: Lens' Studio (Maybe Text)
studio_serviceRole = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
serviceRole :: Maybe Text
$sel:serviceRole:Studio' :: Studio -> Maybe Text
serviceRole} -> Maybe Text
serviceRole) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:serviceRole:Studio' :: Maybe Text
serviceRole = Maybe Text
a} :: Studio)

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

-- | The ID of the Amazon EMR Studio.
studio_studioId :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_studioId :: Lens' Studio (Maybe Text)
studio_studioId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
studioId :: Maybe Text
$sel:studioId:Studio' :: Studio -> Maybe Text
studioId} -> Maybe Text
studioId) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:studioId:Studio' :: Maybe Text
studioId = Maybe Text
a} :: Studio)

-- | The list of IDs of the subnets associated with the Amazon EMR Studio.
studio_subnetIds :: Lens.Lens' Studio (Prelude.Maybe [Prelude.Text])
studio_subnetIds :: Lens' Studio (Maybe [Text])
studio_subnetIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe [Text]
subnetIds :: Maybe [Text]
$sel:subnetIds:Studio' :: Studio -> Maybe [Text]
subnetIds} -> Maybe [Text]
subnetIds) (\s :: Studio
s@Studio' {} Maybe [Text]
a -> Studio
s {$sel:subnetIds:Studio' :: Maybe [Text]
subnetIds = Maybe [Text]
a} :: Studio) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list of tags associated with the Amazon EMR Studio.
studio_tags :: Lens.Lens' Studio (Prelude.Maybe [Tag])
studio_tags :: Lens' Studio (Maybe [Tag])
studio_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:Studio' :: Studio -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: Studio
s@Studio' {} Maybe [Tag]
a -> Studio
s {$sel:tags:Studio' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: Studio) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The unique access URL of the Amazon EMR Studio.
studio_url :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_url :: Lens' Studio (Maybe Text)
studio_url = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
url :: Maybe Text
$sel:url:Studio' :: Studio -> Maybe Text
url} -> Maybe Text
url) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:url:Studio' :: Maybe Text
url = Maybe Text
a} :: Studio)

-- | The name of the IAM role assumed by users logged in to the Amazon EMR
-- Studio. A Studio only requires a @UserRole@ when you use IAM
-- authentication.
studio_userRole :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_userRole :: Lens' Studio (Maybe Text)
studio_userRole = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
userRole :: Maybe Text
$sel:userRole:Studio' :: Studio -> Maybe Text
userRole} -> Maybe Text
userRole) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:userRole:Studio' :: Maybe Text
userRole = Maybe Text
a} :: Studio)

-- | The ID of the VPC associated with the Amazon EMR Studio.
studio_vpcId :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_vpcId :: Lens' Studio (Maybe Text)
studio_vpcId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:Studio' :: Studio -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:vpcId:Studio' :: Maybe Text
vpcId = Maybe Text
a} :: Studio)

-- | The ID of the Workspace security group associated with the Amazon EMR
-- Studio. The Workspace security group allows outbound network traffic to
-- resources in the Engine security group and to the internet.
studio_workspaceSecurityGroupId :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_workspaceSecurityGroupId :: Lens' Studio (Maybe Text)
studio_workspaceSecurityGroupId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
workspaceSecurityGroupId :: Maybe Text
$sel:workspaceSecurityGroupId:Studio' :: Studio -> Maybe Text
workspaceSecurityGroupId} -> Maybe Text
workspaceSecurityGroupId) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:workspaceSecurityGroupId:Studio' :: Maybe Text
workspaceSecurityGroupId = Maybe Text
a} :: Studio)

instance Data.FromJSON Studio where
  parseJSON :: Value -> Parser Studio
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"Studio"
      ( \Object
x ->
          Maybe AuthMode
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Studio
Studio'
            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
"AuthMode")
            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
"CreationTime")
            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
"DefaultS3Location")
            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
"EngineSecurityGroupId")
            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
"IdpAuthUrl")
            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
"IdpRelayStateParameterName")
            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
"ServiceRole")
            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
"StudioArn")
            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
"StudioId")
            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
"SubnetIds" 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
"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
"Url")
            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
"UserRole")
            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
"VpcId")
            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
"WorkspaceSecurityGroupId")
      )

instance Prelude.Hashable Studio where
  hashWithSalt :: Int -> Studio -> Int
hashWithSalt Int
_salt Studio' {Maybe [Text]
Maybe [Tag]
Maybe Text
Maybe POSIX
Maybe AuthMode
workspaceSecurityGroupId :: Maybe Text
vpcId :: Maybe Text
userRole :: Maybe Text
url :: Maybe Text
tags :: Maybe [Tag]
subnetIds :: Maybe [Text]
studioId :: Maybe Text
studioArn :: Maybe Text
serviceRole :: Maybe Text
name :: Maybe Text
idpRelayStateParameterName :: Maybe Text
idpAuthUrl :: Maybe Text
engineSecurityGroupId :: Maybe Text
description :: Maybe Text
defaultS3Location :: Maybe Text
creationTime :: Maybe POSIX
authMode :: Maybe AuthMode
$sel:workspaceSecurityGroupId:Studio' :: Studio -> Maybe Text
$sel:vpcId:Studio' :: Studio -> Maybe Text
$sel:userRole:Studio' :: Studio -> Maybe Text
$sel:url:Studio' :: Studio -> Maybe Text
$sel:tags:Studio' :: Studio -> Maybe [Tag]
$sel:subnetIds:Studio' :: Studio -> Maybe [Text]
$sel:studioId:Studio' :: Studio -> Maybe Text
$sel:studioArn:Studio' :: Studio -> Maybe Text
$sel:serviceRole:Studio' :: Studio -> Maybe Text
$sel:name:Studio' :: Studio -> Maybe Text
$sel:idpRelayStateParameterName:Studio' :: Studio -> Maybe Text
$sel:idpAuthUrl:Studio' :: Studio -> Maybe Text
$sel:engineSecurityGroupId:Studio' :: Studio -> Maybe Text
$sel:description:Studio' :: Studio -> Maybe Text
$sel:defaultS3Location:Studio' :: Studio -> Maybe Text
$sel:creationTime:Studio' :: Studio -> Maybe POSIX
$sel:authMode:Studio' :: Studio -> Maybe AuthMode
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AuthMode
authMode
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
defaultS3Location
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
engineSecurityGroupId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
idpAuthUrl
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
idpRelayStateParameterName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
serviceRole
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
studioArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
studioId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
subnetIds
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Tag]
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
url
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
userRole
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
vpcId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
workspaceSecurityGroupId

instance Prelude.NFData Studio where
  rnf :: Studio -> ()
rnf Studio' {Maybe [Text]
Maybe [Tag]
Maybe Text
Maybe POSIX
Maybe AuthMode
workspaceSecurityGroupId :: Maybe Text
vpcId :: Maybe Text
userRole :: Maybe Text
url :: Maybe Text
tags :: Maybe [Tag]
subnetIds :: Maybe [Text]
studioId :: Maybe Text
studioArn :: Maybe Text
serviceRole :: Maybe Text
name :: Maybe Text
idpRelayStateParameterName :: Maybe Text
idpAuthUrl :: Maybe Text
engineSecurityGroupId :: Maybe Text
description :: Maybe Text
defaultS3Location :: Maybe Text
creationTime :: Maybe POSIX
authMode :: Maybe AuthMode
$sel:workspaceSecurityGroupId:Studio' :: Studio -> Maybe Text
$sel:vpcId:Studio' :: Studio -> Maybe Text
$sel:userRole:Studio' :: Studio -> Maybe Text
$sel:url:Studio' :: Studio -> Maybe Text
$sel:tags:Studio' :: Studio -> Maybe [Tag]
$sel:subnetIds:Studio' :: Studio -> Maybe [Text]
$sel:studioId:Studio' :: Studio -> Maybe Text
$sel:studioArn:Studio' :: Studio -> Maybe Text
$sel:serviceRole:Studio' :: Studio -> Maybe Text
$sel:name:Studio' :: Studio -> Maybe Text
$sel:idpRelayStateParameterName:Studio' :: Studio -> Maybe Text
$sel:idpAuthUrl:Studio' :: Studio -> Maybe Text
$sel:engineSecurityGroupId:Studio' :: Studio -> Maybe Text
$sel:description:Studio' :: Studio -> Maybe Text
$sel:defaultS3Location:Studio' :: Studio -> Maybe Text
$sel:creationTime:Studio' :: Studio -> Maybe POSIX
$sel:authMode:Studio' :: Studio -> Maybe AuthMode
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe AuthMode
authMode
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
defaultS3Location
      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
engineSecurityGroupId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
idpAuthUrl
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
idpRelayStateParameterName
      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 Text
serviceRole
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
studioArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
studioId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
subnetIds
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Tag]
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
url
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
userRole
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vpcId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
workspaceSecurityGroupId