{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# 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.DisassociateResourceSharePermission
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Disassociates an RAM permission from a resource share.
module Amazonka.RAM.DisassociateResourceSharePermission
  ( -- * Creating a Request
    DisassociateResourceSharePermission (..),
    newDisassociateResourceSharePermission,

    -- * Request Lenses
    disassociateResourceSharePermission_clientToken,
    disassociateResourceSharePermission_resourceShareArn,
    disassociateResourceSharePermission_permissionArn,

    -- * Destructuring the Response
    DisassociateResourceSharePermissionResponse (..),
    newDisassociateResourceSharePermissionResponse,

    -- * Response Lenses
    disassociateResourceSharePermissionResponse_clientToken,
    disassociateResourceSharePermissionResponse_returnValue,
    disassociateResourceSharePermissionResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RAM.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDisassociateResourceSharePermission' smart constructor.
data DisassociateResourceSharePermission = DisassociateResourceSharePermission'
  { -- | A unique, case-sensitive identifier that you provide to ensure the
    -- idempotency of the request.
    DisassociateResourceSharePermission -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the resource share.
    DisassociateResourceSharePermission -> Text
resourceShareArn :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the permission to disassociate from
    -- the resource share.
    DisassociateResourceSharePermission -> Text
permissionArn :: Prelude.Text
  }
  deriving (DisassociateResourceSharePermission
-> DisassociateResourceSharePermission -> Bool
(DisassociateResourceSharePermission
 -> DisassociateResourceSharePermission -> Bool)
-> (DisassociateResourceSharePermission
    -> DisassociateResourceSharePermission -> Bool)
-> Eq DisassociateResourceSharePermission
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateResourceSharePermission
-> DisassociateResourceSharePermission -> Bool
$c/= :: DisassociateResourceSharePermission
-> DisassociateResourceSharePermission -> Bool
== :: DisassociateResourceSharePermission
-> DisassociateResourceSharePermission -> Bool
$c== :: DisassociateResourceSharePermission
-> DisassociateResourceSharePermission -> Bool
Prelude.Eq, ReadPrec [DisassociateResourceSharePermission]
ReadPrec DisassociateResourceSharePermission
Int -> ReadS DisassociateResourceSharePermission
ReadS [DisassociateResourceSharePermission]
(Int -> ReadS DisassociateResourceSharePermission)
-> ReadS [DisassociateResourceSharePermission]
-> ReadPrec DisassociateResourceSharePermission
-> ReadPrec [DisassociateResourceSharePermission]
-> Read DisassociateResourceSharePermission
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateResourceSharePermission]
$creadListPrec :: ReadPrec [DisassociateResourceSharePermission]
readPrec :: ReadPrec DisassociateResourceSharePermission
$creadPrec :: ReadPrec DisassociateResourceSharePermission
readList :: ReadS [DisassociateResourceSharePermission]
$creadList :: ReadS [DisassociateResourceSharePermission]
readsPrec :: Int -> ReadS DisassociateResourceSharePermission
$creadsPrec :: Int -> ReadS DisassociateResourceSharePermission
Prelude.Read, Int -> DisassociateResourceSharePermission -> ShowS
[DisassociateResourceSharePermission] -> ShowS
DisassociateResourceSharePermission -> String
(Int -> DisassociateResourceSharePermission -> ShowS)
-> (DisassociateResourceSharePermission -> String)
-> ([DisassociateResourceSharePermission] -> ShowS)
-> Show DisassociateResourceSharePermission
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateResourceSharePermission] -> ShowS
$cshowList :: [DisassociateResourceSharePermission] -> ShowS
show :: DisassociateResourceSharePermission -> String
$cshow :: DisassociateResourceSharePermission -> String
showsPrec :: Int -> DisassociateResourceSharePermission -> ShowS
$cshowsPrec :: Int -> DisassociateResourceSharePermission -> ShowS
Prelude.Show, (forall x.
 DisassociateResourceSharePermission
 -> Rep DisassociateResourceSharePermission x)
-> (forall x.
    Rep DisassociateResourceSharePermission x
    -> DisassociateResourceSharePermission)
-> Generic DisassociateResourceSharePermission
forall x.
Rep DisassociateResourceSharePermission x
-> DisassociateResourceSharePermission
forall x.
DisassociateResourceSharePermission
-> Rep DisassociateResourceSharePermission x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateResourceSharePermission x
-> DisassociateResourceSharePermission
$cfrom :: forall x.
DisassociateResourceSharePermission
-> Rep DisassociateResourceSharePermission x
Prelude.Generic)

