{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SageMaker.DescribeDomain
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- The description of the domain.
module Amazonka.SageMaker.DescribeDomain
  ( -- * Creating a Request
    DescribeDomain (..),
    newDescribeDomain,

    -- * Request Lenses
    describeDomain_domainId,

    -- * Destructuring the Response
    DescribeDomainResponse (..),
    newDescribeDomainResponse,

    -- * Response Lenses
    describeDomainResponse_appNetworkAccessType,
    describeDomainResponse_appSecurityGroupManagement,
    describeDomainResponse_authMode,
    describeDomainResponse_creationTime,
    describeDomainResponse_defaultSpaceSettings,
    describeDomainResponse_defaultUserSettings,
    describeDomainResponse_domainArn,
    describeDomainResponse_domainId,
    describeDomainResponse_domainName,
    describeDomainResponse_domainSettings,
    describeDomainResponse_failureReason,
    describeDomainResponse_homeEfsFileSystemId,
    describeDomainResponse_homeEfsFileSystemKmsKeyId,
    describeDomainResponse_kmsKeyId,
    describeDomainResponse_lastModifiedTime,
    describeDomainResponse_securityGroupIdForDomainBoundary,
    describeDomainResponse_singleSignOnManagedApplicationInstanceId,
    describeDomainResponse_status,
    describeDomainResponse_subnetIds,
    describeDomainResponse_url,
    describeDomainResponse_vpcId,
    describeDomainResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types

-- | /See:/ 'newDescribeDomain' smart constructor.
data DescribeDomain = DescribeDomain'
  { -- | The domain ID.
    DescribeDomain -> Text
domainId :: Prelude.Text
  }
  deriving (DescribeDomain -> DescribeDomain -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDomain -> DescribeDomain -> Bool
$c/= :: DescribeDomain -> DescribeDomain -> Bool
== :: DescribeDomain -> DescribeDomain -> Bool
$c== :: DescribeDomain -> DescribeDomain -> Bool
Prelude.Eq, ReadPrec [DescribeDomain]
ReadPrec DescribeDomain
Int -> ReadS DescribeDomain
ReadS [DescribeDomain]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDomain]
$creadListPrec :: ReadPrec [DescribeDomain]
readPrec :: ReadPrec DescribeDomain
$creadPrec :: ReadPrec DescribeDomain
readList :: ReadS [DescribeDomain]
$creadList :: ReadS [DescribeDomain]
readsPrec :: Int -> ReadS DescribeDomain
$creadsPrec :: Int -> ReadS DescribeDomain
Prelude.Read, Int -> DescribeDomain -> ShowS
[DescribeDomain] -> ShowS
DescribeDomain -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDomain] -> ShowS
$cshowList :: [DescribeDomain] -> ShowS
show :: DescribeDomain -> String
$cshow :: DescribeDomain -> String
showsPrec :: Int -> DescribeDomain -> ShowS
$cshowsPrec :: Int -> DescribeDomain -> ShowS
Prelude.Show, forall x. Rep DescribeDomain x -> DescribeDomain
forall x. DescribeDomain -> Rep DescribeDomain x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeDomain x -> DescribeDomain
$cfrom :: forall x. DescribeDomain -> Rep DescribeDomain x
Prelude.Generic)

-- |
-- Create a value of 'DescribeDomain' 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:
--
-- 'domainId', 'describeDomain_domainId' - The domain ID.
newDescribeDomain ::
  -- | 'domainId'
  Prelude.Text ->
  DescribeDomain
newDescribeDomain :: Text -> DescribeDomain
newDescribeDomain Text
pDomainId_ =
  DescribeDomain' {$sel:domainId:DescribeDomain' :: Text
domainId = Text
pDomainId_}

-- | The domain ID.
describeDomain_domainId :: Lens.Lens' DescribeDomain Prelude.Text
describeDomain_domainId :: Lens' DescribeDomain Text
describeDomain_domainId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomain' {Text
domainId :: Text
$sel:domainId:DescribeDomain' :: DescribeDomain -> Text
domainId} -> Text
domainId) (\s :: DescribeDomain
s@DescribeDomain' {} Text
a -> DescribeDomain
s {$sel:domainId:DescribeDomain' :: Text
domainId = Text
a} :: DescribeDomain)

