How to retrieve Resource Id for a resource with specific name

This new API let the user add large number of resources to ETL job. Currently this is API only feature.

Retrieving Resource Id

Amorphic users can retrieve the resource Id based on the spcific resource name using the below API call.

Datasets:

HTTP Method: GET
API: <API_GW_URL/environment>/resourcetypes/datasets/resources/{resource_name}

Ex: https://1abcdefghi.execute-api.us-west-2.amazonaws.com/dev/resourcetypes/datasets/resources/Test_Dataset

Jobs:

HTTP Method: GET
API: <API_GW_URL/environment>/resourcetypes/jobs/resources/{resource_name}

Ex: https://1abcdefghi.execute-api.us-west-2.amazonaws.com/dev/resourcetypes/jobs/resources/Test_ETL_Job

Response of the APIs will be returned as a JSON object described as below:

{
    "ResourceId": "UUID",
    "ResourceName": "string"
}