{-# 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.Inspector2.Types.AwsEc2InstanceDetails
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Inspector2.Types.AwsEc2InstanceDetails where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Details of the Amazon EC2 instance involved in a finding.
--
-- /See:/ 'newAwsEc2InstanceDetails' smart constructor.
data AwsEc2InstanceDetails = AwsEc2InstanceDetails'
  { -- | The IAM instance profile ARN of the Amazon EC2 instance.
    AwsEc2InstanceDetails -> Maybe Text
iamInstanceProfileArn :: Prelude.Maybe Prelude.Text,
    -- | The image ID of the Amazon EC2 instance.
    AwsEc2InstanceDetails -> Maybe Text
imageId :: Prelude.Maybe Prelude.Text,
    -- | The IPv4 addresses of the Amazon EC2 instance.
    AwsEc2InstanceDetails -> Maybe [Text]
ipV4Addresses :: Prelude.Maybe [Prelude.Text],
    -- | The IPv6 addresses of the Amazon EC2 instance.
    AwsEc2InstanceDetails -> Maybe [Text]
ipV6Addresses :: Prelude.Maybe [Prelude.Text],
    -- | The name of the key pair used to launch the Amazon EC2 instance.
    AwsEc2InstanceDetails -> Maybe Text
keyName :: Prelude.Maybe Prelude.Text,
    -- | The date and time the Amazon EC2 instance was launched at.
    AwsEc2InstanceDetails -> Maybe POSIX
launchedAt :: Prelude.Maybe Data.POSIX,
    -- | The platform of the Amazon EC2 instance.
    AwsEc2InstanceDetails -> Maybe Text
platform :: Prelude.Maybe Prelude.Text,
    -- | The subnet ID of the Amazon EC2 instance.
    AwsEc2InstanceDetails -> Maybe Text
subnetId :: Prelude.Maybe Prelude.Text,
    -- | The type of the Amazon EC2 instance.
    AwsEc2InstanceDetails -> Maybe Text
type' :: Prelude.Maybe Prelude.Text,
    -- | The VPC ID of the Amazon EC2 instance.
    AwsEc2InstanceDetails -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text
  }
  deriving (AwsEc2InstanceDetails -> AwsEc2InstanceDetails -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsEc2InstanceDetails -> AwsEc2InstanceDetails -> Bool
$c/= :: AwsEc2InstanceDetails -> AwsEc2InstanceDetails -> Bool
== :: AwsEc2InstanceDetails -> AwsEc2InstanceDetails -> Bool
$c== :: AwsEc2InstanceDetails -> AwsEc2InstanceDetails -> Bool
Prelude.Eq, ReadPrec [AwsEc2InstanceDetails]
ReadPrec AwsEc2InstanceDetails
Int -> ReadS AwsEc2InstanceDetails
ReadS [AwsEc2InstanceDetails]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsEc2InstanceDetails]
$creadListPrec :: ReadPrec [AwsEc2InstanceDetails]
readPrec :: ReadPrec AwsEc2InstanceDetails
$creadPrec :: ReadPrec AwsEc2InstanceDetails
readList :: ReadS [AwsEc2InstanceDetails]
$creadList :: ReadS [AwsEc2InstanceDetails]
readsPrec :: Int -> ReadS AwsEc2InstanceDetails
$creadsPrec :: Int -> ReadS AwsEc2InstanceDetails
Prelude.Read, Int -> AwsEc2InstanceDetails -> ShowS
[AwsEc2InstanceDetails] -> ShowS
AwsEc2InstanceDetails -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsEc2InstanceDetails] -> ShowS
$cshowList :: [AwsEc2InstanceDetails] -> ShowS
show :: AwsEc2InstanceDetails -> String
$cshow :: AwsEc2InstanceDetails -> String
showsPrec :: Int -> AwsEc2InstanceDetails -> ShowS
$cshowsPrec :: Int -> AwsEc2InstanceDetails -> ShowS
Prelude.Show, forall x. Rep AwsEc2InstanceDetails x -> AwsEc2InstanceDetails
forall x. AwsEc2InstanceDetails -> Rep AwsEc2InstanceDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AwsEc2InstanceDetails x -> AwsEc2InstanceDetails
$cfrom :: forall x. AwsEc2InstanceDetails -> Rep AwsEc2InstanceDetails x
Prelude.Generic)

