{-# 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.BatchDisassociateServiceActionFromProvisioningArtifact
-- 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 a batch of self-service actions from the specified
-- provisioning artifact.
module Amazonka.ServiceCatalog.BatchDisassociateServiceActionFromProvisioningArtifact
  ( -- * Creating a Request
    BatchDisassociateServiceActionFromProvisioningArtifact (..),
    newBatchDisassociateServiceActionFromProvisioningArtifact,

    -- * Request Lenses
    batchDisassociateServiceActionFromProvisioningArtifact_acceptLanguage,
    batchDisassociateServiceActionFromProvisioningArtifact_serviceActionAssociations,

    -- * Destructuring the Response
    BatchDisassociateServiceActionFromProvisioningArtifactResponse (..),
    newBatchDisassociateServiceActionFromProvisioningArtifactResponse,

    -- * Response Lenses
    batchDisassociateServiceActionFromProvisioningArtifactResponse_failedServiceActionAssociations,
    batchDisassociateServiceActionFromProvisioningArtifactResponse_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:/ 'newBatchDisassociateServiceActionFromProvisioningArtifact' smart constructor.
data BatchDisassociateServiceActionFromProvisioningArtifact = BatchDisassociateServiceActionFromProvisioningArtifact'
  { -- | The language code.
    --
    -- -   @en@ - English (default)
    --
    -- -   @jp@ - Japanese
    --
    -- -   @zh@ - Chinese
    BatchDisassociateServiceActionFromProvisioningArtifact
-> Maybe Text
acceptLanguage :: Prelude.Maybe Prelude.Text,
    -- | One or more associations, each consisting of the Action ID, the Product
    -- ID, and the Provisioning Artifact ID.
    BatchDisassociateServiceActionFromProvisioningArtifact
-> NonEmpty ServiceActionAssociation
serviceActionAssociations :: Prelude.NonEmpty ServiceActionAssociation
  }
  deriving (BatchDisassociateServiceActionFromProvisioningArtifact
-> BatchDisassociateServiceActionFromProvisioningArtifact -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDisassociateServiceActionFromProvisioningArtifact
-> BatchDisassociateServiceActionFromProvisioningArtifact -> Bool
$c/= :: BatchDisassociateServiceActionFromProvisioningArtifact
-> BatchDisassociateServiceActionFromProvisioningArtifact -> Bool
== :: BatchDisassociateServiceActionFromProvisioningArtifact
-> BatchDisassociateServiceActionFromProvisioningArtifact -> Bool
$c== :: BatchDisassociateServiceActionFromProvisioningArtifact
-> BatchDisassociateServiceActionFromProvisioningArtifact -> Bool
Prelude.Eq, ReadPrec [BatchDisassociateServiceActionFromProvisioningArtifact]
ReadPrec BatchDisassociateServiceActionFromProvisioningArtifact
Int -> ReadS BatchDisassociateServiceActionFromProvisioningArtifact
ReadS [BatchDisassociateServiceActionFromProvisioningArtifact]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDisassociateServiceActionFromProvisioningArtifact]
$creadListPrec :: ReadPrec [BatchDisassociateServiceActionFromProvisioningArtifact]
readPrec :: ReadPrec BatchDisassociateServiceActionFromProvisioningArtifact
$creadPrec :: ReadPrec BatchDisassociateServiceActionFromProvisioningArtifact
readList :: ReadS [BatchDisassociateServiceActionFromProvisioningArtifact]
$creadList :: ReadS [BatchDisassociateServiceActionFromProvisioningArtifact]
readsPrec :: Int -> ReadS BatchDisassociateServiceActionFromProvisioningArtifact
$creadsPrec :: Int -> ReadS BatchDisassociateServiceActionFromProvisioningArtifact
Prelude.Read, Int
-> BatchDisassociateServiceActionFromProvisioningArtifact -> ShowS
[BatchDisassociateServiceActionFromProvisioningArtifact] -> ShowS
BatchDisassociateServiceActionFromProvisioningArtifact -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDisassociateServiceActionFromProvisioningArtifact] -> ShowS
$cshowList :: [BatchDisassociateServiceActionFromProvisioningArtifact] -> ShowS
show :: BatchDisassociateServiceActionFromProvisioningArtifact -> String
$cshow :: BatchDisassociateServiceActionFromProvisioningArtifact -> String
showsPrec :: Int
-> BatchDisassociateServiceActionFromProvisioningArtifact -> ShowS
$cshowsPrec :: Int
-> BatchDisassociateServiceActionFromProvisioningArtifact -> ShowS
Prelude.Show, forall x.
Rep BatchDisassociateServiceActionFromProvisioningArtifact x
-> BatchDisassociateServiceActionFromProvisioningArtifact
forall x.
BatchDisassociateServiceActionFromProvisioningArtifact
-> Rep BatchDisassociateServiceActionFromProvisioningArtifact x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDisassociateServiceActionFromProvisioningArtifact x
-> BatchDisassociateServiceActionFromProvisioningArtifact
$cfrom :: forall x.
BatchDisassociateServiceActionFromProvisioningArtifact
-> Rep BatchDisassociateServiceActionFromProvisioningArtifact x
Prelude.Generic)

