Skip to main content

resource_dashboards

Creates, updates, deletes, gets or lists a resource_dashboards resource.

Overview

Nameresource_dashboards
TypeResource
Idaws.emr_serverless.resource_dashboards

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
urlstringA URL to the resource dashboard. For an active resource, this URL opens the live application UI. For a terminated resource, this URL opens the persistent application UI. This value is not included in the response if the URL is not available.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_resource_dashboardselectapplication_id, resourceId, resourceType, regionReturns a URL that you can use to access the application UIs for a specified resource, such as a session. For resources in a running state, the application UI is a live user interface such as the Spark web UI. For terminated resources, the application UI is a persistent application user interface such as the Spark History Server. The URL is valid for one hour after you generate it. To access the application UI after that hour elapses, you must invoke the API again to generate a new URL.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
application_idstringThe ID of the application that the resource belongs to.
regionstringAWS region (default: us-east-1)
resourceIdstringThe ID of the resource.
resourceTypestringThe type of resource to access the dashboard for. Currently, only Session is supported.

SELECT examples

Returns a URL that you can use to access the application UIs for a specified resource, such as a session. For resources in a running state, the application UI is a live user interface such as the Spark web UI. For terminated resources, the application UI is a persistent application user interface such as the Spark History Server. The URL is valid for one hour after you generate it. To access the application UI after that hour elapses, you must invoke the API again to generate a new URL.

SELECT
url
FROM aws.emr_serverless.resource_dashboards
WHERE application_id = '{{ application_id }}' -- required
AND resourceId = '{{ resourceId }}' -- required
AND resourceType = '{{ resourceType }}' -- required
AND region = '{{ region }}' -- required
;