-- |
-- Create a value of 'AwsEc2InstanceDetails' 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:
--
-- 'iamInstanceProfileArn', 'awsEc2InstanceDetails_iamInstanceProfileArn' - The IAM instance profile ARN of the Amazon EC2 instance.
--
-- 'imageId', 'awsEc2InstanceDetails_imageId' - The image ID of the Amazon EC2 instance.
--
-- 'ipV4Addresses', 'awsEc2InstanceDetails_ipV4Addresses' - The IPv4 addresses of the Amazon EC2 instance.
--
-- 'ipV6Addresses', 'awsEc2InstanceDetails_ipV6Addresses' - The IPv6 addresses of the Amazon EC2 instance.
--
-- 'keyName', 'awsEc2InstanceDetails_keyName' - The name of the key pair used to launch the Amazon EC2 instance.
--
-- 'launchedAt', 'awsEc2InstanceDetails_launchedAt' - The date and time the Amazon EC2 instance was launched at.
--
-- 'platform', 'awsEc2InstanceDetails_platform' - The platform of the Amazon EC2 instance.
--
-- 'subnetId', 'awsEc2InstanceDetails_subnetId' - The subnet ID of the Amazon EC2 instance.
--
-- 'type'', 'awsEc2InstanceDetails_type' - The type of the Amazon EC2 instance.
--
-- 'vpcId', 'awsEc2InstanceDetails_vpcId' - The VPC ID of the Amazon EC2 instance.
newAwsEc2InstanceDetails ::
  AwsEc2InstanceDetails
newAwsEc2InstanceDetails :: AwsEc2InstanceDetails
newAwsEc2InstanceDetails =
  AwsEc2InstanceDetails'
    { $sel:iamInstanceProfileArn:AwsEc2InstanceDetails' :: Maybe Text
iamInstanceProfileArn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:imageId:AwsEc2InstanceDetails' :: Maybe Text
imageId = forall a. Maybe a
Prelude.Nothing,
      $sel:ipV4Addresses:AwsEc2InstanceDetails' :: Maybe [Text]
ipV4Addresses = forall a. Maybe a
Prelude.Nothing,
      $sel:ipV6Addresses:AwsEc2InstanceDetails' :: Maybe [Text]
ipV6Addresses = forall a. Maybe a
Prelude.Nothing,
      $sel:keyName:AwsEc2InstanceDetails' :: Maybe Text
keyName = forall a. Maybe a
Prelude.Nothing,
      $sel:launchedAt:AwsEc2InstanceDetails' :: Maybe POSIX
launchedAt = forall a. Maybe a
Prelude.Nothing,
      $sel:platform:AwsEc2InstanceDetails' :: Maybe Text
platform = forall a. Maybe a
Prelude.Nothing,
      $sel:subnetId:AwsEc2InstanceDetails' :: Maybe Text
subnetId = forall a. Maybe a
Prelude.Nothing,
      $sel:type':AwsEc2InstanceDetails' :: Maybe Text
type' = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcId:AwsEc2InstanceDetails' :: Maybe Text
vpcId = forall a. Maybe a
Prelude.Nothing
    }

-- | The IAM instance profile ARN of the Amazon EC2 instance.
awsEc2InstanceDetails_iamInstanceProfileArn :: Lens.Lens' AwsEc2InstanceDetails (Prelude.Maybe Prelude.Text)
awsEc2InstanceDetails_iamInstanceProfileArn :: Lens' AwsEc2InstanceDetails (Maybe Text)
awsEc2InstanceDetails_iamInstanceProfileArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2InstanceDetails' {Maybe Text
iamInstanceProfileArn :: Maybe Text
$sel:iamInstanceProfileArn:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
iamInstanceProfileArn} -> Maybe Text
iamInstanceProfileArn) (\s :: AwsEc2InstanceDetails
s@AwsEc2InstanceDetails' {} Maybe Text
a -> AwsEc2InstanceDetails
s {$sel:iamInstanceProfileArn:AwsEc2InstanceDetails' :: Maybe Text
iamInstanceProfileArn = Maybe Text
a} :: AwsEc2InstanceDetails)

-- | The image ID of the Amazon EC2 instance.
awsEc2InstanceDetails_imageId :: Lens.Lens' AwsEc2InstanceDetails (Prelude.Maybe Prelude.Text)
awsEc2InstanceDetails_imageId :: Lens' AwsEc2InstanceDetails (Maybe Text)
awsEc2InstanceDetails_imageId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2InstanceDetails' {Maybe Text
imageId :: Maybe Text
$sel:imageId:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
imageId} -> Maybe Text
imageId) (\s :: AwsEc2InstanceDetails
s@AwsEc2InstanceDetails' {} Maybe Text
a -> AwsEc2InstanceDetails
s {$sel:imageId:AwsEc2InstanceDetails' :: Maybe Text
imageId = Maybe Text
a} :: AwsEc2InstanceDetails)