-- |
-- Create a value of 'BatchDisassociateServiceActionFromProvisioningArtifact' 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', 'batchDisassociateServiceActionFromProvisioningArtifact_acceptLanguage' - The language code.
--
-- -   @en@ - English (default)
--
-- -   @jp@ - Japanese
--
-- -   @zh@ - Chinese
--
-- 'serviceActionAssociations', 'batchDisassociateServiceActionFromProvisioningArtifact_serviceActionAssociations' - One or more associations, each consisting of the Action ID, the Product
-- ID, and the Provisioning Artifact ID.
newBatchDisassociateServiceActionFromProvisioningArtifact ::
  -- | 'serviceActionAssociations'
  Prelude.NonEmpty ServiceActionAssociation ->
  BatchDisassociateServiceActionFromProvisioningArtifact
newBatchDisassociateServiceActionFromProvisioningArtifact :: NonEmpty ServiceActionAssociation
-> BatchDisassociateServiceActionFromProvisioningArtifact
newBatchDisassociateServiceActionFromProvisioningArtifact
  NonEmpty ServiceActionAssociation
pServiceActionAssociations_ =
    BatchDisassociateServiceActionFromProvisioningArtifact'
      { $sel:acceptLanguage:BatchDisassociateServiceActionFromProvisioningArtifact' :: Maybe Text
acceptLanguage =
          forall a. Maybe a
Prelude.Nothing,
        $sel:serviceActionAssociations:BatchDisassociateServiceActionFromProvisioningArtifact' :: NonEmpty ServiceActionAssociation
serviceActionAssociations =
          forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
            forall t b. AReview t b -> b -> t
Lens.# NonEmpty ServiceActionAssociation
pServiceActionAssociations_
      }

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

-- | One or more associations, each consisting of the Action ID, the Product
-- ID, and the Provisioning Artifact ID.
batchDisassociateServiceActionFromProvisioningArtifact_serviceActionAssociations :: Lens.Lens' BatchDisassociateServiceActionFromProvisioningArtifact (Prelude.NonEmpty ServiceActionAssociation)
batchDisassociateServiceActionFromProvisioningArtifact_serviceActionAssociations :: Lens'
  BatchDisassociateServiceActionFromProvisioningArtifact
  (NonEmpty ServiceActionAssociation)
