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

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Nimble.Types.LaunchProfileState
import Amazonka.Nimble.Types.LaunchProfileStatusCode
import Amazonka.Nimble.Types.StreamConfiguration
import qualified Amazonka.Prelude as Prelude

-- |
--
-- /See:/ 'newLaunchProfile' smart constructor.
data LaunchProfile = LaunchProfile'
  { -- | The current state.
    LaunchProfile -> Maybe LaunchProfileState
state :: Prelude.Maybe LaunchProfileState,
    -- | The ARN of the resource.
    LaunchProfile -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The Unix epoch timestamp in seconds for when the resource was created.
    LaunchProfile -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | The user ID of the user that created the launch profile.
    LaunchProfile -> Maybe Text
createdBy :: Prelude.Maybe Prelude.Text,
    -- | The launch profile ID.
    LaunchProfile -> Maybe Text
launchProfileId :: Prelude.Maybe Prelude.Text,
    -- | The user ID of the user that most recently updated the resource.
    LaunchProfile -> Maybe Text
updatedBy :: Prelude.Maybe Prelude.Text,
    -- | The version number of the protocol that is used by the launch profile.
    -- The only valid version is \"2021-03-31\".
    LaunchProfile -> Maybe [Text]
launchProfileProtocolVersions :: Prelude.Maybe [Prelude.Text],
    -- | Unique identifiers for a collection of EC2 subnets.
    LaunchProfile -> Maybe [Text]
ec2SubnetIds :: Prelude.Maybe [Prelude.Text],
    -- | A configuration for a streaming session.
    LaunchProfile -> Maybe StreamConfiguration
streamConfiguration :: Prelude.Maybe StreamConfiguration,
    -- | A friendly name for the launch profile.
    LaunchProfile -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The status message for the launch profile.
    LaunchProfile -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
    -- | The Unix epoch timestamp in seconds for when the resource was updated.
    LaunchProfile -> Maybe POSIX
updatedAt :: Prelude.Maybe Core.POSIX,
    -- | A human-readable description of the launch profile.
    LaunchProfile -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | A collection of labels, in the form of key:value pairs, that apply to
    -- this resource.
    LaunchProfile -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The status code.
    LaunchProfile -> Maybe LaunchProfileStatusCode
statusCode :: Prelude.Maybe LaunchProfileStatusCode,
    -- | Unique identifiers for a collection of studio components that can be
    -- used with this launch profile.
    LaunchProfile -> Maybe (NonEmpty Text)
studioComponentIds :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text)
  }
  deriving (LaunchProfile -> LaunchProfile -> Bool
(LaunchProfile -> LaunchProfile -> Bool)
-> (LaunchProfile -> LaunchProfile -> Bool) -> Eq LaunchProfile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LaunchProfile -> LaunchProfile -> Bool
$c/= :: LaunchProfile -> LaunchProfile -> Bool
== :: LaunchProfile -> LaunchProfile -> Bool
$c== :: LaunchProfile -> LaunchProfile -> Bool
Prelude.Eq, ReadPrec [LaunchProfile]
ReadPrec LaunchProfile
Int -> ReadS LaunchProfile
ReadS [LaunchProfile]
(Int -> ReadS LaunchProfile)
-> ReadS [LaunchProfile]
-> ReadPrec LaunchProfile
-> ReadPrec [LaunchProfile]
-> Read LaunchProfile
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LaunchProfile]
$creadListPrec :: ReadPrec [LaunchProfile]
readPrec :: ReadPrec LaunchProfile
$creadPrec :: ReadPrec LaunchProfile
readList :: ReadS [LaunchProfile]
$creadList :: ReadS [LaunchProfile]
readsPrec :: Int -> ReadS LaunchProfile
$creadsPrec :: Int -> ReadS LaunchProfile
Prelude.Read, Int -> LaunchProfile -> ShowS
[LaunchProfile] -> ShowS
LaunchProfile -> String
(Int -> LaunchProfile -> ShowS)
-> (LaunchProfile -> String)
-> ([LaunchProfile] -> ShowS)
-> Show LaunchProfile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LaunchProfile] -> ShowS
$cshowList :: [LaunchProfile] -> ShowS
show :: LaunchProfile -> String
$cshow :: LaunchProfile -> String
showsPrec :: Int -> LaunchProfile -> ShowS
$cshowsPrec :: Int -> LaunchProfile -> ShowS
Prelude.Show, (forall x. LaunchProfile -> Rep LaunchProfile x)
-> (forall x. Rep LaunchProfile x -> LaunchProfile)
-> Generic LaunchProfile
forall x. Rep LaunchProfile x -> LaunchProfile
forall x. LaunchProfile -> Rep LaunchProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LaunchProfile x -> LaunchProfile
$cfrom :: forall x. LaunchProfile -> Rep LaunchProfile x
Prelude.Generic)

