Skip to content

list_application_authentication_methods

list_application_authentication_methods(
    application_arn: ApplicationArn,
    *,
    config_overrides: Optional[SSOAdminClientConfig] = None,
    next_token: Optional[Token] = None,
) -> ListApplicationAuthenticationMethodsResponse

Lists all of the authentication methods supported by the specified application.

Parameters:

  • application_arn (ApplicationArn) –

    Specifies the ARN of the application with the authentication methods you want to list.

  • next_token (Optional[Token], default: None ) –

    Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

Raises:

Source code in docs_src/capo_sso_admin/_services/sso_admin.py
def list_application_authentication_methods(
    self,
    application_arn: "capo_sso_admin.types.application_arn.ApplicationArn",
    *,
    config_overrides: Optional[SSOAdminClientConfig] = None,
    next_token: Optional["capo_sso_admin.types.token.Token"] = None,
) -> "capo_sso_admin.types.list_application_authentication_methods_response.ListApplicationAuthenticationMethodsResponse":
    """<p>Lists all of the authentication methods supported by the specified application.</p>

    Args:
        application_arn: <p>Specifies the ARN of the application with the authentication methods you want to list.</p>
        next_token: <p>Specifies that you want to receive the next page of results. Valid only if you received a <code>NextToken</code> response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's <code>NextToken</code> response to request the next page of results.</p>

    Raises:
        capo_sso_admin.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_sso_admin.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception, or failure with an internal server.</p>
        capo_sso_admin.errors.resource_not_found_exception.ResourceNotFoundException: <p>Indicates that a requested resource is not found.</p>
        capo_sso_admin.errors.throttling_exception.ThrottlingException: <p>Indicates that the principal has crossed the throttling limits of the API operations.</p>
        capo_sso_admin.errors.validation_exception.ValidationException: <p>The request failed because it contains a syntax error.</p>
        capo_sso_admin.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_sso_admin.types.list_application_authentication_methods_request.ListApplicationAuthenticationMethodsRequest]",
    ) -> OperationResponse[
        "capo_sso_admin.types.list_application_authentication_methods_response.ListApplicationAuthenticationMethodsResponse"
    ]:
        import capo_sso_admin._operations.swb_external_service.list_application_authentication_methods

        output, http_response = (
            capo_sso_admin._operations.swb_external_service.list_application_authentication_methods.list_application_authentication_methods(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListApplicationAuthenticationMethods")
    )
    input_: capo_sso_admin.types.list_application_authentication_methods_request.ListApplicationAuthenticationMethodsRequest = {
        "application_arn": application_arn
    }
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output