{-# 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.AwsIamInstanceProfile
-- 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.AwsIamInstanceProfile where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SecurityHub.Types.AwsIamInstanceProfileRole

-- | Information about an instance profile.
--
-- /See:/ 'newAwsIamInstanceProfile' smart constructor.
data AwsIamInstanceProfile = AwsIamInstanceProfile'
  { -- | The roles associated with the instance profile.
    AwsIamInstanceProfile -> Maybe [AwsIamInstanceProfileRole]
roles :: Prelude.Maybe [AwsIamInstanceProfileRole],
    -- | The ARN of the instance profile.
    AwsIamInstanceProfile -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The path to the instance profile.
    AwsIamInstanceProfile -> Maybe Text
path :: Prelude.Maybe Prelude.Text,
    -- | Indicates when the instance profile was created.
    --
    -- 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@.
    AwsIamInstanceProfile -> Maybe Text
createDate :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the instance profile.
    AwsIamInstanceProfile -> Maybe Text
instanceProfileId :: Prelude.Maybe Prelude.Text,
    -- | The name of the instance profile.
    AwsIamInstanceProfile -> Maybe Text
instanceProfileName :: Prelude.Maybe Prelude.Text
  }
  deriving (AwsIamInstanceProfile -> AwsIamInstanceProfile -> Bool
(AwsIamInstanceProfile -> AwsIamInstanceProfile -> Bool)
-> (AwsIamInstanceProfile -> AwsIamInstanceProfile -> Bool)
-> Eq AwsIamInstanceProfile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsIamInstanceProfile -> AwsIamInstanceProfile -> Bool
$c/= :: AwsIamInstanceProfile -> AwsIamInstanceProfile -> Bool
== :: AwsIamInstanceProfile -> AwsIamInstanceProfile -> Bool
$c== :: AwsIamInstanceProfile -> AwsIamInstanceProfile -> Bool
Prelude.Eq, ReadPrec [AwsIamInstanceProfile]
ReadPrec AwsIamInstanceProfile
Int -> ReadS AwsIamInstanceProfile
ReadS [AwsIamInstanceProfile]
(Int -> ReadS AwsIamInstanceProfile)
-> ReadS [AwsIamInstanceProfile]
-> ReadPrec AwsIamInstanceProfile
-> ReadPrec [AwsIamInstanceProfile]
-> Read AwsIamInstanceProfile
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsIamInstanceProfile]
$creadListPrec :: ReadPrec [AwsIamInstanceProfile]
readPrec :: ReadPrec AwsIamInstanceProfile
$creadPrec :: ReadPrec AwsIamInstanceProfile
readList :: ReadS [AwsIamInstanceProfile]
$creadList :: ReadS [AwsIamInstanceProfile]
readsPrec :: Int -> ReadS AwsIamInstanceProfile
$creadsPrec :: Int -> ReadS AwsIamInstanceProfile
Prelude.Read, Int -> AwsIamInstanceProfile -> ShowS
[AwsIamInstanceProfile] -> ShowS
AwsIamInstanceProfile -> String
(Int -> AwsIamInstanceProfile -> ShowS)
-> (AwsIamInstanceProfile -> String)
-> ([AwsIamInstanceProfile] -> ShowS)
-> Show AwsIamInstanceProfile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsIamInstanceProfile] -> ShowS
$cshowList :: [AwsIamInstanceProfile] -> ShowS
show :: AwsIamInstanceProfile -> String
$cshow :: AwsIamInstanceProfile -> String
showsPrec :: Int -> AwsIamInstanceProfile -> ShowS
$cshowsPrec :: Int -> AwsIamInstanceProfile -> ShowS
Prelude.Show, (forall x. AwsIamInstanceProfile -> Rep AwsIamInstanceProfile x)
-> (forall x. Rep AwsIamInstanceProfile x -> AwsIamInstanceProfile)
-> Generic AwsIamInstanceProfile
forall x. Rep AwsIamInstanceProfile x -> AwsIamInstanceProfile
forall x. AwsIamInstanceProfile -> Rep AwsIamInstanceProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AwsIamInstanceProfile x -> AwsIamInstanceProfile
$cfrom :: forall x. AwsIamInstanceProfile -> Rep AwsIamInstanceProfile x
Prelude.Generic)

