{-# 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.RAM.Types.ResourceShareAssociation
-- 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.RAM.Types.ResourceShareAssociation 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
import Amazonka.RAM.Types.ResourceShareAssociationStatus
import Amazonka.RAM.Types.ResourceShareAssociationType

-- | Describes an association with a resource share and either a principal or
-- a resource.
--
-- /See:/ 'newResourceShareAssociation' smart constructor.
data ResourceShareAssociation = ResourceShareAssociation'
  { -- | The associated entity. This can be either of the following:
    --
    -- -   For a resource association, this is the
    --     <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
    --     of the resource.
    --
    -- -   For principal associations, this is one of the following:
    --
    --     -   The ID of an Amazon Web Services account
    --
    --     -   The
    --         <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
    --         of an organization in Organizations
    --
    --     -   The ARN of an organizational unit (OU) in Organizations
    --
    --     -   The ARN of an IAM role
    --
    --     -   The ARN of an IAM user
    ResourceShareAssociation -> Maybe Text
associatedEntity :: Prelude.Maybe Prelude.Text,
    -- | The type of entity included in this association.
    ResourceShareAssociation -> Maybe ResourceShareAssociationType
associationType :: Prelude.Maybe ResourceShareAssociationType,
    -- | The date and time when the association was created.
    ResourceShareAssociation -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    -- | Indicates whether the principal belongs to the same organization in
    -- Organizations as the Amazon Web Services account that owns the resource
    -- share.
    ResourceShareAssociation -> Maybe Bool
external :: Prelude.Maybe Prelude.Bool,
    -- | The date and time when the association was last updated.
    ResourceShareAssociation -> Maybe POSIX
lastUpdatedTime :: Prelude.Maybe Data.POSIX,
    -- | The
    -- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
    -- of the resource share.
    ResourceShareAssociation -> Maybe Text
resourceShareArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the resource share.
    ResourceShareAssociation -> Maybe Text
resourceShareName :: Prelude.Maybe Prelude.Text,
    -- | The current status of the association.
    ResourceShareAssociation -> Maybe ResourceShareAssociationStatus
status :: Prelude.Maybe ResourceShareAssociationStatus,
    -- | A message about the status of the association.
    ResourceShareAssociation -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text
  }
  deriving (ResourceShareAssociation -> ResourceShareAssociation -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResourceShareAssociation -> ResourceShareAssociation -> Bool
$c/= :: ResourceShareAssociation -> ResourceShareAssociation -> Bool
== :: ResourceShareAssociation -> ResourceShareAssociation -> Bool
$c== :: ResourceShareAssociation -> ResourceShareAssociation -> Bool
Prelude.Eq, ReadPrec [ResourceShareAssociation]
ReadPrec ResourceShareAssociation
Int -> ReadS ResourceShareAssociation
ReadS [ResourceShareAssociation]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResourceShareAssociation]
$creadListPrec :: ReadPrec [ResourceShareAssociation]
readPrec :: ReadPrec ResourceShareAssociation
$creadPrec :: ReadPrec ResourceShareAssociation
readList :: ReadS [ResourceShareAssociation]
$creadList :: ReadS [ResourceShareAssociation]
readsPrec :: Int -> ReadS ResourceShareAssociation
$creadsPrec :: Int -> ReadS ResourceShareAssociation
Prelude.Read, Int -> ResourceShareAssociation -> ShowS
[ResourceShareAssociation] -> ShowS
ResourceShareAssociation -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResourceShareAssociation] -> ShowS
$cshowList :: [ResourceShareAssociation] -> ShowS
show :: ResourceShareAssociation -> String
$cshow :: ResourceShareAssociation -> String
showsPrec :: Int -> ResourceShareAssociation -> ShowS
$cshowsPrec :: Int -> ResourceShareAssociation -> ShowS
Prelude.Show, forall x.
Rep ResourceShareAssociation x -> ResourceShareAssociation
forall x.
ResourceShareAssociation -> Rep ResourceShareAssociation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ResourceShareAssociation x -> ResourceShareAssociation
$cfrom :: forall x.
ResourceShareAssociation -> Rep ResourceShareAssociation x
Prelude.Generic)

