View on GitHub

aws-sdk-swift

FraudDetectorClient

public class FraudDetectorClient 

Inheritance

FraudDetectorClientProtocol

Initializers

init(config:)

public init(config: AWSClientRuntime.AWSClientConfiguration) 

init(region:)

public convenience init(region: Swift.String? = nil) throws 

Properties

clientName

public static let clientName = "FraudDetectorClient"

Methods

batchCreateVariable(input:completion:)

Creates a batch of variables.

public func batchCreateVariable(input: BatchCreateVariableInput, completion: @escaping (ClientRuntime.SdkResult<BatchCreateVariableOutputResponse, BatchCreateVariableOutputError>) -> Void)

batchGetVariable(input:completion:)

Gets a batch of variables.

public func batchGetVariable(input: BatchGetVariableInput, completion: @escaping (ClientRuntime.SdkResult<BatchGetVariableOutputResponse, BatchGetVariableOutputError>) -> Void)

cancelBatchPredictionJob(input:completion:)

Cancels the specified batch prediction job.

public func cancelBatchPredictionJob(input: CancelBatchPredictionJobInput, completion: @escaping (ClientRuntime.SdkResult<CancelBatchPredictionJobOutputResponse, CancelBatchPredictionJobOutputError>) -> Void)

createBatchPredictionJob(input:completion:)

Creates a batch prediction job.

public func createBatchPredictionJob(input: CreateBatchPredictionJobInput, completion: @escaping (ClientRuntime.SdkResult<CreateBatchPredictionJobOutputResponse, CreateBatchPredictionJobOutputError>) -> Void)

createDetectorVersion(input:completion:)

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

public func createDetectorVersion(input: CreateDetectorVersionInput, completion: @escaping (ClientRuntime.SdkResult<CreateDetectorVersionOutputResponse, CreateDetectorVersionOutputError>) -> Void)

createModel(input:completion:)

Creates a model using the specified model type.

public func createModel(input: CreateModelInput, completion: @escaping (ClientRuntime.SdkResult<CreateModelOutputResponse, CreateModelOutputError>) -> Void)

createModelVersion(input:completion:)

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

public func createModelVersion(input: CreateModelVersionInput, completion: @escaping (ClientRuntime.SdkResult<CreateModelVersionOutputResponse, CreateModelVersionOutputError>) -> Void)

createRule(input:completion:)

Creates a rule for use with the specified detector.

public func createRule(input: CreateRuleInput, completion: @escaping (ClientRuntime.SdkResult<CreateRuleOutputResponse, CreateRuleOutputError>) -> Void)

createVariable(input:completion:)

Creates a variable.

public func createVariable(input: CreateVariableInput, completion: @escaping (ClientRuntime.SdkResult<CreateVariableOutputResponse, CreateVariableOutputError>) -> Void)

deleteBatchPredictionJob(input:completion:)

Deletes a batch prediction job.

public func deleteBatchPredictionJob(input: DeleteBatchPredictionJobInput, completion: @escaping (ClientRuntime.SdkResult<DeleteBatchPredictionJobOutputResponse, DeleteBatchPredictionJobOutputError>) -> Void)

deleteDetector(input:completion:)

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.

public func deleteDetector(input: DeleteDetectorInput, completion: @escaping (ClientRuntime.SdkResult<DeleteDetectorOutputResponse, DeleteDetectorOutputError>) -> Void)

deleteDetectorVersion(input:completion:)

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.

public func deleteDetectorVersion(input: DeleteDetectorVersionInput, completion: @escaping (ClientRuntime.SdkResult<DeleteDetectorVersionOutputResponse, DeleteDetectorVersionOutputError>) -> Void)

deleteEntityType(input:completion:)

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.

public func deleteEntityType(input: DeleteEntityTypeInput, completion: @escaping (ClientRuntime.SdkResult<DeleteEntityTypeOutputResponse, DeleteEntityTypeOutputError>) -> Void)

deleteEvent(input:completion:)

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.

public func deleteEvent(input: DeleteEventInput, completion: @escaping (ClientRuntime.SdkResult<DeleteEventOutputResponse, DeleteEventOutputError>) -> Void)

deleteEventType(input:completion:)

Deletes an event type. You cannot delete an event type that is used in a detector or a model. 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.

public func deleteEventType(input: DeleteEventTypeInput, completion: @escaping (ClientRuntime.SdkResult<DeleteEventTypeOutputResponse, DeleteEventTypeOutputError>) -> Void)

deleteExternalModel(input:completion:)

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.

public func deleteExternalModel(input: DeleteExternalModelInput, completion: @escaping (ClientRuntime.SdkResult<DeleteExternalModelOutputResponse, DeleteExternalModelOutputError>) -> Void)

deleteLabel(input:completion:)

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.

public func deleteLabel(input: DeleteLabelInput, completion: @escaping (ClientRuntime.SdkResult<DeleteLabelOutputResponse, DeleteLabelOutputError>) -> Void)

deleteModel(input:completion:)

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.

public func deleteModel(input: DeleteModelInput, completion: @escaping (ClientRuntime.SdkResult<DeleteModelOutputResponse, DeleteModelOutputError>) -> Void)

