{-# 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.SecurityHub.Types.AwsAutoScalingLaunchConfigurationDetails
-- 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.SecurityHub.Types.AwsAutoScalingLaunchConfigurationDetails where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SecurityHub.Types.AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails
import Amazonka.SecurityHub.Types.AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails

-- | Details about a launch configuration.
--
-- /See:/ 'newAwsAutoScalingLaunchConfigurationDetails' smart constructor.
data AwsAutoScalingLaunchConfigurationDetails = AwsAutoScalingLaunchConfigurationDetails'
  { -- | For Auto Scaling groups that run in a VPC, specifies whether to assign a
    -- public IP address to the group\'s instances.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe Bool
associatePublicIpAddress :: Prelude.Maybe Prelude.Bool,
    -- | The security groups to assign to the instances in the Auto Scaling
    -- group.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe [Text]
securityGroups :: Prelude.Maybe [Prelude.Text],
    -- | The maximum hourly price to be paid for any Spot Instance that is
    -- launched to fulfill the request.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
spotPrice :: Prelude.Maybe Prelude.Text,
    -- | The creation date and time for the launch configuration.
    --
    -- Uses the @date-time@ format specified in
    -- <https://tools.ietf.org/html/rfc3339#section-5.6 RFC 3339 section 5.6, Internet Date\/Time Format>.
    -- The value cannot contain spaces. For example,
    -- @2020-03-22T13:22:13.933Z@.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
createdTime :: Prelude.Maybe Prelude.Text,
    -- | Indicates the type of monitoring for instances in the group.
    AwsAutoScalingLaunchConfigurationDetails
-> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
instanceMonitoring :: Prelude.Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails,
    -- | The name of the key pair.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
keyName :: Prelude.Maybe Prelude.Text,
    -- | The identifiers of one or more security groups for the VPC that is
    -- specified in @ClassicLinkVPCId@.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe [Text]
classicLinkVpcSecurityGroups :: Prelude.Maybe [Prelude.Text],
    -- | The identifier of the RAM disk associated with the AMI.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
ramdiskId :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the kernel associated with the AMI.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
kernelId :: Prelude.Maybe Prelude.Text,
    -- | The instance type for the instances.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
instanceType :: Prelude.Maybe Prelude.Text,
    -- | Whether the launch configuration is optimized for Amazon EBS I\/O.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe Bool
ebsOptimized :: Prelude.Maybe Prelude.Bool,
    -- | The user data to make available to the launched EC2 instances. Must be
    -- base64-encoded text.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
userData :: Prelude.Maybe Prelude.Text,
    -- | The identifier of a ClassicLink-enabled VPC that EC2-Classic instances
    -- are linked to.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
classicLinkVpcId :: Prelude.Maybe Prelude.Text,
    -- | The name or the ARN of the instance profile associated with the IAM role
    -- for the instance. The instance profile contains the IAM role.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
iamInstanceProfile :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the Amazon Machine Image (AMI) that is used to launch
    -- EC2 instances.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
imageId :: Prelude.Maybe Prelude.Text,
    -- | The name of the launch configuration.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
launchConfigurationName :: Prelude.Maybe Prelude.Text,
    -- | The tenancy of the instance. An instance with @dedicated@ tenancy runs
    -- on isolated, single-tenant hardware and can only be launched into a VPC.
    AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
placementTenancy :: Prelude.Maybe Prelude.Text,
    -- | Specifies the block devices for the instance.
    AwsAutoScalingLaunchConfigurationDetails
-> Maybe
     [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
blockDeviceMappings :: Prelude.Maybe [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
  }
  deriving (AwsAutoScalingLaunchConfigurationDetails
-> AwsAutoScalingLaunchConfigurationDetails -> Bool
(AwsAutoScalingLaunchConfigurationDetails
 -> AwsAutoScalingLaunchConfigurationDetails -> Bool)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> AwsAutoScalingLaunchConfigurationDetails -> Bool)
-> Eq AwsAutoScalingLaunchConfigurationDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsAutoScalingLaunchConfigurationDetails
-> AwsAutoScalingLaunchConfigurationDetails -> Bool
$c/= :: AwsAutoScalingLaunchConfigurationDetails
-> AwsAutoScalingLaunchConfigurationDetails -> Bool
== :: AwsAutoScalingLaunchConfigurationDetails
-> AwsAutoScalingLaunchConfigurationDetails -> Bool
$c== :: AwsAutoScalingLaunchConfigurationDetails
-> AwsAutoScalingLaunchConfigurationDetails -> Bool
Prelude.Eq, ReadPrec [AwsAutoScalingLaunchConfigurationDetails]
ReadPrec AwsAutoScalingLaunchConfigurationDetails
Int -> ReadS AwsAutoScalingLaunchConfigurationDetails
ReadS [AwsAutoScalingLaunchConfigurationDetails]
(Int -> ReadS AwsAutoScalingLaunchConfigurationDetails)
-> ReadS [AwsAutoScalingLaunchConfigurationDetails]
-> ReadPrec AwsAutoScalingLaunchConfigurationDetails
-> ReadPrec [AwsAutoScalingLaunchConfigurationDetails]
-> Read AwsAutoScalingLaunchConfigurationDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsAutoScalingLaunchConfigurationDetails]
$creadListPrec :: ReadPrec [AwsAutoScalingLaunchConfigurationDetails]
readPrec :: ReadPrec AwsAutoScalingLaunchConfigurationDetails
$creadPrec :: ReadPrec AwsAutoScalingLaunchConfigurationDetails
readList :: ReadS [AwsAutoScalingLaunchConfigurationDetails]
$creadList :: ReadS [AwsAutoScalingLaunchConfigurationDetails]
readsPrec :: Int -> ReadS AwsAutoScalingLaunchConfigurationDetails
$creadsPrec :: Int -> ReadS AwsAutoScalingLaunchConfigurationDetails
Prelude.Read, Int -> AwsAutoScalingLaunchConfigurationDetails -> ShowS
[AwsAutoScalingLaunchConfigurationDetails] -> ShowS
AwsAutoScalingLaunchConfigurationDetails -> String
(Int -> AwsAutoScalingLaunchConfigurationDetails -> ShowS)
-> (AwsAutoScalingLaunchConfigurationDetails -> String)
-> ([AwsAutoScalingLaunchConfigurationDetails] -> ShowS)
-> Show AwsAutoScalingLaunchConfigurationDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsAutoScalingLaunchConfigurationDetails] -> ShowS
$cshowList :: [AwsAutoScalingLaunchConfigurationDetails] -> ShowS
show :: AwsAutoScalingLaunchConfigurationDetails -> String
$cshow :: AwsAutoScalingLaunchConfigurationDetails -> String
showsPrec :: Int -> AwsAutoScalingLaunchConfigurationDetails -> ShowS
$cshowsPrec :: Int -> AwsAutoScalingLaunchConfigurationDetails -> ShowS
Prelude.Show, (forall x.
 AwsAutoScalingLaunchConfigurationDetails
 -> Rep AwsAutoScalingLaunchConfigurationDetails x)
-> (forall x.
    Rep AwsAutoScalingLaunchConfigurationDetails x
    -> AwsAutoScalingLaunchConfigurationDetails)
-> Generic AwsAutoScalingLaunchConfigurationDetails
forall x.
Rep AwsAutoScalingLaunchConfigurationDetails x
-> AwsAutoScalingLaunchConfigurationDetails
forall x.
AwsAutoScalingLaunchConfigurationDetails
-> Rep AwsAutoScalingLaunchConfigurationDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AwsAutoScalingLaunchConfigurationDetails x
-> AwsAutoScalingLaunchConfigurationDetails
$cfrom :: forall x.
AwsAutoScalingLaunchConfigurationDetails
-> Rep AwsAutoScalingLaunchConfigurationDetails x
Prelude.Generic)

-- |
-- Create a value of 'AwsAutoScalingLaunchConfigurationDetails' 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:
--
-- 'associatePublicIpAddress', 'awsAutoScalingLaunchConfigurationDetails_associatePublicIpAddress' - For Auto Scaling groups that run in a VPC, specifies whether to assign a
-- public IP address to the group\'s instances.
--
-- 'securityGroups', 'awsAutoScalingLaunchConfigurationDetails_securityGroups' - The security groups to assign to the instances in the Auto Scaling
-- group.
--
-- 'spotPrice', 'awsAutoScalingLaunchConfigurationDetails_spotPrice' - The maximum hourly price to be paid for any Spot Instance that is
-- launched to fulfill the request.
--
-- 'createdTime', 'awsAutoScalingLaunchConfigurationDetails_createdTime' - The creation date and time for the launch configuration.
--
-- Uses the @date-time@ format specified in
-- <https://tools.ietf.org/html/rfc3339#section-5.6 RFC 3339 section 5.6, Internet Date\/Time Format>.
-- The value cannot contain spaces. For example,
-- @2020-03-22T13:22:13.933Z@.
--
-- 'instanceMonitoring', 'awsAutoScalingLaunchConfigurationDetails_instanceMonitoring' - Indicates the type of monitoring for instances in the group.
--
-- 'keyName', 'awsAutoScalingLaunchConfigurationDetails_keyName' - The name of the key pair.
--
-- 'classicLinkVpcSecurityGroups', 'awsAutoScalingLaunchConfigurationDetails_classicLinkVpcSecurityGroups' - The identifiers of one or more security groups for the VPC that is
-- specified in @ClassicLinkVPCId@.
--
-- 'ramdiskId', 'awsAutoScalingLaunchConfigurationDetails_ramdiskId' - The identifier of the RAM disk associated with the AMI.
--
-- 'kernelId', 'awsAutoScalingLaunchConfigurationDetails_kernelId' - The identifier of the kernel associated with the AMI.
--
-- 'instanceType', 'awsAutoScalingLaunchConfigurationDetails_instanceType' - The instance type for the instances.
--
-- 'ebsOptimized', 'awsAutoScalingLaunchConfigurationDetails_ebsOptimized' - Whether the launch configuration is optimized for Amazon EBS I\/O.
--
-- 'userData', 'awsAutoScalingLaunchConfigurationDetails_userData' - The user data to make available to the launched EC2 instances. Must be
-- base64-encoded text.
--
-- 'classicLinkVpcId', 'awsAutoScalingLaunchConfigurationDetails_classicLinkVpcId' - The identifier of a ClassicLink-enabled VPC that EC2-Classic instances
-- are linked to.
--
-- 'iamInstanceProfile', 'awsAutoScalingLaunchConfigurationDetails_iamInstanceProfile' - The name or the ARN of the instance profile associated with the IAM role
-- for the instance. The instance profile contains the IAM role.
--
-- 'imageId', 'awsAutoScalingLaunchConfigurationDetails_imageId' - The identifier of the Amazon Machine Image (AMI) that is used to launch
-- EC2 instances.
--
-- 'launchConfigurationName', 'awsAutoScalingLaunchConfigurationDetails_launchConfigurationName' - The name of the launch configuration.
--
-- 'placementTenancy', 'awsAutoScalingLaunchConfigurationDetails_placementTenancy' - The tenancy of the instance. An instance with @dedicated@ tenancy runs
-- on isolated, single-tenant hardware and can only be launched into a VPC.
--
-- 'blockDeviceMappings', 'awsAutoScalingLaunchConfigurationDetails_blockDeviceMappings' - Specifies the block devices for the instance.
newAwsAutoScalingLaunchConfigurationDetails ::
  AwsAutoScalingLaunchConfigurationDetails
