{-# 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.AccessAnalyzer.Types.AnalyzedResource
-- 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.AccessAnalyzer.Types.AnalyzedResource where

import Amazonka.AccessAnalyzer.Types.FindingStatus
import Amazonka.AccessAnalyzer.Types.ResourceType
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

-- | Contains details about the analyzed resource.
--
-- /See:/ 'newAnalyzedResource' smart constructor.
data AnalyzedResource = AnalyzedResource'
  { -- | The actions that an external principal is granted permission to use by
    -- the policy that generated the finding.
    AnalyzedResource -> Maybe [Text]
actions :: Prelude.Maybe [Prelude.Text],
    -- | An error message.
    AnalyzedResource -> Maybe Text
error :: Prelude.Maybe Prelude.Text,
    -- | Indicates how the access that generated the finding is granted. This is
    -- populated for Amazon S3 bucket findings.
    AnalyzedResource -> Maybe [Text]
sharedVia :: Prelude.Maybe [Prelude.Text],
    -- | The current status of the finding generated from the analyzed resource.
    AnalyzedResource -> Maybe FindingStatus
status :: Prelude.Maybe FindingStatus,
    -- | The ARN of the resource that was analyzed.
    AnalyzedResource -> Text
resourceArn :: Prelude.Text,
    -- | The type of the resource that was analyzed.
    AnalyzedResource -> ResourceType
resourceType :: ResourceType,
    -- | The time at which the finding was created.
    AnalyzedResource -> ISO8601
createdAt :: Data.ISO8601,
    -- | The time at which the resource was analyzed.
    AnalyzedResource -> ISO8601
analyzedAt :: Data.ISO8601,
    -- | The time at which the finding was updated.
    AnalyzedResource -> ISO8601
updatedAt :: Data.ISO8601,
    -- | Indicates whether the policy that generated the finding grants public
    -- access to the resource.
    AnalyzedResource -> Bool
isPublic :: Prelude.Bool,
    -- | The Amazon Web Services account ID that owns the resource.
    AnalyzedResource -> Text
resourceOwnerAccount :: Prelude.Text
  }
  deriving (AnalyzedResource -> AnalyzedResource -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AnalyzedResource -> AnalyzedResource -> Bool
$c/= :: AnalyzedResource -> AnalyzedResource -> Bool
== :: AnalyzedResource -> AnalyzedResource -> Bool
$c== :: AnalyzedResource -> AnalyzedResource -> Bool
Prelude.Eq, ReadPrec [AnalyzedResource]
ReadPrec AnalyzedResource
Int -> ReadS AnalyzedResource
ReadS [AnalyzedResource]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AnalyzedResource]
$creadListPrec :: ReadPrec [AnalyzedResource]
readPrec :: ReadPrec AnalyzedResource
$creadPrec :: ReadPrec AnalyzedResource
readList :: ReadS [AnalyzedResource]
$creadList :: ReadS [AnalyzedResource]
readsPrec :: Int -> ReadS AnalyzedResource
$creadsPrec :: Int -> ReadS AnalyzedResource
Prelude.Read, Int -> AnalyzedResource -> ShowS
[AnalyzedResource] -> ShowS
AnalyzedResource -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AnalyzedResource] -> ShowS
$cshowList :: [AnalyzedResource] -> ShowS
show :: AnalyzedResource -> String
$cshow :: AnalyzedResource -> String
showsPrec :: Int -> AnalyzedResource -> ShowS
$cshowsPrec :: Int -> AnalyzedResource -> ShowS
Prelude.Show, forall x. Rep AnalyzedResource x -> AnalyzedResource
forall x. AnalyzedResource -> Rep AnalyzedResource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AnalyzedResource x -> AnalyzedResource
$cfrom :: forall x. AnalyzedResource -> Rep AnalyzedResource x
Prelude.Generic)

-- |
-- Create a value of 'AnalyzedResource' 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:
--
-- 'actions', 'analyzedResource_actions' - The actions that an external principal is granted permission to use by
-- the policy that generated the finding.
--
-- 'error', 'analyzedResource_error' - An error message.
--
-- 'sharedVia', 'analyzedResource_sharedVia' - Indicates how the access that generated the finding is granted. This is
-- populated for Amazon S3 bucket findings.
--
-- 'status', 'analyzedResource_status' - The current status of the finding generated from the analyzed resource.
--
-- 'resourceArn', 'analyzedResource_resourceArn' - The ARN of the resource that was analyzed.
--
-- 'resourceType', 'analyzedResource_resourceType' - The type of the resource that was analyzed.
--
-- 'createdAt', 'analyzedResource_createdAt' - The time at which the finding was created.
--
-- 'analyzedAt', 'analyzedResource_analyzedAt' - The time at which the resource was analyzed.
--
-- 'updatedAt', 'analyzedResource_updatedAt' - The time at which the finding was updated.
--
-- 'isPublic', 'analyzedResource_isPublic' - Indicates whether the policy that generated the finding grants public
-- access to the resource.
--
-- 'resourceOwnerAccount', 'analyzedResource_resourceOwnerAccount' - The Amazon Web Services account ID that owns the resource.
newAnalyzedResource ::
  -- | 'resourceArn'
  Prelude.Text ->
  -- | 'resourceType'
  ResourceType ->
  -- | 'createdAt'
  Prelude.UTCTime ->
  -- | 'analyzedAt'
  Prelude.UTCTime ->
  -- | 'updatedAt'
  Prelude.UTCTime ->
  -- | 'isPublic'
  Prelude.Bool ->
  -- | 'resourceOwnerAccount'
  Prelude.Text ->
  AnalyzedResource
newAnalyzedResource :: Text
-> ResourceType
-> UTCTime
-> UTCTime
-> UTCTime
-> Bool
-> Text
-> AnalyzedResource
newAnalyzedResource
  Text
pResourceArn_
  ResourceType
pResourceType_
  UTCTime
pCreatedAt_
  UTCTime
pAnalyzedAt_
  UTCTime
pUpdatedAt_
  Bool
pIsPublic_
  Text
pResourceOwnerAccount_ =
    AnalyzedResource'
      { $sel:actions:AnalyzedResource' :: Maybe [Text]
actions = forall a. Maybe a
Prelude.Nothing,
        $sel:error:AnalyzedResource' :: Maybe Text
error = forall a. Maybe a
Prelude.Nothing,
        $sel:sharedVia:AnalyzedResource' :: Maybe [Text]
sharedVia = forall a. Maybe a
Prelude.Nothing,
        $sel:status:AnalyzedResource' :: Maybe FindingStatus
status = forall a. Maybe a
Prelude.Nothing,
        $sel:resourceArn:AnalyzedResource' :: Text
resourceArn = Text
pResourceArn_,
        $sel:resourceType:AnalyzedResource' :: ResourceType
resourceType = ResourceType
pResourceType_,
        $sel:createdAt:AnalyzedResource' :: ISO8601
createdAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedAt_,
        $sel:analyzedAt:AnalyzedResource' :: ISO8601
analyzedAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pAnalyzedAt_,
        $sel:updatedAt:AnalyzedResource' :: ISO8601
updatedAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pUpdatedAt_,
        $sel:isPublic:AnalyzedResource' :: Bool
isPublic = Bool
pIsPublic_,
        $sel:resourceOwnerAccount:AnalyzedResource' :: Text
resourceOwnerAccount = Text
pResourceOwnerAccount_
      }

-- | The actions that an external principal is granted permission to use by
-- the policy that generated the finding.
analyzedResource_actions :: Lens.Lens' AnalyzedResource (Prelude.Maybe [Prelude.Text])
analyzedResource_actions :: Lens' AnalyzedResource (Maybe [Text])
analyzedResource_actions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AnalyzedResource' {Maybe [Text]
actions :: Maybe [Text]
$sel:actions:AnalyzedResource' :: AnalyzedResource -> Maybe [Text]
actions} -> Maybe [Text]
actions) (\s :: AnalyzedResource
s@AnalyzedResource' {} Maybe [Text]
a -> AnalyzedResource
s {$sel:actions:AnalyzedResource' :: Maybe [Text]
actions = Maybe [Text]
a} :: AnalyzedResource) 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

-- | An error message.
analyzedResource_error :: Lens.Lens' AnalyzedResource (Prelude.Maybe Prelude.Text)
analyzedResource_error :: Lens' AnalyzedResource (Maybe Text)
analyzedResource_error = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AnalyzedResource' {Maybe Text
error :: Maybe Text
$sel:error:AnalyzedResource' :: AnalyzedResource -> Maybe Text
error} -> Maybe Text
error) (\s :: AnalyzedResource
s@AnalyzedResource' {} Maybe Text
a -> AnalyzedResource
s {$sel:error:AnalyzedResource' :: Maybe Text
error = Maybe Text
a} :: AnalyzedResource)

-- | Indicates how the access that generated the finding is granted. This is
-- populated for Amazon S3 bucket findings.
analyzedResource_sharedVia :: Lens.Lens' AnalyzedResource (Prelude.Maybe [Prelude.Text])
analyzedResource_sharedVia :: Lens' AnalyzedResource (Maybe [Text])
analyzedResource_sharedVia = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AnalyzedResource' {Maybe [Text]
sharedVia :: Maybe [Text]
$sel:sharedVia:AnalyzedResource' :: AnalyzedResource -> Maybe [Text]
sharedVia} -> Maybe [Text]
sharedVia) (\s :: AnalyzedResource
s@AnalyzedResource' {} Maybe [Text]
a -> AnalyzedResource
s {$sel:sharedVia:AnalyzedResource' :: Maybe [Text]
sharedVia = Maybe [Text]
a} :: AnalyzedResource) 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 current status of the finding generated from the analyzed resource.
analyzedResource_status :: Lens.Lens' AnalyzedResource (Prelude.Maybe FindingStatus)
analyzedResource_status :: Lens' AnalyzedResource (Maybe FindingStatus)
analyzedResource_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AnalyzedResource' {Maybe FindingStatus
status :: Maybe FindingStatus
$sel:status:AnalyzedResource' :: AnalyzedResource -> Maybe FindingStatus
status} -> Maybe FindingStatus
status) (\s :: AnalyzedResource
s@AnalyzedResource' {} Maybe FindingStatus
a -> AnalyzedResource
s {$sel:status:AnalyzedResource' :: Maybe FindingStatus
status = Maybe FindingStatus
a} :: AnalyzedResource)

-- | The ARN of the resource that was analyzed.
analyzedResource_resourceArn :: Lens.Lens' AnalyzedResource Prelude.Text
analyzedResource_resourceArn :: Lens' AnalyzedResource Text
analyzedResource_resourceArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AnalyzedResource' {Text
resourceArn :: Text
$sel:resourceArn:AnalyzedResource' :: AnalyzedResource -> Text
resourceArn} -> Text
resourceArn) (\s :: AnalyzedResource
s@AnalyzedResource' {} Text
a -> AnalyzedResource
s {$sel:resourceArn:AnalyzedResource' :: Text
resourceArn = Text
a} :: AnalyzedResource)

-- | The type of the resource that was analyzed.
analyzedResource_resourceType :: Lens.Lens' AnalyzedResource ResourceType
analyzedResource_resourceType :: Lens' AnalyzedResource ResourceType
analyzedResource_resourceType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AnalyzedResource' {ResourceType
resourceType :: ResourceType
$sel:resourceType:AnalyzedResource' :: AnalyzedResource -> ResourceType
resourceType} -> ResourceType
resourceType) (\s :: AnalyzedResource
s@AnalyzedResource' {} ResourceType
a -> AnalyzedResource
s {$sel:resourceType:AnalyzedResource' :: ResourceType
resourceType = ResourceType
a} :: AnalyzedResource)

-- | The time at which the finding was created.
analyzedResource_createdAt :: Lens.Lens' AnalyzedResource Prelude.UTCTime
analyzedResource_createdAt :: Lens' AnalyzedResource UTCTime
analyzedResource_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AnalyzedResource' {ISO8601
createdAt :: ISO8601
$sel:createdAt:AnalyzedResource' :: AnalyzedResource -> ISO8601
createdAt} -> ISO8601
createdAt) (\s :: AnalyzedResource
s@AnalyzedResource' {} ISO8601
a -> AnalyzedResource
s {$sel:createdAt:AnalyzedResource' :: ISO8601
createdAt = ISO8601
a} :: AnalyzedResource) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The time at which the resource was analyzed.
analyzedResource_analyzedAt :: Lens.Lens' AnalyzedResource Prelude.UTCTime
analyzedResource_analyzedAt :: Lens' AnalyzedResource UTCTime
analyzedResource_analyzedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AnalyzedResource' {ISO8601
analyzedAt :: ISO8601
$sel:analyzedAt:AnalyzedResource' :: AnalyzedResource -> ISO8601
analyzedAt} -> ISO8601
analyzedAt) (\s :: AnalyzedResource
s@AnalyzedResource' {} ISO8601
a -> AnalyzedResource
s {$sel:analyzedAt:AnalyzedResource' :: ISO8601
analyzedAt = ISO8601
a} :: AnalyzedResource) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The time at which the finding was updated.
analyzedResource_updatedAt :: Lens.Lens' AnalyzedResource Prelude.UTCTime
analyzedResource_updatedAt :: Lens' AnalyzedResource UTCTime
analyzedResource_updatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AnalyzedResource' {ISO8601
updatedAt :: ISO8601
$sel:updatedAt:AnalyzedResource' :: AnalyzedResource -> ISO8601
updatedAt} -> ISO8601
updatedAt) (\s :: AnalyzedResource
s@AnalyzedResource' {} ISO8601
a -> AnalyzedResource
s {$sel:updatedAt:AnalyzedResource' :: ISO8601
updatedAt = ISO8601
a} :: AnalyzedResource) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Indicates whether the policy that generated the finding grants public
-- access to the resource.
analyzedResource_isPublic :: Lens.Lens' AnalyzedResource Prelude.Bool
analyzedResource_isPublic :: Lens' AnalyzedResource Bool
analyzedResource_isPublic = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AnalyzedResource' {Bool
isPublic :: Bool
$sel:isPublic:AnalyzedResource' :: AnalyzedResource -> Bool
isPublic} -> Bool
isPublic) (\s :: AnalyzedResource
s@AnalyzedResource' {} Bool
a -> AnalyzedResource
s {$sel:isPublic:AnalyzedResource' :: Bool
isPublic = Bool
a} :: AnalyzedResource)

-- | The Amazon Web Services account ID that owns the resource.
analyzedResource_resourceOwnerAccount :: Lens.Lens' AnalyzedResource Prelude.Text
analyzedResource_resourceOwnerAccount :: Lens' AnalyzedResource Text
analyzedResource_resourceOwnerAccount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AnalyzedResource' {Text
resourceOwnerAccount :: Text
$sel:resourceOwnerAccount:AnalyzedResource' :: AnalyzedResource -> Text
resourceOwnerAccount} -> Text
resourceOwnerAccount) (\s :: AnalyzedResource
s@AnalyzedResource' {} Text
a -> AnalyzedResource
s {$sel:resourceOwnerAccount:AnalyzedResource' :: Text
resourceOwnerAccount = Text
a} :: AnalyzedResource)

instance Data.FromJSON AnalyzedResource where
  parseJSON :: Value -> Parser AnalyzedResource
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"AnalyzedResource"
      ( \Object
x ->
          Maybe [Text]
-> Maybe Text
-> Maybe [Text]
-> Maybe FindingStatus
-> Text
-> ResourceType
-> ISO8601
-> ISO8601
-> ISO8601
-> Bool
-> Text
-> AnalyzedResource
AnalyzedResource'
            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
"actions" 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
"error")
            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