-- |
-- Create a value of 'DisassociateResourceSharePermission' 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:
--
-- 'clientToken', 'disassociateResourceSharePermission_clientToken' - A unique, case-sensitive identifier that you provide to ensure the
-- idempotency of the request.
--
-- 'resourceShareArn', 'disassociateResourceSharePermission_resourceShareArn' - The Amazon Resource Name (ARN) of the resource share.
--
-- 'permissionArn', 'disassociateResourceSharePermission_permissionArn' - The Amazon Resource Name (ARN) of the permission to disassociate from
-- the resource share.
newDisassociateResourceSharePermission ::
  -- | 'resourceShareArn'
  Prelude.Text ->
  -- | 'permissionArn'
  Prelude.Text ->
  DisassociateResourceSharePermission
newDisassociateResourceSharePermission :: Text -> Text -> DisassociateResourceSharePermission
newDisassociateResourceSharePermission
  Text
pResourceShareArn_
  Text
pPermissionArn_ =
    DisassociateResourceSharePermission' :: Maybe Text -> Text -> Text -> DisassociateResourceSharePermission
DisassociateResourceSharePermission'
      { $sel:clientToken:DisassociateResourceSharePermission' :: Maybe Text
clientToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:resourceShareArn:DisassociateResourceSharePermission' :: Text
resourceShareArn = Text
pResourceShareArn_,
        $sel:permissionArn:DisassociateResourceSharePermission' :: Text
permissionArn = Text
pPermissionArn_
      }

-- | A unique, case-sensitive identifier that you provide to ensure the
-- idempotency of the request.
disassociateResourceSharePermission_clientToken :: Lens.Lens' DisassociateResourceSharePermission (Prelude.Maybe Prelude.Text)
disassociateResourceSharePermission_clientToken :: (Maybe Text -> f (Maybe Text))
-> DisassociateResourceSharePermission
-> f DisassociateResourceSharePermission
disassociateResourceSharePermission_clientToken = (DisassociateResourceSharePermission -> Maybe Text)
-> (DisassociateResourceSharePermission
    -> Maybe Text -> DisassociateResourceSharePermission)
-> Lens
     DisassociateResourceSharePermission
     DisassociateResourceSharePermission
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResourceSharePermission' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:DisassociateResourceSharePermission' :: DisassociateResourceSharePermission -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: DisassociateResourceSharePermission
s@DisassociateResourceSharePermission' {} Maybe Text
a -> DisassociateResourceSharePermission
s {$sel:clientToken:DisassociateResourceSharePermission' :: Maybe Text
clientToken = Maybe Text
a} :: DisassociateResourceSharePermission)

-- | The Amazon Resource Name (ARN) of the resource share.
disassociateResourceSharePermission_resourceShareArn :: Lens.Lens' DisassociateResourceSharePermission Prelude.Text
disassociateResourceSharePermission_resourceShareArn :: (Text -> f Text)
-> DisassociateResourceSharePermission
-> f DisassociateResourceSharePermission
disassociateResourceSharePermission_resourceShareArn = (DisassociateResourceSharePermission -> Text)
-> (DisassociateResourceSharePermission
    -> Text -> DisassociateResourceSharePermission)
-> Lens
     DisassociateResourceSharePermission
     DisassociateResourceSharePermission
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResourceSharePermission' {Text
resourceShareArn :: Text
$sel:resourceShareArn:DisassociateResourceSharePermission' :: DisassociateResourceSharePermission -> Text
resourceShareArn} -> Text
resourceShareArn) (\s :: DisassociateResourceSharePermission
s@DisassociateResourceSharePermission' {} Text
a -> DisassociateResourceSharePermission
s {$sel:resourceShareArn:DisassociateResourceSharePermission' :: Text
resourceShareArn = Text
a} :: DisassociateResourceSharePermission)

-- | The Amazon Resource Name (ARN) of the permission to disassociate from
-- the resource share.
disassociateResourceSharePermission_permissionArn :: Lens.Lens' DisassociateResourceSharePermission Prelude.Text
disassociateResourceSharePermission_permissionArn :: (Text -> f Text)
-> DisassociateResourceSharePermission
-> f DisassociateResourceSharePermission
disassociateResourceSharePermission_permissionArn = (DisassociateResourceSharePermission -> Text)
-> (DisassociateResourceSharePermission
    -> Text -> DisassociateResourceSharePermission)