newAwsAutoScalingLaunchConfigurationDetails :: AwsAutoScalingLaunchConfigurationDetails
newAwsAutoScalingLaunchConfigurationDetails =
  AwsAutoScalingLaunchConfigurationDetails' :: Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe
     [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
-> AwsAutoScalingLaunchConfigurationDetails
AwsAutoScalingLaunchConfigurationDetails'
    { $sel:associatePublicIpAddress:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Bool
associatePublicIpAddress =
        Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:securityGroups:AwsAutoScalingLaunchConfigurationDetails' :: Maybe [Text]
securityGroups = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:spotPrice:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
spotPrice = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdTime:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
createdTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:instanceMonitoring:AwsAutoScalingLaunchConfigurationDetails' :: Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
instanceMonitoring =
        Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:keyName:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
keyName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:classicLinkVpcSecurityGroups:AwsAutoScalingLaunchConfigurationDetails' :: Maybe [Text]
classicLinkVpcSecurityGroups =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:ramdiskId:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
ramdiskId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:kernelId:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
kernelId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:instanceType:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
instanceType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:ebsOptimized:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Bool
ebsOptimized = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:userData:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
userData = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:classicLinkVpcId:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
classicLinkVpcId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:iamInstanceProfile:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
iamInstanceProfile =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:imageId:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
imageId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:launchConfigurationName:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
launchConfigurationName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:placementTenancy:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
placementTenancy =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:blockDeviceMappings:AwsAutoScalingLaunchConfigurationDetails' :: Maybe [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
blockDeviceMappings =
        Maybe [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
forall a. Maybe a
Prelude.Nothing
    }

-- | For Auto Scaling groups that run in a VPC, specifies whether to assign a
-- public IP address to the group\'s instances.
awsAutoScalingLaunchConfigurationDetails_associatePublicIpAddress :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe Prelude.Bool)
awsAutoScalingLaunchConfigurationDetails_associatePublicIpAddress :: (Maybe Bool -> f (Maybe Bool))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_associatePublicIpAddress = (AwsAutoScalingLaunchConfigurationDetails -> Maybe Bool)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe Bool -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe Bool
associatePublicIpAddress :: Maybe Bool
$sel:associatePublicIpAddress:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Bool
associatePublicIpAddress} -> Maybe Bool
associatePublicIpAddress) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe Bool
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:associatePublicIpAddress:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Bool
associatePublicIpAddress = Maybe Bool
a} :: AwsAutoScalingLaunchConfigurationDetails)

