Skip to content

list_saml_providers async

list_saml_providers(
    *, config_overrides: Optional[AsyncIAMClientConfig] = None
) -> ListSAMLProvidersResponse

Lists the SAML provider resource objects defined in IAM in the account. IAM resource-listing operations return a subset of the available attributes for the resource. For example, this operation does not return tags, even though they are an attribute of the returned object. To view all of the information for a SAML provider, see GetSAMLProvider.

This operation requires Signature Version 4.

Raises:

Source code in docs_src/capo_iam/_services/async_iam.py
async def list_saml_providers(
    self, *, config_overrides: Optional[AsyncIAMClientConfig] = None
) -> "capo_iam.types.list_saml_providers_response.ListSAMLProvidersResponse":
    """<p>Lists the SAML provider resource objects defined in IAM in the account. IAM resource-listing operations return a subset of the available attributes for the resource. For example, this operation does not return tags, even though they are an attribute of the returned object. To view all of the information for a SAML provider, see <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetSAMLProvider.html">GetSAMLProvider</a>.</p> <important> <p> This operation requires <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4</a>.</p> </important>

    Raises:
        capo_iam.errors.service_failure_exception.ServiceFailureException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_iam.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_iam.types.list_saml_providers_request.ListSAMLProvidersRequest]",
    ) -> AsyncOperationResponse[
        "capo_iam.types.list_saml_providers_response.ListSAMLProvidersResponse"
    ]:
        import capo_iam._operations.aws_identity_management_v20100508.list_saml_providers

        (
            output,
            http_response,
        ) = await capo_iam._operations.aws_identity_management_v20100508.list_saml_providers.async_list_saml_providers(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListSAMLProviders")
    )
    input_: capo_iam.types.list_saml_providers_request.ListSAMLProvidersRequest = {}

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output