-> Lens
     DisassociateResourceSharePermission
     DisassociateResourceSharePermission
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResourceSharePermission' {Text
permissionArn :: Text
$sel:permissionArn:DisassociateResourceSharePermission' :: DisassociateResourceSharePermission -> Text
permissionArn} -> Text
permissionArn) (\s :: DisassociateResourceSharePermission
s@DisassociateResourceSharePermission' {} Text
a -> DisassociateResourceSharePermission
s {$sel:permissionArn:DisassociateResourceSharePermission' :: Text
permissionArn = Text
a} :: DisassociateResourceSharePermission)

instance
  Core.AWSRequest
    DisassociateResourceSharePermission
  where
  type
    AWSResponse DisassociateResourceSharePermission =
      DisassociateResourceSharePermissionResponse
  request :: DisassociateResourceSharePermission
-> Request DisassociateResourceSharePermission
request = Service
-> DisassociateResourceSharePermission
-> Request DisassociateResourceSharePermission
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DisassociateResourceSharePermission
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DisassociateResourceSharePermission)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DisassociateResourceSharePermission))
-> Logger
-> Service
-> Proxy DisassociateResourceSharePermission
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DisassociateResourceSharePermission)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe Bool -> Int -> DisassociateResourceSharePermissionResponse
DisassociateResourceSharePermissionResponse'
            (Maybe Text
 -> Maybe Bool
 -> Int
 -> DisassociateResourceSharePermissionResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Bool -> Int -> DisassociateResourceSharePermissionResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"clientToken")
              Either
  String
  (Maybe Bool -> Int -> DisassociateResourceSharePermissionResponse)
-> Either String (Maybe Bool)
-> Either
     String (Int -> DisassociateResourceSharePermissionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"returnValue")
              Either String (Int -> DisassociateResourceSharePermissionResponse)
-> Either String Int
-> Either String DisassociateResourceSharePermissionResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    DisassociateResourceSharePermission

instance
  Prelude.NFData
    DisassociateResourceSharePermission

instance
  Core.ToHeaders
    DisassociateResourceSharePermission
  where
  toHeaders :: DisassociateResourceSharePermission -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DisassociateResourceSharePermission -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance
  Core.ToJSON
    DisassociateResourceSharePermission
  where
  toJSON :: DisassociateResourceSharePermission -> Value
toJSON DisassociateResourceSharePermission' {Maybe Text
Text
permissionArn :: Text
resourceShareArn :: Text
clientToken :: Maybe Text
$sel:permissionArn:DisassociateResourceSharePermission' :: DisassociateResourceSharePermission -> Text
$sel:resourceShareArn:DisassociateResourceSharePermission' :: DisassociateResourceSharePermission -> Text
$sel:clientToken:DisassociateResourceSharePermission' :: DisassociateResourceSharePermission -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"clientToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
clientToken,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"resourceShareArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resourceShareArn),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"permissionArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
permissionArn)
          ]
      )

instance
  Core.ToPath
    DisassociateResourceSharePermission
  where
  toPath :: DisassociateResourceSharePermission -> ByteString
toPath =
    ByteString -> DisassociateResourceSharePermission -> ByteString
forall a b. a -> b -> a
Prelude.const
      ByteString
"/disassociateresourcesharepermission"

instance
  Core.ToQuery
    DisassociateResourceSharePermission
  where
  toQuery :: DisassociateResourceSharePermission -> QueryString
