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

-- | Describes an invitation for an Amazon Web Services account to join a
-- resource share.
--
-- /See:/ 'newResourceShareInvitation' smart constructor.
data ResourceShareInvitation = ResourceShareInvitation'
  { -- | The date and time when the invitation was sent.
    ResourceShareInvitation -> Maybe POSIX
invitationTimestamp :: Prelude.Maybe Data.POSIX,
    -- | The ID of the Amazon Web Services account that received the invitation.
    ResourceShareInvitation -> Maybe Text
receiverAccountId :: Prelude.Maybe Prelude.Text,
    -- | The
    -- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
    -- of the IAM user or role that received the invitation.
    ResourceShareInvitation -> Maybe Text
receiverArn :: Prelude.Maybe Prelude.Text,
    -- | The
    -- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
    -- of the resource share
    ResourceShareInvitation -> Maybe Text
resourceShareArn :: Prelude.Maybe Prelude.Text,
    -- | To view the resources associated with a pending resource share
    -- invitation, use ListPendingInvitationResources.
    ResourceShareInvitation -> Maybe [ResourceShareAssociation]
resourceShareAssociations :: Prelude.Maybe [ResourceShareAssociation],
    -- | The
    -- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
    -- of the invitation.
    ResourceShareInvitation -> Maybe Text
resourceShareInvitationArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the resource share.
    ResourceShareInvitation -> Maybe Text
resourceShareName :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Amazon Web Services account that sent the invitation.
    ResourceShareInvitation -> Maybe Text
senderAccountId :: Prelude.Maybe Prelude.Text,
    -- | The current status of the invitation.
    ResourceShareInvitation -> Maybe ResourceShareInvitationStatus
status :: Prelude.Maybe ResourceShareInvitationStatus
  }
  deriving (ResourceShareInvitation -> ResourceShareInvitation -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResourceShareInvitation -> ResourceShareInvitation -> Bool
$c/= :: ResourceShareInvitation -> ResourceShareInvitation -> Bool
== :: ResourceShareInvitation -> ResourceShareInvitation -> Bool
$c== :: ResourceShareInvitation -> ResourceShareInvitation -> Bool
Prelude.Eq, ReadPrec [ResourceShareInvitation]
ReadPrec ResourceShareInvitation
Int -> ReadS ResourceShareInvitation
ReadS [ResourceShareInvitation]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResourceShareInvitation]
$creadListPrec :: ReadPrec [ResourceShareInvitation]
readPrec :: ReadPrec ResourceShareInvitation
$creadPrec :: ReadPrec ResourceShareInvitation
readList :: ReadS [ResourceShareInvitation]
$creadList :: ReadS [ResourceShareInvitation]
readsPrec :: Int -> ReadS ResourceShareInvitation
$creadsPrec :: Int -> ReadS ResourceShareInvitation
Prelude.Read, Int -> ResourceShareInvitation -> ShowS
[ResourceShareInvitation] -> ShowS
ResourceShareInvitation -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResourceShareInvitation] -> ShowS
$cshowList :: [ResourceShareInvitation] -> ShowS
show :: ResourceShareInvitation -> String
$cshow :: ResourceShareInvitation -> String
showsPrec :: Int -> ResourceShareInvitation -> ShowS
$cshowsPrec :: Int -> ResourceShareInvitation -> ShowS
Prelude.Show, forall x. Rep ResourceShareInvitation x -> ResourceShareInvitation
forall x. ResourceShareInvitation -> Rep ResourceShareInvitation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ResourceShareInvitation x -> ResourceShareInvitation
$cfrom :: forall x. ResourceShareInvitation -> Rep ResourceShareInvitation x
Prelude.Generic)

