• Convenience function to create a destination from the provided service binding. If a JWT is provided as part of options, the tenant in the JWT is used for client credentials grant, else the provider tenant is used, wherever applicable. Supported service types are:

    • business-logging (OAuth2ClientCredentials)
    • destination (OAuth2ClientCredentials)
    • s4-hana-cloud (BasicAuthentication)
    • saas-registry (OAuth2ClientCredentials)
    • workflow (OAuth2ClientCredentials)
    • service-manager (OAuth2ClientCredentials)
    • xsuaa (OAuth2ClientCredentials)
    • aicore (OAuth2ClientCredentials) Throws an error if the provided service binding is not supported.

    Parameters

    Returns Promise<Destination>

    A promise returning the transformed destination on success.

    Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.