{-# 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 #-}
module Amazonka.SSOAdmin.DeleteInstanceAccessControlAttributeConfiguration
(
DeleteInstanceAccessControlAttributeConfiguration (..),
newDeleteInstanceAccessControlAttributeConfiguration,
deleteInstanceAccessControlAttributeConfiguration_instanceArn,
DeleteInstanceAccessControlAttributeConfigurationResponse (..),
newDeleteInstanceAccessControlAttributeConfigurationResponse,
deleteInstanceAccessControlAttributeConfigurationResponse_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
data DeleteInstanceAccessControlAttributeConfiguration = DeleteInstanceAccessControlAttributeConfiguration'
{
DeleteInstanceAccessControlAttributeConfiguration -> Text
instanceArn :: Prelude.Text
}
deriving (DeleteInstanceAccessControlAttributeConfiguration
-> DeleteInstanceAccessControlAttributeConfiguration -> Bool
(DeleteInstanceAccessControlAttributeConfiguration
-> DeleteInstanceAccessControlAttributeConfiguration -> Bool)
-> (DeleteInstanceAccessControlAttributeConfiguration
-> DeleteInstanceAccessControlAttributeConfiguration -> Bool)
-> Eq DeleteInstanceAccessControlAttributeConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteInstanceAccessControlAttributeConfiguration
-> DeleteInstanceAccessControlAttributeConfiguration -> Bool
$c/= :: DeleteInstanceAccessControlAttributeConfiguration
-> DeleteInstanceAccessControlAttributeConfiguration -> Bool
== :: DeleteInstanceAccessControlAttributeConfiguration
-> DeleteInstanceAccessControlAttributeConfiguration -> Bool
$c== :: DeleteInstanceAccessControlAttributeConfiguration
-> DeleteInstanceAccessControlAttributeConfiguration -> Bool
Prelude.Eq, ReadPrec [DeleteInstanceAccessControlAttributeConfiguration]
ReadPrec DeleteInstanceAccessControlAttributeConfiguration
Int -> ReadS DeleteInstanceAccessControlAttributeConfiguration
ReadS [DeleteInstanceAccessControlAttributeConfiguration]
(Int -> ReadS DeleteInstanceAccessControlAttributeConfiguration)
-> ReadS [DeleteInstanceAccessControlAttributeConfiguration]
-> ReadPrec DeleteInstanceAccessControlAttributeConfiguration
-> ReadPrec [DeleteInstanceAccessControlAttributeConfiguration]
-> Read DeleteInstanceAccessControlAttributeConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteInstanceAccessControlAttributeConfiguration]
$creadListPrec :: ReadPrec [DeleteInstanceAccessControlAttributeConfiguration]
readPrec :: ReadPrec DeleteInstanceAccessControlAttributeConfiguration
$creadPrec :: ReadPrec DeleteInstanceAccessControlAttributeConfiguration
readList :: ReadS [DeleteInstanceAccessControlAttributeConfiguration]
$creadList :: ReadS [DeleteInstanceAccessControlAttributeConfiguration]
readsPrec :: Int -> ReadS DeleteInstanceAccessControlAttributeConfiguration
$creadsPrec :: Int -> ReadS DeleteInstanceAccessControlAttributeConfiguration
Prelude.Read, Int -> DeleteInstanceAccessControlAttributeConfiguration -> ShowS
[DeleteInstanceAccessControlAttributeConfiguration] -> ShowS
DeleteInstanceAccessControlAttributeConfiguration -> String
(Int -> DeleteInstanceAccessControlAttributeConfiguration -> ShowS)
-> (DeleteInstanceAccessControlAttributeConfiguration -> String)
-> ([DeleteInstanceAccessControlAttributeConfiguration] -> ShowS)
-> Show DeleteInstanceAccessControlAttributeConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteInstanceAccessControlAttributeConfiguration] -> ShowS
$cshowList :: [DeleteInstanceAccessControlAttributeConfiguration] -> ShowS
show :: DeleteInstanceAccessControlAttributeConfiguration -> String
$cshow :: DeleteInstanceAccessControlAttributeConfiguration -> String
showsPrec :: Int -> DeleteInstanceAccessControlAttributeConfiguration -> ShowS
$cshowsPrec :: Int -> DeleteInstanceAccessControlAttributeConfiguration -> ShowS
Prelude.Show, (forall x.
DeleteInstanceAccessControlAttributeConfiguration
-> Rep DeleteInstanceAccessControlAttributeConfiguration x)
-> (forall x.
Rep DeleteInstanceAccessControlAttributeConfiguration x
-> DeleteInstanceAccessControlAttributeConfiguration)
-> Generic DeleteInstanceAccessControlAttributeConfiguration
forall x.
Rep DeleteInstanceAccessControlAttributeConfiguration x
-> DeleteInstanceAccessControlAttributeConfiguration
forall x.
DeleteInstanceAccessControlAttributeConfiguration
-> Rep DeleteInstanceAccessControlAttributeConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteInstanceAccessControlAttributeConfiguration x
-> DeleteInstanceAccessControlAttributeConfiguration
$cfrom :: forall x.
DeleteInstanceAccessControlAttributeConfiguration
-> Rep DeleteInstanceAccessControlAttributeConfiguration x
Prelude.Generic)
newDeleteInstanceAccessControlAttributeConfiguration ::
Prelude.Text ->
DeleteInstanceAccessControlAttributeConfiguration
newDeleteInstanceAccessControlAttributeConfiguration :: Text -> DeleteInstanceAccessControlAttributeConfiguration
newDeleteInstanceAccessControlAttributeConfiguration
Text
pInstanceArn_ =
DeleteInstanceAccessControlAttributeConfiguration' :: Text -> DeleteInstanceAccessControlAttributeConfiguration
DeleteInstanceAccessControlAttributeConfiguration'
{ $sel:instanceArn:DeleteInstanceAccessControlAttributeConfiguration' :: Text
instanceArn =
Text
pInstanceArn_
}
deleteInstanceAccessControlAttributeConfiguration_instanceArn :: Lens.Lens' DeleteInstanceAccessControlAttributeConfiguration Prelude.Text
deleteInstanceAccessControlAttributeConfiguration_instanceArn :: (Text -> f Text)
-> DeleteInstanceAccessControlAttributeConfiguration
-> f DeleteInstanceAccessControlAttributeConfiguration
deleteInstanceAccessControlAttributeConfiguration_instanceArn = (DeleteInstanceAccessControlAttributeConfiguration -> Text)
-> (DeleteInstanceAccessControlAttributeConfiguration
-> Text -> DeleteInstanceAccessControlAttributeConfiguration)
-> Lens
DeleteInstanceAccessControlAttributeConfiguration
DeleteInstanceAccessControlAttributeConfiguration
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteInstanceAccessControlAttributeConfiguration' {Text
instanceArn :: Text
$sel:instanceArn:DeleteInstanceAccessControlAttributeConfiguration' :: DeleteInstanceAccessControlAttributeConfiguration -> Text
instanceArn} -> Text
instanceArn) (\s :: DeleteInstanceAccessControlAttributeConfiguration
s@DeleteInstanceAccessControlAttributeConfiguration' {} Text
a -> DeleteInstanceAccessControlAttributeConfiguration
s {$sel:instanceArn:DeleteInstanceAccessControlAttributeConfiguration' :: Text
instanceArn = Text
a} :: DeleteInstanceAccessControlAttributeConfiguration)
instance
Core.AWSRequest
DeleteInstanceAccessControlAttributeConfiguration
where
type
AWSResponse
DeleteInstanceAccessControlAttributeConfiguration =
DeleteInstanceAccessControlAttributeConfigurationResponse
request :: DeleteInstanceAccessControlAttributeConfiguration
-> Request DeleteInstanceAccessControlAttributeConfiguration
request = Service
-> DeleteInstanceAccessControlAttributeConfiguration
-> Request DeleteInstanceAccessControlAttributeConfiguration
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteInstanceAccessControlAttributeConfiguration
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DeleteInstanceAccessControlAttributeConfiguration)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either
String
(AWSResponse DeleteInstanceAccessControlAttributeConfiguration))
-> Logger
-> Service
-> Proxy DeleteInstanceAccessControlAttributeConfiguration
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DeleteInstanceAccessControlAttributeConfiguration)))
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 -> DeleteInstanceAccessControlAttributeConfigurationResponse
DeleteInstanceAccessControlAttributeConfigurationResponse'
(Int -> DeleteInstanceAccessControlAttributeConfigurationResponse)
-> Either String Int
-> Either
String DeleteInstanceAccessControlAttributeConfigurationResponse
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
DeleteInstanceAccessControlAttributeConfiguration
instance
Prelude.NFData
DeleteInstanceAccessControlAttributeConfiguration
instance
Core.ToHeaders
DeleteInstanceAccessControlAttributeConfiguration
where
toHeaders :: DeleteInstanceAccessControlAttributeConfiguration
-> ResponseHeaders
toHeaders =
ResponseHeaders
-> DeleteInstanceAccessControlAttributeConfiguration
-> 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.DeleteInstanceAccessControlAttributeConfiguration" ::
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
DeleteInstanceAccessControlAttributeConfiguration
where
toJSON :: DeleteInstanceAccessControlAttributeConfiguration -> Value
toJSON
DeleteInstanceAccessControlAttributeConfiguration' {Text
instanceArn :: Text
$sel:instanceArn:DeleteInstanceAccessControlAttributeConfiguration' :: DeleteInstanceAccessControlAttributeConfiguration -> 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)]
)
instance
Core.ToPath
DeleteInstanceAccessControlAttributeConfiguration
where
toPath :: DeleteInstanceAccessControlAttributeConfiguration -> ByteString
toPath = ByteString
-> DeleteInstanceAccessControlAttributeConfiguration -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DeleteInstanceAccessControlAttributeConfiguration
where
toQuery :: DeleteInstanceAccessControlAttributeConfiguration -> QueryString
toQuery = QueryString
-> DeleteInstanceAccessControlAttributeConfiguration -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteInstanceAccessControlAttributeConfigurationResponse = DeleteInstanceAccessControlAttributeConfigurationResponse'
{
DeleteInstanceAccessControlAttributeConfigurationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DeleteInstanceAccessControlAttributeConfigurationResponse
-> DeleteInstanceAccessControlAttributeConfigurationResponse
-> Bool
(DeleteInstanceAccessControlAttributeConfigurationResponse
-> DeleteInstanceAccessControlAttributeConfigurationResponse
-> Bool)
-> (DeleteInstanceAccessControlAttributeConfigurationResponse
-> DeleteInstanceAccessControlAttributeConfigurationResponse
-> Bool)
-> Eq DeleteInstanceAccessControlAttributeConfigurationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteInstanceAccessControlAttributeConfigurationResponse
-> DeleteInstanceAccessControlAttributeConfigurationResponse
-> Bool
$c/= :: DeleteInstanceAccessControlAttributeConfigurationResponse
-> DeleteInstanceAccessControlAttributeConfigurationResponse
-> Bool
== :: DeleteInstanceAccessControlAttributeConfigurationResponse
-> DeleteInstanceAccessControlAttributeConfigurationResponse
-> Bool
$c== :: DeleteInstanceAccessControlAttributeConfigurationResponse
-> DeleteInstanceAccessControlAttributeConfigurationResponse
-> Bool
Prelude.Eq, ReadPrec
[DeleteInstanceAccessControlAttributeConfigurationResponse]
ReadPrec DeleteInstanceAccessControlAttributeConfigurationResponse
Int
-> ReadS DeleteInstanceAccessControlAttributeConfigurationResponse
ReadS [DeleteInstanceAccessControlAttributeConfigurationResponse]
(Int
-> ReadS DeleteInstanceAccessControlAttributeConfigurationResponse)
-> ReadS
[DeleteInstanceAccessControlAttributeConfigurationResponse]
-> ReadPrec
DeleteInstanceAccessControlAttributeConfigurationResponse
-> ReadPrec
[DeleteInstanceAccessControlAttributeConfigurationResponse]
-> Read DeleteInstanceAccessControlAttributeConfigurationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec
[DeleteInstanceAccessControlAttributeConfigurationResponse]
$creadListPrec :: ReadPrec
[DeleteInstanceAccessControlAttributeConfigurationResponse]
readPrec :: ReadPrec DeleteInstanceAccessControlAttributeConfigurationResponse
$creadPrec :: ReadPrec DeleteInstanceAccessControlAttributeConfigurationResponse
readList :: ReadS [DeleteInstanceAccessControlAttributeConfigurationResponse]
$creadList :: ReadS [DeleteInstanceAccessControlAttributeConfigurationResponse]
readsPrec :: Int
-> ReadS DeleteInstanceAccessControlAttributeConfigurationResponse
$creadsPrec :: Int
-> ReadS DeleteInstanceAccessControlAttributeConfigurationResponse
Prelude.Read, Int
-> DeleteInstanceAccessControlAttributeConfigurationResponse
-> ShowS
[DeleteInstanceAccessControlAttributeConfigurationResponse]
-> ShowS
DeleteInstanceAccessControlAttributeConfigurationResponse -> String
(Int
-> DeleteInstanceAccessControlAttributeConfigurationResponse
-> ShowS)
-> (DeleteInstanceAccessControlAttributeConfigurationResponse
-> String)
-> ([DeleteInstanceAccessControlAttributeConfigurationResponse]
-> ShowS)
-> Show DeleteInstanceAccessControlAttributeConfigurationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteInstanceAccessControlAttributeConfigurationResponse]
-> ShowS
$cshowList :: [DeleteInstanceAccessControlAttributeConfigurationResponse]
-> ShowS
show :: DeleteInstanceAccessControlAttributeConfigurationResponse -> String
$cshow :: DeleteInstanceAccessControlAttributeConfigurationResponse -> String
showsPrec :: Int
-> DeleteInstanceAccessControlAttributeConfigurationResponse
-> ShowS
$cshowsPrec :: Int
-> DeleteInstanceAccessControlAttributeConfigurationResponse
-> ShowS
Prelude.Show, (forall x.
DeleteInstanceAccessControlAttributeConfigurationResponse
-> Rep DeleteInstanceAccessControlAttributeConfigurationResponse x)
-> (forall x.
Rep DeleteInstanceAccessControlAttributeConfigurationResponse x
-> DeleteInstanceAccessControlAttributeConfigurationResponse)
-> Generic
DeleteInstanceAccessControlAttributeConfigurationResponse
forall x.
Rep DeleteInstanceAccessControlAttributeConfigurationResponse x
-> DeleteInstanceAccessControlAttributeConfigurationResponse
forall x.
DeleteInstanceAccessControlAttributeConfigurationResponse
-> Rep DeleteInstanceAccessControlAttributeConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteInstanceAccessControlAttributeConfigurationResponse x
-> DeleteInstanceAccessControlAttributeConfigurationResponse
$cfrom :: forall x.
DeleteInstanceAccessControlAttributeConfigurationResponse
-> Rep DeleteInstanceAccessControlAttributeConfigurationResponse x
Prelude.Generic)
newDeleteInstanceAccessControlAttributeConfigurationResponse ::
Prelude.Int ->
DeleteInstanceAccessControlAttributeConfigurationResponse
newDeleteInstanceAccessControlAttributeConfigurationResponse :: Int -> DeleteInstanceAccessControlAttributeConfigurationResponse
newDeleteInstanceAccessControlAttributeConfigurationResponse
Int
pHttpStatus_ =
DeleteInstanceAccessControlAttributeConfigurationResponse' :: Int -> DeleteInstanceAccessControlAttributeConfigurationResponse
DeleteInstanceAccessControlAttributeConfigurationResponse'
{ $sel:httpStatus:DeleteInstanceAccessControlAttributeConfigurationResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
deleteInstanceAccessControlAttributeConfigurationResponse_httpStatus :: Lens.Lens' DeleteInstanceAccessControlAttributeConfigurationResponse Prelude.Int
deleteInstanceAccessControlAttributeConfigurationResponse_httpStatus :: (Int -> f Int)
-> DeleteInstanceAccessControlAttributeConfigurationResponse
-> f DeleteInstanceAccessControlAttributeConfigurationResponse
deleteInstanceAccessControlAttributeConfigurationResponse_httpStatus = (DeleteInstanceAccessControlAttributeConfigurationResponse -> Int)
-> (DeleteInstanceAccessControlAttributeConfigurationResponse
-> Int
-> DeleteInstanceAccessControlAttributeConfigurationResponse)
-> Lens
DeleteInstanceAccessControlAttributeConfigurationResponse
DeleteInstanceAccessControlAttributeConfigurationResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteInstanceAccessControlAttributeConfigurationResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteInstanceAccessControlAttributeConfigurationResponse' :: DeleteInstanceAccessControlAttributeConfigurationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteInstanceAccessControlAttributeConfigurationResponse
s@DeleteInstanceAccessControlAttributeConfigurationResponse' {} Int
a -> DeleteInstanceAccessControlAttributeConfigurationResponse
s {$sel:httpStatus:DeleteInstanceAccessControlAttributeConfigurationResponse' :: Int
httpStatus = Int
a} :: DeleteInstanceAccessControlAttributeConfigurationResponse)
instance
Prelude.NFData
DeleteInstanceAccessControlAttributeConfigurationResponse