-- |
-- Create a value of 'ResourceShareInvitation' 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:
--
-- 'invitationTimestamp', 'resourceShareInvitation_invitationTimestamp' - The date and time when the invitation was sent.
--
-- 'receiverAccountId', 'resourceShareInvitation_receiverAccountId' - The ID of the Amazon Web Services account that received the invitation.
--
-- 'receiverArn', 'resourceShareInvitation_receiverArn' - The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
-- of the IAM user or role that received the invitation.
--
-- 'resourceShareArn', 'resourceShareInvitation_resourceShareArn' - The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
-- of the resource share
--
-- 'resourceShareAssociations', 'resourceShareInvitation_resourceShareAssociations' - To view the resources associated with a pending resource share
-- invitation, use ListPendingInvitationResources.
--
-- 'resourceShareInvitationArn', 'resourceShareInvitation_resourceShareInvitationArn' - The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
-- of the invitation.
--
-- 'resourceShareName', 'resourceShareInvitation_resourceShareName' - The name of the resource share.
--
-- 'senderAccountId', 'resourceShareInvitation_senderAccountId' - The ID of the Amazon Web Services account that sent the invitation.
--
-- 'status', 'resourceShareInvitation_status' - The current status of the invitation.
newResourceShareInvitation ::
  ResourceShareInvitation
newResourceShareInvitation :: ResourceShareInvitation
newResourceShareInvitation =
  ResourceShareInvitation'
    { $sel:invitationTimestamp:ResourceShareInvitation' :: Maybe POSIX
invitationTimestamp =
        forall a. Maybe a
Prelude.Nothing,
      $sel:receiverAccountId:ResourceShareInvitation' :: Maybe Text
receiverAccountId = forall a. Maybe a
Prelude.Nothing,
      $sel:receiverArn:ResourceShareInvitation' :: Maybe Text
receiverArn = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceShareArn:ResourceShareInvitation' :: Maybe Text
resourceShareArn = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceShareAssociations:ResourceShareInvitation' :: Maybe [ResourceShareAssociation]
resourceShareAssociations = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceShareInvitationArn:ResourceShareInvitation' :: Maybe Text
resourceShareInvitationArn = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceShareName:ResourceShareInvitation' :: Maybe Text
resourceShareName = forall a. Maybe a
Prelude.Nothing,
      $sel:senderAccountId:ResourceShareInvitation' :: Maybe Text
senderAccountId = forall a. Maybe a
Prelude.Nothing,
      $sel:status:ResourceShareInvitation' :: Maybe ResourceShareInvitationStatus
status = forall a. Maybe a
Prelude.Nothing
    }

-- | The date and time when the invitation was sent.
resourceShareInvitation_invitationTimestamp :: Lens.Lens' ResourceShareInvitation (Prelude.Maybe Prelude.UTCTime)
resourceShareInvitation_invitationTimestamp :: Lens' ResourceShareInvitation (Maybe UTCTime)
resourceShareInvitation_invitationTimestamp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareInvitation' {Maybe POSIX
invitationTimestamp :: Maybe POSIX
$sel:invitationTimestamp:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe POSIX
invitationTimestamp} -> Maybe POSIX
invitationTimestamp) (\s :: ResourceShareInvitation
s@ResourceShareInvitation' {} Maybe POSIX
a -> ResourceShareInvitation
s {$sel:invitationTimestamp:ResourceShareInvitation' :: Maybe POSIX
invitationTimestamp = Maybe POSIX
a} :: ResourceShareInvitation) 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 ID of the Amazon Web Services account that received the invitation.
resourceShareInvitation_receiverAccountId :: Lens.Lens' ResourceShareInvitation (Prelude.Maybe Prelude.Text)
resourceShareInvitation_receiverAccountId :: Lens' ResourceShareInvitation (Maybe Text)
resourceShareInvitation_receiverAccountId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareInvitation' {Maybe Text
receiverAccountId :: Maybe Text
$sel:receiverAccountId:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
receiverAccountId} -> Maybe Text
receiverAccountId) (\s :: ResourceShareInvitation
s@ResourceShareInvitation' {} Maybe Text
a -> ResourceShareInvitation
s {$sel:receiverAccountId:ResourceShareInvitation' :: Maybe Text
receiverAccountId = Maybe Text
a} :: ResourceShareInvitation)

