Skip to main content

workspace_configurations

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

Overview​

Nameworkspace_configurations
TypeResource
Idaws.amp.workspace_configurations

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
limits_per_label_setarrayThis is an array of structures, where each structure displays one label sets for the workspace and the limits for that label set.
out_of_order_time_window_in_secondsintegerThis field displays the out of order time window in seconds for accepting out of order samples.
retention_period_in_daysintegerThis field displays how many days that metrics are retained in the workspace.
rule_query_offset_in_secondsintegerThis field displays the duration in seconds that rule evaluation queries are offset into the past.
statusobjectThis structure displays the current status of the workspace configuration, and might also contain a reason for that status.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_workspace_configurationselectworkspace_id, regionUse this operation to return information about the configuration of a workspace. The configuration details returned include workspace configuration status, label set limits, and retention period.
update_workspace_configurationupdateworkspace_id, regionUse this operation to create or update the label sets, label set limits, and retention period of a workspace. You must specify at least one of limitsPerLabelSet or retentionPeriodInDays for the request to be valid.

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 that you want to update. To find the IDs of your workspaces, use the ListWorkspaces operation.

SELECT examples​

Use this operation to return information about the configuration of a workspace. The configuration details returned include workspace configuration status, label set limits, and retention period.

SELECT
limits_per_label_set,
out_of_order_time_window_in_seconds,
retention_period_in_days,
rule_query_offset_in_seconds,
status
FROM aws.amp.workspace_configurations
WHERE workspace_id = '{{ workspace_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples​

Use this operation to create or update the label sets, label set limits, and retention period of a workspace. You must specify at least one of limitsPerLabelSet or retentionPeriodInDays for the request to be valid.

UPDATE aws.amp.workspace_configurations
SET
clientToken = '{{ clientToken }}',
limitsPerLabelSet = '{{ limitsPerLabelSet }}',
retentionPeriodInDays = {{ retentionPeriodInDays }},
outOfOrderTimeWindowInSeconds = {{ outOfOrderTimeWindowInSeconds }},
ruleQueryOffsetInSeconds = {{ ruleQueryOffsetInSeconds }}
WHERE
workspace_id = '{{ workspace_id }}' --required
AND region = '{{ region }}' --required
RETURNING
status;