{-# 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.ResourceGroups.UngroupResources
(
UngroupResources (..),
newUngroupResources,
ungroupResources_group,
ungroupResources_resourceArns,
UngroupResourcesResponse (..),
newUngroupResourcesResponse,
ungroupResourcesResponse_pending,
ungroupResourcesResponse_succeeded,
ungroupResourcesResponse_failed,
ungroupResourcesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import Amazonka.ResourceGroups.Types
import qualified Amazonka.Response as Response
data UngroupResources = UngroupResources'
{
UngroupResources -> Text
group' :: Prelude.Text,
UngroupResources -> NonEmpty Text
resourceArns :: Prelude.NonEmpty Prelude.Text
}
deriving (UngroupResources -> UngroupResources -> Bool
(UngroupResources -> UngroupResources -> Bool)
-> (UngroupResources -> UngroupResources -> Bool)
-> Eq UngroupResources
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UngroupResources -> UngroupResources -> Bool
$c/= :: UngroupResources -> UngroupResources -> Bool
== :: UngroupResources -> UngroupResources -> Bool
$c== :: UngroupResources -> UngroupResources -> Bool
Prelude.Eq, ReadPrec [UngroupResources]
ReadPrec UngroupResources
Int -> ReadS UngroupResources
ReadS [UngroupResources]
(Int -> ReadS UngroupResources)
-> ReadS [UngroupResources]
-> ReadPrec UngroupResources
-> ReadPrec [UngroupResources]
-> Read UngroupResources
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UngroupResources]
$creadListPrec :: ReadPrec [UngroupResources]
readPrec :: ReadPrec UngroupResources
$creadPrec :: ReadPrec UngroupResources
readList :: ReadS [UngroupResources]
$creadList :: ReadS [UngroupResources]
readsPrec :: Int -> ReadS UngroupResources
$creadsPrec :: Int -> ReadS UngroupResources
Prelude.Read, Int -> UngroupResources -> ShowS
[UngroupResources] -> ShowS
UngroupResources -> String
(Int -> UngroupResources -> ShowS)
-> (UngroupResources -> String)
-> ([UngroupResources] -> ShowS)
-> Show UngroupResources
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UngroupResources] -> ShowS
$cshowList :: [UngroupResources] -> ShowS
show :: UngroupResources -> String
$cshow :: UngroupResources -> String
showsPrec :: Int -> UngroupResources -> ShowS
$cshowsPrec :: Int -> UngroupResources -> ShowS
Prelude.Show, (forall x. UngroupResources -> Rep UngroupResources x)
-> (forall x. Rep UngroupResources x -> UngroupResources)
-> Generic UngroupResources
forall x. Rep UngroupResources x -> UngroupResources
forall x. UngroupResources -> Rep UngroupResources x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UngroupResources x -> UngroupResources
$cfrom :: forall x. UngroupResources -> Rep UngroupResources x
Prelude.Generic)
newUngroupResources ::
Prelude.Text ->
Prelude.NonEmpty Prelude.Text ->
UngroupResources
newUngroupResources :: Text -> NonEmpty Text -> UngroupResources
newUngroupResources Text
pGroup_ NonEmpty Text
pResourceArns_ =
UngroupResources' :: Text -> NonEmpty Text -> UngroupResources
UngroupResources'
{ $sel:group':UngroupResources' :: Text
group' = Text
pGroup_,
$sel:resourceArns:UngroupResources' :: NonEmpty Text
resourceArns = Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pResourceArns_
}
ungroupResources_group :: Lens.Lens' UngroupResources Prelude.Text
ungroupResources_group :: (Text -> f Text) -> UngroupResources -> f UngroupResources
ungroupResources_group = (UngroupResources -> Text)
-> (UngroupResources -> Text -> UngroupResources)
-> Lens UngroupResources UngroupResources Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UngroupResources' {Text
group' :: Text
$sel:group':UngroupResources' :: UngroupResources -> Text
group'} -> Text
group') (\s :: UngroupResources
s@UngroupResources' {} Text
a -> UngroupResources
s {$sel:group':UngroupResources' :: Text
group' = Text
a} :: UngroupResources)
ungroupResources_resourceArns :: Lens.Lens' UngroupResources (Prelude.NonEmpty Prelude.Text)
ungroupResources_resourceArns :: (NonEmpty Text -> f (NonEmpty Text))
-> UngroupResources -> f UngroupResources
ungroupResources_resourceArns = (UngroupResources -> NonEmpty Text)
-> (UngroupResources -> NonEmpty Text -> UngroupResources)
-> Lens
UngroupResources UngroupResources (NonEmpty Text) (NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UngroupResources' {NonEmpty Text
resourceArns :: NonEmpty Text
$sel:resourceArns:UngroupResources' :: UngroupResources -> NonEmpty Text
resourceArns} -> NonEmpty Text
resourceArns) (\s :: UngroupResources
s@UngroupResources' {} NonEmpty Text
a -> UngroupResources
s {$sel:resourceArns:UngroupResources' :: NonEmpty Text
resourceArns = NonEmpty Text
a} :: UngroupResources) ((NonEmpty Text -> f (NonEmpty Text))
-> UngroupResources -> f UngroupResources)
-> ((NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> UngroupResources
-> f UngroupResources
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest UngroupResources where
type
AWSResponse UngroupResources =
UngroupResourcesResponse
request :: UngroupResources -> Request UngroupResources
request = Service -> UngroupResources -> Request UngroupResources
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UngroupResources
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UngroupResources)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UngroupResources))
-> Logger
-> Service
-> Proxy UngroupResources
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UngroupResources)))
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 [PendingResource]
-> Maybe (NonEmpty Text)
-> Maybe [FailedResource]
-> Int
-> UngroupResourcesResponse
UngroupResourcesResponse'
(Maybe [PendingResource]
-> Maybe (NonEmpty Text)
-> Maybe [FailedResource]
-> Int
-> UngroupResourcesResponse)
-> Either String (Maybe [PendingResource])
-> Either
String
(Maybe (NonEmpty Text)
-> Maybe [FailedResource] -> Int -> UngroupResourcesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [PendingResource]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Pending" Either String (Maybe (Maybe [PendingResource]))
-> Maybe [PendingResource]
-> Either String (Maybe [PendingResource])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [PendingResource]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe (NonEmpty Text)
-> Maybe [FailedResource] -> Int -> UngroupResourcesResponse)
-> Either String (Maybe (NonEmpty Text))
-> Either
String (Maybe [FailedResource] -> Int -> UngroupResourcesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (NonEmpty Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Succeeded")
Either
String (Maybe [FailedResource] -> Int -> UngroupResourcesResponse)
-> Either String (Maybe [FailedResource])
-> Either String (Int -> UngroupResourcesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [FailedResource]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Failed" Either String (Maybe (Maybe [FailedResource]))
-> Maybe [FailedResource] -> Either String (Maybe [FailedResource])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [FailedResource]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> UngroupResourcesResponse)
-> Either String Int -> Either String UngroupResourcesResponse
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 UngroupResources
instance Prelude.NFData UngroupResources
instance Core.ToHeaders UngroupResources where
toHeaders :: UngroupResources -> ResponseHeaders
toHeaders = ResponseHeaders -> UngroupResources -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON UngroupResources where
toJSON :: UngroupResources -> Value
toJSON UngroupResources' {NonEmpty Text
Text
resourceArns :: NonEmpty Text
group' :: Text
$sel:resourceArns:UngroupResources' :: UngroupResources -> NonEmpty Text
$sel:group':UngroupResources' :: UngroupResources -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Group" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
group'),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ResourceArns" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
resourceArns)
]
)
instance Core.ToPath UngroupResources where
toPath :: UngroupResources -> ByteString
toPath = ByteString -> UngroupResources -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/ungroup-resources"
instance Core.ToQuery UngroupResources where
toQuery :: UngroupResources -> QueryString
toQuery = QueryString -> UngroupResources -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UngroupResourcesResponse = UngroupResourcesResponse'
{
UngroupResourcesResponse -> Maybe [PendingResource]
pending :: Prelude.Maybe [PendingResource],
UngroupResourcesResponse -> Maybe (NonEmpty Text)
succeeded :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
UngroupResourcesResponse -> Maybe [FailedResource]
failed :: Prelude.Maybe [FailedResource],
UngroupResourcesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UngroupResourcesResponse -> UngroupResourcesResponse -> Bool
(UngroupResourcesResponse -> UngroupResourcesResponse -> Bool)
-> (UngroupResourcesResponse -> UngroupResourcesResponse -> Bool)
-> Eq UngroupResourcesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UngroupResourcesResponse -> UngroupResourcesResponse -> Bool
$c/= :: UngroupResourcesResponse -> UngroupResourcesResponse -> Bool
== :: UngroupResourcesResponse -> UngroupResourcesResponse -> Bool
$c== :: UngroupResourcesResponse -> UngroupResourcesResponse -> Bool
Prelude.Eq, ReadPrec [UngroupResourcesResponse]
ReadPrec UngroupResourcesResponse
Int -> ReadS UngroupResourcesResponse
ReadS [UngroupResourcesResponse]
(Int -> ReadS UngroupResourcesResponse)
-> ReadS [UngroupResourcesResponse]
-> ReadPrec UngroupResourcesResponse
-> ReadPrec [UngroupResourcesResponse]
-> Read UngroupResourcesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UngroupResourcesResponse]
$creadListPrec :: ReadPrec [UngroupResourcesResponse]
readPrec :: ReadPrec UngroupResourcesResponse
$creadPrec :: ReadPrec UngroupResourcesResponse
readList :: ReadS [UngroupResourcesResponse]
$creadList :: ReadS [UngroupResourcesResponse]
readsPrec :: Int -> ReadS UngroupResourcesResponse
$creadsPrec :: Int -> ReadS UngroupResourcesResponse
Prelude.Read, Int -> UngroupResourcesResponse -> ShowS
[UngroupResourcesResponse] -> ShowS
UngroupResourcesResponse -> String
(Int -> UngroupResourcesResponse -> ShowS)
-> (UngroupResourcesResponse -> String)
-> ([UngroupResourcesResponse] -> ShowS)
-> Show UngroupResourcesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UngroupResourcesResponse] -> ShowS
$cshowList :: [UngroupResourcesResponse] -> ShowS
show :: UngroupResourcesResponse -> String
$cshow :: UngroupResourcesResponse -> String
showsPrec :: Int -> UngroupResourcesResponse -> ShowS
$cshowsPrec :: Int -> UngroupResourcesResponse -> ShowS
Prelude.Show, (forall x.
UngroupResourcesResponse -> Rep UngroupResourcesResponse x)
-> (forall x.
Rep UngroupResourcesResponse x -> UngroupResourcesResponse)
-> Generic UngroupResourcesResponse
forall x.
Rep UngroupResourcesResponse x -> UngroupResourcesResponse
forall x.
UngroupResourcesResponse -> Rep UngroupResourcesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UngroupResourcesResponse x -> UngroupResourcesResponse
$cfrom :: forall x.
UngroupResourcesResponse -> Rep UngroupResourcesResponse x
Prelude.Generic)
newUngroupResourcesResponse ::
Prelude.Int ->
UngroupResourcesResponse
newUngroupResourcesResponse :: Int -> UngroupResourcesResponse
newUngroupResourcesResponse Int
pHttpStatus_ =
UngroupResourcesResponse' :: Maybe [PendingResource]
-> Maybe (NonEmpty Text)
-> Maybe [FailedResource]
-> Int
-> UngroupResourcesResponse
UngroupResourcesResponse'
{ $sel:pending:UngroupResourcesResponse' :: Maybe [PendingResource]
pending =
Maybe [PendingResource]
forall a. Maybe a
Prelude.Nothing,
$sel:succeeded:UngroupResourcesResponse' :: Maybe (NonEmpty Text)
succeeded = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:failed:UngroupResourcesResponse' :: Maybe [FailedResource]
failed = Maybe [FailedResource]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UngroupResourcesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
ungroupResourcesResponse_pending :: Lens.Lens' UngroupResourcesResponse (Prelude.Maybe [PendingResource])
ungroupResourcesResponse_pending :: (Maybe [PendingResource] -> f (Maybe [PendingResource]))
-> UngroupResourcesResponse -> f UngroupResourcesResponse
ungroupResourcesResponse_pending = (UngroupResourcesResponse -> Maybe [PendingResource])
-> (UngroupResourcesResponse
-> Maybe [PendingResource] -> UngroupResourcesResponse)
-> Lens
UngroupResourcesResponse
UngroupResourcesResponse
(Maybe [PendingResource])
(Maybe [PendingResource])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UngroupResourcesResponse' {Maybe [PendingResource]
pending :: Maybe [PendingResource]
$sel:pending:UngroupResourcesResponse' :: UngroupResourcesResponse -> Maybe [PendingResource]
pending} -> Maybe [PendingResource]
pending) (\s :: UngroupResourcesResponse
s@UngroupResourcesResponse' {} Maybe [PendingResource]
a -> UngroupResourcesResponse
s {$sel:pending:UngroupResourcesResponse' :: Maybe [PendingResource]
pending = Maybe [PendingResource]
a} :: UngroupResourcesResponse) ((Maybe [PendingResource] -> f (Maybe [PendingResource]))
-> UngroupResourcesResponse -> f UngroupResourcesResponse)
-> ((Maybe [PendingResource] -> f (Maybe [PendingResource]))
-> Maybe [PendingResource] -> f (Maybe [PendingResource]))
-> (Maybe [PendingResource] -> f (Maybe [PendingResource]))
-> UngroupResourcesResponse
-> f UngroupResourcesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[PendingResource]
[PendingResource]
[PendingResource]
[PendingResource]
-> Iso
(Maybe [PendingResource])
(Maybe [PendingResource])
(Maybe [PendingResource])
(Maybe [PendingResource])
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
[PendingResource]
[PendingResource]
[PendingResource]
[PendingResource]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
ungroupResourcesResponse_succeeded :: Lens.Lens' UngroupResourcesResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
ungroupResourcesResponse_succeeded :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UngroupResourcesResponse -> f UngroupResourcesResponse
ungroupResourcesResponse_succeeded = (UngroupResourcesResponse -> Maybe (NonEmpty Text))
-> (UngroupResourcesResponse
-> Maybe (NonEmpty Text) -> UngroupResourcesResponse)
-> Lens
UngroupResourcesResponse
UngroupResourcesResponse
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UngroupResourcesResponse' {Maybe (NonEmpty Text)
succeeded :: Maybe (NonEmpty Text)
$sel:succeeded:UngroupResourcesResponse' :: UngroupResourcesResponse -> Maybe (NonEmpty Text)
succeeded} -> Maybe (NonEmpty Text)
succeeded) (\s :: UngroupResourcesResponse
s@UngroupResourcesResponse' {} Maybe (NonEmpty Text)
a -> UngroupResourcesResponse
s {$sel:succeeded:UngroupResourcesResponse' :: Maybe (NonEmpty Text)
succeeded = Maybe (NonEmpty Text)
a} :: UngroupResourcesResponse) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UngroupResourcesResponse -> f UngroupResourcesResponse)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UngroupResourcesResponse
-> f UngroupResourcesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty 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
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
ungroupResourcesResponse_failed :: Lens.Lens' UngroupResourcesResponse (Prelude.Maybe [FailedResource])
ungroupResourcesResponse_failed :: (Maybe [FailedResource] -> f (Maybe [FailedResource]))
-> UngroupResourcesResponse -> f UngroupResourcesResponse
ungroupResourcesResponse_failed = (UngroupResourcesResponse -> Maybe [FailedResource])
-> (UngroupResourcesResponse
-> Maybe [FailedResource] -> UngroupResourcesResponse)
-> Lens
UngroupResourcesResponse
UngroupResourcesResponse
(Maybe [FailedResource])
(Maybe [FailedResource])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UngroupResourcesResponse' {Maybe [FailedResource]
failed :: Maybe [FailedResource]
$sel:failed:UngroupResourcesResponse' :: UngroupResourcesResponse -> Maybe [FailedResource]
failed} -> Maybe [FailedResource]
failed) (\s :: UngroupResourcesResponse
s@UngroupResourcesResponse' {} Maybe [FailedResource]
a -> UngroupResourcesResponse
s {$sel:failed:UngroupResourcesResponse' :: Maybe [FailedResource]
failed = Maybe [FailedResource]
a} :: UngroupResourcesResponse) ((Maybe [FailedResource] -> f (Maybe [FailedResource]))
-> UngroupResourcesResponse -> f UngroupResourcesResponse)
-> ((Maybe [FailedResource] -> f (Maybe [FailedResource]))
-> Maybe [FailedResource] -> f (Maybe [FailedResource]))
-> (Maybe [FailedResource] -> f (Maybe [FailedResource]))
-> UngroupResourcesResponse
-> f UngroupResourcesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[FailedResource] [FailedResource] [FailedResource] [FailedResource]
-> Iso
(Maybe [FailedResource])
(Maybe [FailedResource])
(Maybe [FailedResource])
(Maybe [FailedResource])
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
[FailedResource] [FailedResource] [FailedResource] [FailedResource]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
ungroupResourcesResponse_httpStatus :: Lens.Lens' UngroupResourcesResponse Prelude.Int
ungroupResourcesResponse_httpStatus :: (Int -> f Int)
-> UngroupResourcesResponse -> f UngroupResourcesResponse
ungroupResourcesResponse_httpStatus = (UngroupResourcesResponse -> Int)
-> (UngroupResourcesResponse -> Int -> UngroupResourcesResponse)
-> Lens UngroupResourcesResponse UngroupResourcesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UngroupResourcesResponse' {Int
httpStatus :: Int
$sel:httpStatus:UngroupResourcesResponse' :: UngroupResourcesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UngroupResourcesResponse
s@UngroupResourcesResponse' {} Int
a -> UngroupResourcesResponse
s {$sel:httpStatus:UngroupResourcesResponse' :: Int
httpStatus = Int
a} :: UngroupResourcesResponse)
instance Prelude.NFData UngroupResourcesResponse