-- | The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
-- of the IAM user or role that received the invitation.
resourceShareInvitation_receiverArn :: Lens.Lens' ResourceShareInvitation (Prelude.Maybe Prelude.Text)
resourceShareInvitation_receiverArn :: Lens' ResourceShareInvitation (Maybe Text)
resourceShareInvitation_receiverArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareInvitation' {Maybe Text
receiverArn :: Maybe Text
$sel:receiverArn:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
receiverArn} -> Maybe Text
receiverArn) (\s :: ResourceShareInvitation
s@ResourceShareInvitation' {} Maybe Text
a -> ResourceShareInvitation
s {$sel:receiverArn:ResourceShareInvitation' :: Maybe Text
receiverArn = Maybe Text
a} :: ResourceShareInvitation)

-- | The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
-- of the resource share
resourceShareInvitation_resourceShareArn :: Lens.Lens' ResourceShareInvitation (Prelude.Maybe Prelude.Text)
resourceShareInvitation_resourceShareArn :: Lens' ResourceShareInvitation (Maybe Text)
resourceShareInvitation_resourceShareArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareInvitation' {Maybe Text
resourceShareArn :: Maybe Text
$sel:resourceShareArn:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
resourceShareArn} -> Maybe Text
resourceShareArn) (\s :: ResourceShareInvitation
s@ResourceShareInvitation' {} Maybe Text
a -> ResourceShareInvitation
s {$sel:resourceShareArn:ResourceShareInvitation' :: Maybe Text
resourceShareArn = Maybe Text
a} :: ResourceShareInvitation)

-- | To view the resources associated with a pending resource share
-- invitation, use ListPendingInvitationResources.
resourceShareInvitation_resourceShareAssociations :: Lens.Lens' ResourceShareInvitation (Prelude.Maybe [ResourceShareAssociation])
resourceShareInvitation_resourceShareAssociations :: Lens' ResourceShareInvitation (Maybe [ResourceShareAssociation])
resourceShareInvitation_resourceShareAssociations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareInvitation' {Maybe [ResourceShareAssociation]
resourceShareAssociations :: Maybe [ResourceShareAssociation]
$sel:resourceShareAssociations:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe [ResourceShareAssociation]
resourceShareAssociations} -> Maybe [ResourceShareAssociation]
resourceShareAssociations) (\s :: ResourceShareInvitation
s@ResourceShareInvitation' {} Maybe [ResourceShareAssociation]
a -> ResourceShareInvitation
s {$sel:resourceShareAssociations:ResourceShareInvitation' :: Maybe [ResourceShareAssociation]
resourceShareAssociations = Maybe [ResourceShareAssociation]
a} :: ResourceShareInvitation) 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
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
-- of the invitation.
resourceShareInvitation_resourceShareInvitationArn :: Lens.Lens' ResourceShareInvitation (Prelude.Maybe Prelude.Text)
resourceShareInvitation_resourceShareInvitationArn :: Lens' ResourceShareInvitation (Maybe Text)
resourceShareInvitation_resourceShareInvitationArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareInvitation' {Maybe Text
resourceShareInvitationArn :: Maybe Text
$sel:resourceShareInvitationArn:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
resourceShareInvitationArn} -> Maybe Text
resourceShareInvitationArn) (\s :: ResourceShareInvitation
s@ResourceShareInvitation' {} Maybe Text
a -> ResourceShareInvitation
s {$sel:resourceShareInvitationArn:ResourceShareInvitation' :: Maybe Text
resourceShareInvitationArn = Maybe Text
a} :: ResourceShareInvitation)

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

-- | The ID of the Amazon Web Services account that sent the invitation.
resourceShareInvitation_senderAccountId :: Lens.Lens' ResourceShareInvitation (Prelude.Maybe Prelude.Text)
resourceShareInvitation_senderAccountId :: Lens' ResourceShareInvitation (Maybe Text)
resourceShareInvitation_senderAccountId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareInvitation' {Maybe Text
senderAccountId :: Maybe Text
$sel:senderAccountId:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
senderAccountId} -> Maybe Text
senderAccountId) (\s :: ResourceShareInvitation
s@ResourceShareInvitation' {} Maybe Text
a -> ResourceShareInvitation
s {$sel:senderAccountId:ResourceShareInvitation' :: Maybe Text
senderAccountId = Maybe Text
a} :: ResourceShareInvitation)

