{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.WorkSpaces.RebootWorkspaces
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Reboots the specified WorkSpaces.
--
-- You cannot reboot a WorkSpace unless its state is @AVAILABLE@ or
-- @UNHEALTHY@.
--
-- This operation is asynchronous and returns before the WorkSpaces have
-- rebooted.
module Amazonka.WorkSpaces.RebootWorkspaces
  ( -- * Creating a Request
    RebootWorkspaces (..),
    newRebootWorkspaces,

    -- * Request Lenses
    rebootWorkspaces_rebootWorkspaceRequests,

    -- * Destructuring the Response
    RebootWorkspacesResponse (..),
    newRebootWorkspacesResponse,

    -- * Response Lenses
    rebootWorkspacesResponse_failedRequests,
    rebootWorkspacesResponse_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 qualified Amazonka.Response as Response
import Amazonka.WorkSpaces.Types

-- | /See:/ 'newRebootWorkspaces' smart constructor.
data RebootWorkspaces = RebootWorkspaces'
  { -- | The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.
    RebootWorkspaces -> NonEmpty RebootRequest
rebootWorkspaceRequests :: Prelude.NonEmpty RebootRequest
  }
  deriving (RebootWorkspaces -> RebootWorkspaces -> Bool
(RebootWorkspaces -> RebootWorkspaces -> Bool)
-> (RebootWorkspaces -> RebootWorkspaces -> Bool)
-> Eq RebootWorkspaces
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RebootWorkspaces -> RebootWorkspaces -> Bool
$c/= :: RebootWorkspaces -> RebootWorkspaces -> Bool
== :: RebootWorkspaces -> RebootWorkspaces -> Bool
$c== :: RebootWorkspaces -> RebootWorkspaces -> Bool
Prelude.Eq, ReadPrec [RebootWorkspaces]
ReadPrec RebootWorkspaces
Int -> ReadS RebootWorkspaces
ReadS [RebootWorkspaces]
(Int -> ReadS RebootWorkspaces)
-> ReadS [RebootWorkspaces]
-> ReadPrec RebootWorkspaces
-> ReadPrec [RebootWorkspaces]
-> Read RebootWorkspaces
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RebootWorkspaces]
$creadListPrec :: ReadPrec [RebootWorkspaces]
readPrec :: ReadPrec RebootWorkspaces
$creadPrec :: ReadPrec RebootWorkspaces
readList :: ReadS [RebootWorkspaces]
$creadList :: ReadS [RebootWorkspaces]
readsPrec :: Int -> ReadS RebootWorkspaces
$creadsPrec :: Int -> ReadS RebootWorkspaces
Prelude.Read, Int -> RebootWorkspaces -> ShowS
[RebootWorkspaces] -> ShowS
RebootWorkspaces -> String
(Int -> RebootWorkspaces -> ShowS)
-> (RebootWorkspaces -> String)
-> ([RebootWorkspaces] -> ShowS)
-> Show RebootWorkspaces
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RebootWorkspaces] -> ShowS
$cshowList :: [RebootWorkspaces] -> ShowS
show :: RebootWorkspaces -> String
$cshow :: RebootWorkspaces -> String
showsPrec :: Int -> RebootWorkspaces -> ShowS
$cshowsPrec :: Int -> RebootWorkspaces -> ShowS
Prelude.Show, (forall x. RebootWorkspaces -> Rep RebootWorkspaces x)
-> (forall x. Rep RebootWorkspaces x -> RebootWorkspaces)
-> Generic RebootWorkspaces
forall x. Rep RebootWorkspaces x -> RebootWorkspaces
forall x. RebootWorkspaces -> Rep RebootWorkspaces x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RebootWorkspaces x -> RebootWorkspaces
$cfrom :: forall x. RebootWorkspaces -> Rep RebootWorkspaces x
Prelude.Generic)

-- |
-- Create a value of 'RebootWorkspaces' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'rebootWorkspaceRequests', 'rebootWorkspaces_rebootWorkspaceRequests' - The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.
newRebootWorkspaces ::
  -- | 'rebootWorkspaceRequests'
  Prelude.NonEmpty RebootRequest ->
  RebootWorkspaces