toQuery = QueryString -> DisassociateResourceSharePermission -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDisassociateResourceSharePermissionResponse' smart constructor.
data DisassociateResourceSharePermissionResponse = DisassociateResourceSharePermissionResponse'
  { -- | A unique, case-sensitive identifier that you provide to ensure the
    -- idempotency of the request.
    DisassociateResourceSharePermissionResponse -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
    -- | Indicates whether the request succeeded.
    DisassociateResourceSharePermissionResponse -> Maybe Bool
returnValue :: Prelude.Maybe Prelude.Bool,
    -- | The response's http status code.
    DisassociateResourceSharePermissionResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DisassociateResourceSharePermissionResponse
-> DisassociateResourceSharePermissionResponse -> Bool
(DisassociateResourceSharePermissionResponse
 -> DisassociateResourceSharePermissionResponse -> Bool)
-> (DisassociateResourceSharePermissionResponse
    -> DisassociateResourceSharePermissionResponse -> Bool)
-> Eq DisassociateResourceSharePermissionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateResourceSharePermissionResponse
-> DisassociateResourceSharePermissionResponse -> Bool
$c/= :: DisassociateResourceSharePermissionResponse
-> DisassociateResourceSharePermissionResponse -> Bool
== :: DisassociateResourceSharePermissionResponse
-> DisassociateResourceSharePermissionResponse -> Bool
$c== :: DisassociateResourceSharePermissionResponse
-> DisassociateResourceSharePermissionResponse -> Bool
Prelude.Eq, ReadPrec [DisassociateResourceSharePermissionResponse]
ReadPrec DisassociateResourceSharePermissionResponse
Int -> ReadS DisassociateResourceSharePermissionResponse
ReadS [DisassociateResourceSharePermissionResponse]
(Int -> ReadS DisassociateResourceSharePermissionResponse)
-> ReadS [DisassociateResourceSharePermissionResponse]
-> ReadPrec DisassociateResourceSharePermissionResponse
-> ReadPrec [DisassociateResourceSharePermissionResponse]
-> Read DisassociateResourceSharePermissionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateResourceSharePermissionResponse]
$creadListPrec :: ReadPrec [DisassociateResourceSharePermissionResponse]
readPrec :: ReadPrec DisassociateResourceSharePermissionResponse
$creadPrec :: ReadPrec DisassociateResourceSharePermissionResponse
readList :: ReadS [DisassociateResourceSharePermissionResponse]
$creadList :: ReadS [DisassociateResourceSharePermissionResponse]
readsPrec :: Int -> ReadS DisassociateResourceSharePermissionResponse
$creadsPrec :: Int -> ReadS DisassociateResourceSharePermissionResponse
Prelude.Read, Int -> DisassociateResourceSharePermissionResponse -> ShowS
[DisassociateResourceSharePermissionResponse] -> ShowS
DisassociateResourceSharePermissionResponse -> String
(Int -> DisassociateResourceSharePermissionResponse -> ShowS)
-> (DisassociateResourceSharePermissionResponse -> String)
-> ([DisassociateResourceSharePermissionResponse] -> ShowS)
-> Show DisassociateResourceSharePermissionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateResourceSharePermissionResponse] -> ShowS
$cshowList :: [DisassociateResourceSharePermissionResponse] -> ShowS
show :: DisassociateResourceSharePermissionResponse -> String
$cshow :: DisassociateResourceSharePermissionResponse -> String
showsPrec :: Int -> DisassociateResourceSharePermissionResponse -> ShowS
$cshowsPrec :: Int -> DisassociateResourceSharePermissionResponse -> ShowS
Prelude.Show, (forall x.
 DisassociateResourceSharePermissionResponse
 -> Rep DisassociateResourceSharePermissionResponse x)
-> (forall x.
    Rep DisassociateResourceSharePermissionResponse x
    -> DisassociateResourceSharePermissionResponse)
-> Generic DisassociateResourceSharePermissionResponse
forall x.
Rep DisassociateResourceSharePermissionResponse x
-> DisassociateResourceSharePermissionResponse
forall x.
DisassociateResourceSharePermissionResponse
-> Rep DisassociateResourceSharePermissionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateResourceSharePermissionResponse x
-> DisassociateResourceSharePermissionResponse
$cfrom :: forall x.
DisassociateResourceSharePermissionResponse
-> Rep DisassociateResourceSharePermissionResponse x
Prelude.Generic)

-- |
-- Create a value of 'DisassociateResourceSharePermissionResponse' 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:
--
-- 'clientToken', 'disassociateResourceSharePermissionResponse_clientToken' - A unique, case-sensitive identifier that you provide to ensure the
-- idempotency of the request.
--
-- 'returnValue', 'disassociateResourceSharePermissionResponse_returnValue' - Indicates whether the request succeeded.
--
-- 'httpStatus', 'disassociateResourceSharePermissionResponse_httpStatus' - The response's http status code.
newDisassociateResourceSharePermissionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DisassociateResourceSharePermissionResponse
newDisassociateResourceSharePermissionResponse :: Int -> DisassociateResourceSharePermissionResponse
newDisassociateResourceSharePermissionResponse
  Int
pHttpStatus_ =
    DisassociateResourceSharePermissionResponse' :: Maybe Text