-- | The current status of the invitation.
resourceShareInvitation_status :: Lens.Lens' ResourceShareInvitation (Prelude.Maybe ResourceShareInvitationStatus)
resourceShareInvitation_status :: Lens' ResourceShareInvitation (Maybe ResourceShareInvitationStatus)
resourceShareInvitation_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceShareInvitation' {Maybe ResourceShareInvitationStatus
status :: Maybe ResourceShareInvitationStatus
$sel:status:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe ResourceShareInvitationStatus
status} -> Maybe ResourceShareInvitationStatus
status) (\s :: ResourceShareInvitation
s@ResourceShareInvitation' {} Maybe ResourceShareInvitationStatus
a -> ResourceShareInvitation
s {$sel:status:ResourceShareInvitation' :: Maybe ResourceShareInvitationStatus
status = Maybe ResourceShareInvitationStatus
a} :: ResourceShareInvitation)

instance Data.FromJSON ResourceShareInvitation where
  parseJSON :: Value -> Parser ResourceShareInvitation
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ResourceShareInvitation"
      ( \Object
x ->
          Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [ResourceShareAssociation]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ResourceShareInvitationStatus
-> ResourceShareInvitation
ResourceShareInvitation'
            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
"invitationTimestamp")
            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
"receiverAccountId")
            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
"receiverArn")
            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
"resourceShareAssociations"
                            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
"resourceShareInvitationArn")
            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
"senderAccountId")
            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")
      )

instance Prelude.Hashable ResourceShareInvitation where
  hashWithSalt :: Int -> ResourceShareInvitation -> Int
hashWithSalt Int
_salt ResourceShareInvitation' {Maybe [ResourceShareAssociation]
Maybe Text
Maybe POSIX
Maybe ResourceShareInvitationStatus
status :: Maybe ResourceShareInvitationStatus
senderAccountId :: Maybe Text
resourceShareName :: Maybe Text
resourceShareInvitationArn :: Maybe Text
resourceShareAssociations :: Maybe [ResourceShareAssociation]
resourceShareArn :: Maybe Text
receiverArn :: Maybe Text
receiverAccountId :: Maybe Text
invitationTimestamp :: Maybe POSIX
$sel:status:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe ResourceShareInvitationStatus
$sel:senderAccountId:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
$sel:resourceShareName:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
$sel:resourceShareInvitationArn:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
$sel:resourceShareAssociations:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe [ResourceShareAssociation]
$sel:resourceShareArn:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
$sel:receiverArn:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
$sel:receiverAccountId:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
$sel:invitationTimestamp:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe POSIX
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
invitationTimestamp
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
receiverAccountId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
receiverArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceShareArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ResourceShareAssociation]
resourceShareAssociations
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceShareInvitationArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceShareName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
senderAccountId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResourceShareInvitationStatus
status

instance Prelude.NFData ResourceShareInvitation where
  rnf :: ResourceShareInvitation -> ()
rnf ResourceShareInvitation' {Maybe [ResourceShareAssociation]
Maybe Text
Maybe POSIX
Maybe ResourceShareInvitationStatus
status :: Maybe ResourceShareInvitationStatus
senderAccountId :: Maybe Text
resourceShareName :: Maybe Text
resourceShareInvitationArn :: Maybe Text
resourceShareAssociations :: Maybe [ResourceShareAssociation]
resourceShareArn :: Maybe Text
receiverArn :: Maybe Text
receiverAccountId :: Maybe Text
invitationTimestamp :: Maybe POSIX
$sel:status:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe ResourceShareInvitationStatus
$sel:senderAccountId:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
$sel:resourceShareName:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
$sel:resourceShareInvitationArn:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
$sel:resourceShareAssociations:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe [ResourceShareAssociation]
$sel:resourceShareArn:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
$sel:receiverArn:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
$sel:receiverAccountId:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe Text
$sel:invitationTimestamp:ResourceShareInvitation' :: ResourceShareInvitation -> Maybe POSIX
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
invitationTimestamp
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
receiverAccountId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
receiverArn
      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 [ResourceShareAssociation]
resourceShareAssociations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceShareInvitationArn
      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 Text
senderAccountId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ResourceShareInvitationStatus
status