Class: Aws::FraudDetector::Client

Inherits:
Seahorse::Client::Base show all
Includes:
ClientStubs
Defined in:
gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb

Overview

An API client for FraudDetector. To construct a client, you need to configure a :region and :credentials.

client = Aws::FraudDetector::Client.new(
  region: region_name,
  credentials: credentials,
  # ...
)

For details on configuring region and credentials see the developer guide.

See #initialize for a full list of supported configuration options.

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Base

#config, #handlers

API Operations collapse

Instance Method Summary collapse

Methods included from ClientStubs

#api_requests, #stub_data, #stub_responses

Methods inherited from Seahorse::Client::Base

add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response

Constructor Details

#initialize(options) ⇒ Client

Returns a new instance of Client.

Parameters:

  • options (Hash)

Options Hash (options):

  • :credentials (required, Aws::CredentialProvider)

    Your AWS credentials. This can be an instance of any one of the following classes:

    • Aws::Credentials - Used for configuring static, non-refreshing credentials.

    • Aws::SharedCredentials - Used for loading static credentials from a shared file, such as ~/.aws/config.

    • Aws::AssumeRoleCredentials - Used when you need to assume a role.

    • Aws::AssumeRoleWebIdentityCredentials - Used when you need to assume a role after providing credentials via the web.

    • Aws::SSOCredentials - Used for loading credentials from AWS SSO using an access token generated from aws login.

    • Aws::ProcessCredentials - Used for loading credentials from a process that outputs to stdout.

    • Aws::InstanceProfileCredentials - Used for loading credentials from an EC2 IMDS on an EC2 instance.

    • Aws::ECSCredentials - Used for loading credentials from instances running in ECS.

    • Aws::CognitoIdentityCredentials - Used for loading credentials from the Cognito Identity service.

    When :credentials are not configured directly, the following locations will be searched for credentials:

    • Aws.config[:credentials]
    • The :access_key_id, :secret_access_key, and :session_token options.
    • ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
    • ~/.aws/credentials
    • ~/.aws/config
    • EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive. Construct and pass an instance of Aws::InstanceProfileCredentails or Aws::ECSCredentials to enable retries and extended timeouts. Instance profile credential fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED'] to true.
  • :region (required, String)

    The AWS region to connect to. The configured :region is used to determine the service :endpoint. When not passed, a default :region is searched for in the following locations:

    • Aws.config[:region]
    • ENV['AWS_REGION']
    • ENV['AMAZON_REGION']
    • ENV['AWS_DEFAULT_REGION']
    • ~/.aws/credentials
    • ~/.aws/config
  • :access_key_id (String)
  • :active_endpoint_cache (Boolean) — default: false

    When set to true, a thread polling for endpoints will be running in the background every 60 secs (default). Defaults to false.

  • :adaptive_retry_wait_to_fill (Boolean) — default: true

    Used only in adaptive retry mode. When true, the request will sleep until there is sufficent client side capacity to retry the request. When false, the request will raise a RetryCapacityNotAvailableError and will not retry instead of sleeping.

  • :client_side_monitoring (Boolean) — default: false

    When true, client-side metrics will be collected for all API requests from this client.

  • :client_side_monitoring_client_id (String) — default: ""

    Allows you to provide an identifier for this client which will be attached to all generated client side metrics. Defaults to an empty string.

  • :client_side_monitoring_host (String) — default: "127.0.0.1"

    Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client side monitoring agent is running on, where client metrics will be published via UDP.

  • :client_side_monitoring_port (Integer) — default: 31000

    Required for publishing client metrics. The port that the client side monitoring agent is running on, where client metrics will be published via UDP.

  • :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher) — default: Aws::ClientSideMonitoring::Publisher

    Allows you to provide a custom client-side monitoring publisher class. By default, will use the Client Side Monitoring Agent Publisher.

  • :convert_params (Boolean) — default: true

    When true, an attempt is made to coerce request parameters into the required types.

  • :correct_clock_skew (Boolean) — default: true

    Used only in standard and adaptive retry modes. Specifies whether to apply a clock skew correction and retry requests with skewed client clocks.

  • :disable_host_prefix_injection (Boolean) — default: false

    Set to true to disable SDK automatically adding host prefix to default service endpoint when available.

  • :endpoint (String)

    The client endpoint is normally constructed from the :region option. You should only configure an :endpoint when connecting to test or custom endpoints. This should be a valid HTTP(S) URI.

  • :endpoint_cache_max_entries (Integer) — default: 1000

    Used for the maximum size limit of the LRU cache storing endpoints data for endpoint discovery enabled operations. Defaults to 1000.

  • :endpoint_cache_max_threads (Integer) — default: 10

    Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.

  • :endpoint_cache_poll_interval (Integer) — default: 60

    When :endpoint_discovery and :active_endpoint_cache is enabled, Use this option to config the time interval in seconds for making requests fetching endpoints information. Defaults to 60 sec.

  • :endpoint_discovery (Boolean) — default: false

    When set to true, endpoint discovery will be enabled for operations when available.

  • :log_formatter (Aws::Log::Formatter) — default: Aws::Log::Formatter.default

    The log formatter.

  • :log_level (Symbol) — default: :info

    The log level to send messages to the :logger at.

  • :logger (Logger)

    The Logger instance to send log messages to. If this option is not set, logging will be disabled.

  • :max_attempts (Integer) — default: 3

    An integer representing the maximum number attempts that will be made for a single request, including the initial attempt. For example, setting this value to 5 will result in a request being retried up to 4 times. Used in standard and adaptive retry modes.

  • :profile (String) — default: "default"

    Used when loading credentials from the shared credentials file at HOME/.aws/credentials. When not specified, 'default' is used.

  • :retry_backoff (Proc)

    A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay. This option is only used in the legacy retry mode.

  • :retry_base_delay (Float) — default: 0.3

    The base delay in seconds used by the default backoff function. This option is only used in the legacy retry mode.

  • :retry_jitter (Symbol) — default: :none

    A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number. This option is only used in the legacy retry mode.

    @see https://www.awsarchitectureblog.com/2015/03/backoff.html

  • :retry_limit (Integer) — default: 3

    The maximum number of times to retry failed requests. Only ~ 500 level server errors and certain ~ 400 level client errors are retried. Generally, these are throttling errors, data checksum errors, networking errors, timeout errors, auth errors, endpoint discovery, and errors from expired credentials. This option is only used in the legacy retry mode.

  • :retry_max_delay (Integer) — default: 0

    The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function. This option is only used in the legacy retry mode.

  • :retry_mode (String) — default: "legacy"

    Specifies which retry algorithm to use. Values are:

    • legacy - The pre-existing retry behavior. This is default value if no retry mode is provided.

    • standard - A standardized set of retry rules across the AWS SDKs. This includes support for retry quotas, which limit the number of unsuccessful retries a client can make.

    • adaptive - An experimental retry mode that includes all the functionality of standard mode along with automatic client side throttling. This is a provisional mode that may change behavior in the future.

  • :secret_access_key (String)
  • :session_token (String)
  • :simple_json (Boolean) — default: false

    Disables request parameter conversion, validation, and formatting. Also disable response data type conversions. This option is useful when you want to ensure the highest level of performance by avoiding overhead of walking request parameters and response data structures.

    When :simple_json is enabled, the request parameters hash must be formatted exactly as the DynamoDB API expects.

  • :stub_responses (Boolean) — default: false

    Causes the client to return stubbed responses. By default fake responses are generated and returned. You can specify the response data to return or errors to raise by calling ClientStubs#stub_responses. See ClientStubs for more information.

    Please note When response stubbing is enabled, no HTTP requests are made, and retries are disabled.

  • :use_dualstack_endpoint (Boolean)

    When set to true, dualstack enabled endpoints (with .aws TLD) will be used if available.

  • :use_fips_endpoint (Boolean)

    When set to true, fips compatible endpoints will be used if available. When a fips region is used, the region is normalized and this config is set to true.

  • :validate_params (Boolean) — default: true

    When true, request parameters are validated before sending the request.

  • :http_proxy (URI::HTTP, String)

    A proxy to send requests through. Formatted like 'http://proxy.com:123'.

  • :http_open_timeout (Float) — default: 15

    The number of seconds to wait when opening a HTTP session before raising a Timeout::Error.

  • :http_read_timeout (Integer) — default: 60

    The default number of seconds to wait for response data. This value can safely be set per-request on the session.

  • :http_idle_timeout (Float) — default: 5

    The number of seconds a connection is allowed to sit idle before it is considered stale. Stale connections are closed and removed from the pool before making a request.

  • :http_continue_timeout (Float) — default: 1

    The number of seconds to wait for a 100-continue response before sending the request body. This option has no effect unless the request has "Expect" header set to "100-continue". Defaults to nil which disables this behaviour. This value can safely be set per request on the session.

  • :http_wire_trace (Boolean) — default: false

    When true, HTTP debug output will be sent to the :logger.

  • :ssl_verify_peer (Boolean) — default: true

    When true, SSL peer certificates are verified when establishing a connection.

  • :ssl_ca_bundle (String)

    Full path to the SSL certificate authority bundle file that should be used when verifying peer certificates. If you do not pass :ssl_ca_bundle or :ssl_ca_directory the the system default will be used if available.

  • :ssl_ca_directory (String)

    Full path of the directory that contains the unbundled SSL certificate authority files for verifying peer certificates. If you do not pass :ssl_ca_bundle or :ssl_ca_directory the the system default will be used if available.



345
346
347
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 345

def initialize(*args)
  super
end

Instance Method Details

#batch_create_variable(params = {}) ⇒ Types::BatchCreateVariableResult

Creates a batch of variables.

Examples:

Request syntax with placeholder values


