Skip to main content

variables

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

Overview​

Namevariables
TypeResource
Idaws.frauddetector.variables

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
errorsarrayThe errors from the request.
variablesarrayThe returned variables.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_variableselectregionGets a batch of variables.
get_variablesselectregionGets all of the variables or the specific variable. This is a paginated API. Providing null maxSizePerPage results in retrieving maximum of 100 records per page. If you provide maxSizePerPage the value must be between 50 and 100. To get the next page result, a provide a pagination token from GetVariablesResult as part of your request. Null pagination token fetches the records from the beginning.
create_variableinsertregion, name, dataType, dataSource, defaultValueCreates a variable.
update_variableupdateregion, nameUpdates a variable.
delete_variabledeleteregionDeletes a variable. You can't delete variables that are included in an event type in Amazon Fraud Detector. Amazon Fraud Detector automatically deletes model output variables and SageMaker model output variables when you delete the model. You can't delete these variables manually. When you delete a variable, Amazon Fraud Detector permanently deletes that variable and the data is no longer stored in Amazon Fraud Detector.

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 a batch of variables.

SELECT
errors,
variables
FROM aws.frauddetector.variables
WHERE region = '{{ region }}' -- required
;

INSERT examples​

Creates a variable.

INSERT INTO aws.frauddetector.variables (
name,
dataType,
dataSource,
defaultValue,
description,
variableType,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ dataType }}' /* required */,
'{{ dataSource }}' /* required */,
'{{ defaultValue }}' /* required */,
'{{ description }}',
'{{ variableType }}',
'{{ tags }}',
'{{ region }}'
;

UPDATE examples​

Updates a variable.

UPDATE aws.frauddetector.variables
SET
name = '{{ name }}',
defaultValue = '{{ defaultValue }}',
description = '{{ description }}',
variableType = '{{ variableType }}'
WHERE
region = '{{ region }}' --required
AND name = '{{ name }}' --required;

DELETE examples​

Deletes a variable. You can't delete variables that are included in an event type in Amazon Fraud Detector. Amazon Fraud Detector automatically deletes model output variables and SageMaker model output variables when you delete the model. You can't delete these variables manually. When you delete a variable, Amazon Fraud Detector permanently deletes that variable and the data is no longer stored in Amazon Fraud Detector.

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