-- |
-- Create a value of 'LaunchProfile' 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:
--
-- 'state', 'launchProfile_state' - The current state.
--
-- 'arn', 'launchProfile_arn' - The ARN of the resource.
--
-- 'createdAt', 'launchProfile_createdAt' - The Unix epoch timestamp in seconds for when the resource was created.
--
-- 'createdBy', 'launchProfile_createdBy' - The user ID of the user that created the launch profile.
--
-- 'launchProfileId', 'launchProfile_launchProfileId' - The launch profile ID.
--
-- 'updatedBy', 'launchProfile_updatedBy' - The user ID of the user that most recently updated the resource.
--
-- 'launchProfileProtocolVersions', 'launchProfile_launchProfileProtocolVersions' - The version number of the protocol that is used by the launch profile.
-- The only valid version is \"2021-03-31\".
--
-- 'ec2SubnetIds', 'launchProfile_ec2SubnetIds' - Unique identifiers for a collection of EC2 subnets.
--
-- 'streamConfiguration', 'launchProfile_streamConfiguration' - A configuration for a streaming session.
--
-- 'name', 'launchProfile_name' - A friendly name for the launch profile.
--
-- 'statusMessage', 'launchProfile_statusMessage' - The status message for the launch profile.
--
-- 'updatedAt', 'launchProfile_updatedAt' - The Unix epoch timestamp in seconds for when the resource was updated.
--
-- 'description', 'launchProfile_description' - A human-readable description of the launch profile.
--
-- 'tags', 'launchProfile_tags' - A collection of labels, in the form of key:value pairs, that apply to
-- this resource.
--
-- 'statusCode', 'launchProfile_statusCode' - The status code.
--
-- 'studioComponentIds', 'launchProfile_studioComponentIds' - Unique identifiers for a collection of studio components that can be
-- used with this launch profile.
newLaunchProfile ::
  LaunchProfile
newLaunchProfile :: LaunchProfile
newLaunchProfile =
  LaunchProfile' :: Maybe LaunchProfileState
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe [Text]
-> Maybe StreamConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe LaunchProfileStatusCode
-> Maybe (NonEmpty Text)
-> LaunchProfile
LaunchProfile'
    { $sel:state:LaunchProfile' :: Maybe LaunchProfileState
state = Maybe LaunchProfileState
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:LaunchProfile' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:LaunchProfile' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:createdBy:LaunchProfile' :: Maybe Text
createdBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:launchProfileId:LaunchProfile' :: Maybe Text
launchProfileId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:updatedBy:LaunchProfile' :: Maybe Text
updatedBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:launchProfileProtocolVersions:LaunchProfile' :: Maybe [Text]
launchProfileProtocolVersions = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:ec2SubnetIds:LaunchProfile' :: Maybe [Text]
ec2SubnetIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:streamConfiguration:LaunchProfile' :: Maybe StreamConfiguration
streamConfiguration = Maybe StreamConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:name:LaunchProfile' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:statusMessage:LaunchProfile' :: Maybe Text
statusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:updatedAt:LaunchProfile' :: Maybe POSIX
updatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:description:LaunchProfile' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:LaunchProfile' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:statusCode:LaunchProfile' :: Maybe LaunchProfileStatusCode
statusCode = Maybe LaunchProfileStatusCode
forall a. Maybe a
Prelude.Nothing,
      $sel:studioComponentIds:LaunchProfile' :: Maybe (NonEmpty Text)
studioComponentIds = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing
    }

-- | The current state.
launchProfile_state :: Lens.Lens' LaunchProfile (Prelude.Maybe LaunchProfileState)
launchProfile_state :: (Maybe LaunchProfileState -> f (Maybe LaunchProfileState))
-> LaunchProfile -> f LaunchProfile
launchProfile_state = (LaunchProfile -> Maybe LaunchProfileState)
-> (LaunchProfile -> Maybe LaunchProfileState -> LaunchProfile)
-> Lens
     LaunchProfile
     LaunchProfile
     (Maybe LaunchProfileState)
     (Maybe LaunchProfileState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchProfile' {Maybe LaunchProfileState
state :: Maybe LaunchProfileState
$sel:state:LaunchProfile' :: LaunchProfile -> Maybe LaunchProfileState
state} -> Maybe LaunchProfileState
state) (\s :: LaunchProfile
s@LaunchProfile' {} Maybe LaunchProfileState
a -> LaunchProfile
s {$sel:state:LaunchProfile' :: Maybe LaunchProfileState
state = Maybe LaunchProfileState
a} :: LaunchProfile)

-- | The ARN of the resource.
launchProfile_arn :: Lens.Lens' LaunchProfile (Prelude.Maybe Prelude.Text)
launchProfile_arn :: (Maybe Text -> f (Maybe Text)) -> LaunchProfile -> f LaunchProfile
launchProfile_arn = (LaunchProfile -> Maybe Text)
-> (LaunchProfile -> Maybe Text -> LaunchProfile)
-> Lens LaunchProfile LaunchProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchProfile' {Maybe Text
arn :: Maybe Text
$sel:arn:LaunchProfile' :: LaunchProfile -> Maybe Text
arn} -> Maybe Text
arn) (\s :: LaunchProfile
s@LaunchProfile' {} Maybe Text
a -> LaunchProfile
s {$sel:arn:LaunchProfile' :: Maybe Text
arn = Maybe Text
a} :: LaunchProfile)

-- | The Unix epoch timestamp in seconds for when the resource was created.
launchProfile_createdAt :: Lens.Lens' LaunchProfile (Prelude.Maybe Prelude.UTCTime)
launchProfile_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> LaunchProfile -> f LaunchProfile
launchProfile_createdAt = (LaunchProfile -> Maybe POSIX)
-> (LaunchProfile -> Maybe POSIX -> LaunchProfile)
-> Lens LaunchProfile LaunchProfile (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchProfile' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:LaunchProfile' :: LaunchProfile -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: LaunchProfile
s@LaunchProfile' {} Maybe POSIX
a -> LaunchProfile
s {$sel:createdAt:LaunchProfile' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: LaunchProfile) ((Maybe POSIX -> f (Maybe POSIX))
 -> LaunchProfile -> f LaunchProfile)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> LaunchProfile
-> f LaunchProfile
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The user ID of the user that created the launch profile.
launchProfile_createdBy :: Lens.Lens' LaunchProfile (Prelude.Maybe Prelude.Text)
launchProfile_createdBy :: (Maybe Text -> f (Maybe Text)) -> LaunchProfile -> f LaunchProfile
launchProfile_createdBy = (LaunchProfile -> Maybe Text)
-> (LaunchProfile -> Maybe Text -> LaunchProfile)
-> Lens LaunchProfile LaunchProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchProfile' {Maybe Text
createdBy :: Maybe Text
$sel:createdBy:LaunchProfile' :: LaunchProfile -> Maybe Text
createdBy} -> Maybe Text
createdBy) (\s :: LaunchProfile
s@LaunchProfile' {} Maybe Text
a -> LaunchProfile
s {$sel:createdBy:LaunchProfile' :: Maybe Text
createdBy = Maybe Text
a} :: LaunchProfile)

-- | The launch profile ID.
launchProfile_launchProfileId :: Lens.Lens' LaunchProfile (Prelude.Maybe Prelude.Text)
launchProfile_launchProfileId :: (Maybe Text -> f (Maybe Text)) -> LaunchProfile -> f LaunchProfile
launchProfile_launchProfileId = (LaunchProfile -> Maybe Text)
-> (LaunchProfile -> Maybe Text -> LaunchProfile)
-> Lens LaunchProfile LaunchProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchProfile' {Maybe Text
launchProfileId :: Maybe Text
$sel:launchProfileId:LaunchProfile' :: LaunchProfile -> Maybe Text
launchProfileId} -> Maybe Text
launchProfileId) (\s :: LaunchProfile
s@LaunchProfile' {} Maybe Text
a -> LaunchProfile
s {$sel:launchProfileId:LaunchProfile' :: Maybe Text
launchProfileId = Maybe Text
a} :: LaunchProfile)

-- | The user ID of the user that most recently updated the resource.
launchProfile_updatedBy :: Lens.Lens' LaunchProfile (Prelude.Maybe Prelude.Text)
launchProfile_updatedBy :: (Maybe Text -> f (Maybe Text)) -> LaunchProfile -> f LaunchProfile
launchProfile_updatedBy = (LaunchProfile -> Maybe Text)
-> (LaunchProfile -> Maybe Text -> LaunchProfile)
-> Lens LaunchProfile LaunchProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchProfile' {Maybe Text
updatedBy :: Maybe Text
$sel:updatedBy:LaunchProfile' :: LaunchProfile -> Maybe Text
updatedBy} -> Maybe Text
updatedBy) (\s :: LaunchProfile
s@LaunchProfile' {} Maybe Text
a -> LaunchProfile
s {$sel:updatedBy:LaunchProfile' :: Maybe Text
updatedBy = Maybe Text
a} :: LaunchProfile)

-- | The version number of the protocol that is used by the launch profile.
-- The only valid version is \"2021-03-31\".
launchProfile_launchProfileProtocolVersions :: Lens.Lens' LaunchProfile (Prelude.Maybe [Prelude.Text])
launchProfile_launchProfileProtocolVersions :: (Maybe [Text] -> f (Maybe [Text]))
-> LaunchProfile -> f LaunchProfile
launchProfile_launchProfileProtocolVersions = (LaunchProfile -> Maybe [Text])
-> (LaunchProfile -> Maybe [Text] -> LaunchProfile)
-> Lens LaunchProfile LaunchProfile (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchProfile' {Maybe [Text]
launchProfileProtocolVersions :: Maybe [Text]
$sel:launchProfileProtocolVersions:LaunchProfile' :: LaunchProfile -> Maybe [Text]
launchProfileProtocolVersions} -> Maybe [Text]
launchProfileProtocolVersions) (\s :: LaunchProfile
s@LaunchProfile' {} Maybe [Text]
a -> LaunchProfile
s {$sel:launchProfileProtocolVersions:LaunchProfile' :: Maybe [Text]
launchProfileProtocolVersions = Maybe [Text]
a} :: LaunchProfile) ((Maybe [Text] -> f (Maybe [Text]))
 -> LaunchProfile -> f LaunchProfile)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> LaunchProfile
-> f LaunchProfile
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Unique identifiers for a collection of EC2 subnets.
launchProfile_ec2SubnetIds :: Lens.Lens' LaunchProfile (Prelude.Maybe [Prelude.Text])
launchProfile_ec2SubnetIds :: (Maybe [Text] -> f (Maybe [Text]))
-> LaunchProfile -> f LaunchProfile
launchProfile_ec2SubnetIds = (LaunchProfile -> Maybe [Text])
-> (LaunchProfile -> Maybe [Text] -> LaunchProfile)
-> Lens LaunchProfile LaunchProfile (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchProfile' {Maybe [Text]
ec2SubnetIds :: Maybe [Text]
$sel:ec2SubnetIds:LaunchProfile' :: LaunchProfile -> Maybe [Text]
ec2SubnetIds} -> Maybe [Text]
ec2SubnetIds) (\s :: LaunchProfile
s@LaunchProfile' {} Maybe [Text]
a -> LaunchProfile
s {$sel:ec2SubnetIds:LaunchProfile' :: Maybe [Text]
ec2SubnetIds = Maybe [Text]
a} :: LaunchProfile) ((Maybe [Text] -> f (Maybe [Text]))
 -> LaunchProfile -> f LaunchProfile)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> LaunchProfile
-> f LaunchProfile
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A configuration for a streaming session.
launchProfile_streamConfiguration :: Lens.Lens' LaunchProfile (Prelude.Maybe StreamConfiguration)
launchProfile_streamConfiguration :: (Maybe StreamConfiguration -> f (Maybe StreamConfiguration))
-> LaunchProfile -> f LaunchProfile
launchProfile_streamConfiguration = (LaunchProfile -> Maybe StreamConfiguration)
-> (LaunchProfile -> Maybe StreamConfiguration -> LaunchProfile)
-> Lens
     LaunchProfile
     LaunchProfile
     (Maybe StreamConfiguration)
     (Maybe StreamConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchProfile' {Maybe StreamConfiguration
streamConfiguration :: Maybe StreamConfiguration
$sel:streamConfiguration:LaunchProfile' :: LaunchProfile -> Maybe StreamConfiguration
streamConfiguration} -> Maybe StreamConfiguration
streamConfiguration) (\s :: LaunchProfile
s@LaunchProfile' {} Maybe StreamConfiguration
a -> LaunchProfile
s {$sel:streamConfiguration:LaunchProfile' :: Maybe StreamConfiguration
streamConfiguration = Maybe StreamConfiguration
a} :: LaunchProfile)

-- | A friendly name for the launch profile.
launchProfile_name :: Lens.Lens' LaunchProfile (Prelude.Maybe Prelude.Text)
launchProfile_name :: (Maybe Text -> f (Maybe Text)) -> LaunchProfile -> f LaunchProfile
launchProfile_name = (LaunchProfile -> Maybe Text)
-> (LaunchProfile -> Maybe Text -> LaunchProfile)
-> Lens LaunchProfile LaunchProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchProfile' {Maybe Text
name :: Maybe Text
$sel:name:LaunchProfile' :: LaunchProfile -> Maybe Text
name} -> Maybe Text
name) (\s :: LaunchProfile
s@LaunchProfile' {} Maybe Text
a -> LaunchProfile
s {$sel:name:LaunchProfile' :: Maybe Text
name = Maybe Text
a} :: LaunchProfile)

-- | The status message for the launch profile.
launchProfile_statusMessage :: Lens.Lens' LaunchProfile (Prelude.Maybe Prelude.Text)
launchProfile_statusMessage :: (Maybe Text -> f (Maybe Text)) -> LaunchProfile -> f LaunchProfile
launchProfile_statusMessage = (LaunchProfile -> Maybe Text)
-> (LaunchProfile -> Maybe Text -> LaunchProfile)
-> Lens LaunchProfile LaunchProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchProfile' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:LaunchProfile' :: LaunchProfile -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: LaunchProfile
s@LaunchProfile' {} Maybe Text
a -> LaunchProfile
s {$sel:statusMessage:LaunchProfile' :: Maybe Text
statusMessage = Maybe Text
a} :: LaunchProfile)

-- | The Unix epoch timestamp in seconds for when the resource was updated.
launchProfile_updatedAt :: Lens.Lens' LaunchProfile (Prelude.Maybe Prelude.UTCTime)
launchProfile_updatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> LaunchProfile -> f LaunchProfile
launchProfile_updatedAt = (LaunchProfile -> Maybe POSIX)
-> (LaunchProfile -> Maybe POSIX -> LaunchProfile)
-> Lens LaunchProfile LaunchProfile (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchProfile' {Maybe POSIX
updatedAt :: Maybe POSIX
$sel:updatedAt:LaunchProfile' :: LaunchProfile -> Maybe POSIX
updatedAt} -> Maybe POSIX
updatedAt) (\s :: LaunchProfile
s@LaunchProfile' {} Maybe POSIX
a -> LaunchProfile
s {$sel:updatedAt:LaunchProfile' :: Maybe POSIX
updatedAt = Maybe POSIX
a} :: LaunchProfile) ((Maybe POSIX -> f (Maybe POSIX))
 -> LaunchProfile -> f LaunchProfile)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> LaunchProfile
-> f LaunchProfile
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | A human-readable description of the launch profile.
launchProfile_description :: Lens.Lens' LaunchProfile (Prelude.Maybe Prelude.Text)
launchProfile_description :: (Maybe Text -> f (Maybe Text)) -> LaunchProfile -> f LaunchProfile
launchProfile_description = (LaunchProfile -> Maybe Text)
-> (LaunchProfile -> Maybe Text -> LaunchProfile)
-> Lens LaunchProfile LaunchProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchProfile' {Maybe Text
description :: Maybe Text
$sel:description:LaunchProfile' :: LaunchProfile -> Maybe Text
description} -> Maybe Text
description) (\s :: LaunchProfile
s@LaunchProfile' {} Maybe Text
a -> LaunchProfile
s {$sel:description:LaunchProfile' :: Maybe Text
description = Maybe Text
a} :: LaunchProfile)

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

-- | The status code.
launchProfile_statusCode :: Lens.Lens' LaunchProfile (Prelude.Maybe LaunchProfileStatusCode)
launchProfile_statusCode :: (Maybe LaunchProfileStatusCode
 -> f (Maybe LaunchProfileStatusCode))
-> LaunchProfile -> f LaunchProfile
launchProfile_statusCode = (LaunchProfile -> Maybe LaunchProfileStatusCode)
-> (LaunchProfile
    -> Maybe LaunchProfileStatusCode -> LaunchProfile)
-> Lens
     LaunchProfile
     LaunchProfile
     (Maybe LaunchProfileStatusCode)
     (Maybe LaunchProfileStatusCode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchProfile' {Maybe LaunchProfileStatusCode
statusCode :: Maybe LaunchProfileStatusCode
$sel:statusCode:LaunchProfile' :: LaunchProfile -> Maybe LaunchProfileStatusCode
statusCode} -> Maybe LaunchProfileStatusCode
statusCode) (\s :: LaunchProfile
s@LaunchProfile' {} Maybe LaunchProfileStatusCode
a -> LaunchProfile
s {$sel:statusCode:LaunchProfile' :: Maybe LaunchProfileStatusCode
statusCode = Maybe LaunchProfileStatusCode
a} :: LaunchProfile)

-- | Unique identifiers for a collection of studio components that can be
-- used with this launch profile.
launchProfile_studioComponentIds :: Lens.Lens' LaunchProfile (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
launchProfile_studioComponentIds :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> LaunchProfile -> f LaunchProfile
launchProfile_studioComponentIds = (LaunchProfile -> Maybe (NonEmpty Text))
-> (LaunchProfile -> Maybe (NonEmpty Text) -> LaunchProfile)
-> Lens
     LaunchProfile
     LaunchProfile
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchProfile' {Maybe (NonEmpty Text)
studioComponentIds :: Maybe (NonEmpty Text)
$sel:studioComponentIds:LaunchProfile' :: LaunchProfile -> Maybe (NonEmpty Text)
studioComponentIds} -> Maybe (NonEmpty Text)
studioComponentIds) (\s :: LaunchProfile
s@LaunchProfile' {} Maybe (NonEmpty Text)
a -> LaunchProfile
s {$sel:studioComponentIds:LaunchProfile' :: Maybe (NonEmpty Text)
studioComponentIds = Maybe (NonEmpty Text)
a} :: LaunchProfile) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
 -> LaunchProfile -> f LaunchProfile)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
    -> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> LaunchProfile
-> f LaunchProfile
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
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 AnIso
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.FromJSON LaunchProfile where
  parseJSON :: Value -> Parser LaunchProfile
parseJSON =
    String
-> (Object -> Parser LaunchProfile)
-> Value
-> Parser LaunchProfile
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"LaunchProfile"
      ( \Object
x ->
          Maybe LaunchProfileState
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe [Text]
-> Maybe StreamConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe LaunchProfileStatusCode
-> Maybe (NonEmpty Text)
-> LaunchProfile
LaunchProfile'
            (Maybe LaunchProfileState
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe [Text]
 -> Maybe [Text]
 -> Maybe StreamConfiguration
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Maybe LaunchProfileStatusCode
 -> Maybe (NonEmpty Text)
 -> LaunchProfile)
-> Parser (Maybe LaunchProfileState)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe [Text]
      -> Maybe StreamConfiguration
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe LaunchProfileStatusCode
      -> Maybe (NonEmpty Text)
      -> LaunchProfile)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe LaunchProfileState)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"state")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe [Text]
   -> Maybe StreamConfiguration
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe LaunchProfileStatusCode
   -> Maybe (NonEmpty Text)
   -> LaunchProfile)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe [Text]
      -> Maybe StreamConfiguration
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe LaunchProfileStatusCode
      -> Maybe (NonEmpty Text)
      -> LaunchProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"arn")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe [Text]
   -> Maybe StreamConfiguration
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe LaunchProfileStatusCode
   -> Maybe (NonEmpty Text)
   -> LaunchProfile)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe [Text]
      -> Maybe StreamConfiguration
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe LaunchProfileStatusCode
      -> Maybe (NonEmpty Text)
      -> LaunchProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"createdAt")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe [Text]
   -> Maybe StreamConfiguration
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe LaunchProfileStatusCode
   -> Maybe (NonEmpty Text)
   -> LaunchProfile)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe [Text]
      -> Maybe StreamConfiguration
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe LaunchProfileStatusCode
      -> Maybe (NonEmpty Text)
      -> LaunchProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"createdBy")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe [Text]
   -> Maybe StreamConfiguration
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe LaunchProfileStatusCode
   -> Maybe (NonEmpty Text)
   -> LaunchProfile)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe [Text]
      -> Maybe [Text]
      -> Maybe StreamConfiguration
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe LaunchProfileStatusCode
      -> Maybe (NonEmpty Text)
      -> LaunchProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"launchProfileId")
            Parser
  (Maybe Text
   -> Maybe [Text]
   -> Maybe [Text]
   -> Maybe StreamConfiguration
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe LaunchProfileStatusCode
   -> Maybe (NonEmpty Text)
   -> LaunchProfile)
