{-# 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.SSOAdmin.UpdateInstanceAccessControlAttributeConfiguration
-- 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 Amazon Web Services SSO identity store attributes that you
-- can use with the Amazon Web Services SSO instance for attributes-based
-- access control (ABAC). When using an external identity provider as an
-- identity source, you can pass attributes through the SAML assertion as
-- an alternative to configuring attributes from the Amazon Web Services
-- SSO identity store. If a SAML assertion passes any of these attributes,
-- Amazon Web Services SSO replaces the attribute value with the value from
-- the Amazon Web Services SSO identity store. For more information about
-- ABAC, see
-- </singlesignon/latest/userguide/abac.html Attribute-Based Access Control>
-- in the /Amazon Web Services SSO User Guide/.
module Amazonka.SSOAdmin.UpdateInstanceAccessControlAttributeConfiguration
  ( -- * Creating a Request
    UpdateInstanceAccessControlAttributeConfiguration (..),
    newUpdateInstanceAccessControlAttributeConfiguration,

    -- * Request Lenses
    updateInstanceAccessControlAttributeConfiguration_instanceArn,
    updateInstanceAccessControlAttributeConfiguration_instanceAccessControlAttributeConfiguration,

    -- * Destructuring the Response
    UpdateInstanceAccessControlAttributeConfigurationResponse (..),
    newUpdateInstanceAccessControlAttributeConfigurationResponse,

    -- * Response Lenses
    updateInstanceAccessControlAttributeConfigurationResponse_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.SSOAdmin.Types

-- | /See:/ 'newUpdateInstanceAccessControlAttributeConfiguration' smart constructor.
data UpdateInstanceAccessControlAttributeConfiguration = UpdateInstanceAccessControlAttributeConfiguration'
  { -- | The ARN of the SSO instance under which the operation will be executed.
    UpdateInstanceAccessControlAttributeConfiguration -> Text
instanceArn :: Prelude.Text,
    -- | Updates the attributes for your ABAC configuration.
    UpdateInstanceAccessControlAttributeConfiguration
-> InstanceAccessControlAttributeConfiguration
instanceAccessControlAttributeConfiguration :: InstanceAccessControlAttributeConfiguration
  }
  deriving (UpdateInstanceAccessControlAttributeConfiguration
-> UpdateInstanceAccessControlAttributeConfiguration -> Bool
(UpdateInstanceAccessControlAttributeConfiguration
 -> UpdateInstanceAccessControlAttributeConfiguration -> Bool)
-> (UpdateInstanceAccessControlAttributeConfiguration
    -> UpdateInstanceAccessControlAttributeConfiguration -> Bool)
-> Eq UpdateInstanceAccessControlAttributeConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateInstanceAccessControlAttributeConfiguration
-> UpdateInstanceAccessControlAttributeConfiguration -> Bool
$c/= :: UpdateInstanceAccessControlAttributeConfiguration
-> UpdateInstanceAccessControlAttributeConfiguration -> Bool
== :: UpdateInstanceAccessControlAttributeConfiguration
-> UpdateInstanceAccessControlAttributeConfiguration -> Bool
$c== :: UpdateInstanceAccessControlAttributeConfiguration
-> UpdateInstanceAccessControlAttributeConfiguration -> Bool
Prelude.Eq, ReadPrec [UpdateInstanceAccessControlAttributeConfiguration]
ReadPrec UpdateInstanceAccessControlAttributeConfiguration
Int -> ReadS UpdateInstanceAccessControlAttributeConfiguration
ReadS [UpdateInstanceAccessControlAttributeConfiguration]
(Int -> ReadS UpdateInstanceAccessControlAttributeConfiguration)
-> ReadS [UpdateInstanceAccessControlAttributeConfiguration]
-> ReadPrec UpdateInstanceAccessControlAttributeConfiguration
-> ReadPrec [UpdateInstanceAccessControlAttributeConfiguration]
-> Read UpdateInstanceAccessControlAttributeConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateInstanceAccessControlAttributeConfiguration]
$creadListPrec :: ReadPrec [UpdateInstanceAccessControlAttributeConfiguration]
readPrec :: ReadPrec UpdateInstanceAccessControlAttributeConfiguration
$creadPrec :: ReadPrec UpdateInstanceAccessControlAttributeConfiguration
readList :: ReadS [UpdateInstanceAccessControlAttributeConfiguration]
$creadList :: ReadS [UpdateInstanceAccessControlAttributeConfiguration]
readsPrec :: Int -> ReadS UpdateInstanceAccessControlAttributeConfiguration
$creadsPrec :: Int -> ReadS UpdateInstanceAccessControlAttributeConfiguration
Prelude.Read, Int -> UpdateInstanceAccessControlAttributeConfiguration -> ShowS
[UpdateInstanceAccessControlAttributeConfiguration] -> ShowS
UpdateInstanceAccessControlAttributeConfiguration -> String
(Int -> UpdateInstanceAccessControlAttributeConfiguration -> ShowS)
-> (UpdateInstanceAccessControlAttributeConfiguration -> String)
-> ([UpdateInstanceAccessControlAttributeConfiguration] -> ShowS)
-> Show UpdateInstanceAccessControlAttributeConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateInstanceAccessControlAttributeConfiguration] -> ShowS
$cshowList :: [UpdateInstanceAccessControlAttributeConfiguration] -> ShowS
show :: UpdateInstanceAccessControlAttributeConfiguration -> String
$cshow :: UpdateInstanceAccessControlAttributeConfiguration -> String
showsPrec :: Int -> UpdateInstanceAccessControlAttributeConfiguration -> ShowS
$cshowsPrec :: Int -> UpdateInstanceAccessControlAttributeConfiguration -> ShowS
Prelude.Show, (forall x.
 UpdateInstanceAccessControlAttributeConfiguration
 -> Rep UpdateInstanceAccessControlAttributeConfiguration x)
-> (forall x.
    Rep UpdateInstanceAccessControlAttributeConfiguration x
    -> UpdateInstanceAccessControlAttributeConfiguration)
-> Generic UpdateInstanceAccessControlAttributeConfiguration
forall x.
Rep UpdateInstanceAccessControlAttributeConfiguration x
-> UpdateInstanceAccessControlAttributeConfiguration
forall x.
UpdateInstanceAccessControlAttributeConfiguration
-> Rep UpdateInstanceAccessControlAttributeConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateInstanceAccessControlAttributeConfiguration x
-> UpdateInstanceAccessControlAttributeConfiguration
$cfrom :: forall x.
UpdateInstanceAccessControlAttributeConfiguration
-> Rep UpdateInstanceAccessControlAttributeConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'UpdateInstanceAccessControlAttributeConfiguration' 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:
--
-- 'instanceArn', 'updateInstanceAccessControlAttributeConfiguration_instanceArn' - The ARN of the SSO instance under which the operation will be executed.
--
-- 'instanceAccessControlAttributeConfiguration', 'updateInstanceAccessControlAttributeConfiguration_instanceAccessControlAttributeConfiguration' - Updates the attributes for your ABAC configuration.
newUpdateInstanceAccessControlAttributeConfiguration ::
  -- | 'instanceArn'
  Prelude.Text ->
  -- | 'instanceAccessControlAttributeConfiguration'
  InstanceAccessControlAttributeConfiguration ->
  UpdateInstanceAccessControlAttributeConfiguration
newUpdateInstanceAccessControlAttributeConfiguration :: Text
-> InstanceAccessControlAttributeConfiguration
-> UpdateInstanceAccessControlAttributeConfiguration
newUpdateInstanceAccessControlAttributeConfiguration
  Text
pInstanceArn_
  InstanceAccessControlAttributeConfiguration
pInstanceAccessControlAttributeConfiguration_ =
    UpdateInstanceAccessControlAttributeConfiguration' :: Text
-> InstanceAccessControlAttributeConfiguration
-> UpdateInstanceAccessControlAttributeConfiguration
UpdateInstanceAccessControlAttributeConfiguration'
      { $sel:instanceArn:UpdateInstanceAccessControlAttributeConfiguration' :: Text
instanceArn =
          Text
pInstanceArn_,
        $sel:instanceAccessControlAttributeConfiguration:UpdateInstanceAccessControlAttributeConfiguration' :: InstanceAccessControlAttributeConfiguration
instanceAccessControlAttributeConfiguration =
          InstanceAccessControlAttributeConfiguration
pInstanceAccessControlAttributeConfiguration_
      }

-- | The ARN of the SSO instance under which the operation will be executed.
updateInstanceAccessControlAttributeConfiguration_instanceArn :: Lens.Lens' UpdateInstanceAccessControlAttributeConfiguration Prelude.Text
updateInstanceAccessControlAttributeConfiguration_instanceArn :: (Text -> f Text)
-> UpdateInstanceAccessControlAttributeConfiguration
-> f UpdateInstanceAccessControlAttributeConfiguration
updateInstanceAccessControlAttributeConfiguration_instanceArn = (UpdateInstanceAccessControlAttributeConfiguration -> Text)
-> (UpdateInstanceAccessControlAttributeConfiguration
    -> Text -> UpdateInstanceAccessControlAttributeConfiguration)
-> Lens
     UpdateInstanceAccessControlAttributeConfiguration
     UpdateInstanceAccessControlAttributeConfiguration
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInstanceAccessControlAttributeConfiguration' {Text
instanceArn :: Text
$sel:instanceArn:UpdateInstanceAccessControlAttributeConfiguration' :: UpdateInstanceAccessControlAttributeConfiguration -> Text
instanceArn} -> Text
instanceArn) (\s :: UpdateInstanceAccessControlAttributeConfiguration
s@UpdateInstanceAccessControlAttributeConfiguration' {} Text
a -> UpdateInstanceAccessControlAttributeConfiguration
s {$sel:instanceArn:UpdateInstanceAccessControlAttributeConfiguration' :: Text
instanceArn = Text
a} :: UpdateInstanceAccessControlAttributeConfiguration)

