{-# 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.RolesAnywhere.Types.ProfileDetail
-- 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.RolesAnywhere.Types.ProfileDetail 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

-- | The state of the profile after a read or write operation.
--
-- /See:/ 'newProfileDetail' smart constructor.
data ProfileDetail = ProfileDetail'
  { -- | The ISO-8601 timestamp when the profile was created.
    ProfileDetail -> Maybe ISO8601
createdAt :: Prelude.Maybe Data.ISO8601,
    -- | The Amazon Web Services account that created the profile.
    ProfileDetail -> Maybe Text
createdBy :: Prelude.Maybe Prelude.Text,
    -- | The number of seconds the vended session credentials are valid for.
    ProfileDetail -> Maybe Int
durationSeconds :: Prelude.Maybe Prelude.Int,
    -- | Indicates whether the profile is enabled.
    ProfileDetail -> Maybe Bool
enabled :: Prelude.Maybe Prelude.Bool,
    -- | A list of managed policy ARNs that apply to the vended session
    -- credentials.
    ProfileDetail -> Maybe [Text]
managedPolicyArns :: Prelude.Maybe [Prelude.Text],
    -- | The name of the profile.
    ProfileDetail -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the profile.
    ProfileDetail -> Maybe Text
profileArn :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier of the profile.
    ProfileDetail -> Maybe Text
profileId :: Prelude.Maybe Prelude.Text,
    -- | Specifies whether instance properties are required in
    -- <https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html CreateSession>
    -- requests with this profile.
    ProfileDetail -> Maybe Bool
requireInstanceProperties :: Prelude.Maybe Prelude.Bool,
    -- | A list of IAM roles that this profile can assume in a
    -- <https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html CreateSession>
    -- operation.
    ProfileDetail -> Maybe [Text]
roleArns :: Prelude.Maybe [Prelude.Text],
    -- | A session policy that applies to the trust boundary of the vended
    -- session credentials.
    ProfileDetail -> Maybe Text
sessionPolicy :: Prelude.Maybe Prelude.Text,
    -- | The ISO-8601 timestamp when the profile was last updated.
    ProfileDetail -> Maybe ISO8601
updatedAt :: Prelude.Maybe Data.ISO8601
  }
  deriving (ProfileDetail -> ProfileDetail -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProfileDetail -> ProfileDetail -> Bool
$c/= :: ProfileDetail -> ProfileDetail -> Bool
== :: ProfileDetail -> ProfileDetail -> Bool
$c== :: ProfileDetail -> ProfileDetail -> Bool
Prelude.Eq, ReadPrec [ProfileDetail]
ReadPrec ProfileDetail
Int -> ReadS ProfileDetail
ReadS [ProfileDetail]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProfileDetail]
$creadListPrec :: ReadPrec [ProfileDetail]
readPrec :: ReadPrec ProfileDetail
$creadPrec :: ReadPrec ProfileDetail
readList :: ReadS [ProfileDetail]
$creadList :: ReadS [ProfileDetail]
readsPrec :: Int -> ReadS ProfileDetail
$creadsPrec :: Int -> ReadS ProfileDetail
Prelude.Read, Int -> ProfileDetail -> ShowS
[ProfileDetail] -> ShowS
ProfileDetail -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProfileDetail] -> ShowS
$cshowList :: [ProfileDetail] -> ShowS
show :: ProfileDetail -> String
$cshow :: ProfileDetail -> String
showsPrec :: Int -> ProfileDetail -> ShowS
$cshowsPrec :: Int -> ProfileDetail -> ShowS
Prelude.Show, forall x. Rep ProfileDetail x -> ProfileDetail
forall x. ProfileDetail -> Rep ProfileDetail x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ProfileDetail x -> ProfileDetail
$cfrom :: forall x. ProfileDetail -> Rep ProfileDetail x
Prelude.Generic)

-- |
-- Create a value of 'ProfileDetail' 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:
--
-- 'createdAt', 'profileDetail_createdAt' - The ISO-8601 timestamp when the profile was created.
--
-- 'createdBy', 'profileDetail_createdBy' - The Amazon Web Services account that created the profile.
--
-- 'durationSeconds', 'profileDetail_durationSeconds' - The number of seconds the vended session credentials are valid for.
--
-- 'enabled', 'profileDetail_enabled' - Indicates whether the profile is enabled.
--
-- 'managedPolicyArns', 'profileDetail_managedPolicyArns' - A list of managed policy ARNs that apply to the vended session
-- credentials.
--
-- 'name', 'profileDetail_name' - The name of the profile.
--
-- 'profileArn', 'profileDetail_profileArn' - The ARN of the profile.
--
-- 'profileId', 'profileDetail_profileId' - The unique identifier of the profile.
--
-- 'requireInstanceProperties', 'profileDetail_requireInstanceProperties' - Specifies whether instance properties are required in
-- <https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html CreateSession>
-- requests with this profile.
--
-- 'roleArns', 'profileDetail_roleArns' - A list of IAM roles that this profile can assume in a
-- <https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html CreateSession>
-- operation.
--
-- 'sessionPolicy', 'profileDetail_sessionPolicy' - A session policy that applies to the trust boundary of the vended
-- session credentials.
--
-- 'updatedAt', 'profileDetail_updatedAt' - The ISO-8601 timestamp when the profile was last updated.
newProfileDetail ::
  ProfileDetail
newProfileDetail :: ProfileDetail
newProfileDetail =
  ProfileDetail'
    { $sel:createdAt:ProfileDetail' :: Maybe ISO8601
createdAt = forall a. Maybe a
Prelude.Nothing,
      $sel:createdBy:ProfileDetail' :: Maybe Text
createdBy = forall a. Maybe a
Prelude.Nothing,
      $sel:durationSeconds:ProfileDetail' :: Maybe Int
durationSeconds = forall a. Maybe a
Prelude.Nothing,
      $sel:enabled:ProfileDetail' :: Maybe Bool
enabled = forall a. Maybe a
Prelude.Nothing,
      $sel:managedPolicyArns:ProfileDetail' :: Maybe [Text]
managedPolicyArns = forall a. Maybe a
Prelude.Nothing,
      $sel:name:ProfileDetail' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:profileArn:ProfileDetail' :: Maybe Text
profileArn = forall a. Maybe a
Prelude.Nothing,
      $sel:profileId:ProfileDetail' :: Maybe Text
profileId = forall a. Maybe a
Prelude.Nothing,
      $sel:requireInstanceProperties:ProfileDetail' :: Maybe Bool
requireInstanceProperties = forall a. Maybe a
Prelude.Nothing,
      $sel:roleArns:ProfileDetail' :: Maybe [Text]
roleArns = forall a. Maybe a
Prelude.Nothing,
      $sel:sessionPolicy:ProfileDetail' :: Maybe Text
sessionPolicy = forall a. Maybe a
Prelude.Nothing,
      $sel:updatedAt:ProfileDetail' :: Maybe ISO8601
updatedAt = forall a. Maybe a
Prelude.Nothing
    }

-- | The ISO-8601 timestamp when the profile was created.
profileDetail_createdAt :: Lens.Lens' ProfileDetail (Prelude.Maybe Prelude.UTCTime)
profileDetail_createdAt :: Lens' ProfileDetail (Maybe UTCTime)
profileDetail_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfileDetail' {Maybe ISO8601
createdAt :: Maybe ISO8601
$sel:createdAt:ProfileDetail' :: ProfileDetail -> Maybe ISO8601
createdAt} -> Maybe ISO8601
createdAt) (\s :: ProfileDetail
s@ProfileDetail' {} Maybe ISO8601
a -> ProfileDetail
s {$sel:createdAt:ProfileDetail' :: Maybe ISO8601
createdAt = Maybe ISO8601
a} :: ProfileDetail) 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 Amazon Web Services account that created the profile.
profileDetail_createdBy :: Lens.Lens' ProfileDetail (Prelude.Maybe Prelude.Text)
profileDetail_createdBy :: Lens' ProfileDetail (Maybe Text)
profileDetail_createdBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfileDetail' {Maybe Text
createdBy :: Maybe Text
$sel:createdBy:ProfileDetail' :: ProfileDetail -> Maybe Text
createdBy} -> Maybe Text
createdBy) (\s :: ProfileDetail
s@ProfileDetail' {} Maybe Text
a -> ProfileDetail
s {$sel:createdBy:ProfileDetail' :: Maybe Text
createdBy = Maybe Text
a} :: ProfileDetail)

-- | The number of seconds the vended session credentials are valid for.
profileDetail_durationSeconds :: Lens.Lens' ProfileDetail (Prelude.Maybe Prelude.Int)
profileDetail_durationSeconds :: Lens' ProfileDetail (Maybe Int)
profileDetail_durationSeconds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfileDetail' {Maybe Int
durationSeconds :: Maybe Int
$sel:durationSeconds:ProfileDetail' :: ProfileDetail -> Maybe Int
durationSeconds} -> Maybe Int
durationSeconds) (\s :: ProfileDetail
s@ProfileDetail' {} Maybe Int
a -> ProfileDetail
s {$sel:durationSeconds:ProfileDetail' :: Maybe Int
durationSeconds = Maybe Int
a} :: ProfileDetail)

-- | Indicates whether the profile is enabled.
profileDetail_enabled :: Lens.Lens' ProfileDetail (Prelude.Maybe Prelude.Bool)
profileDetail_enabled :: Lens' ProfileDetail (Maybe Bool)
profileDetail_enabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfileDetail' {Maybe Bool
enabled :: Maybe Bool
$sel:enabled:ProfileDetail' :: ProfileDetail -> Maybe Bool
enabled} -> Maybe Bool
enabled) (\s :: ProfileDetail
s@ProfileDetail' {} Maybe Bool
a -> ProfileDetail
s {$sel:enabled:ProfileDetail' :: Maybe Bool
enabled = Maybe Bool
a} :: ProfileDetail)

-- | A list of managed policy ARNs that apply to the vended session
-- credentials.
profileDetail_managedPolicyArns :: Lens.Lens' ProfileDetail (Prelude.Maybe [Prelude.Text])
profileDetail_managedPolicyArns :: Lens' ProfileDetail (Maybe [Text])
profileDetail_managedPolicyArns = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfileDetail' {Maybe [Text]
managedPolicyArns :: Maybe [Text]
$sel:managedPolicyArns:ProfileDetail' :: ProfileDetail -> Maybe [Text]
managedPolicyArns} -> Maybe [Text]
managedPolicyArns) (\s :: ProfileDetail
s@ProfileDetail' {} Maybe [Text]
a -> ProfileDetail
s {$sel:managedPolicyArns:ProfileDetail' :: Maybe [Text]
managedPolicyArns = Maybe [Text]
a} :: ProfileDetail) 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 profile.
profileDetail_name :: Lens.Lens' ProfileDetail (Prelude.Maybe Prelude.Text)
profileDetail_name :: Lens' ProfileDetail (Maybe Text)
profileDetail_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfileDetail' {Maybe Text
name :: Maybe Text
$sel:name:ProfileDetail' :: ProfileDetail -> Maybe Text
name} -> Maybe Text
name) (\s :: ProfileDetail
s@ProfileDetail' {} Maybe Text
a -> ProfileDetail
s {$sel:name:ProfileDetail' :: Maybe Text
name = Maybe Text
a} :: ProfileDetail)

-- | The ARN of the profile.
profileDetail_profileArn :: Lens.Lens' ProfileDetail (Prelude.Maybe Prelude.Text)
profileDetail_profileArn :: Lens' ProfileDetail (Maybe Text)
profileDetail_profileArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfileDetail' {Maybe Text
profileArn :: Maybe Text
$sel:profileArn:ProfileDetail' :: ProfileDetail -> Maybe Text
profileArn} -> Maybe Text
profileArn) (\s :: ProfileDetail
s@ProfileDetail' {} Maybe Text
a -> ProfileDetail
s {$sel:profileArn:ProfileDetail' :: Maybe Text
profileArn = Maybe Text
a} :: ProfileDetail)