-- | The security groups to assign to the instances in the Auto Scaling
-- group.
awsAutoScalingLaunchConfigurationDetails_securityGroups :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe [Prelude.Text])
awsAutoScalingLaunchConfigurationDetails_securityGroups :: (Maybe [Text] -> f (Maybe [Text]))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_securityGroups = (AwsAutoScalingLaunchConfigurationDetails -> Maybe [Text])
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe [Text] -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe [Text]
securityGroups :: Maybe [Text]
$sel:securityGroups:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe [Text]
securityGroups} -> Maybe [Text]
securityGroups) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe [Text]
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:securityGroups:AwsAutoScalingLaunchConfigurationDetails' :: Maybe [Text]
securityGroups = Maybe [Text]
a} :: AwsAutoScalingLaunchConfigurationDetails) ((Maybe [Text] -> f (Maybe [Text]))
 -> AwsAutoScalingLaunchConfigurationDetails
 -> f AwsAutoScalingLaunchConfigurationDetails)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
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

-- | The maximum hourly price to be paid for any Spot Instance that is
-- launched to fulfill the request.
awsAutoScalingLaunchConfigurationDetails_spotPrice :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe Prelude.Text)
awsAutoScalingLaunchConfigurationDetails_spotPrice :: (Maybe Text -> f (Maybe Text))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_spotPrice = (AwsAutoScalingLaunchConfigurationDetails -> Maybe Text)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe Text -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe Text
spotPrice :: Maybe Text
$sel:spotPrice:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
spotPrice} -> Maybe Text
spotPrice) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe Text
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:spotPrice:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
spotPrice = Maybe Text
a} :: AwsAutoScalingLaunchConfigurationDetails)

-- | The creation date and time for the launch configuration.
--
-- Uses the @date-time@ format specified in
-- <https://tools.ietf.org/html/rfc3339#section-5.6 RFC 3339 section 5.6, Internet Date\/Time Format>.
-- The value cannot contain spaces. For example,
-- @2020-03-22T13:22:13.933Z@.
awsAutoScalingLaunchConfigurationDetails_createdTime :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe Prelude.Text)
awsAutoScalingLaunchConfigurationDetails_createdTime :: (Maybe Text -> f (Maybe Text))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_createdTime = (AwsAutoScalingLaunchConfigurationDetails -> Maybe Text)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe Text -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe Text
createdTime :: Maybe Text
$sel:createdTime:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
createdTime} -> Maybe Text
createdTime) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe Text
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:createdTime:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
createdTime = Maybe Text
a} :: AwsAutoScalingLaunchConfigurationDetails)