-> Maybe Bool -> Int -> DisassociateResourceSharePermissionResponse
DisassociateResourceSharePermissionResponse'
      { $sel:clientToken:DisassociateResourceSharePermissionResponse' :: Maybe Text
clientToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:returnValue:DisassociateResourceSharePermissionResponse' :: Maybe Bool
returnValue = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DisassociateResourceSharePermissionResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | A unique, case-sensitive identifier that you provide to ensure the
-- idempotency of the request.
disassociateResourceSharePermissionResponse_clientToken :: Lens.Lens' DisassociateResourceSharePermissionResponse (Prelude.Maybe Prelude.Text)
disassociateResourceSharePermissionResponse_clientToken :: (Maybe Text -> f (Maybe Text))
-> DisassociateResourceSharePermissionResponse
-> f DisassociateResourceSharePermissionResponse
disassociateResourceSharePermissionResponse_clientToken = (DisassociateResourceSharePermissionResponse -> Maybe Text)
-> (DisassociateResourceSharePermissionResponse
    -> Maybe Text -> DisassociateResourceSharePermissionResponse)
-> Lens
     DisassociateResourceSharePermissionResponse
     DisassociateResourceSharePermissionResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResourceSharePermissionResponse' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:DisassociateResourceSharePermissionResponse' :: DisassociateResourceSharePermissionResponse -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: DisassociateResourceSharePermissionResponse
s@DisassociateResourceSharePermissionResponse' {} Maybe Text
a -> DisassociateResourceSharePermissionResponse
s {$sel:clientToken:DisassociateResourceSharePermissionResponse' :: Maybe Text
clientToken = Maybe Text
a} :: DisassociateResourceSharePermissionResponse)

-- | Indicates whether the request succeeded.
disassociateResourceSharePermissionResponse_returnValue :: Lens.Lens' DisassociateResourceSharePermissionResponse (Prelude.Maybe Prelude.Bool)
disassociateResourceSharePermissionResponse_returnValue :: (Maybe Bool -> f (Maybe Bool))
-> DisassociateResourceSharePermissionResponse
-> f DisassociateResourceSharePermissionResponse
disassociateResourceSharePermissionResponse_returnValue = (DisassociateResourceSharePermissionResponse -> Maybe Bool)
-> (DisassociateResourceSharePermissionResponse
    -> Maybe Bool -> DisassociateResourceSharePermissionResponse)
-> Lens
     DisassociateResourceSharePermissionResponse
     DisassociateResourceSharePermissionResponse
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResourceSharePermissionResponse' {Maybe Bool
returnValue :: Maybe Bool
$sel:returnValue:DisassociateResourceSharePermissionResponse' :: DisassociateResourceSharePermissionResponse -> Maybe Bool
returnValue} -> Maybe Bool
returnValue) (\s :: DisassociateResourceSharePermissionResponse
s@DisassociateResourceSharePermissionResponse' {} Maybe Bool
a -> DisassociateResourceSharePermissionResponse
s {$sel:returnValue:DisassociateResourceSharePermissionResponse' :: Maybe Bool
returnValue = Maybe Bool
a} :: DisassociateResourceSharePermissionResponse)

-- | The response's http status code.
disassociateResourceSharePermissionResponse_httpStatus :: Lens.Lens' DisassociateResourceSharePermissionResponse Prelude.Int
disassociateResourceSharePermissionResponse_httpStatus :: (Int -> f Int)
-> DisassociateResourceSharePermissionResponse
-> f DisassociateResourceSharePermissionResponse
disassociateResourceSharePermissionResponse_httpStatus = (DisassociateResourceSharePermissionResponse -> Int)
-> (DisassociateResourceSharePermissionResponse
    -> Int -> DisassociateResourceSharePermissionResponse)
-> Lens
     DisassociateResourceSharePermissionResponse
     DisassociateResourceSharePermissionResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResourceSharePermissionResponse' {Int
httpStatus :: Int
$sel:httpStatus:DisassociateResourceSharePermissionResponse' :: DisassociateResourceSharePermissionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DisassociateResourceSharePermissionResponse
s@DisassociateResourceSharePermissionResponse' {} Int
a -> DisassociateResourceSharePermissionResponse
s {$sel:httpStatus:DisassociateResourceSharePermissionResponse' :: Int
httpStatus = Int
a} :: DisassociateResourceSharePermissionResponse)

instance
  Prelude.NFData
    DisassociateResourceSharePermissionResponse