{-# 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.MigrationHub.DisassociateDiscoveredResource
-- 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)
--
-- Disassociate an Application Discovery Service discovered resource from a
-- migration task.
module Amazonka.MigrationHub.DisassociateDiscoveredResource
  ( -- * Creating a Request
    DisassociateDiscoveredResource (..),
    newDisassociateDiscoveredResource,

    -- * Request Lenses
    disassociateDiscoveredResource_dryRun,
    disassociateDiscoveredResource_progressUpdateStream,
    disassociateDiscoveredResource_migrationTaskName,
    disassociateDiscoveredResource_configurationId,

    -- * Destructuring the Response
    DisassociateDiscoveredResourceResponse (..),
    newDisassociateDiscoveredResourceResponse,

    -- * Response Lenses
    disassociateDiscoveredResourceResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MigrationHub.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDisassociateDiscoveredResource' smart constructor.
data DisassociateDiscoveredResource = DisassociateDiscoveredResource'
  { -- | Optional boolean flag to indicate whether any effect should take place.
    -- Used to test if the caller has permission to make the call.
    DisassociateDiscoveredResource -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
    -- | The name of the ProgressUpdateStream.
    DisassociateDiscoveredResource -> Text
progressUpdateStream :: Prelude.Text,
    -- | The identifier given to the MigrationTask. /Do not store personal data
    -- in this field./
    DisassociateDiscoveredResource -> Text
migrationTaskName :: Prelude.Text,
    -- | ConfigurationId of the Application Discovery Service resource to be
    -- disassociated.
    DisassociateDiscoveredResource -> Text
configurationId :: Prelude.Text
  }
  deriving (DisassociateDiscoveredResource
-> DisassociateDiscoveredResource -> Bool
(DisassociateDiscoveredResource
 -> DisassociateDiscoveredResource -> Bool)
-> (DisassociateDiscoveredResource
    -> DisassociateDiscoveredResource -> Bool)
-> Eq DisassociateDiscoveredResource
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateDiscoveredResource
-> DisassociateDiscoveredResource -> Bool
$c/= :: DisassociateDiscoveredResource
-> DisassociateDiscoveredResource -> Bool
== :: DisassociateDiscoveredResource
-> DisassociateDiscoveredResource -> Bool
$c== :: DisassociateDiscoveredResource
-> DisassociateDiscoveredResource -> Bool
Prelude.Eq, ReadPrec [DisassociateDiscoveredResource]
ReadPrec DisassociateDiscoveredResource
Int -> ReadS DisassociateDiscoveredResource
ReadS [DisassociateDiscoveredResource]
(Int -> ReadS DisassociateDiscoveredResource)
-> ReadS [DisassociateDiscoveredResource]
-> ReadPrec DisassociateDiscoveredResource
-> ReadPrec [DisassociateDiscoveredResource]
-> Read DisassociateDiscoveredResource
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateDiscoveredResource]
$creadListPrec :: ReadPrec [DisassociateDiscoveredResource]
readPrec :: ReadPrec DisassociateDiscoveredResource
$creadPrec :: ReadPrec DisassociateDiscoveredResource
readList :: ReadS [DisassociateDiscoveredResource]
$creadList :: ReadS [DisassociateDiscoveredResource]
readsPrec :: Int -> ReadS DisassociateDiscoveredResource
$creadsPrec :: Int -> ReadS DisassociateDiscoveredResource
Prelude.Read, Int -> DisassociateDiscoveredResource -> ShowS
[DisassociateDiscoveredResource] -> ShowS
DisassociateDiscoveredResource -> String
(Int -> DisassociateDiscoveredResource -> ShowS)
-> (DisassociateDiscoveredResource -> String)
-> ([DisassociateDiscoveredResource] -> ShowS)
-> Show DisassociateDiscoveredResource
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateDiscoveredResource] -> ShowS
$cshowList :: [DisassociateDiscoveredResource] -> ShowS
show :: DisassociateDiscoveredResource -> String
$cshow :: DisassociateDiscoveredResource -> String
showsPrec :: Int -> DisassociateDiscoveredResource -> ShowS
$cshowsPrec :: Int -> DisassociateDiscoveredResource -> ShowS
Prelude.Show, (forall x.
 DisassociateDiscoveredResource
 -> Rep DisassociateDiscoveredResource x)
-> (forall x.
    Rep DisassociateDiscoveredResource x
    -> DisassociateDiscoveredResource)
-> Generic DisassociateDiscoveredResource
forall x.
Rep DisassociateDiscoveredResource x
-> DisassociateDiscoveredResource
forall x.
DisassociateDiscoveredResource
-> Rep DisassociateDiscoveredResource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateDiscoveredResource x
-> DisassociateDiscoveredResource
$cfrom :: forall x.
DisassociateDiscoveredResource
-> Rep DisassociateDiscoveredResource x
Prelude.Generic)

-- |
-- Create a value of 'DisassociateDiscoveredResource' 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:
--
-- 'dryRun', 'disassociateDiscoveredResource_dryRun' - Optional boolean flag to indicate whether any effect should take place.
-- Used to test if the caller has permission to make the call.
--
-- 'progressUpdateStream', 'disassociateDiscoveredResource_progressUpdateStream' - The name of the ProgressUpdateStream.
--
-- 'migrationTaskName', 'disassociateDiscoveredResource_migrationTaskName' - The identifier given to the MigrationTask. /Do not store personal data
-- in this field./
--
-- 'configurationId', 'disassociateDiscoveredResource_configurationId' - ConfigurationId of the Application Discovery Service resource to be
-- disassociated.
newDisassociateDiscoveredResource ::
  -- | 'progressUpdateStream'
  Prelude.Text ->
  -- | 'migrationTaskName'
  Prelude.Text ->
  -- | 'configurationId'
  Prelude.Text ->
  DisassociateDiscoveredResource
newDisassociateDiscoveredResource :: Text -> Text -> Text -> DisassociateDiscoveredResource
newDisassociateDiscoveredResource
  Text
pProgressUpdateStream_
  Text
pMigrationTaskName_
  Text
pConfigurationId_ =
    DisassociateDiscoveredResource' :: Maybe Bool
-> Text -> Text -> Text -> DisassociateDiscoveredResource
DisassociateDiscoveredResource'
      { $sel:dryRun:DisassociateDiscoveredResource' :: Maybe Bool
dryRun =
          Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:progressUpdateStream:DisassociateDiscoveredResource' :: Text
progressUpdateStream =
          Text
pProgressUpdateStream_,
        $sel:migrationTaskName:DisassociateDiscoveredResource' :: Text
migrationTaskName = Text
pMigrationTaskName_,
        $sel:configurationId:DisassociateDiscoveredResource' :: Text
configurationId = Text
pConfigurationId_
      }

-- | Optional boolean flag to indicate whether any effect should take place.
-- Used to test if the caller has permission to make the call.
disassociateDiscoveredResource_dryRun :: Lens.Lens' DisassociateDiscoveredResource (Prelude.Maybe Prelude.Bool)
disassociateDiscoveredResource_dryRun :: (Maybe Bool -> f (Maybe Bool))
-> DisassociateDiscoveredResource
-> f DisassociateDiscoveredResource
disassociateDiscoveredResource_dryRun = (DisassociateDiscoveredResource -> Maybe Bool)
-> (DisassociateDiscoveredResource
    -> Maybe Bool -> DisassociateDiscoveredResource)
-> Lens
     DisassociateDiscoveredResource
     DisassociateDiscoveredResource
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateDiscoveredResource' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:DisassociateDiscoveredResource' :: DisassociateDiscoveredResource -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: DisassociateDiscoveredResource
s@DisassociateDiscoveredResource' {} Maybe Bool
a -> DisassociateDiscoveredResource
s {$sel:dryRun:DisassociateDiscoveredResource' :: Maybe Bool
dryRun = Maybe Bool
a} :: DisassociateDiscoveredResource)

-- | The name of the ProgressUpdateStream.
disassociateDiscoveredResource_progressUpdateStream :: Lens.Lens' DisassociateDiscoveredResource Prelude.Text
disassociateDiscoveredResource_progressUpdateStream :: (Text -> f Text)
-> DisassociateDiscoveredResource
-> f DisassociateDiscoveredResource
disassociateDiscoveredResource_progressUpdateStream = (DisassociateDiscoveredResource -> Text)
-> (DisassociateDiscoveredResource
    -> Text -> DisassociateDiscoveredResource)
-> Lens
     DisassociateDiscoveredResource
     DisassociateDiscoveredResource
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateDiscoveredResource' {Text
progressUpdateStream :: Text
$sel:progressUpdateStream:DisassociateDiscoveredResource' :: DisassociateDiscoveredResource -> Text
progressUpdateStream} -> Text
progressUpdateStream) (\s :: DisassociateDiscoveredResource
s@DisassociateDiscoveredResource' {} Text
a -> DisassociateDiscoveredResource
s {$sel:progressUpdateStream:DisassociateDiscoveredResource' :: Text
progressUpdateStream = Text
a} :: DisassociateDiscoveredResource)

-- | The identifier given to the MigrationTask. /Do not store personal data
-- in this field./
disassociateDiscoveredResource_migrationTaskName :: Lens.Lens' DisassociateDiscoveredResource Prelude.Text
disassociateDiscoveredResource_migrationTaskName :: (Text -> f Text)
-> DisassociateDiscoveredResource
-> f DisassociateDiscoveredResource
disassociateDiscoveredResource_migrationTaskName = (DisassociateDiscoveredResource -> Text)
-> (DisassociateDiscoveredResource
    -> Text -> DisassociateDiscoveredResource)
-> Lens
     DisassociateDiscoveredResource
     DisassociateDiscoveredResource
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateDiscoveredResource' {Text
migrationTaskName :: Text
$sel:migrationTaskName:DisassociateDiscoveredResource' :: DisassociateDiscoveredResource -> Text
migrationTaskName} -> Text
migrationTaskName) (\s :: DisassociateDiscoveredResource
s@DisassociateDiscoveredResource' {} Text
a -> DisassociateDiscoveredResource
s {$sel:migrationTaskName:DisassociateDiscoveredResource' :: Text
migrationTaskName = Text
a} :: DisassociateDiscoveredResource)

-- | ConfigurationId of the Application Discovery Service resource to be
-- disassociated.
disassociateDiscoveredResource_configurationId :: Lens.Lens' DisassociateDiscoveredResource Prelude.Text
disassociateDiscoveredResource_configurationId :: (Text -> f Text)
-> DisassociateDiscoveredResource
-> f DisassociateDiscoveredResource
disassociateDiscoveredResource_configurationId = (DisassociateDiscoveredResource -> Text)
-> (DisassociateDiscoveredResource
    -> Text -> DisassociateDiscoveredResource)
-> Lens
     DisassociateDiscoveredResource
     DisassociateDiscoveredResource
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateDiscoveredResource' {Text
configurationId :: Text
$sel:configurationId:DisassociateDiscoveredResource' :: DisassociateDiscoveredResource -> Text
configurationId} -> Text
configurationId) (\s :: DisassociateDiscoveredResource
s@DisassociateDiscoveredResource' {} Text
a -> DisassociateDiscoveredResource
s {$sel:configurationId:DisassociateDiscoveredResource' :: Text
configurationId = Text
a} :: DisassociateDiscoveredResource)

instance
  Core.AWSRequest
    DisassociateDiscoveredResource
  where
  type
    AWSResponse DisassociateDiscoveredResource =
      DisassociateDiscoveredResourceResponse
  request :: DisassociateDiscoveredResource
-> Request DisassociateDiscoveredResource
request = Service
-> DisassociateDiscoveredResource
-> Request DisassociateDiscoveredResource
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DisassociateDiscoveredResource
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DisassociateDiscoveredResource)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either String (AWSResponse DisassociateDiscoveredResource))
-> Logger
-> Service
-> Proxy DisassociateDiscoveredResource
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DisassociateDiscoveredResource)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> DisassociateDiscoveredResourceResponse
DisassociateDiscoveredResourceResponse'
            (Int -> DisassociateDiscoveredResourceResponse)
-> Either String Int
-> Either String DisassociateDiscoveredResourceResponse
forall (f :: * -> *) a b. Functor 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
    DisassociateDiscoveredResource

instance
  Prelude.NFData
    DisassociateDiscoveredResource

instance
  Core.ToHeaders
    DisassociateDiscoveredResource
  where
  toHeaders :: DisassociateDiscoveredResource -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DisassociateDiscoveredResource -> 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
"AWSMigrationHub.DisassociateDiscoveredResource" ::
                          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 DisassociateDiscoveredResource where
  toJSON :: DisassociateDiscoveredResource -> Value
toJSON DisassociateDiscoveredResource' {Maybe Bool
Text
configurationId :: Text
migrationTaskName :: Text
progressUpdateStream :: Text
dryRun :: Maybe Bool
$sel:configurationId:DisassociateDiscoveredResource' :: DisassociateDiscoveredResource -> Text
$sel:migrationTaskName:DisassociateDiscoveredResource' :: DisassociateDiscoveredResource -> Text
$sel:progressUpdateStream:DisassociateDiscoveredResource' :: DisassociateDiscoveredResource -> Text
$sel:dryRun:DisassociateDiscoveredResource' :: DisassociateDiscoveredResource -> Maybe Bool
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"DryRun" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
dryRun,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"ProgressUpdateStream"
                  Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
progressUpdateStream
              ),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"MigrationTaskName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
migrationTaskName),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"ConfigurationId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
configurationId)
          ]
      )

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

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

-- | /See:/ 'newDisassociateDiscoveredResourceResponse' smart constructor.
data DisassociateDiscoveredResourceResponse = DisassociateDiscoveredResourceResponse'
  { -- | The response's http status code.
    DisassociateDiscoveredResourceResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DisassociateDiscoveredResourceResponse
-> DisassociateDiscoveredResourceResponse -> Bool
(DisassociateDiscoveredResourceResponse
 -> DisassociateDiscoveredResourceResponse -> Bool)
-> (DisassociateDiscoveredResourceResponse
    -> DisassociateDiscoveredResourceResponse -> Bool)
-> Eq DisassociateDiscoveredResourceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateDiscoveredResourceResponse
-> DisassociateDiscoveredResourceResponse -> Bool
$c/= :: DisassociateDiscoveredResourceResponse
-> DisassociateDiscoveredResourceResponse -> Bool
== :: DisassociateDiscoveredResourceResponse
-> DisassociateDiscoveredResourceResponse -> Bool
$c== :: DisassociateDiscoveredResourceResponse
-> DisassociateDiscoveredResourceResponse -> Bool
Prelude.Eq, ReadPrec [DisassociateDiscoveredResourceResponse]
ReadPrec DisassociateDiscoveredResourceResponse
Int -> ReadS DisassociateDiscoveredResourceResponse
ReadS [DisassociateDiscoveredResourceResponse]
(Int -> ReadS DisassociateDiscoveredResourceResponse)
-> ReadS [DisassociateDiscoveredResourceResponse]
-> ReadPrec DisassociateDiscoveredResourceResponse
-> ReadPrec [DisassociateDiscoveredResourceResponse]
-> Read DisassociateDiscoveredResourceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateDiscoveredResourceResponse]
$creadListPrec :: ReadPrec [DisassociateDiscoveredResourceResponse]
readPrec :: ReadPrec DisassociateDiscoveredResourceResponse
$creadPrec :: ReadPrec DisassociateDiscoveredResourceResponse
readList :: ReadS [DisassociateDiscoveredResourceResponse]
$creadList :: ReadS [DisassociateDiscoveredResourceResponse]
readsPrec :: Int -> ReadS DisassociateDiscoveredResourceResponse
$creadsPrec :: Int -> ReadS DisassociateDiscoveredResourceResponse
Prelude.Read, Int -> DisassociateDiscoveredResourceResponse -> ShowS
[DisassociateDiscoveredResourceResponse] -> ShowS
DisassociateDiscoveredResourceResponse -> String
(Int -> DisassociateDiscoveredResourceResponse -> ShowS)
-> (DisassociateDiscoveredResourceResponse -> String)
-> ([DisassociateDiscoveredResourceResponse] -> ShowS)
-> Show DisassociateDiscoveredResourceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateDiscoveredResourceResponse] -> ShowS
$cshowList :: [DisassociateDiscoveredResourceResponse] -> ShowS
show :: DisassociateDiscoveredResourceResponse -> String
$cshow :: DisassociateDiscoveredResourceResponse -> String
showsPrec :: Int -> DisassociateDiscoveredResourceResponse -> ShowS
$cshowsPrec :: Int -> DisassociateDiscoveredResourceResponse -> ShowS
Prelude.Show, (forall x.
 DisassociateDiscoveredResourceResponse
 -> Rep DisassociateDiscoveredResourceResponse x)
-> (forall x.
    Rep DisassociateDiscoveredResourceResponse x
    -> DisassociateDiscoveredResourceResponse)
-> Generic DisassociateDiscoveredResourceResponse
forall x.
Rep DisassociateDiscoveredResourceResponse x
-> DisassociateDiscoveredResourceResponse
forall x.
DisassociateDiscoveredResourceResponse
-> Rep DisassociateDiscoveredResourceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateDiscoveredResourceResponse x
-> DisassociateDiscoveredResourceResponse
$cfrom :: forall x.
DisassociateDiscoveredResourceResponse
-> Rep DisassociateDiscoveredResourceResponse x
Prelude.Generic)

-- |
-- Create a value of 'DisassociateDiscoveredResourceResponse' 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:
--
-- 'httpStatus', 'disassociateDiscoveredResourceResponse_httpStatus' - The response's http status code.
newDisassociateDiscoveredResourceResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DisassociateDiscoveredResourceResponse
newDisassociateDiscoveredResourceResponse :: Int -> DisassociateDiscoveredResourceResponse
newDisassociateDiscoveredResourceResponse
  Int
pHttpStatus_ =
    DisassociateDiscoveredResourceResponse' :: Int -> DisassociateDiscoveredResourceResponse
DisassociateDiscoveredResourceResponse'
      { $sel:httpStatus:DisassociateDiscoveredResourceResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

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

instance
  Prelude.NFData
    DisassociateDiscoveredResourceResponse