batchDisassociateServiceActionFromProvisioningArtifact_serviceActionAssociations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateServiceActionFromProvisioningArtifact' {NonEmpty ServiceActionAssociation
serviceActionAssociations :: NonEmpty ServiceActionAssociation
$sel:serviceActionAssociations:BatchDisassociateServiceActionFromProvisioningArtifact' :: BatchDisassociateServiceActionFromProvisioningArtifact
-> NonEmpty ServiceActionAssociation
serviceActionAssociations} -> NonEmpty ServiceActionAssociation
serviceActionAssociations) (\s :: BatchDisassociateServiceActionFromProvisioningArtifact
s@BatchDisassociateServiceActionFromProvisioningArtifact' {} NonEmpty ServiceActionAssociation
a -> BatchDisassociateServiceActionFromProvisioningArtifact
s {$sel:serviceActionAssociations:BatchDisassociateServiceActionFromProvisioningArtifact' :: NonEmpty ServiceActionAssociation
serviceActionAssociations = NonEmpty ServiceActionAssociation
a} :: BatchDisassociateServiceActionFromProvisioningArtifact) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Core.AWSRequest
    BatchDisassociateServiceActionFromProvisioningArtifact
  where
  type
    AWSResponse
      BatchDisassociateServiceActionFromProvisioningArtifact =
      BatchDisassociateServiceActionFromProvisioningArtifactResponse
  request :: (Service -> Service)
-> BatchDisassociateServiceActionFromProvisioningArtifact
-> Request BatchDisassociateServiceActionFromProvisioningArtifact
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 BatchDisassociateServiceActionFromProvisioningArtifact
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse
              BatchDisassociateServiceActionFromProvisioningArtifact)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [FailedServiceActionAssociation]
-> Int
-> BatchDisassociateServiceActionFromProvisioningArtifactResponse
BatchDisassociateServiceActionFromProvisioningArtifactResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"FailedServiceActionAssociations"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => 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
    BatchDisassociateServiceActionFromProvisioningArtifact
  where
  hashWithSalt :: Int
-> BatchDisassociateServiceActionFromProvisioningArtifact -> Int
hashWithSalt
    Int
_salt
    BatchDisassociateServiceActionFromProvisioningArtifact' {Maybe Text