resp = client.batch_create_variable({
  variable_entries: [ # required
    {
      name: "string",
      data_type: "string",
      data_source: "string",
      default_value: "string",
      description: "string",
      variable_type: "string",
    },
  ],
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Response structure


resp.errors #=> Array
resp.errors[0].name #=> String
resp.errors[0].code #=> Integer
resp.errors[0].message #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :variable_entries (required, Array<Types::VariableEntry>)

    The list of variables for the batch create variable request.

  • :tags (Array<Types::Tag>)

    A collection of key and value pairs.

Returns:

See Also:



395
396
397
398
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 395

def batch_create_variable(params = {}, options = {})
  req = build_request(:batch_create_variable, params)
  req.send_request(options)
end

#batch_get_variable(params = {}) ⇒ Types::BatchGetVariableResult

Gets a batch of variables.

Examples:

Request syntax with placeholder values


resp = client.batch_get_variable({
  names: ["string"], # required
})

Response structure


resp.variables #=> Array
resp.variables[0].name #=> String
resp.variables[0].data_type #=> String, one of "STRING", "INTEGER", "FLOAT", "BOOLEAN"
resp.variables[0].data_source #=> String, one of "EVENT", "MODEL_SCORE", "EXTERNAL_MODEL_SCORE"
resp.variables[0].default_value #=> String
resp.variables[0].description #=> String
resp.variables[0].variable_type #=> String
resp.variables[0].last_updated_time #=> String
resp.variables[0].created_time #=> String
resp.variables[0].arn #=> String
resp.errors #=> Array
resp.errors[0].name #=> String
resp.errors[0].code #=> Integer
resp.errors[0].message #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :names (required, Array<String>)

    The list of variable names to get.

Returns:

See Also:



437
438
439
440
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 437

def batch_get_variable(params = {}, options = {})
  req = build_request(:batch_get_variable, params)
  req.send_request(options)
end

#cancel_batch_import_job(params = {}) ⇒ Struct

Cancels an in-progress batch import job.

Examples:

Request syntax with placeholder values


resp = client.cancel_batch_import_job({
  job_id: "identifier", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :job_id (required, String)

    The ID of an in-progress batch import job to cancel.

    Amazon Fraud Detector will throw an error if the batch import job is in FAILED, CANCELED, or COMPLETED state.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



462
463
464
465
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 462

def cancel_batch_import_job(params = {}, options = {})
  req = build_request(:cancel_batch_import_job, params)
  req.send_request(options)
end

#cancel_batch_prediction_job(params = {}) ⇒ Struct

Cancels the specified batch prediction job.

Examples:

Request syntax with placeholder values


resp = client.cancel_batch_prediction_job({
  job_id: "identifier", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :job_id (required, String)

    The ID of the batch prediction job to cancel.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



484
485
486
487
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 484

def cancel_batch_prediction_job(params = {}, options = {})
  req = build_request(:cancel_batch_prediction_job, params)
  req.send_request(options)
end

#create_batch_import_job(params = {}) ⇒ Struct

Creates a batch import job.

Examples:

Request syntax with placeholder values


resp = client.create_batch_import_job({
  job_id: "identifier", # required
  input_path: "s3BucketLocation", # required
  output_path: "s3BucketLocation", # required
  event_type_name: "identifier", # required
  iam_role_arn: "iamRoleArn", # required
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :job_id (required, String)

    The ID of the batch import job. The ID cannot be of a past job, unless the job exists in CREATE_FAILED state.

  • :input_path (required, String)

    The URI that points to the Amazon S3 location of your data file.

  • :output_path (required, String)

    The URI that points to the Amazon S3 location for storing your results.

  • :event_type_name (required, String)

    The name of the event type.

  • :iam_role_arn (required, String)

    The ARN of the IAM role created for Amazon S3 bucket that holds your data file. The IAM role must have read and write permissions to both input and output S3 buckets.

  • :tags (Array<Types::Tag>)

    A collection of key-value pairs associated with this request.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



535
536
537
538
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 535

def create_batch_import_job(params = {}, options = {})
  req = build_request(:create_batch_import_job, params)
  req.send_request(options)
end

#create_batch_prediction_job(params = {}) ⇒ Struct

Creates a batch prediction job.

Examples:

Request syntax with placeholder values


resp = client.create_batch_prediction_job({
  job_id: "identifier", # required
  input_path: "s3BucketLocation", # required
  output_path: "s3BucketLocation", # required
  event_type_name: "identifier", # required
  detector_name: "identifier", # required
  detector_version: "wholeNumberVersionString",
  iam_role_arn: "iamRoleArn", # required
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :job_id (required, String)

    The ID of the batch prediction job.

  • :input_path (required, String)

    The Amazon S3 location of your training file.

  • :output_path (required, String)

    The Amazon S3 location of your output file.

  • :event_type_name (required, String)

    The name of the event type.

  • :detector_name (required, String)

    The name of the detector.

  • :detector_version (String)

    The detector version.

  • :iam_role_arn (required, String)

    The ARN of the IAM role to use for this job request.

  • :tags (Array<Types::Tag>)

    A collection of key and value pairs.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



590
591
592
593
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 590

def create_batch_prediction_job(params = {}, options = {})
  req = build_request(:create_batch_prediction_job, params)
  req.send_request(options)
end

#create_detector_version(params = {}) ⇒ Types::CreateDetectorVersionResult

Creates a detector version. The detector version starts in a DRAFT status.

Examples:

Request syntax with placeholder values


resp = client.create_detector_version({
  detector_id: "identifier", # required
  description: "description",
  external_model_endpoints: ["string"],
  rules: [ # required
    {
      detector_id: "identifier", # required
      rule_id: "identifier", # required
      rule_version: "wholeNumberVersionString", # required
    },
  ],
  model_versions: [
    {
      model_id: "modelIdentifier", # required
      model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS, TRANSACTION_FRAUD_INSIGHTS
      model_version_number: "floatVersionString", # required
      arn: "fraudDetectorArn",
    },
  ],
  rule_execution_mode: "ALL_MATCHED", # accepts ALL_MATCHED, FIRST_MATCHED
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Response structure


resp.detector_id #=> String
resp.detector_version_id #=> String
resp.status #=> String, one of "DRAFT", "ACTIVE", "INACTIVE"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :detector_id (required, String)

    The ID of the detector under which you want to create a new version.

  • :description (String)

    The description of the detector version.

  • :external_model_endpoints (Array<String>)

    The Amazon Sagemaker model endpoints to include in the detector version.

  • :rules (required, Array<Types::Rule>)

    The rules to include in the detector version.

  • :model_versions (Array<Types::ModelVersion>)

    The model versions to include in the detector version.

  • :rule_execution_mode (String)

    The rule execution mode for the rules included in the detector version.

    You can define and edit the rule mode at the detector version level, when it is in draft status.

    If you specify FIRST_MATCHED, Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule.

    If you specifiy ALL_MATCHED, Amazon Fraud Detector evaluates all rules and returns the outcomes for all matched rules.

    The default behavior is FIRST_MATCHED.

  • :tags (Array<Types::Tag>)

    A collection of key and value pairs.

Returns:

See Also:



680
681
682
683
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 680

def create_detector_version(params = {}, options = {})
  req = build_request(:create_detector_version, params)
  req.send_request(options)
end

#create_model(params = {}) ⇒ Struct

Creates a model using the specified model type.

Examples:

Request syntax with placeholder values


resp = client.create_model({
  model_id: "modelIdentifier", # required
  model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS, TRANSACTION_FRAUD_INSIGHTS
  description: "description",
  event_type_name: "string", # required
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_id (required, String)

    The model ID.

  • :model_type (required, String)

    The model type.

  • :description (String)

    The model description.

  • :event_type_name (required, String)

    The name of the event type.

  • :tags (Array<Types::Tag>)

    A collection of key and value pairs.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



723
724
725
726
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 723

def create_model(params = {}, options = {})
  req = build_request(:create_model, params)
  req.send_request(options)
end

#create_model_version(params = {}) ⇒ Types::CreateModelVersionResult

Creates a version of the model using the specified model type and model id.

Examples:

Request syntax with placeholder values


resp = client.create_model_version({
  model_id: "modelIdentifier", # required
  model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS, TRANSACTION_FRAUD_INSIGHTS
  training_data_source: "EXTERNAL_EVENTS", # required, accepts EXTERNAL_EVENTS, INGESTED_EVENTS
  training_data_schema: { # required
    model_variables: ["string"], # required
    label_schema: { # required
      label_mapper: { # required
        "string" => ["string"],
      },
      unlabeled_events_treatment: "IGNORE", # accepts IGNORE, FRAUD, LEGIT
    },
  },
  external_events_detail: {
    data_location: "s3BucketLocation", # required
    data_access_role_arn: "iamRoleArn", # required
  },
  ingested_events_detail: {
    ingested_events_time_window: { # required
      start_time: "time", # required
      end_time: "time", # required
    },
  },
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Response structure


resp.model_id #=> String
resp.model_type #=> String, one of "ONLINE_FRAUD_INSIGHTS", "TRANSACTION_FRAUD_INSIGHTS"
resp.model_version_number #=> String
resp.status #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_id (required, String)

    The model ID.

  • :model_type (required, String)

    The model type.

  • :training_data_source (required, String)

    The training data source location in Amazon S3.

  • :training_data_schema (required, Types::TrainingDataSchema)

    The training data schema.

  • :external_events_detail (Types::ExternalEventsDetail)

    Details of the external events data used for model version training. Required if trainingDataSource is EXTERNAL_EVENTS.

  • :ingested_events_detail (Types::IngestedEventsDetail)

    Details of the ingested events data used for model version training. Required if trainingDataSource is INGESTED_EVENTS.

  • :tags (Array<Types::Tag>)

    A collection of key and value pairs.

Returns:

See Also:



805
806
807
808
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 805

def create_model_version(params = {}, options = {})
  req = build_request(:create_model_version, params)
  req.send_request(options)
end

#create_rule(params = {}) ⇒ Types::CreateRuleResult

Creates a rule for use with the specified detector.

Examples:

Request syntax with placeholder values


resp = client.create_rule({
  rule_id: "identifier", # required
  detector_id: "identifier", # required
  description: "description",
  expression: "ruleExpression", # required
  language: "DETECTORPL", # required, accepts DETECTORPL
  outcomes: ["string"], # required
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Response structure


resp.rule.detector_id #=> String
resp.rule.rule_id #=> String
resp.rule.rule_version #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :rule_id (required, String)

    The rule ID.

  • :detector_id (required, String)

    The detector ID for the rule's parent detector.

  • :description (String)

    The rule description.

  • :expression (required, String)

    The rule expression.

  • :language (required, String)

    The language of the rule.

  • :outcomes (required, Array<String>)

    The outcome or outcomes returned when the rule expression matches.

  • :tags (Array<Types::Tag>)

    A collection of key and value pairs.

Returns:

See Also:



864
865
866
867
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 864

def create_rule(params = {}, options = {})
  req = build_request(:create_rule, params)
  req.send_request(options)
end

#create_variable(params = {}) ⇒ Struct

Creates a variable.

Examples:

Request syntax with placeholder values


resp = client.create_variable({
  name: "string", # required
  data_type: "STRING", # required, accepts STRING, INTEGER, FLOAT, BOOLEAN
  data_source: "EVENT", # required, accepts EVENT, MODEL_SCORE, EXTERNAL_MODEL_SCORE
  default_value: "string", # required
  description: "string",
  variable_type: "string",
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (required, String)

    The name of the variable.

  • :data_type (required, String)

    The data type.

  • :data_source (required, String)

    The source of the data.

  • :default_value (required, String)

    The default value for the variable when no value is received.

  • :description (String)

    The description.

  • :variable_type (String)

    The variable type. For more information see Variable types.

    Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL | CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE | PHONE_NUMBER | PRICE | PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | SHIPPING_COUNTRY | SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | SHIPPING_ZIP | USERAGENT

  • :tags (Array<Types::Tag>)

    A collection of key and value pairs.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



928
929
930
931
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 928

def create_variable(params = {}, options = {})
  req = build_request(:create_variable, params)
  req.send_request(options)
end

#delete_batch_import_job(params = {}) ⇒ Struct

Deletes data that was batch imported to Amazon Fraud Detector.

Examples:

Request syntax with placeholder values


resp = client.delete_batch_import_job({
  job_id: "identifier", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :job_id (required, String)

    The ID of the batch import job to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



950
951
952
953
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 950

def delete_batch_import_job(params = {}, options = {})
  req = build_request(:delete_batch_import_job, params)
  req.send_request(options)
end

#delete_batch_prediction_job(params = {}) ⇒ Struct

Deletes a batch prediction job.

Examples:

Request syntax with placeholder values


resp = client.delete_batch_prediction_job({
  job_id: "identifier", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :job_id (required, String)

    The ID of the batch prediction job to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



972
973
974
975
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 972

def delete_batch_prediction_job(params = {}, options = {})
  req = build_request(:delete_batch_prediction_job, params)
  req.send_request(options)
end

#delete_detector(params = {}) ⇒ Struct

Deletes the detector. Before deleting a detector, you must first delete all detector versions and rule versions associated with the detector.

When you delete a detector, Amazon Fraud Detector permanently deletes the detector and the data is no longer stored in Amazon Fraud Detector.

Examples:

Request syntax with placeholder values


resp = client.delete_detector({
  detector_id: "identifier", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :detector_id (required, String)

    The ID of the detector to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1000
1001
1002
1003
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1000

def delete_detector(params = {}, options = {})
  req = build_request(:delete_detector, params)
  req.send_request(options)
end

#delete_detector_version(params = {}) ⇒ Struct

Deletes the detector version. You cannot delete detector versions that are in ACTIVE status.

When you delete a detector version, Amazon Fraud Detector permanently deletes the detector and the data is no longer stored in Amazon Fraud Detector.

Examples:

Request syntax with placeholder values


resp = client.delete_detector_version({
  detector_id: "identifier", # required
  detector_version_id: "wholeNumberVersionString", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :detector_id (required, String)

    The ID of the parent detector for the detector version to delete.

  • :detector_version_id (required, String)

    The ID of the detector version to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1031
1032
1033
1034
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1031

def delete_detector_version(params = {}, options = {})
  req = build_request(:delete_detector_version, params)
  req.send_request(options)
end

#delete_entity_type(params = {}) ⇒ Struct

Deletes an entity type.

You cannot delete an entity type that is included in an event type.

When you delete an entity type, Amazon Fraud Detector permanently deletes that entity type and the data is no longer stored in Amazon Fraud Detector.

Examples:

Request syntax with placeholder values


resp = client.delete_entity_type({
  name: "identifier", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (required, String)

    The name of the entity type to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1059
1060
1061
1062
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1059

def delete_entity_type(params = {}, options = {})
  req = build_request(:delete_entity_type, params)
  req.send_request(options)
end

#delete_event(params = {}) ⇒ Struct

Deletes the specified event.

When you delete an event, Amazon Fraud Detector permanently deletes that event and the event data is no longer stored in Amazon Fraud Detector.

Examples:

Request syntax with placeholder values


resp = client.delete_event({
  event_id: "identifier", # required
  event_type_name: "identifier", # required
  delete_audit_history: false,
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :event_id (required, String)

    The ID of the event to delete.

  • :event_type_name (required, String)

    The name of the event type.

  • :delete_audit_history (Boolean)

    Specifies whether or not to delete any predictions associated with the event.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1094
1095
1096
1097
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1094

def delete_event(params = {}, options = {})
  req = build_request(:delete_event, params)
  req.send_request(options)
end

#delete_event_type(params = {}) ⇒ Struct

Deletes an event type.

You cannot delete an event type that is used in a detector or a model.

When you delete an event type, Amazon Fraud Detector permanently deletes that event type and the data is no longer stored in Amazon Fraud Detector.

Examples:

Request syntax with placeholder values


resp = client.delete_event_type({
  name: "identifier", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (required, String)

    The name of the event type to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1122
1123
1124
1125
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1122

def delete_event_type(params = {}, options = {})
  req = build_request(:delete_event_type, params)
  req.send_request(options)
end

#delete_events_by_event_type(params = {}) ⇒ Types::DeleteEventsByEventTypeResult

Deletes all events of a particular event type.

Examples:

Request syntax with placeholder values


resp = client.delete_events_by_event_type({
  event_type_name: "identifier", # required
})

Response structure


resp.event_type_name #=> String
resp.events_deletion_status #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :event_type_name (required, String)

    The name of the event type.

Returns:

See Also:



1152
1153
1154
1155
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1152

def delete_events_by_event_type(params = {}, options = {})
  req = build_request(:delete_events_by_event_type, params)
  req.send_request(options)
end

#delete_external_model(params = {}) ⇒ Struct

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.

Examples:

Request syntax with placeholder values


resp = client.delete_external_model({
  model_endpoint: "sageMakerEndpointIdentifier", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_endpoint (required, String)

    The endpoint of the Amazon Sagemaker model to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1178
1179
1180
1181
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1178

def delete_external_model(params = {}, options = {})
  req = build_request(:delete_external_model, params)
  req.send_request(options)
end

#delete_label(params = {}) ⇒ Struct

Deletes a label.

You cannot delete labels that are included in an event type in Amazon Fraud Detector.

You cannot delete a label assigned to an event ID. You must first delete the relevant event ID.

When you delete a label, Amazon Fraud Detector permanently deletes that label and the data is no longer stored in Amazon Fraud Detector.

Examples:

Request syntax with placeholder values


resp = client.delete_label({
  name: "identifier", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (required, String)

    The name of the label to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1209
1210
1211
1212
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1209

def delete_label(params = {}, options = {})
  req = build_request(:delete_label, params)
  req.send_request(options)
end

#delete_model(params = {}) ⇒ Struct

Deletes a model.

You can delete models and model versions in Amazon Fraud Detector, provided that they are not associated with a detector version.

When you delete a model, Amazon Fraud Detector permanently deletes that model and the data is no longer stored in Amazon Fraud Detector.

Examples:

Request syntax with placeholder values


resp = client.delete_model({
  model_id: "modelIdentifier", # required
  model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS, TRANSACTION_FRAUD_INSIGHTS
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_id (required, String)

    The model ID of the model to delete.

  • :model_type (required, String)

    The model type of the model to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1241
1242
1243
1244
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1241

def delete_model(params = {}, options = {})
  req = build_request(:delete_model, params)
  req.send_request(options)
end

#delete_model_version(params = {}) ⇒ Struct

Deletes a model version.

You can delete models and model versions in Amazon Fraud Detector, provided that they are not associated with a detector version.

When you delete a model version, Amazon Fraud Detector permanently deletes that model version and the data is no longer stored in Amazon Fraud Detector.

Examples:

Request syntax with placeholder values


resp = client.delete_model_version({
  model_id: "modelIdentifier", # required
  model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS, TRANSACTION_FRAUD_INSIGHTS
  model_version_number: "floatVersionString", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_id (required, String)

    The model ID of the model version to delete.

  • :model_type (required, String)

    The model type of the model version to delete.

  • :model_version_number (required, String)

    The model version number of the model version to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1278
1279
1280
1281
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1278

def delete_model_version(params = {}, options = {})
  req = build_request(:delete_model_version, params)
  req.send_request(options)
end

#delete_outcome(params = {}) ⇒ Struct

Deletes an outcome.

You cannot delete an outcome that is used in a rule version.

When you delete an outcome, Amazon Fraud Detector permanently deletes that outcome and the data is no longer stored in Amazon Fraud Detector.

Examples:

Request syntax with placeholder values


resp = client.delete_outcome({
  name: "identifier", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (required, String)

    The name of the outcome to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1306
1307
1308
1309
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1306

def delete_outcome(params = {}, options = {})
  req = build_request(:delete_outcome, params)
  req.send_request(options)
end

#delete_rule(params = {}) ⇒ Struct

Deletes the rule. You cannot delete a rule if it is used by an ACTIVE or INACTIVE detector version.

When you delete a rule, Amazon Fraud Detector permanently deletes that rule and the data is no longer stored in Amazon Fraud Detector.

Examples:

Request syntax with placeholder values


resp = client.delete_rule({
  rule: { # required
    detector_id: "identifier", # required
    rule_id: "identifier", # required
    rule_version: "wholeNumberVersionString", # required
  },
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1336
1337
1338
1339
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1336

def delete_rule(params = {}, options = {})
  req = build_request(:delete_rule, params)
  req.send_request(options)
end

#delete_variable(params = {}) ⇒ Struct

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.

Examples:

Request syntax with placeholder values


resp = client.delete_variable({
  name: "string", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (required, String)

    The name of the variable to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1369
1370
1371
1372
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1369

def delete_variable(params = {}, options = {})
  req = build_request(:delete_variable, params)
  req.send_request(options)
end

#describe_detector(params = {}) ⇒ Types::DescribeDetectorResult

Gets all versions for a specified detector.

Examples:

Request syntax with placeholder values


resp = client.describe_detector({
  detector_id: "identifier", # required
  next_token: "string",
  max_results: 1,
})

Response structure


resp.detector_id #=> String
resp.detector_version_summaries #=> Array
resp.detector_version_summaries[0].detector_version_id #=> String
resp.detector_version_summaries[0].status #=> String, one of "DRAFT", "ACTIVE", "INACTIVE"
resp.detector_version_summaries[0].description #=> String
resp.detector_version_summaries[0].last_updated_time #=> String
resp.next_token #=> String
resp.arn #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :detector_id (required, String)

    The detector ID.

  • :next_token (String)

    The next token from the previous response.

  • :max_results (Integer)

    The maximum number of results to return for the request.

Returns:

See Also:



1415
1416
1417
1418
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1415

def describe_detector(params = {}, options = {})
  req = build_request(:describe_detector, params)
  req.send_request(options)
end

#describe_model_versions(params = {}) ⇒ Types::DescribeModelVersionsResult

Gets all of the model versions for the specified model type or for the specified model type and model ID. You can also get details for a single, specified model version.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.describe_model_versions({
  model_id: "modelIdentifier",
  model_version_number: "floatVersionString",
  model_type: "ONLINE_FRAUD_INSIGHTS", # accepts ONLINE_FRAUD_INSIGHTS, TRANSACTION_FRAUD_INSIGHTS
  next_token: "string",
  max_results: 1,
})

Response structure


resp.model_version_details #=> Array
resp.model_version_details[0].model_id #=> String
resp.model_version_details[0].model_type #=> String, one of "ONLINE_FRAUD_INSIGHTS", "TRANSACTION_FRAUD_INSIGHTS"
resp.model_version_details[0].model_version_number #=> String
resp.model_version_details[0].status #=> String
resp.model_version_details[0].training_data_source #=> String, one of "EXTERNAL_EVENTS", "INGESTED_EVENTS"
resp.model_version_details[0].training_data_schema.model_variables #=> Array
resp.model_version_details[0].training_data_schema.model_variables[0] #=> String
resp.model_version_details[0].training_data_schema.label_schema.label_mapper #=> Hash
resp.model_version_details[0].training_data_schema.label_schema.label_mapper["string"] #=> Array
resp.model_version_details[0].training_data_schema.label_schema.label_mapper["string"][0] #=> String
resp.model_version_details[0].training_data_schema.label_schema.unlabeled_events_treatment #=> String, one of "IGNORE", "FRAUD", "LEGIT"
resp.model_version_details[0].external_events_detail.data_location #=> String
resp.model_version_details[0].external_events_detail.data_access_role_arn #=> String
resp.model_version_details[0].ingested_events_detail.ingested_events_time_window.start_time #=> String
resp.model_version_details[0].ingested_events_detail.ingested_events_time_window.end_time #=> String
resp.model_version_details[0].training_result.data_validation_metrics.file_level_messages #=> Array
resp.model_version_details[0].training_result.data_validation_metrics.file_level_messages[0].title #=> String
resp.model_version_details[0].training_result.data_validation_metrics.file_level_messages[0].content #=> String
resp.model_version_details[0].training_result.data_validation_metrics.file_level_messages[0].type #=> String
resp.model_version_details[0].training_result.data_validation_metrics.field_level_messages #=> Array
resp.model_version_details[0].training_result.data_validation_metrics.field_level_messages[0].field_name #=> String
resp.model_version_details[0].training_result.data_validation_metrics.field_level_messages[0].identifier #=> String
resp.model_version_details[0].training_result.data_validation_metrics.field_level_messages[0].title #=> String
resp.model_version_details[0].training_result.data_validation_metrics.field_level_messages[0].content #=> String
resp.model_version_details[0].training_result.data_validation_metrics.field_level_messages[0].type #=> String
resp.model_version_details[0].training_result.training_metrics.auc #=> Float
resp.model_version_details[0].training_result.training_metrics.metric_data_points #=> Array
resp.model_version_details[0].training_result.training_metrics.metric_data_points[0].fpr #=> Float
resp.model_version_details[0].training_result.training_metrics.metric_data_points[0].precision #=> Float
resp.model_version_details[0].training_result.training_metrics.metric_data_points[0].tpr #=> Float
resp.model_version_details[0].training_result.training_metrics.metric_data_points[0].threshold #=> Float
resp.model_version_details[0].training_result.variable_importance_metrics.log_odds_metrics #=> Array
resp.model_version_details[0].training_result.variable_importance_metrics.log_odds_metrics[0].variable_name #=> String
resp.model_version_details[0].training_result.variable_importance_metrics.log_odds_metrics[0].variable_type #=> String
resp.model_version_details[0].training_result.variable_importance_metrics.log_odds_metrics[0].variable_importance #=> Float
resp.model_version_details[0].last_updated_time #=> String
resp.model_version_details[0].created_time #=> String
resp.model_version_details[0].arn #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_id (String)

    The model ID.

  • :model_version_number (String)

    The model version number.

  • :model_type (String)

    The model type.

  • :next_token (String)

    The next token from the previous results.

  • :max_results (Integer)

    The maximum number of results to return.

Returns:

See Also:



1503
1504
1505
1506
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1503

def describe_model_versions(params = {}, options = {})
  req = build_request(:describe_model_versions, params)
  req.send_request(options)
end

#get_batch_import_jobs(params = {}) ⇒ Types::GetBatchImportJobsResult

Gets all batch import jobs or a specific job of the specified ID. This is a paginated API. If you provide a null maxResults, this action retrieves a maximum of 50 records per page. If you provide a maxResults, the value must be between 1 and 50. To get the next page results, provide the pagination token from the GetBatchImportJobsResponse as part of your request. A null pagination token fetches the records from the beginning.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.get_batch_import_jobs({
  job_id: "identifier",
  max_results: 1,
  next_token: "string",
})

Response structure


resp.batch_imports #=> Array
resp.batch_imports[0].job_id #=> String
resp.batch_imports[0].status #=> String, one of "IN_PROGRESS_INITIALIZING", "IN_PROGRESS", "CANCEL_IN_PROGRESS", "CANCELED", "COMPLETE", "FAILED"
resp.batch_imports[0].failure_reason #=> String
resp.batch_imports[0].start_time #=> String
resp.batch_imports[0].completion_time #=> String
resp.batch_imports[0].input_path #=> String
resp.batch_imports[0].output_path #=> String
resp.batch_imports[0].event_type_name #=> String
resp.batch_imports[0].iam_role_arn #=> String
resp.batch_imports[0].arn #=> String
resp.batch_imports[0].processed_records_count #=> Integer
resp.batch_imports[0].failed_records_count #=> Integer
resp.batch_imports[0].total_records_count #=> Integer
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :job_id (String)

    The ID of the batch import job to get.

  • :max_results (Integer)

    The maximum number of objects to return for request.

  • :next_token (String)

    The next token from the previous request.

Returns:

See Also:



1562
1563
1564
1565
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1562

def get_batch_import_jobs(params = {}, options = {})
  req = build_request(:get_batch_import_jobs, params)
  req.send_request(options)
end

#get_batch_prediction_jobs(params = {}) ⇒ Types::GetBatchPredictionJobsResult

Gets all batch prediction jobs or a specific job if you specify a job ID. This is a paginated API. If you provide a null maxResults, this action retrieves a maximum of 50 records per page. If you provide a maxResults, the value must be between 1 and 50. To get the next page results, provide the pagination token from the GetBatchPredictionJobsResponse as part of your request. A null pagination token fetches the records from the beginning.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.get_batch_prediction_jobs({
  job_id: "identifier",
  max_results: 1,
  next_token: "string",
})

Response structure


resp.batch_predictions #=> Array
resp.batch_predictions[0].job_id #=> String
resp.batch_predictions[0].status #=> String, one of "IN_PROGRESS_INITIALIZING", "IN_PROGRESS", "CANCEL_IN_PROGRESS", "CANCELED", "COMPLETE", "FAILED"
resp.batch_predictions[0].failure_reason #=> String
resp.batch_predictions[0].start_time #=> String
resp.batch_predictions[0].completion_time #=> String
resp.batch_predictions[0].last_heartbeat_time #=> String
resp.batch_predictions[0].input_path #=> String
resp.batch_predictions[0].output_path #=> String
resp.batch_predictions[0].event_type_name #=> String
resp.batch_predictions[0].detector_name #=> String
resp.batch_predictions[0].detector_version #=> String
resp.batch_predictions[0].iam_role_arn #=> String
resp.batch_predictions[0].arn #=> String
resp.batch_predictions[0].processed_records_count #=> Integer
resp.batch_predictions[0].total_records_count #=> Integer
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :job_id (String)

    The batch prediction job for which to get the details.

  • :max_results (Integer)

    The maximum number of objects to return for the request.

  • :next_token (String)

    The next token from the previous request.

Returns:

See Also:



1623
1624
1625
1626
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1623

def get_batch_prediction_jobs(params = {}, options = {})
  req = build_request(:get_batch_prediction_jobs, params)
  req.send_request(options)
end

#get_delete_events_by_event_type_status(params = {}) ⇒ Types::GetDeleteEventsByEventTypeStatusResult

Retrieves the status of a DeleteEventsByEventType action.

Examples:

Request syntax with placeholder values


resp = client.get_delete_events_by_event_type_status({
  event_type_name: "identifier", # required
})

Response structure


resp.event_type_name #=> String
resp.events_deletion_status #=> String, one of "IN_PROGRESS_INITIALIZING", "IN_PROGRESS", "CANCEL_IN_PROGRESS", "CANCELED", "COMPLETE", "FAILED"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :event_type_name (required, String)

    Name of event type for which to get the deletion status.

Returns:

See Also:



1653
1654
1655
1656
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1653

def get_delete_events_by_event_type_status(params = {}, options = {})
  req = build_request(:get_delete_events_by_event_type_status, params)
  req.send_request(options)
end

#get_detector_version(params = {}) ⇒ Types::GetDetectorVersionResult

Gets a particular detector version.

Examples:

Request syntax with placeholder values


resp = client.get_detector_version({
  detector_id: "identifier", # required
  detector_version_id: "wholeNumberVersionString", # required
})

Response structure


resp.detector_id #=> String
resp.detector_version_id #=> String
resp.description #=> String
resp.external_model_endpoints #=> Array
resp.external_model_endpoints[0] #=> String
resp.model_versions #=> Array
resp.model_versions[0].model_id #=> String
resp.model_versions[0].model_type #=> String, one of "ONLINE_FRAUD_INSIGHTS", "TRANSACTION_FRAUD_INSIGHTS"
resp.model_versions[0].model_version_number #=> String
resp.model_versions[0].arn #=> String
resp.rules #=> Array
resp.rules[0].detector_id #=> String
resp.rules[0].rule_id #=> String
resp.rules[0].rule_version #=> String
resp.status #=> String, one of "DRAFT", "ACTIVE", "INACTIVE"
resp.last_updated_time #=> String
resp.created_time #=> String
resp.rule_execution_mode #=> String, one of "ALL_MATCHED", "FIRST_MATCHED"
resp.arn #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :detector_id (required, String)

    The detector ID.

  • :detector_version_id (required, String)

    The detector version ID.

Returns:

See Also:



1713
1714
1715
1716
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1713

def get_detector_version(params = {}, options = {})
  req = build_request(:get_detector_version, params)
  req.send_request(options)
end

#get_detectors(params = {}) ⇒ Types::GetDetectorsResult

Gets all detectors or a single detector if a detectorId is specified. This is a paginated API. If you provide a null maxResults, this action 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 GetDetectorsResponse as part of your request. A null pagination token fetches the records from the beginning.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.get_detectors({
  detector_id: "identifier",
  next_token: "string",
  max_results: 1,
})

Response structure


resp.detectors #=> Array
resp.detectors[0].detector_id #=> String
resp.detectors[0].description #=> String
resp.detectors[0].event_type_name #=> String
resp.detectors[0].last_updated_time #=> String
resp.detectors[0].created_time #=> String
resp.detectors[0].arn #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :detector_id (String)

    The detector ID.

  • :next_token (String)

    The next token for the subsequent request.

  • :max_results (Integer)

    The maximum number of objects to return for the request.

Returns:

See Also:



1765
1766
1767
1768
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1765

def get_detectors(params = {}, options = {})
  req = build_request(:get_detectors, params)
  req.send_request(options)
end

#get_entity_types(params = {}) ⇒ Types::GetEntityTypesResult

Gets all entity types or a specific entity type if a name is specified. This is a paginated API. If you provide a null maxResults, this action 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 GetEntityTypesResponse as part of your request. A null pagination token fetches the records from the beginning.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.get_entity_types({
  name: "identifier",
  next_token: "string",
  max_results: 1,
})

Response structure


resp.entity_types #=> Array
resp.entity_types[0].name #=> String
resp.entity_types[0].description #=> String
resp.entity_types[0].last_updated_time #=> String
resp.entity_types[0].created_time #=> String
resp.entity_types[0].arn #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (String)

    The name.

  • :next_token (String)

    The next token for the subsequent request.

  • :max_results (Integer)

    The maximum number of objects to return for the request.

Returns:

See Also:



1816
1817
1818
1819
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1816

def get_entity_types(params = {}, options = {})
  req = build_request(:get_entity_types, params)
  req.send_request(options)
end

#get_event(params = {}) ⇒ Types::GetEventResult

Retrieves details of events stored with Amazon Fraud Detector. This action does not retrieve prediction results.

Examples:

Request syntax with placeholder values


resp = client.get_event({
  event_id: "string", # required
  event_type_name: "string", # required
})

Response structure


resp.event.event_id #=> String
resp.event.event_type_name #=> String
resp.event.event_timestamp #=> String
resp.event.event_variables #=> Hash
resp.event.event_variables["attributeKey"] #=> String
resp.event.current_label #=> String
resp.event.label_timestamp #=> String
resp.event.entities #=> Array
resp.event.entities[0].entity_type #=> String
resp.event.entities[0].entity_id #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :event_id (required, String)

    The ID of the event to retrieve.

  • :event_type_name (required, String)

    The event type of the event to retrieve.

Returns:

See Also:



1858
1859
1860
1861
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1858

def get_event(params = {}, options = {})
  req = build_request(:get_event, params)
  req.send_request(options)
end

#get_event_prediction(params = {}) ⇒ Types::GetEventPredictionResult

Evaluates an event against a detector version. If a version ID is not provided, the detector’s (ACTIVE) version is used.

Examples:

Request syntax with placeholder values


resp = client.get_event_prediction({
  detector_id: "string", # required
  detector_version_id: "wholeNumberVersionString",
  event_id: "string", # required
  event_type_name: "string", # required
  entities: [ # required
    {
      entity_type: "string", # required
      entity_id: "entityRestrictedString", # required
    },
  ],
  event_timestamp: "utcTimestampISO8601", # required
  event_variables: { # required
    "variableName" => "variableValue",
  },
  external_model_endpoint_data_blobs: {
    "sageMakerEndpointIdentifier" => {
      byte_buffer: "data",
      content_type: "contentType",
    },
  },
})

Response structure


resp.model_scores #=> Array
resp.model_scores[0].model_version.model_id #=> String
resp.model_scores[0].model_version.model_type #=> String, one of "ONLINE_FRAUD_INSIGHTS", "TRANSACTION_FRAUD_INSIGHTS"
resp.model_scores[0].model_version.model_version_number #=> String
resp.model_scores[0].model_version.arn #=> String
resp.model_scores[0].scores #=> Hash
resp.model_scores[0].scores["string"] #=> Float
resp.rule_results #=> Array
resp.rule_results[0].rule_id #=> String
resp.rule_results[0].outcomes #=> Array
resp.rule_results[0].outcomes[0] #=> String
resp.external_model_outputs #=> Array
resp.external_model_outputs[0].external_model.model_endpoint #=> String
resp.external_model_outputs[0].external_model.model_source #=> String, one of "SAGEMAKER"
resp.external_model_outputs[0].outputs #=> Hash
resp.external_model_outputs[0].outputs["string"] #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :detector_id (required, String)

    The detector ID.

  • :detector_version_id (String)

    The detector version ID.

  • :event_id (required, String)

    The unique ID used to identify the event.

  • :event_type_name (required, String)

    The event type associated with the detector specified for the prediction.

  • :entities (required, Array<Types::Entity>)

    The entity type (associated with the detector's event type) and specific entity ID representing who performed the event. If an entity id is not available, use "UNKNOWN."

  • :event_timestamp (required, String)

    Timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.

  • :event_variables (required, Hash<String,String>)

    Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.

    You must provide at least one eventVariable

    To ensure most accurate fraud prediction and to simplify your data preparation, Amazon Fraud Detector will replace all missing variables or values as follows:

    For Amazon Fraud Detector trained models:

    If a null value is provided explicitly for a variable or if a variable is missing, model will replace the null value or the missing variable (no variable name in the eventVariables map) with calculated default mean/medians for numeric variables and with special values for categorical variables.

    For imported SageMaker models:

    If a null value is provided explicitly for a variable, the model and rules will use “null” as the value. If a variable is not provided (no variable name in the eventVariables map), model and rules will use the default value that is provided for the variable.

  • :external_model_endpoint_data_blobs (Hash<String,Types::ModelEndpointDataBlob>)

    The Amazon SageMaker model endpoint input data blobs.

Returns:

See Also:



1971
1972
1973
1974
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 1971

def get_event_prediction(params = {}, options = {})
  req = build_request(:get_event_prediction, params)
  req.send_request(options)
end

#get_event_types(params = {}) ⇒ Types::GetEventTypesResult

Gets all event types or a specific event type if name is provided. This is a paginated API. If you provide a null maxResults, this action 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 GetEventTypesResponse as part of your request. A null pagination token fetches the records from the beginning.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.get_event_types({
  name: "identifier",
  next_token: "string",
  max_results: 1,
})

Response structure


resp.event_types #=> Array
resp.event_types[0].name #=> String
resp.event_types[0].description #=> String
resp.event_types[0].event_variables #=> Array
resp.event_types[0].event_variables[0] #=> String
resp.event_types[0].labels #=> Array
resp.event_types[0].labels[0] #=> String
resp.event_types[0].entity_types #=> Array
resp.event_types[0].entity_types[0] #=> String
resp.event_types[0].event_ingestion #=> String, one of "ENABLED", "DISABLED"
resp.event_types[0].ingested_event_statistics.number_of_events #=> Integer
resp.event_types[0].ingested_event_statistics.event_data_size_in_bytes #=> Integer
resp.event_types[0].ingested_event_statistics.least_recent_event #=> String
resp.event_types[0].ingested_event_statistics.most_recent_event #=> String
resp.event_types[0].ingested_event_statistics.last_updated_time #=> String
resp.event_types[0].last_updated_time #=> String
resp.event_types[0].created_time #=> String
resp.event_types[0].arn #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (String)

    The name.

  • :next_token (String)

    The next token for the subsequent request.

  • :max_results (Integer)

    The maximum number of objects to return for the request.

Returns:

See Also:



2034
2035
2036
2037
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2034

def get_event_types(params = {}, options = {})
  req = build_request(:get_event_types, params)
  req.send_request(options)
end

#get_external_models(params = {}) ⇒ Types::GetExternalModelsResult

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.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.get_external_models({
  model_endpoint: "string",
  next_token: "string",
  max_results: 1,
})

Response structure


resp.external_models #=> Array
resp.external_models[0].model_endpoint #=> String
resp.external_models[0].model_source #=> String, one of "SAGEMAKER"
resp.external_models[0].invoke_model_endpoint_role_arn #=> String
resp.external_models[0].input_configuration.event_type_name #=> String
resp.external_models[0].input_configuration.format #=> String, one of "TEXT_CSV", "APPLICATION_JSON"
resp.external_models[0].input_configuration.use_event_variables #=> Boolean
resp.external_models[0].input_configuration.json_input_template #=> String
resp.external_models[0].input_configuration.csv_input_template #=> String
resp.external_models[0].output_configuration.format #=> String, one of "TEXT_CSV", "APPLICATION_JSONLINES"
resp.external_models[0].output_configuration.json_key_to_variable_map #=> Hash
resp.external_models[0].output_configuration.json_key_to_variable_map["string"] #=> String
resp.external_models[0].output_configuration.csv_index_to_variable_map #=> Hash
resp.external_models[0].output_configuration.csv_index_to_variable_map["string"] #=> String
resp.external_models[0].model_endpoint_status #=> String, one of "ASSOCIATED", "DISSOCIATED"
resp.external_models[0].last_updated_time #=> String
resp.external_models[0].created_time #=> String
resp.external_models[0].arn #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_endpoint (String)

    The Amazon SageMaker model endpoint.

  • :next_token (String)

    The next page token for the request.

  • :max_results (Integer)

    The maximum number of objects to return for the request.

Returns:

See Also:



2097
2098
2099
2100
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2097

def get_external_models(params = {}, options = {})
  req = build_request(:get_external_models, params)
  req.send_request(options)
end

#get_kms_encryption_key(params = {}) ⇒ Types::GetKMSEncryptionKeyResult

Gets the encryption key if a KMS key has been specified to be used to encrypt content in Amazon Fraud Detector.

Examples:

Response structure


resp.kms_key.kms_encryption_key_arn #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Returns:

See Also:



2117
2118
2119
2120
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2117

def get_kms_encryption_key(params = {}, options = {})
  req = build_request(:get_kms_encryption_key, params)
  req.send_request(options)
end

#get_labels(params = {}) ⇒ Types::GetLabelsResult

Gets all labels or a specific label if name is provided. This is a paginated API. If you provide a null maxResults, this action retrieves a maximum of 50 records per page. If you provide a maxResults, the value must be between 10 and 50. To get the next page results, provide the pagination token from the GetGetLabelsResponse as part of your request. A null pagination token fetches the records from the beginning.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.get_labels({
  name: "identifier",
  next_token: "string",
  max_results: 1,
})

Response structure


resp.labels #=> Array
resp.labels[0].name #=> String
resp.labels[0].description #=> String
resp.labels[0].last_updated_time #=> String
resp.labels[0].created_time #=> String
resp.labels[0].arn #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (String)

    The name of the label or labels to get.

  • :next_token (String)

    The next token for the subsequent request.

  • :max_results (Integer)

    The maximum number of objects to return for the request.

Returns:

See Also:



2168
2169
2170
2171
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2168

def get_labels(params = {}, options = {})
  req = build_request(:get_labels, params)
  req.send_request(options)
end

#get_model_version(params = {}) ⇒ Types::GetModelVersionResult

Gets the details of the specified model version.

Examples:

Request syntax with placeholder values


resp = client.get_model_version({
  model_id: "modelIdentifier", # required
  model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS, TRANSACTION_FRAUD_INSIGHTS
  model_version_number: "floatVersionString", # required
})

Response structure


resp.model_id #=> String
resp.model_type #=> String, one of "ONLINE_FRAUD_INSIGHTS", "TRANSACTION_FRAUD_INSIGHTS"
resp.model_version_number #=> String
resp.training_data_source #=> String, one of "EXTERNAL_EVENTS", "INGESTED_EVENTS"
resp.training_data_schema.model_variables #=> Array
resp.training_data_schema.model_variables[0] #=> String
resp.training_data_schema.label_schema.label_mapper #=> Hash
resp.training_data_schema.label_schema.label_mapper["string"] #=> Array
resp.training_data_schema.label_schema.label_mapper["string"][0] #=> String
resp.training_data_schema.label_schema.unlabeled_events_treatment #=> String, one of "IGNORE", "FRAUD", "LEGIT"
resp.external_events_detail.data_location #=> String
resp.external_events_detail.data_access_role_arn #=> String
resp.ingested_events_detail.ingested_events_time_window.start_time #=> String
resp.ingested_events_detail.ingested_events_time_window.end_time #=> String
resp.status #=> String
resp.arn #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_id (required, String)

    The model ID.

  • :model_type (required, String)

    The model type.

  • :model_version_number (required, String)

    The model version number.

Returns:

See Also:



2227
2228
2229
2230
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2227

def get_model_version(params = {}, options = {})
  req = build_request(:get_model_version, params)
  req.send_request(options)
end

#get_models(params = {}) ⇒ Types::GetModelsResult

Gets one or more models. Gets all models for the Amazon Web Services account if no model type and no model id provided. Gets all models for the Amazon Web Services account and model type, if the model type is specified but model id is not provided. Gets a specific model if (model type, model id) tuple is specified.

This is a paginated API. If you provide a null maxResults, this action retrieves a maximum of 10 records per page. If you provide a maxResults, the value must be between 1 and 10. To get the next page results, provide the pagination token from the response as part of your request. A null pagination token fetches the records from the beginning.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.get_models({
  model_id: "modelIdentifier",
  model_type: "ONLINE_FRAUD_INSIGHTS", # accepts ONLINE_FRAUD_INSIGHTS, TRANSACTION_FRAUD_INSIGHTS
  next_token: "string",
  max_results: 1,
})

Response structure


resp.next_token #=> String
resp.models #=> Array
resp.models[0].model_id #=> String
resp.models[0].model_type #=> String, one of "ONLINE_FRAUD_INSIGHTS", "TRANSACTION_FRAUD_INSIGHTS"
resp.models[0].description #=> String
resp.models[0].event_type_name #=> String
resp.models[0].created_time #=> String
resp.models[0].last_updated_time #=> String
resp.models[0].arn #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_id (String)

    The model ID.

  • :model_type (String)

    The model type.

  • :next_token (String)

    The next token for the subsequent request.

  • :max_results (Integer)

    The maximum number of objects to return for the request.

Returns:

See Also:



2289
2290
2291
2292
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2289

def get_models(params = {}, options = {})
  req = build_request(:get_models, params)
  req.send_request(options)
end

#get_outcomes(params = {}) ⇒ Types::GetOutcomesResult

Gets one or more outcomes. This is a paginated API. If you provide a null maxResults, this actions retrieves a maximum of 100 records per page. If you provide a maxResults, the value must be between 50 and 100. To get the next page results, provide the pagination token from the GetOutcomesResult as part of your request. A null pagination token fetches the records from the beginning.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.get_outcomes({
  name: "identifier",
  next_token: "string",
  max_results: 1,
})

Response structure


resp.outcomes #=> Array
resp.outcomes[0].name #=> String
resp.outcomes[0].description #=> String
resp.outcomes[0].last_updated_time #=> String
resp.outcomes[0].created_time #=> String
resp.outcomes[0].arn #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (String)

    The name of the outcome or outcomes to get.

  • :next_token (String)

    The next page token for the request.

  • :max_results (Integer)

    The maximum number of objects to return for the request.

Returns:

See Also:



2339
2340
2341
2342
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2339

def get_outcomes(params = {}, options = {})
  req = build_request(:get_outcomes, params)
  req.send_request(options)
end

#get_rules(params = {}) ⇒ Types::GetRulesResult

Get all rules for a detector (paginated) if ruleId and ruleVersion are not specified. Gets all rules for the detector and the ruleId if present (paginated). Gets a specific rule if both the ruleId and the ruleVersion are specified.

This is a paginated API. Providing null maxResults results in retrieving maximum of 100 records per page. If you provide maxResults the value must be between 50 and 100. To get the next page result, a provide a pagination token from GetRulesResult as part of your request. Null pagination token fetches the records from the beginning.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.get_rules({
  rule_id: "identifier",
  detector_id: "identifier", # required
  rule_version: "wholeNumberVersionString",
  next_token: "string",
  max_results: 1,
})

Response structure


resp.rule_details #=> Array
resp.rule_details[0].rule_id #=> String
resp.rule_details[0].description #=> String
resp.rule_details[0].detector_id #=> String
resp.rule_details[0].rule_version #=> String
resp.rule_details[0].expression #=> String
resp.rule_details[0].language #=> String, one of "DETECTORPL"
resp.rule_details[0].outcomes #=> Array
resp.rule_details[0].outcomes[0] #=> String
resp.rule_details[0].last_updated_time #=> String
resp.rule_details[0].created_time #=> String
resp.rule_details[0].arn #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :rule_id (String)

    The rule ID.

  • :detector_id (required, String)

    The detector ID.

  • :rule_version (String)

    The rule version.

  • :next_token (String)

    The next page token.

  • :max_results (Integer)

    The maximum number of rules to return for the request.

Returns:

See Also:



2407
2408
2409
2410
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2407

def get_rules(params = {}, options = {})
  req = build_request(:get_rules, params)
  req.send_request(options)
end

#get_variables(params = {}) ⇒ Types::GetVariablesResult

Gets 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.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.get_variables({
  name: "string",
  next_token: "string",
  max_results: 1,
})

Response structure


resp.variables #=> Array
resp.variables[0].name #=> String
resp.variables[0].data_type #=> String, one of "STRING", "INTEGER", "FLOAT", "BOOLEAN"
resp.variables[0].data_source #=> String, one of "EVENT", "MODEL_SCORE", "EXTERNAL_MODEL_SCORE"
resp.variables[0].default_value #=> String
resp.variables[0].description #=> String
resp.variables[0].variable_type #=> String
resp.variables[0].last_updated_time #=> String
resp.variables[0].created_time #=> String
resp.variables[0].arn #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (String)

    The name of the variable.

  • :next_token (String)

    The next page token of the get variable request.

  • :max_results (Integer)

    The max size per page determined for the get variable request.

Returns:

See Also:



2461
2462
2463
2464
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2461

def get_variables(params = {}, options = {})
  req = build_request(:get_variables, params)
  req.send_request(options)
end

#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResult

Lists all tags associated with the resource. This is a paginated API. To get the next page results, provide the pagination token from the response as part of your request. A null pagination token fetches the records from the beginning.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_tags_for_resource({
  resource_arn: "fraudDetectorArn", # required
  next_token: "string",
  max_results: 1,
})

Response structure


resp.tags #=> Array
resp.tags[0].key #=> String
resp.tags[0].value #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    The ARN that specifies the resource whose tags you want to list.

  • :next_token (String)

    The next token from the previous results.

  • :max_results (Integer)

    The maximum number of objects to return for the request.

Returns:

See Also:



2506
2507
2508
2509
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2506

def list_tags_for_resource(params = {}, options = {})
  req = build_request(:list_tags_for_resource, params)
  req.send_request(options)
end

#put_detector(params = {}) ⇒ Struct

Creates or updates a detector.

Examples:

Request syntax with placeholder values


resp = client.put_detector({
  detector_id: "identifier", # required
  description: "description",
  event_type_name: "identifier", # required
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :detector_id (required, String)

    The detector ID.

  • :description (String)

    The description of the detector.

  • :event_type_name (required, String)

    The name of the event type.

  • :tags (Array<Types::Tag>)

    A collection of key and value pairs.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2545
2546
2547
2548
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2545

def put_detector(params = {}, options = {})
  req = build_request(:put_detector, params)
  req.send_request(options)
end

#put_entity_type(params = {}) ⇒ Struct

Creates or updates an entity type. An entity represents who is performing the event. As part of a fraud prediction, you pass the entity ID to indicate the specific entity who performed the event. An entity type classifies the entity. Example classifications include customer, merchant, or account.

Examples:

Request syntax with placeholder values


resp = client.put_entity_type({
  name: "identifier", # required
  description: "description",
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (required, String)

    The name of the entity type.

  • :description (String)

    The description.

  • :tags (Array<Types::Tag>)

    A collection of key and value pairs.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2584
2585
2586
2587
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2584

def put_entity_type(params = {}, options = {})
  req = build_request(:put_entity_type, params)
  req.send_request(options)
end

#put_event_type(params = {}) ⇒ Struct

Creates or updates an event type. An event is a business activity that is evaluated for fraud risk. With Amazon Fraud Detector, you generate fraud predictions for events. An event type defines the structure for an event sent to Amazon Fraud Detector. This includes the variables sent as part of the event, the entity performing the event (such as a customer), and the labels that classify the event. Example event types include online payment transactions, account registrations, and authentications.

Examples:

Request syntax with placeholder values


resp = client.put_event_type({
  name: "identifier", # required
  description: "description",
  event_variables: ["string"], # required
  labels: ["string"],
  entity_types: ["string"], # required
  event_ingestion: "ENABLED", # accepts ENABLED, DISABLED
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (required, String)

    The name.

  • :description (String)

    The description of the event type.

  • :event_variables (required, Array<String>)

    The event type variables.

  • :labels (Array<String>)

    The event type labels.

  • :entity_types (required, Array<String>)

    The entity type for the event type. Example entity types: customer, merchant, account.

  • :event_ingestion (String)

    Specifies if ingenstion is enabled or disabled.

  • :tags (Array<Types::Tag>)

    A collection of key and value pairs.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2643
2644
2645
2646
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2643

def put_event_type(params = {}, options = {})
  req = build_request(:put_event_type, params)
  req.send_request(options)
end

#put_external_model(params = {}) ⇒ Struct

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.

Examples:

Request syntax with placeholder values


resp = client.put_external_model({
  model_endpoint: "sageMakerEndpointIdentifier", # required
  model_source: "SAGEMAKER", # required, accepts SAGEMAKER
  invoke_model_endpoint_role_arn: "string", # required
  input_configuration: { # required
    event_type_name: "identifier",
    format: "TEXT_CSV", # accepts TEXT_CSV, APPLICATION_JSON
    use_event_variables: false, # required
    json_input_template: "modelInputTemplate",
    csv_input_template: "modelInputTemplate",
  },
  output_configuration: { # required
    format: "TEXT_CSV", # required, accepts TEXT_CSV, APPLICATION_JSONLINES
    json_key_to_variable_map: {
      "string" => "string",
    },
    csv_index_to_variable_map: {
      "string" => "string",
    },
  },
  model_endpoint_status: "ASSOCIATED", # required, accepts ASSOCIATED, DISSOCIATED
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_endpoint (required, String)

    The model endpoints name.

  • :model_source (required, String)

    The source of the model.

  • :invoke_model_endpoint_role_arn (required, String)

    The IAM role used to invoke the model endpoint.

  • :input_configuration (required, Types::ModelInputConfiguration)

    The model endpoint input configuration.

  • :output_configuration (required, Types::ModelOutputConfiguration)

    The model endpoint output configuration.

  • :model_endpoint_status (required, String)

    The model endpoint’s status in Amazon Fraud Detector.

  • :tags (Array<Types::Tag>)

    A collection of key and value pairs.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2710
2711
2712
2713
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2710

def put_external_model(params = {}, options = {})
  req = build_request(:put_external_model, params)
  req.send_request(options)
end

#put_kms_encryption_key(params = {}) ⇒ Struct

Specifies the KMS key to be used to encrypt content in Amazon Fraud Detector.

Examples:

Request syntax with placeholder values


resp = client.put_kms_encryption_key({
  kms_encryption_key_arn: "KmsEncryptionKeyArn", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :kms_encryption_key_arn (required, String)

    The KMS encryption key ARN.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2733
2734
2735
2736
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2733

def put_kms_encryption_key(params = {}, options = {})
  req = build_request(:put_kms_encryption_key, params)
  req.send_request(options)
end

#put_label(params = {}) ⇒ Struct

Creates or updates label. A label classifies an event as fraudulent or legitimate. Labels are associated with event types and used to train supervised machine learning models in Amazon Fraud Detector.

Examples:

Request syntax with placeholder values


resp = client.put_label({
  name: "identifier", # required
  description: "description",
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (required, String)

    The label name.

  • :description (String)

    The label description.

  • :tags (Array<Types::Tag>)

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2769
2770
2771
2772
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2769

def put_label(params = {}, options = {})
  req = build_request(:put_label, params)
  req.send_request(options)
end

#put_outcome(params = {}) ⇒ Struct

Creates or updates an outcome.

Examples:

Request syntax with placeholder values


resp = client.put_outcome({
  name: "identifier", # required
  description: "description",
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (required, String)

    The name of the outcome.

  • :description (String)

    The outcome description.

  • :tags (Array<Types::Tag>)

    A collection of key and value pairs.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2804
2805
2806
2807
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2804

def put_outcome(params = {}, options = {})
  req = build_request(:put_outcome, params)
  req.send_request(options)
end

#send_event(params = {}) ⇒ Struct

Stores events in Amazon Fraud Detector without generating fraud predictions for those events. For example, you can use SendEvent to upload a historical dataset, which you can then later use to train a model.

Examples:

Request syntax with placeholder values


resp = client.send_event({
  event_id: "identifier", # required
  event_type_name: "identifier", # required
  event_timestamp: "utcTimestampISO8601", # required
  event_variables: { # required
    "variableName" => "variableValue",
  },
  assigned_label: "identifier",
  label_timestamp: "utcTimestampISO8601",
  entities: [ # required
    {
      entity_type: "string", # required
      entity_id: "entityRestrictedString", # required
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :event_id (required, String)

    The event ID to upload.

  • :event_type_name (required, String)

    The event type name of the event.

  • :event_timestamp (required, String)

    The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.

  • :event_variables (required, Hash<String,String>)

    Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.

  • :assigned_label (String)

    The label to associate with the event. Required if specifying labelTimestamp.

  • :label_timestamp (String)

    The timestamp associated with the label. Required if specifying assignedLabel.

  • :entities (required, Array<Types::Entity>)

    An array of entities.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2865
2866
2867
2868
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2865

def send_event(params = {}, options = {})
  req = build_request(:send_event, params)
  req.send_request(options)
end

#tag_resource(params = {}) ⇒ Struct

Assigns tags to a resource.

Examples:

Request syntax with placeholder values


resp = client.tag_resource({
  resource_arn: "fraudDetectorArn", # required
  tags: [ # required
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    The resource ARN.

  • :tags (required, Array<Types::Tag>)

    The tags to assign to the resource.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2896
2897
2898
2899
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2896

def tag_resource(params = {}, options = {})
  req = build_request(:tag_resource, params)
  req.send_request(options)
end

#untag_resource(params = {}) ⇒ Struct

Removes tags from a resource.

Examples:

Request syntax with placeholder values


resp = client.untag_resource({
  resource_arn: "fraudDetectorArn", # required
  tag_keys: ["tagKey"], # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    The ARN of the resource from which to remove the tag.

  • :tag_keys (required, Array<String>)

    The resource ARN.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2922
2923
2924
2925
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2922

def untag_resource(params = {}, options = {})
  req = build_request(:untag_resource, params)
  req.send_request(options)
end

#update_detector_version(params = {}) ⇒ Struct

Updates a detector version. The detector version attributes that you can update include models, external model endpoints, rules, rule execution mode, and description. You can only update a DRAFT detector version.

Examples:

Request syntax with placeholder values


resp = client.update_detector_version({
  detector_id: "identifier", # required
  detector_version_id: "wholeNumberVersionString", # required
  external_model_endpoints: ["string"], # required
  rules: [ # required
    {
      detector_id: "identifier", # required
      rule_id: "identifier", # required
      rule_version: "wholeNumberVersionString", # required
    },
  ],
  description: "description",
  model_versions: [
    {
      model_id: "modelIdentifier", # required
      model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS, TRANSACTION_FRAUD_INSIGHTS
      model_version_number: "floatVersionString", # required
      arn: "fraudDetectorArn",
    },
  ],
  rule_execution_mode: "ALL_MATCHED", # accepts ALL_MATCHED, FIRST_MATCHED
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :detector_id (required, String)

    The parent detector ID for the detector version you want to update.

  • :detector_version_id (required, String)

    The detector version ID.

  • :external_model_endpoints (required, Array<String>)

    The Amazon SageMaker model endpoints to include in the detector version.

  • :rules (required, Array<Types::Rule>)

    The rules to include in the detector version.

  • :description (String)

    The detector version description.

  • :model_versions (Array<Types::ModelVersion>)

    The model versions to include in the detector version.

  • :rule_execution_mode (String)

    The rule execution mode to add to the detector.

    If you specify FIRST_MATCHED, Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule.

    If you specifiy ALL_MATCHED, Amazon Fraud Detector evaluates all rules and returns the outcomes for all matched rules. You can define and edit the rule mode at the detector version level, when it is in draft status.

    The default behavior is FIRST_MATCHED.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2997
2998
2999
3000
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 2997

def update_detector_version(params = {}, options = {})
  req = build_request(:update_detector_version, params)
  req.send_request(options)
end

#update_detector_version_metadata(params = {}) ⇒ Struct

Updates the detector version's description. You can update the metadata for any detector version (DRAFT, ACTIVE, or INACTIVE).

Examples:

Request syntax with placeholder values


resp = client.({
  detector_id: "identifier", # required
  detector_version_id: "wholeNumberVersionString", # required
  description: "description", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :detector_id (required, String)

    The detector ID.

  • :detector_version_id (required, String)

    The detector version ID.

  • :description (required, String)

    The description.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



3028
3029
3030
3031
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 3028

def (params = {}, options = {})
  req = build_request(:update_detector_version_metadata, params)
  req.send_request(options)
end

#update_detector_version_status(params = {}) ⇒ Struct

Updates the detector version’s status. You can perform the following promotions or demotions using UpdateDetectorVersionStatus: DRAFT to ACTIVE, ACTIVE to INACTIVE, and INACTIVE to ACTIVE.

Examples:

Request syntax with placeholder values


resp = client.update_detector_version_status({
  detector_id: "identifier", # required
  detector_version_id: "wholeNumberVersionString", # required
  status: "DRAFT", # required, accepts DRAFT, ACTIVE, INACTIVE
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :detector_id (required, String)

    The detector ID.

  • :detector_version_id (required, String)

    The detector version ID.

  • :status (required, String)

    The new status.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



3060
3061
3062
3063
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 3060

def update_detector_version_status(params = {}, options = {})
  req = build_request(:update_detector_version_status, params)
  req.send_request(options)
end

#update_event_label(params = {}) ⇒ Struct

Updates the specified event with a new label.

Examples:

Request syntax with placeholder values


resp = client.update_event_label({
  event_id: "identifier", # required
  event_type_name: "identifier", # required
  assigned_label: "identifier", # required
  label_timestamp: "utcTimestampISO8601", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :event_id (required, String)

    The ID of the event associated with the label to update.

  • :event_type_name (required, String)

    The event type of the event associated with the label to update.

  • :assigned_label (required, String)

    The new label to assign to the event.

  • :label_timestamp (required, String)

    The timestamp associated with the label. The timestamp must be specified using ISO 8601 standard in UTC.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



3095
3096
3097
3098
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 3095

def update_event_label(params = {}, options = {})
  req = build_request(:update_event_label, params)
  req.send_request(options)
end

#update_model(params = {}) ⇒ Struct

Updates model description.

Examples:

Request syntax with placeholder values


resp = client.update_model({
  model_id: "modelIdentifier", # required
  model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS, TRANSACTION_FRAUD_INSIGHTS
  description: "description",
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_id (required, String)

    The model ID.

  • :model_type (required, String)

    The model type.

  • :description (String)

    The new model description.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



3125
3126
3127
3128
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 3125

def update_model(params = {}, options = {})
  req = build_request(:update_model, params)
  req.send_request(options)
end

#update_model_version(params = {}) ⇒ Types::UpdateModelVersionResult

Updates a model version. Updating a model version retrains an existing model version using updated training data and produces a new minor version of the model. You can update the training data set location and data access role attributes using this action. This action creates and trains a new minor version of the model, for example version 1.01, 1.02, 1.03.

Examples:

Request syntax with placeholder values


resp = client.update_model_version({
  model_id: "modelIdentifier", # required
  model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS, TRANSACTION_FRAUD_INSIGHTS
  major_version_number: "wholeNumberVersionString", # required
  external_events_detail: {
    data_location: "s3BucketLocation", # required
    data_access_role_arn: "iamRoleArn", # required
  },
  ingested_events_detail: {
    ingested_events_time_window: { # required
      start_time: "time", # required
      end_time: "time", # required
    },
  },
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Response structure


resp.model_id #=> String
resp.model_type #=> String, one of "ONLINE_FRAUD_INSIGHTS", "TRANSACTION_FRAUD_INSIGHTS"
resp.model_version_number #=> String
resp.status #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_id (required, String)

    The model ID.

  • :model_type (required, String)

    The model type.

  • :major_version_number (required, String)

    The major version number.

  • :external_events_detail (Types::ExternalEventsDetail)

    The details of the external events data used for training the model version. Required if trainingDataSource is EXTERNAL_EVENTS.

  • :ingested_events_detail (Types::IngestedEventsDetail)

    The details of the ingested event used for training the model version. Required if your trainingDataSource is INGESTED_EVENTS.

  • :tags (Array<Types::Tag>)

    A collection of key and value pairs.

Returns:

See Also:



3199
3200
3201
3202
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 3199

def update_model_version(params = {}, options = {})
  req = build_request(:update_model_version, params)
  req.send_request(options)
end

#update_model_version_status(params = {}) ⇒ Struct

Updates the status of a model version.

You can perform the following status updates:

  1. Change the TRAINING_COMPLETE status to ACTIVE.

  2. Change ACTIVE to INACTIVE.

Examples:

Request syntax with placeholder values


resp = client.update_model_version_status({
  model_id: "modelIdentifier", # required
  model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS, TRANSACTION_FRAUD_INSIGHTS
  model_version_number: "floatVersionString", # required
  status: "ACTIVE", # required, accepts ACTIVE, INACTIVE, TRAINING_CANCELLED
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :model_id (required, String)

    The model ID of the model version to update.

  • :model_type (required, String)

    The model type.

  • :model_version_number (required, String)

    The model version number.

  • :status (required, String)

    The model version status.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



3239
3240
3241
3242
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 3239

def update_model_version_status(params = {}, options = {})
  req = build_request(:update_model_version_status, params)
  req.send_request(options)
end

#update_rule_metadata(params = {}) ⇒ Struct

Updates a rule's metadata. The description attribute can be updated.

Examples:

Request syntax with placeholder values


resp = client.({
  rule: { # required
    detector_id: "identifier", # required
    rule_id: "identifier", # required
    rule_version: "wholeNumberVersionString", # required
  },
  description: "description", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :rule (required, Types::Rule)

    The rule to update.

  • :description (required, String)

    The rule description.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



3269
3270
3271
3272
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 3269

def (params = {}, options = {})
  req = build_request(:update_rule_metadata, params)
  req.send_request(options)
end

#update_rule_version(params = {}) ⇒ Types::UpdateRuleVersionResult

Updates a rule version resulting in a new rule version. Updates a rule version resulting in a new rule version (version 1, 2, 3 ...).

Examples:

Request syntax with placeholder values


resp = client.update_rule_version({
  rule: { # required
    detector_id: "identifier", # required
    rule_id: "identifier", # required
    rule_version: "wholeNumberVersionString", # required
  },
  description: "description",
  expression: "ruleExpression", # required
  language: "DETECTORPL", # required, accepts DETECTORPL
  outcomes: ["string"], # required
  tags: [
    {
      key: "tagKey", # required
      value: "tagValue", # required
    },
  ],
})

Response structure


resp.rule.detector_id #=> String
resp.rule.rule_id #=> String
resp.rule.rule_version #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :rule (required, Types::Rule)

    The rule to update.

  • :description (String)

    The description.

  • :expression (required, String)

    The rule expression.

  • :language (required, String)

    The language.

  • :outcomes (required, Array<String>)

    The outcomes.

  • :tags (Array<Types::Tag>)

    The tags to assign to the rule version.

Returns:

See Also:



3329
3330
3331
3332
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 3329

def update_rule_version(params = {}, options = {})
  req = build_request(:update_rule_version, params)
  req.send_request(options)
end

#update_variable(params = {}) ⇒ Struct

Updates a variable.

Examples:

Request syntax with placeholder values


resp = client.update_variable({
  name: "string", # required
  default_value: "string",
  description: "string",
  variable_type: "string",
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :name (required, String)

    The name of the variable.

  • :default_value (String)

    The new default value of the variable.

  • :description (String)

    The new description.

  • :variable_type (String)

    The variable type. For more information see Variable types.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



3367
3368
3369
3370
# File 'gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/client.rb', line 3367

def update_variable(params = {}, options = {})
  req = build_request(:update_variable, params)
  req.send_request(options)
end