instance Core.AWSRequest DescribeDomain where
  type
    AWSResponse DescribeDomain =
      DescribeDomainResponse
  request :: (Service -> Service) -> DescribeDomain -> Request DescribeDomain
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeDomain
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeDomain)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe AppNetworkAccessType
-> Maybe AppSecurityGroupManagement
-> Maybe AuthMode
-> Maybe POSIX
-> Maybe DefaultSpaceSettings
-> Maybe UserSettings
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DomainSettings
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe DomainStatus
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeDomainResponse
DescribeDomainResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"AppNetworkAccessType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"AppSecurityGroupManagement")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (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 -> Either String (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 -> Either String (Maybe a)
Data..?> Key
"DefaultSpaceSettings")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"DefaultUserSettings")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"DomainArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"DomainId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"DomainName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"DomainSettings")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"FailureReason")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"HomeEfsFileSystemId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"HomeEfsFileSystemKmsKeyId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"KmsKeyId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LastModifiedTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"SecurityGroupIdForDomainBoundary")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"SingleSignOnManagedApplicationInstanceId"
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Status")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"SubnetIds")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (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 -> Either String (Maybe a)
Data..?> Key
"VpcId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable DescribeDomain where
  hashWithSalt :: Int -> DescribeDomain -> Int
hashWithSalt Int
_salt DescribeDomain' {Text
domainId :: Text
$sel:domainId:DescribeDomain' :: DescribeDomain -> Text
..} =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
domainId

instance Prelude.NFData DescribeDomain where
  rnf :: DescribeDomain -> ()
rnf DescribeDomain' {Text
domainId :: Text
$sel:domainId:DescribeDomain' :: DescribeDomain -> Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Text
domainId

instance Data.ToHeaders DescribeDomain where
  toHeaders :: DescribeDomain -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# (ByteString
"SageMaker.DescribeDomain" :: Prelude.ByteString),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON DescribeDomain where
  toJSON :: DescribeDomain -> Value
toJSON DescribeDomain' {Text
domainId :: Text
$sel:domainId:DescribeDomain' :: DescribeDomain -> Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [forall a. a -> Maybe a
Prelude.Just (Key
"DomainId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
domainId)]
      )

instance Data.ToPath DescribeDomain where
  toPath :: DescribeDomain -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Data.ToQuery DescribeDomain where
  toQuery :: DescribeDomain -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeDomainResponse' smart constructor.
data DescribeDomainResponse = DescribeDomainResponse'
  { -- | Specifies the VPC used for non-EFS traffic. The default value is
    -- @PublicInternetOnly@.
    --
    -- -   @PublicInternetOnly@ - Non-EFS traffic is through a VPC managed by
    --     Amazon SageMaker, which allows direct internet access
    --
    -- -   @VpcOnly@ - All Studio traffic is through the specified VPC and
    --     subnets
    DescribeDomainResponse -> Maybe AppNetworkAccessType
appNetworkAccessType :: Prelude.Maybe AppNetworkAccessType,
    -- | The entity that creates and manages the required security groups for
    -- inter-app communication in @VPCOnly@ mode. Required when
    -- @CreateDomain.AppNetworkAccessType@ is @VPCOnly@ and
    -- @DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn@
    -- is provided.
    DescribeDomainResponse -> Maybe AppSecurityGroupManagement
appSecurityGroupManagement :: Prelude.Maybe AppSecurityGroupManagement,
    -- | The domain\'s authentication mode.
    DescribeDomainResponse -> Maybe AuthMode
authMode :: Prelude.Maybe AuthMode,
    -- | The creation time.
    DescribeDomainResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    -- | The default settings used to create a space.
    DescribeDomainResponse -> Maybe DefaultSpaceSettings
defaultSpaceSettings :: Prelude.Maybe DefaultSpaceSettings,
    -- | Settings which are applied to UserProfiles in this domain if settings
    -- are not explicitly specified in a given UserProfile.
    DescribeDomainResponse -> Maybe UserSettings
defaultUserSettings :: Prelude.Maybe UserSettings,
    -- | The domain\'s Amazon Resource Name (ARN).
    DescribeDomainResponse -> Maybe Text
domainArn :: Prelude.Maybe Prelude.Text,
    -- | The domain ID.
    DescribeDomainResponse -> Maybe Text
domainId :: Prelude.Maybe Prelude.Text,
    -- | The domain name.
    DescribeDomainResponse -> Maybe Text
domainName :: Prelude.Maybe Prelude.Text,
    -- | A collection of @Domain@ settings.
    DescribeDomainResponse -> Maybe DomainSettings
domainSettings :: Prelude.Maybe DomainSettings,
    -- | The failure reason.
    DescribeDomainResponse -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Amazon Elastic File System (EFS) managed by this Domain.
    DescribeDomainResponse -> Maybe Text
homeEfsFileSystemId :: Prelude.Maybe Prelude.Text,
    -- | Use @KmsKeyId@.
    DescribeDomainResponse -> Maybe Text
homeEfsFileSystemKmsKeyId :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Web Services KMS customer managed key used to encrypt the EFS
    -- volume attached to the domain.
    DescribeDomainResponse -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
    -- | The last modified time.
    DescribeDomainResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
    -- | The ID of the security group that authorizes traffic between the
    -- @RSessionGateway@ apps and the @RStudioServerPro@ app.
    DescribeDomainResponse -> Maybe Text
securityGroupIdForDomainBoundary :: Prelude.Maybe Prelude.Text,
    -- | The IAM Identity Center managed application instance ID.
    DescribeDomainResponse -> Maybe Text
singleSignOnManagedApplicationInstanceId :: Prelude.Maybe Prelude.Text,
    -- | The status.
    DescribeDomainResponse -> Maybe DomainStatus
status :: Prelude.Maybe DomainStatus,
    -- | The VPC subnets that Studio uses for communication.
    DescribeDomainResponse -> Maybe (NonEmpty Text)
subnetIds :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | The domain\'s URL.
    DescribeDomainResponse -> Maybe Text
url :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for
    -- communication.
    DescribeDomainResponse -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeDomainResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeDomainResponse -> DescribeDomainResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDomainResponse -> DescribeDomainResponse -> Bool
$c/= :: DescribeDomainResponse -> DescribeDomainResponse -> Bool
== :: DescribeDomainResponse -> DescribeDomainResponse -> Bool
$c== :: DescribeDomainResponse -> DescribeDomainResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDomainResponse]
ReadPrec DescribeDomainResponse
Int -> ReadS DescribeDomainResponse
ReadS [DescribeDomainResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDomainResponse]
$creadListPrec :: ReadPrec [DescribeDomainResponse]
readPrec :: ReadPrec DescribeDomainResponse
$creadPrec :: ReadPrec DescribeDomainResponse
readList :: ReadS [DescribeDomainResponse]
$creadList :: ReadS [DescribeDomainResponse]
readsPrec :: Int -> ReadS DescribeDomainResponse
$creadsPrec :: Int -> ReadS DescribeDomainResponse
Prelude.Read, Int -> DescribeDomainResponse -> ShowS
[DescribeDomainResponse] -> ShowS
DescribeDomainResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDomainResponse] -> ShowS
$cshowList :: [DescribeDomainResponse] -> ShowS
show :: DescribeDomainResponse -> String
$cshow :: DescribeDomainResponse -> String
showsPrec :: Int -> DescribeDomainResponse -> ShowS
$cshowsPrec :: Int -> DescribeDomainResponse -> ShowS
Prelude.Show, forall x. Rep DescribeDomainResponse x -> DescribeDomainResponse
forall x. DescribeDomainResponse -> Rep DescribeDomainResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeDomainResponse x -> DescribeDomainResponse
$cfrom :: forall x. DescribeDomainResponse -> Rep DescribeDomainResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeDomainResponse' 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:
--
-- 'appNetworkAccessType', 'describeDomainResponse_appNetworkAccessType' - Specifies the VPC used for non-EFS traffic. The default value is
-- @PublicInternetOnly@.
--
-- -   @PublicInternetOnly@ - Non-EFS traffic is through a VPC managed by
--     Amazon SageMaker, which allows direct internet access
--
-- -   @VpcOnly@ - All Studio traffic is through the specified VPC and
--     subnets
--
-- 'appSecurityGroupManagement', 'describeDomainResponse_appSecurityGroupManagement' - The entity that creates and manages the required security groups for
-- inter-app communication in @VPCOnly@ mode. Required when
-- @CreateDomain.AppNetworkAccessType@ is @VPCOnly@ and
-- @DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn@
-- is provided.
--
-- 'authMode', 'describeDomainResponse_authMode' - The domain\'s authentication mode.
--
-- 'creationTime', 'describeDomainResponse_creationTime' - The creation time.
--
-- 'defaultSpaceSettings', 'describeDomainResponse_defaultSpaceSettings' - The default settings used to create a space.
--
-- 'defaultUserSettings', 'describeDomainResponse_defaultUserSettings' - Settings which are applied to UserProfiles in this domain if settings
-- are not explicitly specified in a given UserProfile.
--
-- 'domainArn', 'describeDomainResponse_domainArn' - The domain\'s Amazon Resource Name (ARN).
--
-- 'domainId', 'describeDomainResponse_domainId' - The domain ID.
--
-- 'domainName', 'describeDomainResponse_domainName' - The domain name.
--
-- 'domainSettings', 'describeDomainResponse_domainSettings' - A collection of @Domain@ settings.
--
-- 'failureReason', 'describeDomainResponse_failureReason' - The failure reason.
--
-- 'homeEfsFileSystemId', 'describeDomainResponse_homeEfsFileSystemId' - The ID of the Amazon Elastic File System (EFS) managed by this Domain.
--
-- 'homeEfsFileSystemKmsKeyId', 'describeDomainResponse_homeEfsFileSystemKmsKeyId' - Use @KmsKeyId@.
--
-- 'kmsKeyId', 'describeDomainResponse_kmsKeyId' - The Amazon Web Services KMS customer managed key used to encrypt the EFS
-- volume attached to the domain.
--
-- 'lastModifiedTime', 'describeDomainResponse_lastModifiedTime' - The last modified time.
--
-- 'securityGroupIdForDomainBoundary', 'describeDomainResponse_securityGroupIdForDomainBoundary' - The ID of the security group that authorizes traffic between the
-- @RSessionGateway@ apps and the @RStudioServerPro@ app.
--
-- 'singleSignOnManagedApplicationInstanceId', 'describeDomainResponse_singleSignOnManagedApplicationInstanceId' - The IAM Identity Center managed application instance ID.
--
-- 'status', 'describeDomainResponse_status' - The status.
--
-- 'subnetIds', 'describeDomainResponse_subnetIds' - The VPC subnets that Studio uses for communication.
--
-- 'url', 'describeDomainResponse_url' - The domain\'s URL.
--
-- 'vpcId', 'describeDomainResponse_vpcId' - The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for
-- communication.
--
-- 'httpStatus', 'describeDomainResponse_httpStatus' - The response's http status code.
newDescribeDomainResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeDomainResponse
newDescribeDomainResponse :: Int -> DescribeDomainResponse
newDescribeDomainResponse Int
pHttpStatus_ =
  DescribeDomainResponse'
    { $sel:appNetworkAccessType:DescribeDomainResponse' :: Maybe AppNetworkAccessType
appNetworkAccessType =
        forall a. Maybe a
Prelude.Nothing,
      $sel:appSecurityGroupManagement:DescribeDomainResponse' :: Maybe AppSecurityGroupManagement
appSecurityGroupManagement = forall a. Maybe a
Prelude.Nothing,
      $sel:authMode:DescribeDomainResponse' :: Maybe AuthMode
authMode = forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:DescribeDomainResponse' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:defaultSpaceSettings:DescribeDomainResponse' :: Maybe DefaultSpaceSettings
defaultSpaceSettings = forall a. Maybe a
Prelude.Nothing,
      $sel:defaultUserSettings:DescribeDomainResponse' :: Maybe UserSettings
defaultUserSettings = forall a. Maybe a
Prelude.Nothing,
      $sel:domainArn:DescribeDomainResponse' :: Maybe Text
domainArn = forall a. Maybe a
Prelude.Nothing,
      $sel:domainId:DescribeDomainResponse' :: Maybe Text
domainId = forall a. Maybe a
Prelude.Nothing,
      $sel:domainName:DescribeDomainResponse' :: Maybe Text
domainName = forall a. Maybe a
Prelude.Nothing,
      $sel:domainSettings:DescribeDomainResponse' :: Maybe DomainSettings
domainSettings = forall a. Maybe a
Prelude.Nothing,
      $sel:failureReason:DescribeDomainResponse' :: Maybe Text
failureReason = forall a. Maybe a
Prelude.Nothing,
      $sel:homeEfsFileSystemId:DescribeDomainResponse' :: Maybe Text
homeEfsFileSystemId = forall a. Maybe a
Prelude.Nothing,
      $sel:homeEfsFileSystemKmsKeyId:DescribeDomainResponse' :: Maybe Text
homeEfsFileSystemKmsKeyId = forall a. Maybe a
Prelude.Nothing,
      $sel:kmsKeyId:DescribeDomainResponse' :: Maybe Text
kmsKeyId = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:DescribeDomainResponse' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
      $sel:securityGroupIdForDomainBoundary:DescribeDomainResponse' :: Maybe Text
securityGroupIdForDomainBoundary = forall a. Maybe a
Prelude.Nothing,
      $sel:singleSignOnManagedApplicationInstanceId:DescribeDomainResponse' :: Maybe Text
singleSignOnManagedApplicationInstanceId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:status:DescribeDomainResponse' :: Maybe DomainStatus
status = forall a. Maybe a
Prelude.Nothing,
      $sel:subnetIds:DescribeDomainResponse' :: Maybe (NonEmpty Text)
subnetIds = forall a. Maybe a
Prelude.Nothing,
      $sel:url:DescribeDomainResponse' :: Maybe Text
url = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcId:DescribeDomainResponse' :: Maybe Text
vpcId = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeDomainResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Specifies the VPC used for non-EFS traffic. The default value is
-- @PublicInternetOnly@.
--
-- -   @PublicInternetOnly@ - Non-EFS traffic is through a VPC managed by
--     Amazon SageMaker, which allows direct internet access
--
-- -   @VpcOnly@ - All Studio traffic is through the specified VPC and
--     subnets
describeDomainResponse_appNetworkAccessType :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe AppNetworkAccessType)
describeDomainResponse_appNetworkAccessType :: Lens' DescribeDomainResponse (Maybe AppNetworkAccessType)
describeDomainResponse_appNetworkAccessType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe AppNetworkAccessType
appNetworkAccessType :: Maybe AppNetworkAccessType
$sel:appNetworkAccessType:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe AppNetworkAccessType
appNetworkAccessType} -> Maybe AppNetworkAccessType
appNetworkAccessType) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe AppNetworkAccessType
a -> DescribeDomainResponse
s {$sel:appNetworkAccessType:DescribeDomainResponse' :: Maybe AppNetworkAccessType
appNetworkAccessType = Maybe AppNetworkAccessType
a} :: DescribeDomainResponse)

-- | The entity that creates and manages the required security groups for
-- inter-app communication in @VPCOnly@ mode. Required when
-- @CreateDomain.AppNetworkAccessType@ is @VPCOnly@ and
-- @DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn@
-- is provided.
describeDomainResponse_appSecurityGroupManagement :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe AppSecurityGroupManagement)
describeDomainResponse_appSecurityGroupManagement :: Lens' DescribeDomainResponse (Maybe AppSecurityGroupManagement)
describeDomainResponse_appSecurityGroupManagement = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe AppSecurityGroupManagement
appSecurityGroupManagement :: Maybe AppSecurityGroupManagement
$sel:appSecurityGroupManagement:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe AppSecurityGroupManagement
appSecurityGroupManagement} -> Maybe AppSecurityGroupManagement
appSecurityGroupManagement) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe AppSecurityGroupManagement
a -> DescribeDomainResponse
s {$sel:appSecurityGroupManagement:DescribeDomainResponse' :: Maybe AppSecurityGroupManagement
appSecurityGroupManagement = Maybe AppSecurityGroupManagement
a} :: DescribeDomainResponse)

-- | The domain\'s authentication mode.
describeDomainResponse_authMode :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe AuthMode)
describeDomainResponse_authMode :: Lens' DescribeDomainResponse (Maybe AuthMode)
describeDomainResponse_authMode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe AuthMode
authMode :: Maybe AuthMode
$sel:authMode:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe AuthMode
authMode} -> Maybe AuthMode
authMode) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe AuthMode
a -> DescribeDomainResponse
s {$sel:authMode:DescribeDomainResponse' :: Maybe AuthMode
authMode = Maybe AuthMode
a} :: DescribeDomainResponse)

-- | The creation time.
describeDomainResponse_creationTime :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe Prelude.UTCTime)
describeDomainResponse_creationTime :: Lens' DescribeDomainResponse (Maybe UTCTime)
describeDomainResponse_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe POSIX
a -> DescribeDomainResponse
s {$sel:creationTime:DescribeDomainResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeDomainResponse) 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 default settings used to create a space.
describeDomainResponse_defaultSpaceSettings :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe DefaultSpaceSettings)
describeDomainResponse_defaultSpaceSettings :: Lens' DescribeDomainResponse (Maybe DefaultSpaceSettings)
describeDomainResponse_defaultSpaceSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe DefaultSpaceSettings
defaultSpaceSettings :: Maybe DefaultSpaceSettings
$sel:defaultSpaceSettings:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe DefaultSpaceSettings
defaultSpaceSettings} -> Maybe DefaultSpaceSettings
defaultSpaceSettings) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe DefaultSpaceSettings
a -> DescribeDomainResponse
s {$sel:defaultSpaceSettings:DescribeDomainResponse' :: Maybe DefaultSpaceSettings
defaultSpaceSettings = Maybe DefaultSpaceSettings
a} :: DescribeDomainResponse)

-- | Settings which are applied to UserProfiles in this domain if settings
-- are not explicitly specified in a given UserProfile.
describeDomainResponse_defaultUserSettings :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe UserSettings)
describeDomainResponse_defaultUserSettings :: Lens' DescribeDomainResponse (Maybe UserSettings)
describeDomainResponse_defaultUserSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe UserSettings
defaultUserSettings :: Maybe UserSettings
$sel:defaultUserSettings:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe UserSettings
defaultUserSettings} -> Maybe UserSettings
defaultUserSettings) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe UserSettings
a -> DescribeDomainResponse
s {$sel:defaultUserSettings:DescribeDomainResponse' :: Maybe UserSettings
defaultUserSettings = Maybe UserSettings
a} :: DescribeDomainResponse)

-- | The domain\'s Amazon Resource Name (ARN).
describeDomainResponse_domainArn :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe Prelude.Text)
describeDomainResponse_domainArn :: Lens' DescribeDomainResponse (Maybe Text)
describeDomainResponse_domainArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe Text
domainArn :: Maybe Text
$sel:domainArn:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
domainArn} -> Maybe Text
domainArn) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe Text
a -> DescribeDomainResponse
s {$sel:domainArn:DescribeDomainResponse' :: Maybe Text
domainArn = Maybe Text
a} :: DescribeDomainResponse)

-- | The domain ID.
describeDomainResponse_domainId :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe Prelude.Text)
describeDomainResponse_domainId :: Lens' DescribeDomainResponse (Maybe Text)
describeDomainResponse_domainId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe Text
domainId :: Maybe Text
$sel:domainId:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
domainId} -> Maybe Text
domainId) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe Text
a -> DescribeDomainResponse
s {$sel:domainId:DescribeDomainResponse' :: Maybe Text
domainId = Maybe Text
a} :: DescribeDomainResponse)

-- | The domain name.
describeDomainResponse_domainName :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe Prelude.Text)
describeDomainResponse_domainName :: Lens' DescribeDomainResponse (Maybe Text)
describeDomainResponse_domainName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe Text
domainName :: Maybe Text
$sel:domainName:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
domainName} -> Maybe Text
domainName) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe Text
a -> DescribeDomainResponse
s {$sel:domainName:DescribeDomainResponse' :: Maybe Text
domainName = Maybe Text
a} :: DescribeDomainResponse)

-- | A collection of @Domain@ settings.
describeDomainResponse_domainSettings :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe DomainSettings)
describeDomainResponse_domainSettings :: Lens' DescribeDomainResponse (Maybe DomainSettings)
describeDomainResponse_domainSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe DomainSettings
domainSettings :: Maybe DomainSettings
$sel:domainSettings:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe DomainSettings
domainSettings} -> Maybe DomainSettings
domainSettings) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe DomainSettings
a -> DescribeDomainResponse
s {$sel:domainSettings:DescribeDomainResponse' :: Maybe DomainSettings
domainSettings = Maybe DomainSettings
a} :: DescribeDomainResponse)

-- | The failure reason.
describeDomainResponse_failureReason :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe Prelude.Text)
describeDomainResponse_failureReason :: Lens' DescribeDomainResponse (Maybe Text)
describeDomainResponse_failureReason = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe Text
a -> DescribeDomainResponse
s {$sel:failureReason:DescribeDomainResponse' :: Maybe Text
failureReason = Maybe Text
a} :: DescribeDomainResponse)

-- | The ID of the Amazon Elastic File System (EFS) managed by this Domain.
describeDomainResponse_homeEfsFileSystemId :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe Prelude.Text)
describeDomainResponse_homeEfsFileSystemId :: Lens' DescribeDomainResponse (Maybe Text)
describeDomainResponse_homeEfsFileSystemId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe Text
homeEfsFileSystemId :: Maybe Text
$sel:homeEfsFileSystemId:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
homeEfsFileSystemId} -> Maybe Text
homeEfsFileSystemId) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe Text
a -> DescribeDomainResponse
s {$sel:homeEfsFileSystemId:DescribeDomainResponse' :: Maybe Text
homeEfsFileSystemId = Maybe Text
a} :: DescribeDomainResponse)

-- | Use @KmsKeyId@.
describeDomainResponse_homeEfsFileSystemKmsKeyId :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe Prelude.Text)
describeDomainResponse_homeEfsFileSystemKmsKeyId :: Lens' DescribeDomainResponse (Maybe Text)
describeDomainResponse_homeEfsFileSystemKmsKeyId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe Text
homeEfsFileSystemKmsKeyId :: Maybe Text
$sel:homeEfsFileSystemKmsKeyId:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
homeEfsFileSystemKmsKeyId} -> Maybe Text
homeEfsFileSystemKmsKeyId) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe Text
a -> DescribeDomainResponse
s {$sel:homeEfsFileSystemKmsKeyId:DescribeDomainResponse' :: Maybe Text
homeEfsFileSystemKmsKeyId = Maybe Text
a} :: DescribeDomainResponse)

