Skip to main content

features

Creates, updates, deletes or gets a feature resource or lists features in a region

Overview

Namefeatures
TypeResource
DescriptionResource Type definition for AWS::Evidently::Feature.
Idawscc.evidently.features

Fields

NameDatatypeDescription
arnstring
projectstring
namestring
descriptionstring
evaluation_strategystring
variationsarray
default_variationstring
entity_overridesarray
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::Evidently::Feature.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, Project, Variations, region
delete_resourceDELETEIdentifier, region
update_resourceUPDATEIdentifier, PatchDocument, region
get_resourceSELECTIdentifier, region

SELECT examples

Gets all properties from an individual feature.

SELECT
region,
arn,
project,
name,
description,
evaluation_strategy,
variations,
default_variation,
entity_overrides,
tags
FROM awscc.evidently.features
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new feature resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.evidently.features (
Project,
Name,
Variations,
region
)
SELECT
'{{ project }}',
'{{ name }}',
'{{ variations }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a feature resource, using stack-deploy.

/*+ update */
UPDATE awscc.evidently.features
SET PatchDocument = string('{{ {
"Description": description,
"EvaluationStrategy": evaluation_strategy,
"Variations": variations,
"DefaultVariation": default_variation,
"EntityOverrides": entity_overrides,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.evidently.features
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

To operate on the features resource, the following permissions are required:

evidently:CreateFeature,
evidently:TagResource,
evidently:GetFeature