-- | The unique identifier of the profile.
profileDetail_profileId :: Lens.Lens' ProfileDetail (Prelude.Maybe Prelude.Text)
profileDetail_profileId :: Lens' ProfileDetail (Maybe Text)
profileDetail_profileId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfileDetail' {Maybe Text
profileId :: Maybe Text
$sel:profileId:ProfileDetail' :: ProfileDetail -> Maybe Text
profileId} -> Maybe Text
profileId) (\s :: ProfileDetail
s@ProfileDetail' {} Maybe Text
a -> ProfileDetail
s {$sel:profileId:ProfileDetail' :: Maybe Text
profileId = Maybe Text
a} :: ProfileDetail)

-- | Specifies whether instance properties are required in
-- <https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html CreateSession>
-- requests with this profile.
profileDetail_requireInstanceProperties :: Lens.Lens' ProfileDetail (Prelude.Maybe Prelude.Bool)
profileDetail_requireInstanceProperties :: Lens' ProfileDetail (Maybe Bool)
profileDetail_requireInstanceProperties = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfileDetail' {Maybe Bool
requireInstanceProperties :: Maybe Bool
$sel:requireInstanceProperties:ProfileDetail' :: ProfileDetail -> Maybe Bool
requireInstanceProperties} -> Maybe Bool
requireInstanceProperties) (\s :: ProfileDetail
s@ProfileDetail' {} Maybe Bool
a -> ProfileDetail
s {$sel:requireInstanceProperties:ProfileDetail' :: Maybe Bool
requireInstanceProperties = Maybe Bool
a} :: ProfileDetail)

-- | A list of IAM roles that this profile can assume in a
-- <https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html CreateSession>
-- operation.
profileDetail_roleArns :: Lens.Lens' ProfileDetail (Prelude.Maybe [Prelude.Text])
profileDetail_roleArns :: Lens' ProfileDetail (Maybe [Text])
profileDetail_roleArns = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfileDetail' {Maybe [Text]
roleArns :: Maybe [Text]
$sel:roleArns:ProfileDetail' :: ProfileDetail -> Maybe [Text]
roleArns} -> Maybe [Text]
roleArns) (\s :: ProfileDetail
s@ProfileDetail' {} Maybe [Text]
a -> ProfileDetail
s {$sel:roleArns:ProfileDetail' :: Maybe [Text]
roleArns = Maybe [Text]
a} :: ProfileDetail) 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

-- | A session policy that applies to the trust boundary of the vended
-- session credentials.
profileDetail_sessionPolicy :: Lens.Lens' ProfileDetail (Prelude.Maybe Prelude.Text)
profileDetail_sessionPolicy :: Lens' ProfileDetail (Maybe Text)
profileDetail_sessionPolicy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfileDetail' {Maybe Text
sessionPolicy :: Maybe Text
$sel:sessionPolicy:ProfileDetail' :: ProfileDetail -> Maybe Text
sessionPolicy} -> Maybe Text
sessionPolicy) (\s :: ProfileDetail
s@ProfileDetail' {} Maybe Text
a -> ProfileDetail
s {$sel:sessionPolicy:ProfileDetail' :: Maybe Text
sessionPolicy = Maybe Text
a} :: ProfileDetail)

-- | The ISO-8601 timestamp when the profile was last updated.
profileDetail_updatedAt :: Lens.Lens' ProfileDetail (Prelude.Maybe Prelude.UTCTime)
profileDetail_updatedAt :: Lens' ProfileDetail (Maybe UTCTime)
profileDetail_updatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProfileDetail' {Maybe ISO8601
updatedAt :: Maybe ISO8601
$sel:updatedAt:ProfileDetail' :: ProfileDetail -> Maybe ISO8601
updatedAt} -> Maybe ISO8601
updatedAt) (\s :: ProfileDetail
s@ProfileDetail' {} Maybe ISO8601
a -> ProfileDetail
s {$sel:updatedAt:ProfileDetail' :: Maybe ISO8601
updatedAt = Maybe ISO8601
a} :: ProfileDetail) 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

instance Data.FromJSON ProfileDetail where
  parseJSON :: Value -> Parser ProfileDetail
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ProfileDetail"
      ( \Object
x ->
          Maybe ISO8601
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe ISO8601
-> ProfileDetail
ProfileDetail'
            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
"createdAt")
            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
"createdBy")
            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
"durationSeconds")
            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
