Skip to main content

feature_metadatas

Creates, updates, deletes, gets or lists a feature_metadatas resource.

Overview

Namefeature_metadatas
TypeResource
Idaws.sagemaker.feature_metadatas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)A timestamp indicating when the feature was created.
descriptionstringThe description you added to describe the feature. (pattern: <code>.*</code>)
feature_group_arnstringThe Amazon Resource Number (ARN) of the feature group that contains the feature. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:feature-group/.*</code>)
feature_group_namestringThe name of the feature group that you've specified. (pattern: <code>[a-zA-Z0-9]([_-]*[a-zA-Z0-9]){0,63}</code>)
feature_namestringThe name of the feature that you've specified. (pattern: <code>[a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63}</code>)
feature_typestringThe data type of the feature. (Integral, Fractional, String)
last_modified_timestring (date-time)A timestamp indicating when the metadata for the feature group was modified. For example, if you add a parameter describing the feature, the timestamp changes to reflect the last time you
parametersarrayThe key-value pairs that you added to describe the feature.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_feature_metadataselectregionShows the metadata for a feature within a feature group.
update_feature_metadataupdateregion, FeatureGroupName, FeatureNameUpdates the description and parameters of the feature group.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Shows the metadata for a feature within a feature group.

SELECT
creation_time,
description,
feature_group_arn,
feature_group_name,
feature_name,
feature_type,
last_modified_time,
parameters
FROM aws.sagemaker.feature_metadatas
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates the description and parameters of the feature group.

UPDATE aws.sagemaker.feature_metadatas
SET
FeatureGroupName = '{{ FeatureGroupName }}',
FeatureName = '{{ FeatureName }}',
Description = '{{ Description }}',
ParameterAdditions = '{{ ParameterAdditions }}',
ParameterRemovals = '{{ ParameterRemovals }}'
WHERE
region = '{{ region }}' --required
AND FeatureGroupName = '{{ FeatureGroupName }}' --required
AND FeatureName = '{{ FeatureName }}' --required;