newRebootWorkspaces :: NonEmpty RebootRequest -> RebootWorkspaces
newRebootWorkspaces NonEmpty RebootRequest
pRebootWorkspaceRequests_ =
  RebootWorkspaces' :: NonEmpty RebootRequest -> RebootWorkspaces
RebootWorkspaces'
    { $sel:rebootWorkspaceRequests:RebootWorkspaces' :: NonEmpty RebootRequest
rebootWorkspaceRequests =
        Tagged (NonEmpty RebootRequest) (Identity (NonEmpty RebootRequest))
-> Tagged
     (NonEmpty RebootRequest) (Identity (NonEmpty RebootRequest))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged
   (NonEmpty RebootRequest) (Identity (NonEmpty RebootRequest))
 -> Tagged
      (NonEmpty RebootRequest) (Identity (NonEmpty RebootRequest)))
-> NonEmpty RebootRequest -> NonEmpty RebootRequest
forall t b. AReview t b -> b -> t
Lens.# NonEmpty RebootRequest
pRebootWorkspaceRequests_
    }

-- | The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.
rebootWorkspaces_rebootWorkspaceRequests :: Lens.Lens' RebootWorkspaces (Prelude.NonEmpty RebootRequest)
rebootWorkspaces_rebootWorkspaceRequests :: (NonEmpty RebootRequest -> f (NonEmpty RebootRequest))
-> RebootWorkspaces -> f RebootWorkspaces
rebootWorkspaces_rebootWorkspaceRequests = (RebootWorkspaces -> NonEmpty RebootRequest)
-> (RebootWorkspaces -> NonEmpty RebootRequest -> RebootWorkspaces)
-> Lens
     RebootWorkspaces
     RebootWorkspaces
     (NonEmpty RebootRequest)
     (NonEmpty RebootRequest)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RebootWorkspaces' {NonEmpty RebootRequest
rebootWorkspaceRequests :: NonEmpty RebootRequest
$sel:rebootWorkspaceRequests:RebootWorkspaces' :: RebootWorkspaces -> NonEmpty RebootRequest
rebootWorkspaceRequests} -> NonEmpty RebootRequest
rebootWorkspaceRequests) (\s :: RebootWorkspaces
s@RebootWorkspaces' {} NonEmpty RebootRequest
a -> RebootWorkspaces
s {$sel:rebootWorkspaceRequests:RebootWorkspaces' :: NonEmpty RebootRequest
rebootWorkspaceRequests = NonEmpty RebootRequest
a} :: RebootWorkspaces) ((NonEmpty RebootRequest -> f (NonEmpty RebootRequest))
 -> RebootWorkspaces -> f RebootWorkspaces)
-> ((NonEmpty RebootRequest -> f (NonEmpty RebootRequest))
    -> NonEmpty RebootRequest -> f (NonEmpty RebootRequest))
-> (NonEmpty RebootRequest -> f (NonEmpty RebootRequest))
-> RebootWorkspaces
-> f RebootWorkspaces
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty RebootRequest -> f (NonEmpty RebootRequest))
-> NonEmpty RebootRequest -> f (NonEmpty RebootRequest)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.AWSRequest RebootWorkspaces where
  type
    AWSResponse RebootWorkspaces =
      RebootWorkspacesResponse
  request :: RebootWorkspaces -> Request RebootWorkspaces
request = Service -> RebootWorkspaces -> Request RebootWorkspaces
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy RebootWorkspaces
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse RebootWorkspaces)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse RebootWorkspaces))
-> Logger
-> Service
-> Proxy RebootWorkspaces
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse RebootWorkspaces)))
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 [FailedWorkspaceChangeRequest]
-> Int -> RebootWorkspacesResponse
RebootWorkspacesResponse'
            (Maybe [FailedWorkspaceChangeRequest]
 -> Int -> RebootWorkspacesResponse)
-> Either String (Maybe [FailedWorkspaceChangeRequest])
-> Either String (Int -> RebootWorkspacesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Key
-> Either String (Maybe (Maybe [FailedWorkspaceChangeRequest]))
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"FailedRequests" Either String (Maybe (Maybe [FailedWorkspaceChangeRequest]))
-> Maybe [FailedWorkspaceChangeRequest]
-> Either String (Maybe [FailedWorkspaceChangeRequest])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [FailedWorkspaceChangeRequest]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> RebootWorkspacesResponse)
-> Either String Int -> Either String RebootWorkspacesResponse
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 RebootWorkspaces

instance Prelude.NFData RebootWorkspaces

instance Core.ToHeaders RebootWorkspaces where
  toHeaders :: RebootWorkspaces -> ResponseHeaders
toHeaders =
    ResponseHeaders -> RebootWorkspaces -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"WorkspacesService.RebootWorkspaces" ::
                          Prelude.ByteString
                      ),
            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 RebootWorkspaces where
  toJSON :: RebootWorkspaces -> Value
toJSON RebootWorkspaces' {NonEmpty RebootRequest
rebootWorkspaceRequests :: NonEmpty RebootRequest
$sel:rebootWorkspaceRequests:RebootWorkspaces' :: RebootWorkspaces -> NonEmpty RebootRequest
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Key
"RebootWorkspaceRequests"
                  Key -> NonEmpty RebootRequest -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Core..= NonEmpty RebootRequest
rebootWorkspaceRequests
              )
          ]
      )

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

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

-- | /See:/ 'newRebootWorkspacesResponse' smart constructor.
data RebootWorkspacesResponse = RebootWorkspacesResponse'
  { -- | Information about the WorkSpaces that could not be rebooted.
    RebootWorkspacesResponse -> Maybe [FailedWorkspaceChangeRequest]
failedRequests :: Prelude.Maybe [FailedWorkspaceChangeRequest],
    -- | The response's http status code.
    RebootWorkspacesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (RebootWorkspacesResponse -> RebootWorkspacesResponse -> Bool
(RebootWorkspacesResponse -> RebootWorkspacesResponse -> Bool)
-> (RebootWorkspacesResponse -> RebootWorkspacesResponse -> Bool)
-> Eq RebootWorkspacesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RebootWorkspacesResponse -> RebootWorkspacesResponse -> Bool
$c/= :: RebootWorkspacesResponse -> RebootWorkspacesResponse -> Bool
== :: RebootWorkspacesResponse -> RebootWorkspacesResponse -> Bool
$c== :: RebootWorkspacesResponse -> RebootWorkspacesResponse -> Bool
Prelude.Eq, ReadPrec [RebootWorkspacesResponse]
ReadPrec RebootWorkspacesResponse
Int -> ReadS RebootWorkspacesResponse
ReadS [RebootWorkspacesResponse]
(Int -> ReadS RebootWorkspacesResponse)
-> ReadS [RebootWorkspacesResponse]
-> ReadPrec RebootWorkspacesResponse
-> ReadPrec [RebootWorkspacesResponse]
-> Read RebootWorkspacesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RebootWorkspacesResponse]
$creadListPrec :: ReadPrec [RebootWorkspacesResponse]
readPrec :: ReadPrec RebootWorkspacesResponse
$creadPrec :: ReadPrec RebootWorkspacesResponse
readList :: ReadS [RebootWorkspacesResponse]
$creadList :: ReadS [RebootWorkspacesResponse]
readsPrec :: Int -> ReadS RebootWorkspacesResponse
$creadsPrec :: Int -> ReadS RebootWorkspacesResponse
Prelude.Read, Int -> RebootWorkspacesResponse -> ShowS
[RebootWorkspacesResponse] -> ShowS
RebootWorkspacesResponse -> String
(Int -> RebootWorkspacesResponse -> ShowS)
-> (RebootWorkspacesResponse -> String)
-> ([RebootWorkspacesResponse] -> ShowS)
-> Show RebootWorkspacesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RebootWorkspacesResponse] -> ShowS
$cshowList :: [RebootWorkspacesResponse] -> ShowS
show :: RebootWorkspacesResponse -> String
$cshow :: RebootWorkspacesResponse -> String
showsPrec :: Int -> RebootWorkspacesResponse -> ShowS
$cshowsPrec :: Int -> RebootWorkspacesResponse -> ShowS
Prelude.Show, (forall x.
 RebootWorkspacesResponse -> Rep RebootWorkspacesResponse x)
-> (forall x.
    Rep RebootWorkspacesResponse x -> RebootWorkspacesResponse)
-> Generic RebootWorkspacesResponse
forall x.
Rep RebootWorkspacesResponse x -> RebootWorkspacesResponse
forall x.
RebootWorkspacesResponse -> Rep RebootWorkspacesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RebootWorkspacesResponse x -> RebootWorkspacesResponse
$cfrom :: forall x.
RebootWorkspacesResponse -> Rep RebootWorkspacesResponse x
Prelude.Generic)

-- |
-- Create a value of 'RebootWorkspacesResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'failedRequests', 'rebootWorkspacesResponse_failedRequests' - Information about the WorkSpaces that could not be rebooted.
--
-- 'httpStatus', 'rebootWorkspacesResponse_httpStatus' - The response's http status code.
newRebootWorkspacesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  RebootWorkspacesResponse
newRebootWorkspacesResponse :: Int -> RebootWorkspacesResponse
newRebootWorkspacesResponse Int
pHttpStatus_ =
  RebootWorkspacesResponse' :: Maybe [FailedWorkspaceChangeRequest]
-> Int -> RebootWorkspacesResponse
RebootWorkspacesResponse'
    { $sel:failedRequests:RebootWorkspacesResponse' :: Maybe [FailedWorkspaceChangeRequest]
failedRequests =
        Maybe [FailedWorkspaceChangeRequest]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:RebootWorkspacesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Information about the WorkSpaces that could not be rebooted.
rebootWorkspacesResponse_failedRequests :: Lens.Lens' RebootWorkspacesResponse (Prelude.Maybe [FailedWorkspaceChangeRequest])
rebootWorkspacesResponse_failedRequests :: (Maybe [FailedWorkspaceChangeRequest]
 -> f (Maybe [FailedWorkspaceChangeRequest]))
-> RebootWorkspacesResponse -> f RebootWorkspacesResponse
rebootWorkspacesResponse_failedRequests = (RebootWorkspacesResponse -> Maybe [FailedWorkspaceChangeRequest])
-> (RebootWorkspacesResponse
    -> Maybe [FailedWorkspaceChangeRequest]
    -> RebootWorkspacesResponse)
-> Lens
     RebootWorkspacesResponse
     RebootWorkspacesResponse
     (Maybe [FailedWorkspaceChangeRequest])
     (Maybe [FailedWorkspaceChangeRequest])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RebootWorkspacesResponse' {Maybe [FailedWorkspaceChangeRequest]
failedRequests :: Maybe [FailedWorkspaceChangeRequest]
$sel:failedRequests:RebootWorkspacesResponse' :: RebootWorkspacesResponse -> Maybe [FailedWorkspaceChangeRequest]
failedRequests} -> Maybe [FailedWorkspaceChangeRequest]
failedRequests) (\s :: RebootWorkspacesResponse
s@RebootWorkspacesResponse' {} Maybe [FailedWorkspaceChangeRequest]
a -> RebootWorkspacesResponse
s {$sel:failedRequests:RebootWorkspacesResponse' :: Maybe [FailedWorkspaceChangeRequest]
failedRequests = Maybe [FailedWorkspaceChangeRequest]
a} :: RebootWorkspacesResponse) ((Maybe [FailedWorkspaceChangeRequest]
  -> f (Maybe [FailedWorkspaceChangeRequest]))
 -> RebootWorkspacesResponse -> f RebootWorkspacesResponse)
-> ((Maybe [FailedWorkspaceChangeRequest]
     -> f (Maybe [FailedWorkspaceChangeRequest]))
    -> Maybe [FailedWorkspaceChangeRequest]
    -> f (Maybe [FailedWorkspaceChangeRequest]))
-> (Maybe [FailedWorkspaceChangeRequest]
    -> f (Maybe [FailedWorkspaceChangeRequest]))
-> RebootWorkspacesResponse
-> f RebootWorkspacesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [FailedWorkspaceChangeRequest]
  [FailedWorkspaceChangeRequest]
  [FailedWorkspaceChangeRequest]
  [FailedWorkspaceChangeRequest]
-> Iso
     (Maybe [FailedWorkspaceChangeRequest])
     (Maybe [FailedWorkspaceChangeRequest])
     (Maybe [FailedWorkspaceChangeRequest])
     (Maybe [FailedWorkspaceChangeRequest])
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
  [FailedWorkspaceChangeRequest]
  [FailedWorkspaceChangeRequest]
  [FailedWorkspaceChangeRequest]
  [FailedWorkspaceChangeRequest]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData RebootWorkspacesResponse