-> Parser (Maybe Text)
-> Parser
     (Maybe [Text]
      -> Maybe [Text]
      -> Maybe StreamConfiguration
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe LaunchProfileStatusCode
      -> Maybe (NonEmpty Text)
      -> LaunchProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"updatedBy")
            Parser
  (Maybe [Text]
   -> Maybe [Text]
   -> Maybe StreamConfiguration
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe LaunchProfileStatusCode
   -> Maybe (NonEmpty Text)
   -> LaunchProfile)
-> Parser (Maybe [Text])
-> Parser
     (Maybe [Text]
      -> Maybe StreamConfiguration
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe LaunchProfileStatusCode
      -> Maybe (NonEmpty Text)
      -> LaunchProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"launchProfileProtocolVersions"
                            Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe [Text]
   -> Maybe StreamConfiguration
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe LaunchProfileStatusCode
   -> Maybe (NonEmpty Text)
   -> LaunchProfile)
-> Parser (Maybe [Text])
-> Parser
     (Maybe StreamConfiguration
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe LaunchProfileStatusCode
      -> Maybe (NonEmpty Text)
      -> LaunchProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ec2SubnetIds" Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe StreamConfiguration
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe LaunchProfileStatusCode
   -> Maybe (NonEmpty Text)
   -> LaunchProfile)
-> Parser (Maybe StreamConfiguration)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe LaunchProfileStatusCode
      -> Maybe (NonEmpty Text)
      -> LaunchProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe StreamConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"streamConfiguration")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe LaunchProfileStatusCode
   -> Maybe (NonEmpty Text)
   -> LaunchProfile)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe LaunchProfileStatusCode
      -> Maybe (NonEmpty Text)
      -> LaunchProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"name")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe LaunchProfileStatusCode
   -> Maybe (NonEmpty Text)
   -> LaunchProfile)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe LaunchProfileStatusCode
      -> Maybe (NonEmpty Text)
      -> LaunchProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"statusMessage")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe LaunchProfileStatusCode
   -> Maybe (NonEmpty Text)
   -> LaunchProfile)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe LaunchProfileStatusCode
      -> Maybe (NonEmpty Text)
      -> LaunchProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"updatedAt")
            Parser
  (Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe LaunchProfileStatusCode
   -> Maybe (NonEmpty Text)
   -> LaunchProfile)
-> Parser (Maybe Text)
-> Parser
     (Maybe (HashMap Text Text)
      -> Maybe LaunchProfileStatusCode
      -> Maybe (NonEmpty Text)
      -> LaunchProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"description")
            Parser
  (Maybe (HashMap Text Text)
   -> Maybe LaunchProfileStatusCode
   -> Maybe (NonEmpty Text)
   -> LaunchProfile)
-> Parser (Maybe (HashMap Text Text))
-> Parser
     (Maybe LaunchProfileStatusCode
      -> Maybe (NonEmpty Text) -> LaunchProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"tags" Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe LaunchProfileStatusCode
   -> Maybe (NonEmpty Text) -> LaunchProfile)
-> Parser (Maybe LaunchProfileStatusCode)
-> Parser (Maybe (NonEmpty Text) -> LaunchProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LaunchProfileStatusCode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"statusCode")
            Parser (Maybe (NonEmpty Text) -> LaunchProfile)
-> Parser (Maybe (NonEmpty Text)) -> Parser LaunchProfile
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (NonEmpty Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"studioComponentIds")
      )

instance Prelude.Hashable LaunchProfile

instance Prelude.NFData LaunchProfile