{-# 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.CreateInstanceAccessControlAttributeConfiguration
-- 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)
--
-- Enables the attributes-based access control (ABAC) feature for the
-- specified Amazon Web Services SSO instance. You can also specify new
-- attributes to add to your ABAC configuration during the enabling
-- process. 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.CreateInstanceAccessControlAttributeConfiguration
  ( -- * Creating a Request
    CreateInstanceAccessControlAttributeConfiguration (..),
    newCreateInstanceAccessControlAttributeConfiguration,

    -- * Request Lenses
    createInstanceAccessControlAttributeConfiguration_instanceArn,
    createInstanceAccessControlAttributeConfiguration_instanceAccessControlAttributeConfiguration,

    -- * Destructuring the Response
    CreateInstanceAccessControlAttributeConfigurationResponse (..),
    newCreateInstanceAccessControlAttributeConfigurationResponse,

    -- * Response Lenses
    createInstanceAccessControlAttributeConfigurationResponse_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:/ 'newCreateInstanceAccessControlAttributeConfiguration' smart constructor.
data CreateInstanceAccessControlAttributeConfiguration = CreateInstanceAccessControlAttributeConfiguration'
  { -- | The ARN of the SSO instance under which the operation will be executed.
    CreateInstanceAccessControlAttributeConfiguration -> Text
instanceArn :: Prelude.Text,
    -- | Specifies the Amazon Web Services SSO identity store attributes to add
    -- to your ABAC configuration. When using an external identity provider as
    -- an identity source, you can pass attributes through the SAML assertion.
    -- Doing so provides 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 will replace the attribute
    -- value with the value from the Amazon Web Services SSO identity store.
    CreateInstanceAccessControlAttributeConfiguration
-> InstanceAccessControlAttributeConfiguration
instanceAccessControlAttributeConfiguration :: InstanceAccessControlAttributeConfiguration
  }
  deriving (CreateInstanceAccessControlAttributeConfiguration
-> CreateInstanceAccessControlAttributeConfiguration -> Bool
(CreateInstanceAccessControlAttributeConfiguration
 -> CreateInstanceAccessControlAttributeConfiguration -> Bool)
-> (CreateInstanceAccessControlAttributeConfiguration
    -> CreateInstanceAccessControlAttributeConfiguration -> Bool)
-> Eq CreateInstanceAccessControlAttributeConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateInstanceAccessControlAttributeConfiguration
-> CreateInstanceAccessControlAttributeConfiguration -> Bool
$c/= :: CreateInstanceAccessControlAttributeConfiguration
-> CreateInstanceAccessControlAttributeConfiguration -> Bool
== :: CreateInstanceAccessControlAttributeConfiguration
-> CreateInstanceAccessControlAttributeConfiguration -> Bool
$c== :: CreateInstanceAccessControlAttributeConfiguration
-> CreateInstanceAccessControlAttributeConfiguration -> Bool
Prelude.Eq, ReadPrec [CreateInstanceAccessControlAttributeConfiguration]
ReadPrec CreateInstanceAccessControlAttributeConfiguration
Int -> ReadS CreateInstanceAccessControlAttributeConfiguration
ReadS [CreateInstanceAccessControlAttributeConfiguration]
(Int -> ReadS CreateInstanceAccessControlAttributeConfiguration)
-> ReadS [CreateInstanceAccessControlAttributeConfiguration]
-> ReadPrec CreateInstanceAccessControlAttributeConfiguration
-> ReadPrec [CreateInstanceAccessControlAttributeConfiguration]
-> Read CreateInstanceAccessControlAttributeConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateInstanceAccessControlAttributeConfiguration]
$creadListPrec :: ReadPrec [CreateInstanceAccessControlAttributeConfiguration]
readPrec :: ReadPrec CreateInstanceAccessControlAttributeConfiguration
$creadPrec :: ReadPrec CreateInstanceAccessControlAttributeConfiguration
readList :: ReadS [CreateInstanceAccessControlAttributeConfiguration]
$creadList :: ReadS [CreateInstanceAccessControlAttributeConfiguration]
readsPrec :: Int -> ReadS CreateInstanceAccessControlAttributeConfiguration
$creadsPrec :: Int -> ReadS CreateInstanceAccessControlAttributeConfiguration
Prelude.Read, Int -> CreateInstanceAccessControlAttributeConfiguration -> ShowS
[CreateInstanceAccessControlAttributeConfiguration] -> ShowS
CreateInstanceAccessControlAttributeConfiguration -> String
(Int -> CreateInstanceAccessControlAttributeConfiguration -> ShowS)
-> (CreateInstanceAccessControlAttributeConfiguration -> String)
-> ([CreateInstanceAccessControlAttributeConfiguration] -> ShowS)
-> Show CreateInstanceAccessControlAttributeConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateInstanceAccessControlAttributeConfiguration] -> ShowS
$cshowList :: [CreateInstanceAccessControlAttributeConfiguration] -> ShowS
show :: CreateInstanceAccessControlAttributeConfiguration -> String
$cshow :: CreateInstanceAccessControlAttributeConfiguration -> String
showsPrec :: Int -> CreateInstanceAccessControlAttributeConfiguration -> ShowS
$cshowsPrec :: Int -> CreateInstanceAccessControlAttributeConfiguration -> ShowS
Prelude.Show, (forall x.
 CreateInstanceAccessControlAttributeConfiguration
 -> Rep CreateInstanceAccessControlAttributeConfiguration x)
