{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
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
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]
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
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.
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'
      { $sel:acceptLanguage:DisassociateServiceActionFromProvisioningArtifact' :: Maybe Text
acceptLanguage =
          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 :: Lens'
  DisassociateServiceActionFromProvisioningArtifact (Maybe Text)
disassociateServiceActionFromProvisioningArtifact_acceptLanguage = 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 :: Lens' DisassociateServiceActionFromProvisioningArtifact Text
disassociateServiceActionFromProvisioningArtifact_productId = 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 :: Lens' DisassociateServiceActionFromProvisioningArtifact Text
disassociateServiceActionFromProvisioningArtifact_provisioningArtifactId = 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 :: Lens' DisassociateServiceActionFromProvisioningArtifact Text
disassociateServiceActionFromProvisioningArtifact_serviceActionId = 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 :: (Service -> Service)
-> DisassociateServiceActionFromProvisioningArtifact
-> Request DisassociateServiceActionFromProvisioningArtifact
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DisassociateServiceActionFromProvisioningArtifact
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DisassociateServiceActionFromProvisioningArtifact)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> DisassociateServiceActionFromProvisioningArtifactResponse
DisassociateServiceActionFromProvisioningArtifactResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    DisassociateServiceActionFromProvisioningArtifact
  where
  hashWithSalt :: Int -> DisassociateServiceActionFromProvisioningArtifact -> Int
hashWithSalt
    Int
_salt
    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
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
acceptLanguage
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
productId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
provisioningArtifactId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
serviceActionId

instance
  Prelude.NFData
    DisassociateServiceActionFromProvisioningArtifact
  where
  rnf :: DisassociateServiceActionFromProvisioningArtifact -> ()
rnf
    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
..} =
      forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
acceptLanguage
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
productId
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
provisioningArtifactId
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
serviceActionId

instance
  Data.ToHeaders
    DisassociateServiceActionFromProvisioningArtifact
  where
  toHeaders :: DisassociateServiceActionFromProvisioningArtifact
-> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"AWS242ServiceCatalogService.DisassociateServiceActionFromProvisioningArtifact" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance
  Data.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
Data.object
        ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
            [ (Key
"AcceptLanguage" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
                forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
acceptLanguage,
              forall a. a -> Maybe a
Prelude.Just (Key
"ProductId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
productId),
              forall a. a -> Maybe a
Prelude.Just
                ( Key
"ProvisioningArtifactId"
                    forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
provisioningArtifactId
                ),
              forall a. a -> Maybe a
Prelude.Just
                (Key
"ServiceActionId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
serviceActionId)
            ]
        )

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

instance
  Data.ToQuery
    DisassociateServiceActionFromProvisioningArtifact
  where
  toQuery :: DisassociateServiceActionFromProvisioningArtifact -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const 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
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]
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
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.
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'
      { $sel:httpStatus:DisassociateServiceActionFromProvisioningArtifactResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

-- | The response's http status code.
disassociateServiceActionFromProvisioningArtifactResponse_httpStatus :: Lens.Lens' DisassociateServiceActionFromProvisioningArtifactResponse Prelude.Int
disassociateServiceActionFromProvisioningArtifactResponse_httpStatus :: Lens' DisassociateServiceActionFromProvisioningArtifactResponse Int
disassociateServiceActionFromProvisioningArtifactResponse_httpStatus = 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
  where
  rnf :: DisassociateServiceActionFromProvisioningArtifactResponse -> ()
rnf
    DisassociateServiceActionFromProvisioningArtifactResponse' {Int
httpStatus :: Int
$sel:httpStatus:DisassociateServiceActionFromProvisioningArtifactResponse' :: DisassociateServiceActionFromProvisioningArtifactResponse -> Int
..} =
      forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus