{-# 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.Lambda.UpdateCodeSigningConfig
-- 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)
--
-- Update the code signing configuration. Changes to the code signing
-- configuration take effect the next time a user tries to deploy a code
-- package to the function.
module Amazonka.Lambda.UpdateCodeSigningConfig
  ( -- * Creating a Request
    UpdateCodeSigningConfig (..),
    newUpdateCodeSigningConfig,

    -- * Request Lenses
    updateCodeSigningConfig_allowedPublishers,
    updateCodeSigningConfig_codeSigningPolicies,
    updateCodeSigningConfig_description,
    updateCodeSigningConfig_codeSigningConfigArn,

    -- * Destructuring the Response
    UpdateCodeSigningConfigResponse (..),
    newUpdateCodeSigningConfigResponse,

    -- * Response Lenses
    updateCodeSigningConfigResponse_httpStatus,
    updateCodeSigningConfigResponse_codeSigningConfig,
  )
where

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

-- | /See:/ 'newUpdateCodeSigningConfig' smart constructor.
data UpdateCodeSigningConfig = UpdateCodeSigningConfig'
  { -- | Signing profiles for this code signing configuration.
    UpdateCodeSigningConfig -> Maybe AllowedPublishers
allowedPublishers :: Prelude.Maybe AllowedPublishers,
    -- | The code signing policy.
    UpdateCodeSigningConfig -> Maybe CodeSigningPolicies
codeSigningPolicies :: Prelude.Maybe CodeSigningPolicies,
    -- | Descriptive name for this code signing configuration.
    UpdateCodeSigningConfig -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The The Amazon Resource Name (ARN) of the code signing configuration.
    UpdateCodeSigningConfig -> Text
codeSigningConfigArn :: Prelude.Text
  }
  deriving (UpdateCodeSigningConfig -> UpdateCodeSigningConfig -> Bool
(UpdateCodeSigningConfig -> UpdateCodeSigningConfig -> Bool)
-> (UpdateCodeSigningConfig -> UpdateCodeSigningConfig -> Bool)
-> Eq UpdateCodeSigningConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateCodeSigningConfig -> UpdateCodeSigningConfig -> Bool
$c/= :: UpdateCodeSigningConfig -> UpdateCodeSigningConfig -> Bool
== :: UpdateCodeSigningConfig -> UpdateCodeSigningConfig -> Bool
$c== :: UpdateCodeSigningConfig -> UpdateCodeSigningConfig -> Bool
Prelude.Eq, ReadPrec [UpdateCodeSigningConfig]
ReadPrec UpdateCodeSigningConfig
Int -> ReadS UpdateCodeSigningConfig
ReadS [UpdateCodeSigningConfig]
(Int -> ReadS UpdateCodeSigningConfig)
-> ReadS [UpdateCodeSigningConfig]
-> ReadPrec UpdateCodeSigningConfig
-> ReadPrec [UpdateCodeSigningConfig]
-> Read UpdateCodeSigningConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateCodeSigningConfig]
$creadListPrec :: ReadPrec [UpdateCodeSigningConfig]
readPrec :: ReadPrec UpdateCodeSigningConfig
$creadPrec :: ReadPrec UpdateCodeSigningConfig
readList :: ReadS [UpdateCodeSigningConfig]
$creadList :: ReadS [UpdateCodeSigningConfig]
readsPrec :: Int -> ReadS UpdateCodeSigningConfig
$creadsPrec :: Int -> ReadS UpdateCodeSigningConfig
Prelude.Read, Int -> UpdateCodeSigningConfig -> ShowS
[UpdateCodeSigningConfig] -> ShowS
UpdateCodeSigningConfig -> String
(Int -> UpdateCodeSigningConfig -> ShowS)
-> (UpdateCodeSigningConfig -> String)
-> ([UpdateCodeSigningConfig] -> ShowS)
-> Show UpdateCodeSigningConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateCodeSigningConfig] -> ShowS
$cshowList :: [UpdateCodeSigningConfig] -> ShowS
show :: UpdateCodeSigningConfig -> String
$cshow :: UpdateCodeSigningConfig -> String
showsPrec :: Int -> UpdateCodeSigningConfig -> ShowS
$cshowsPrec :: Int -> UpdateCodeSigningConfig -> ShowS
Prelude.Show, (forall x.
 UpdateCodeSigningConfig -> Rep UpdateCodeSigningConfig x)
-> (forall x.
    Rep UpdateCodeSigningConfig x -> UpdateCodeSigningConfig)
-> Generic UpdateCodeSigningConfig
forall x. Rep UpdateCodeSigningConfig x -> UpdateCodeSigningConfig
forall x. UpdateCodeSigningConfig -> Rep UpdateCodeSigningConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateCodeSigningConfig x -> UpdateCodeSigningConfig
$cfrom :: forall x. UpdateCodeSigningConfig -> Rep UpdateCodeSigningConfig x
Prelude.Generic)

-- |
-- Create a value of 'UpdateCodeSigningConfig' 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:
--
-- 'allowedPublishers', 'updateCodeSigningConfig_allowedPublishers' - Signing profiles for this code signing configuration.
--
-- 'codeSigningPolicies', 'updateCodeSigningConfig_codeSigningPolicies' - The code signing policy.
--
-- 'description', 'updateCodeSigningConfig_description' - Descriptive name for this code signing configuration.
--
-- 'codeSigningConfigArn', 'updateCodeSigningConfig_codeSigningConfigArn' - The The Amazon Resource Name (ARN) of the code signing configuration.
newUpdateCodeSigningConfig ::
  -- | 'codeSigningConfigArn'
  Prelude.Text ->
  UpdateCodeSigningConfig
newUpdateCodeSigningConfig :: Text -> UpdateCodeSigningConfig
newUpdateCodeSigningConfig Text
pCodeSigningConfigArn_ =
  UpdateCodeSigningConfig' :: Maybe AllowedPublishers
-> Maybe CodeSigningPolicies
-> Maybe Text
-> Text
-> UpdateCodeSigningConfig
UpdateCodeSigningConfig'
    { $sel:allowedPublishers:UpdateCodeSigningConfig' :: Maybe AllowedPublishers
allowedPublishers =
        Maybe AllowedPublishers
forall a. Maybe a
Prelude.Nothing,
      $sel:codeSigningPolicies:UpdateCodeSigningConfig' :: Maybe CodeSigningPolicies
codeSigningPolicies = Maybe CodeSigningPolicies
forall a. Maybe a
Prelude.Nothing,
      $sel:description:UpdateCodeSigningConfig' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:codeSigningConfigArn:UpdateCodeSigningConfig' :: Text
codeSigningConfigArn = Text
pCodeSigningConfigArn_
    }

-- | Signing profiles for this code signing configuration.
updateCodeSigningConfig_allowedPublishers :: Lens.Lens' UpdateCodeSigningConfig (Prelude.Maybe AllowedPublishers)
updateCodeSigningConfig_allowedPublishers :: (Maybe AllowedPublishers -> f (Maybe AllowedPublishers))
-> UpdateCodeSigningConfig -> f UpdateCodeSigningConfig
updateCodeSigningConfig_allowedPublishers = (UpdateCodeSigningConfig -> Maybe AllowedPublishers)
-> (UpdateCodeSigningConfig
    -> Maybe AllowedPublishers -> UpdateCodeSigningConfig)
-> Lens
     UpdateCodeSigningConfig
     UpdateCodeSigningConfig
     (Maybe AllowedPublishers)
     (Maybe AllowedPublishers)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCodeSigningConfig' {Maybe AllowedPublishers
allowedPublishers :: Maybe AllowedPublishers
$sel:allowedPublishers:UpdateCodeSigningConfig' :: UpdateCodeSigningConfig -> Maybe AllowedPublishers
allowedPublishers} -> Maybe AllowedPublishers
allowedPublishers) (\s :: UpdateCodeSigningConfig
s@UpdateCodeSigningConfig' {} Maybe AllowedPublishers
a -> UpdateCodeSigningConfig
s {$sel:allowedPublishers:UpdateCodeSigningConfig' :: Maybe AllowedPublishers
allowedPublishers = Maybe AllowedPublishers
a} :: UpdateCodeSigningConfig)

-- | The code signing policy.
updateCodeSigningConfig_codeSigningPolicies :: Lens.Lens' UpdateCodeSigningConfig (Prelude.Maybe CodeSigningPolicies)
updateCodeSigningConfig_codeSigningPolicies :: (Maybe CodeSigningPolicies -> f (Maybe CodeSigningPolicies))
-> UpdateCodeSigningConfig -> f UpdateCodeSigningConfig
updateCodeSigningConfig_codeSigningPolicies = (UpdateCodeSigningConfig -> Maybe CodeSigningPolicies)
-> (UpdateCodeSigningConfig
    -> Maybe CodeSigningPolicies -> UpdateCodeSigningConfig)
-> Lens
     UpdateCodeSigningConfig
     UpdateCodeSigningConfig
     (Maybe CodeSigningPolicies)
     (Maybe CodeSigningPolicies)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCodeSigningConfig' {Maybe CodeSigningPolicies