-- | Updates the attributes for your ABAC configuration.
updateInstanceAccessControlAttributeConfiguration_instanceAccessControlAttributeConfiguration :: Lens.Lens' UpdateInstanceAccessControlAttributeConfiguration InstanceAccessControlAttributeConfiguration
updateInstanceAccessControlAttributeConfiguration_instanceAccessControlAttributeConfiguration :: (InstanceAccessControlAttributeConfiguration
 -> f InstanceAccessControlAttributeConfiguration)
-> UpdateInstanceAccessControlAttributeConfiguration
-> f UpdateInstanceAccessControlAttributeConfiguration
updateInstanceAccessControlAttributeConfiguration_instanceAccessControlAttributeConfiguration = (UpdateInstanceAccessControlAttributeConfiguration
 -> InstanceAccessControlAttributeConfiguration)
-> (UpdateInstanceAccessControlAttributeConfiguration
    -> InstanceAccessControlAttributeConfiguration
    -> UpdateInstanceAccessControlAttributeConfiguration)
-> Lens
     UpdateInstanceAccessControlAttributeConfiguration
     UpdateInstanceAccessControlAttributeConfiguration
     InstanceAccessControlAttributeConfiguration
     InstanceAccessControlAttributeConfiguration
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInstanceAccessControlAttributeConfiguration' {InstanceAccessControlAttributeConfiguration
instanceAccessControlAttributeConfiguration :: InstanceAccessControlAttributeConfiguration
$sel:instanceAccessControlAttributeConfiguration:UpdateInstanceAccessControlAttributeConfiguration' :: UpdateInstanceAccessControlAttributeConfiguration
-> InstanceAccessControlAttributeConfiguration
instanceAccessControlAttributeConfiguration} -> InstanceAccessControlAttributeConfiguration
instanceAccessControlAttributeConfiguration) (\s :: UpdateInstanceAccessControlAttributeConfiguration
s@UpdateInstanceAccessControlAttributeConfiguration' {} InstanceAccessControlAttributeConfiguration
a -> UpdateInstanceAccessControlAttributeConfiguration
s {$sel:instanceAccessControlAttributeConfiguration:UpdateInstanceAccessControlAttributeConfiguration' :: InstanceAccessControlAttributeConfiguration
instanceAccessControlAttributeConfiguration = InstanceAccessControlAttributeConfiguration
a} :: UpdateInstanceAccessControlAttributeConfiguration)

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