-- | The Amazon Web Services KMS customer managed key used to encrypt the EFS
-- volume attached to the domain.
describeDomainResponse_kmsKeyId :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe Prelude.Text)
describeDomainResponse_kmsKeyId :: Lens' DescribeDomainResponse (Maybe Text)
describeDomainResponse_kmsKeyId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe Text
a -> DescribeDomainResponse
s {$sel:kmsKeyId:DescribeDomainResponse' :: Maybe Text
kmsKeyId = Maybe Text
a} :: DescribeDomainResponse)

-- | The last modified time.
describeDomainResponse_lastModifiedTime :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe Prelude.UTCTime)
describeDomainResponse_lastModifiedTime :: Lens' DescribeDomainResponse (Maybe UTCTime)
describeDomainResponse_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe POSIX
a -> DescribeDomainResponse
s {$sel:lastModifiedTime:DescribeDomainResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribeDomainResponse) 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 ID of the security group that authorizes traffic between the
-- @RSessionGateway@ apps and the @RStudioServerPro@ app.
describeDomainResponse_securityGroupIdForDomainBoundary :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe Prelude.Text)
describeDomainResponse_securityGroupIdForDomainBoundary :: Lens' DescribeDomainResponse (Maybe Text)
describeDomainResponse_securityGroupIdForDomainBoundary = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe Text
securityGroupIdForDomainBoundary :: Maybe Text
$sel:securityGroupIdForDomainBoundary:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
securityGroupIdForDomainBoundary} -> Maybe Text
securityGroupIdForDomainBoundary) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe Text
a -> DescribeDomainResponse
s {$sel:securityGroupIdForDomainBoundary:DescribeDomainResponse' :: Maybe Text
securityGroupIdForDomainBoundary = Maybe Text
a} :: DescribeDomainResponse)

-- | The IAM Identity Center managed application instance ID.
describeDomainResponse_singleSignOnManagedApplicationInstanceId :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe Prelude.Text)
describeDomainResponse_singleSignOnManagedApplicationInstanceId :: Lens' DescribeDomainResponse (Maybe Text)
describeDomainResponse_singleSignOnManagedApplicationInstanceId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe Text
singleSignOnManagedApplicationInstanceId :: Maybe Text
$sel:singleSignOnManagedApplicationInstanceId:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
singleSignOnManagedApplicationInstanceId} -> Maybe Text
singleSignOnManagedApplicationInstanceId) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe Text
a -> DescribeDomainResponse
s {$sel:singleSignOnManagedApplicationInstanceId:DescribeDomainResponse' :: Maybe Text
singleSignOnManagedApplicationInstanceId = Maybe Text
a} :: DescribeDomainResponse)

-- | The status.
describeDomainResponse_status :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe DomainStatus)
describeDomainResponse_status :: Lens' DescribeDomainResponse (Maybe DomainStatus)
describeDomainResponse_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe DomainStatus
status :: Maybe DomainStatus
$sel:status:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe DomainStatus
status} -> Maybe DomainStatus
status) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe DomainStatus
a -> DescribeDomainResponse
s {$sel:status:DescribeDomainResponse' :: Maybe DomainStatus
status = Maybe DomainStatus
a} :: DescribeDomainResponse)

-- | The VPC subnets that Studio uses for communication.
describeDomainResponse_subnetIds :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
describeDomainResponse_subnetIds :: Lens' DescribeDomainResponse (Maybe (NonEmpty Text))
describeDomainResponse_subnetIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe (NonEmpty Text)
subnetIds :: Maybe (NonEmpty Text)
$sel:subnetIds:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe (NonEmpty Text)
subnetIds} -> Maybe (NonEmpty Text)
subnetIds) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe (NonEmpty Text)
a -> DescribeDomainResponse
s {$sel:subnetIds:DescribeDomainResponse' :: Maybe (NonEmpty Text)
subnetIds = Maybe (NonEmpty Text)
a} :: DescribeDomainResponse) 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 domain\'s URL.
describeDomainResponse_url :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe Prelude.Text)
describeDomainResponse_url :: Lens' DescribeDomainResponse (Maybe Text)
describeDomainResponse_url = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe Text
url :: Maybe Text
$sel:url:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
url} -> Maybe Text
url) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe Text
a -> DescribeDomainResponse
s {$sel:url:DescribeDomainResponse' :: Maybe Text
url = Maybe Text
a} :: DescribeDomainResponse)

