{-# 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 #-}
module Amazonka.RAM.DisassociateResourceShare
(
DisassociateResourceShare (..),
newDisassociateResourceShare,
disassociateResourceShare_clientToken,
disassociateResourceShare_principals,
disassociateResourceShare_resourceArns,
disassociateResourceShare_resourceShareArn,
DisassociateResourceShareResponse (..),
newDisassociateResourceShareResponse,
disassociateResourceShareResponse_clientToken,
disassociateResourceShareResponse_resourceShareAssociations,
disassociateResourceShareResponse_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
data DisassociateResourceShare = DisassociateResourceShare'
{
DisassociateResourceShare -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
DisassociateResourceShare -> Maybe [Text]
principals :: Prelude.Maybe [Prelude.Text],
DisassociateResourceShare -> Maybe [Text]
resourceArns :: Prelude.Maybe [Prelude.Text],
DisassociateResourceShare -> Text
resourceShareArn :: Prelude.Text
}
deriving (DisassociateResourceShare -> DisassociateResourceShare -> Bool
(DisassociateResourceShare -> DisassociateResourceShare -> Bool)
-> (DisassociateResourceShare -> DisassociateResourceShare -> Bool)
-> Eq DisassociateResourceShare
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateResourceShare -> DisassociateResourceShare -> Bool
$c/= :: DisassociateResourceShare -> DisassociateResourceShare -> Bool
== :: DisassociateResourceShare -> DisassociateResourceShare -> Bool
$c== :: DisassociateResourceShare -> DisassociateResourceShare -> Bool
Prelude.Eq, ReadPrec [DisassociateResourceShare]
ReadPrec DisassociateResourceShare
Int -> ReadS DisassociateResourceShare
ReadS [DisassociateResourceShare]
(Int -> ReadS DisassociateResourceShare)
-> ReadS [DisassociateResourceShare]
-> ReadPrec DisassociateResourceShare
-> ReadPrec [DisassociateResourceShare]
-> Read DisassociateResourceShare
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateResourceShare]
$creadListPrec :: ReadPrec [DisassociateResourceShare]
readPrec :: ReadPrec DisassociateResourceShare
$creadPrec :: ReadPrec DisassociateResourceShare
readList :: ReadS [DisassociateResourceShare]
$creadList :: ReadS [DisassociateResourceShare]
readsPrec :: Int -> ReadS DisassociateResourceShare
$creadsPrec :: Int -> ReadS DisassociateResourceShare
Prelude.Read, Int -> DisassociateResourceShare -> ShowS
[DisassociateResourceShare] -> ShowS
DisassociateResourceShare -> String
(Int -> DisassociateResourceShare -> ShowS)
-> (DisassociateResourceShare -> String)
-> ([DisassociateResourceShare] -> ShowS)
-> Show DisassociateResourceShare
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateResourceShare] -> ShowS
$cshowList :: [DisassociateResourceShare] -> ShowS
show :: DisassociateResourceShare -> String
$cshow :: DisassociateResourceShare -> String
showsPrec :: Int -> DisassociateResourceShare -> ShowS
$cshowsPrec :: Int -> DisassociateResourceShare -> ShowS
Prelude.Show, (forall x.
DisassociateResourceShare -> Rep DisassociateResourceShare x)
-> (forall x.
Rep DisassociateResourceShare x -> DisassociateResourceShare)
-> Generic DisassociateResourceShare
forall x.
Rep DisassociateResourceShare x -> DisassociateResourceShare
forall x.
DisassociateResourceShare -> Rep DisassociateResourceShare x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateResourceShare x -> DisassociateResourceShare
$cfrom :: forall x.
DisassociateResourceShare -> Rep DisassociateResourceShare x
Prelude.Generic)
newDisassociateResourceShare ::
Prelude.Text ->
DisassociateResourceShare
newDisassociateResourceShare :: Text -> DisassociateResourceShare
newDisassociateResourceShare Text
pResourceShareArn_ =
DisassociateResourceShare' :: Maybe Text
-> Maybe [Text]
-> Maybe [Text]
-> Text
-> DisassociateResourceShare
DisassociateResourceShare'
{ $sel:clientToken:DisassociateResourceShare' :: Maybe Text
clientToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:principals:DisassociateResourceShare' :: Maybe [Text]
principals = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:resourceArns:DisassociateResourceShare' :: Maybe [Text]
resourceArns = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:resourceShareArn:DisassociateResourceShare' :: Text
resourceShareArn = Text
pResourceShareArn_
}
disassociateResourceShare_clientToken :: Lens.Lens' DisassociateResourceShare (Prelude.Maybe Prelude.Text)
disassociateResourceShare_clientToken :: (Maybe Text -> f (Maybe Text))
-> DisassociateResourceShare -> f DisassociateResourceShare
disassociateResourceShare_clientToken = (DisassociateResourceShare -> Maybe Text)
-> (DisassociateResourceShare
-> Maybe Text -> DisassociateResourceShare)
-> Lens
DisassociateResourceShare
DisassociateResourceShare
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResourceShare' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:DisassociateResourceShare' :: DisassociateResourceShare -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: DisassociateResourceShare
s@DisassociateResourceShare' {} Maybe Text
a -> DisassociateResourceShare
s {$sel:clientToken:DisassociateResourceShare' :: Maybe Text
clientToken = Maybe Text
a} :: DisassociateResourceShare)
disassociateResourceShare_principals :: Lens.Lens' DisassociateResourceShare (Prelude.Maybe [Prelude.Text])
disassociateResourceShare_principals :: (Maybe [Text] -> f (Maybe [Text]))
-> DisassociateResourceShare -> f DisassociateResourceShare
disassociateResourceShare_principals = (DisassociateResourceShare -> Maybe [Text])
-> (DisassociateResourceShare
-> Maybe [Text] -> DisassociateResourceShare)
-> Lens
DisassociateResourceShare
DisassociateResourceShare
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResourceShare' {Maybe [Text]
principals :: Maybe [Text]
$sel:principals:DisassociateResourceShare' :: DisassociateResourceShare -> Maybe [Text]
principals} -> Maybe [Text]
principals) (\s :: DisassociateResourceShare
s@DisassociateResourceShare' {} Maybe [Text]
a -> DisassociateResourceShare
s {$sel:principals:DisassociateResourceShare' :: Maybe [Text]
principals = Maybe [Text]
a} :: DisassociateResourceShare) ((Maybe [Text] -> f (Maybe [Text]))
-> DisassociateResourceShare -> f DisassociateResourceShare)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DisassociateResourceShare
-> f DisassociateResourceShare
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
disassociateResourceShare_resourceArns :: Lens.Lens' DisassociateResourceShare (Prelude.Maybe [Prelude.Text])
disassociateResourceShare_resourceArns :: (Maybe [Text] -> f (Maybe [Text]))
-> DisassociateResourceShare -> f DisassociateResourceShare
disassociateResourceShare_resourceArns = (DisassociateResourceShare -> Maybe [Text])
-> (DisassociateResourceShare
-> Maybe [Text] -> DisassociateResourceShare)
-> Lens
DisassociateResourceShare
DisassociateResourceShare
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResourceShare' {Maybe [Text]
resourceArns :: Maybe [Text]
$sel:resourceArns:DisassociateResourceShare' :: DisassociateResourceShare -> Maybe [Text]
resourceArns} -> Maybe [Text]
resourceArns) (\s :: DisassociateResourceShare
s@DisassociateResourceShare' {} Maybe [Text]
a -> DisassociateResourceShare
s {$sel:resourceArns:DisassociateResourceShare' :: Maybe [Text]
resourceArns = Maybe [Text]
a} :: DisassociateResourceShare) ((Maybe [Text] -> f (Maybe [Text]))
-> DisassociateResourceShare -> f DisassociateResourceShare)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DisassociateResourceShare
-> f DisassociateResourceShare
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
disassociateResourceShare_resourceShareArn :: Lens.Lens' DisassociateResourceShare Prelude.Text
disassociateResourceShare_resourceShareArn :: (Text -> f Text)
-> DisassociateResourceShare -> f DisassociateResourceShare
disassociateResourceShare_resourceShareArn = (DisassociateResourceShare -> Text)
-> (DisassociateResourceShare -> Text -> DisassociateResourceShare)
-> Lens
DisassociateResourceShare DisassociateResourceShare Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResourceShare' {Text
resourceShareArn :: Text
$sel:resourceShareArn:DisassociateResourceShare' :: DisassociateResourceShare -> Text
resourceShareArn} -> Text
resourceShareArn) (\s :: DisassociateResourceShare
s@DisassociateResourceShare' {} Text
a -> DisassociateResourceShare
s {$sel:resourceShareArn:DisassociateResourceShare' :: Text
resourceShareArn = Text
a} :: DisassociateResourceShare)
instance Core.AWSRequest DisassociateResourceShare where
type
AWSResponse DisassociateResourceShare =
DisassociateResourceShareResponse
request :: DisassociateResourceShare -> Request DisassociateResourceShare
request = Service
-> DisassociateResourceShare -> Request DisassociateResourceShare
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DisassociateResourceShare
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DisassociateResourceShare)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DisassociateResourceShare))
-> Logger
-> Service
-> Proxy DisassociateResourceShare
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DisassociateResourceShare)))
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 [ResourceShareAssociation]
-> Int
-> DisassociateResourceShareResponse
DisassociateResourceShareResponse'
(Maybe Text
-> Maybe [ResourceShareAssociation]
-> Int
-> DisassociateResourceShareResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ResourceShareAssociation]
-> Int -> DisassociateResourceShareResponse)
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 [ResourceShareAssociation]
-> Int -> DisassociateResourceShareResponse)
-> Either String (Maybe [ResourceShareAssociation])
-> Either String (Int -> DisassociateResourceShareResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ResourceShareAssociation]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"resourceShareAssociations"
Either String (Maybe (Maybe [ResourceShareAssociation]))
-> Maybe [ResourceShareAssociation]
-> Either String (Maybe [ResourceShareAssociation])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ResourceShareAssociation]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> DisassociateResourceShareResponse)
-> Either String Int
-> Either String DisassociateResourceShareResponse
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 DisassociateResourceShare
instance Prelude.NFData DisassociateResourceShare
instance Core.ToHeaders DisassociateResourceShare where
toHeaders :: DisassociateResourceShare -> ResponseHeaders
toHeaders =
ResponseHeaders -> DisassociateResourceShare -> 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 DisassociateResourceShare where
toJSON :: DisassociateResourceShare -> Value
toJSON DisassociateResourceShare' {Maybe [Text]
Maybe Text
Text
resourceShareArn :: Text
resourceArns :: Maybe [Text]
principals :: Maybe [Text]
clientToken :: Maybe Text
$sel:resourceShareArn:DisassociateResourceShare' :: DisassociateResourceShare -> Text
$sel:resourceArns:DisassociateResourceShare' :: DisassociateResourceShare -> Maybe [Text]
$sel:principals:DisassociateResourceShare' :: DisassociateResourceShare -> Maybe [Text]
$sel:clientToken:DisassociateResourceShare' :: DisassociateResourceShare -> 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,
(Text
"principals" 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]
principals,
(Text
"resourceArns" 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]
resourceArns,
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)
]
)
instance Core.ToPath DisassociateResourceShare where
toPath :: DisassociateResourceShare -> ByteString
toPath = ByteString -> DisassociateResourceShare -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/disassociateresourceshare"
instance Core.ToQuery DisassociateResourceShare where
toQuery :: DisassociateResourceShare -> QueryString
toQuery = QueryString -> DisassociateResourceShare -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DisassociateResourceShareResponse = DisassociateResourceShareResponse'
{
DisassociateResourceShareResponse -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
DisassociateResourceShareResponse
-> Maybe [ResourceShareAssociation]
resourceShareAssociations :: Prelude.Maybe [ResourceShareAssociation],
DisassociateResourceShareResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DisassociateResourceShareResponse
-> DisassociateResourceShareResponse -> Bool
(DisassociateResourceShareResponse
-> DisassociateResourceShareResponse -> Bool)
-> (DisassociateResourceShareResponse
-> DisassociateResourceShareResponse -> Bool)
-> Eq DisassociateResourceShareResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateResourceShareResponse
-> DisassociateResourceShareResponse -> Bool
$c/= :: DisassociateResourceShareResponse
-> DisassociateResourceShareResponse -> Bool
== :: DisassociateResourceShareResponse
-> DisassociateResourceShareResponse -> Bool
$c== :: DisassociateResourceShareResponse
-> DisassociateResourceShareResponse -> Bool
Prelude.Eq, ReadPrec [DisassociateResourceShareResponse]
ReadPrec DisassociateResourceShareResponse
Int -> ReadS DisassociateResourceShareResponse
ReadS [DisassociateResourceShareResponse]
(Int -> ReadS DisassociateResourceShareResponse)
-> ReadS [DisassociateResourceShareResponse]
-> ReadPrec DisassociateResourceShareResponse
-> ReadPrec [DisassociateResourceShareResponse]
-> Read DisassociateResourceShareResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateResourceShareResponse]
$creadListPrec :: ReadPrec [DisassociateResourceShareResponse]
readPrec :: ReadPrec DisassociateResourceShareResponse
$creadPrec :: ReadPrec DisassociateResourceShareResponse
readList :: ReadS [DisassociateResourceShareResponse]
$creadList :: ReadS [DisassociateResourceShareResponse]
readsPrec :: Int -> ReadS DisassociateResourceShareResponse
$creadsPrec :: Int -> ReadS DisassociateResourceShareResponse
Prelude.Read, Int -> DisassociateResourceShareResponse -> ShowS
[DisassociateResourceShareResponse] -> ShowS
DisassociateResourceShareResponse -> String
(Int -> DisassociateResourceShareResponse -> ShowS)
-> (DisassociateResourceShareResponse -> String)
-> ([DisassociateResourceShareResponse] -> ShowS)
-> Show DisassociateResourceShareResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateResourceShareResponse] -> ShowS
$cshowList :: [DisassociateResourceShareResponse] -> ShowS
show :: DisassociateResourceShareResponse -> String
$cshow :: DisassociateResourceShareResponse -> String
showsPrec :: Int -> DisassociateResourceShareResponse -> ShowS
$cshowsPrec :: Int -> DisassociateResourceShareResponse -> ShowS
Prelude.Show, (forall x.
DisassociateResourceShareResponse
-> Rep DisassociateResourceShareResponse x)
-> (forall x.
Rep DisassociateResourceShareResponse x
-> DisassociateResourceShareResponse)
-> Generic DisassociateResourceShareResponse
forall x.
Rep DisassociateResourceShareResponse x
-> DisassociateResourceShareResponse
forall x.
DisassociateResourceShareResponse
-> Rep DisassociateResourceShareResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateResourceShareResponse x
-> DisassociateResourceShareResponse
$cfrom :: forall x.
DisassociateResourceShareResponse
-> Rep DisassociateResourceShareResponse x
Prelude.Generic)
newDisassociateResourceShareResponse ::
Prelude.Int ->
DisassociateResourceShareResponse
newDisassociateResourceShareResponse :: Int -> DisassociateResourceShareResponse
newDisassociateResourceShareResponse Int
pHttpStatus_ =
DisassociateResourceShareResponse' :: Maybe Text
-> Maybe [ResourceShareAssociation]
-> Int
-> DisassociateResourceShareResponse
DisassociateResourceShareResponse'
{ $sel:clientToken:DisassociateResourceShareResponse' :: Maybe Text
clientToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resourceShareAssociations:DisassociateResourceShareResponse' :: Maybe [ResourceShareAssociation]
resourceShareAssociations =
Maybe [ResourceShareAssociation]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DisassociateResourceShareResponse' :: Int
httpStatus = Int
pHttpStatus_
}
disassociateResourceShareResponse_clientToken :: Lens.Lens' DisassociateResourceShareResponse (Prelude.Maybe Prelude.Text)
disassociateResourceShareResponse_clientToken :: (Maybe Text -> f (Maybe Text))
-> DisassociateResourceShareResponse
-> f DisassociateResourceShareResponse
disassociateResourceShareResponse_clientToken = (DisassociateResourceShareResponse -> Maybe Text)
-> (DisassociateResourceShareResponse
-> Maybe Text -> DisassociateResourceShareResponse)
-> Lens
DisassociateResourceShareResponse
DisassociateResourceShareResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResourceShareResponse' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:DisassociateResourceShareResponse' :: DisassociateResourceShareResponse -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: DisassociateResourceShareResponse
s@DisassociateResourceShareResponse' {} Maybe Text
a -> DisassociateResourceShareResponse
s {$sel:clientToken:DisassociateResourceShareResponse' :: Maybe Text
clientToken = Maybe Text
a} :: DisassociateResourceShareResponse)
disassociateResourceShareResponse_resourceShareAssociations :: Lens.Lens' DisassociateResourceShareResponse (Prelude.Maybe [ResourceShareAssociation])
disassociateResourceShareResponse_resourceShareAssociations :: (Maybe [ResourceShareAssociation]
-> f (Maybe [ResourceShareAssociation]))
-> DisassociateResourceShareResponse
-> f DisassociateResourceShareResponse
disassociateResourceShareResponse_resourceShareAssociations = (DisassociateResourceShareResponse
-> Maybe [ResourceShareAssociation])
-> (DisassociateResourceShareResponse
-> Maybe [ResourceShareAssociation]
-> DisassociateResourceShareResponse)
-> Lens
DisassociateResourceShareResponse
DisassociateResourceShareResponse
(Maybe [ResourceShareAssociation])
(Maybe [ResourceShareAssociation])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResourceShareResponse' {Maybe [ResourceShareAssociation]
resourceShareAssociations :: Maybe [ResourceShareAssociation]
$sel:resourceShareAssociations:DisassociateResourceShareResponse' :: DisassociateResourceShareResponse
-> Maybe [ResourceShareAssociation]
resourceShareAssociations} -> Maybe [ResourceShareAssociation]
resourceShareAssociations) (\s :: DisassociateResourceShareResponse
s@DisassociateResourceShareResponse' {} Maybe [ResourceShareAssociation]
a -> DisassociateResourceShareResponse
s {$sel:resourceShareAssociations:DisassociateResourceShareResponse' :: Maybe [ResourceShareAssociation]
resourceShareAssociations = Maybe [ResourceShareAssociation]
a} :: DisassociateResourceShareResponse) ((Maybe [ResourceShareAssociation]
-> f (Maybe [ResourceShareAssociation]))
-> DisassociateResourceShareResponse
-> f DisassociateResourceShareResponse)
-> ((Maybe [ResourceShareAssociation]
-> f (Maybe [ResourceShareAssociation]))
-> Maybe [ResourceShareAssociation]
-> f (Maybe [ResourceShareAssociation]))
-> (Maybe [ResourceShareAssociation]
-> f (Maybe [ResourceShareAssociation]))
-> DisassociateResourceShareResponse
-> f DisassociateResourceShareResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ResourceShareAssociation]
[ResourceShareAssociation]
[ResourceShareAssociation]
[ResourceShareAssociation]
-> Iso
(Maybe [ResourceShareAssociation])
(Maybe [ResourceShareAssociation])
(Maybe [ResourceShareAssociation])
(Maybe [ResourceShareAssociation])
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 AnIso
[ResourceShareAssociation]
[ResourceShareAssociation]
[ResourceShareAssociation]
[ResourceShareAssociation]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
disassociateResourceShareResponse_httpStatus :: Lens.Lens' DisassociateResourceShareResponse Prelude.Int
disassociateResourceShareResponse_httpStatus :: (Int -> f Int)
-> DisassociateResourceShareResponse
-> f DisassociateResourceShareResponse
disassociateResourceShareResponse_httpStatus = (DisassociateResourceShareResponse -> Int)
-> (DisassociateResourceShareResponse
-> Int -> DisassociateResourceShareResponse)
-> Lens
DisassociateResourceShareResponse
DisassociateResourceShareResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResourceShareResponse' {Int
httpStatus :: Int
$sel:httpStatus:DisassociateResourceShareResponse' :: DisassociateResourceShareResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DisassociateResourceShareResponse
s@DisassociateResourceShareResponse' {} Int
a -> DisassociateResourceShareResponse
s {$sel:httpStatus:DisassociateResourceShareResponse' :: Int
httpStatus = Int
a} :: DisassociateResourceShareResponse)
instance
Prelude.NFData
DisassociateResourceShareResponse