Skip to main content

experiment_runs

Creates, updates, deletes, gets or lists an experiment_runs resource.

Overview

Nameexperiment_runs
TypeResource
Idaws.appconfig.experiment_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe application ID. (pattern: <code>[a-z0-9]{4,7}</code>)
descriptionstringA description of the experiment run.
ended_atstring (date-time)The date and time the experiment run ended, in ISO 8601 format.
experiment_definition_idstringThe experiment definition ID. (pattern: <code>[a-z0-9]{4,7}</code>)
experiment_definition_snapshotobjectA snapshot of the experiment definition at the time the run was started.
exposure_percentagenumber (float)The percentage of the target audience exposed to treatments.
resultobjectThe result of the experiment run, including the executive summary and launch decision rationale.
runintegerThe experiment run number.
started_atstring (date-time)The date and time the experiment run started, in ISO 8601 format.
statusstringThe current status of the experiment run. Valid values: RUNNING, DONE. (RUNNING, DONE)
treatment_overridesobjectTreatment assignment overrides that assign specific entity IDs to treatments.
updated_atstring (date-time)The date and time the experiment run was last updated, in ISO 8601 format.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_experiment_runselectapplication_identifier, experiment_definition_identifier, run, regionRetrieves information about an experiment run, including its status, start time, and exposure settings.
list_experiment_runsselectapplication_identifier, experiment_definition_identifier, regionmax_results, next_token, statusLists the experiment runs for a specified experiment definition. You can filter by status.
update_experiment_runupdateapplication_identifier, experiment_definition_identifier, run, regionUpdates a running experiment. Use this operation to increase audience exposure, modify treatment assignment overrides, or update the description of an active experiment run. Audience exposure can only be increased, not decreased.

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_identifierstringThe application ID or name.
experiment_definition_identifierstringThe experiment definition ID or name.
regionstringAWS region (default: us-east-1)
runintegerThe run number to update.
max_resultsintegerThe maximum number of items to return.
next_tokenstringA token to start the list from a previously truncated response.
statusstringA filter for the experiment run status.

SELECT examples

Retrieves information about an experiment run, including its status, start time, and exposure settings.

SELECT
application_id,
description,
ended_at,
experiment_definition_id,
experiment_definition_snapshot,
exposure_percentage,
result,
run,
started_at,
status,
treatment_overrides,
updated_at
FROM aws.appconfig.experiment_runs
WHERE application_identifier = '{{ application_identifier }}' -- required
AND experiment_definition_identifier = '{{ experiment_definition_identifier }}' -- required
AND run = '{{ run }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates a running experiment. Use this operation to increase audience exposure, modify treatment assignment overrides, or update the description of an active experiment run. Audience exposure can only be increased, not decreased.

UPDATE aws.appconfig.experiment_runs
SET
Description = '{{ Description }}',
ExposurePercentage = {{ ExposurePercentage }},
TreatmentOverrides = '{{ TreatmentOverrides }}',
DeploymentParameters = '{{ DeploymentParameters }}'
WHERE
application_identifier = '{{ application_identifier }}' --required
AND experiment_definition_identifier = '{{ experiment_definition_identifier }}' --required
AND run = '{{ run }}' --required
AND region = '{{ region }}' --required
RETURNING
application_id,
description,
ended_at,
experiment_definition_id,
experiment_definition_snapshot,
exposure_percentage,
result,
run,
started_at,
status,
treatment_overrides,
updated_at;