-- |
-- Create a value of 'ResourceShareAssociation' 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:
--
-- 'associatedEntity', 'resourceShareAssociation_associatedEntity' - The associated entity. This can be either of the following:
--
-- -   For a resource association, this is the
--     <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
--     of the resource.
--
-- -   For principal associations, this is one of the following:
--
--     -   The ID of an Amazon Web Services account
--
--     -   The
--         <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
--         of an organization in Organizations
--
--     -   The ARN of an organizational unit (OU) in Organizations
--
--     -   The ARN of an IAM role
--
--     -   The ARN of an IAM user
--
-- 'associationType', 'resourceShareAssociation_associationType' - The type of entity included in this association.
--
-- 'creationTime', 'resourceShareAssociation_creationTime' - The date and time when the association was created.
--
-- 'external', 'resourceShareAssociation_external' - Indicates whether the principal belongs to the same organization in
-- Organizations as the Amazon Web Services account that owns the resource
-- share.
--
-- 'lastUpdatedTime', 'resourceShareAssociation_lastUpdatedTime' - The date and time when the association was last updated.
--
-- 'resourceShareArn', 'resourceShareAssociation_resourceShareArn' - The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
-- of the resource share.
--
-- 'resourceShareName', 'resourceShareAssociation_resourceShareName' - The name of the resource share.
--
-- 'status', 'resourceShareAssociation_status' - The current status of the association.
--
-- 'statusMessage', 'resourceShareAssociation_statusMessage' - A message about the status of the association.
newResourceShareAssociation ::
  ResourceShareAssociation
newResourceShareAssociation :: ResourceShareAssociation
newResourceShareAssociation =
  ResourceShareAssociation'
    { $sel:associatedEntity:ResourceShareAssociation' :: Maybe Text
associatedEntity =
        forall a. Maybe a
Prelude.Nothing,
      $sel:associationType:ResourceShareAssociation' :: Maybe ResourceShareAssociationType
associationType = forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:ResourceShareAssociation' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:external:ResourceShareAssociation' :: Maybe Bool
external = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedTime:ResourceShareAssociation' :: Maybe POSIX
lastUpdatedTime = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceShareArn:ResourceShareAssociation' :: Maybe Text
resourceShareArn = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceShareName:ResourceShareAssociation' :: Maybe Text
resourceShareName = forall a. Maybe a
Prelude.Nothing,
      $sel:status:ResourceShareAssociation' :: Maybe ResourceShareAssociationStatus
status = forall a. Maybe a
Prelude.Nothing,
      $sel:statusMessage:ResourceShareAssociation' :: Maybe Text
statusMessage = forall a. Maybe a
Prelude.Nothing
    }

-- | The associated entity. This can be either of the following:
--
-- -   For a resource association, this is the
--     <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
--     of the resource.
--
-- -   For principal associations, this is one of the following:
--
--     -   The ID of an Amazon Web Services account
--
--     -   The
--         <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
--         of an organization in Organizations
--
--     -   The ARN of an organizational unit (OU) in Organizations
--
--     -   The ARN of an IAM role
--
--     -   The ARN of an IAM user
resourceShareAssociation_associatedEntity :: Lens.Lens' ResourceShareAssociation (Prelude.Maybe Prelude.Text)
resourceShareAssociation_associatedEntity :: Lens' ResourceShareAssociation (Maybe Text)
resourceShareAssociation_associatedEntity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareAssociation' {Maybe Text
associatedEntity :: Maybe Text
$sel:associatedEntity:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe Text
associatedEntity} -> Maybe Text
associatedEntity) (\s :: ResourceShareAssociation
s@ResourceShareAssociation' {} Maybe Text
a -> ResourceShareAssociation
s {$sel:associatedEntity:ResourceShareAssociation' :: Maybe Text
associatedEntity = Maybe Text
a} :: ResourceShareAssociation)

-- | The type of entity included in this association.
resourceShareAssociation_associationType :: Lens.Lens' ResourceShareAssociation (Prelude.Maybe ResourceShareAssociationType)
resourceShareAssociation_associationType :: Lens' ResourceShareAssociation (Maybe ResourceShareAssociationType)
resourceShareAssociation_associationType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareAssociation' {Maybe ResourceShareAssociationType
associationType :: Maybe ResourceShareAssociationType
$sel:associationType:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe ResourceShareAssociationType
associationType} -> Maybe ResourceShareAssociationType
associationType) (\s :: ResourceShareAssociation
s@ResourceShareAssociation' {} Maybe ResourceShareAssociationType
a -> ResourceShareAssociation
s {$sel:associationType:ResourceShareAssociation' :: Maybe ResourceShareAssociationType
associationType = Maybe ResourceShareAssociationType
a} :: ResourceShareAssociation)