deleteModelVersion(input:completion:)

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.

public func deleteModelVersion(input: DeleteModelVersionInput, completion: @escaping (ClientRuntime.SdkResult<DeleteModelVersionOutputResponse, DeleteModelVersionOutputError>) -> Void)

deleteOutcome(input:completion:)

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.

public func deleteOutcome(input: DeleteOutcomeInput, completion: @escaping (ClientRuntime.SdkResult<DeleteOutcomeOutputResponse, DeleteOutcomeOutputError>) -> Void)

deleteRule(input:completion:)

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.

public func deleteRule(input: DeleteRuleInput, completion: @escaping (ClientRuntime.SdkResult<DeleteRuleOutputResponse, DeleteRuleOutputError>) -> Void)

deleteVariable(input:completion:)

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.

public func deleteVariable(input: DeleteVariableInput, completion: @escaping (ClientRuntime.SdkResult<DeleteVariableOutputResponse, DeleteVariableOutputError>) -> Void)

describeDetector(input:completion:)

Gets all versions for a specified detector.

public func describeDetector(input: DescribeDetectorInput, completion: @escaping (ClientRuntime.SdkResult<DescribeDetectorOutputResponse, DescribeDetectorOutputError>) -> Void)

describeModelVersions(input:completion:)

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.

public func describeModelVersions(input: DescribeModelVersionsInput, completion: @escaping (ClientRuntime.SdkResult<DescribeModelVersionsOutputResponse, DescribeModelVersionsOutputError>) -> Void)

getBatchPredictionJobs(input:completion:)

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.

public func getBatchPredictionJobs(input: GetBatchPredictionJobsInput, completion: @escaping (ClientRuntime.SdkResult<GetBatchPredictionJobsOutputResponse, GetBatchPredictionJobsOutputError>) -> Void)

getDetectorVersion(input:completion:)

Gets a particular detector version.

public func getDetectorVersion(input: GetDetectorVersionInput, completion: @escaping (ClientRuntime.SdkResult<GetDetectorVersionOutputResponse, GetDetectorVersionOutputError>) -> Void)

getDetectors(input:completion:)

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.

public func getDetectors(input: GetDetectorsInput, completion: @escaping (ClientRuntime.SdkResult<GetDetectorsOutputResponse, GetDetectorsOutputError>) -> Void)

getEntityTypes(input:completion:)

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.

public func getEntityTypes(input: GetEntityTypesInput, completion: @escaping (ClientRuntime.SdkResult<GetEntityTypesOutputResponse, GetEntityTypesOutputError>) -> Void)

getEventPrediction(input:completion:)

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

public func getEventPrediction(input: GetEventPredictionInput, completion: @escaping (ClientRuntime.SdkResult<GetEventPredictionOutputResponse, GetEventPredictionOutputError>) -> Void)

getEventTypes(input:completion:)

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.

public func getEventTypes(input: GetEventTypesInput, completion: @escaping (ClientRuntime.SdkResult<GetEventTypesOutputResponse, GetEventTypesOutputError>) -> Void)

getExternalModels(input:completion:)

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.

public func getExternalModels(input: GetExternalModelsInput, completion: @escaping (ClientRuntime.SdkResult<GetExternalModelsOutputResponse, GetExternalModelsOutputError>) -> Void)

getKMSEncryptionKey(input:completion:)

Gets the encryption key if a Key Management Service (KMS) customer master key (CMK) has been specified to be used to encrypt content in Amazon Fraud Detector.

public func getKMSEncryptionKey(input: GetKMSEncryptionKeyInput, completion: @escaping (ClientRuntime.SdkResult<GetKMSEncryptionKeyOutputResponse, GetKMSEncryptionKeyOutputError>) -> Void)

getLabels(input:completion:)

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.

public func getLabels(input: GetLabelsInput, completion: @escaping (ClientRuntime.SdkResult<GetLabelsOutputResponse, GetLabelsOutputError>) -> Void)

getModelVersion(input:completion:)

Gets the details of the specified model version.

public func getModelVersion(input: GetModelVersionInput, completion: @escaping (ClientRuntime.SdkResult<GetModelVersionOutputResponse, GetModelVersionOutputError>) -> Void)

getModels(input:completion:)

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.

public func getModels(input: GetModelsInput, completion: @escaping (ClientRuntime.SdkResult<GetModelsOutputResponse, GetModelsOutputError>) -> Void)

getOutcomes(input:completion:)

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.

public func getOutcomes(input: GetOutcomesInput, completion: @escaping (ClientRuntime.SdkResult<GetOutcomesOutputResponse, GetOutcomesOutputError>) -> Void)

getRules(input:completion:)

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.

public func getRules(input: GetRulesInput, completion: @escaping (ClientRuntime.SdkResult<GetRulesOutputResponse, GetRulesOutputError>) -> Void)

getVariables(input:completion:)

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.

public func getVariables(input: GetVariablesInput, completion: @escaping (ClientRuntime.SdkResult<GetVariablesOutputResponse, GetVariablesOutputError>) -> Void)

listTagsForResource(input:completion:)

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.

public func listTagsForResource(input: ListTagsForResourceInput, completion: @escaping (ClientRuntime.SdkResult<ListTagsForResourceOutputResponse, ListTagsForResourceOutputError>) -> Void)

putDetector(input:completion:)

Creates or updates a detector.

public func putDetector(input: PutDetectorInput, completion: @escaping (ClientRuntime.SdkResult<PutDetectorOutputResponse, PutDetectorOutputError>) -> Void)

putEntityType(input:completion:)

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.

public func putEntityType(input: PutEntityTypeInput, completion: @escaping (ClientRuntime.SdkResult<PutEntityTypeOutputResponse, PutEntityTypeOutputError>) -> Void)

putEventType(input:completion:)

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.

public func putEventType(input: PutEventTypeInput, completion: @escaping (ClientRuntime.SdkResult<PutEventTypeOutputResponse, PutEventTypeOutputError>) -> Void)

putExternalModel(input:completion:)

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.

public func putExternalModel(input: PutExternalModelInput, completion: @escaping (ClientRuntime.SdkResult<PutExternalModelOutputResponse, PutExternalModelOutputError>) -> Void)

putKMSEncryptionKey(input:completion:)

Specifies the Key Management Service (KMS) customer master key (CMK) to be used to encrypt content in Amazon Fraud Detector.

public func putKMSEncryptionKey(input: PutKMSEncryptionKeyInput, completion: @escaping (ClientRuntime.SdkResult<PutKMSEncryptionKeyOutputResponse, PutKMSEncryptionKeyOutputError>) -> Void)

putLabel(input:completion:)

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.

public func putLabel(input: PutLabelInput, completion: @escaping (ClientRuntime.SdkResult<PutLabelOutputResponse, PutLabelOutputError>) -> Void)

putOutcome(input:completion:)

Creates or updates an outcome.

public func putOutcome(input: PutOutcomeInput, completion: @escaping (ClientRuntime.SdkResult<PutOutcomeOutputResponse, PutOutcomeOutputError>) -> Void)

tagResource(input:completion:)

Assigns tags to a resource.

public func tagResource(input: TagResourceInput, completion: @escaping (ClientRuntime.SdkResult<TagResourceOutputResponse, TagResourceOutputError>) -> Void)

untagResource(input:completion:)

Removes tags from a resource.

public func untagResource(input: UntagResourceInput, completion: @escaping (ClientRuntime.SdkResult<UntagResourceOutputResponse, UntagResourceOutputError>) -> Void)

updateDetectorVersion(input:completion:)

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.

public func updateDetectorVersion(input: UpdateDetectorVersionInput, completion: @escaping (ClientRuntime.SdkResult<UpdateDetectorVersionOutputResponse, UpdateDetectorVersionOutputError>) -> Void)

updateDetectorVersionMetadata(input:completion:)

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

public func updateDetectorVersionMetadata(input: UpdateDetectorVersionMetadataInput, completion: @escaping (ClientRuntime.SdkResult<UpdateDetectorVersionMetadataOutputResponse, UpdateDetectorVersionMetadataOutputError>) -> Void)

updateDetectorVersionStatus(input:completion:)

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.

public func updateDetectorVersionStatus(input: UpdateDetectorVersionStatusInput, completion: @escaping (ClientRuntime.SdkResult<UpdateDetectorVersionStatusOutputResponse, UpdateDetectorVersionStatusOutputError>) -> Void)

updateModel(input:completion:)

Updates a model. You can update the description attribute using this action.

public func updateModel(input: UpdateModelInput, completion: @escaping (ClientRuntime.SdkResult<UpdateModelOutputResponse, UpdateModelOutputError>) -> Void)

updateModelVersion(input:completion:)

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.

public func updateModelVersion(input: UpdateModelVersionInput, completion: @escaping (ClientRuntime.SdkResult<UpdateModelVersionOutputResponse, UpdateModelVersionOutputError>) -> Void)

updateModelVersionStatus(input:completion:)

Updates the status of a model version. You can perform the following status updates:

public func updateModelVersionStatus(input: UpdateModelVersionStatusInput, completion: @escaping (ClientRuntime.SdkResult<UpdateModelVersionStatusOutputResponse, UpdateModelVersionStatusOutputError>) -> Void)

updateRuleMetadata(input:completion:)

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

public func updateRuleMetadata(input: UpdateRuleMetadataInput, completion: @escaping (ClientRuntime.SdkResult<UpdateRuleMetadataOutputResponse, UpdateRuleMetadataOutputError>) -> Void)

updateRuleVersion(input:completion:)

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

public func updateRuleVersion(input: UpdateRuleVersionInput, completion: @escaping (ClientRuntime.SdkResult<UpdateRuleVersionOutputResponse, UpdateRuleVersionOutputError>) -> Void)

updateVariable(input:completion:)

Updates a variable.

public func updateVariable(input: UpdateVariableInput, completion: @escaping (ClientRuntime.SdkResult<UpdateVariableOutputResponse, UpdateVariableOutputError>) -> Void)