NonEmpty ServiceActionAssociation
serviceActionAssociations :: NonEmpty ServiceActionAssociation
acceptLanguage :: Maybe Text
$sel:serviceActionAssociations:BatchDisassociateServiceActionFromProvisioningArtifact' :: BatchDisassociateServiceActionFromProvisioningArtifact
-> NonEmpty ServiceActionAssociation
$sel:acceptLanguage:BatchDisassociateServiceActionFromProvisioningArtifact' :: BatchDisassociateServiceActionFromProvisioningArtifact
-> 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` NonEmpty ServiceActionAssociation
serviceActionAssociations

instance
  Prelude.NFData
    BatchDisassociateServiceActionFromProvisioningArtifact
  where
  rnf :: BatchDisassociateServiceActionFromProvisioningArtifact -> ()
rnf
    BatchDisassociateServiceActionFromProvisioningArtifact' {Maybe Text
NonEmpty ServiceActionAssociation
serviceActionAssociations :: NonEmpty ServiceActionAssociation
acceptLanguage :: Maybe Text
$sel:serviceActionAssociations:BatchDisassociateServiceActionFromProvisioningArtifact' :: BatchDisassociateServiceActionFromProvisioningArtifact
-> NonEmpty ServiceActionAssociation
$sel:acceptLanguage:BatchDisassociateServiceActionFromProvisioningArtifact' :: BatchDisassociateServiceActionFromProvisioningArtifact
-> 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 NonEmpty ServiceActionAssociation
serviceActionAssociations

instance
  Data.ToHeaders
    BatchDisassociateServiceActionFromProvisioningArtifact
  where
  toHeaders :: BatchDisassociateServiceActionFromProvisioningArtifact
-> 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.BatchDisassociateServiceActionFromProvisioningArtifact" ::
                          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
    BatchDisassociateServiceActionFromProvisioningArtifact
  where
  toJSON :: BatchDisassociateServiceActionFromProvisioningArtifact -> Value
toJSON
    BatchDisassociateServiceActionFromProvisioningArtifact' {Maybe Text
NonEmpty ServiceActionAssociation
serviceActionAssociations :: NonEmpty ServiceActionAssociation
acceptLanguage :: Maybe Text
$sel:serviceActionAssociations:BatchDisassociateServiceActionFromProvisioningArtifact' :: BatchDisassociateServiceActionFromProvisioningArtifact
-> NonEmpty ServiceActionAssociation
$sel:acceptLanguage:BatchDisassociateServiceActionFromProvisioningArtifact' :: BatchDisassociateServiceActionFromProvisioningArtifact
-> 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
"ServiceActionAssociations"
                    forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= NonEmpty ServiceActionAssociation
serviceActionAssociations
                )
            ]
        )

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

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

-- | /See:/ 'newBatchDisassociateServiceActionFromProvisioningArtifactResponse' smart constructor.
data BatchDisassociateServiceActionFromProvisioningArtifactResponse = BatchDisassociateServiceActionFromProvisioningArtifactResponse'
  { -- | An object that contains a list of errors, along with information to help
    -- you identify the self-service action.
    BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> Maybe [FailedServiceActionAssociation]
failedServiceActionAssociations :: Prelude.Maybe [FailedServiceActionAssociation],
    -- | The response's http status code.
    BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> Int
httpStatus :: Prelude.Int
  }
  deriving (BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> Bool
$c/= :: BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> Bool
== :: BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> Bool
$c== :: BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> Bool
Prelude.Eq, ReadPrec
  [BatchDisassociateServiceActionFromProvisioningArtifactResponse]
ReadPrec
  BatchDisassociateServiceActionFromProvisioningArtifactResponse
Int
-> ReadS
     BatchDisassociateServiceActionFromProvisioningArtifactResponse
ReadS
  [BatchDisassociateServiceActionFromProvisioningArtifactResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec
  [BatchDisassociateServiceActionFromProvisioningArtifactResponse]
$creadListPrec :: ReadPrec
  [BatchDisassociateServiceActionFromProvisioningArtifactResponse]
readPrec :: ReadPrec
  BatchDisassociateServiceActionFromProvisioningArtifactResponse
$creadPrec :: ReadPrec
  BatchDisassociateServiceActionFromProvisioningArtifactResponse
readList :: ReadS
  [BatchDisassociateServiceActionFromProvisioningArtifactResponse]
$creadList :: ReadS
  [BatchDisassociateServiceActionFromProvisioningArtifactResponse]
readsPrec :: Int
-> ReadS
     BatchDisassociateServiceActionFromProvisioningArtifactResponse
$creadsPrec :: Int
-> ReadS
     BatchDisassociateServiceActionFromProvisioningArtifactResponse
Prelude.Read, Int
-> BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> ShowS
[BatchDisassociateServiceActionFromProvisioningArtifactResponse]
-> ShowS
BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDisassociateServiceActionFromProvisioningArtifactResponse]
-> ShowS
$cshowList :: [BatchDisassociateServiceActionFromProvisioningArtifactResponse]
-> ShowS
show :: BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> String
$cshow :: BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> String
showsPrec :: Int
-> BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> ShowS
$cshowsPrec :: Int
-> BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> ShowS
Prelude.Show, forall x.
Rep
  BatchDisassociateServiceActionFromProvisioningArtifactResponse x
-> BatchDisassociateServiceActionFromProvisioningArtifactResponse
forall x.
BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> Rep
     BatchDisassociateServiceActionFromProvisioningArtifactResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep
  BatchDisassociateServiceActionFromProvisioningArtifactResponse x
-> BatchDisassociateServiceActionFromProvisioningArtifactResponse
$cfrom :: forall x.
BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> Rep
     BatchDisassociateServiceActionFromProvisioningArtifactResponse x
Prelude.Generic)

-- |
-- Create a value of 'BatchDisassociateServiceActionFromProvisioningArtifactResponse' 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:
--
-- 'failedServiceActionAssociations', 'batchDisassociateServiceActionFromProvisioningArtifactResponse_failedServiceActionAssociations' - An object that contains a list of errors, along with information to help
-- you identify the self-service action.
--
-- 'httpStatus', 'batchDisassociateServiceActionFromProvisioningArtifactResponse_httpStatus' - The response's http status code.
newBatchDisassociateServiceActionFromProvisioningArtifactResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  BatchDisassociateServiceActionFromProvisioningArtifactResponse
newBatchDisassociateServiceActionFromProvisioningArtifactResponse :: Int
-> BatchDisassociateServiceActionFromProvisioningArtifactResponse
newBatchDisassociateServiceActionFromProvisioningArtifactResponse
  Int
pHttpStatus_ =
    BatchDisassociateServiceActionFromProvisioningArtifactResponse'
      { $sel:failedServiceActionAssociations:BatchDisassociateServiceActionFromProvisioningArtifactResponse' :: Maybe [FailedServiceActionAssociation]
failedServiceActionAssociations =
          forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:BatchDisassociateServiceActionFromProvisioningArtifactResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

-- | An object that contains a list of errors, along with information to help
-- you identify the self-service action.
batchDisassociateServiceActionFromProvisioningArtifactResponse_failedServiceActionAssociations :: Lens.Lens' BatchDisassociateServiceActionFromProvisioningArtifactResponse (Prelude.Maybe [FailedServiceActionAssociation])
batchDisassociateServiceActionFromProvisioningArtifactResponse_failedServiceActionAssociations :: Lens'
  BatchDisassociateServiceActionFromProvisioningArtifactResponse
  (Maybe [FailedServiceActionAssociation])
batchDisassociateServiceActionFromProvisioningArtifactResponse_failedServiceActionAssociations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateServiceActionFromProvisioningArtifactResponse' {Maybe [FailedServiceActionAssociation]
failedServiceActionAssociations :: Maybe [FailedServiceActionAssociation]
$sel:failedServiceActionAssociations:BatchDisassociateServiceActionFromProvisioningArtifactResponse' :: BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> Maybe [FailedServiceActionAssociation]
failedServiceActionAssociations} -> Maybe [FailedServiceActionAssociation]
failedServiceActionAssociations) (\s :: BatchDisassociateServiceActionFromProvisioningArtifactResponse
s@BatchDisassociateServiceActionFromProvisioningArtifactResponse' {} Maybe [FailedServiceActionAssociation]
a -> BatchDisassociateServiceActionFromProvisioningArtifactResponse
s {$sel:failedServiceActionAssociations:BatchDisassociateServiceActionFromProvisioningArtifactResponse' :: Maybe [FailedServiceActionAssociation]
failedServiceActionAssociations = Maybe [FailedServiceActionAssociation]
a} :: BatchDisassociateServiceActionFromProvisioningArtifactResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    BatchDisassociateServiceActionFromProvisioningArtifactResponse
  where
  rnf :: BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> ()
rnf
    BatchDisassociateServiceActionFromProvisioningArtifactResponse' {Int
Maybe [FailedServiceActionAssociation]
httpStatus :: Int
failedServiceActionAssociations :: Maybe [FailedServiceActionAssociation]
$sel:httpStatus:BatchDisassociateServiceActionFromProvisioningArtifactResponse' :: BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> Int
$sel:failedServiceActionAssociations:BatchDisassociateServiceActionFromProvisioningArtifactResponse' :: BatchDisassociateServiceActionFromProvisioningArtifactResponse
-> Maybe [FailedServiceActionAssociation]
..} =
      forall a. NFData a => a -> ()
Prelude.rnf Maybe [FailedServiceActionAssociation]
failedServiceActionAssociations
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus