Skip to main content

feature_groups

Creates, updates, deletes or gets a feature_group resource or lists feature_groups in a region

Overview

Namefeature_groups
TypeResource
DescriptionResource Type definition for AWS::SageMaker::FeatureGroup
Idaws.sagemaker.feature_groups

Fields

NameDatatypeDescription
feature_group_namestringThe Name of the FeatureGroup.
record_identifier_feature_namestringThe Record Identifier Feature Name.
event_time_feature_namestringThe Event Time Feature Name.
feature_definitionsarrayAn Array of Feature Definition
online_store_configobject
offline_store_configobject
throughput_configobject
role_arnstringRole Arn
descriptionstringDescription about the FeatureGroup.
creation_timestringA timestamp of FeatureGroup creation time.
feature_group_statusstringThe status of the feature group.
tagsarrayAn array of key-value pair to apply to this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTFeatureGroupName, RecordIdentifierFeatureName, EventTimeFeatureName, FeatureDefinitions, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all feature_groups in a region.

SELECT
region,
feature_group_name,
record_identifier_feature_name,
event_time_feature_name,
feature_definitions,
online_store_config,
offline_store_config,
throughput_config,
role_arn,
description,
creation_time,
feature_group_status,
tags
FROM aws.sagemaker.feature_groups
WHERE region = 'us-east-1';

Gets all properties from an individual feature_group.

SELECT
region,
feature_group_name,
record_identifier_feature_name,
event_time_feature_name,
feature_definitions,
online_store_config,
offline_store_config,
throughput_config,
role_arn,
description,
creation_time,
feature_group_status,
tags
FROM aws.sagemaker.feature_groups
WHERE region = 'us-east-1' AND data__Identifier = '<FeatureGroupName>';

INSERT example

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

/*+ create */
INSERT INTO aws.sagemaker.feature_groups (
FeatureGroupName,
RecordIdentifierFeatureName,
EventTimeFeatureName,
FeatureDefinitions,
region
)
SELECT
'{{ FeatureGroupName }}',
'{{ RecordIdentifierFeatureName }}',
'{{ EventTimeFeatureName }}',
'{{ FeatureDefinitions }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.sagemaker.feature_groups
WHERE data__Identifier = '<FeatureGroupName>'
AND region = 'us-east-1';

Permissions

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

Create

iam:PassRole,
kms:CreateGrant,
kms:DescribeKey,
glue:CreateTable,
glue:GetTable,
glue:CreateDatabase,
glue:GetDatabase,
sagemaker:CreateFeatureGroup,
sagemaker:DescribeFeatureGroup,
sagemaker:AddTags,
sagemaker:ListTags

Update

sagemaker:UpdateFeatureGroup,
sagemaker:DescribeFeatureGroup,
sagemaker:AddTags,
sagemaker:ListTags,
sagemaker:DeleteTags

Read

sagemaker:DescribeFeatureGroup,
sagemaker:ListTags

Delete

sagemaker:DeleteFeatureGroup,
sagemaker:DescribeFeatureGroup

List

sagemaker:ListFeatureGroups