features
Creates, updates, deletes or gets a feature
resource or lists features
in a region
Overview
Name | features |
Type | Resource |
Description | Resource Type definition for AWS::Evidently::Feature. |
Id | aws.evidently.features |
Fields
Name | Datatype | Description |
---|---|---|
arn | string | |
project | string | |
name | string | |
description | string | |
evaluation_strategy | string | |
variations | array | |
default_variation | string | |
entity_overrides | array | |
tags | array | An array of key-value pairs to apply to this resource. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Name, Project, Variations, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.evidently.features (
Project,
Name,
Variations,
region
)
SELECT
'{{ Project }}',
'{{ Name }}',
'{{ Variations }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.evidently.features (
Project,
Name,
Description,
EvaluationStrategy,
Variations,
DefaultVariation,
EntityOverrides,
Tags,
region
)
SELECT
'{{ Project }}',
'{{ Name }}',
'{{ Description }}',
'{{ EvaluationStrategy }}',
'{{ Variations }}',
'{{ DefaultVariation }}',
'{{ EntityOverrides }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: feature
props:
- name: Project
value: '{{ Project }}'
- name: Name
value: '{{ Name }}'
- name: Description
value: '{{ Description }}'
- name: EvaluationStrategy
value: '{{ EvaluationStrategy }}'
- name: Variations
value:
- VariationName: '{{ VariationName }}'
BooleanValue: '{{ BooleanValue }}'
StringValue: '{{ StringValue }}'
LongValue: null
DoubleValue: null
- name: DefaultVariation
value: '{{ DefaultVariation }}'
- name: EntityOverrides
value:
- EntityId: '{{ EntityId }}'
Variation: '{{ Variation }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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