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/iam.py
| def list_saml_providers(
self, *, config_overrides: Optional[IAMClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_iam.types.list_saml_providers_request.ListSAMLProvidersRequest]",
) -> OperationResponse[
"capo_iam.types.list_saml_providers_response.ListSAMLProvidersResponse"
]:
import capo_iam._operations.aws_identity_management_v20100508.list_saml_providers
output, http_response = (
capo_iam._operations.aws_identity_management_v20100508.list_saml_providers.list_saml_providers(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListSAMLProviders")
)
input_: capo_iam.types.list_saml_providers_request.ListSAMLProvidersRequest = {}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|