{-# 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.WorkLink.UpdateIdentityProviderConfiguration
-- 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)
--
-- Updates the identity provider configuration for the fleet.
module Amazonka.WorkLink.UpdateIdentityProviderConfiguration
  ( -- * Creating a Request
    UpdateIdentityProviderConfiguration (..),
    newUpdateIdentityProviderConfiguration,

    -- * Request Lenses
    updateIdentityProviderConfiguration_identityProviderSamlMetadata,
    updateIdentityProviderConfiguration_fleetArn,
    updateIdentityProviderConfiguration_identityProviderType,

    -- * Destructuring the Response
    UpdateIdentityProviderConfigurationResponse (..),
    newUpdateIdentityProviderConfigurationResponse,

    -- * Response Lenses
    updateIdentityProviderConfigurationResponse_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.WorkLink.Types

-- | /See:/ 'newUpdateIdentityProviderConfiguration' smart constructor.
data UpdateIdentityProviderConfiguration = UpdateIdentityProviderConfiguration'
  { -- | The SAML metadata document provided by the customer’s identity provider.
    -- The existing IdentityProviderSamlMetadata is unset if null is passed.
    UpdateIdentityProviderConfiguration -> Maybe Text
identityProviderSamlMetadata :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the fleet.
    UpdateIdentityProviderConfiguration -> Text
fleetArn :: Prelude.Text,
    -- | The type of identity provider.
    UpdateIdentityProviderConfiguration -> IdentityProviderType
identityProviderType :: IdentityProviderType
  }
  deriving (UpdateIdentityProviderConfiguration
-> UpdateIdentityProviderConfiguration -> Bool
(UpdateIdentityProviderConfiguration
 -> UpdateIdentityProviderConfiguration -> Bool)
-> (UpdateIdentityProviderConfiguration
    -> UpdateIdentityProviderConfiguration -> Bool)
-> Eq UpdateIdentityProviderConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateIdentityProviderConfiguration
-> UpdateIdentityProviderConfiguration -> Bool
$c/= :: UpdateIdentityProviderConfiguration
-> UpdateIdentityProviderConfiguration -> Bool
== :: UpdateIdentityProviderConfiguration
-> UpdateIdentityProviderConfiguration -> Bool
$c== :: UpdateIdentityProviderConfiguration
-> UpdateIdentityProviderConfiguration -> Bool
Prelude.Eq, ReadPrec [UpdateIdentityProviderConfiguration]
ReadPrec UpdateIdentityProviderConfiguration
Int -> ReadS UpdateIdentityProviderConfiguration
ReadS [UpdateIdentityProviderConfiguration]
(Int -> ReadS UpdateIdentityProviderConfiguration)
-> ReadS [UpdateIdentityProviderConfiguration]
-> ReadPrec UpdateIdentityProviderConfiguration
-> ReadPrec [UpdateIdentityProviderConfiguration]
-> Read UpdateIdentityProviderConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateIdentityProviderConfiguration]
$creadListPrec :: ReadPrec [UpdateIdentityProviderConfiguration]
readPrec :: ReadPrec UpdateIdentityProviderConfiguration
$creadPrec :: ReadPrec UpdateIdentityProviderConfiguration
readList :: ReadS [UpdateIdentityProviderConfiguration]
$creadList :: ReadS [UpdateIdentityProviderConfiguration]
readsPrec :: Int -> ReadS UpdateIdentityProviderConfiguration
$creadsPrec :: Int -> ReadS UpdateIdentityProviderConfiguration
Prelude.Read, Int -> UpdateIdentityProviderConfiguration -> ShowS
[UpdateIdentityProviderConfiguration] -> ShowS
UpdateIdentityProviderConfiguration -> String
(Int -> UpdateIdentityProviderConfiguration -> ShowS)
-> (UpdateIdentityProviderConfiguration -> String)
-> ([UpdateIdentityProviderConfiguration] -> ShowS)
-> Show UpdateIdentityProviderConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateIdentityProviderConfiguration] -> ShowS
$cshowList :: [UpdateIdentityProviderConfiguration] -> ShowS
show :: UpdateIdentityProviderConfiguration -> String
$cshow :: UpdateIdentityProviderConfiguration -> String
showsPrec :: Int -> UpdateIdentityProviderConfiguration -> ShowS
$cshowsPrec :: Int -> UpdateIdentityProviderConfiguration -> ShowS
Prelude.Show, (forall x.
 UpdateIdentityProviderConfiguration
 -> Rep UpdateIdentityProviderConfiguration x)
-> (forall x.
    Rep UpdateIdentityProviderConfiguration x
    -> UpdateIdentityProviderConfiguration)
-> Generic UpdateIdentityProviderConfiguration
forall x.
Rep UpdateIdentityProviderConfiguration x
-> UpdateIdentityProviderConfiguration
forall x.
UpdateIdentityProviderConfiguration
-> Rep UpdateIdentityProviderConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateIdentityProviderConfiguration x
-> UpdateIdentityProviderConfiguration
$cfrom :: forall x.
UpdateIdentityProviderConfiguration
-> Rep UpdateIdentityProviderConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'UpdateIdentityProviderConfiguration' 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:
--
-- 'identityProviderSamlMetadata', 'updateIdentityProviderConfiguration_identityProviderSamlMetadata' - The SAML metadata document provided by the customer’s identity provider.
-- The existing IdentityProviderSamlMetadata is unset if null is passed.
--
-- 'fleetArn', 'updateIdentityProviderConfiguration_fleetArn' - The ARN of the fleet.
--
-- 'identityProviderType', 'updateIdentityProviderConfiguration_identityProviderType' - The type of identity provider.
newUpdateIdentityProviderConfiguration ::
  -- | 'fleetArn'
  Prelude.Text ->
  -- | 'identityProviderType'
  IdentityProviderType ->
  UpdateIdentityProviderConfiguration
newUpdateIdentityProviderConfiguration :: Text -> IdentityProviderType -> UpdateIdentityProviderConfiguration
newUpdateIdentityProviderConfiguration
  Text
pFleetArn_
  IdentityProviderType
pIdentityProviderType_ =
    UpdateIdentityProviderConfiguration' :: Maybe Text
-> Text
-> IdentityProviderType
-> UpdateIdentityProviderConfiguration
UpdateIdentityProviderConfiguration'
      { $sel:identityProviderSamlMetadata:UpdateIdentityProviderConfiguration' :: Maybe Text
identityProviderSamlMetadata =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:fleetArn:UpdateIdentityProviderConfiguration' :: Text
fleetArn = Text
pFleetArn_,
        $sel:identityProviderType:UpdateIdentityProviderConfiguration' :: IdentityProviderType
identityProviderType =
          IdentityProviderType
pIdentityProviderType_
      }

-- | The SAML metadata document provided by the customer’s identity provider.
-- The existing IdentityProviderSamlMetadata is unset if null is passed.
updateIdentityProviderConfiguration_identityProviderSamlMetadata :: Lens.Lens' UpdateIdentityProviderConfiguration (Prelude.Maybe Prelude.Text)
updateIdentityProviderConfiguration_identityProviderSamlMetadata :: (Maybe Text -> f (Maybe Text))
-> UpdateIdentityProviderConfiguration
-> f UpdateIdentityProviderConfiguration
updateIdentityProviderConfiguration_identityProviderSamlMetadata = (UpdateIdentityProviderConfiguration -> Maybe Text)
-> (UpdateIdentityProviderConfiguration
    -> Maybe Text -> UpdateIdentityProviderConfiguration)
-> Lens
     UpdateIdentityProviderConfiguration
     UpdateIdentityProviderConfiguration
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateIdentityProviderConfiguration' {Maybe Text
identityProviderSamlMetadata :: Maybe Text
$sel:identityProviderSamlMetadata:UpdateIdentityProviderConfiguration' :: UpdateIdentityProviderConfiguration -> Maybe Text
identityProviderSamlMetadata} -> Maybe Text
identityProviderSamlMetadata) (\s :: UpdateIdentityProviderConfiguration
s@UpdateIdentityProviderConfiguration' {} Maybe Text
a -> UpdateIdentityProviderConfiguration
s {$sel:identityProviderSamlMetadata:UpdateIdentityProviderConfiguration' :: Maybe Text
identityProviderSamlMetadata = Maybe Text
a} :: UpdateIdentityProviderConfiguration)

-- | The ARN of the fleet.
updateIdentityProviderConfiguration_fleetArn :: Lens.Lens' UpdateIdentityProviderConfiguration Prelude.Text
updateIdentityProviderConfiguration_fleetArn :: (Text -> f Text)
-> UpdateIdentityProviderConfiguration
-> f UpdateIdentityProviderConfiguration
updateIdentityProviderConfiguration_fleetArn = (UpdateIdentityProviderConfiguration -> Text)
-> (UpdateIdentityProviderConfiguration
    -> Text -> UpdateIdentityProviderConfiguration)
-> Lens
     UpdateIdentityProviderConfiguration
     UpdateIdentityProviderConfiguration
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateIdentityProviderConfiguration' {Text
fleetArn :: Text
$sel:fleetArn:UpdateIdentityProviderConfiguration' :: UpdateIdentityProviderConfiguration -> Text
fleetArn} -> Text
fleetArn) (\s :: UpdateIdentityProviderConfiguration
s@UpdateIdentityProviderConfiguration' {} Text
a -> UpdateIdentityProviderConfiguration
s {$sel:fleetArn:UpdateIdentityProviderConfiguration' :: Text
fleetArn = Text
a} :: UpdateIdentityProviderConfiguration)

-- | The type of identity provider.
updateIdentityProviderConfiguration_identityProviderType :: Lens.Lens' UpdateIdentityProviderConfiguration IdentityProviderType
updateIdentityProviderConfiguration_identityProviderType :: (IdentityProviderType -> f IdentityProviderType)
-> UpdateIdentityProviderConfiguration
-> f UpdateIdentityProviderConfiguration
updateIdentityProviderConfiguration_identityProviderType = (UpdateIdentityProviderConfiguration -> IdentityProviderType)
-> (UpdateIdentityProviderConfiguration
    -> IdentityProviderType -> UpdateIdentityProviderConfiguration)
-> Lens
     UpdateIdentityProviderConfiguration
     UpdateIdentityProviderConfiguration
     IdentityProviderType
     IdentityProviderType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateIdentityProviderConfiguration' {IdentityProviderType
identityProviderType :: IdentityProviderType
$sel:identityProviderType:UpdateIdentityProviderConfiguration' :: UpdateIdentityProviderConfiguration -> IdentityProviderType
identityProviderType} -> IdentityProviderType
identityProviderType) (\s :: UpdateIdentityProviderConfiguration
s@UpdateIdentityProviderConfiguration' {} IdentityProviderType
a -> UpdateIdentityProviderConfiguration
s {$sel:identityProviderType:UpdateIdentityProviderConfiguration' :: IdentityProviderType
identityProviderType = IdentityProviderType
a} :: UpdateIdentityProviderConfiguration)

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

instance
  Prelude.NFData
    UpdateIdentityProviderConfiguration

instance
  Core.ToHeaders
    UpdateIdentityProviderConfiguration
  where
  toHeaders :: UpdateIdentityProviderConfiguration -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> UpdateIdentityProviderConfiguration -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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
    UpdateIdentityProviderConfiguration
  where
  toJSON :: UpdateIdentityProviderConfiguration -> Value
toJSON UpdateIdentityProviderConfiguration' {Maybe Text
Text
IdentityProviderType
identityProviderType :: IdentityProviderType
fleetArn :: Text
identityProviderSamlMetadata :: Maybe Text
$sel:identityProviderType:UpdateIdentityProviderConfiguration' :: UpdateIdentityProviderConfiguration -> IdentityProviderType
$sel:fleetArn:UpdateIdentityProviderConfiguration' :: UpdateIdentityProviderConfiguration -> Text
$sel:identityProviderSamlMetadata:UpdateIdentityProviderConfiguration' :: UpdateIdentityProviderConfiguration -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"IdentityProviderSamlMetadata" 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
identityProviderSamlMetadata,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"FleetArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
fleetArn),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"IdentityProviderType"
                  Text -> IdentityProviderType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= IdentityProviderType
identityProviderType
              )
          ]
      )

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

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

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

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

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

instance
  Prelude.NFData
    UpdateIdentityProviderConfigurationResponse