instance
  Prelude.NFData
    UpdateInstanceAccessControlAttributeConfiguration

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

instance
  Core.ToJSON
    UpdateInstanceAccessControlAttributeConfiguration
  where
  toJSON :: UpdateInstanceAccessControlAttributeConfiguration -> Value
toJSON
    UpdateInstanceAccessControlAttributeConfiguration' {Text
InstanceAccessControlAttributeConfiguration
instanceAccessControlAttributeConfiguration :: InstanceAccessControlAttributeConfiguration
instanceArn :: Text
$sel:instanceAccessControlAttributeConfiguration:UpdateInstanceAccessControlAttributeConfiguration' :: UpdateInstanceAccessControlAttributeConfiguration
-> InstanceAccessControlAttributeConfiguration
$sel:instanceArn:UpdateInstanceAccessControlAttributeConfiguration' :: UpdateInstanceAccessControlAttributeConfiguration -> Text
..} =
      [Pair] -> Value
Core.object
        ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
            [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"InstanceArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
instanceArn),
              Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
                ( Text
"InstanceAccessControlAttributeConfiguration"
                    Text -> InstanceAccessControlAttributeConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= InstanceAccessControlAttributeConfiguration
instanceAccessControlAttributeConfiguration
                )
            ]
        )

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

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

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

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

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

instance
  Prelude.NFData
    UpdateInstanceAccessControlAttributeConfigurationResponse