{-# 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.MGN.Types.LaunchConfiguration
-- 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.MGN.Types.LaunchConfiguration where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MGN.Types.LaunchDisposition
import Amazonka.MGN.Types.Licensing
import Amazonka.MGN.Types.TargetInstanceTypeRightSizingMethod
import qualified Amazonka.Prelude as Prelude

-- | /See:/ 'newLaunchConfiguration' smart constructor.
data LaunchConfiguration = LaunchConfiguration'
  { -- | Configure EC2 lauch configuration template ID.
    LaunchConfiguration -> Maybe Text
ec2LaunchTemplateID :: Prelude.Maybe Prelude.Text,
    -- | Configure launch configuration Target instance type right sizing method.
    LaunchConfiguration -> Maybe TargetInstanceTypeRightSizingMethod
targetInstanceTypeRightSizingMethod :: Prelude.Maybe TargetInstanceTypeRightSizingMethod,
    -- | Configure launch dispostion for launch configuration.
    LaunchConfiguration -> Maybe LaunchDisposition
launchDisposition :: Prelude.Maybe LaunchDisposition,
    -- | Copy Tags during Launch Configuration.
    LaunchConfiguration -> Maybe Bool
copyTags :: Prelude.Maybe Prelude.Bool,
    -- | Configure launch configuration name.
    LaunchConfiguration -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | Configure launch configuration Source Server ID.
    LaunchConfiguration -> Maybe Text
sourceServerID :: Prelude.Maybe Prelude.Text,
    -- | Configure launch configuration OS licensing.
    LaunchConfiguration -> Maybe Licensing
licensing :: Prelude.Maybe Licensing,
    -- | Copy Private IP during Launch Configuration.
    LaunchConfiguration -> Maybe Bool
copyPrivateIp :: Prelude.Maybe Prelude.Bool
  }
  deriving (LaunchConfiguration -> LaunchConfiguration -> Bool
(LaunchConfiguration -> LaunchConfiguration -> Bool)
-> (LaunchConfiguration -> LaunchConfiguration -> Bool)
-> Eq LaunchConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LaunchConfiguration -> LaunchConfiguration -> Bool
$c/= :: LaunchConfiguration -> LaunchConfiguration -> Bool
== :: LaunchConfiguration -> LaunchConfiguration -> Bool
$c== :: LaunchConfiguration -> LaunchConfiguration -> Bool
Prelude.Eq, ReadPrec [LaunchConfiguration]
ReadPrec LaunchConfiguration
Int -> ReadS LaunchConfiguration
ReadS [LaunchConfiguration]
(Int -> ReadS LaunchConfiguration)
-> ReadS [LaunchConfiguration]
-> ReadPrec LaunchConfiguration
-> ReadPrec [LaunchConfiguration]
-> Read LaunchConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LaunchConfiguration]
$creadListPrec :: ReadPrec [LaunchConfiguration]
readPrec :: ReadPrec LaunchConfiguration
$creadPrec :: ReadPrec LaunchConfiguration
readList :: ReadS [LaunchConfiguration]
$creadList :: ReadS [LaunchConfiguration]
readsPrec :: Int -> ReadS LaunchConfiguration
$creadsPrec :: Int -> ReadS LaunchConfiguration
Prelude.Read, Int -> LaunchConfiguration -> ShowS
[LaunchConfiguration] -> ShowS
LaunchConfiguration -> String
(Int -> LaunchConfiguration -> ShowS)
-> (LaunchConfiguration -> String)
-> ([LaunchConfiguration] -> ShowS)
-> Show LaunchConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LaunchConfiguration] -> ShowS
$cshowList :: [LaunchConfiguration] -> ShowS
show :: LaunchConfiguration -> String
$cshow :: LaunchConfiguration -> String
showsPrec :: Int -> LaunchConfiguration -> ShowS
$cshowsPrec :: Int -> LaunchConfiguration -> ShowS
Prelude.Show, (forall x. LaunchConfiguration -> Rep LaunchConfiguration x)
-> (forall x. Rep LaunchConfiguration x -> LaunchConfiguration)
-> Generic LaunchConfiguration
forall x. Rep LaunchConfiguration x -> LaunchConfiguration
forall x. LaunchConfiguration -> Rep LaunchConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LaunchConfiguration x -> LaunchConfiguration
$cfrom :: forall x. LaunchConfiguration -> Rep LaunchConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'LaunchConfiguration' 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:
--
-- 'ec2LaunchTemplateID', 'launchConfiguration_ec2LaunchTemplateID' - Configure EC2 lauch configuration template ID.
--
-- 'targetInstanceTypeRightSizingMethod', 'launchConfiguration_targetInstanceTypeRightSizingMethod' - Configure launch configuration Target instance type right sizing method.
--
-- 'launchDisposition', 'launchConfiguration_launchDisposition' - Configure launch dispostion for launch configuration.
--
-- 'copyTags', 'launchConfiguration_copyTags' - Copy Tags during Launch Configuration.
--
-- 'name', 'launchConfiguration_name' - Configure launch configuration name.
--
-- 'sourceServerID', 'launchConfiguration_sourceServerID' - Configure launch configuration Source Server ID.
--
-- 'licensing', 'launchConfiguration_licensing' - Configure launch configuration OS licensing.
--
-- 'copyPrivateIp', 'launchConfiguration_copyPrivateIp' - Copy Private IP during Launch Configuration.
newLaunchConfiguration ::
  LaunchConfiguration
newLaunchConfiguration :: LaunchConfiguration
newLaunchConfiguration =
  LaunchConfiguration' :: Maybe Text
-> Maybe TargetInstanceTypeRightSizingMethod
-> Maybe LaunchDisposition
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Licensing
-> Maybe Bool
-> LaunchConfiguration
LaunchConfiguration'
    { $sel:ec2LaunchTemplateID:LaunchConfiguration' :: Maybe Text
ec2LaunchTemplateID =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:targetInstanceTypeRightSizingMethod:LaunchConfiguration' :: Maybe TargetInstanceTypeRightSizingMethod
targetInstanceTypeRightSizingMethod =
        Maybe TargetInstanceTypeRightSizingMethod
forall a. Maybe a
Prelude.Nothing,
      $sel:launchDisposition:LaunchConfiguration' :: Maybe LaunchDisposition
launchDisposition = Maybe LaunchDisposition
forall a. Maybe a
Prelude.Nothing,
      $sel:copyTags:LaunchConfiguration' :: Maybe Bool
copyTags = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:name:LaunchConfiguration' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceServerID:LaunchConfiguration' :: Maybe Text
sourceServerID = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:licensing:LaunchConfiguration' :: Maybe Licensing
licensing = Maybe Licensing
forall a. Maybe a
Prelude.Nothing,
      $sel:copyPrivateIp:LaunchConfiguration' :: Maybe Bool
copyPrivateIp = Maybe Bool
forall a. Maybe a
Prelude.Nothing
    }

-- | Configure EC2 lauch configuration template ID.
launchConfiguration_ec2LaunchTemplateID :: Lens.Lens' LaunchConfiguration (Prelude.Maybe Prelude.Text)
launchConfiguration_ec2LaunchTemplateID :: (Maybe Text -> f (Maybe Text))
-> LaunchConfiguration -> f LaunchConfiguration
launchConfiguration_ec2LaunchTemplateID = (LaunchConfiguration -> Maybe Text)
-> (LaunchConfiguration -> Maybe Text -> LaunchConfiguration)
-> Lens
     LaunchConfiguration LaunchConfiguration (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchConfiguration' {Maybe Text
ec2LaunchTemplateID :: Maybe Text
$sel:ec2LaunchTemplateID:LaunchConfiguration' :: LaunchConfiguration -> Maybe Text
ec2LaunchTemplateID} -> Maybe Text
ec2LaunchTemplateID) (\s :: LaunchConfiguration
s@LaunchConfiguration' {} Maybe Text
a -> LaunchConfiguration
s {$sel:ec2LaunchTemplateID:LaunchConfiguration' :: Maybe Text
ec2LaunchTemplateID = Maybe Text
a} :: LaunchConfiguration)

-- | Configure launch configuration Target instance type right sizing method.
launchConfiguration_targetInstanceTypeRightSizingMethod :: Lens.Lens' LaunchConfiguration (Prelude.Maybe TargetInstanceTypeRightSizingMethod)
launchConfiguration_targetInstanceTypeRightSizingMethod :: (Maybe TargetInstanceTypeRightSizingMethod
 -> f (Maybe TargetInstanceTypeRightSizingMethod))
-> LaunchConfiguration -> f LaunchConfiguration
launchConfiguration_targetInstanceTypeRightSizingMethod = (LaunchConfiguration -> Maybe TargetInstanceTypeRightSizingMethod)
-> (LaunchConfiguration
    -> Maybe TargetInstanceTypeRightSizingMethod
    -> LaunchConfiguration)
-> Lens
     LaunchConfiguration
     LaunchConfiguration
     (Maybe TargetInstanceTypeRightSizingMethod)
     (Maybe TargetInstanceTypeRightSizingMethod)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchConfiguration' {Maybe TargetInstanceTypeRightSizingMethod
targetInstanceTypeRightSizingMethod :: Maybe TargetInstanceTypeRightSizingMethod
$sel:targetInstanceTypeRightSizingMethod:LaunchConfiguration' :: LaunchConfiguration -> Maybe TargetInstanceTypeRightSizingMethod
targetInstanceTypeRightSizingMethod} -> Maybe TargetInstanceTypeRightSizingMethod
targetInstanceTypeRightSizingMethod) (\s :: LaunchConfiguration
s@LaunchConfiguration' {} Maybe TargetInstanceTypeRightSizingMethod
a -> LaunchConfiguration
s {$sel:targetInstanceTypeRightSizingMethod:LaunchConfiguration' :: Maybe TargetInstanceTypeRightSizingMethod
targetInstanceTypeRightSizingMethod = Maybe TargetInstanceTypeRightSizingMethod
a} :: LaunchConfiguration)

-- | Configure launch dispostion for launch configuration.
launchConfiguration_launchDisposition :: Lens.Lens' LaunchConfiguration (Prelude.Maybe LaunchDisposition)
launchConfiguration_launchDisposition :: (Maybe LaunchDisposition -> f (Maybe LaunchDisposition))
-> LaunchConfiguration -> f LaunchConfiguration
launchConfiguration_launchDisposition = (LaunchConfiguration -> Maybe LaunchDisposition)
-> (LaunchConfiguration
    -> Maybe LaunchDisposition -> LaunchConfiguration)
-> Lens
     LaunchConfiguration
     LaunchConfiguration
     (Maybe LaunchDisposition)
     (Maybe LaunchDisposition)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchConfiguration' {Maybe LaunchDisposition
launchDisposition :: Maybe LaunchDisposition
$sel:launchDisposition:LaunchConfiguration' :: LaunchConfiguration -> Maybe LaunchDisposition
launchDisposition} -> Maybe LaunchDisposition
launchDisposition) (\s :: LaunchConfiguration
s@LaunchConfiguration' {} Maybe LaunchDisposition
a -> LaunchConfiguration
s {$sel:launchDisposition:LaunchConfiguration' :: Maybe LaunchDisposition
launchDisposition = Maybe LaunchDisposition
a} :: LaunchConfiguration)

-- | Copy Tags during Launch Configuration.
launchConfiguration_copyTags :: Lens.Lens' LaunchConfiguration (Prelude.Maybe Prelude.Bool)
launchConfiguration_copyTags :: (Maybe Bool -> f (Maybe Bool))
-> LaunchConfiguration -> f LaunchConfiguration
launchConfiguration_copyTags = (LaunchConfiguration -> Maybe Bool)
-> (LaunchConfiguration -> Maybe Bool -> LaunchConfiguration)
-> Lens
     LaunchConfiguration LaunchConfiguration (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchConfiguration' {Maybe Bool
copyTags :: Maybe Bool
$sel:copyTags:LaunchConfiguration' :: LaunchConfiguration -> Maybe Bool
copyTags} -> Maybe Bool
copyTags) (\s :: LaunchConfiguration
s@LaunchConfiguration' {} Maybe Bool
a -> LaunchConfiguration
s {$sel:copyTags:LaunchConfiguration' :: Maybe Bool
copyTags = Maybe Bool
a} :: LaunchConfiguration)

-- | Configure launch configuration name.
launchConfiguration_name :: Lens.Lens' LaunchConfiguration (Prelude.Maybe Prelude.Text)
launchConfiguration_name :: (Maybe Text -> f (Maybe Text))
-> LaunchConfiguration -> f LaunchConfiguration
launchConfiguration_name = (LaunchConfiguration -> Maybe Text)
-> (LaunchConfiguration -> Maybe Text -> LaunchConfiguration)
-> Lens
     LaunchConfiguration LaunchConfiguration (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchConfiguration' {Maybe Text
name :: Maybe Text
$sel:name:LaunchConfiguration' :: LaunchConfiguration -> Maybe Text
name} -> Maybe Text
name) (\s :: LaunchConfiguration
s@LaunchConfiguration' {} Maybe Text
a -> LaunchConfiguration
s {$sel:name:LaunchConfiguration' :: Maybe Text
name = Maybe Text
a} :: LaunchConfiguration)

-- | Configure launch configuration Source Server ID.
launchConfiguration_sourceServerID :: Lens.Lens' LaunchConfiguration (Prelude.Maybe Prelude.Text)
launchConfiguration_sourceServerID :: (Maybe Text -> f (Maybe Text))
-> LaunchConfiguration -> f LaunchConfiguration
launchConfiguration_sourceServerID = (LaunchConfiguration -> Maybe Text)
-> (LaunchConfiguration -> Maybe Text -> LaunchConfiguration)
-> Lens
     LaunchConfiguration LaunchConfiguration (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchConfiguration' {Maybe Text
sourceServerID :: Maybe Text
$sel:sourceServerID:LaunchConfiguration' :: LaunchConfiguration -> Maybe Text
sourceServerID} -> Maybe Text
sourceServerID) (\s :: LaunchConfiguration
s@LaunchConfiguration' {} Maybe Text
a -> LaunchConfiguration
s {$sel:sourceServerID:LaunchConfiguration' :: Maybe Text
sourceServerID = Maybe Text
a} :: LaunchConfiguration)

-- | Configure launch configuration OS licensing.
launchConfiguration_licensing :: Lens.Lens' LaunchConfiguration (Prelude.Maybe Licensing)
launchConfiguration_licensing :: (Maybe Licensing -> f (Maybe Licensing))
-> LaunchConfiguration -> f LaunchConfiguration
launchConfiguration_licensing = (LaunchConfiguration -> Maybe Licensing)
-> (LaunchConfiguration -> Maybe Licensing -> LaunchConfiguration)
-> Lens
     LaunchConfiguration
     LaunchConfiguration
     (Maybe Licensing)
     (Maybe Licensing)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchConfiguration' {Maybe Licensing
licensing :: Maybe Licensing
$sel:licensing:LaunchConfiguration' :: LaunchConfiguration -> Maybe Licensing
licensing} -> Maybe Licensing
licensing) (\s :: LaunchConfiguration
s@LaunchConfiguration' {} Maybe Licensing
a -> LaunchConfiguration
s {$sel:licensing:LaunchConfiguration' :: Maybe Licensing
licensing = Maybe Licensing
a} :: LaunchConfiguration)

-- | Copy Private IP during Launch Configuration.
launchConfiguration_copyPrivateIp :: Lens.Lens' LaunchConfiguration (Prelude.Maybe Prelude.Bool)
launchConfiguration_copyPrivateIp :: (Maybe Bool -> f (Maybe Bool))
-> LaunchConfiguration -> f LaunchConfiguration
launchConfiguration_copyPrivateIp = (LaunchConfiguration -> Maybe Bool)
-> (LaunchConfiguration -> Maybe Bool -> LaunchConfiguration)
-> Lens
     LaunchConfiguration LaunchConfiguration (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LaunchConfiguration' {Maybe Bool
copyPrivateIp :: Maybe Bool
$sel:copyPrivateIp:LaunchConfiguration' :: LaunchConfiguration -> Maybe Bool
copyPrivateIp} -> Maybe Bool
copyPrivateIp) (\s :: LaunchConfiguration
s@LaunchConfiguration' {} Maybe Bool
a -> LaunchConfiguration
s {$sel:copyPrivateIp:LaunchConfiguration' :: Maybe Bool
copyPrivateIp = Maybe Bool
a} :: LaunchConfiguration)

instance Core.FromJSON LaunchConfiguration where
  parseJSON :: Value -> Parser LaunchConfiguration
parseJSON =
    String
-> (Object -> Parser LaunchConfiguration)
-> Value
-> Parser LaunchConfiguration
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"LaunchConfiguration"
      ( \Object
x ->
          Maybe Text
-> Maybe TargetInstanceTypeRightSizingMethod
-> Maybe LaunchDisposition
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Licensing
-> Maybe Bool
-> LaunchConfiguration
LaunchConfiguration'
            (Maybe Text
 -> Maybe TargetInstanceTypeRightSizingMethod
 -> Maybe LaunchDisposition
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Text
 -> Maybe Licensing
 -> Maybe Bool
 -> LaunchConfiguration)
-> Parser (Maybe Text)
-> Parser
     (Maybe TargetInstanceTypeRightSizingMethod
      -> Maybe LaunchDisposition
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Licensing
      -> Maybe Bool
      -> LaunchConfiguration)
forall (f :: * -> *) a b. Functor 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
"ec2LaunchTemplateID")
            Parser
  (Maybe TargetInstanceTypeRightSizingMethod
   -> Maybe LaunchDisposition
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Licensing
   -> Maybe Bool
   -> LaunchConfiguration)
-> Parser (Maybe TargetInstanceTypeRightSizingMethod)
-> Parser
     (Maybe LaunchDisposition
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Licensing
      -> Maybe Bool
      -> LaunchConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe TargetInstanceTypeRightSizingMethod)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"targetInstanceTypeRightSizingMethod")
            Parser
  (Maybe LaunchDisposition
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Licensing
   -> Maybe Bool
   -> LaunchConfiguration)
-> Parser (Maybe LaunchDisposition)
-> Parser
     (Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Licensing
      -> Maybe Bool
      -> LaunchConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LaunchDisposition)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"launchDisposition")
            Parser
  (Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Licensing
   -> Maybe Bool
   -> LaunchConfiguration)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Licensing
      -> Maybe Bool
      -> LaunchConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"copyTags")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Licensing
   -> Maybe Bool
   -> LaunchConfiguration)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Licensing -> Maybe Bool -> LaunchConfiguration)
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 Licensing -> Maybe Bool -> LaunchConfiguration)
-> Parser (Maybe Text)
-> Parser (Maybe Licensing -> Maybe Bool -> LaunchConfiguration)
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
"sourceServerID")
            Parser (Maybe Licensing -> Maybe Bool -> LaunchConfiguration)
-> Parser (Maybe Licensing)
-> Parser (Maybe Bool -> LaunchConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Licensing)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"licensing")
            Parser (Maybe Bool -> LaunchConfiguration)
-> Parser (Maybe Bool) -> Parser LaunchConfiguration
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"copyPrivateIp")
      )

instance Prelude.Hashable LaunchConfiguration

instance Prelude.NFData LaunchConfiguration