"sharedVia" 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
"status")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"resourceArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"resourceType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser 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 a
Data..: Key
"analyzedAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"updatedAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"isPublic")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"resourceOwnerAccount")
      )

instance Prelude.Hashable AnalyzedResource where
  hashWithSalt :: Int -> AnalyzedResource -> Int
hashWithSalt Int
_salt AnalyzedResource' {Bool
Maybe [Text]
Maybe Text
Maybe FindingStatus
Text
ISO8601
ResourceType
resourceOwnerAccount :: Text
isPublic :: Bool
updatedAt :: ISO8601
analyzedAt :: ISO8601
createdAt :: ISO8601
resourceType :: ResourceType
resourceArn :: Text
status :: Maybe FindingStatus
sharedVia :: Maybe [Text]
error :: Maybe Text
actions :: Maybe [Text]
$sel:resourceOwnerAccount:AnalyzedResource' :: AnalyzedResource -> Text
$sel:isPublic:AnalyzedResource' :: AnalyzedResource -> Bool
$sel:updatedAt:AnalyzedResource' :: AnalyzedResource -> ISO8601
$sel:analyzedAt:AnalyzedResource' :: AnalyzedResource -> ISO8601
$sel:createdAt:AnalyzedResource' :: AnalyzedResource -> ISO8601
$sel:resourceType:AnalyzedResource' :: AnalyzedResource -> ResourceType
$sel:resourceArn:AnalyzedResource' :: AnalyzedResource -> Text
$sel:status:AnalyzedResource' :: AnalyzedResource -> Maybe FindingStatus
$sel:sharedVia:AnalyzedResource' :: AnalyzedResource -> Maybe [Text]
$sel:error:AnalyzedResource' :: AnalyzedResource -> Maybe Text
$sel:actions:AnalyzedResource' :: AnalyzedResource -> Maybe [Text]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
actions
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
error
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
sharedVia
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe FindingStatus
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
resourceArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ResourceType
resourceType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ISO8601
createdAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ISO8601
analyzedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ISO8601
updatedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Bool
isPublic
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
resourceOwnerAccount

instance Prelude.NFData AnalyzedResource where
  rnf :: AnalyzedResource -> ()
rnf AnalyzedResource' {Bool
Maybe [Text]
Maybe Text
Maybe FindingStatus
Text
ISO8601
ResourceType
resourceOwnerAccount :: Text
isPublic :: Bool
updatedAt :: ISO8601
analyzedAt :: ISO8601
createdAt :: ISO8601
resourceType :: ResourceType
resourceArn :: Text
status :: Maybe FindingStatus
sharedVia :: Maybe [Text]
error :: Maybe Text
actions :: Maybe [Text]
$sel:resourceOwnerAccount:AnalyzedResource' :: AnalyzedResource -> Text
$sel:isPublic:AnalyzedResource' :: AnalyzedResource -> Bool
$sel:updatedAt:AnalyzedResource' :: AnalyzedResource -> ISO8601
$sel:analyzedAt:AnalyzedResource' :: AnalyzedResource -> ISO8601
$sel:createdAt:AnalyzedResource' :: AnalyzedResource -> ISO8601
$sel:resourceType:AnalyzedResource' :: AnalyzedResource -> ResourceType
$sel:resourceArn:AnalyzedResource' :: AnalyzedResource -> Text
$sel:status:AnalyzedResource' :: AnalyzedResource -> Maybe FindingStatus
$sel:sharedVia:AnalyzedResource' :: AnalyzedResource -> Maybe [Text]
$sel:error:AnalyzedResource' :: AnalyzedResource -> Maybe Text
$sel:actions:AnalyzedResource' :: AnalyzedResource -> Maybe [Text]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
actions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
error
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
sharedVia
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe FindingStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
resourceArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ResourceType
resourceType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ISO8601
createdAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ISO8601
analyzedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ISO8601
updatedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Bool
isPublic
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
resourceOwnerAccount