{-# 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.BillingConductor.BatchDisassociateResourcesFromCustomLineItem
(
BatchDisassociateResourcesFromCustomLineItem (..),
newBatchDisassociateResourcesFromCustomLineItem,
batchDisassociateResourcesFromCustomLineItem_billingPeriodRange,
batchDisassociateResourcesFromCustomLineItem_targetArn,
batchDisassociateResourcesFromCustomLineItem_resourceArns,
BatchDisassociateResourcesFromCustomLineItemResponse (..),
newBatchDisassociateResourcesFromCustomLineItemResponse,
batchDisassociateResourcesFromCustomLineItemResponse_failedDisassociatedResources,
batchDisassociateResourcesFromCustomLineItemResponse_successfullyDisassociatedResources,
batchDisassociateResourcesFromCustomLineItemResponse_httpStatus,
)
where
import Amazonka.BillingConductor.Types
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 qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data BatchDisassociateResourcesFromCustomLineItem = BatchDisassociateResourcesFromCustomLineItem'
{ BatchDisassociateResourcesFromCustomLineItem
-> Maybe CustomLineItemBillingPeriodRange
billingPeriodRange :: Prelude.Maybe CustomLineItemBillingPeriodRange,
BatchDisassociateResourcesFromCustomLineItem -> Text
targetArn :: Prelude.Text,
BatchDisassociateResourcesFromCustomLineItem -> NonEmpty Text
resourceArns :: Prelude.NonEmpty Prelude.Text
}
deriving (BatchDisassociateResourcesFromCustomLineItem
-> BatchDisassociateResourcesFromCustomLineItem -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDisassociateResourcesFromCustomLineItem
-> BatchDisassociateResourcesFromCustomLineItem -> Bool
$c/= :: BatchDisassociateResourcesFromCustomLineItem
-> BatchDisassociateResourcesFromCustomLineItem -> Bool
== :: BatchDisassociateResourcesFromCustomLineItem
-> BatchDisassociateResourcesFromCustomLineItem -> Bool
$c== :: BatchDisassociateResourcesFromCustomLineItem
-> BatchDisassociateResourcesFromCustomLineItem -> Bool
Prelude.Eq, ReadPrec [BatchDisassociateResourcesFromCustomLineItem]
ReadPrec BatchDisassociateResourcesFromCustomLineItem
Int -> ReadS BatchDisassociateResourcesFromCustomLineItem
ReadS [BatchDisassociateResourcesFromCustomLineItem]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDisassociateResourcesFromCustomLineItem]
$creadListPrec :: ReadPrec [BatchDisassociateResourcesFromCustomLineItem]
readPrec :: ReadPrec BatchDisassociateResourcesFromCustomLineItem
$creadPrec :: ReadPrec BatchDisassociateResourcesFromCustomLineItem
readList :: ReadS [BatchDisassociateResourcesFromCustomLineItem]
$creadList :: ReadS [BatchDisassociateResourcesFromCustomLineItem]
readsPrec :: Int -> ReadS BatchDisassociateResourcesFromCustomLineItem
$creadsPrec :: Int -> ReadS BatchDisassociateResourcesFromCustomLineItem
Prelude.Read, Int -> BatchDisassociateResourcesFromCustomLineItem -> ShowS
[BatchDisassociateResourcesFromCustomLineItem] -> ShowS
BatchDisassociateResourcesFromCustomLineItem -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDisassociateResourcesFromCustomLineItem] -> ShowS
$cshowList :: [BatchDisassociateResourcesFromCustomLineItem] -> ShowS
show :: BatchDisassociateResourcesFromCustomLineItem -> String
$cshow :: BatchDisassociateResourcesFromCustomLineItem -> String
showsPrec :: Int -> BatchDisassociateResourcesFromCustomLineItem -> ShowS
$cshowsPrec :: Int -> BatchDisassociateResourcesFromCustomLineItem -> ShowS
Prelude.Show, forall x.
Rep BatchDisassociateResourcesFromCustomLineItem x
-> BatchDisassociateResourcesFromCustomLineItem
forall x.
BatchDisassociateResourcesFromCustomLineItem
-> Rep BatchDisassociateResourcesFromCustomLineItem x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDisassociateResourcesFromCustomLineItem x
-> BatchDisassociateResourcesFromCustomLineItem
$cfrom :: forall x.
BatchDisassociateResourcesFromCustomLineItem
-> Rep BatchDisassociateResourcesFromCustomLineItem x
Prelude.Generic)
newBatchDisassociateResourcesFromCustomLineItem ::
Prelude.Text ->
Prelude.NonEmpty Prelude.Text ->
BatchDisassociateResourcesFromCustomLineItem
newBatchDisassociateResourcesFromCustomLineItem :: Text
-> NonEmpty Text -> BatchDisassociateResourcesFromCustomLineItem
newBatchDisassociateResourcesFromCustomLineItem
Text
pTargetArn_
NonEmpty Text
pResourceArns_ =
BatchDisassociateResourcesFromCustomLineItem'
{ $sel:billingPeriodRange:BatchDisassociateResourcesFromCustomLineItem' :: Maybe CustomLineItemBillingPeriodRange
billingPeriodRange =
forall a. Maybe a
Prelude.Nothing,
$sel:targetArn:BatchDisassociateResourcesFromCustomLineItem' :: Text
targetArn = Text
pTargetArn_,
$sel:resourceArns:BatchDisassociateResourcesFromCustomLineItem' :: NonEmpty Text
resourceArns =
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pResourceArns_
}
batchDisassociateResourcesFromCustomLineItem_billingPeriodRange :: Lens.Lens' BatchDisassociateResourcesFromCustomLineItem (Prelude.Maybe CustomLineItemBillingPeriodRange)
batchDisassociateResourcesFromCustomLineItem_billingPeriodRange :: Lens'
BatchDisassociateResourcesFromCustomLineItem
(Maybe CustomLineItemBillingPeriodRange)
batchDisassociateResourcesFromCustomLineItem_billingPeriodRange = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateResourcesFromCustomLineItem' {Maybe CustomLineItemBillingPeriodRange
billingPeriodRange :: Maybe CustomLineItemBillingPeriodRange
$sel:billingPeriodRange:BatchDisassociateResourcesFromCustomLineItem' :: BatchDisassociateResourcesFromCustomLineItem
-> Maybe CustomLineItemBillingPeriodRange
billingPeriodRange} -> Maybe CustomLineItemBillingPeriodRange
billingPeriodRange) (\s :: BatchDisassociateResourcesFromCustomLineItem
s@BatchDisassociateResourcesFromCustomLineItem' {} Maybe CustomLineItemBillingPeriodRange
a -> BatchDisassociateResourcesFromCustomLineItem
s {$sel:billingPeriodRange:BatchDisassociateResourcesFromCustomLineItem' :: Maybe CustomLineItemBillingPeriodRange
billingPeriodRange = Maybe CustomLineItemBillingPeriodRange
a} :: BatchDisassociateResourcesFromCustomLineItem)
batchDisassociateResourcesFromCustomLineItem_targetArn :: Lens.Lens' BatchDisassociateResourcesFromCustomLineItem Prelude.Text
batchDisassociateResourcesFromCustomLineItem_targetArn :: Lens' BatchDisassociateResourcesFromCustomLineItem Text
batchDisassociateResourcesFromCustomLineItem_targetArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateResourcesFromCustomLineItem' {Text
targetArn :: Text
$sel:targetArn:BatchDisassociateResourcesFromCustomLineItem' :: BatchDisassociateResourcesFromCustomLineItem -> Text
targetArn} -> Text
targetArn) (\s :: BatchDisassociateResourcesFromCustomLineItem
s@BatchDisassociateResourcesFromCustomLineItem' {} Text
a -> BatchDisassociateResourcesFromCustomLineItem
s {$sel:targetArn:BatchDisassociateResourcesFromCustomLineItem' :: Text
targetArn = Text
a} :: BatchDisassociateResourcesFromCustomLineItem)
batchDisassociateResourcesFromCustomLineItem_resourceArns :: Lens.Lens' BatchDisassociateResourcesFromCustomLineItem (Prelude.NonEmpty Prelude.Text)
batchDisassociateResourcesFromCustomLineItem_resourceArns :: Lens' BatchDisassociateResourcesFromCustomLineItem (NonEmpty Text)
batchDisassociateResourcesFromCustomLineItem_resourceArns = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateResourcesFromCustomLineItem' {NonEmpty Text
resourceArns :: NonEmpty Text
$sel:resourceArns:BatchDisassociateResourcesFromCustomLineItem' :: BatchDisassociateResourcesFromCustomLineItem -> NonEmpty Text
resourceArns} -> NonEmpty Text
resourceArns) (\s :: BatchDisassociateResourcesFromCustomLineItem
s@BatchDisassociateResourcesFromCustomLineItem' {} NonEmpty Text
a -> BatchDisassociateResourcesFromCustomLineItem
s {$sel:resourceArns:BatchDisassociateResourcesFromCustomLineItem' :: NonEmpty Text
resourceArns = NonEmpty Text
a} :: BatchDisassociateResourcesFromCustomLineItem) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Core.AWSRequest
BatchDisassociateResourcesFromCustomLineItem
where
type
AWSResponse
BatchDisassociateResourcesFromCustomLineItem =
BatchDisassociateResourcesFromCustomLineItemResponse
request :: (Service -> Service)
-> BatchDisassociateResourcesFromCustomLineItem
-> Request BatchDisassociateResourcesFromCustomLineItem
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy BatchDisassociateResourcesFromCustomLineItem
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse BatchDisassociateResourcesFromCustomLineItem)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [DisassociateResourceResponseElement]
-> Maybe [DisassociateResourceResponseElement]
-> Int
-> BatchDisassociateResourcesFromCustomLineItemResponse
BatchDisassociateResourcesFromCustomLineItemResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"FailedDisassociatedResources"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ 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 -> Either String (Maybe a)
Data..?> Key
"SuccessfullyDisassociatedResources"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
BatchDisassociateResourcesFromCustomLineItem
where
hashWithSalt :: Int -> BatchDisassociateResourcesFromCustomLineItem -> Int
hashWithSalt
Int
_salt
BatchDisassociateResourcesFromCustomLineItem' {Maybe CustomLineItemBillingPeriodRange
NonEmpty Text
Text
resourceArns :: NonEmpty Text
targetArn :: Text
billingPeriodRange :: Maybe CustomLineItemBillingPeriodRange
$sel:resourceArns:BatchDisassociateResourcesFromCustomLineItem' :: BatchDisassociateResourcesFromCustomLineItem -> NonEmpty Text
$sel:targetArn:BatchDisassociateResourcesFromCustomLineItem' :: BatchDisassociateResourcesFromCustomLineItem -> Text
$sel:billingPeriodRange:BatchDisassociateResourcesFromCustomLineItem' :: BatchDisassociateResourcesFromCustomLineItem
-> Maybe CustomLineItemBillingPeriodRange
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CustomLineItemBillingPeriodRange
billingPeriodRange
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
targetArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` NonEmpty Text
resourceArns
instance
Prelude.NFData
BatchDisassociateResourcesFromCustomLineItem
where
rnf :: BatchDisassociateResourcesFromCustomLineItem -> ()
rnf BatchDisassociateResourcesFromCustomLineItem' {Maybe CustomLineItemBillingPeriodRange
NonEmpty Text
Text
resourceArns :: NonEmpty Text
targetArn :: Text
billingPeriodRange :: Maybe CustomLineItemBillingPeriodRange
$sel:resourceArns:BatchDisassociateResourcesFromCustomLineItem' :: BatchDisassociateResourcesFromCustomLineItem -> NonEmpty Text
$sel:targetArn:BatchDisassociateResourcesFromCustomLineItem' :: BatchDisassociateResourcesFromCustomLineItem -> Text
$sel:billingPeriodRange:BatchDisassociateResourcesFromCustomLineItem' :: BatchDisassociateResourcesFromCustomLineItem
-> Maybe CustomLineItemBillingPeriodRange
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe CustomLineItemBillingPeriodRange
billingPeriodRange
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
targetArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf NonEmpty Text
resourceArns
instance
Data.ToHeaders
BatchDisassociateResourcesFromCustomLineItem
where
toHeaders :: BatchDisassociateResourcesFromCustomLineItem -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance
Data.ToJSON
BatchDisassociateResourcesFromCustomLineItem
where
toJSON :: BatchDisassociateResourcesFromCustomLineItem -> Value
toJSON
BatchDisassociateResourcesFromCustomLineItem' {Maybe CustomLineItemBillingPeriodRange
NonEmpty Text
Text
resourceArns :: NonEmpty Text
targetArn :: Text
billingPeriodRange :: Maybe CustomLineItemBillingPeriodRange
$sel:resourceArns:BatchDisassociateResourcesFromCustomLineItem' :: BatchDisassociateResourcesFromCustomLineItem -> NonEmpty Text
$sel:targetArn:BatchDisassociateResourcesFromCustomLineItem' :: BatchDisassociateResourcesFromCustomLineItem -> Text
$sel:billingPeriodRange:BatchDisassociateResourcesFromCustomLineItem' :: BatchDisassociateResourcesFromCustomLineItem
-> Maybe CustomLineItemBillingPeriodRange
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"BillingPeriodRange" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CustomLineItemBillingPeriodRange
billingPeriodRange,
forall a. a -> Maybe a
Prelude.Just (Key
"TargetArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
targetArn),
forall a. a -> Maybe a
Prelude.Just (Key
"ResourceArns" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= NonEmpty Text
resourceArns)
]
)
instance
Data.ToPath
BatchDisassociateResourcesFromCustomLineItem
where
toPath :: BatchDisassociateResourcesFromCustomLineItem -> ByteString
toPath =
forall a b. a -> b -> a
Prelude.const
ByteString
"/batch-disassociate-resources-from-custom-line-item"
instance
Data.ToQuery
BatchDisassociateResourcesFromCustomLineItem
where
toQuery :: BatchDisassociateResourcesFromCustomLineItem -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data BatchDisassociateResourcesFromCustomLineItemResponse = BatchDisassociateResourcesFromCustomLineItemResponse'
{
BatchDisassociateResourcesFromCustomLineItemResponse
-> Maybe [DisassociateResourceResponseElement]
failedDisassociatedResources :: Prelude.Maybe [DisassociateResourceResponseElement],
BatchDisassociateResourcesFromCustomLineItemResponse
-> Maybe [DisassociateResourceResponseElement]
successfullyDisassociatedResources :: Prelude.Maybe [DisassociateResourceResponseElement],
BatchDisassociateResourcesFromCustomLineItemResponse -> Int
httpStatus :: Prelude.Int
}
deriving (BatchDisassociateResourcesFromCustomLineItemResponse
-> BatchDisassociateResourcesFromCustomLineItemResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDisassociateResourcesFromCustomLineItemResponse
-> BatchDisassociateResourcesFromCustomLineItemResponse -> Bool
$c/= :: BatchDisassociateResourcesFromCustomLineItemResponse
-> BatchDisassociateResourcesFromCustomLineItemResponse -> Bool
== :: BatchDisassociateResourcesFromCustomLineItemResponse
-> BatchDisassociateResourcesFromCustomLineItemResponse -> Bool
$c== :: BatchDisassociateResourcesFromCustomLineItemResponse
-> BatchDisassociateResourcesFromCustomLineItemResponse -> Bool
Prelude.Eq, ReadPrec [BatchDisassociateResourcesFromCustomLineItemResponse]
ReadPrec BatchDisassociateResourcesFromCustomLineItemResponse
Int -> ReadS BatchDisassociateResourcesFromCustomLineItemResponse
ReadS [BatchDisassociateResourcesFromCustomLineItemResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDisassociateResourcesFromCustomLineItemResponse]
$creadListPrec :: ReadPrec [BatchDisassociateResourcesFromCustomLineItemResponse]
readPrec :: ReadPrec BatchDisassociateResourcesFromCustomLineItemResponse
$creadPrec :: ReadPrec BatchDisassociateResourcesFromCustomLineItemResponse
readList :: ReadS [BatchDisassociateResourcesFromCustomLineItemResponse]
$creadList :: ReadS [BatchDisassociateResourcesFromCustomLineItemResponse]
readsPrec :: Int -> ReadS BatchDisassociateResourcesFromCustomLineItemResponse
$creadsPrec :: Int -> ReadS BatchDisassociateResourcesFromCustomLineItemResponse
Prelude.Read, Int
-> BatchDisassociateResourcesFromCustomLineItemResponse -> ShowS
[BatchDisassociateResourcesFromCustomLineItemResponse] -> ShowS
BatchDisassociateResourcesFromCustomLineItemResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDisassociateResourcesFromCustomLineItemResponse] -> ShowS
$cshowList :: [BatchDisassociateResourcesFromCustomLineItemResponse] -> ShowS
show :: BatchDisassociateResourcesFromCustomLineItemResponse -> String
$cshow :: BatchDisassociateResourcesFromCustomLineItemResponse -> String
showsPrec :: Int
-> BatchDisassociateResourcesFromCustomLineItemResponse -> ShowS
$cshowsPrec :: Int
-> BatchDisassociateResourcesFromCustomLineItemResponse -> ShowS
Prelude.Show, forall x.
Rep BatchDisassociateResourcesFromCustomLineItemResponse x
-> BatchDisassociateResourcesFromCustomLineItemResponse
forall x.
BatchDisassociateResourcesFromCustomLineItemResponse
-> Rep BatchDisassociateResourcesFromCustomLineItemResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDisassociateResourcesFromCustomLineItemResponse x
-> BatchDisassociateResourcesFromCustomLineItemResponse
$cfrom :: forall x.
BatchDisassociateResourcesFromCustomLineItemResponse
-> Rep BatchDisassociateResourcesFromCustomLineItemResponse x
Prelude.Generic)
newBatchDisassociateResourcesFromCustomLineItemResponse ::
Prelude.Int ->
BatchDisassociateResourcesFromCustomLineItemResponse
newBatchDisassociateResourcesFromCustomLineItemResponse :: Int -> BatchDisassociateResourcesFromCustomLineItemResponse
newBatchDisassociateResourcesFromCustomLineItemResponse
Int
pHttpStatus_ =
BatchDisassociateResourcesFromCustomLineItemResponse'
{ $sel:failedDisassociatedResources:BatchDisassociateResourcesFromCustomLineItemResponse' :: Maybe [DisassociateResourceResponseElement]
failedDisassociatedResources =
forall a. Maybe a
Prelude.Nothing,
$sel:successfullyDisassociatedResources:BatchDisassociateResourcesFromCustomLineItemResponse' :: Maybe [DisassociateResourceResponseElement]
successfullyDisassociatedResources =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchDisassociateResourcesFromCustomLineItemResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
batchDisassociateResourcesFromCustomLineItemResponse_failedDisassociatedResources :: Lens.Lens' BatchDisassociateResourcesFromCustomLineItemResponse (Prelude.Maybe [DisassociateResourceResponseElement])
batchDisassociateResourcesFromCustomLineItemResponse_failedDisassociatedResources :: Lens'
BatchDisassociateResourcesFromCustomLineItemResponse
(Maybe [DisassociateResourceResponseElement])
batchDisassociateResourcesFromCustomLineItemResponse_failedDisassociatedResources = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateResourcesFromCustomLineItemResponse' {Maybe [DisassociateResourceResponseElement]
failedDisassociatedResources :: Maybe [DisassociateResourceResponseElement]
$sel:failedDisassociatedResources:BatchDisassociateResourcesFromCustomLineItemResponse' :: BatchDisassociateResourcesFromCustomLineItemResponse
-> Maybe [DisassociateResourceResponseElement]
failedDisassociatedResources} -> Maybe [DisassociateResourceResponseElement]
failedDisassociatedResources) (\s :: BatchDisassociateResourcesFromCustomLineItemResponse
s@BatchDisassociateResourcesFromCustomLineItemResponse' {} Maybe [DisassociateResourceResponseElement]
a -> BatchDisassociateResourcesFromCustomLineItemResponse
s {$sel:failedDisassociatedResources:BatchDisassociateResourcesFromCustomLineItemResponse' :: Maybe [DisassociateResourceResponseElement]
failedDisassociatedResources = Maybe [DisassociateResourceResponseElement]
a} :: BatchDisassociateResourcesFromCustomLineItemResponse) 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
batchDisassociateResourcesFromCustomLineItemResponse_successfullyDisassociatedResources :: Lens.Lens' BatchDisassociateResourcesFromCustomLineItemResponse (Prelude.Maybe [DisassociateResourceResponseElement])
batchDisassociateResourcesFromCustomLineItemResponse_successfullyDisassociatedResources :: Lens'
BatchDisassociateResourcesFromCustomLineItemResponse
(Maybe [DisassociateResourceResponseElement])
batchDisassociateResourcesFromCustomLineItemResponse_successfullyDisassociatedResources = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateResourcesFromCustomLineItemResponse' {Maybe [DisassociateResourceResponseElement]
successfullyDisassociatedResources :: Maybe [DisassociateResourceResponseElement]
$sel:successfullyDisassociatedResources:BatchDisassociateResourcesFromCustomLineItemResponse' :: BatchDisassociateResourcesFromCustomLineItemResponse
-> Maybe [DisassociateResourceResponseElement]
successfullyDisassociatedResources} -> Maybe [DisassociateResourceResponseElement]
successfullyDisassociatedResources) (\s :: BatchDisassociateResourcesFromCustomLineItemResponse
s@BatchDisassociateResourcesFromCustomLineItemResponse' {} Maybe [DisassociateResourceResponseElement]
a -> BatchDisassociateResourcesFromCustomLineItemResponse
s {$sel:successfullyDisassociatedResources:BatchDisassociateResourcesFromCustomLineItemResponse' :: Maybe [DisassociateResourceResponseElement]
successfullyDisassociatedResources = Maybe [DisassociateResourceResponseElement]
a} :: BatchDisassociateResourcesFromCustomLineItemResponse) 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
batchDisassociateResourcesFromCustomLineItemResponse_httpStatus :: Lens.Lens' BatchDisassociateResourcesFromCustomLineItemResponse Prelude.Int
batchDisassociateResourcesFromCustomLineItemResponse_httpStatus :: Lens' BatchDisassociateResourcesFromCustomLineItemResponse Int
batchDisassociateResourcesFromCustomLineItemResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateResourcesFromCustomLineItemResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchDisassociateResourcesFromCustomLineItemResponse' :: BatchDisassociateResourcesFromCustomLineItemResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchDisassociateResourcesFromCustomLineItemResponse
s@BatchDisassociateResourcesFromCustomLineItemResponse' {} Int
a -> BatchDisassociateResourcesFromCustomLineItemResponse
s {$sel:httpStatus:BatchDisassociateResourcesFromCustomLineItemResponse' :: Int
httpStatus = Int
a} :: BatchDisassociateResourcesFromCustomLineItemResponse)
instance
Prelude.NFData
BatchDisassociateResourcesFromCustomLineItemResponse
where
rnf :: BatchDisassociateResourcesFromCustomLineItemResponse -> ()
rnf
BatchDisassociateResourcesFromCustomLineItemResponse' {Int
Maybe [DisassociateResourceResponseElement]
httpStatus :: Int
successfullyDisassociatedResources :: Maybe [DisassociateResourceResponseElement]
failedDisassociatedResources :: Maybe [DisassociateResourceResponseElement]
$sel:httpStatus:BatchDisassociateResourcesFromCustomLineItemResponse' :: BatchDisassociateResourcesFromCustomLineItemResponse -> Int
$sel:successfullyDisassociatedResources:BatchDisassociateResourcesFromCustomLineItemResponse' :: BatchDisassociateResourcesFromCustomLineItemResponse
-> Maybe [DisassociateResourceResponseElement]
$sel:failedDisassociatedResources:BatchDisassociateResourcesFromCustomLineItemResponse' :: BatchDisassociateResourcesFromCustomLineItemResponse
-> Maybe [DisassociateResourceResponseElement]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [DisassociateResourceResponseElement]
failedDisassociatedResources
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [DisassociateResourceResponseElement]
successfullyDisassociatedResources
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus