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.
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, Project, Variations, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, 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 aws.evidently.features
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.evidently.features
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

evidently:CreateFeature,
evidently:TagResource,
evidently:GetFeature

Read

evidently:GetFeature,
evidently:ListTagsForResource

Update

evidently:UpdateFeature,
evidently:ListTagsForResource,
evidently:TagResource,
evidently:UntagResource,
evidently:GetFeature

Delete

evidently:DeleteFeature,
evidently:UntagResource,
evidently:GetFeature