module Network.AWS.IAM.ListOpenIDConnectProviders
(
ListOpenIDConnectProviders
, listOpenIDConnectProviders
, ListOpenIDConnectProvidersResponse
, listOpenIDConnectProvidersResponse
, loidcprOpenIDConnectProviderList
) where
import Network.AWS.Prelude
import Network.AWS.Request.Query
import Network.AWS.IAM.Types
import qualified GHC.Exts
data ListOpenIDConnectProviders = ListOpenIDConnectProviders
deriving (Eq, Ord, Show, Generic)
listOpenIDConnectProviders :: ListOpenIDConnectProviders
listOpenIDConnectProviders = ListOpenIDConnectProviders
newtype ListOpenIDConnectProvidersResponse = ListOpenIDConnectProvidersResponse
{ _loidcprOpenIDConnectProviderList :: List "member" OpenIDConnectProviderListEntry
} deriving (Eq, Show, Monoid, Semigroup)
instance GHC.Exts.IsList ListOpenIDConnectProvidersResponse where
type Item ListOpenIDConnectProvidersResponse = OpenIDConnectProviderListEntry
fromList = ListOpenIDConnectProvidersResponse . GHC.Exts.fromList
toList = GHC.Exts.toList . _loidcprOpenIDConnectProviderList
listOpenIDConnectProvidersResponse :: ListOpenIDConnectProvidersResponse
listOpenIDConnectProvidersResponse = ListOpenIDConnectProvidersResponse
{ _loidcprOpenIDConnectProviderList = mempty
}
loidcprOpenIDConnectProviderList :: Lens' ListOpenIDConnectProvidersResponse [OpenIDConnectProviderListEntry]
loidcprOpenIDConnectProviderList =
lens _loidcprOpenIDConnectProviderList
(\s a -> s { _loidcprOpenIDConnectProviderList = a })
. _List
instance ToPath ListOpenIDConnectProviders where
toPath = const "/"
instance ToQuery ListOpenIDConnectProviders where
toQuery = const mempty
instance ToHeaders ListOpenIDConnectProviders
instance AWSRequest ListOpenIDConnectProviders where
type Sv ListOpenIDConnectProviders = IAM
type Rs ListOpenIDConnectProviders = ListOpenIDConnectProvidersResponse
request = post "ListOpenIDConnectProviders"
response = xmlResponse
instance FromXML ListOpenIDConnectProvidersResponse where
parseXML = withElement "ListOpenIDConnectProvidersResult" $ \x -> ListOpenIDConnectProvidersResponse
<$> x .@? "OpenIDConnectProviderList" .!@ mempty