-- |
-- Create a value of 'AwsIamInstanceProfile' 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:
--
-- 'roles', 'awsIamInstanceProfile_roles' - The roles associated with the instance profile.
--
-- 'arn', 'awsIamInstanceProfile_arn' - The ARN of the instance profile.
--
-- 'path', 'awsIamInstanceProfile_path' - The path to the instance profile.
--
-- 'createDate', 'awsIamInstanceProfile_createDate' - Indicates when the instance profile was created.
--
-- 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@.
--
-- 'instanceProfileId', 'awsIamInstanceProfile_instanceProfileId' - The identifier of the instance profile.
--
-- 'instanceProfileName', 'awsIamInstanceProfile_instanceProfileName' - The name of the instance profile.
newAwsIamInstanceProfile ::
  AwsIamInstanceProfile
newAwsIamInstanceProfile :: AwsIamInstanceProfile
newAwsIamInstanceProfile =
  AwsIamInstanceProfile' :: Maybe [AwsIamInstanceProfileRole]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsIamInstanceProfile
AwsIamInstanceProfile'
    { $sel:roles:AwsIamInstanceProfile' :: Maybe [AwsIamInstanceProfileRole]
roles = Maybe [AwsIamInstanceProfileRole]
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:AwsIamInstanceProfile' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:path:AwsIamInstanceProfile' :: Maybe Text
path = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createDate:AwsIamInstanceProfile' :: Maybe Text
createDate = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:instanceProfileId:AwsIamInstanceProfile' :: Maybe Text
instanceProfileId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:instanceProfileName:AwsIamInstanceProfile' :: Maybe Text
instanceProfileName = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The roles associated with the instance profile.
awsIamInstanceProfile_roles :: Lens.Lens' AwsIamInstanceProfile (Prelude.Maybe [AwsIamInstanceProfileRole])
awsIamInstanceProfile_roles :: (Maybe [AwsIamInstanceProfileRole]
 -> f (Maybe [AwsIamInstanceProfileRole]))
-> AwsIamInstanceProfile -> f AwsIamInstanceProfile
awsIamInstanceProfile_roles = (AwsIamInstanceProfile -> Maybe [AwsIamInstanceProfileRole])
-> (AwsIamInstanceProfile
    -> Maybe [AwsIamInstanceProfileRole] -> AwsIamInstanceProfile)
-> Lens
     AwsIamInstanceProfile
     AwsIamInstanceProfile
     (Maybe [AwsIamInstanceProfileRole])
     (Maybe [AwsIamInstanceProfileRole])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsIamInstanceProfile' {Maybe [AwsIamInstanceProfileRole]
roles :: Maybe [AwsIamInstanceProfileRole]
$sel:roles:AwsIamInstanceProfile' :: AwsIamInstanceProfile -> Maybe [AwsIamInstanceProfileRole]
roles} -> Maybe [AwsIamInstanceProfileRole]
roles) (\s :: AwsIamInstanceProfile
s@AwsIamInstanceProfile' {} Maybe [AwsIamInstanceProfileRole]
a -> AwsIamInstanceProfile
s {$sel:roles:AwsIamInstanceProfile' :: Maybe [AwsIamInstanceProfileRole]
roles = Maybe [AwsIamInstanceProfileRole]
a} :: AwsIamInstanceProfile) ((Maybe [AwsIamInstanceProfileRole]
  -> f (Maybe [AwsIamInstanceProfileRole]))
 -> AwsIamInstanceProfile -> f AwsIamInstanceProfile)
-> ((Maybe [AwsIamInstanceProfileRole]
     -> f (Maybe [AwsIamInstanceProfileRole]))
    -> Maybe [AwsIamInstanceProfileRole]
    -> f (Maybe [AwsIamInstanceProfileRole]))
-> (Maybe [AwsIamInstanceProfileRole]
    -> f (Maybe [AwsIamInstanceProfileRole]))
-> AwsIamInstanceProfile
-> f AwsIamInstanceProfile
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [AwsIamInstanceProfileRole]
  [AwsIamInstanceProfileRole]
  [AwsIamInstanceProfileRole]
  [AwsIamInstanceProfileRole]
-> Iso
     (Maybe [AwsIamInstanceProfileRole])
     (Maybe [AwsIamInstanceProfileRole])
     (Maybe [AwsIamInstanceProfileRole])
     (Maybe [AwsIamInstanceProfileRole])
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
  [AwsIamInstanceProfileRole]
  [AwsIamInstanceProfileRole]
  [AwsIamInstanceProfileRole]
  [AwsIamInstanceProfileRole]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

-- | The path to the instance profile.
awsIamInstanceProfile_path :: Lens.Lens' AwsIamInstanceProfile (Prelude.Maybe Prelude.Text)
awsIamInstanceProfile_path :: (Maybe Text -> f (Maybe Text))
-> AwsIamInstanceProfile -> f AwsIamInstanceProfile
awsIamInstanceProfile_path = (AwsIamInstanceProfile -> Maybe Text)
-> (AwsIamInstanceProfile -> Maybe Text -> AwsIamInstanceProfile)
-> Lens
     AwsIamInstanceProfile
     AwsIamInstanceProfile
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsIamInstanceProfile' {Maybe Text
path :: Maybe Text
$sel:path:AwsIamInstanceProfile' :: AwsIamInstanceProfile -> Maybe Text
path} -> Maybe Text
path) (\s :: AwsIamInstanceProfile
s@AwsIamInstanceProfile' {} Maybe Text
a -> AwsIamInstanceProfile
s {$sel:path:AwsIamInstanceProfile' :: Maybe Text
path = Maybe Text
a} :: AwsIamInstanceProfile)

-- | Indicates when the instance profile was created.
--
-- 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@.
awsIamInstanceProfile_createDate :: Lens.Lens' AwsIamInstanceProfile (Prelude.Maybe Prelude.Text)
awsIamInstanceProfile_createDate :: (Maybe Text -> f (Maybe Text))
-> AwsIamInstanceProfile -> f AwsIamInstanceProfile
awsIamInstanceProfile_createDate = (AwsIamInstanceProfile -> Maybe Text)
-> (AwsIamInstanceProfile -> Maybe Text -> AwsIamInstanceProfile)
-> Lens
     AwsIamInstanceProfile
     AwsIamInstanceProfile
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsIamInstanceProfile' {Maybe Text
createDate :: Maybe Text
$sel:createDate:AwsIamInstanceProfile' :: AwsIamInstanceProfile -> Maybe Text
createDate} -> Maybe Text
createDate) (\s :: AwsIamInstanceProfile
s@AwsIamInstanceProfile' {} Maybe Text
a -> AwsIamInstanceProfile
s {$sel:createDate:AwsIamInstanceProfile' :: Maybe Text
createDate = Maybe Text
a} :: AwsIamInstanceProfile)

-- | The identifier of the instance profile.
awsIamInstanceProfile_instanceProfileId :: Lens.Lens' AwsIamInstanceProfile (Prelude.Maybe Prelude.Text)
awsIamInstanceProfile_instanceProfileId :: (Maybe Text -> f (Maybe Text))
-> AwsIamInstanceProfile -> f AwsIamInstanceProfile
awsIamInstanceProfile_instanceProfileId = (AwsIamInstanceProfile -> Maybe Text)
-> (AwsIamInstanceProfile -> Maybe Text -> AwsIamInstanceProfile)
-> Lens
     AwsIamInstanceProfile
     AwsIamInstanceProfile
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsIamInstanceProfile' {Maybe Text
instanceProfileId :: Maybe Text
$sel:instanceProfileId:AwsIamInstanceProfile' :: AwsIamInstanceProfile -> Maybe Text
instanceProfileId} -> Maybe Text
instanceProfileId) (\s :: AwsIamInstanceProfile
s@AwsIamInstanceProfile' {} Maybe Text
a -> AwsIamInstanceProfile
s {$sel:instanceProfileId:AwsIamInstanceProfile' :: Maybe Text
instanceProfileId = Maybe Text
a} :: AwsIamInstanceProfile)