-> (forall x.
    Rep CreateInstanceAccessControlAttributeConfiguration x
    -> CreateInstanceAccessControlAttributeConfiguration)
-> Generic CreateInstanceAccessControlAttributeConfiguration
forall x.
Rep CreateInstanceAccessControlAttributeConfiguration x
-> CreateInstanceAccessControlAttributeConfiguration
forall x.
CreateInstanceAccessControlAttributeConfiguration
-> Rep CreateInstanceAccessControlAttributeConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateInstanceAccessControlAttributeConfiguration x
-> CreateInstanceAccessControlAttributeConfiguration
$cfrom :: forall x.
CreateInstanceAccessControlAttributeConfiguration
-> Rep CreateInstanceAccessControlAttributeConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'CreateInstanceAccessControlAttributeConfiguration' 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', 'createInstanceAccessControlAttributeConfiguration_instanceArn' - The ARN of the SSO instance under which the operation will be executed.
--
-- 'instanceAccessControlAttributeConfiguration', 'createInstanceAccessControlAttributeConfiguration_instanceAccessControlAttributeConfiguration' - Specifies the Amazon Web Services SSO identity store attributes to add
-- to your ABAC configuration. When using an external identity provider as
-- an identity source, you can pass attributes through the SAML assertion.
-- Doing so provides 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 will replace the attribute
-- value with the value from the Amazon Web Services SSO identity store.
newCreateInstanceAccessControlAttributeConfiguration ::
  -- | 'instanceArn'
  Prelude.Text ->
  -- | 'instanceAccessControlAttributeConfiguration'
  InstanceAccessControlAttributeConfiguration ->
  CreateInstanceAccessControlAttributeConfiguration
newCreateInstanceAccessControlAttributeConfiguration :: Text
-> InstanceAccessControlAttributeConfiguration
-> CreateInstanceAccessControlAttributeConfiguration
newCreateInstanceAccessControlAttributeConfiguration
  Text
pInstanceArn_
  InstanceAccessControlAttributeConfiguration
pInstanceAccessControlAttributeConfiguration_ =
    CreateInstanceAccessControlAttributeConfiguration' :: Text
-> InstanceAccessControlAttributeConfiguration
-> CreateInstanceAccessControlAttributeConfiguration
CreateInstanceAccessControlAttributeConfiguration'
      { $sel:instanceArn:CreateInstanceAccessControlAttributeConfiguration' :: Text
instanceArn =
          Text
pInstanceArn_,
        $sel:instanceAccessControlAttributeConfiguration:CreateInstanceAccessControlAttributeConfiguration' :: InstanceAccessControlAttributeConfiguration
instanceAccessControlAttributeConfiguration =
          InstanceAccessControlAttributeConfiguration
pInstanceAccessControlAttributeConfiguration_
      }

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

-- | Specifies the Amazon Web Services SSO identity store attributes to add
-- to your ABAC configuration. When using an external identity provider as
-- an identity source, you can pass attributes through the SAML assertion.
-- Doing so provides 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 will replace the attribute
-- value with the value from the Amazon Web Services SSO identity store.
createInstanceAccessControlAttributeConfiguration_instanceAccessControlAttributeConfiguration :: Lens.Lens' CreateInstanceAccessControlAttributeConfiguration InstanceAccessControlAttributeConfiguration
createInstanceAccessControlAttributeConfiguration_instanceAccessControlAttributeConfiguration :: (InstanceAccessControlAttributeConfiguration
 -> f InstanceAccessControlAttributeConfiguration)
-> CreateInstanceAccessControlAttributeConfiguration
-> f CreateInstanceAccessControlAttributeConfiguration
createInstanceAccessControlAttributeConfiguration_instanceAccessControlAttributeConfiguration = (CreateInstanceAccessControlAttributeConfiguration
 -> InstanceAccessControlAttributeConfiguration)
-> (CreateInstanceAccessControlAttributeConfiguration
    -> InstanceAccessControlAttributeConfiguration
    -> CreateInstanceAccessControlAttributeConfiguration)
-> Lens
     CreateInstanceAccessControlAttributeConfiguration
     CreateInstanceAccessControlAttributeConfiguration
     InstanceAccessControlAttributeConfiguration
     InstanceAccessControlAttributeConfiguration
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateInstanceAccessControlAttributeConfiguration' {InstanceAccessControlAttributeConfiguration
instanceAccessControlAttributeConfiguration :: InstanceAccessControlAttributeConfiguration
$sel:instanceAccessControlAttributeConfiguration:CreateInstanceAccessControlAttributeConfiguration' :: CreateInstanceAccessControlAttributeConfiguration
-> InstanceAccessControlAttributeConfiguration
instanceAccessControlAttributeConfiguration} -> InstanceAccessControlAttributeConfiguration
instanceAccessControlAttributeConfiguration) (\s :: CreateInstanceAccessControlAttributeConfiguration
s@CreateInstanceAccessControlAttributeConfiguration' {} InstanceAccessControlAttributeConfiguration
a -> CreateInstanceAccessControlAttributeConfiguration
s {$sel:instanceAccessControlAttributeConfiguration:CreateInstanceAccessControlAttributeConfiguration' :: InstanceAccessControlAttributeConfiguration
instanceAccessControlAttributeConfiguration = InstanceAccessControlAttributeConfiguration
a} :: CreateInstanceAccessControlAttributeConfiguration)

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

instance
  Prelude.NFData
    CreateInstanceAccessControlAttributeConfiguration

instance
  Core.ToHeaders
    CreateInstanceAccessControlAttributeConfiguration
  where
  toHeaders :: CreateInstanceAccessControlAttributeConfiguration
-> ResponseHeaders
toHeaders =
    ResponseHeaders
-> CreateInstanceAccessControlAttributeConfiguration
-> 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.CreateInstanceAccessControlAttributeConfiguration" ::
                          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
    CreateInstanceAccessControlAttributeConfiguration
  where
  toJSON :: CreateInstanceAccessControlAttributeConfiguration -> Value
toJSON
    CreateInstanceAccessControlAttributeConfiguration' {Text
InstanceAccessControlAttributeConfiguration
instanceAccessControlAttributeConfiguration :: InstanceAccessControlAttributeConfiguration
instanceArn :: Text
$sel:instanceAccessControlAttributeConfiguration:CreateInstanceAccessControlAttributeConfiguration' :: CreateInstanceAccessControlAttributeConfiguration
-> InstanceAccessControlAttributeConfiguration
$sel:instanceArn:CreateInstanceAccessControlAttributeConfiguration' :: CreateInstanceAccessControlAttributeConfiguration -> 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
    CreateInstanceAccessControlAttributeConfiguration
  where
  toPath :: CreateInstanceAccessControlAttributeConfiguration -> ByteString
toPath = ByteString
-> CreateInstanceAccessControlAttributeConfiguration -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

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

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

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

instance
  Prelude.NFData
    CreateInstanceAccessControlAttributeConfigurationResponse