{-# 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.Nimble.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.Nimble.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.Nimble.Types.StudioEncryptionConfiguration
import Amazonka.Nimble.Types.StudioState
import Amazonka.Nimble.Types.StudioStatusCode
import qualified Amazonka.Prelude as Prelude

-- | Represents a studio resource.
--
-- A studio is the core resource used with Nimble Studio. You must create a
-- studio first, before any other resource type can be created. All other
-- resources you create and manage in Nimble Studio are contained within a
-- studio.
--
-- When creating a studio, you must provides two IAM roles for use with the
-- Nimble Studio portal. These roles are assumed by your users when they
-- log in to the Nimble Studio portal via IAM Identity Center and your
-- identity source.
--
-- The user role must have the @AmazonNimbleStudio-StudioUser@ managed
-- policy attached for the portal to function properly.
--
-- The admin role must have the @AmazonNimbleStudio-StudioAdmin@ managed
-- policy attached for the portal to function properly.
--
-- Your studio roles must trust the @identity.nimble.amazonaws.com@ service
-- principal to function properly.
--
-- /See:/ 'newStudio' smart constructor.
data Studio = Studio'
  { -- | The IAM role that studio admins assume when logging in to the Nimble
    -- Studio portal.
    Studio -> Maybe Text
adminRoleArn :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) that is assigned to a studio resource and
    -- uniquely identifies it. ARNs are unique across all Regions.
    Studio -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The ISO timestamp in seconds for when the resource was created.
    Studio -> Maybe ISO8601
createdAt :: Prelude.Maybe Data.ISO8601,
    -- | A friendly name for the studio.
    Studio -> Maybe (Sensitive Text)
displayName :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | The Amazon Web Services Region where the studio resource is located.
    Studio -> Maybe Text
homeRegion :: Prelude.Maybe Prelude.Text,
    -- | The IAM Identity Center application client ID used to integrate with IAM
    -- Identity Center. This ID allows IAM Identity Center users to log in to
    -- Nimble Studio portal.
    Studio -> Maybe Text
ssoClientId :: Prelude.Maybe Prelude.Text,
    -- | The current state of the studio resource.
    Studio -> Maybe StudioState
state :: Prelude.Maybe StudioState,
    -- | Status codes that provide additional detail on the studio state.
    Studio -> Maybe StudioStatusCode
statusCode :: Prelude.Maybe StudioStatusCode,
    -- | Additional detail on the studio state.
    Studio -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
    -- | Configuration of the encryption method that is used for the studio.
    Studio -> Maybe StudioEncryptionConfiguration
studioEncryptionConfiguration :: Prelude.Maybe StudioEncryptionConfiguration,
    -- | The unique identifier for a studio resource. In Nimble Studio, all other
    -- resources are contained in a studio resource.
    Studio -> Maybe Text
studioId :: Prelude.Maybe Prelude.Text,
    -- | The name of the studio, as included in the URL when accessing it in the
    -- Nimble Studio portal.
    Studio -> Maybe Text
studioName :: Prelude.Maybe Prelude.Text,
    -- | The address of the web page for the studio.
    Studio -> Maybe Text
studioUrl :: Prelude.Maybe Prelude.Text,
    -- | A collection of labels, in the form of key-value pairs, that apply to
    -- this resource.
    Studio -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The ISO timestamp in seconds for when the resource was updated.
    Studio -> Maybe ISO8601
updatedAt :: Prelude.Maybe Data.ISO8601,
    -- | The IAM role that studio users assume when logging in to the Nimble
    -- Studio portal.
    Studio -> Maybe Text
userRoleArn :: 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, 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:
--
-- 'adminRoleArn', 'studio_adminRoleArn' - The IAM role that studio admins assume when logging in to the Nimble
-- Studio portal.
--
-- 'arn', 'studio_arn' - The Amazon Resource Name (ARN) that is assigned to a studio resource and
-- uniquely identifies it. ARNs are unique across all Regions.
--
-- 'createdAt', 'studio_createdAt' - The ISO timestamp in seconds for when the resource was created.
--
-- 'displayName', 'studio_displayName' - A friendly name for the studio.
--
-- 'homeRegion', 'studio_homeRegion' - The Amazon Web Services Region where the studio resource is located.
--
-- 'ssoClientId', 'studio_ssoClientId' - The IAM Identity Center application client ID used to integrate with IAM
-- Identity Center. This ID allows IAM Identity Center users to log in to
-- Nimble Studio portal.
--
-- 'state', 'studio_state' - The current state of the studio resource.
--
-- 'statusCode', 'studio_statusCode' - Status codes that provide additional detail on the studio state.
--
-- 'statusMessage', 'studio_statusMessage' - Additional detail on the studio state.
--
-- 'studioEncryptionConfiguration', 'studio_studioEncryptionConfiguration' - Configuration of the encryption method that is used for the studio.
--
-- 'studioId', 'studio_studioId' - The unique identifier for a studio resource. In Nimble Studio, all other
-- resources are contained in a studio resource.
--
-- 'studioName', 'studio_studioName' - The name of the studio, as included in the URL when accessing it in the
-- Nimble Studio portal.
--
-- 'studioUrl', 'studio_studioUrl' - The address of the web page for the studio.
--
-- 'tags', 'studio_tags' - A collection of labels, in the form of key-value pairs, that apply to
-- this resource.
--
-- 'updatedAt', 'studio_updatedAt' - The ISO timestamp in seconds for when the resource was updated.
--
-- 'userRoleArn', 'studio_userRoleArn' - The IAM role that studio users assume when logging in to the Nimble
-- Studio portal.
newStudio ::
  Studio
newStudio :: Studio
newStudio =
  Studio'
    { $sel:adminRoleArn:Studio' :: Maybe Text
adminRoleArn = forall a. Maybe a
Prelude.Nothing,
      $sel:arn:Studio' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:Studio' :: Maybe ISO8601
createdAt = forall a. Maybe a
Prelude.Nothing,
      $sel:displayName:Studio' :: Maybe (Sensitive Text)
displayName = forall a. Maybe a
Prelude.Nothing,
      $sel:homeRegion:Studio' :: Maybe Text
homeRegion = forall a. Maybe a
Prelude.Nothing,
      $sel:ssoClientId:Studio' :: Maybe Text
ssoClientId = forall a. Maybe a
Prelude.Nothing,
      $sel:state:Studio' :: Maybe StudioState
state = forall a. Maybe a
Prelude.Nothing,
      $sel:statusCode:Studio' :: Maybe StudioStatusCode
statusCode = forall a. Maybe a
Prelude.Nothing,
      $sel:statusMessage:Studio' :: Maybe Text
statusMessage = forall a. Maybe a
Prelude.Nothing,
      $sel:studioEncryptionConfiguration:Studio' :: Maybe StudioEncryptionConfiguration
studioEncryptionConfiguration = forall a. Maybe a
Prelude.Nothing,
      $sel:studioId:Studio' :: Maybe Text
studioId = forall a. Maybe a
Prelude.Nothing,
      $sel:studioName:Studio' :: Maybe Text
studioName = forall a. Maybe a
Prelude.Nothing,
      $sel:studioUrl:Studio' :: Maybe Text
studioUrl = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:Studio' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:updatedAt:Studio' :: Maybe ISO8601
updatedAt = forall a. Maybe a
Prelude.Nothing,
      $sel:userRoleArn:Studio' :: Maybe Text
userRoleArn = forall a. Maybe a
Prelude.Nothing
    }

-- | The IAM role that studio admins assume when logging in to the Nimble
-- Studio portal.
studio_adminRoleArn :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_adminRoleArn :: Lens' Studio (Maybe Text)
studio_adminRoleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
adminRoleArn :: Maybe Text
$sel:adminRoleArn:Studio' :: Studio -> Maybe Text
adminRoleArn} -> Maybe Text
adminRoleArn) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:adminRoleArn:Studio' :: Maybe Text
adminRoleArn = Maybe Text
a} :: Studio)

-- | The Amazon Resource Name (ARN) that is assigned to a studio resource and
-- uniquely identifies it. ARNs are unique across all Regions.
studio_arn :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_arn :: Lens' Studio (Maybe Text)
studio_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
arn :: Maybe Text
$sel:arn:Studio' :: Studio -> Maybe Text
arn} -> Maybe Text
arn) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:arn:Studio' :: Maybe Text
arn = Maybe Text
a} :: Studio)

-- | The ISO timestamp in seconds for when the resource was created.
studio_createdAt :: Lens.Lens' Studio (Prelude.Maybe Prelude.UTCTime)
studio_createdAt :: Lens' Studio (Maybe UTCTime)
studio_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe ISO8601
createdAt :: Maybe ISO8601
$sel:createdAt:Studio' :: Studio -> Maybe ISO8601
createdAt} -> Maybe ISO8601
createdAt) (\s :: Studio
s@Studio' {} Maybe ISO8601
a -> Studio
s {$sel:createdAt:Studio' :: Maybe ISO8601
createdAt = Maybe ISO8601
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

-- | A friendly name for the studio.
studio_displayName :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_displayName :: Lens' Studio (Maybe Text)
studio_displayName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe (Sensitive Text)
displayName :: Maybe (Sensitive Text)
$sel:displayName:Studio' :: Studio -> Maybe (Sensitive Text)
displayName} -> Maybe (Sensitive Text)
displayName) (\s :: Studio
s@Studio' {} Maybe (Sensitive Text)
a -> Studio
s {$sel:displayName:Studio' :: Maybe (Sensitive Text)
displayName = Maybe (Sensitive 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 a. Iso' (Sensitive a) a
Data._Sensitive

-- | The Amazon Web Services Region where the studio resource is located.
studio_homeRegion :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_homeRegion :: Lens' Studio (Maybe Text)
studio_homeRegion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
homeRegion :: Maybe Text
$sel:homeRegion:Studio' :: Studio -> Maybe Text
homeRegion} -> Maybe Text
homeRegion) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:homeRegion:Studio' :: Maybe Text
homeRegion = Maybe Text
a} :: Studio)

-- | The IAM Identity Center application client ID used to integrate with IAM
-- Identity Center. This ID allows IAM Identity Center users to log in to
-- Nimble Studio portal.
studio_ssoClientId :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_ssoClientId :: Lens' Studio (Maybe Text)
studio_ssoClientId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
ssoClientId :: Maybe Text
$sel:ssoClientId:Studio' :: Studio -> Maybe Text
ssoClientId} -> Maybe Text
ssoClientId) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:ssoClientId:Studio' :: Maybe Text
ssoClientId = Maybe Text
a} :: Studio)

-- | The current state of the studio resource.
studio_state :: Lens.Lens' Studio (Prelude.Maybe StudioState)
studio_state :: Lens' Studio (Maybe StudioState)
studio_state = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe StudioState
state :: Maybe StudioState
$sel:state:Studio' :: Studio -> Maybe StudioState
state} -> Maybe StudioState
state) (\s :: Studio
s@Studio' {} Maybe StudioState
a -> Studio
s {$sel:state:Studio' :: Maybe StudioState
state = Maybe StudioState
a} :: Studio)

-- | Status codes that provide additional detail on the studio state.
studio_statusCode :: Lens.Lens' Studio (Prelude.Maybe StudioStatusCode)
studio_statusCode :: Lens' Studio (Maybe StudioStatusCode)
studio_statusCode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe StudioStatusCode
statusCode :: Maybe StudioStatusCode
$sel:statusCode:Studio' :: Studio -> Maybe StudioStatusCode
statusCode} -> Maybe StudioStatusCode
statusCode) (\s :: Studio
s@Studio' {} Maybe StudioStatusCode
a -> Studio
s {$sel:statusCode:Studio' :: Maybe StudioStatusCode
statusCode = Maybe StudioStatusCode
a} :: Studio)

-- | Additional detail on the studio state.
studio_statusMessage :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_statusMessage :: Lens' Studio (Maybe Text)
studio_statusMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:Studio' :: Studio -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:statusMessage:Studio' :: Maybe Text
statusMessage = Maybe Text
a} :: Studio)

-- | Configuration of the encryption method that is used for the studio.
studio_studioEncryptionConfiguration :: Lens.Lens' Studio (Prelude.Maybe StudioEncryptionConfiguration)
studio_studioEncryptionConfiguration :: Lens' Studio (Maybe StudioEncryptionConfiguration)
studio_studioEncryptionConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe StudioEncryptionConfiguration
studioEncryptionConfiguration :: Maybe StudioEncryptionConfiguration
$sel:studioEncryptionConfiguration:Studio' :: Studio -> Maybe StudioEncryptionConfiguration
studioEncryptionConfiguration} -> Maybe StudioEncryptionConfiguration
studioEncryptionConfiguration) (\s :: Studio
s@Studio' {} Maybe StudioEncryptionConfiguration
a -> Studio
s {$sel:studioEncryptionConfiguration:Studio' :: Maybe StudioEncryptionConfiguration
studioEncryptionConfiguration = Maybe StudioEncryptionConfiguration
a} :: Studio)

-- | The unique identifier for a studio resource. In Nimble Studio, all other
-- resources are contained in a studio resource.
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 name of the studio, as included in the URL when accessing it in the
-- Nimble Studio portal.
studio_studioName :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_studioName :: Lens' Studio (Maybe Text)
studio_studioName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
studioName :: Maybe Text
$sel:studioName:Studio' :: Studio -> Maybe Text
studioName} -> Maybe Text
studioName) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:studioName:Studio' :: Maybe Text
studioName = Maybe Text
a} :: Studio)

-- | The address of the web page for the studio.
studio_studioUrl :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_studioUrl :: Lens' Studio (Maybe Text)
studio_studioUrl = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
studioUrl :: Maybe Text
$sel:studioUrl:Studio' :: Studio -> Maybe Text
studioUrl} -> Maybe Text
studioUrl) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:studioUrl:Studio' :: Maybe Text
studioUrl = Maybe Text
a} :: Studio)

-- | A collection of labels, in the form of key-value pairs, that apply to
-- this resource.
studio_tags :: Lens.Lens' Studio (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
studio_tags :: Lens' Studio (Maybe (HashMap Text Text))
studio_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:Studio' :: Studio -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: Studio
s@Studio' {} Maybe (HashMap Text Text)
a -> Studio
s {$sel:tags:Studio' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text 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

-- | The ISO timestamp in seconds for when the resource was updated.
studio_updatedAt :: Lens.Lens' Studio (Prelude.Maybe Prelude.UTCTime)
studio_updatedAt :: Lens' Studio (Maybe UTCTime)
studio_updatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe ISO8601
updatedAt :: Maybe ISO8601
$sel:updatedAt:Studio' :: Studio -> Maybe ISO8601
updatedAt} -> Maybe ISO8601
updatedAt) (\s :: Studio
s@Studio' {} Maybe ISO8601
a -> Studio
s {$sel:updatedAt:Studio' :: Maybe ISO8601
updatedAt = Maybe ISO8601
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 IAM role that studio users assume when logging in to the Nimble
-- Studio portal.
studio_userRoleArn :: Lens.Lens' Studio (Prelude.Maybe Prelude.Text)
studio_userRoleArn :: Lens' Studio (Maybe Text)
studio_userRoleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Studio' {Maybe Text
userRoleArn :: Maybe Text
$sel:userRoleArn:Studio' :: Studio -> Maybe Text
userRoleArn} -> Maybe Text
userRoleArn) (\s :: Studio
s@Studio' {} Maybe Text
a -> Studio
s {$sel:userRoleArn:Studio' :: Maybe Text
userRoleArn = 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 Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe StudioState
-> Maybe StudioStatusCode
-> Maybe Text
-> Maybe StudioEncryptionConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe ISO8601
-> 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
"adminRoleArn")
            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
"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
"createdAt")
            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
"displayName")
            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
"homeRegion")
            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
"ssoClientId")
            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
"statusCode")
            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 (Maybe a)
Data..:? Key
"studioEncryptionConfiguration")
            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
"studioName")
            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
"studioUrl")
            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
"updatedAt")
            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
"userRoleArn")
      )

instance Prelude.Hashable Studio where
  hashWithSalt :: Int -> Studio -> Int
hashWithSalt Int
_salt Studio' {Maybe Text
Maybe (HashMap Text Text)
Maybe (Sensitive Text)
Maybe ISO8601
Maybe StudioEncryptionConfiguration
Maybe StudioState
Maybe StudioStatusCode
userRoleArn :: Maybe Text
updatedAt :: Maybe ISO8601
tags :: Maybe (HashMap Text Text)
studioUrl :: Maybe Text
studioName :: Maybe Text
studioId :: Maybe Text
studioEncryptionConfiguration :: Maybe StudioEncryptionConfiguration
statusMessage :: Maybe Text
statusCode :: Maybe StudioStatusCode
state :: Maybe StudioState
ssoClientId :: Maybe Text
homeRegion :: Maybe Text
displayName :: Maybe (Sensitive Text)
createdAt :: Maybe ISO8601
arn :: Maybe Text
adminRoleArn :: Maybe Text
$sel:userRoleArn:Studio' :: Studio -> Maybe Text
$sel:updatedAt:Studio' :: Studio -> Maybe ISO8601
$sel:tags:Studio' :: Studio -> Maybe (HashMap Text Text)
$sel:studioUrl:Studio' :: Studio -> Maybe Text
$sel:studioName:Studio' :: Studio -> Maybe Text
$sel:studioId:Studio' :: Studio -> Maybe Text
$sel:studioEncryptionConfiguration:Studio' :: Studio -> Maybe StudioEncryptionConfiguration
$sel:statusMessage:Studio' :: Studio -> Maybe Text
$sel:statusCode:Studio' :: Studio -> Maybe StudioStatusCode
$sel:state:Studio' :: Studio -> Maybe StudioState
$sel:ssoClientId:Studio' :: Studio -> Maybe Text
$sel:homeRegion:Studio' :: Studio -> Maybe Text
$sel:displayName:Studio' :: Studio -> Maybe (Sensitive Text)
$sel:createdAt:Studio' :: Studio -> Maybe ISO8601
$sel:arn:Studio' :: Studio -> Maybe Text
$sel:adminRoleArn:Studio' :: Studio -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
adminRoleArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
createdAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
displayName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
homeRegion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
ssoClientId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StudioState
state
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StudioStatusCode
statusCode
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
statusMessage
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StudioEncryptionConfiguration
studioEncryptionConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
studioId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
studioName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
studioUrl
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
updatedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
userRoleArn

instance Prelude.NFData Studio where
  rnf :: Studio -> ()
rnf Studio' {Maybe Text
Maybe (HashMap Text Text)
Maybe (Sensitive Text)
Maybe ISO8601
Maybe StudioEncryptionConfiguration
Maybe StudioState
Maybe StudioStatusCode
userRoleArn :: Maybe Text
updatedAt :: Maybe ISO8601
tags :: Maybe (HashMap Text Text)
studioUrl :: Maybe Text
studioName :: Maybe Text
studioId :: Maybe Text
studioEncryptionConfiguration :: Maybe StudioEncryptionConfiguration
statusMessage :: Maybe Text
statusCode :: Maybe StudioStatusCode
state :: Maybe StudioState
ssoClientId :: Maybe Text
homeRegion :: Maybe Text
displayName :: Maybe (Sensitive Text)
createdAt :: Maybe ISO8601
arn :: Maybe Text
adminRoleArn :: Maybe Text
$sel:userRoleArn:Studio' :: Studio -> Maybe Text
$sel:updatedAt:Studio' :: Studio -> Maybe ISO8601
$sel:tags:Studio' :: Studio -> Maybe (HashMap Text Text)
$sel:studioUrl:Studio' :: Studio -> Maybe Text
$sel:studioName:Studio' :: Studio -> Maybe Text
$sel:studioId:Studio' :: Studio -> Maybe Text
$sel:studioEncryptionConfiguration:Studio' :: Studio -> Maybe StudioEncryptionConfiguration
$sel:statusMessage:Studio' :: Studio -> Maybe Text
$sel:statusCode:Studio' :: Studio -> Maybe StudioStatusCode
$sel:state:Studio' :: Studio -> Maybe StudioState
$sel:ssoClientId:Studio' :: Studio -> Maybe Text
$sel:homeRegion:Studio' :: Studio -> Maybe Text
$sel:displayName:Studio' :: Studio -> Maybe (Sensitive Text)
$sel:createdAt:Studio' :: Studio -> Maybe ISO8601
$sel:arn:Studio' :: Studio -> Maybe Text
$sel:adminRoleArn:Studio' :: Studio -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
adminRoleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` 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 ISO8601
createdAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
displayName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
homeRegion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
ssoClientId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe StudioState
state
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe StudioStatusCode
statusCode
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
statusMessage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe StudioEncryptionConfiguration
studioEncryptionConfiguration
      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
studioName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
studioUrl
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
updatedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
userRoleArn