Skip to main content

workspace_configurations

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

Overview

Nameworkspace_configurations
TypeResource
Idaws.grafana.workspace_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
configurationstringThe configuration string for the workspace that you requested. For more information about the format and configuration options available, see Working in your Grafana workspace.
grafana_versionstringThe supported Grafana version for the workspace.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_workspace_configurationselectworkspace_id, regionGets the current configuration string for the given workspace.
update_workspace_configurationupdateworkspace_id, region, configurationUpdates the configuration string for the given workspace

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
regionstringAWS region (default: us-east-1)
workspace_idstringThe ID of the workspace to update.

SELECT examples

Gets the current configuration string for the given workspace.

SELECT
configuration,
grafana_version
FROM aws.grafana.workspace_configurations
WHERE workspace_id = '{{ workspace_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates the configuration string for the given workspace

UPDATE aws.grafana.workspace_configurations
SET
configuration = '{{ configuration }}',
grafanaVersion = '{{ grafanaVersion }}'
WHERE
workspace_id = '{{ workspace_id }}' --required
AND region = '{{ region }}' --required
AND configuration = '{{ configuration }}' --required;