-- | The date and time when the association was created.
resourceShareAssociation_creationTime :: Lens.Lens' ResourceShareAssociation (Prelude.Maybe Prelude.UTCTime)
resourceShareAssociation_creationTime :: Lens' ResourceShareAssociation (Maybe UTCTime)
resourceShareAssociation_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareAssociation' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: ResourceShareAssociation
s@ResourceShareAssociation' {} Maybe POSIX
a -> ResourceShareAssociation
s {$sel:creationTime:ResourceShareAssociation' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: ResourceShareAssociation) 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

-- | Indicates whether the principal belongs to the same organization in
-- Organizations as the Amazon Web Services account that owns the resource
-- share.
resourceShareAssociation_external :: Lens.Lens' ResourceShareAssociation (Prelude.Maybe Prelude.Bool)
resourceShareAssociation_external :: Lens' ResourceShareAssociation (Maybe Bool)
resourceShareAssociation_external = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareAssociation' {Maybe Bool
external :: Maybe Bool
$sel:external:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe Bool
external} -> Maybe Bool
external) (\s :: ResourceShareAssociation
s@ResourceShareAssociation' {} Maybe Bool
a -> ResourceShareAssociation
s {$sel:external:ResourceShareAssociation' :: Maybe Bool
external = Maybe Bool
a} :: ResourceShareAssociation)

-- | The date and time when the association was last updated.
resourceShareAssociation_lastUpdatedTime :: Lens.Lens' ResourceShareAssociation (Prelude.Maybe Prelude.UTCTime)
resourceShareAssociation_lastUpdatedTime :: Lens' ResourceShareAssociation (Maybe UTCTime)
resourceShareAssociation_lastUpdatedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareAssociation' {Maybe POSIX
lastUpdatedTime :: Maybe POSIX
$sel:lastUpdatedTime:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe POSIX
lastUpdatedTime} -> Maybe POSIX
lastUpdatedTime) (\s :: ResourceShareAssociation
s@ResourceShareAssociation' {} Maybe POSIX
a -> ResourceShareAssociation
s {$sel:lastUpdatedTime:ResourceShareAssociation' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
a} :: ResourceShareAssociation) 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
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
-- of the resource share.
resourceShareAssociation_resourceShareArn :: Lens.Lens' ResourceShareAssociation (Prelude.Maybe Prelude.Text)
resourceShareAssociation_resourceShareArn :: Lens' ResourceShareAssociation (Maybe Text)
resourceShareAssociation_resourceShareArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareAssociation' {Maybe Text
resourceShareArn :: Maybe Text
$sel:resourceShareArn:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe Text
resourceShareArn} -> Maybe Text
resourceShareArn) (\s :: ResourceShareAssociation
s@ResourceShareAssociation' {} Maybe Text
a -> ResourceShareAssociation
s {$sel:resourceShareArn:ResourceShareAssociation' :: Maybe Text
resourceShareArn = Maybe Text
a} :: ResourceShareAssociation)

-- | The name of the resource share.
resourceShareAssociation_resourceShareName :: Lens.Lens' ResourceShareAssociation (Prelude.Maybe Prelude.Text)
resourceShareAssociation_resourceShareName :: Lens' ResourceShareAssociation (Maybe Text)
resourceShareAssociation_resourceShareName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareAssociation' {Maybe Text
resourceShareName :: Maybe Text
$sel:resourceShareName:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe Text
resourceShareName} -> Maybe Text
resourceShareName) (\s :: ResourceShareAssociation
s@ResourceShareAssociation' {} Maybe Text
a -> ResourceShareAssociation
s {$sel:resourceShareName:ResourceShareAssociation' :: Maybe Text
resourceShareName = Maybe Text
a} :: ResourceShareAssociation)

-- | The current status of the association.
resourceShareAssociation_status :: Lens.Lens' ResourceShareAssociation (Prelude.Maybe ResourceShareAssociationStatus)
resourceShareAssociation_status :: Lens'
  ResourceShareAssociation (Maybe ResourceShareAssociationStatus)
resourceShareAssociation_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareAssociation' {Maybe ResourceShareAssociationStatus
status :: Maybe ResourceShareAssociationStatus
$sel:status:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe ResourceShareAssociationStatus
status} -> Maybe ResourceShareAssociationStatus
status) (\s :: ResourceShareAssociation
s@ResourceShareAssociation' {} Maybe ResourceShareAssociationStatus
a -> ResourceShareAssociation
s {$sel:status:ResourceShareAssociation' :: Maybe ResourceShareAssociationStatus
status = Maybe ResourceShareAssociationStatus
a} :: ResourceShareAssociation)

-- | A message about the status of the association.
resourceShareAssociation_statusMessage :: Lens.Lens' ResourceShareAssociation (Prelude.Maybe Prelude.Text)
resourceShareAssociation_statusMessage :: Lens' ResourceShareAssociation (Maybe Text)
resourceShareAssociation_statusMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareAssociation' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: ResourceShareAssociation
s@ResourceShareAssociation' {} Maybe Text
a -> ResourceShareAssociation
s {$sel:statusMessage:ResourceShareAssociation' :: Maybe Text
statusMessage = Maybe Text
a} :: ResourceShareAssociation)

instance Data.FromJSON ResourceShareAssociation where
  parseJSON :: Value -> Parser ResourceShareAssociation
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ResourceShareAssociation"
      ( \Object
x ->
          Maybe Text
-> Maybe ResourceShareAssociationType
-> Maybe POSIX
-> Maybe Bool
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ResourceShareAssociationStatus
-> Maybe Text
-> ResourceShareAssociation
ResourceShareAssociation'
            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
"associatedEntity")
            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
"associationType")
            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
"creationTime")
            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
"external")
            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
"lastUpdatedTime")
            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
"resourceShareArn")
            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
"resourceShareName")
            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 (Maybe a)
Data..:? Key
"statusMessage")
      )

instance Prelude.Hashable ResourceShareAssociation where
  hashWithSalt :: Int -> ResourceShareAssociation -> Int
hashWithSalt Int
_salt ResourceShareAssociation' {Maybe Bool
Maybe Text
Maybe POSIX
Maybe ResourceShareAssociationStatus
Maybe ResourceShareAssociationType
statusMessage :: Maybe Text
status :: Maybe ResourceShareAssociationStatus
resourceShareName :: Maybe Text
resourceShareArn :: Maybe Text
lastUpdatedTime :: Maybe POSIX
external :: Maybe Bool
creationTime :: Maybe POSIX
associationType :: Maybe ResourceShareAssociationType
associatedEntity :: Maybe Text
$sel:statusMessage:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe Text
$sel:status:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe ResourceShareAssociationStatus
$sel:resourceShareName:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe Text
$sel:resourceShareArn:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe Text
$sel:lastUpdatedTime:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe POSIX
$sel:external:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe Bool
$sel:creationTime:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe POSIX
$sel:associationType:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe ResourceShareAssociationType
$sel:associatedEntity:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
associatedEntity
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResourceShareAssociationType
associationType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
external
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdatedTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceShareArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceShareName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResourceShareAssociationStatus
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
statusMessage

instance Prelude.NFData ResourceShareAssociation where
  rnf :: ResourceShareAssociation -> ()
rnf ResourceShareAssociation' {Maybe Bool
Maybe Text
Maybe POSIX
Maybe ResourceShareAssociationStatus
Maybe ResourceShareAssociationType
statusMessage :: Maybe Text
status :: Maybe ResourceShareAssociationStatus
resourceShareName :: Maybe Text
resourceShareArn :: Maybe Text
lastUpdatedTime :: Maybe POSIX
external :: Maybe Bool
creationTime :: Maybe POSIX
associationType :: Maybe ResourceShareAssociationType
associatedEntity :: Maybe Text
$sel:statusMessage:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe Text
$sel:status:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe ResourceShareAssociationStatus
$sel:resourceShareName:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe Text
$sel:resourceShareArn:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe Text
$sel:lastUpdatedTime:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe POSIX
$sel:external:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe Bool
$sel:creationTime:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe POSIX
$sel:associationType:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe ResourceShareAssociationType
$sel:associatedEntity:ResourceShareAssociation' :: ResourceShareAssociation -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
associatedEntity
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ResourceShareAssociationType
associationType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
external
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceShareArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceShareName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ResourceShareAssociationStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
statusMessage