-- | Indicates the type of monitoring for instances in the group.
awsAutoScalingLaunchConfigurationDetails_instanceMonitoring :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails)
awsAutoScalingLaunchConfigurationDetails_instanceMonitoring :: (Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
 -> f (Maybe
         AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_instanceMonitoring = (AwsAutoScalingLaunchConfigurationDetails
 -> Maybe
      AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
    -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails)
     (Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
instanceMonitoring :: Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
$sel:instanceMonitoring:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails
-> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
instanceMonitoring} -> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
instanceMonitoring) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:instanceMonitoring:AwsAutoScalingLaunchConfigurationDetails' :: Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
instanceMonitoring = Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
a} :: AwsAutoScalingLaunchConfigurationDetails)

-- | The name of the key pair.
awsAutoScalingLaunchConfigurationDetails_keyName :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe Prelude.Text)
awsAutoScalingLaunchConfigurationDetails_keyName :: (Maybe Text -> f (Maybe Text))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_keyName = (AwsAutoScalingLaunchConfigurationDetails -> Maybe Text)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe Text -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe Text
keyName :: Maybe Text
$sel:keyName:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
keyName} -> Maybe Text
keyName) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe Text
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:keyName:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
keyName = Maybe Text
a} :: AwsAutoScalingLaunchConfigurationDetails)

-- | The identifiers of one or more security groups for the VPC that is
-- specified in @ClassicLinkVPCId@.
awsAutoScalingLaunchConfigurationDetails_classicLinkVpcSecurityGroups :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe [Prelude.Text])
awsAutoScalingLaunchConfigurationDetails_classicLinkVpcSecurityGroups :: (Maybe [Text] -> f (Maybe [Text]))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_classicLinkVpcSecurityGroups = (AwsAutoScalingLaunchConfigurationDetails -> Maybe [Text])
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe [Text] -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe [Text]
classicLinkVpcSecurityGroups :: Maybe [Text]
$sel:classicLinkVpcSecurityGroups:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe [Text]
classicLinkVpcSecurityGroups} -> Maybe [Text]
classicLinkVpcSecurityGroups) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe [Text]
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:classicLinkVpcSecurityGroups:AwsAutoScalingLaunchConfigurationDetails' :: Maybe [Text]
classicLinkVpcSecurityGroups = Maybe [Text]
a} :: AwsAutoScalingLaunchConfigurationDetails) ((Maybe [Text] -> f (Maybe [Text]))
 -> AwsAutoScalingLaunchConfigurationDetails
 -> f AwsAutoScalingLaunchConfigurationDetails)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
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

-- | The identifier of the RAM disk associated with the AMI.
awsAutoScalingLaunchConfigurationDetails_ramdiskId :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe Prelude.Text)
awsAutoScalingLaunchConfigurationDetails_ramdiskId :: (Maybe Text -> f (Maybe Text))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_ramdiskId = (AwsAutoScalingLaunchConfigurationDetails -> Maybe Text)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe Text -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe Text
ramdiskId :: Maybe Text
$sel:ramdiskId:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
ramdiskId} -> Maybe Text
ramdiskId) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe Text
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:ramdiskId:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
ramdiskId = Maybe Text
a} :: AwsAutoScalingLaunchConfigurationDetails)

-- | The identifier of the kernel associated with the AMI.
awsAutoScalingLaunchConfigurationDetails_kernelId :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe Prelude.Text)
awsAutoScalingLaunchConfigurationDetails_kernelId :: (Maybe Text -> f (Maybe Text))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_kernelId = (AwsAutoScalingLaunchConfigurationDetails -> Maybe Text)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe Text -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe Text
kernelId :: Maybe Text
$sel:kernelId:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
kernelId} -> Maybe Text
kernelId) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe Text
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:kernelId:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
kernelId = Maybe Text
a} :: AwsAutoScalingLaunchConfigurationDetails)

-- | The instance type for the instances.
awsAutoScalingLaunchConfigurationDetails_instanceType :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe Prelude.Text)
awsAutoScalingLaunchConfigurationDetails_instanceType :: (Maybe Text -> f (Maybe Text))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_instanceType = (AwsAutoScalingLaunchConfigurationDetails -> Maybe Text)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe Text -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe Text
instanceType :: Maybe Text
$sel:instanceType:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
instanceType} -> Maybe Text
instanceType) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe Text
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:instanceType:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
instanceType = Maybe Text
a} :: AwsAutoScalingLaunchConfigurationDetails)

-- | Whether the launch configuration is optimized for Amazon EBS I\/O.
awsAutoScalingLaunchConfigurationDetails_ebsOptimized :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe Prelude.Bool)
awsAutoScalingLaunchConfigurationDetails_ebsOptimized :: (Maybe Bool -> f (Maybe Bool))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_ebsOptimized = (AwsAutoScalingLaunchConfigurationDetails -> Maybe Bool)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe Bool -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe Bool
ebsOptimized :: Maybe Bool
$sel:ebsOptimized:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Bool
ebsOptimized} -> Maybe Bool
ebsOptimized) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe Bool
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:ebsOptimized:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Bool
ebsOptimized = Maybe Bool
a} :: AwsAutoScalingLaunchConfigurationDetails)

-- | The user data to make available to the launched EC2 instances. Must be
-- base64-encoded text.
awsAutoScalingLaunchConfigurationDetails_userData :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe Prelude.Text)
awsAutoScalingLaunchConfigurationDetails_userData :: (Maybe Text -> f (Maybe Text))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_userData = (AwsAutoScalingLaunchConfigurationDetails -> Maybe Text)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe Text -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe Text
userData :: Maybe Text
$sel:userData:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
userData} -> Maybe Text
userData) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe Text
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:userData:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
userData = Maybe Text
a} :: AwsAutoScalingLaunchConfigurationDetails)

-- | The identifier of a ClassicLink-enabled VPC that EC2-Classic instances
-- are linked to.
awsAutoScalingLaunchConfigurationDetails_classicLinkVpcId :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe Prelude.Text)
awsAutoScalingLaunchConfigurationDetails_classicLinkVpcId :: (Maybe Text -> f (Maybe Text))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_classicLinkVpcId = (AwsAutoScalingLaunchConfigurationDetails -> Maybe Text)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe Text -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe Text
classicLinkVpcId :: Maybe Text
$sel:classicLinkVpcId:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
classicLinkVpcId} -> Maybe Text
classicLinkVpcId) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe Text
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:classicLinkVpcId:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
classicLinkVpcId = Maybe Text
a} :: AwsAutoScalingLaunchConfigurationDetails)

-- | The name or the ARN of the instance profile associated with the IAM role
-- for the instance. The instance profile contains the IAM role.
awsAutoScalingLaunchConfigurationDetails_iamInstanceProfile :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe Prelude.Text)
awsAutoScalingLaunchConfigurationDetails_iamInstanceProfile :: (Maybe Text -> f (Maybe Text))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_iamInstanceProfile = (AwsAutoScalingLaunchConfigurationDetails -> Maybe Text)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe Text -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe Text
iamInstanceProfile :: Maybe Text
$sel:iamInstanceProfile:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
iamInstanceProfile} -> Maybe Text
iamInstanceProfile) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe Text
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:iamInstanceProfile:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
iamInstanceProfile = Maybe Text
a} :: AwsAutoScalingLaunchConfigurationDetails)

-- | The identifier of the Amazon Machine Image (AMI) that is used to launch
-- EC2 instances.
awsAutoScalingLaunchConfigurationDetails_imageId :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe Prelude.Text)
awsAutoScalingLaunchConfigurationDetails_imageId :: (Maybe Text -> f (Maybe Text))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_imageId = (AwsAutoScalingLaunchConfigurationDetails -> Maybe Text)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe Text -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe Text
imageId :: Maybe Text
$sel:imageId:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
imageId} -> Maybe Text
imageId) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe Text
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:imageId:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
imageId = Maybe Text
a} :: AwsAutoScalingLaunchConfigurationDetails)

-- | The name of the launch configuration.
awsAutoScalingLaunchConfigurationDetails_launchConfigurationName :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe Prelude.Text)
awsAutoScalingLaunchConfigurationDetails_launchConfigurationName :: (Maybe Text -> f (Maybe Text))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_launchConfigurationName = (AwsAutoScalingLaunchConfigurationDetails -> Maybe Text)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe Text -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe Text
launchConfigurationName :: Maybe Text
$sel:launchConfigurationName:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
launchConfigurationName} -> Maybe Text
launchConfigurationName) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe Text
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:launchConfigurationName:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
launchConfigurationName = Maybe Text
a} :: AwsAutoScalingLaunchConfigurationDetails)

