openapi: 3.0.0 info: version: '2020-07-01' x-release: v4 title: Amazon SageMaker Feature Store Runtime description: '

Contains all data plane API operations and data types for the Amazon SageMaker Feature Store. Use this API to put, delete, and retrieve (get) features from a feature store.

Use the following operations to configure your OnlineStore and OfflineStore features, and to create and manage feature groups:

' x-logo: url: 'https://twitter.com/awscloud/profile_image?size=original' backgroundColor: '#FFFFFF' termsOfService: 'https://aws.amazon.com/service-terms/' contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: 'https://github.com/mermade/aws2openapi' x-twitter: PermittedSoc license: name: Apache 2.0 License url: 'http://www.apache.org/licenses/' x-providerName: amazonaws.com x-serviceName: sagemaker-featurestore-runtime x-aws-signingName: sagemaker x-origin: - contentType: application/json url: 'https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/sagemaker-featurestore-runtime-2020-07-01.normal.json' converter: url: 'https://github.com/mermade/aws2openapi' version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: 'https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct' x-apisguru-categories: - cloud x-preferred: true externalDocs: description: Amazon Web Services documentation url: 'https://docs.aws.amazon.com/sagemaker/' servers: - url: 'http://featurestore-runtime.sagemaker.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon SageMaker Feature Store Runtime multi-region endpoint - url: 'https://featurestore-runtime.sagemaker.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon SageMaker Feature Store Runtime multi-region endpoint - url: 'http://featurestore-runtime.sagemaker.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon SageMaker Feature Store Runtime endpoint for China (Beijing) and China (Ningxia) - url: 'https://featurestore-runtime.sagemaker.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon SageMaker Feature Store Runtime endpoint for China (Beijing) and China (Ningxia) x-hasEquivalentPaths: true paths: /BatchGetRecord: post: operationId: BatchGetRecord description: Retrieves a batch of Records from a FeatureGroup. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/BatchGetRecordResponse' '480': description: ValidationError content: application/json: schema: $ref: '#/components/schemas/ValidationError' '481': description: InternalFailure content: application/json: schema: $ref: '#/components/schemas/InternalFailure' '482': description: ServiceUnavailable content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailable' '483': description: AccessForbidden content: application/json: schema: $ref: '#/components/schemas/AccessForbidden' parameters: [] requestBody: required: true content: application/json: schema: type: object required: - Identifiers properties: Identifiers: description: 'A list containing the name or Amazon Resource Name (ARN) of the FeatureGroup, the list of names of Features to be retrieved, and the corresponding RecordIdentifier values as strings.' type: array items: $ref: '#/components/schemas/BatchGetRecordIdentifier' minItems: 1 maxItems: 10 ExpirationTimeResponse: description: 'Parameter to request ExpiresAt in response. If Enabled, BatchGetRecord will return the value of ExpiresAt, if it is not null. If Disabled and null, BatchGetRecord will return null.' type: string enum: - Enabled - Disabled parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/FeatureGroup/{FeatureGroupName}#RecordIdentifierValueAsString&EventTime': delete: operationId: DeleteRecord description: '

Deletes a Record from a FeatureGroup in the OnlineStore. Feature Store supports both SoftDelete and HardDelete. For SoftDelete (default), feature columns are set to null and the record is no longer retrievable by GetRecord or BatchGetRecord. For HardDelete, the complete Record is removed from the OnlineStore. In both cases, Feature Store appends the deleted record marker to the OfflineStore with feature values set to null, is_deleted value set to True, and EventTime set to the delete input EventTime.

Note that the EventTime specified in DeleteRecord should be set later than the EventTime of the existing record in the OnlineStore for that RecordIdentifer. If it is not, the deletion does not occur:

' responses: '200': description: Success '480': description: ValidationError content: application/json: schema: $ref: '#/components/schemas/ValidationError' '481': description: InternalFailure content: application/json: schema: $ref: '#/components/schemas/InternalFailure' '482': description: ServiceUnavailable content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailable' '483': description: AccessForbidden content: application/json: schema: $ref: '#/components/schemas/AccessForbidden' parameters: - name: FeatureGroupName in: path required: true description: 'The name or Amazon Resource Name (ARN) of the feature group to delete the record from. ' schema: type: string pattern: '(arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:feature-group/)?([a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63})' minLength: 1 maxLength: 150 - name: RecordIdentifierValueAsString in: query required: true description: 'The value for the RecordIdentifier that uniquely identifies the record, in string format. ' schema: type: string pattern: .* maxLength: 358400 - name: EventTime in: query required: true description: Timestamp indicating when the deletion event occurred. EventTime can be used to query data at a certain point in time. schema: type: string pattern: .* maxLength: 358400 - name: TargetStores in: query required: false description: 'A list of stores from which you''re deleting the record. By default, Feature Store deletes the record from all of the stores that you''re using for the FeatureGroup.' schema: type: array items: $ref: '#/components/schemas/TargetStore' minItems: 1 maxItems: 2 - name: DeletionMode in: query required: false description: 'The name of the deletion mode for deleting the record. By default, the deletion mode is set to SoftDelete.' schema: type: string enum: - SoftDelete - HardDelete parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/FeatureGroup/{FeatureGroupName}#RecordIdentifierValueAsString': get: operationId: GetRecord description: 'Use for OnlineStore serving from a FeatureStore. Only the latest records stored in the OnlineStore can be retrieved. If no Record with RecordIdentifierValue is found, then an empty result is returned. ' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/GetRecordResponse' '480': description: ValidationError content: application/json: schema: $ref: '#/components/schemas/ValidationError' '481': description: ResourceNotFound content: application/json: schema: $ref: '#/components/schemas/ResourceNotFound' '482': description: InternalFailure content: application/json: schema: $ref: '#/components/schemas/InternalFailure' '483': description: ServiceUnavailable content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailable' '484': description: AccessForbidden content: application/json: schema: $ref: '#/components/schemas/AccessForbidden' parameters: - name: FeatureGroupName in: path required: true description: The name or Amazon Resource Name (ARN) of the feature group from which you want to retrieve a record. schema: type: string pattern: '(arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:feature-group/)?([a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63})' minLength: 1 maxLength: 150 - name: RecordIdentifierValueAsString in: query required: true description: 'The value that corresponds to RecordIdentifier type and uniquely identifies the record in the FeatureGroup. ' schema: type: string pattern: .* maxLength: 358400 - name: FeatureName in: query required: false description: 'List of names of Features to be retrieved. If not specified, the latest value for all the Features are returned.' schema: type: array items: $ref: '#/components/schemas/FeatureName' minItems: 1 - name: ExpirationTimeResponse in: query required: false description: 'Parameter to request ExpiresAt in response. If Enabled, GetRecord will return the value of ExpiresAt, if it is not null. If Disabled and null, GetRecord will return null.' schema: type: string enum: - Enabled - Disabled parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' '/FeatureGroup/{FeatureGroupName}': put: operationId: PutRecord description: '

The PutRecord API is used to ingest a list of Records into your feature group.

If a new record’s EventTime is greater, the new record is written to both the OnlineStore and OfflineStore. Otherwise, the record is a historic record and it is written only to the OfflineStore.

You can specify the ingestion to be applied to the OnlineStore, OfflineStore, or both by using the TargetStores request parameter.

You can set the ingested record to expire at a given time to live (TTL) duration after the record’s event time, ExpiresAt = EventTime + TtlDuration, by specifying the TtlDuration parameter. A record level TtlDuration is set when specifying the TtlDuration parameter using the PutRecord API call. If the input TtlDuration is null or unspecified, TtlDuration is set to the default feature group level TtlDuration. A record level TtlDuration supersedes the group level TtlDuration.

' responses: '200': description: Success '480': description: ValidationError content: application/json: schema: $ref: '#/components/schemas/ValidationError' '481': description: InternalFailure content: application/json: schema: $ref: '#/components/schemas/InternalFailure' '482': description: ServiceUnavailable content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailable' '483': description: AccessForbidden content: application/json: schema: $ref: '#/components/schemas/AccessForbidden' parameters: - name: FeatureGroupName in: path required: true description: The name or Amazon Resource Name (ARN) of the feature group that you want to insert the record into. schema: type: string pattern: '(arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:feature-group/)?([a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63})' minLength: 1 maxLength: 150 requestBody: required: true content: application/json: schema: type: object required: - Record properties: Record: description: '

List of FeatureValues to be inserted. This will be a full over-write. If you only want to update few of the feature values, do the following:

' type: array items: $ref: '#/components/schemas/FeatureValue' minItems: 1 TargetStores: description: 'A list of stores to which you''re adding the record. By default, Feature Store adds the record to all of the stores that you''re using for the FeatureGroup.' type: array items: $ref: '#/components/schemas/TargetStore' minItems: 1 maxItems: 2 TtlDuration: description: 'Time to live duration, where the record is hard deleted after the expiration time is reached; ExpiresAt = EventTime + TtlDuration. For information on HardDelete, see the DeleteRecord API in the Amazon SageMaker API Reference guide.' type: object properties: Unit: allOf: - $ref: '#/components/schemas/TtlDurationUnit' - description: ' TtlDuration time unit.' Value: allOf: - $ref: '#/components/schemas/TtlDurationValue' - description: ' TtlDuration time value.' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' components: parameters: X-Amz-Content-Sha256: name: X-Amz-Content-Sha256 in: header schema: type: string required: false X-Amz-Date: name: X-Amz-Date in: header schema: type: string required: false X-Amz-Algorithm: name: X-Amz-Algorithm in: header schema: type: string required: false X-Amz-Credential: name: X-Amz-Credential in: header schema: type: string required: false X-Amz-Security-Token: name: X-Amz-Security-Token in: header schema: type: string required: false X-Amz-Signature: name: X-Amz-Signature in: header schema: type: string required: false X-Amz-SignedHeaders: name: X-Amz-SignedHeaders in: header schema: type: string required: false securitySchemes: hmac: type: apiKey name: Authorization in: header description: Amazon Signature authorization v4 x-amazon-apigateway-authtype: awsSigv4 schemas: BatchGetRecordResponse: type: object required: - Records - Errors - UnprocessedIdentifiers properties: Records: allOf: - $ref: '#/components/schemas/BatchGetRecordResultDetails' - description: A list of Records you requested to be retrieved in batch. Errors: allOf: - $ref: '#/components/schemas/BatchGetRecordErrors' - description: A list of errors that have occurred when retrieving a batch of Records. UnprocessedIdentifiers: allOf: - $ref: '#/components/schemas/UnprocessedIdentifiers' - description: 'A unprocessed list of FeatureGroup names, with their corresponding RecordIdentifier value, and Feature name.' BatchGetRecordIdentifier: type: object required: - FeatureGroupName - RecordIdentifiersValueAsString properties: FeatureGroupName: allOf: - $ref: '#/components/schemas/FeatureGroupNameOrArn' - description: The name or Amazon Resource Name (ARN) of the FeatureGroup containing the records you are retrieving in a batch. RecordIdentifiersValueAsString: allOf: - $ref: '#/components/schemas/RecordIdentifiers' - description: The value for a list of record identifiers in string format. FeatureNames: allOf: - $ref: '#/components/schemas/FeatureNames' - description: 'List of names of Features to be retrieved. If not specified, the latest value for all the Features are returned.' description: The identifier that identifies the batch of Records you are retrieving in a batch. ValidationError: {} InternalFailure: {} ServiceUnavailable: {} AccessForbidden: {} TargetStore: type: string enum: - OnlineStore - OfflineStore GetRecordResponse: type: object properties: Record: allOf: - $ref: '#/components/schemas/Record' - description: The record you requested. A list of FeatureValues. ExpiresAt: allOf: - $ref: '#/components/schemas/ExpiresAt' - description: The ExpiresAt ISO string of the requested record. FeatureName: type: string pattern: '^[a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63}' minLength: 1 maxLength: 64 ResourceNotFound: {} FeatureValue: type: object required: - FeatureName - ValueAsString properties: FeatureName: allOf: - $ref: '#/components/schemas/FeatureName' - description: The name of a feature that a feature value corresponds to. ValueAsString: allOf: - $ref: '#/components/schemas/ValueAsString' - description: 'The value associated with a feature, in string format. Note that features types can be String, Integral, or Fractional. This value represents all three types as a string.' description: The value associated with a feature. TtlDurationUnit: type: string enum: - Seconds - Minutes - Hours - Days - Weeks TtlDurationValue: type: integer minimum: 1 ValueAsString: type: string pattern: .* maxLength: 358400 Message: type: string maxLength: 2048 BatchGetRecordError: type: object required: - FeatureGroupName - RecordIdentifierValueAsString - ErrorCode - ErrorMessage properties: FeatureGroupName: allOf: - $ref: '#/components/schemas/ValueAsString' - description: The name of the feature group that the record belongs to. RecordIdentifierValueAsString: allOf: - $ref: '#/components/schemas/ValueAsString' - description: The value for the RecordIdentifier in string format of a Record from a FeatureGroup that is causing an error when attempting to be retrieved. ErrorCode: allOf: - $ref: '#/components/schemas/ValueAsString' - description: 'The error code of an error that has occurred when attempting to retrieve a batch of Records. For more information on errors, see Errors.' ErrorMessage: allOf: - $ref: '#/components/schemas/Message' - description: The error message of an error that has occurred when attempting to retrieve a record in the batch. description: The error that has occurred when attempting to retrieve a batch of Records. BatchGetRecordErrors: type: array items: $ref: '#/components/schemas/BatchGetRecordError' minItems: 0 FeatureGroupNameOrArn: type: string pattern: '(arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:feature-group/)?([a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63})' minLength: 1 maxLength: 150 RecordIdentifiers: type: array items: $ref: '#/components/schemas/ValueAsString' minItems: 1 maxItems: 100 FeatureNames: type: array items: $ref: '#/components/schemas/FeatureName' minItems: 1 BatchGetRecordIdentifiers: type: array items: $ref: '#/components/schemas/BatchGetRecordIdentifier' minItems: 1 maxItems: 10 ExpirationTimeResponse: type: string enum: - Enabled - Disabled BatchGetRecordRequest: type: object required: - Identifiers title: BatchGetRecordRequest properties: Identifiers: allOf: - $ref: '#/components/schemas/BatchGetRecordIdentifiers' - description: 'A list containing the name or Amazon Resource Name (ARN) of the FeatureGroup, the list of names of Features to be retrieved, and the corresponding RecordIdentifier values as strings.' ExpirationTimeResponse: allOf: - $ref: '#/components/schemas/ExpirationTimeResponse' - description: 'Parameter to request ExpiresAt in response. If Enabled, BatchGetRecord will return the value of ExpiresAt, if it is not null. If Disabled and null, BatchGetRecord will return null.' BatchGetRecordResultDetails: type: array items: $ref: '#/components/schemas/BatchGetRecordResultDetail' minItems: 0 UnprocessedIdentifiers: type: array items: $ref: '#/components/schemas/BatchGetRecordIdentifier' minItems: 0 Record: type: array items: $ref: '#/components/schemas/FeatureValue' minItems: 1 ExpiresAt: type: string BatchGetRecordResultDetail: type: object required: - FeatureGroupName - RecordIdentifierValueAsString - Record properties: FeatureGroupName: allOf: - $ref: '#/components/schemas/ValueAsString' - description: The FeatureGroupName containing Records you retrieved in a batch. RecordIdentifierValueAsString: allOf: - $ref: '#/components/schemas/ValueAsString' - description: The value of the record identifier in string format. Record: allOf: - $ref: '#/components/schemas/Record' - description: The Record retrieved. ExpiresAt: allOf: - $ref: '#/components/schemas/ExpiresAt' - description: The ExpiresAt ISO string of the requested record. description: The output of records that have been retrieved in a batch. TargetStores: type: array items: $ref: '#/components/schemas/TargetStore' minItems: 1 maxItems: 2 DeletionMode: type: string enum: - SoftDelete - HardDelete DeleteRecordRequest: type: object title: DeleteRecordRequest properties: {} GetRecordRequest: type: object title: GetRecordRequest properties: {} TtlDuration: type: object required: - Unit - Value properties: Unit: allOf: - $ref: '#/components/schemas/TtlDurationUnit' - description: ' TtlDuration time unit.' Value: allOf: - $ref: '#/components/schemas/TtlDurationValue' - description: ' TtlDuration time value.' description: 'Time to live duration, where the record is hard deleted after the expiration time is reached; ExpiresAt = EventTime + TtlDuration. For information on HardDelete, see the DeleteRecord API in the Amazon SageMaker API Reference guide.' PutRecordRequest: type: object required: - Record title: PutRecordRequest properties: Record: allOf: - $ref: '#/components/schemas/Record' - description: '

List of FeatureValues to be inserted. This will be a full over-write. If you only want to update few of the feature values, do the following:

' TargetStores: allOf: - $ref: '#/components/schemas/TargetStores' - description: 'A list of stores to which you''re adding the record. By default, Feature Store adds the record to all of the stores that you''re using for the FeatureGroup.' TtlDuration: allOf: - $ref: '#/components/schemas/TtlDuration' - description: 'Time to live duration, where the record is hard deleted after the expiration time is reached; ExpiresAt = EventTime + TtlDuration. For information on HardDelete, see the DeleteRecord API in the Amazon SageMaker API Reference guide.' security: - hmac: []