Skip to content

list_open_id_connect_providers async

list_open_id_connect_providers(
    *, config_overrides: Optional[AsyncIAMClientConfig] = None
) -> ListOpenIDConnectProvidersResponse

Lists information about the IAM OpenID Connect (OIDC) provider resource objects defined in the Amazon Web Services 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 an OIDC provider, see GetOpenIDConnectProvider.

Raises:

Source code in docs_src/capo_iam/_services/async_iam.py
async def list_open_id_connect_providers(
    self, *, config_overrides: Optional[AsyncIAMClientConfig] = None
) -> "capo_iam.types.list_open_id_connect_providers_response.ListOpenIDConnectProvidersResponse":
    """<p>Lists information about the IAM OpenID Connect (OIDC) provider resource objects defined in the Amazon Web Services account.</p> <note> <p>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 an OIDC provider, see <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetOpenIDConnectProvider.html">GetOpenIDConnectProvider</a>.</p> </note>

    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_open_id_connect_providers_request.ListOpenIDConnectProvidersRequest]",
    ) -> AsyncOperationResponse[
        "capo_iam.types.list_open_id_connect_providers_response.ListOpenIDConnectProvidersResponse"
    ]:
        import capo_iam._operations.aws_identity_management_v20100508.list_open_id_connect_providers

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListOpenIDConnectProviders")
    )
    input_: capo_iam.types.list_open_id_connect_providers_request.ListOpenIDConnectProvidersRequest = {}

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