-- | The IPv4 addresses of the Amazon EC2 instance.
awsEc2InstanceDetails_ipV4Addresses :: Lens.Lens' AwsEc2InstanceDetails (Prelude.Maybe [Prelude.Text])
awsEc2InstanceDetails_ipV4Addresses :: Lens' AwsEc2InstanceDetails (Maybe [Text])
awsEc2InstanceDetails_ipV4Addresses = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2InstanceDetails' {Maybe [Text]
ipV4Addresses :: Maybe [Text]
$sel:ipV4Addresses:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe [Text]
ipV4Addresses} -> Maybe [Text]
ipV4Addresses) (\s :: AwsEc2InstanceDetails
s@AwsEc2InstanceDetails' {} Maybe [Text]
a -> AwsEc2InstanceDetails
s {$sel:ipV4Addresses:AwsEc2InstanceDetails' :: Maybe [Text]
ipV4Addresses = Maybe [Text]
a} :: AwsEc2InstanceDetails) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The IPv6 addresses of the Amazon EC2 instance.
awsEc2InstanceDetails_ipV6Addresses :: Lens.Lens' AwsEc2InstanceDetails (Prelude.Maybe [Prelude.Text])
awsEc2InstanceDetails_ipV6Addresses :: Lens' AwsEc2InstanceDetails (Maybe [Text])
awsEc2InstanceDetails_ipV6Addresses = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2InstanceDetails' {Maybe [Text]
ipV6Addresses :: Maybe [Text]
$sel:ipV6Addresses:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe [Text]
ipV6Addresses} -> Maybe [Text]
ipV6Addresses) (\s :: AwsEc2InstanceDetails
s@AwsEc2InstanceDetails' {} Maybe [Text]
a -> AwsEc2InstanceDetails
s {$sel:ipV6Addresses:AwsEc2InstanceDetails' :: Maybe [Text]
ipV6Addresses = Maybe [Text]
a} :: AwsEc2InstanceDetails) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the key pair used to launch the Amazon EC2 instance.
awsEc2InstanceDetails_keyName :: Lens.Lens' AwsEc2InstanceDetails (Prelude.Maybe Prelude.Text)
awsEc2InstanceDetails_keyName :: Lens' AwsEc2InstanceDetails (Maybe Text)
awsEc2InstanceDetails_keyName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2InstanceDetails' {Maybe Text
keyName :: Maybe Text
$sel:keyName:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
keyName} -> Maybe Text
keyName) (\s :: AwsEc2InstanceDetails
s@AwsEc2InstanceDetails' {} Maybe Text
a -> AwsEc2InstanceDetails
s {$sel:keyName:AwsEc2InstanceDetails' :: Maybe Text
keyName = Maybe Text
a} :: AwsEc2InstanceDetails)

-- | The date and time the Amazon EC2 instance was launched at.
awsEc2InstanceDetails_launchedAt :: Lens.Lens' AwsEc2InstanceDetails (Prelude.Maybe Prelude.UTCTime)
awsEc2InstanceDetails_launchedAt :: Lens' AwsEc2InstanceDetails (Maybe UTCTime)
awsEc2InstanceDetails_launchedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2InstanceDetails' {Maybe POSIX
launchedAt :: Maybe POSIX
$sel:launchedAt:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe POSIX
launchedAt} -> Maybe POSIX
launchedAt) (\s :: AwsEc2InstanceDetails
s@AwsEc2InstanceDetails' {} Maybe POSIX
a -> AwsEc2InstanceDetails
s {$sel:launchedAt:AwsEc2InstanceDetails' :: Maybe POSIX
launchedAt = Maybe POSIX
a} :: AwsEc2InstanceDetails) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The platform of the Amazon EC2 instance.
awsEc2InstanceDetails_platform :: Lens.Lens' AwsEc2InstanceDetails (Prelude.Maybe Prelude.Text)
awsEc2InstanceDetails_platform :: Lens' AwsEc2InstanceDetails (Maybe Text)
awsEc2InstanceDetails_platform = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2InstanceDetails' {Maybe Text
platform :: Maybe Text
$sel:platform:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
platform} -> Maybe Text
platform) (\s :: AwsEc2InstanceDetails
s@AwsEc2InstanceDetails' {} Maybe Text
a -> AwsEc2InstanceDetails
s {$sel:platform:AwsEc2InstanceDetails' :: Maybe Text
platform = Maybe Text
a} :: AwsEc2InstanceDetails)

-- | The subnet ID of the Amazon EC2 instance.
awsEc2InstanceDetails_subnetId :: Lens.Lens' AwsEc2InstanceDetails (Prelude.Maybe Prelude.Text)
awsEc2InstanceDetails_subnetId :: Lens' AwsEc2InstanceDetails (Maybe Text)
awsEc2InstanceDetails_subnetId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2InstanceDetails' {Maybe Text
subnetId :: Maybe Text
$sel:subnetId:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
subnetId} -> Maybe Text
subnetId) (\s :: AwsEc2InstanceDetails
s@AwsEc2InstanceDetails' {} Maybe Text
a -> AwsEc2InstanceDetails
s {$sel:subnetId:AwsEc2InstanceDetails' :: Maybe Text
subnetId = Maybe Text
a} :: AwsEc2InstanceDetails)

-- | The type of the Amazon EC2 instance.
awsEc2InstanceDetails_type :: Lens.Lens' AwsEc2InstanceDetails (Prelude.Maybe Prelude.Text)
awsEc2InstanceDetails_type :: Lens' AwsEc2InstanceDetails (Maybe Text)
awsEc2InstanceDetails_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2InstanceDetails' {Maybe Text
type' :: Maybe Text
$sel:type':AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
type'} -> Maybe Text
type') (\s :: AwsEc2InstanceDetails
s@AwsEc2InstanceDetails' {} Maybe Text
a -> AwsEc2InstanceDetails
s {$sel:type':AwsEc2InstanceDetails' :: Maybe Text
type' = Maybe Text
a} :: AwsEc2InstanceDetails)

-- | The VPC ID of the Amazon EC2 instance.
awsEc2InstanceDetails_vpcId :: Lens.Lens' AwsEc2InstanceDetails (Prelude.Maybe Prelude.Text)
awsEc2InstanceDetails_vpcId :: Lens' AwsEc2InstanceDetails (Maybe Text)
awsEc2InstanceDetails_vpcId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2InstanceDetails' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: AwsEc2InstanceDetails
s@AwsEc2InstanceDetails' {} Maybe Text
a -> AwsEc2InstanceDetails
s {$sel:vpcId:AwsEc2InstanceDetails' :: Maybe Text
vpcId = Maybe Text
a} :: AwsEc2InstanceDetails)

instance Data.FromJSON AwsEc2InstanceDetails where
  parseJSON :: Value -> Parser AwsEc2InstanceDetails
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"AwsEc2InstanceDetails"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe [Text]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsEc2InstanceDetails
AwsEc2InstanceDetails'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"iamInstanceProfileArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"imageId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ipV4Addresses" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ipV6Addresses" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"keyName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"launchedAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"platform")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"subnetId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"type")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"vpcId")
      )

instance Prelude.Hashable AwsEc2InstanceDetails where
  hashWithSalt :: Int -> AwsEc2InstanceDetails -> Int
hashWithSalt Int
_salt AwsEc2InstanceDetails' {Maybe [Text]
Maybe Text
Maybe POSIX
vpcId :: Maybe Text
type' :: Maybe Text
subnetId :: Maybe Text
platform :: Maybe Text
launchedAt :: Maybe POSIX
keyName :: Maybe Text
ipV6Addresses :: Maybe [Text]
ipV4Addresses :: Maybe [Text]
imageId :: Maybe Text
iamInstanceProfileArn :: Maybe Text
$sel:vpcId:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
$sel:type':AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
$sel:subnetId:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
$sel:platform:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
$sel:launchedAt:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe POSIX
$sel:keyName:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
$sel:ipV6Addresses:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe [Text]
$sel:ipV4Addresses:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe [Text]
$sel:imageId:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
$sel:iamInstanceProfileArn:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
iamInstanceProfileArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
imageId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
ipV4Addresses
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
ipV6Addresses
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
keyName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
launchedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
platform
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
subnetId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
type'
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
vpcId

instance Prelude.NFData AwsEc2InstanceDetails where
  rnf :: AwsEc2InstanceDetails -> ()
rnf AwsEc2InstanceDetails' {Maybe [Text]
Maybe Text
Maybe POSIX
vpcId :: Maybe Text
type' :: Maybe Text
subnetId :: Maybe Text
platform :: Maybe Text
launchedAt :: Maybe POSIX
keyName :: Maybe Text
ipV6Addresses :: Maybe [Text]
ipV4Addresses :: Maybe [Text]
imageId :: Maybe Text
iamInstanceProfileArn :: Maybe Text
$sel:vpcId:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
$sel:type':AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
$sel:subnetId:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
$sel:platform:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
$sel:launchedAt:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe POSIX
$sel:keyName:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
$sel:ipV6Addresses:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe [Text]
$sel:ipV4Addresses:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe [Text]
$sel:imageId:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
$sel:iamInstanceProfileArn:AwsEc2InstanceDetails' :: AwsEc2InstanceDetails -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
iamInstanceProfileArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
imageId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
ipV4Addresses
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
ipV6Addresses
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
keyName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
launchedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
platform
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
subnetId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
type'
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vpcId