{-# 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.AutoScaling.BatchPutScheduledUpdateGroupAction
(
BatchPutScheduledUpdateGroupAction (..),
newBatchPutScheduledUpdateGroupAction,
batchPutScheduledUpdateGroupAction_autoScalingGroupName,
batchPutScheduledUpdateGroupAction_scheduledUpdateGroupActions,
BatchPutScheduledUpdateGroupActionResponse (..),
newBatchPutScheduledUpdateGroupActionResponse,
batchPutScheduledUpdateGroupActionResponse_failedScheduledUpdateGroupActions,
batchPutScheduledUpdateGroupActionResponse_httpStatus,
)
where
import Amazonka.AutoScaling.Types
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 qualified Amazonka.Response as Response
data BatchPutScheduledUpdateGroupAction = BatchPutScheduledUpdateGroupAction'
{
BatchPutScheduledUpdateGroupAction -> Text
autoScalingGroupName :: Prelude.Text,
BatchPutScheduledUpdateGroupAction
-> [ScheduledUpdateGroupActionRequest]
scheduledUpdateGroupActions :: [ScheduledUpdateGroupActionRequest]
}
deriving (BatchPutScheduledUpdateGroupAction
-> BatchPutScheduledUpdateGroupAction -> Bool
(BatchPutScheduledUpdateGroupAction
-> BatchPutScheduledUpdateGroupAction -> Bool)
-> (BatchPutScheduledUpdateGroupAction
-> BatchPutScheduledUpdateGroupAction -> Bool)
-> Eq BatchPutScheduledUpdateGroupAction
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchPutScheduledUpdateGroupAction
-> BatchPutScheduledUpdateGroupAction -> Bool
$c/= :: BatchPutScheduledUpdateGroupAction
-> BatchPutScheduledUpdateGroupAction -> Bool
== :: BatchPutScheduledUpdateGroupAction
-> BatchPutScheduledUpdateGroupAction -> Bool
$c== :: BatchPutScheduledUpdateGroupAction
-> BatchPutScheduledUpdateGroupAction -> Bool
Prelude.Eq, ReadPrec [BatchPutScheduledUpdateGroupAction]
ReadPrec BatchPutScheduledUpdateGroupAction
Int -> ReadS BatchPutScheduledUpdateGroupAction
ReadS [BatchPutScheduledUpdateGroupAction]
(Int -> ReadS BatchPutScheduledUpdateGroupAction)
-> ReadS [BatchPutScheduledUpdateGroupAction]
-> ReadPrec BatchPutScheduledUpdateGroupAction
-> ReadPrec [BatchPutScheduledUpdateGroupAction]
-> Read BatchPutScheduledUpdateGroupAction
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchPutScheduledUpdateGroupAction]
$creadListPrec :: ReadPrec [BatchPutScheduledUpdateGroupAction]
readPrec :: ReadPrec BatchPutScheduledUpdateGroupAction
$creadPrec :: ReadPrec BatchPutScheduledUpdateGroupAction
readList :: ReadS [BatchPutScheduledUpdateGroupAction]
$creadList :: ReadS [BatchPutScheduledUpdateGroupAction]
readsPrec :: Int -> ReadS BatchPutScheduledUpdateGroupAction
$creadsPrec :: Int -> ReadS BatchPutScheduledUpdateGroupAction
Prelude.Read, Int -> BatchPutScheduledUpdateGroupAction -> ShowS
[BatchPutScheduledUpdateGroupAction] -> ShowS
BatchPutScheduledUpdateGroupAction -> String
(Int -> BatchPutScheduledUpdateGroupAction -> ShowS)
-> (BatchPutScheduledUpdateGroupAction -> String)
-> ([BatchPutScheduledUpdateGroupAction] -> ShowS)
-> Show BatchPutScheduledUpdateGroupAction
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchPutScheduledUpdateGroupAction] -> ShowS
$cshowList :: [BatchPutScheduledUpdateGroupAction] -> ShowS
show :: BatchPutScheduledUpdateGroupAction -> String
$cshow :: BatchPutScheduledUpdateGroupAction -> String
showsPrec :: Int -> BatchPutScheduledUpdateGroupAction -> ShowS
$cshowsPrec :: Int -> BatchPutScheduledUpdateGroupAction -> ShowS
Prelude.Show, (forall x.
BatchPutScheduledUpdateGroupAction
-> Rep BatchPutScheduledUpdateGroupAction x)
-> (forall x.
Rep BatchPutScheduledUpdateGroupAction x
-> BatchPutScheduledUpdateGroupAction)
-> Generic BatchPutScheduledUpdateGroupAction
forall x.
Rep BatchPutScheduledUpdateGroupAction x
-> BatchPutScheduledUpdateGroupAction
forall x.
BatchPutScheduledUpdateGroupAction
-> Rep BatchPutScheduledUpdateGroupAction x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchPutScheduledUpdateGroupAction x
-> BatchPutScheduledUpdateGroupAction
$cfrom :: forall x.
BatchPutScheduledUpdateGroupAction
-> Rep BatchPutScheduledUpdateGroupAction x
Prelude.Generic)
newBatchPutScheduledUpdateGroupAction ::
Prelude.Text ->
BatchPutScheduledUpdateGroupAction
newBatchPutScheduledUpdateGroupAction :: Text -> BatchPutScheduledUpdateGroupAction
newBatchPutScheduledUpdateGroupAction
Text
pAutoScalingGroupName_ =
BatchPutScheduledUpdateGroupAction' :: Text
-> [ScheduledUpdateGroupActionRequest]
-> BatchPutScheduledUpdateGroupAction
BatchPutScheduledUpdateGroupAction'
{ $sel:autoScalingGroupName:BatchPutScheduledUpdateGroupAction' :: Text
autoScalingGroupName =
Text
pAutoScalingGroupName_,
$sel:scheduledUpdateGroupActions:BatchPutScheduledUpdateGroupAction' :: [ScheduledUpdateGroupActionRequest]
scheduledUpdateGroupActions =
[ScheduledUpdateGroupActionRequest]
forall a. Monoid a => a
Prelude.mempty
}
batchPutScheduledUpdateGroupAction_autoScalingGroupName :: Lens.Lens' BatchPutScheduledUpdateGroupAction Prelude.Text
batchPutScheduledUpdateGroupAction_autoScalingGroupName :: (Text -> f Text)
-> BatchPutScheduledUpdateGroupAction
-> f BatchPutScheduledUpdateGroupAction
batchPutScheduledUpdateGroupAction_autoScalingGroupName = (BatchPutScheduledUpdateGroupAction -> Text)
-> (BatchPutScheduledUpdateGroupAction
-> Text -> BatchPutScheduledUpdateGroupAction)
-> Lens
BatchPutScheduledUpdateGroupAction
BatchPutScheduledUpdateGroupAction
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPutScheduledUpdateGroupAction' {Text
autoScalingGroupName :: Text
$sel:autoScalingGroupName:BatchPutScheduledUpdateGroupAction' :: BatchPutScheduledUpdateGroupAction -> Text
autoScalingGroupName} -> Text
autoScalingGroupName) (\s :: BatchPutScheduledUpdateGroupAction
s@BatchPutScheduledUpdateGroupAction' {} Text
a -> BatchPutScheduledUpdateGroupAction
s {$sel:autoScalingGroupName:BatchPutScheduledUpdateGroupAction' :: Text
autoScalingGroupName = Text
a} :: BatchPutScheduledUpdateGroupAction)
batchPutScheduledUpdateGroupAction_scheduledUpdateGroupActions :: Lens.Lens' BatchPutScheduledUpdateGroupAction [ScheduledUpdateGroupActionRequest]
batchPutScheduledUpdateGroupAction_scheduledUpdateGroupActions :: ([ScheduledUpdateGroupActionRequest]
-> f [ScheduledUpdateGroupActionRequest])
-> BatchPutScheduledUpdateGroupAction
-> f BatchPutScheduledUpdateGroupAction
batchPutScheduledUpdateGroupAction_scheduledUpdateGroupActions = (BatchPutScheduledUpdateGroupAction
-> [ScheduledUpdateGroupActionRequest])
-> (BatchPutScheduledUpdateGroupAction
-> [ScheduledUpdateGroupActionRequest]
-> BatchPutScheduledUpdateGroupAction)
-> Lens
BatchPutScheduledUpdateGroupAction
BatchPutScheduledUpdateGroupAction
[ScheduledUpdateGroupActionRequest]
[ScheduledUpdateGroupActionRequest]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPutScheduledUpdateGroupAction' {[ScheduledUpdateGroupActionRequest]
scheduledUpdateGroupActions :: [ScheduledUpdateGroupActionRequest]
$sel:scheduledUpdateGroupActions:BatchPutScheduledUpdateGroupAction' :: BatchPutScheduledUpdateGroupAction
-> [ScheduledUpdateGroupActionRequest]
scheduledUpdateGroupActions} -> [ScheduledUpdateGroupActionRequest]
scheduledUpdateGroupActions) (\s :: BatchPutScheduledUpdateGroupAction
s@BatchPutScheduledUpdateGroupAction' {} [ScheduledUpdateGroupActionRequest]
a -> BatchPutScheduledUpdateGroupAction
s {$sel:scheduledUpdateGroupActions:BatchPutScheduledUpdateGroupAction' :: [ScheduledUpdateGroupActionRequest]
scheduledUpdateGroupActions = [ScheduledUpdateGroupActionRequest]
a} :: BatchPutScheduledUpdateGroupAction) (([ScheduledUpdateGroupActionRequest]
-> f [ScheduledUpdateGroupActionRequest])
-> BatchPutScheduledUpdateGroupAction
-> f BatchPutScheduledUpdateGroupAction)
-> (([ScheduledUpdateGroupActionRequest]
-> f [ScheduledUpdateGroupActionRequest])
-> [ScheduledUpdateGroupActionRequest]
-> f [ScheduledUpdateGroupActionRequest])
-> ([ScheduledUpdateGroupActionRequest]
-> f [ScheduledUpdateGroupActionRequest])
-> BatchPutScheduledUpdateGroupAction
-> f BatchPutScheduledUpdateGroupAction
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ScheduledUpdateGroupActionRequest]
-> f [ScheduledUpdateGroupActionRequest])
-> [ScheduledUpdateGroupActionRequest]
-> f [ScheduledUpdateGroupActionRequest]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Core.AWSRequest
BatchPutScheduledUpdateGroupAction
where
type
AWSResponse BatchPutScheduledUpdateGroupAction =
BatchPutScheduledUpdateGroupActionResponse
request :: BatchPutScheduledUpdateGroupAction
-> Request BatchPutScheduledUpdateGroupAction
request = Service
-> BatchPutScheduledUpdateGroupAction
-> Request BatchPutScheduledUpdateGroupAction
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy BatchPutScheduledUpdateGroupAction
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse BatchPutScheduledUpdateGroupAction)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse BatchPutScheduledUpdateGroupAction))
-> Logger
-> Service
-> Proxy BatchPutScheduledUpdateGroupAction
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse BatchPutScheduledUpdateGroupAction)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"BatchPutScheduledUpdateGroupActionResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [FailedScheduledUpdateGroupActionRequest]
-> Int -> BatchPutScheduledUpdateGroupActionResponse
BatchPutScheduledUpdateGroupActionResponse'
(Maybe [FailedScheduledUpdateGroupActionRequest]
-> Int -> BatchPutScheduledUpdateGroupActionResponse)
-> Either String (Maybe [FailedScheduledUpdateGroupActionRequest])
-> Either
String (Int -> BatchPutScheduledUpdateGroupActionResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"FailedScheduledUpdateGroupActions"
Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node]
-> Either String (Maybe [FailedScheduledUpdateGroupActionRequest]))
-> Either String (Maybe [FailedScheduledUpdateGroupActionRequest])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [FailedScheduledUpdateGroupActionRequest])
-> [Node]
-> Either String (Maybe [FailedScheduledUpdateGroupActionRequest])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text
-> [Node]
-> Either String [FailedScheduledUpdateGroupActionRequest]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either String (Int -> BatchPutScheduledUpdateGroupActionResponse)
-> Either String Int
-> Either String BatchPutScheduledUpdateGroupActionResponse
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
BatchPutScheduledUpdateGroupAction
instance
Prelude.NFData
BatchPutScheduledUpdateGroupAction
instance
Core.ToHeaders
BatchPutScheduledUpdateGroupAction
where
toHeaders :: BatchPutScheduledUpdateGroupAction -> ResponseHeaders
toHeaders = ResponseHeaders
-> BatchPutScheduledUpdateGroupAction -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToPath
BatchPutScheduledUpdateGroupAction
where
toPath :: BatchPutScheduledUpdateGroupAction -> ByteString
toPath = ByteString -> BatchPutScheduledUpdateGroupAction -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
BatchPutScheduledUpdateGroupAction
where
toQuery :: BatchPutScheduledUpdateGroupAction -> QueryString
toQuery BatchPutScheduledUpdateGroupAction' {[ScheduledUpdateGroupActionRequest]
Text
scheduledUpdateGroupActions :: [ScheduledUpdateGroupActionRequest]
autoScalingGroupName :: Text
$sel:scheduledUpdateGroupActions:BatchPutScheduledUpdateGroupAction' :: BatchPutScheduledUpdateGroupAction
-> [ScheduledUpdateGroupActionRequest]
$sel:autoScalingGroupName:BatchPutScheduledUpdateGroupAction' :: BatchPutScheduledUpdateGroupAction -> Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"BatchPutScheduledUpdateGroupAction" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2011-01-01" :: Prelude.ByteString),
ByteString
"AutoScalingGroupName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
autoScalingGroupName,
ByteString
"ScheduledUpdateGroupActions"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ByteString -> [ScheduledUpdateGroupActionRequest] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList
ByteString
"member"
[ScheduledUpdateGroupActionRequest]
scheduledUpdateGroupActions
]
data BatchPutScheduledUpdateGroupActionResponse = BatchPutScheduledUpdateGroupActionResponse'
{
BatchPutScheduledUpdateGroupActionResponse
-> Maybe [FailedScheduledUpdateGroupActionRequest]
failedScheduledUpdateGroupActions :: Prelude.Maybe [FailedScheduledUpdateGroupActionRequest],
BatchPutScheduledUpdateGroupActionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (BatchPutScheduledUpdateGroupActionResponse
-> BatchPutScheduledUpdateGroupActionResponse -> Bool
(BatchPutScheduledUpdateGroupActionResponse
-> BatchPutScheduledUpdateGroupActionResponse -> Bool)
-> (BatchPutScheduledUpdateGroupActionResponse
-> BatchPutScheduledUpdateGroupActionResponse -> Bool)
-> Eq BatchPutScheduledUpdateGroupActionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchPutScheduledUpdateGroupActionResponse
-> BatchPutScheduledUpdateGroupActionResponse -> Bool
$c/= :: BatchPutScheduledUpdateGroupActionResponse
-> BatchPutScheduledUpdateGroupActionResponse -> Bool
== :: BatchPutScheduledUpdateGroupActionResponse
-> BatchPutScheduledUpdateGroupActionResponse -> Bool
$c== :: BatchPutScheduledUpdateGroupActionResponse
-> BatchPutScheduledUpdateGroupActionResponse -> Bool
Prelude.Eq, ReadPrec [BatchPutScheduledUpdateGroupActionResponse]
ReadPrec BatchPutScheduledUpdateGroupActionResponse
Int -> ReadS BatchPutScheduledUpdateGroupActionResponse
ReadS [BatchPutScheduledUpdateGroupActionResponse]
(Int -> ReadS BatchPutScheduledUpdateGroupActionResponse)
-> ReadS [BatchPutScheduledUpdateGroupActionResponse]
-> ReadPrec BatchPutScheduledUpdateGroupActionResponse
-> ReadPrec [BatchPutScheduledUpdateGroupActionResponse]
-> Read BatchPutScheduledUpdateGroupActionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchPutScheduledUpdateGroupActionResponse]
$creadListPrec :: ReadPrec [BatchPutScheduledUpdateGroupActionResponse]
readPrec :: ReadPrec BatchPutScheduledUpdateGroupActionResponse
$creadPrec :: ReadPrec BatchPutScheduledUpdateGroupActionResponse
readList :: ReadS [BatchPutScheduledUpdateGroupActionResponse]
$creadList :: ReadS [BatchPutScheduledUpdateGroupActionResponse]
readsPrec :: Int -> ReadS BatchPutScheduledUpdateGroupActionResponse
$creadsPrec :: Int -> ReadS BatchPutScheduledUpdateGroupActionResponse
Prelude.Read, Int -> BatchPutScheduledUpdateGroupActionResponse -> ShowS
[BatchPutScheduledUpdateGroupActionResponse] -> ShowS
BatchPutScheduledUpdateGroupActionResponse -> String
(Int -> BatchPutScheduledUpdateGroupActionResponse -> ShowS)
-> (BatchPutScheduledUpdateGroupActionResponse -> String)
-> ([BatchPutScheduledUpdateGroupActionResponse] -> ShowS)
-> Show BatchPutScheduledUpdateGroupActionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchPutScheduledUpdateGroupActionResponse] -> ShowS
$cshowList :: [BatchPutScheduledUpdateGroupActionResponse] -> ShowS
show :: BatchPutScheduledUpdateGroupActionResponse -> String
$cshow :: BatchPutScheduledUpdateGroupActionResponse -> String
showsPrec :: Int -> BatchPutScheduledUpdateGroupActionResponse -> ShowS
$cshowsPrec :: Int -> BatchPutScheduledUpdateGroupActionResponse -> ShowS
Prelude.Show, (forall x.
BatchPutScheduledUpdateGroupActionResponse
-> Rep BatchPutScheduledUpdateGroupActionResponse x)
-> (forall x.
Rep BatchPutScheduledUpdateGroupActionResponse x
-> BatchPutScheduledUpdateGroupActionResponse)
-> Generic BatchPutScheduledUpdateGroupActionResponse
forall x.
Rep BatchPutScheduledUpdateGroupActionResponse x
-> BatchPutScheduledUpdateGroupActionResponse
forall x.
BatchPutScheduledUpdateGroupActionResponse
-> Rep BatchPutScheduledUpdateGroupActionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchPutScheduledUpdateGroupActionResponse x
-> BatchPutScheduledUpdateGroupActionResponse
$cfrom :: forall x.
BatchPutScheduledUpdateGroupActionResponse
-> Rep BatchPutScheduledUpdateGroupActionResponse x
Prelude.Generic)
newBatchPutScheduledUpdateGroupActionResponse ::
Prelude.Int ->
BatchPutScheduledUpdateGroupActionResponse
newBatchPutScheduledUpdateGroupActionResponse :: Int -> BatchPutScheduledUpdateGroupActionResponse
newBatchPutScheduledUpdateGroupActionResponse
Int
pHttpStatus_ =
BatchPutScheduledUpdateGroupActionResponse' :: Maybe [FailedScheduledUpdateGroupActionRequest]
-> Int -> BatchPutScheduledUpdateGroupActionResponse
BatchPutScheduledUpdateGroupActionResponse'
{ $sel:failedScheduledUpdateGroupActions:BatchPutScheduledUpdateGroupActionResponse' :: Maybe [FailedScheduledUpdateGroupActionRequest]
failedScheduledUpdateGroupActions =
Maybe [FailedScheduledUpdateGroupActionRequest]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchPutScheduledUpdateGroupActionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
batchPutScheduledUpdateGroupActionResponse_failedScheduledUpdateGroupActions :: Lens.Lens' BatchPutScheduledUpdateGroupActionResponse (Prelude.Maybe [FailedScheduledUpdateGroupActionRequest])
batchPutScheduledUpdateGroupActionResponse_failedScheduledUpdateGroupActions :: (Maybe [FailedScheduledUpdateGroupActionRequest]
-> f (Maybe [FailedScheduledUpdateGroupActionRequest]))
-> BatchPutScheduledUpdateGroupActionResponse
-> f BatchPutScheduledUpdateGroupActionResponse
batchPutScheduledUpdateGroupActionResponse_failedScheduledUpdateGroupActions = (BatchPutScheduledUpdateGroupActionResponse
-> Maybe [FailedScheduledUpdateGroupActionRequest])
-> (BatchPutScheduledUpdateGroupActionResponse
-> Maybe [FailedScheduledUpdateGroupActionRequest]
-> BatchPutScheduledUpdateGroupActionResponse)
-> Lens
BatchPutScheduledUpdateGroupActionResponse
BatchPutScheduledUpdateGroupActionResponse
(Maybe [FailedScheduledUpdateGroupActionRequest])
(Maybe [FailedScheduledUpdateGroupActionRequest])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPutScheduledUpdateGroupActionResponse' {Maybe [FailedScheduledUpdateGroupActionRequest]
failedScheduledUpdateGroupActions :: Maybe [FailedScheduledUpdateGroupActionRequest]
$sel:failedScheduledUpdateGroupActions:BatchPutScheduledUpdateGroupActionResponse' :: BatchPutScheduledUpdateGroupActionResponse
-> Maybe [FailedScheduledUpdateGroupActionRequest]
failedScheduledUpdateGroupActions} -> Maybe [FailedScheduledUpdateGroupActionRequest]
failedScheduledUpdateGroupActions) (\s :: BatchPutScheduledUpdateGroupActionResponse
s@BatchPutScheduledUpdateGroupActionResponse' {} Maybe [FailedScheduledUpdateGroupActionRequest]
a -> BatchPutScheduledUpdateGroupActionResponse
s {$sel:failedScheduledUpdateGroupActions:BatchPutScheduledUpdateGroupActionResponse' :: Maybe [FailedScheduledUpdateGroupActionRequest]
failedScheduledUpdateGroupActions = Maybe [FailedScheduledUpdateGroupActionRequest]
a} :: BatchPutScheduledUpdateGroupActionResponse) ((Maybe [FailedScheduledUpdateGroupActionRequest]
-> f (Maybe [FailedScheduledUpdateGroupActionRequest]))
-> BatchPutScheduledUpdateGroupActionResponse
-> f BatchPutScheduledUpdateGroupActionResponse)
-> ((Maybe [FailedScheduledUpdateGroupActionRequest]
-> f (Maybe [FailedScheduledUpdateGroupActionRequest]))
-> Maybe [FailedScheduledUpdateGroupActionRequest]
-> f (Maybe [FailedScheduledUpdateGroupActionRequest]))
-> (Maybe [FailedScheduledUpdateGroupActionRequest]
-> f (Maybe [FailedScheduledUpdateGroupActionRequest]))
-> BatchPutScheduledUpdateGroupActionResponse
-> f BatchPutScheduledUpdateGroupActionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[FailedScheduledUpdateGroupActionRequest]
[FailedScheduledUpdateGroupActionRequest]
[FailedScheduledUpdateGroupActionRequest]
[FailedScheduledUpdateGroupActionRequest]
-> Iso
(Maybe [FailedScheduledUpdateGroupActionRequest])
(Maybe [FailedScheduledUpdateGroupActionRequest])
(Maybe [FailedScheduledUpdateGroupActionRequest])
(Maybe [FailedScheduledUpdateGroupActionRequest])
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
[FailedScheduledUpdateGroupActionRequest]
[FailedScheduledUpdateGroupActionRequest]
[FailedScheduledUpdateGroupActionRequest]
[FailedScheduledUpdateGroupActionRequest]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchPutScheduledUpdateGroupActionResponse_httpStatus :: Lens.Lens' BatchPutScheduledUpdateGroupActionResponse Prelude.Int
batchPutScheduledUpdateGroupActionResponse_httpStatus :: (Int -> f Int)
-> BatchPutScheduledUpdateGroupActionResponse
-> f BatchPutScheduledUpdateGroupActionResponse
batchPutScheduledUpdateGroupActionResponse_httpStatus = (BatchPutScheduledUpdateGroupActionResponse -> Int)
-> (BatchPutScheduledUpdateGroupActionResponse
-> Int -> BatchPutScheduledUpdateGroupActionResponse)
-> Lens
BatchPutScheduledUpdateGroupActionResponse
BatchPutScheduledUpdateGroupActionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPutScheduledUpdateGroupActionResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchPutScheduledUpdateGroupActionResponse' :: BatchPutScheduledUpdateGroupActionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchPutScheduledUpdateGroupActionResponse
s@BatchPutScheduledUpdateGroupActionResponse' {} Int
a -> BatchPutScheduledUpdateGroupActionResponse
s {$sel:httpStatus:BatchPutScheduledUpdateGroupActionResponse' :: Int
httpStatus = Int
a} :: BatchPutScheduledUpdateGroupActionResponse)
instance
Prelude.NFData
BatchPutScheduledUpdateGroupActionResponse