{-# 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.ServiceCatalog.DisassociateServiceActionFromProvisioningArtifact
-- 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)
--
-- Disassociates the specified self-service action association from the
-- specified provisioning artifact.
module Amazonka.ServiceCatalog.DisassociateServiceActionFromProvisioningArtifact
  ( -- * Creating a Request
    DisassociateServiceActionFromProvisioningArtifact (..),
    newDisassociateServiceActionFromProvisioningArtifact,

    -- * Request Lenses
    disassociateServiceActionFromProvisioningArtifact_acceptLanguage,
    disassociateServiceActionFromProvisioningArtifact_productId,
    disassociateServiceActionFromProvisioningArtifact_provisioningArtifactId,
    disassociateServiceActionFromProvisioningArtifact_serviceActionId,

    -- * Destructuring the Response
    DisassociateServiceActionFromProvisioningArtifactResponse (..),
    newDisassociateServiceActionFromProvisioningArtifactResponse,

    -- * Response Lenses
    disassociateServiceActionFromProvisioningArtifactResponse_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.ServiceCatalog.Types

-- | /See:/ 'newDisassociateServiceActionFromProvisioningArtifact' smart constructor.
data DisassociateServiceActionFromProvisioningArtifact = DisassociateServiceActionFromProvisioningArtifact'
  { -- | The language code.
    --
    -- -   @en@ - English (default)
    --
    -- -   @jp@ - Japanese
    --
    -- -   @zh@ - Chinese
    DisassociateServiceActionFromProvisioningArtifact -> Maybe Text
acceptLanguage :: Prelude.Maybe Prelude.Text,
    -- | The product identifier. For example, @prod-abcdzk7xy33qa@.
    DisassociateServiceActionFromProvisioningArtifact -> Text
productId :: Prelude.Text,
    -- | The identifier of the provisioning artifact. For example,
    -- @pa-4abcdjnxjj6ne@.
    DisassociateServiceActionFromProvisioningArtifact -> Text
provisioningArtifactId :: Prelude.Text,
    -- | The self-service action identifier. For example, @act-fs7abcd89wxyz@.
    DisassociateServiceActionFromProvisioningArtifact -> Text
serviceActionId :: Prelude.Text
  }
  deriving (DisassociateServiceActionFromProvisioningArtifact
-> DisassociateServiceActionFromProvisioningArtifact -> Bool
(DisassociateServiceActionFromProvisioningArtifact
 -> DisassociateServiceActionFromProvisioningArtifact -> Bool)
-> (DisassociateServiceActionFromProvisioningArtifact
    -> DisassociateServiceActionFromProvisioningArtifact -> Bool)
-> Eq DisassociateServiceActionFromProvisioningArtifact
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateServiceActionFromProvisioningArtifact
-> DisassociateServiceActionFromProvisioningArtifact -> Bool
$c/= :: DisassociateServiceActionFromProvisioningArtifact
-> DisassociateServiceActionFromProvisioningArtifact -> Bool
== :: DisassociateServiceActionFromProvisioningArtifact
-> DisassociateServiceActionFromProvisioningArtifact -> Bool
$c== :: DisassociateServiceActionFromProvisioningArtifact
-> DisassociateServiceActionFromProvisioningArtifact -> Bool
Prelude.Eq, ReadPrec [DisassociateServiceActionFromProvisioningArtifact]
ReadPrec DisassociateServiceActionFromProvisioningArtifact
Int -> ReadS DisassociateServiceActionFromProvisioningArtifact
ReadS [DisassociateServiceActionFromProvisioningArtifact]
(Int -> ReadS DisassociateServiceActionFromProvisioningArtifact)
-> ReadS [DisassociateServiceActionFromProvisioningArtifact]
-> ReadPrec DisassociateServiceActionFromProvisioningArtifact
-> ReadPrec [DisassociateServiceActionFromProvisioningArtifact]
-> Read DisassociateServiceActionFromProvisioningArtifact
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateServiceActionFromProvisioningArtifact]
$creadListPrec :: ReadPrec [DisassociateServiceActionFromProvisioningArtifact]
readPrec :: ReadPrec DisassociateServiceActionFromProvisioningArtifact
$creadPrec :: ReadPrec DisassociateServiceActionFromProvisioningArtifact
readList :: ReadS [DisassociateServiceActionFromProvisioningArtifact]
$creadList :: ReadS [DisassociateServiceActionFromProvisioningArtifact]
readsPrec :: Int -> ReadS DisassociateServiceActionFromProvisioningArtifact
$creadsPrec :: Int -> ReadS DisassociateServiceActionFromProvisioningArtifact
Prelude.Read, Int -> DisassociateServiceActionFromProvisioningArtifact -> ShowS
[DisassociateServiceActionFromProvisioningArtifact] -> ShowS
DisassociateServiceActionFromProvisioningArtifact -> String
(Int -> DisassociateServiceActionFromProvisioningArtifact -> ShowS)
-> (DisassociateServiceActionFromProvisioningArtifact -> String)
-> ([DisassociateServiceActionFromProvisioningArtifact] -> ShowS)
-> Show DisassociateServiceActionFromProvisioningArtifact
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateServiceActionFromProvisioningArtifact] -> ShowS
$cshowList :: [DisassociateServiceActionFromProvisioningArtifact] -> ShowS
show :: DisassociateServiceActionFromProvisioningArtifact -> String
$cshow :: DisassociateServiceActionFromProvisioningArtifact -> String
showsPrec :: Int -> DisassociateServiceActionFromProvisioningArtifact -> ShowS
$cshowsPrec :: Int -> DisassociateServiceActionFromProvisioningArtifact -> ShowS
Prelude.Show, (forall x.
 DisassociateServiceActionFromProvisioningArtifact
 -> Rep DisassociateServiceActionFromProvisioningArtifact x)
-> (forall x.
    Rep DisassociateServiceActionFromProvisioningArtifact x
    -> DisassociateServiceActionFromProvisioningArtifact)
-> Generic DisassociateServiceActionFromProvisioningArtifact
forall x.
Rep DisassociateServiceActionFromProvisioningArtifact x
-> DisassociateServiceActionFromProvisioningArtifact
forall x.
DisassociateServiceActionFromProvisioningArtifact
-> Rep DisassociateServiceActionFromProvisioningArtifact x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateServiceActionFromProvisioningArtifact x
-> DisassociateServiceActionFromProvisioningArtifact
$cfrom :: forall x.
DisassociateServiceActionFromProvisioningArtifact
-> Rep DisassociateServiceActionFromProvisioningArtifact x
Prelude.Generic)

-- |
-- Create a value of 'DisassociateServiceActionFromProvisioningArtifact' 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:
--
-- 'acceptLanguage', 'disassociateServiceActionFromProvisioningArtifact_acceptLanguage' - The language code.
--
-- -   @en@ - English (default)
--
-- -   @jp@ - Japanese
--
-- -   @zh@ - Chinese
--
-- 'productId', 'disassociateServiceActionFromProvisioningArtifact_productId' - The product identifier. For example, @prod-abcdzk7xy33qa@.
--
-- 'provisioningArtifactId', 'disassociateServiceActionFromProvisioningArtifact_provisioningArtifactId' - The identifier of the provisioning artifact. For example,
-- @pa-4abcdjnxjj6ne@.
--
-- 'serviceActionId', 'disassociateServiceActionFromProvisioningArtifact_serviceActionId' - The self-service action identifier. For example, @act-fs7abcd89wxyz@.
newDisassociateServiceActionFromProvisioningArtifact ::
  -- | 'productId'
  Prelude.Text ->
  -- | 'provisioningArtifactId'
  Prelude.Text ->
  -- | 'serviceActionId'
  Prelude.Text ->
  DisassociateServiceActionFromProvisioningArtifact
newDisassociateServiceActionFromProvisioningArtifact :: Text
-> Text
-> Text
-> DisassociateServiceActionFromProvisioningArtifact
newDisassociateServiceActionFromProvisioningArtifact
  Text
pProductId_
  Text
pProvisioningArtifactId_
  Text
pServiceActionId_ =
    DisassociateServiceActionFromProvisioningArtifact' :: Maybe Text
-> Text
-> Text
-> Text
-> DisassociateServiceActionFromProvisioningArtifact
DisassociateServiceActionFromProvisioningArtifact'
      { $sel:acceptLanguage:DisassociateServiceActionFromProvisioningArtifact' :: Maybe Text
acceptLanguage =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:productId:DisassociateServiceActionFromProvisioningArtifact' :: Text
productId = Text
pProductId_,
        $sel:provisioningArtifactId:DisassociateServiceActionFromProvisioningArtifact' :: Text
provisioningArtifactId =
          Text
pProvisioningArtifactId_,
        $sel:serviceActionId:DisassociateServiceActionFromProvisioningArtifact' :: Text
serviceActionId =
          Text
pServiceActionId_
      }

-- | The language code.
--
-- -   @en@ - English (default)
--
-- -   @jp@ - Japanese
--
-- -   @zh@ - Chinese
disassociateServiceActionFromProvisioningArtifact_acceptLanguage :: Lens.Lens' DisassociateServiceActionFromProvisioningArtifact (Prelude.Maybe Prelude.Text)
disassociateServiceActionFromProvisioningArtifact_acceptLanguage :: (Maybe Text -> f (Maybe Text))
-> DisassociateServiceActionFromProvisioningArtifact
-> f DisassociateServiceActionFromProvisioningArtifact
disassociateServiceActionFromProvisioningArtifact_acceptLanguage = (DisassociateServiceActionFromProvisioningArtifact -> Maybe Text)
-> (DisassociateServiceActionFromProvisioningArtifact
    -> Maybe Text -> DisassociateServiceActionFromProvisioningArtifact)
-> Lens
     DisassociateServiceActionFromProvisioningArtifact
     DisassociateServiceActionFromProvisioningArtifact
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateServiceActionFromProvisioningArtifact' {Maybe Text
acceptLanguage :: Maybe Text
$sel:acceptLanguage:DisassociateServiceActionFromProvisioningArtifact' :: DisassociateServiceActionFromProvisioningArtifact -> Maybe Text
acceptLanguage} -> Maybe Text
acceptLanguage) (\s :: DisassociateServiceActionFromProvisioningArtifact
s@DisassociateServiceActionFromProvisioningArtifact' {} Maybe Text
a -> DisassociateServiceActionFromProvisioningArtifact
s {$sel:acceptLanguage:DisassociateServiceActionFromProvisioningArtifact' :: Maybe Text
acceptLanguage = Maybe Text
a} :: DisassociateServiceActionFromProvisioningArtifact)

-- | The product identifier. For example, @prod-abcdzk7xy33qa@.
disassociateServiceActionFromProvisioningArtifact_productId :: Lens.Lens' DisassociateServiceActionFromProvisioningArtifact Prelude.Text
disassociateServiceActionFromProvisioningArtifact_productId :: (Text -> f Text)
-> DisassociateServiceActionFromProvisioningArtifact
-> f DisassociateServiceActionFromProvisioningArtifact
disassociateServiceActionFromProvisioningArtifact_productId = (DisassociateServiceActionFromProvisioningArtifact -> Text)
-> (DisassociateServiceActionFromProvisioningArtifact
    -> Text -> DisassociateServiceActionFromProvisioningArtifact)
-> Lens
     DisassociateServiceActionFromProvisioningArtifact
     DisassociateServiceActionFromProvisioningArtifact
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateServiceActionFromProvisioningArtifact' {Text
productId :: Text
$sel:productId:DisassociateServiceActionFromProvisioningArtifact' :: DisassociateServiceActionFromProvisioningArtifact -> Text
productId} -> Text
productId) (\s :: DisassociateServiceActionFromProvisioningArtifact
s@DisassociateServiceActionFromProvisioningArtifact' {} Text
a -> DisassociateServiceActionFromProvisioningArtifact
s {$sel:productId:DisassociateServiceActionFromProvisioningArtifact' :: Text
productId = Text
a} :: DisassociateServiceActionFromProvisioningArtifact)

-- | The identifier of the provisioning artifact. For example,
-- @pa-4abcdjnxjj6ne@.
disassociateServiceActionFromProvisioningArtifact_provisioningArtifactId :: Lens.Lens' DisassociateServiceActionFromProvisioningArtifact Prelude.Text
disassociateServiceActionFromProvisioningArtifact_provisioningArtifactId :: (Text -> f Text)
-> DisassociateServiceActionFromProvisioningArtifact
-> f DisassociateServiceActionFromProvisioningArtifact
disassociateServiceActionFromProvisioningArtifact_provisioningArtifactId = (DisassociateServiceActionFromProvisioningArtifact -> Text)
-> (DisassociateServiceActionFromProvisioningArtifact
    -> Text -> DisassociateServiceActionFromProvisioningArtifact)
-> Lens
     DisassociateServiceActionFromProvisioningArtifact
     DisassociateServiceActionFromProvisioningArtifact
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateServiceActionFromProvisioningArtifact' {Text
provisioningArtifactId :: Text
$sel:provisioningArtifactId:DisassociateServiceActionFromProvisioningArtifact' :: DisassociateServiceActionFromProvisioningArtifact -> Text
provisioningArtifactId} -> Text
provisioningArtifactId) (\s :: DisassociateServiceActionFromProvisioningArtifact
s@DisassociateServiceActionFromProvisioningArtifact' {} Text
a -> DisassociateServiceActionFromProvisioningArtifact
s {$sel:provisioningArtifactId:DisassociateServiceActionFromProvisioningArtifact' :: Text
provisioningArtifactId = Text
a} :: DisassociateServiceActionFromProvisioningArtifact)