codeSigningPolicies :: Maybe CodeSigningPolicies
$sel:codeSigningPolicies:UpdateCodeSigningConfig' :: UpdateCodeSigningConfig -> Maybe CodeSigningPolicies
codeSigningPolicies} -> Maybe CodeSigningPolicies
codeSigningPolicies) (\s :: UpdateCodeSigningConfig
s@UpdateCodeSigningConfig' {} Maybe CodeSigningPolicies
a -> UpdateCodeSigningConfig
s {$sel:codeSigningPolicies:UpdateCodeSigningConfig' :: Maybe CodeSigningPolicies
codeSigningPolicies = Maybe CodeSigningPolicies
a} :: UpdateCodeSigningConfig)

-- | Descriptive name for this code signing configuration.
updateCodeSigningConfig_description :: Lens.Lens' UpdateCodeSigningConfig (Prelude.Maybe Prelude.Text)
updateCodeSigningConfig_description :: (Maybe Text -> f (Maybe Text))
-> UpdateCodeSigningConfig -> f UpdateCodeSigningConfig
updateCodeSigningConfig_description = (UpdateCodeSigningConfig -> Maybe Text)
-> (UpdateCodeSigningConfig
    -> Maybe Text -> UpdateCodeSigningConfig)
-> Lens
     UpdateCodeSigningConfig
     UpdateCodeSigningConfig
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCodeSigningConfig' {Maybe Text
description :: Maybe Text
$sel:description:UpdateCodeSigningConfig' :: UpdateCodeSigningConfig -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateCodeSigningConfig
s@UpdateCodeSigningConfig' {} Maybe Text
a -> UpdateCodeSigningConfig
s {$sel:description:UpdateCodeSigningConfig' :: Maybe Text
description = Maybe Text
a} :: UpdateCodeSigningConfig)

-- | The The Amazon Resource Name (ARN) of the code signing configuration.
updateCodeSigningConfig_codeSigningConfigArn :: Lens.Lens' UpdateCodeSigningConfig Prelude.Text
updateCodeSigningConfig_codeSigningConfigArn :: (Text -> f Text)
-> UpdateCodeSigningConfig -> f UpdateCodeSigningConfig
updateCodeSigningConfig_codeSigningConfigArn = (UpdateCodeSigningConfig -> Text)
-> (UpdateCodeSigningConfig -> Text -> UpdateCodeSigningConfig)
-> Lens UpdateCodeSigningConfig UpdateCodeSigningConfig Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCodeSigningConfig' {Text
codeSigningConfigArn :: Text
$sel:codeSigningConfigArn:UpdateCodeSigningConfig' :: UpdateCodeSigningConfig -> Text
codeSigningConfigArn} -> Text
codeSigningConfigArn) (\s :: UpdateCodeSigningConfig
s@UpdateCodeSigningConfig' {} Text
a -> UpdateCodeSigningConfig
s {$sel:codeSigningConfigArn:UpdateCodeSigningConfig' :: Text
codeSigningConfigArn = Text
a} :: UpdateCodeSigningConfig)

instance Core.AWSRequest UpdateCodeSigningConfig where
  type
    AWSResponse UpdateCodeSigningConfig =
      UpdateCodeSigningConfigResponse
  request :: UpdateCodeSigningConfig -> Request UpdateCodeSigningConfig
request = Service
-> UpdateCodeSigningConfig -> Request UpdateCodeSigningConfig
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateCodeSigningConfig
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateCodeSigningConfig)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateCodeSigningConfig))
-> Logger
-> Service
-> Proxy UpdateCodeSigningConfig
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateCodeSigningConfig)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Int -> CodeSigningConfig -> UpdateCodeSigningConfigResponse
UpdateCodeSigningConfigResponse'
            (Int -> CodeSigningConfig -> UpdateCodeSigningConfigResponse)
-> Either String Int
-> Either
     String (CodeSigningConfig -> UpdateCodeSigningConfigResponse)
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))
            Either
  String (CodeSigningConfig -> UpdateCodeSigningConfigResponse)
-> Either String CodeSigningConfig
-> Either String UpdateCodeSigningConfigResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String CodeSigningConfig
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"CodeSigningConfig")
      )

instance Prelude.Hashable UpdateCodeSigningConfig

instance Prelude.NFData UpdateCodeSigningConfig

instance Core.ToHeaders UpdateCodeSigningConfig where
  toHeaders :: UpdateCodeSigningConfig -> ResponseHeaders
toHeaders = ResponseHeaders -> UpdateCodeSigningConfig -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToJSON UpdateCodeSigningConfig where
  toJSON :: UpdateCodeSigningConfig -> Value