"enabled")
            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
"managedPolicyArns"
                            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
"name")
            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
"profileArn")
            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
"profileId")
            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
"requireInstanceProperties")
            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
"roleArns" 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
"sessionPolicy")
            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
"updatedAt")
      )

instance Prelude.Hashable ProfileDetail where
  hashWithSalt :: Int -> ProfileDetail -> Int
hashWithSalt Int
_salt ProfileDetail' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe Text
Maybe ISO8601
updatedAt :: Maybe ISO8601
sessionPolicy :: Maybe Text
roleArns :: Maybe [Text]
requireInstanceProperties :: Maybe Bool
profileId :: Maybe Text
profileArn :: Maybe Text
name :: Maybe Text
managedPolicyArns :: Maybe [Text]
enabled :: Maybe Bool
durationSeconds :: Maybe Int
createdBy :: Maybe Text
createdAt :: Maybe ISO8601
$sel:updatedAt:ProfileDetail' :: ProfileDetail -> Maybe ISO8601
$sel:sessionPolicy:ProfileDetail' :: ProfileDetail -> Maybe Text
$sel:roleArns:ProfileDetail' :: ProfileDetail -> Maybe [Text]
$sel:requireInstanceProperties:ProfileDetail' :: ProfileDetail -> Maybe Bool
$sel:profileId:ProfileDetail' :: ProfileDetail -> Maybe Text
$sel:profileArn:ProfileDetail' :: ProfileDetail -> Maybe Text
$sel:name:ProfileDetail' :: ProfileDetail -> Maybe Text
$sel:managedPolicyArns:ProfileDetail' :: ProfileDetail -> Maybe [Text]
$sel:enabled:ProfileDetail' :: ProfileDetail -> Maybe Bool
$sel:durationSeconds:ProfileDetail' :: ProfileDetail -> Maybe Int
$sel:createdBy:ProfileDetail' :: ProfileDetail -> Maybe Text
$sel:createdAt:ProfileDetail' :: ProfileDetail -> Maybe ISO8601
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
createdAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
createdBy
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
durationSeconds
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
enabled
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
managedPolicyArns
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
profileArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
profileId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
requireInstanceProperties
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
roleArns
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
sessionPolicy
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
updatedAt

instance Prelude.NFData ProfileDetail where
  rnf :: ProfileDetail -> ()
rnf ProfileDetail' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe Text
Maybe ISO8601
updatedAt :: Maybe ISO8601
sessionPolicy :: Maybe Text
roleArns :: Maybe [Text]
requireInstanceProperties :: Maybe Bool
profileId :: Maybe Text
profileArn :: Maybe Text
name :: Maybe Text
managedPolicyArns :: Maybe [Text]
enabled :: Maybe Bool
durationSeconds :: Maybe Int
createdBy :: Maybe Text
createdAt :: Maybe ISO8601
$sel:updatedAt:ProfileDetail' :: ProfileDetail -> Maybe ISO8601
$sel:sessionPolicy:ProfileDetail' :: ProfileDetail -> Maybe Text
$sel:roleArns:ProfileDetail' :: ProfileDetail -> Maybe [Text]
$sel:requireInstanceProperties:ProfileDetail' :: ProfileDetail -> Maybe Bool
$sel:profileId:ProfileDetail' :: ProfileDetail -> Maybe Text
$sel:profileArn:ProfileDetail' :: ProfileDetail -> Maybe Text
$sel:name:ProfileDetail' :: ProfileDetail -> Maybe Text
$sel:managedPolicyArns:ProfileDetail' :: ProfileDetail -> Maybe [Text]
$sel:enabled:ProfileDetail' :: ProfileDetail -> Maybe Bool
$sel:durationSeconds:ProfileDetail' :: ProfileDetail -> Maybe Int
$sel:createdBy:ProfileDetail' :: ProfileDetail -> Maybe Text
$sel:createdAt:ProfileDetail' :: ProfileDetail -> Maybe ISO8601
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
createdAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
createdBy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
durationSeconds
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
enabled
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
managedPolicyArns
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
profileArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
profileId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
requireInstanceProperties
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
roleArns
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sessionPolicy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
updatedAt