{-# 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.StudioSummary -- 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.StudioSummary 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 qualified Amazonka.Prelude as Prelude -- | Details for an Amazon EMR Studio, including ID, Name, VPC, and -- Description. The details do not include subnets, IAM roles, security -- groups, or tags associated with the Studio. -- -- /See:/ 'newStudioSummary' smart constructor. data StudioSummary = StudioSummary' { -- | Specifies whether the Studio authenticates users using IAM or IAM -- Identity Center. authMode :: Prelude.Maybe AuthMode, -- | The time when the Amazon EMR Studio was created. creationTime :: Prelude.Maybe Data.POSIX, -- | The detailed description of the Amazon EMR Studio. description :: Prelude.Maybe Prelude.Text, -- | The name of the Amazon EMR Studio. name :: Prelude.Maybe Prelude.Text, -- | The ID of the Amazon EMR Studio. studioId :: Prelude.Maybe Prelude.Text, -- | The unique access URL of the Amazon EMR Studio. url :: Prelude.Maybe Prelude.Text, -- | The ID of the Virtual Private Cloud (Amazon VPC) associated with the -- Amazon EMR Studio. vpcId :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'StudioSummary' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'authMode', 'studioSummary_authMode' - Specifies whether the Studio authenticates users using IAM or IAM -- Identity Center. -- -- 'creationTime', 'studioSummary_creationTime' - The time when the Amazon EMR Studio was created. -- -- 'description', 'studioSummary_description' - The detailed description of the Amazon EMR Studio. -- -- 'name', 'studioSummary_name' - The name of the Amazon EMR Studio. -- -- 'studioId', 'studioSummary_studioId' - The ID of the Amazon EMR Studio. -- -- 'url', 'studioSummary_url' - The unique access URL of the Amazon EMR Studio. -- -- 'vpcId', 'studioSummary_vpcId' - The ID of the Virtual Private Cloud (Amazon VPC) associated with the -- Amazon EMR Studio. newStudioSummary :: StudioSummary newStudioSummary = StudioSummary' { authMode = Prelude.Nothing, creationTime = Prelude.Nothing, description = Prelude.Nothing, name = Prelude.Nothing, studioId = Prelude.Nothing, url = Prelude.Nothing, vpcId = Prelude.Nothing } -- | Specifies whether the Studio authenticates users using IAM or IAM -- Identity Center. studioSummary_authMode :: Lens.Lens' StudioSummary (Prelude.Maybe AuthMode) studioSummary_authMode = Lens.lens (\StudioSummary' {authMode} -> authMode) (\s@StudioSummary' {} a -> s {authMode = a} :: StudioSummary) -- | The time when the Amazon EMR Studio was created. studioSummary_creationTime :: Lens.Lens' StudioSummary (Prelude.Maybe Prelude.UTCTime) studioSummary_creationTime = Lens.lens (\StudioSummary' {creationTime} -> creationTime) (\s@StudioSummary' {} a -> s {creationTime = a} :: StudioSummary) Prelude.. Lens.mapping Data._Time -- | The detailed description of the Amazon EMR Studio. studioSummary_description :: Lens.Lens' StudioSummary (Prelude.Maybe Prelude.Text) studioSummary_description = Lens.lens (\StudioSummary' {description} -> description) (\s@StudioSummary' {} a -> s {description = a} :: StudioSummary) -- | The name of the Amazon EMR Studio. studioSummary_name :: Lens.Lens' StudioSummary (Prelude.Maybe Prelude.Text) studioSummary_name = Lens.lens (\StudioSummary' {name} -> name) (\s@StudioSummary' {} a -> s {name = a} :: StudioSummary) -- | The ID of the Amazon EMR Studio. studioSummary_studioId :: Lens.Lens' StudioSummary (Prelude.Maybe Prelude.Text) studioSummary_studioId = Lens.lens (\StudioSummary' {studioId} -> studioId) (\s@StudioSummary' {} a -> s {studioId = a} :: StudioSummary) -- | The unique access URL of the Amazon EMR Studio. studioSummary_url :: Lens.Lens' StudioSummary (Prelude.Maybe Prelude.Text) studioSummary_url = Lens.lens (\StudioSummary' {url} -> url) (\s@StudioSummary' {} a -> s {url = a} :: StudioSummary) -- | The ID of the Virtual Private Cloud (Amazon VPC) associated with the -- Amazon EMR Studio. studioSummary_vpcId :: Lens.Lens' StudioSummary (Prelude.Maybe Prelude.Text) studioSummary_vpcId = Lens.lens (\StudioSummary' {vpcId} -> vpcId) (\s@StudioSummary' {} a -> s {vpcId = a} :: StudioSummary) instance Data.FromJSON StudioSummary where parseJSON = Data.withObject "StudioSummary" ( \x -> StudioSummary' Prelude.<$> (x Data..:? "AuthMode") Prelude.<*> (x Data..:? "CreationTime") Prelude.<*> (x Data..:? "Description") Prelude.<*> (x Data..:? "Name") Prelude.<*> (x Data..:? "StudioId") Prelude.<*> (x Data..:? "Url") Prelude.<*> (x Data..:? "VpcId") ) instance Prelude.Hashable StudioSummary where hashWithSalt _salt StudioSummary' {..} = _salt `Prelude.hashWithSalt` authMode `Prelude.hashWithSalt` creationTime `Prelude.hashWithSalt` description `Prelude.hashWithSalt` name `Prelude.hashWithSalt` studioId `Prelude.hashWithSalt` url `Prelude.hashWithSalt` vpcId instance Prelude.NFData StudioSummary where rnf StudioSummary' {..} = Prelude.rnf authMode `Prelude.seq` Prelude.rnf creationTime `Prelude.seq` Prelude.rnf description `Prelude.seq` Prelude.rnf name `Prelude.seq` Prelude.rnf studioId `Prelude.seq` Prelude.rnf url `Prelude.seq` Prelude.rnf vpcId