toJSON UpdateCodeSigningConfig' {Maybe Text
Maybe AllowedPublishers
Maybe CodeSigningPolicies
Text
codeSigningConfigArn :: Text
description :: Maybe Text
codeSigningPolicies :: Maybe CodeSigningPolicies
allowedPublishers :: Maybe AllowedPublishers
$sel:codeSigningConfigArn:UpdateCodeSigningConfig' :: UpdateCodeSigningConfig -> Text
$sel:description:UpdateCodeSigningConfig' :: UpdateCodeSigningConfig -> Maybe Text
$sel:codeSigningPolicies:UpdateCodeSigningConfig' :: UpdateCodeSigningConfig -> Maybe CodeSigningPolicies
$sel:allowedPublishers:UpdateCodeSigningConfig' :: UpdateCodeSigningConfig -> Maybe AllowedPublishers
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"AllowedPublishers" Text -> AllowedPublishers -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (AllowedPublishers -> Pair)
-> Maybe AllowedPublishers -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AllowedPublishers
allowedPublishers,
            (Text
"CodeSigningPolicies" Text -> CodeSigningPolicies -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (CodeSigningPolicies -> Pair)
-> Maybe CodeSigningPolicies -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CodeSigningPolicies
codeSigningPolicies,
            (Text
"Description" 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
description
          ]
      )

instance Core.ToPath UpdateCodeSigningConfig where
  toPath :: UpdateCodeSigningConfig -> ByteString
toPath UpdateCodeSigningConfig' {Maybe Text
Maybe AllowedPublishers
Maybe CodeSigningPolicies
Text
codeSigningConfigArn :: Text
description :: Maybe Text
codeSigningPolicies :: Maybe CodeSigningPolicies
allowedPublishers :: Maybe AllowedPublishers
$sel:codeSigningConfigArn:UpdateCodeSigningConfig' :: UpdateCodeSigningConfig -> Text
$sel:description:UpdateCodeSigningConfig' :: UpdateCodeSigningConfig -> Maybe Text
$sel:codeSigningPolicies:UpdateCodeSigningConfig' :: UpdateCodeSigningConfig -> Maybe CodeSigningPolicies
$sel:allowedPublishers:UpdateCodeSigningConfig' :: UpdateCodeSigningConfig -> Maybe AllowedPublishers
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/2020-04-22/code-signing-configs/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
codeSigningConfigArn
      ]

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

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

-- |
-- Create a value of 'UpdateCodeSigningConfigResponse' 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', 'updateCodeSigningConfigResponse_httpStatus' - The response's http status code.
--
-- 'codeSigningConfig', 'updateCodeSigningConfigResponse_codeSigningConfig' - The code signing configuration
newUpdateCodeSigningConfigResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'codeSigningConfig'
  CodeSigningConfig ->
  UpdateCodeSigningConfigResponse
newUpdateCodeSigningConfigResponse :: Int -> CodeSigningConfig -> UpdateCodeSigningConfigResponse
newUpdateCodeSigningConfigResponse
  Int
pHttpStatus_
  CodeSigningConfig
pCodeSigningConfig_ =
    UpdateCodeSigningConfigResponse' :: Int -> CodeSigningConfig -> UpdateCodeSigningConfigResponse
UpdateCodeSigningConfigResponse'
      { $sel:httpStatus:UpdateCodeSigningConfigResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:codeSigningConfig:UpdateCodeSigningConfigResponse' :: CodeSigningConfig
codeSigningConfig = CodeSigningConfig
pCodeSigningConfig_
      }

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

-- | The code signing configuration
updateCodeSigningConfigResponse_codeSigningConfig :: Lens.Lens' UpdateCodeSigningConfigResponse CodeSigningConfig
updateCodeSigningConfigResponse_codeSigningConfig :: (CodeSigningConfig -> f CodeSigningConfig)
-> UpdateCodeSigningConfigResponse
-> f UpdateCodeSigningConfigResponse
updateCodeSigningConfigResponse_codeSigningConfig = (UpdateCodeSigningConfigResponse -> CodeSigningConfig)
-> (UpdateCodeSigningConfigResponse
    -> CodeSigningConfig -> UpdateCodeSigningConfigResponse)
-> Lens
     UpdateCodeSigningConfigResponse
     UpdateCodeSigningConfigResponse
     CodeSigningConfig
     CodeSigningConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCodeSigningConfigResponse' {CodeSigningConfig
codeSigningConfig :: CodeSigningConfig
$sel:codeSigningConfig:UpdateCodeSigningConfigResponse' :: UpdateCodeSigningConfigResponse -> CodeSigningConfig
codeSigningConfig} -> CodeSigningConfig
codeSigningConfig) (\s :: UpdateCodeSigningConfigResponse
s@UpdateCodeSigningConfigResponse' {} CodeSigningConfig
a -> UpdateCodeSigningConfigResponse
s {$sel:codeSigningConfig:UpdateCodeSigningConfigResponse' :: CodeSigningConfig
codeSigningConfig = CodeSigningConfig
a} :: UpdateCodeSigningConfigResponse)

instance
  Prelude.NFData
    UpdateCodeSigningConfigResponse