-- | The self-service action identifier. For example, @act-fs7abcd89wxyz@.
disassociateServiceActionFromProvisioningArtifact_serviceActionId :: Lens.Lens' DisassociateServiceActionFromProvisioningArtifact Prelude.Text
disassociateServiceActionFromProvisioningArtifact_serviceActionId :: (Text -> f Text)
-> DisassociateServiceActionFromProvisioningArtifact
-> f DisassociateServiceActionFromProvisioningArtifact
disassociateServiceActionFromProvisioningArtifact_serviceActionId = (DisassociateServiceActionFromProvisioningArtifact -> Text)
-> (DisassociateServiceActionFromProvisioningArtifact
    -> Text -> DisassociateServiceActionFromProvisioningArtifact)
-> Lens
     DisassociateServiceActionFromProvisioningArtifact
     DisassociateServiceActionFromProvisioningArtifact
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateServiceActionFromProvisioningArtifact' {Text
serviceActionId :: Text
$sel:serviceActionId:DisassociateServiceActionFromProvisioningArtifact' :: DisassociateServiceActionFromProvisioningArtifact -> Text
serviceActionId} -> Text
serviceActionId) (\s :: DisassociateServiceActionFromProvisioningArtifact
s@DisassociateServiceActionFromProvisioningArtifact' {} Text
a -> DisassociateServiceActionFromProvisioningArtifact
s {$sel:serviceActionId:DisassociateServiceActionFromProvisioningArtifact' :: Text
serviceActionId = Text
a} :: DisassociateServiceActionFromProvisioningArtifact)

instance
  Core.AWSRequest
    DisassociateServiceActionFromProvisioningArtifact
  where
  type
    AWSResponse
      DisassociateServiceActionFromProvisioningArtifact =
      DisassociateServiceActionFromProvisioningArtifactResponse
  request :: DisassociateServiceActionFromProvisioningArtifact
-> Request DisassociateServiceActionFromProvisioningArtifact
request = Service
-> DisassociateServiceActionFromProvisioningArtifact
-> Request DisassociateServiceActionFromProvisioningArtifact
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DisassociateServiceActionFromProvisioningArtifact
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DisassociateServiceActionFromProvisioningArtifact)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either
      String
      (AWSResponse DisassociateServiceActionFromProvisioningArtifact))
-> Logger
-> Service
-> Proxy DisassociateServiceActionFromProvisioningArtifact
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DisassociateServiceActionFromProvisioningArtifact)))
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 -> DisassociateServiceActionFromProvisioningArtifactResponse
DisassociateServiceActionFromProvisioningArtifactResponse'
            (Int -> DisassociateServiceActionFromProvisioningArtifactResponse)
-> Either String Int
-> Either
     String DisassociateServiceActionFromProvisioningArtifactResponse
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
    DisassociateServiceActionFromProvisioningArtifact

instance
  Prelude.NFData
    DisassociateServiceActionFromProvisioningArtifact

instance
  Core.ToHeaders
    DisassociateServiceActionFromProvisioningArtifact
  where
  toHeaders :: DisassociateServiceActionFromProvisioningArtifact
-> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DisassociateServiceActionFromProvisioningArtifact
-> 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
"AWS242ServiceCatalogService.DisassociateServiceActionFromProvisioningArtifact" ::
                          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
    DisassociateServiceActionFromProvisioningArtifact
  where
  toJSON :: DisassociateServiceActionFromProvisioningArtifact -> Value
toJSON
    DisassociateServiceActionFromProvisioningArtifact' {Maybe Text
Text
serviceActionId :: Text
provisioningArtifactId :: Text
productId :: Text
acceptLanguage :: Maybe Text
$sel:serviceActionId:DisassociateServiceActionFromProvisioningArtifact' :: DisassociateServiceActionFromProvisioningArtifact -> Text
$sel:provisioningArtifactId:DisassociateServiceActionFromProvisioningArtifact' :: DisassociateServiceActionFromProvisioningArtifact -> Text
$sel:productId:DisassociateServiceActionFromProvisioningArtifact' :: DisassociateServiceActionFromProvisioningArtifact -> Text
$sel:acceptLanguage:DisassociateServiceActionFromProvisioningArtifact' :: DisassociateServiceActionFromProvisioningArtifact -> Maybe Text
..} =
      [Pair] -> Value
Core.object
        ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
            [ (Text
"AcceptLanguage" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
                (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
acceptLanguage,
              Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ProductId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
productId),
              Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
                ( Text
"ProvisioningArtifactId"
                    Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
provisioningArtifactId
                ),
              Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
                (Text
"ServiceActionId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
serviceActionId)
            ]
        )

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

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

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

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

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

instance
  Prelude.NFData
    DisassociateServiceActionFromProvisioningArtifactResponse