-- | The name of the instance profile.
awsIamInstanceProfile_instanceProfileName :: Lens.Lens' AwsIamInstanceProfile (Prelude.Maybe Prelude.Text)
awsIamInstanceProfile_instanceProfileName :: (Maybe Text -> f (Maybe Text))
-> AwsIamInstanceProfile -> f AwsIamInstanceProfile
awsIamInstanceProfile_instanceProfileName = (AwsIamInstanceProfile -> Maybe Text)
-> (AwsIamInstanceProfile -> Maybe Text -> AwsIamInstanceProfile)
-> Lens
     AwsIamInstanceProfile
     AwsIamInstanceProfile
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsIamInstanceProfile' {Maybe Text
instanceProfileName :: Maybe Text
$sel:instanceProfileName:AwsIamInstanceProfile' :: AwsIamInstanceProfile -> Maybe Text
instanceProfileName} -> Maybe Text
instanceProfileName) (\s :: AwsIamInstanceProfile
s@AwsIamInstanceProfile' {} Maybe Text
a -> AwsIamInstanceProfile
s {$sel:instanceProfileName:AwsIamInstanceProfile' :: Maybe Text
instanceProfileName = Maybe Text
a} :: AwsIamInstanceProfile)

instance Core.FromJSON AwsIamInstanceProfile where
  parseJSON :: Value -> Parser AwsIamInstanceProfile
parseJSON =
    String
-> (Object -> Parser AwsIamInstanceProfile)
-> Value
-> Parser AwsIamInstanceProfile
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"AwsIamInstanceProfile"
      ( \Object
x ->
          Maybe [AwsIamInstanceProfileRole]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsIamInstanceProfile
AwsIamInstanceProfile'
            (Maybe [AwsIamInstanceProfileRole]
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> AwsIamInstanceProfile)
-> Parser (Maybe [AwsIamInstanceProfileRole])
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> AwsIamInstanceProfile)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Parser (Maybe (Maybe [AwsIamInstanceProfileRole]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Roles" Parser (Maybe (Maybe [AwsIamInstanceProfileRole]))
-> Maybe [AwsIamInstanceProfileRole]
-> Parser (Maybe [AwsIamInstanceProfileRole])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [AwsIamInstanceProfileRole]
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> AwsIamInstanceProfile)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text -> Maybe Text -> Maybe Text -> AwsIamInstanceProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Arn")
            Parser
  (Maybe Text
   -> Maybe Text -> Maybe Text -> Maybe Text -> AwsIamInstanceProfile)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> Maybe Text -> Maybe Text -> AwsIamInstanceProfile)
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
"Path")
            Parser
  (Maybe Text -> Maybe Text -> Maybe Text -> AwsIamInstanceProfile)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> AwsIamInstanceProfile)
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
"CreateDate")
            Parser (Maybe Text -> Maybe Text -> AwsIamInstanceProfile)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> AwsIamInstanceProfile)
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
"InstanceProfileId")
            Parser (Maybe Text -> AwsIamInstanceProfile)
-> Parser (Maybe Text) -> Parser AwsIamInstanceProfile
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
"InstanceProfileName")
      )

instance Prelude.Hashable AwsIamInstanceProfile

instance Prelude.NFData AwsIamInstanceProfile

instance Core.ToJSON AwsIamInstanceProfile where
  toJSON :: AwsIamInstanceProfile -> Value
toJSON AwsIamInstanceProfile' {Maybe [AwsIamInstanceProfileRole]
Maybe Text
instanceProfileName :: Maybe Text
instanceProfileId :: Maybe Text
createDate :: Maybe Text
path :: Maybe Text
arn :: Maybe Text
roles :: Maybe [AwsIamInstanceProfileRole]
$sel:instanceProfileName:AwsIamInstanceProfile' :: AwsIamInstanceProfile -> Maybe Text
$sel:instanceProfileId:AwsIamInstanceProfile' :: AwsIamInstanceProfile -> Maybe Text
$sel:createDate:AwsIamInstanceProfile' :: AwsIamInstanceProfile -> Maybe Text
$sel:path:AwsIamInstanceProfile' :: AwsIamInstanceProfile -> Maybe Text
$sel:arn:AwsIamInstanceProfile' :: AwsIamInstanceProfile -> Maybe Text
$sel:roles:AwsIamInstanceProfile' :: AwsIamInstanceProfile -> Maybe [AwsIamInstanceProfileRole]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"Roles" Text -> [AwsIamInstanceProfileRole] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([AwsIamInstanceProfileRole] -> Pair)
-> Maybe [AwsIamInstanceProfileRole] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AwsIamInstanceProfileRole]
roles,
            (Text
"Arn" 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
arn,
            (Text
"Path" 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
path,
            (Text
"CreateDate" 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
createDate,
            (Text
"InstanceProfileId" 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
instanceProfileId,
            (Text
"InstanceProfileName" 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
instanceProfileName
          ]
      )