-- | The tenancy of the instance. An instance with @dedicated@ tenancy runs
-- on isolated, single-tenant hardware and can only be launched into a VPC.
awsAutoScalingLaunchConfigurationDetails_placementTenancy :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe Prelude.Text)
awsAutoScalingLaunchConfigurationDetails_placementTenancy :: (Maybe Text -> f (Maybe Text))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_placementTenancy = (AwsAutoScalingLaunchConfigurationDetails -> Maybe Text)
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe Text -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe Text
placementTenancy :: Maybe Text
$sel:placementTenancy:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
placementTenancy} -> Maybe Text
placementTenancy) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe Text
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:placementTenancy:AwsAutoScalingLaunchConfigurationDetails' :: Maybe Text
placementTenancy = Maybe Text
a} :: AwsAutoScalingLaunchConfigurationDetails)

-- | Specifies the block devices for the instance.
awsAutoScalingLaunchConfigurationDetails_blockDeviceMappings :: Lens.Lens' AwsAutoScalingLaunchConfigurationDetails (Prelude.Maybe [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails])
awsAutoScalingLaunchConfigurationDetails_blockDeviceMappings :: (Maybe
   [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
 -> f (Maybe
         [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
awsAutoScalingLaunchConfigurationDetails_blockDeviceMappings = (AwsAutoScalingLaunchConfigurationDetails
 -> Maybe
      [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails])
-> (AwsAutoScalingLaunchConfigurationDetails
    -> Maybe
         [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
    -> AwsAutoScalingLaunchConfigurationDetails)
-> Lens
     AwsAutoScalingLaunchConfigurationDetails
     AwsAutoScalingLaunchConfigurationDetails
     (Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails])
     (Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsAutoScalingLaunchConfigurationDetails' {Maybe [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
blockDeviceMappings :: Maybe [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
$sel:blockDeviceMappings:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails
-> Maybe
     [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
blockDeviceMappings} -> Maybe [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
blockDeviceMappings) (\s :: AwsAutoScalingLaunchConfigurationDetails
s@AwsAutoScalingLaunchConfigurationDetails' {} Maybe [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
a -> AwsAutoScalingLaunchConfigurationDetails
s {$sel:blockDeviceMappings:AwsAutoScalingLaunchConfigurationDetails' :: Maybe [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
blockDeviceMappings = Maybe [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
a} :: AwsAutoScalingLaunchConfigurationDetails) ((Maybe
    [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
  -> f (Maybe
          [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]))
 -> AwsAutoScalingLaunchConfigurationDetails
 -> f AwsAutoScalingLaunchConfigurationDetails)
-> ((Maybe
       [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
     -> f (Maybe
             [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]))
    -> Maybe
         [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
    -> f (Maybe
            [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]))
-> (Maybe
      [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
    -> f (Maybe
            [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]))
-> AwsAutoScalingLaunchConfigurationDetails
-> f AwsAutoScalingLaunchConfigurationDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
  [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
  [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
  [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
-> Iso
     (Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails])
     (Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails])
     (Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails])
     (Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails])
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
  [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
  [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
  [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
  [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Core.FromJSON
    AwsAutoScalingLaunchConfigurationDetails
  where
  parseJSON :: Value -> Parser AwsAutoScalingLaunchConfigurationDetails
parseJSON =
    String
-> (Object -> Parser AwsAutoScalingLaunchConfigurationDetails)
-> Value
-> Parser AwsAutoScalingLaunchConfigurationDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"AwsAutoScalingLaunchConfigurationDetails"
      ( \Object
x ->
          Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe
     [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
-> AwsAutoScalingLaunchConfigurationDetails
AwsAutoScalingLaunchConfigurationDetails'
            (Maybe Bool
 -> Maybe [Text]
 -> Maybe Text
 -> Maybe Text
 -> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
 -> Maybe Text
 -> Maybe [Text]
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe
      [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
 -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe Bool)
-> Parser
     (Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
forall (f :: * -> *) a b. Functor 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
"AssociatePublicIpAddress")
            Parser
  (Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe [Text])
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
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
"SecurityGroups" 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 Text
   -> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
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
"SpotPrice")
            Parser
  (Maybe Text
   -> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
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
"CreatedTime")
            Parser
  (Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser
     (Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails)
-> Parser
     (Maybe Text
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Parser
     (Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"InstanceMonitoring")
            Parser
  (Maybe Text
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
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
"KeyName")
            Parser
  (Maybe [Text]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe [Text])
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
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
"ClassicLinkVpcSecurityGroups"
                            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 Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
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
"RamdiskId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
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
"KernelId")
            Parser
  (Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
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
"InstanceType")
            Parser
  (Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
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
"EbsOptimized")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
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
"UserData")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
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
"ClassicLinkVpcId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
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
"IamInstanceProfile")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
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
"ImageId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
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
"LaunchConfigurationName")
            Parser
  (Maybe Text
   -> Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
      -> AwsAutoScalingLaunchConfigurationDetails)
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
"PlacementTenancy")
            Parser
  (Maybe
     [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
   -> AwsAutoScalingLaunchConfigurationDetails)
-> Parser
     (Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails])
-> Parser AwsAutoScalingLaunchConfigurationDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Parser
     (Maybe
        (Maybe
           [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"BlockDeviceMappings"
                            Parser
  (Maybe
     (Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]))
-> Maybe
     [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
-> Parser
     (Maybe
        [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance
  Prelude.Hashable
    AwsAutoScalingLaunchConfigurationDetails

instance
  Prelude.NFData
    AwsAutoScalingLaunchConfigurationDetails

instance
  Core.ToJSON
    AwsAutoScalingLaunchConfigurationDetails
  where
  toJSON :: AwsAutoScalingLaunchConfigurationDetails -> Value
toJSON AwsAutoScalingLaunchConfigurationDetails' {Maybe Bool
Maybe [Text]
Maybe [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
Maybe Text
Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
blockDeviceMappings :: Maybe [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
placementTenancy :: Maybe Text
launchConfigurationName :: Maybe Text
imageId :: Maybe Text
iamInstanceProfile :: Maybe Text
classicLinkVpcId :: Maybe Text
userData :: Maybe Text
ebsOptimized :: Maybe Bool
instanceType :: Maybe Text
kernelId :: Maybe Text
ramdiskId :: Maybe Text
classicLinkVpcSecurityGroups :: Maybe [Text]
keyName :: Maybe Text
instanceMonitoring :: Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
createdTime :: Maybe Text
spotPrice :: Maybe Text
securityGroups :: Maybe [Text]
associatePublicIpAddress :: Maybe Bool
$sel:blockDeviceMappings:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails
-> Maybe
     [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
$sel:placementTenancy:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
$sel:launchConfigurationName:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
$sel:imageId:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
$sel:iamInstanceProfile:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
$sel:classicLinkVpcId:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
$sel:userData:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
$sel:ebsOptimized:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Bool
$sel:instanceType:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
$sel:kernelId:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
$sel:ramdiskId:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
$sel:classicLinkVpcSecurityGroups:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe [Text]
$sel:keyName:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
$sel:instanceMonitoring:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails
-> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
$sel:createdTime:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
$sel:spotPrice:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Text
$sel:securityGroups:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe [Text]
$sel:associatePublicIpAddress:AwsAutoScalingLaunchConfigurationDetails' :: AwsAutoScalingLaunchConfigurationDetails -> Maybe Bool
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"AssociatePublicIpAddress" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
associatePublicIpAddress,
            (Text
"SecurityGroups" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
securityGroups,
            (Text
"SpotPrice" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
spotPrice,
            (Text
"CreatedTime" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
createdTime,
            (Text
"InstanceMonitoring" Text
-> AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
 -> Pair)
-> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails
instanceMonitoring,
            (Text
"KeyName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
keyName,
            (Text
"ClassicLinkVpcSecurityGroups" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
classicLinkVpcSecurityGroups,
            (Text
"RamdiskId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
ramdiskId,
            (Text
"KernelId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
kernelId,
            (Text
"InstanceType" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
instanceType,
            (Text
"EbsOptimized" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
ebsOptimized,
            (Text
"UserData" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
userData,
            (Text
"ClassicLinkVpcId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
classicLinkVpcId,
            (Text
"IamInstanceProfile" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
iamInstanceProfile,
            (Text
"ImageId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
imageId,
            (Text
"LaunchConfigurationName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
launchConfigurationName,
            (Text
"PlacementTenancy" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
placementTenancy,
            (Text
"BlockDeviceMappings" Text
-> [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
 -> Pair)
-> Maybe
     [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails]
blockDeviceMappings
          ]
      )