Skip to main content

external_models

Creates, updates, deletes, gets or lists an external_models resource.

Overview

Nameexternal_models
TypeResource
Idaws.frauddetector.external_models

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
external_modelsarrayGets the Amazon SageMaker models.
next_tokenstringThe next page token to be used in subsequent requests.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_external_modelsselectregionGets the details for one or more Amazon SageMaker models that have been imported into the service. This is a paginated API. If you provide a null maxResults, this actions retrieves a maximum of 10 records per page. If you provide a maxResults, the value must be between 5 and 10. To get the next page results, provide the pagination token from the GetExternalModelsResult as part of your request. A null pagination token fetches the records from the beginning.
put_external_modelreplaceregion, modelEndpoint, modelSource, invokeModelEndpointRoleArn, inputConfiguration, outputConfiguration, modelEndpointStatusCreates or updates an Amazon SageMaker model endpoint. You can also use this action to update the configuration of the model endpoint, including the IAM role and/or the mapped variables.
delete_external_modeldeleteregionRemoves a SageMaker model from Amazon Fraud Detector. You can remove an Amazon SageMaker model if it is not associated with a detector version. Removing a SageMaker model disconnects it from Amazon Fraud Detector, but the model remains available in SageMaker.

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

Gets the details for one or more Amazon SageMaker models that have been imported into the service. This is a paginated API. If you provide a null maxResults, this actions retrieves a maximum of 10 records per page. If you provide a maxResults, the value must be between 5 and 10. To get the next page results, provide the pagination token from the GetExternalModelsResult as part of your request. A null pagination token fetches the records from the beginning.

SELECT
external_models,
next_token
FROM aws.frauddetector.external_models
WHERE region = '{{ region }}' -- required
;

REPLACE examples

Creates or updates an Amazon SageMaker model endpoint. You can also use this action to update the configuration of the model endpoint, including the IAM role and/or the mapped variables.

REPLACE aws.frauddetector.external_models
SET
modelEndpoint = '{{ modelEndpoint }}',
modelSource = '{{ modelSource }}',
invokeModelEndpointRoleArn = '{{ invokeModelEndpointRoleArn }}',
inputConfiguration = '{{ inputConfiguration }}',
outputConfiguration = '{{ outputConfiguration }}',
modelEndpointStatus = '{{ modelEndpointStatus }}',
tags = '{{ tags }}'
WHERE
region = '{{ region }}' --required
AND modelEndpoint = '{{ modelEndpoint }}' --required
AND modelSource = '{{ modelSource }}' --required
AND invokeModelEndpointRoleArn = '{{ invokeModelEndpointRoleArn }}' --required
AND inputConfiguration = '{{ inputConfiguration }}' --required
AND outputConfiguration = '{{ outputConfiguration }}' --required
AND modelEndpointStatus = '{{ modelEndpointStatus }}' --required;

DELETE examples

Removes a SageMaker model from Amazon Fraud Detector. You can remove an Amazon SageMaker model if it is not associated with a detector version. Removing a SageMaker model disconnects it from Amazon Fraud Detector, but the model remains available in SageMaker.

DELETE FROM aws.frauddetector.external_models
WHERE region = '{{ region }}' --required
;