-- | The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for
-- communication.
describeDomainResponse_vpcId :: Lens.Lens' DescribeDomainResponse (Prelude.Maybe Prelude.Text)
describeDomainResponse_vpcId :: Lens' DescribeDomainResponse (Maybe Text)
describeDomainResponse_vpcId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Maybe Text
a -> DescribeDomainResponse
s {$sel:vpcId:DescribeDomainResponse' :: Maybe Text
vpcId = Maybe Text
a} :: DescribeDomainResponse)

-- | The response's http status code.
describeDomainResponse_httpStatus :: Lens.Lens' DescribeDomainResponse Prelude.Int
describeDomainResponse_httpStatus :: Lens' DescribeDomainResponse Int
describeDomainResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDomainResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeDomainResponse' :: DescribeDomainResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeDomainResponse
s@DescribeDomainResponse' {} Int
a -> DescribeDomainResponse
s {$sel:httpStatus:DescribeDomainResponse' :: Int
httpStatus = Int
a} :: DescribeDomainResponse)

instance Prelude.NFData DescribeDomainResponse where
  rnf :: DescribeDomainResponse -> ()
rnf DescribeDomainResponse' {Int
Maybe (NonEmpty Text)
Maybe Text
Maybe POSIX
Maybe AppNetworkAccessType
Maybe AppSecurityGroupManagement
Maybe AuthMode
Maybe DomainStatus
Maybe DomainSettings
Maybe DefaultSpaceSettings
Maybe UserSettings
httpStatus :: Int
vpcId :: Maybe Text
url :: Maybe Text
subnetIds :: Maybe (NonEmpty Text)
status :: Maybe DomainStatus
singleSignOnManagedApplicationInstanceId :: Maybe Text
securityGroupIdForDomainBoundary :: Maybe Text
lastModifiedTime :: Maybe POSIX
kmsKeyId :: Maybe Text
homeEfsFileSystemKmsKeyId :: Maybe Text
homeEfsFileSystemId :: Maybe Text
failureReason :: Maybe Text
domainSettings :: Maybe DomainSettings
domainName :: Maybe Text
domainId :: Maybe Text
domainArn :: Maybe Text
defaultUserSettings :: Maybe UserSettings
defaultSpaceSettings :: Maybe DefaultSpaceSettings
creationTime :: Maybe POSIX
authMode :: Maybe AuthMode
appSecurityGroupManagement :: Maybe AppSecurityGroupManagement
appNetworkAccessType :: Maybe AppNetworkAccessType
$sel:httpStatus:DescribeDomainResponse' :: DescribeDomainResponse -> Int
$sel:vpcId:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
$sel:url:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
$sel:subnetIds:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe (NonEmpty Text)
$sel:status:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe DomainStatus
$sel:singleSignOnManagedApplicationInstanceId:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
$sel:securityGroupIdForDomainBoundary:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
$sel:lastModifiedTime:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe POSIX
$sel:kmsKeyId:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
$sel:homeEfsFileSystemKmsKeyId:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
$sel:homeEfsFileSystemId:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
$sel:failureReason:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
$sel:domainSettings:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe DomainSettings
$sel:domainName:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
$sel:domainId:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
$sel:domainArn:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe Text
$sel:defaultUserSettings:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe UserSettings
$sel:defaultSpaceSettings:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe DefaultSpaceSettings
$sel:creationTime:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe POSIX
$sel:authMode:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe AuthMode
$sel:appSecurityGroupManagement:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe AppSecurityGroupManagement
$sel:appNetworkAccessType:DescribeDomainResponse' :: DescribeDomainResponse -> Maybe AppNetworkAccessType
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe AppNetworkAccessType
appNetworkAccessType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe AppSecurityGroupManagement
appSecurityGroupManagement
      seq :: forall a b. a -> b -> b
`Prelude.seq` 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 DefaultSpaceSettings
defaultSpaceSettings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe UserSettings
defaultUserSettings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
domainArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
domainId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
domainName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DomainSettings
domainSettings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
failureReason
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
homeEfsFileSystemId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
homeEfsFileSystemKmsKeyId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
kmsKeyId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe Text
securityGroupIdForDomainBoundary
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe Text
singleSignOnManagedApplicationInstanceId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DomainStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Text)
subnetIds
      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
vpcId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus