frauddetector

package
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 7 Imported by: 20

Documentation

Overview

Package frauddetector provides the client and types for making API requests to Amazon Fraud Detector.

This is the Amazon Fraud Detector API Reference. This guide is for developers who need detailed information about Amazon Fraud Detector API actions, data types, and errors. For more information about Amazon Fraud Detector features, see the Amazon Fraud Detector User Guide (https://docs.aws.amazon.com/frauddetector/latest/ug/).

See https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15 for more information on this service.

See frauddetector package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/frauddetector/

Using the Client

To use Amazon Fraud Detector with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Amazon Fraud Detector client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/frauddetector/#New

Index

Constants

View Source
const (
	ServiceName = "Amazon Fraud Detector" // Service's name
	ServiceID   = "FraudDetector"         // Service's identifier
	EndpointsID = "frauddetector"         // Service's Endpoint identifier
)
View Source
const (

	// ErrCodeConflictException for service response error code
	// "ConflictException".
	//
	// An exception indicating there was a conflict during a delete operation. The
	// following delete operations can cause a conflict exception:
	//
	//    * DeleteDetector: A conflict exception will occur if the detector has
	//    associated Rules or DetectorVersions. You can only delete a detector if
	//    it has no Rules or DetectorVersions.
	//
	//    * DeleteDetectorVersion: A conflict exception will occur if the DetectorVersion
	//    status is ACTIVE.
	//
	//    * DeleteRuleVersion: A conflict exception will occur if the RuleVersion
	//    is in use by an associated ACTIVE or INACTIVE DetectorVersion.
	ErrCodeConflictException = "ConflictException"

	// ErrCodeInternalServerException for service response error code
	// "InternalServerException".
	//
	// An exception indicating an internal server error.
	ErrCodeInternalServerException = "InternalServerException"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// An exception indicating the specified resource was not found.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"

	// ErrCodeThrottlingException for service response error code
	// "ThrottlingException".
	//
	// An exception indicating a throttling error.
	ErrCodeThrottlingException = "ThrottlingException"

	// ErrCodeValidationException for service response error code
	// "ValidationException".
	//
	// An exception indicating a specified value is not allowed.
	ErrCodeValidationException = "ValidationException"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchCreateVariableError

type BatchCreateVariableError struct {

	// The error code.
	Code *int64 `locationName:"code" type:"integer"`

	// The error message.
	Message *string `locationName:"message" type:"string"`

	// The name.
	Name *string `locationName:"name" type:"string"`
	// contains filtered or unexported fields
}

Provides the error of the batch create variable API.

func (BatchCreateVariableError) String

func (s BatchCreateVariableError) String() string

String returns the string representation

type BatchCreateVariableInput

type BatchCreateVariableInput struct {

	// The list of variables for the batch create variable request.
	//
	// VariableEntries is a required field
	VariableEntries []VariableEntry `locationName:"variableEntries" min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (BatchCreateVariableInput) String

func (s BatchCreateVariableInput) String() string

String returns the string representation

func (*BatchCreateVariableInput) Validate

func (s *BatchCreateVariableInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BatchCreateVariableOutput

type BatchCreateVariableOutput struct {

	// Provides the errors for the BatchCreateVariable request.
	Errors []BatchCreateVariableError `locationName:"errors" type:"list"`
	// contains filtered or unexported fields
}

func (BatchCreateVariableOutput) String

func (s BatchCreateVariableOutput) String() string

String returns the string representation

type BatchCreateVariableRequest

type BatchCreateVariableRequest struct {
	*aws.Request
	Input *BatchCreateVariableInput
	Copy  func(*BatchCreateVariableInput) BatchCreateVariableRequest
}

BatchCreateVariableRequest is the request type for the BatchCreateVariable API operation.

func (BatchCreateVariableRequest) Send

Send marshals and sends the BatchCreateVariable API request.

type BatchCreateVariableResponse

type BatchCreateVariableResponse struct {
	*BatchCreateVariableOutput
	// contains filtered or unexported fields
}

BatchCreateVariableResponse is the response type for the BatchCreateVariable API operation.

func (*BatchCreateVariableResponse) SDKResponseMetdata

func (r *BatchCreateVariableResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the BatchCreateVariable request.

type BatchGetVariableError

type BatchGetVariableError struct {

	// The error code.
	Code *int64 `locationName:"code" type:"integer"`

	// The error message.
	Message *string `locationName:"message" type:"string"`

	// The error name.
	Name *string `locationName:"name" type:"string"`
	// contains filtered or unexported fields
}

Provides the error of the batch get variable API.

func (BatchGetVariableError) String

func (s BatchGetVariableError) String() string

String returns the string representation

type BatchGetVariableInput

type BatchGetVariableInput struct {

	// The list of variable names to get.
	//
	// Names is a required field
	Names []string `locationName:"names" min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (BatchGetVariableInput) String

func (s BatchGetVariableInput) String() string

String returns the string representation

func (*BatchGetVariableInput) Validate

func (s *BatchGetVariableInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BatchGetVariableOutput

type BatchGetVariableOutput struct {

	// The errors from the request.
	Errors []BatchGetVariableError `locationName:"errors" type:"list"`

	// The returned variables.
	Variables []Variable `locationName:"variables" type:"list"`
	// contains filtered or unexported fields
}

func (BatchGetVariableOutput) String

func (s BatchGetVariableOutput) String() string

String returns the string representation

type BatchGetVariableRequest

type BatchGetVariableRequest struct {
	*aws.Request
	Input *BatchGetVariableInput
	Copy  func(*BatchGetVariableInput) BatchGetVariableRequest
}

BatchGetVariableRequest is the request type for the BatchGetVariable API operation.

func (BatchGetVariableRequest) Send

Send marshals and sends the BatchGetVariable API request.

type BatchGetVariableResponse

type BatchGetVariableResponse struct {
	*BatchGetVariableOutput
	// contains filtered or unexported fields
}

BatchGetVariableResponse is the response type for the BatchGetVariable API operation.

func (*BatchGetVariableResponse) SDKResponseMetdata

func (r *BatchGetVariableResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the BatchGetVariable request.

type Client

type Client struct {
	*aws.Client
}

Client provides the API operation methods for making requests to Amazon Fraud Detector. See this package's package overview docs for details on the service.

The client's methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(config aws.Config) *Client

New creates a new instance of the client from the provided Config.

Example:

// Create a client from just a config.
svc := frauddetector.New(myConfig)

func (*Client) BatchCreateVariableRequest

func (c *Client) BatchCreateVariableRequest(input *BatchCreateVariableInput) BatchCreateVariableRequest

BatchCreateVariableRequest returns a request value for making API operation for Amazon Fraud Detector.

Creates a batch of variables.

// Example sending a request using BatchCreateVariableRequest.
req := client.BatchCreateVariableRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/BatchCreateVariable

func (*Client) BatchGetVariableRequest

func (c *Client) BatchGetVariableRequest(input *BatchGetVariableInput) BatchGetVariableRequest

BatchGetVariableRequest returns a request value for making API operation for Amazon Fraud Detector.

Gets a batch of variables.

// Example sending a request using BatchGetVariableRequest.
req := client.BatchGetVariableRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/BatchGetVariable

func (*Client) CreateDetectorVersionRequest

func (c *Client) CreateDetectorVersionRequest(input *CreateDetectorVersionInput) CreateDetectorVersionRequest

CreateDetectorVersionRequest returns a request value for making API operation for Amazon Fraud Detector.

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

// Example sending a request using CreateDetectorVersionRequest.
req := client.CreateDetectorVersionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateDetectorVersion

func (*Client) CreateModelVersionRequest

func (c *Client) CreateModelVersionRequest(input *CreateModelVersionInput) CreateModelVersionRequest

CreateModelVersionRequest returns a request value for making API operation for Amazon Fraud Detector.

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

// Example sending a request using CreateModelVersionRequest.
req := client.CreateModelVersionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateModelVersion

func (*Client) CreateRuleRequest

func (c *Client) CreateRuleRequest(input *CreateRuleInput) CreateRuleRequest

CreateRuleRequest returns a request value for making API operation for Amazon Fraud Detector.

Creates a rule for use with the specified detector.

// Example sending a request using CreateRuleRequest.
req := client.CreateRuleRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateRule

func (*Client) CreateVariableRequest

func (c *Client) CreateVariableRequest(input *CreateVariableInput) CreateVariableRequest

CreateVariableRequest returns a request value for making API operation for Amazon Fraud Detector.

Creates a variable.

// Example sending a request using CreateVariableRequest.
req := client.CreateVariableRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateVariable

func (*Client) DeleteDetectorRequest added in v0.21.0

func (c *Client) DeleteDetectorRequest(input *DeleteDetectorInput) DeleteDetectorRequest

DeleteDetectorRequest returns a request value for making API operation for Amazon Fraud Detector.

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

// Example sending a request using DeleteDetectorRequest.
req := client.DeleteDetectorRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetector

func (*Client) DeleteDetectorVersionRequest

func (c *Client) DeleteDetectorVersionRequest(input *DeleteDetectorVersionInput) DeleteDetectorVersionRequest

DeleteDetectorVersionRequest returns a request value for making API operation for Amazon Fraud Detector.

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

// Example sending a request using DeleteDetectorVersionRequest.
req := client.DeleteDetectorVersionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetectorVersion

func (*Client) DeleteEventRequest

func (c *Client) DeleteEventRequest(input *DeleteEventInput) DeleteEventRequest

DeleteEventRequest returns a request value for making API operation for Amazon Fraud Detector.

Deletes the specified event.

// Example sending a request using DeleteEventRequest.
req := client.DeleteEventRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteEvent

func (*Client) DeleteRuleVersionRequest added in v0.21.0

func (c *Client) DeleteRuleVersionRequest(input *DeleteRuleVersionInput) DeleteRuleVersionRequest

DeleteRuleVersionRequest returns a request value for making API operation for Amazon Fraud Detector.

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

// Example sending a request using DeleteRuleVersionRequest.
req := client.DeleteRuleVersionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleVersion

func (*Client) DescribeDetectorRequest

func (c *Client) DescribeDetectorRequest(input *DescribeDetectorInput) DescribeDetectorRequest

DescribeDetectorRequest returns a request value for making API operation for Amazon Fraud Detector.

Gets all versions for a specified detector.

// Example sending a request using DescribeDetectorRequest.
req := client.DescribeDetectorRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DescribeDetector

func (*Client) DescribeModelVersionsRequest

func (c *Client) DescribeModelVersionsRequest(input *DescribeModelVersionsInput) DescribeModelVersionsRequest

DescribeModelVersionsRequest returns a request value for making API operation for Amazon Fraud Detector.

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.

// Example sending a request using DescribeModelVersionsRequest.
req := client.DescribeModelVersionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DescribeModelVersions

func (*Client) GetDetectorVersionRequest

func (c *Client) GetDetectorVersionRequest(input *GetDetectorVersionInput) GetDetectorVersionRequest

GetDetectorVersionRequest returns a request value for making API operation for Amazon Fraud Detector.

Gets a particular detector version.

// Example sending a request using GetDetectorVersionRequest.
req := client.GetDetectorVersionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDetectorVersion

func (*Client) GetDetectorsRequest

func (c *Client) GetDetectorsRequest(input *GetDetectorsInput) GetDetectorsRequest

GetDetectorsRequest returns a request value for making API operation for Amazon Fraud Detector.

Gets all of detectors. This is a paginated API. If you provide a null maxSizePerPage, this actions retrieves a maximum of 10 records per page. If you provide a maxSizePerPage, 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.

// Example sending a request using GetDetectorsRequest.
req := client.GetDetectorsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDetectors

func (*Client) GetExternalModelsRequest

func (c *Client) GetExternalModelsRequest(input *GetExternalModelsInput) GetExternalModelsRequest

GetExternalModelsRequest returns a request value for making API operation for Amazon Fraud Detector.

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 maxSizePerPage, this actions retrieves a maximum of 10 records per page. If you provide a maxSizePerPage, 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.

// Example sending a request using GetExternalModelsRequest.
req := client.GetExternalModelsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetExternalModels

func (*Client) GetModelVersionRequest

func (c *Client) GetModelVersionRequest(input *GetModelVersionInput) GetModelVersionRequest

GetModelVersionRequest returns a request value for making API operation for Amazon Fraud Detector.

Gets a model version.

// Example sending a request using GetModelVersionRequest.
req := client.GetModelVersionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModelVersion

func (*Client) GetModelsRequest

func (c *Client) GetModelsRequest(input *GetModelsInput) GetModelsRequest

GetModelsRequest returns a request value for making API operation for Amazon Fraud Detector.

Gets all of the models for the AWS account, or the specified model type, or gets a single model for the specified model type, model ID combination.

// Example sending a request using GetModelsRequest.
req := client.GetModelsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModels

func (*Client) GetOutcomesRequest

func (c *Client) GetOutcomesRequest(input *GetOutcomesInput) GetOutcomesRequest

GetOutcomesRequest returns a request value for making API operation for Amazon Fraud Detector.

Gets one or more outcomes. This is a paginated API. If you provide a null maxSizePerPage, this actions retrieves a maximum of 10 records per page. If you provide a maxSizePerPage, 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.

// Example sending a request using GetOutcomesRequest.
req := client.GetOutcomesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetOutcomes

func (*Client) GetPredictionRequest

func (c *Client) GetPredictionRequest(input *GetPredictionInput) GetPredictionRequest

GetPredictionRequest returns a request value for making API operation for Amazon Fraud Detector.

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

// Example sending a request using GetPredictionRequest.
req := client.GetPredictionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetPrediction

func (*Client) GetRulesRequest

func (c *Client) GetRulesRequest(input *GetRulesInput) GetRulesRequest

GetRulesRequest returns a request value for making API operation for Amazon Fraud Detector.

Gets all rules available for the specified detector.

// Example sending a request using GetRulesRequest.
req := client.GetRulesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetRules

func (*Client) GetVariablesRequest

func (c *Client) GetVariablesRequest(input *GetVariablesInput) GetVariablesRequest

GetVariablesRequest returns a request value for making API operation for Amazon Fraud Detector.

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.

// Example sending a request using GetVariablesRequest.
req := client.GetVariablesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetVariables

func (*Client) PutDetectorRequest

func (c *Client) PutDetectorRequest(input *PutDetectorInput) PutDetectorRequest

PutDetectorRequest returns a request value for making API operation for Amazon Fraud Detector.

Creates or updates a detector.

// Example sending a request using PutDetectorRequest.
req := client.PutDetectorRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutDetector

func (*Client) PutExternalModelRequest

func (c *Client) PutExternalModelRequest(input *PutExternalModelInput) PutExternalModelRequest

PutExternalModelRequest returns a request value for making API operation for Amazon Fraud Detector.

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.

// Example sending a request using PutExternalModelRequest.
req := client.PutExternalModelRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutExternalModel

func (*Client) PutModelRequest

func (c *Client) PutModelRequest(input *PutModelInput) PutModelRequest

PutModelRequest returns a request value for making API operation for Amazon Fraud Detector.

Creates or updates a model.

// Example sending a request using PutModelRequest.
req := client.PutModelRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutModel

func (*Client) PutOutcomeRequest

func (c *Client) PutOutcomeRequest(input *PutOutcomeInput) PutOutcomeRequest

PutOutcomeRequest returns a request value for making API operation for Amazon Fraud Detector.

Creates or updates an outcome.

// Example sending a request using PutOutcomeRequest.
req := client.PutOutcomeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutOutcome

func (*Client) UpdateDetectorVersionMetadataRequest

func (c *Client) UpdateDetectorVersionMetadataRequest(input *UpdateDetectorVersionMetadataInput) UpdateDetectorVersionMetadataRequest

UpdateDetectorVersionMetadataRequest returns a request value for making API operation for Amazon Fraud Detector.

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

// Example sending a request using UpdateDetectorVersionMetadataRequest.
req := client.UpdateDetectorVersionMetadataRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersionMetadata

func (*Client) UpdateDetectorVersionRequest

func (c *Client) UpdateDetectorVersionRequest(input *UpdateDetectorVersionInput) UpdateDetectorVersionRequest

UpdateDetectorVersionRequest returns a request value for making API operation for Amazon Fraud Detector.

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

// Example sending a request using UpdateDetectorVersionRequest.
req := client.UpdateDetectorVersionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersion

func (*Client) UpdateDetectorVersionStatusRequest

func (c *Client) UpdateDetectorVersionStatusRequest(input *UpdateDetectorVersionStatusInput) UpdateDetectorVersionStatusRequest

UpdateDetectorVersionStatusRequest returns a request value for making API operation for Amazon Fraud Detector.

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.

// Example sending a request using UpdateDetectorVersionStatusRequest.
req := client.UpdateDetectorVersionStatusRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersionStatus

func (*Client) UpdateModelVersionRequest

func (c *Client) UpdateModelVersionRequest(input *UpdateModelVersionInput) UpdateModelVersionRequest

UpdateModelVersionRequest returns a request value for making API operation for Amazon Fraud Detector.

Updates a model version. You can update the description and status attributes using this action. You can perform the following status updates:

Change the TRAINING_COMPLETE status to ACTIVE

Change ACTIVE back to TRAINING_COMPLETE

// Example sending a request using UpdateModelVersionRequest.
req := client.UpdateModelVersionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelVersion

func (*Client) UpdateRuleMetadataRequest

func (c *Client) UpdateRuleMetadataRequest(input *UpdateRuleMetadataInput) UpdateRuleMetadataRequest

UpdateRuleMetadataRequest returns a request value for making API operation for Amazon Fraud Detector.

Updates a rule's metadata.

// Example sending a request using UpdateRuleMetadataRequest.
req := client.UpdateRuleMetadataRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateRuleMetadata

func (*Client) UpdateRuleVersionRequest

func (c *Client) UpdateRuleVersionRequest(input *UpdateRuleVersionInput) UpdateRuleVersionRequest

UpdateRuleVersionRequest returns a request value for making API operation for Amazon Fraud Detector.

Updates a rule version resulting in a new rule version.

// Example sending a request using UpdateRuleVersionRequest.
req := client.UpdateRuleVersionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateRuleVersion

func (*Client) UpdateVariableRequest

func (c *Client) UpdateVariableRequest(input *UpdateVariableInput) UpdateVariableRequest

UpdateVariableRequest returns a request value for making API operation for Amazon Fraud Detector.

Updates a variable.

// Example sending a request using UpdateVariableRequest.
req := client.UpdateVariableRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateVariable

type CreateDetectorVersionInput

type CreateDetectorVersionInput struct {

	// The description of the detector version.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The ID of the detector under which you want to create a new version.
	//
	// DetectorId is a required field
	DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"`

	// The Amazon Sagemaker model endpoints to include in the detector version.
	ExternalModelEndpoints []string `locationName:"externalModelEndpoints" type:"list"`

	// The model versions to include in the detector version.
	ModelVersions []ModelVersion `locationName:"modelVersions" type:"list"`

	// 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.
	RuleExecutionMode RuleExecutionMode `locationName:"ruleExecutionMode" type:"string" enum:"true"`

	// The rules to include in the detector version.
	//
	// Rules is a required field
	Rules []Rule `locationName:"rules" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (CreateDetectorVersionInput) String

String returns the string representation

func (*CreateDetectorVersionInput) Validate

func (s *CreateDetectorVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateDetectorVersionOutput

type CreateDetectorVersionOutput struct {

	// The ID for the created version's parent detector.
	DetectorId *string `locationName:"detectorId" min:"1" type:"string"`

	// The ID for the created detector.
	DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string"`

	// The status of the detector version.
	Status DetectorVersionStatus `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (CreateDetectorVersionOutput) String

String returns the string representation

type CreateDetectorVersionRequest

type CreateDetectorVersionRequest struct {
	*aws.Request
	Input *CreateDetectorVersionInput
	Copy  func(*CreateDetectorVersionInput) CreateDetectorVersionRequest
}

CreateDetectorVersionRequest is the request type for the CreateDetectorVersion API operation.

func (CreateDetectorVersionRequest) Send

Send marshals and sends the CreateDetectorVersion API request.

type CreateDetectorVersionResponse

type CreateDetectorVersionResponse struct {
	*CreateDetectorVersionOutput
	// contains filtered or unexported fields
}

CreateDetectorVersionResponse is the response type for the CreateDetectorVersion API operation.

func (*CreateDetectorVersionResponse) SDKResponseMetdata

func (r *CreateDetectorVersionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateDetectorVersion request.

type CreateModelVersionInput

type CreateModelVersionInput struct {

	// The model version description.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The model ID.
	//
	// ModelId is a required field
	ModelId *string `locationName:"modelId" min:"1" type:"string" required:"true"`

	// The model type.
	//
	// ModelType is a required field
	ModelType ModelTypeEnum `locationName:"modelType" type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

func (CreateModelVersionInput) String

func (s CreateModelVersionInput) String() string

String returns the string representation

func (*CreateModelVersionInput) Validate

func (s *CreateModelVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateModelVersionOutput

type CreateModelVersionOutput struct {

	// The model ID.
	ModelId *string `locationName:"modelId" min:"1" type:"string"`

	// The model type.
	ModelType ModelTypeEnum `locationName:"modelType" type:"string" enum:"true"`

	// The version of the model.
	ModelVersionNumber *string `locationName:"modelVersionNumber" min:"1" type:"string"`

	// The model version status.
	Status *string `locationName:"status" type:"string"`
	// contains filtered or unexported fields
}

func (CreateModelVersionOutput) String

func (s CreateModelVersionOutput) String() string

String returns the string representation

type CreateModelVersionRequest

type CreateModelVersionRequest struct {
	*aws.Request
	Input *CreateModelVersionInput
	Copy  func(*CreateModelVersionInput) CreateModelVersionRequest
}

CreateModelVersionRequest is the request type for the CreateModelVersion API operation.

func (CreateModelVersionRequest) Send

Send marshals and sends the CreateModelVersion API request.

type CreateModelVersionResponse

type CreateModelVersionResponse struct {
	*CreateModelVersionOutput
	// contains filtered or unexported fields
}

CreateModelVersionResponse is the response type for the CreateModelVersion API operation.

func (*CreateModelVersionResponse) SDKResponseMetdata

func (r *CreateModelVersionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateModelVersion request.

type CreateRuleInput

type CreateRuleInput struct {

	// The rule description.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The detector ID for the rule's parent detector.
	//
	// DetectorId is a required field
	DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"`

	// The rule expression.
	//
	// Expression is a required field
	Expression *string `locationName:"expression" min:"1" type:"string" required:"true"`

	// The language of the rule.
	//
	// Language is a required field
	Language Language `locationName:"language" type:"string" required:"true" enum:"true"`

	// The outcome or outcomes returned when the rule expression matches.
	//
	// Outcomes is a required field
	Outcomes []string `locationName:"outcomes" min:"1" type:"list" required:"true"`

	// The rule ID.
	//
	// RuleId is a required field
	RuleId *string `locationName:"ruleId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateRuleInput) String

func (s CreateRuleInput) String() string

String returns the string representation

func (*CreateRuleInput) Validate

func (s *CreateRuleInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateRuleOutput

type CreateRuleOutput struct {

	// The created rule.
	Rule *Rule `locationName:"rule" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateRuleOutput) String

func (s CreateRuleOutput) String() string

String returns the string representation

type CreateRuleRequest

type CreateRuleRequest struct {
	*aws.Request
	Input *CreateRuleInput
	Copy  func(*CreateRuleInput) CreateRuleRequest
}

CreateRuleRequest is the request type for the CreateRule API operation.

func (CreateRuleRequest) Send

Send marshals and sends the CreateRule API request.

type CreateRuleResponse

type CreateRuleResponse struct {
	*CreateRuleOutput
	// contains filtered or unexported fields
}

CreateRuleResponse is the response type for the CreateRule API operation.

func (*CreateRuleResponse) SDKResponseMetdata

func (r *CreateRuleResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateRule request.

type CreateVariableInput

type CreateVariableInput struct {

	// The source of the data.
	//
	// DataSource is a required field
	DataSource DataSource `locationName:"dataSource" type:"string" required:"true" enum:"true"`

	// The data type.
	//
	// DataType is a required field
	DataType DataType `locationName:"dataType" type:"string" required:"true" enum:"true"`

	// The default value for the variable when no value is received.
	//
	// DefaultValue is a required field
	DefaultValue *string `locationName:"defaultValue" type:"string" required:"true"`

	// The description.
	Description *string `locationName:"description" type:"string"`

	// The name of the variable.
	//
	// Name is a required field
	Name *string `locationName:"name" type:"string" required:"true"`

	// The variable type.
	VariableType *string `locationName:"variableType" type:"string"`
	// contains filtered or unexported fields
}

func (CreateVariableInput) String

func (s CreateVariableInput) String() string

String returns the string representation

func (*CreateVariableInput) Validate

func (s *CreateVariableInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateVariableOutput

type CreateVariableOutput struct {
	// contains filtered or unexported fields
}

func (CreateVariableOutput) String

func (s CreateVariableOutput) String() string

String returns the string representation

type CreateVariableRequest

type CreateVariableRequest struct {
	*aws.Request
	Input *CreateVariableInput
	Copy  func(*CreateVariableInput) CreateVariableRequest
}

CreateVariableRequest is the request type for the CreateVariable API operation.

func (CreateVariableRequest) Send

Send marshals and sends the CreateVariable API request.

type CreateVariableResponse

type CreateVariableResponse struct {
	*CreateVariableOutput
	// contains filtered or unexported fields
}

CreateVariableResponse is the response type for the CreateVariable API operation.

func (*CreateVariableResponse) SDKResponseMetdata

func (r *CreateVariableResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateVariable request.

type DataSource

type DataSource string
const (
	DataSourceEvent              DataSource = "EVENT"
	DataSourceModelScore         DataSource = "MODEL_SCORE"
	DataSourceExternalModelScore DataSource = "EXTERNAL_MODEL_SCORE"
)

Enum values for DataSource

func (DataSource) MarshalValue

func (enum DataSource) MarshalValue() (string, error)

func (DataSource) MarshalValueBuf

func (enum DataSource) MarshalValueBuf(b []byte) ([]byte, error)

type DataType

type DataType string
const (
	DataTypeString  DataType = "STRING"
	DataTypeInteger DataType = "INTEGER"
	DataTypeFloat   DataType = "FLOAT"
	DataTypeBoolean DataType = "BOOLEAN"
)

Enum values for DataType

func (DataType) MarshalValue

func (enum DataType) MarshalValue() (string, error)

func (DataType) MarshalValueBuf

func (enum DataType) MarshalValueBuf(b []byte) ([]byte, error)

type DeleteDetectorInput added in v0.21.0

type DeleteDetectorInput struct {

	// The ID of the detector to delete.
	//
	// DetectorId is a required field
	DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteDetectorInput) String added in v0.21.0

func (s DeleteDetectorInput) String() string

String returns the string representation

func (*DeleteDetectorInput) Validate added in v0.21.0

func (s *DeleteDetectorInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteDetectorOutput added in v0.21.0

type DeleteDetectorOutput struct {
	// contains filtered or unexported fields
}

func (DeleteDetectorOutput) String added in v0.21.0

func (s DeleteDetectorOutput) String() string

String returns the string representation

type DeleteDetectorRequest added in v0.21.0

type DeleteDetectorRequest struct {
	*aws.Request
	Input *DeleteDetectorInput
	Copy  func(*DeleteDetectorInput) DeleteDetectorRequest
}

DeleteDetectorRequest is the request type for the DeleteDetector API operation.

func (DeleteDetectorRequest) Send added in v0.21.0

Send marshals and sends the DeleteDetector API request.

type DeleteDetectorResponse added in v0.21.0

type DeleteDetectorResponse struct {
	*DeleteDetectorOutput
	// contains filtered or unexported fields
}

DeleteDetectorResponse is the response type for the DeleteDetector API operation.

func (*DeleteDetectorResponse) SDKResponseMetdata added in v0.21.0

func (r *DeleteDetectorResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteDetector request.

type DeleteDetectorVersionInput

type DeleteDetectorVersionInput struct {

	// The ID of the parent detector for the detector version to delete.
	//
	// DetectorId is a required field
	DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"`

	// The ID of the detector version to delete.
	//
	// DetectorVersionId is a required field
	DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteDetectorVersionInput) String

String returns the string representation

func (*DeleteDetectorVersionInput) Validate

func (s *DeleteDetectorVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteDetectorVersionOutput

type DeleteDetectorVersionOutput struct {
	// contains filtered or unexported fields
}

func (DeleteDetectorVersionOutput) String

String returns the string representation

type DeleteDetectorVersionRequest

type DeleteDetectorVersionRequest struct {
	*aws.Request
	Input *DeleteDetectorVersionInput
	Copy  func(*DeleteDetectorVersionInput) DeleteDetectorVersionRequest
}

DeleteDetectorVersionRequest is the request type for the DeleteDetectorVersion API operation.

func (DeleteDetectorVersionRequest) Send

Send marshals and sends the DeleteDetectorVersion API request.

type DeleteDetectorVersionResponse

type DeleteDetectorVersionResponse struct {
	*DeleteDetectorVersionOutput
	// contains filtered or unexported fields
}

DeleteDetectorVersionResponse is the response type for the DeleteDetectorVersion API operation.

func (*DeleteDetectorVersionResponse) SDKResponseMetdata

func (r *DeleteDetectorVersionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteDetectorVersion request.

type DeleteEventInput

type DeleteEventInput struct {

	// The ID of the event to delete.
	//
	// EventId is a required field
	EventId *string `locationName:"eventId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteEventInput) String

func (s DeleteEventInput) String() string

String returns the string representation

func (*DeleteEventInput) Validate

func (s *DeleteEventInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteEventOutput

type DeleteEventOutput struct {
	// contains filtered or unexported fields
}

func (DeleteEventOutput) String

func (s DeleteEventOutput) String() string

String returns the string representation

type DeleteEventRequest

type DeleteEventRequest struct {
	*aws.Request
	Input *DeleteEventInput
	Copy  func(*DeleteEventInput) DeleteEventRequest
}

DeleteEventRequest is the request type for the DeleteEvent API operation.

func (DeleteEventRequest) Send

Send marshals and sends the DeleteEvent API request.

type DeleteEventResponse

type DeleteEventResponse struct {
	*DeleteEventOutput
	// contains filtered or unexported fields
}

DeleteEventResponse is the response type for the DeleteEvent API operation.

func (*DeleteEventResponse) SDKResponseMetdata

func (r *DeleteEventResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteEvent request.

type DeleteRuleVersionInput added in v0.21.0

type DeleteRuleVersionInput struct {

	// The ID of the detector that includes the rule version to delete.
	//
	// DetectorId is a required field
	DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"`

	// The rule ID of the rule version to delete.
	//
	// RuleId is a required field
	RuleId *string `locationName:"ruleId" min:"1" type:"string" required:"true"`

	// The rule version to delete.
	//
	// RuleVersion is a required field
	RuleVersion *string `locationName:"ruleVersion" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteRuleVersionInput) String added in v0.21.0

func (s DeleteRuleVersionInput) String() string

String returns the string representation

func (*DeleteRuleVersionInput) Validate added in v0.21.0

func (s *DeleteRuleVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteRuleVersionOutput added in v0.21.0

type DeleteRuleVersionOutput struct {
	// contains filtered or unexported fields
}

func (DeleteRuleVersionOutput) String added in v0.21.0

func (s DeleteRuleVersionOutput) String() string

String returns the string representation

type DeleteRuleVersionRequest added in v0.21.0

type DeleteRuleVersionRequest struct {
	*aws.Request
	Input *DeleteRuleVersionInput
	Copy  func(*DeleteRuleVersionInput) DeleteRuleVersionRequest
}

DeleteRuleVersionRequest is the request type for the DeleteRuleVersion API operation.

func (DeleteRuleVersionRequest) Send added in v0.21.0

Send marshals and sends the DeleteRuleVersion API request.

type DeleteRuleVersionResponse added in v0.21.0

type DeleteRuleVersionResponse struct {
	*DeleteRuleVersionOutput
	// contains filtered or unexported fields
}

DeleteRuleVersionResponse is the response type for the DeleteRuleVersion API operation.

func (*DeleteRuleVersionResponse) SDKResponseMetdata added in v0.21.0

func (r *DeleteRuleVersionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteRuleVersion request.

type DescribeDetectorInput

type DescribeDetectorInput struct {

	// The detector ID.
	//
	// DetectorId is a required field
	DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"`

	// The maximum number of results to return for the request.
	MaxResults *int64 `locationName:"maxResults" min:"1000" type:"integer"`

	// The next token from the previous response.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeDetectorInput) String

func (s DescribeDetectorInput) String() string

String returns the string representation

func (*DescribeDetectorInput) Validate

func (s *DescribeDetectorInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeDetectorOutput

type DescribeDetectorOutput struct {

	// The detector ID.
	DetectorId *string `locationName:"detectorId" min:"1" type:"string"`

	// The status and description for each detector version.
	DetectorVersionSummaries []DetectorVersionSummary `locationName:"detectorVersionSummaries" type:"list"`

	// The next token to be used for subsequent requests.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeDetectorOutput) String

func (s DescribeDetectorOutput) String() string

String returns the string representation

type DescribeDetectorRequest

type DescribeDetectorRequest struct {
	*aws.Request
	Input *DescribeDetectorInput
	Copy  func(*DescribeDetectorInput) DescribeDetectorRequest
}

DescribeDetectorRequest is the request type for the DescribeDetector API operation.

func (DescribeDetectorRequest) Send

Send marshals and sends the DescribeDetector API request.

type DescribeDetectorResponse

type DescribeDetectorResponse struct {
	*DescribeDetectorOutput
	// contains filtered or unexported fields
}

DescribeDetectorResponse is the response type for the DescribeDetector API operation.

func (*DescribeDetectorResponse) SDKResponseMetdata

func (r *DescribeDetectorResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeDetector request.

type DescribeModelVersionsInput

type DescribeModelVersionsInput struct {

	// The maximum number of results to return.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// The model ID.
	ModelId *string `locationName:"modelId" min:"1" type:"string"`

	// The model type.
	ModelType ModelTypeEnum `locationName:"modelType" type:"string" enum:"true"`

	// The model version.
	ModelVersionNumber *string `locationName:"modelVersionNumber" min:"1" type:"string"`

	// The next token from the previous results.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeModelVersionsInput) String

String returns the string representation

func (*DescribeModelVersionsInput) Validate

func (s *DescribeModelVersionsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeModelVersionsOutput

type DescribeModelVersionsOutput struct {

	// The model version details.
	ModelVersionDetails []ModelVersionDetail `locationName:"modelVersionDetails" type:"list"`

	// The next token.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeModelVersionsOutput) String

String returns the string representation

type DescribeModelVersionsPaginator

type DescribeModelVersionsPaginator struct {
	aws.Pager
}

DescribeModelVersionsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeModelVersionsPaginator

func NewDescribeModelVersionsPaginator(req DescribeModelVersionsRequest) DescribeModelVersionsPaginator

NewDescribeModelVersionsRequestPaginator returns a paginator for DescribeModelVersions. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeModelVersionsRequest(input)
p := frauddetector.NewDescribeModelVersionsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeModelVersionsPaginator) CurrentPage

type DescribeModelVersionsRequest

type DescribeModelVersionsRequest struct {
	*aws.Request
	Input *DescribeModelVersionsInput
	Copy  func(*DescribeModelVersionsInput) DescribeModelVersionsRequest
}

DescribeModelVersionsRequest is the request type for the DescribeModelVersions API operation.

func (DescribeModelVersionsRequest) Send

Send marshals and sends the DescribeModelVersions API request.

type DescribeModelVersionsResponse

type DescribeModelVersionsResponse struct {
	*DescribeModelVersionsOutput
	// contains filtered or unexported fields
}

DescribeModelVersionsResponse is the response type for the DescribeModelVersions API operation.

func (*DescribeModelVersionsResponse) SDKResponseMetdata

func (r *DescribeModelVersionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeModelVersions request.

type Detector

type Detector struct {

	// Timestamp of when the detector was created.
	CreatedTime *string `locationName:"createdTime" type:"string"`

	// The detector description.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The detector ID.
	DetectorId *string `locationName:"detectorId" min:"1" type:"string"`

	// Timestamp of when the detector was last updated.
	LastUpdatedTime *string `locationName:"lastUpdatedTime" type:"string"`
	// contains filtered or unexported fields
}

The detector.

func (Detector) String

func (s Detector) String() string

String returns the string representation

type DetectorVersionStatus

type DetectorVersionStatus string
const (
	DetectorVersionStatusDraft    DetectorVersionStatus = "DRAFT"
	DetectorVersionStatusActive   DetectorVersionStatus = "ACTIVE"
	DetectorVersionStatusInactive DetectorVersionStatus = "INACTIVE"
)

Enum values for DetectorVersionStatus

func (DetectorVersionStatus) MarshalValue

func (enum DetectorVersionStatus) MarshalValue() (string, error)

func (DetectorVersionStatus) MarshalValueBuf

func (enum DetectorVersionStatus) MarshalValueBuf(b []byte) ([]byte, error)

type DetectorVersionSummary

type DetectorVersionSummary struct {

	// The detector version description.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The detector version ID.
	DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string"`

	// Timestamp of when the detector version was last updated.
	LastUpdatedTime *string `locationName:"lastUpdatedTime" type:"string"`

	// The detector version status.
	Status DetectorVersionStatus `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

The summary of the detector version.

func (DetectorVersionSummary) String

func (s DetectorVersionSummary) String() string

String returns the string representation

type ExternalModel

type ExternalModel struct {

	// Timestamp of when the model was last created.
	CreatedTime *string `locationName:"createdTime" type:"string"`

	// The input configuration.
	InputConfiguration *ModelInputConfiguration `locationName:"inputConfiguration" type:"structure"`

	// Timestamp of when the model was last updated.
	LastUpdatedTime *string `locationName:"lastUpdatedTime" type:"string"`

	// The Amazon SageMaker model endpoints.
	ModelEndpoint *string `locationName:"modelEndpoint" type:"string"`

	// The Amazon Fraud Detector status for the external model endpoint
	ModelEndpointStatus ModelEndpointStatus `locationName:"modelEndpointStatus" type:"string" enum:"true"`

	// The source of the model.
	ModelSource ModelSource `locationName:"modelSource" type:"string" enum:"true"`

	// The output configuration.
	OutputConfiguration *ModelOutputConfiguration `locationName:"outputConfiguration" type:"structure"`

	// The role used to invoke the model.
	Role *Role `locationName:"role" type:"structure"`
	// contains filtered or unexported fields
}

The Amazon SageMaker model.

func (ExternalModel) String

func (s ExternalModel) String() string

String returns the string representation

type GetDetectorVersionInput

type GetDetectorVersionInput struct {

	// The detector ID.
	//
	// DetectorId is a required field
	DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"`

	// The detector version ID.
	//
	// DetectorVersionId is a required field
	DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetDetectorVersionInput) String

func (s GetDetectorVersionInput) String() string

String returns the string representation

func (*GetDetectorVersionInput) Validate

func (s *GetDetectorVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetDetectorVersionOutput

type GetDetectorVersionOutput struct {

	// The timestamp when the detector version was created.
	CreatedTime *string `locationName:"createdTime" type:"string"`

	// The detector version description.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The detector ID.
	DetectorId *string `locationName:"detectorId" min:"1" type:"string"`

	// The detector version ID.
	DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string"`

	// The Amazon SageMaker model endpoints included in the detector version.
	ExternalModelEndpoints []string `locationName:"externalModelEndpoints" type:"list"`

	// The timestamp when the detector version was last updated.
	LastUpdatedTime *string `locationName:"lastUpdatedTime" type:"string"`

	// The model versions included in the detector version.
	ModelVersions []ModelVersion `locationName:"modelVersions" type:"list"`

	// The execution mode of the rule in the dectector
	//
	// FIRST_MATCHED indicates that 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.
	//
	// ALL_MATCHED indicates that 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.
	RuleExecutionMode RuleExecutionMode `locationName:"ruleExecutionMode" type:"string" enum:"true"`

	// The rules included in the detector version.
	Rules []Rule `locationName:"rules" type:"list"`

	// The status of the detector version.
	Status DetectorVersionStatus `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (GetDetectorVersionOutput) String

func (s GetDetectorVersionOutput) String() string

String returns the string representation

type GetDetectorVersionRequest

type GetDetectorVersionRequest struct {
	*aws.Request
	Input *GetDetectorVersionInput
	Copy  func(*GetDetectorVersionInput) GetDetectorVersionRequest
}

GetDetectorVersionRequest is the request type for the GetDetectorVersion API operation.

func (GetDetectorVersionRequest) Send

Send marshals and sends the GetDetectorVersion API request.

type GetDetectorVersionResponse

type GetDetectorVersionResponse struct {
	*GetDetectorVersionOutput
	// contains filtered or unexported fields
}

GetDetectorVersionResponse is the response type for the GetDetectorVersion API operation.

func (*GetDetectorVersionResponse) SDKResponseMetdata

func (r *GetDetectorVersionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetDetectorVersion request.

type GetDetectorsInput

type GetDetectorsInput struct {

	// The detector ID.
	DetectorId *string `locationName:"detectorId" min:"1" type:"string"`

	// The maximum number of objects to return for the request.
	MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"`

	// The next token for the subsequent request.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (GetDetectorsInput) String

func (s GetDetectorsInput) String() string

String returns the string representation

func (*GetDetectorsInput) Validate

func (s *GetDetectorsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetDetectorsOutput

type GetDetectorsOutput struct {

	// The detectors.
	Detectors []Detector `locationName:"detectors" type:"list"`

	// The next page token.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (GetDetectorsOutput) String

func (s GetDetectorsOutput) String() string

String returns the string representation

type GetDetectorsPaginator

type GetDetectorsPaginator struct {
	aws.Pager
}

GetDetectorsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewGetDetectorsPaginator

func NewGetDetectorsPaginator(req GetDetectorsRequest) GetDetectorsPaginator

NewGetDetectorsRequestPaginator returns a paginator for GetDetectors. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.GetDetectorsRequest(input)
p := frauddetector.NewGetDetectorsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*GetDetectorsPaginator) CurrentPage

func (p *GetDetectorsPaginator) CurrentPage() *GetDetectorsOutput

type GetDetectorsRequest

type GetDetectorsRequest struct {
	*aws.Request
	Input *GetDetectorsInput
	Copy  func(*GetDetectorsInput) GetDetectorsRequest
}

GetDetectorsRequest is the request type for the GetDetectors API operation.

func (GetDetectorsRequest) Send

Send marshals and sends the GetDetectors API request.

type GetDetectorsResponse

type GetDetectorsResponse struct {
	*GetDetectorsOutput
	// contains filtered or unexported fields
}

GetDetectorsResponse is the response type for the GetDetectors API operation.

func (*GetDetectorsResponse) SDKResponseMetdata

func (r *GetDetectorsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetDetectors request.

type GetExternalModelsInput

type GetExternalModelsInput struct {

	// The maximum number of objects to return for the request.
	MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"`

	// The Amazon SageMaker model endpoint.
	ModelEndpoint *string `locationName:"modelEndpoint" type:"string"`

	// The next page token for the request.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (GetExternalModelsInput) String

func (s GetExternalModelsInput) String() string

String returns the string representation

func (*GetExternalModelsInput) Validate

func (s *GetExternalModelsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetExternalModelsOutput

type GetExternalModelsOutput struct {

	// Gets the Amazon SageMaker models.
	ExternalModels []ExternalModel `locationName:"externalModels" type:"list"`

	// The next page token to be used in subsequent requests.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (GetExternalModelsOutput) String

func (s GetExternalModelsOutput) String() string

String returns the string representation

type GetExternalModelsPaginator

type GetExternalModelsPaginator struct {
	aws.Pager
}

GetExternalModelsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewGetExternalModelsPaginator

func NewGetExternalModelsPaginator(req GetExternalModelsRequest) GetExternalModelsPaginator

NewGetExternalModelsRequestPaginator returns a paginator for GetExternalModels. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.GetExternalModelsRequest(input)
p := frauddetector.NewGetExternalModelsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*GetExternalModelsPaginator) CurrentPage

type GetExternalModelsRequest

type GetExternalModelsRequest struct {
	*aws.Request
	Input *GetExternalModelsInput
	Copy  func(*GetExternalModelsInput) GetExternalModelsRequest
}

GetExternalModelsRequest is the request type for the GetExternalModels API operation.

func (GetExternalModelsRequest) Send

Send marshals and sends the GetExternalModels API request.

type GetExternalModelsResponse

type GetExternalModelsResponse struct {
	*GetExternalModelsOutput
	// contains filtered or unexported fields
}

GetExternalModelsResponse is the response type for the GetExternalModels API operation.

func (*GetExternalModelsResponse) SDKResponseMetdata

func (r *GetExternalModelsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetExternalModels request.

type GetModelVersionInput

type GetModelVersionInput struct {

	// The model ID.
	//
	// ModelId is a required field
	ModelId *string `locationName:"modelId" min:"1" type:"string" required:"true"`

	// The model type.
	//
	// ModelType is a required field
	ModelType ModelTypeEnum `locationName:"modelType" type:"string" required:"true" enum:"true"`

	// The model version.
	//
	// ModelVersionNumber is a required field
	ModelVersionNumber *string `locationName:"modelVersionNumber" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetModelVersionInput) String

func (s GetModelVersionInput) String() string

String returns the string representation

func (*GetModelVersionInput) Validate

func (s *GetModelVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetModelVersionOutput

type GetModelVersionOutput struct {

	// The model version description.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The model ID.
	ModelId *string `locationName:"modelId" min:"1" type:"string"`

	// The model type.
	ModelType ModelTypeEnum `locationName:"modelType" type:"string" enum:"true"`

	// The model version.
	ModelVersionNumber *string `locationName:"modelVersionNumber" min:"1" type:"string"`

	// The model version status.
	Status *string `locationName:"status" type:"string"`
	// contains filtered or unexported fields
}

func (GetModelVersionOutput) String

func (s GetModelVersionOutput) String() string

String returns the string representation

type GetModelVersionRequest

type GetModelVersionRequest struct {
	*aws.Request
	Input *GetModelVersionInput
	Copy  func(*GetModelVersionInput) GetModelVersionRequest
}

GetModelVersionRequest is the request type for the GetModelVersion API operation.

func (GetModelVersionRequest) Send

Send marshals and sends the GetModelVersion API request.

type GetModelVersionResponse

type GetModelVersionResponse struct {
	*GetModelVersionOutput
	// contains filtered or unexported fields
}

GetModelVersionResponse is the response type for the GetModelVersion API operation.

func (*GetModelVersionResponse) SDKResponseMetdata

func (r *GetModelVersionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetModelVersion request.

type GetModelsInput

type GetModelsInput struct {

	// The maximum results to return for the request.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// The model ID.
	ModelId *string `locationName:"modelId" min:"1" type:"string"`

	// The model type.
	ModelType ModelTypeEnum `locationName:"modelType" type:"string" enum:"true"`

	// The next token for the request.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (GetModelsInput) String

func (s GetModelsInput) String() string

String returns the string representation

func (*GetModelsInput) Validate

func (s *GetModelsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetModelsOutput

type GetModelsOutput struct {

	// The returned models.
	Models []Model `locationName:"models" type:"list"`

	// The next token for subsequent requests.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (GetModelsOutput) String

func (s GetModelsOutput) String() string

String returns the string representation

type GetModelsPaginator

type GetModelsPaginator struct {
	aws.Pager
}

GetModelsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewGetModelsPaginator

func NewGetModelsPaginator(req GetModelsRequest) GetModelsPaginator

NewGetModelsRequestPaginator returns a paginator for GetModels. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.GetModelsRequest(input)
p := frauddetector.NewGetModelsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*GetModelsPaginator) CurrentPage

func (p *GetModelsPaginator) CurrentPage() *GetModelsOutput

type GetModelsRequest

type GetModelsRequest struct {
	*aws.Request
	Input *GetModelsInput
	Copy  func(*GetModelsInput) GetModelsRequest
}

GetModelsRequest is the request type for the GetModels API operation.

func (GetModelsRequest) Send

Send marshals and sends the GetModels API request.

type GetModelsResponse

type GetModelsResponse struct {
	*GetModelsOutput
	// contains filtered or unexported fields
}

GetModelsResponse is the response type for the GetModels API operation.

func (*GetModelsResponse) SDKResponseMetdata

func (r *GetModelsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetModels request.

type GetOutcomesInput

type GetOutcomesInput struct {

	// The maximum number of objects to return for the request.
	MaxResults *int64 `locationName:"maxResults" min:"50" type:"integer"`

	// The name of the outcome or outcomes to get.
	Name *string `locationName:"name" min:"1" type:"string"`

	// The next page token for the request.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (GetOutcomesInput) String

func (s GetOutcomesInput) String() string

String returns the string representation

func (*GetOutcomesInput) Validate

func (s *GetOutcomesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetOutcomesOutput

type GetOutcomesOutput struct {

	// The next page token for subsequent requests.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The outcomes.
	Outcomes []Outcome `locationName:"outcomes" type:"list"`
	// contains filtered or unexported fields
}

func (GetOutcomesOutput) String

func (s GetOutcomesOutput) String() string

String returns the string representation

type GetOutcomesPaginator

type GetOutcomesPaginator struct {
	aws.Pager
}

GetOutcomesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewGetOutcomesPaginator

func NewGetOutcomesPaginator(req GetOutcomesRequest) GetOutcomesPaginator

NewGetOutcomesRequestPaginator returns a paginator for GetOutcomes. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.GetOutcomesRequest(input)
p := frauddetector.NewGetOutcomesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*GetOutcomesPaginator) CurrentPage

func (p *GetOutcomesPaginator) CurrentPage() *GetOutcomesOutput

type GetOutcomesRequest

type GetOutcomesRequest struct {
	*aws.Request
	Input *GetOutcomesInput
	Copy  func(*GetOutcomesInput) GetOutcomesRequest
}

GetOutcomesRequest is the request type for the GetOutcomes API operation.

func (GetOutcomesRequest) Send

Send marshals and sends the GetOutcomes API request.

type GetOutcomesResponse

type GetOutcomesResponse struct {
	*GetOutcomesOutput
	// contains filtered or unexported fields
}

GetOutcomesResponse is the response type for the GetOutcomes API operation.

func (*GetOutcomesResponse) SDKResponseMetdata

func (r *GetOutcomesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetOutcomes request.

type GetPredictionInput

type GetPredictionInput struct {

	// The detector ID.
	//
	// DetectorId is a required field
	DetectorId *string `locationName:"detectorId" type:"string" required:"true"`

	// The detector version ID.
	DetectorVersionId *string `locationName:"detectorVersionId" type:"string"`

	// Names of variables you defined in Amazon Fraud Detector to represent event
	// data elements and their corresponding values for the event you are sending
	// for evaluation.
	EventAttributes map[string]string `locationName:"eventAttributes" type:"map"`

	// The unique ID used to identify the event.
	//
	// EventId is a required field
	EventId *string `locationName:"eventId" type:"string" required:"true"`

	// The Amazon SageMaker model endpoint input data blobs.
	ExternalModelEndpointDataBlobs map[string]ModelEndpointDataBlob `locationName:"externalModelEndpointDataBlobs" type:"map" sensitive:"true"`
	// contains filtered or unexported fields
}

func (GetPredictionInput) String

func (s GetPredictionInput) String() string

String returns the string representation

func (*GetPredictionInput) Validate

func (s *GetPredictionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetPredictionOutput

type GetPredictionOutput struct {

	// The model scores for models used in the detector version.
	ModelScores []ModelScores `locationName:"modelScores" type:"list"`

	// The prediction outcomes.
	Outcomes []string `locationName:"outcomes" type:"list"`

	// The rule results in the prediction.
	RuleResults []RuleResult `locationName:"ruleResults" type:"list"`
	// contains filtered or unexported fields
}

func (GetPredictionOutput) String

func (s GetPredictionOutput) String() string

String returns the string representation

type GetPredictionRequest

type GetPredictionRequest struct {
	*aws.Request
	Input *GetPredictionInput
	Copy  func(*GetPredictionInput) GetPredictionRequest
}

GetPredictionRequest is the request type for the GetPrediction API operation.

func (GetPredictionRequest) Send

Send marshals and sends the GetPrediction API request.

type GetPredictionResponse

type GetPredictionResponse struct {
	*GetPredictionOutput
	// contains filtered or unexported fields
}

GetPredictionResponse is the response type for the GetPrediction API operation.

func (*GetPredictionResponse) SDKResponseMetdata

func (r *GetPredictionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetPrediction request.

type GetRulesInput

type GetRulesInput struct {

	// The detector ID.
	//
	// DetectorId is a required field
	DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"`

	// The maximum number of rules to return for the request.
	MaxResults *int64 `locationName:"maxResults" min:"50" type:"integer"`

	// The next page token.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The rule ID.
	RuleId *string `locationName:"ruleId" min:"1" type:"string"`

	// The rule version.
	RuleVersion *string `locationName:"ruleVersion" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (GetRulesInput) String

func (s GetRulesInput) String() string

String returns the string representation

func (*GetRulesInput) Validate

func (s *GetRulesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetRulesOutput

type GetRulesOutput struct {

	// The next page token to be used in subsequent requests.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The details of the requested rule.
	RuleDetails []RuleDetail `locationName:"ruleDetails" type:"list"`
	// contains filtered or unexported fields
}

func (GetRulesOutput) String

func (s GetRulesOutput) String() string

String returns the string representation

type GetRulesPaginator

type GetRulesPaginator struct {
	aws.Pager
}

GetRulesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewGetRulesPaginator

func NewGetRulesPaginator(req GetRulesRequest) GetRulesPaginator

NewGetRulesRequestPaginator returns a paginator for GetRules. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.GetRulesRequest(input)
p := frauddetector.NewGetRulesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*GetRulesPaginator) CurrentPage

func (p *GetRulesPaginator) CurrentPage() *GetRulesOutput

type GetRulesRequest

type GetRulesRequest struct {
	*aws.Request
	Input *GetRulesInput
	Copy  func(*GetRulesInput) GetRulesRequest
}

GetRulesRequest is the request type for the GetRules API operation.

func (GetRulesRequest) Send

Send marshals and sends the GetRules API request.

type GetRulesResponse

type GetRulesResponse struct {
	*GetRulesOutput
	// contains filtered or unexported fields
}

GetRulesResponse is the response type for the GetRules API operation.

func (*GetRulesResponse) SDKResponseMetdata

func (r *GetRulesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetRules request.

type GetVariablesInput

type GetVariablesInput struct {

	// The max size per page determined for the get variable request.
	MaxResults *int64 `locationName:"maxResults" min:"50" type:"integer"`

	// The name of the variable.
	Name *string `locationName:"name" type:"string"`

	// The next page token of the get variable request.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (GetVariablesInput) String

func (s GetVariablesInput) String() string

String returns the string representation

func (*GetVariablesInput) Validate

func (s *GetVariablesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetVariablesOutput

type GetVariablesOutput struct {

	// The next page token to be used in subsequent requests.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The names of the variables returned.
	Variables []Variable `locationName:"variables" type:"list"`
	// contains filtered or unexported fields
}

func (GetVariablesOutput) String

func (s GetVariablesOutput) String() string

String returns the string representation

type GetVariablesPaginator

type GetVariablesPaginator struct {
	aws.Pager
}

GetVariablesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewGetVariablesPaginator

func NewGetVariablesPaginator(req GetVariablesRequest) GetVariablesPaginator

NewGetVariablesRequestPaginator returns a paginator for GetVariables. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.GetVariablesRequest(input)
p := frauddetector.NewGetVariablesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*GetVariablesPaginator) CurrentPage

func (p *GetVariablesPaginator) CurrentPage() *GetVariablesOutput

type GetVariablesRequest

type GetVariablesRequest struct {
	*aws.Request
	Input *GetVariablesInput
	Copy  func(*GetVariablesInput) GetVariablesRequest
}

GetVariablesRequest is the request type for the GetVariables API operation.

func (GetVariablesRequest) Send

Send marshals and sends the GetVariables API request.

type GetVariablesResponse

type GetVariablesResponse struct {
	*GetVariablesOutput
	// contains filtered or unexported fields
}

GetVariablesResponse is the response type for the GetVariables API operation.

func (*GetVariablesResponse) SDKResponseMetdata

func (r *GetVariablesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetVariables request.

type LabelSchema

type LabelSchema struct {

	// The label key.
	//
	// LabelKey is a required field
	LabelKey *string `locationName:"labelKey" type:"string" required:"true"`

	// The label mapper maps the Amazon Fraud Detector supported label to the appropriate
	// source labels. For example, if "FRAUD" and "LEGIT" are Amazon Fraud Detector
	// supported labels, this mapper could be: {"FRAUD" => ["0"], "LEGIT" => ["1"]}
	// or {"FRAUD" => ["false"], "LEGIT" => ["true"]} or {"FRAUD" => ["fraud", "abuse"],
	// "LEGIT" => ["legit", "safe"]}. The value part of the mapper is a list, because
	// you may have multiple variants for a single Amazon Fraud Detector label.
	//
	// LabelMapper is a required field
	LabelMapper map[string][]string `locationName:"labelMapper" type:"map" required:"true"`
	// contains filtered or unexported fields
}

The label schema.

func (LabelSchema) String

func (s LabelSchema) String() string

String returns the string representation

func (*LabelSchema) Validate

func (s *LabelSchema) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type Language

type Language string
const (
	LanguageDetectorpl Language = "DETECTORPL"
)

Enum values for Language

func (Language) MarshalValue

func (enum Language) MarshalValue() (string, error)

func (Language) MarshalValueBuf

func (enum Language) MarshalValueBuf(b []byte) ([]byte, error)

type Model

type Model struct {

	// Timestamp of when the model was created.
	CreatedTime *string `locationName:"createdTime" type:"string"`

	// The model description.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The model label schema.
	LabelSchema *LabelSchema `locationName:"labelSchema" type:"structure"`

	// Timestamp of last time the model was updated.
	LastUpdatedTime *string `locationName:"lastUpdatedTime" type:"string"`

	// The model ID.
	ModelId *string `locationName:"modelId" min:"1" type:"string"`

	// The model type.
	ModelType ModelTypeEnum `locationName:"modelType" type:"string" enum:"true"`

	// The model input variables.
	ModelVariables []ModelVariable `locationName:"modelVariables" type:"list"`

	// The model training data source in Amazon S3.
	TrainingDataSource *TrainingDataSource `locationName:"trainingDataSource" type:"structure"`
	// contains filtered or unexported fields
}

The model.

func (Model) String

func (s Model) String() string

String returns the string representation

type ModelEndpointDataBlob

type ModelEndpointDataBlob struct {

	// The byte buffer of the Amazon SageMaker model endpoint input data blob.
	//
	// ByteBuffer is automatically base64 encoded/decoded by the SDK.
	ByteBuffer []byte `locationName:"byteBuffer" type:"blob"`

	// The content type of the Amazon SageMaker model endpoint input data blob.
	ContentType *string `locationName:"contentType" min:"1" type:"string"`
	// contains filtered or unexported fields
}

A pre-formed Amazon SageMaker model input you can include if your detector version includes an imported Amazon SageMaker model endpoint with pass-through input configuration.

func (ModelEndpointDataBlob) String

func (s ModelEndpointDataBlob) String() string

String returns the string representation

func (*ModelEndpointDataBlob) Validate

func (s *ModelEndpointDataBlob) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ModelEndpointStatus

type ModelEndpointStatus string
const (
	ModelEndpointStatusAssociated  ModelEndpointStatus = "ASSOCIATED"
	ModelEndpointStatusDissociated ModelEndpointStatus = "DISSOCIATED"
)

Enum values for ModelEndpointStatus

func (ModelEndpointStatus) MarshalValue

func (enum ModelEndpointStatus) MarshalValue() (string, error)

func (ModelEndpointStatus) MarshalValueBuf

func (enum ModelEndpointStatus) MarshalValueBuf(b []byte) ([]byte, error)

type ModelInputConfiguration

type ModelInputConfiguration struct {

	// Template for constructing the CSV input-data sent to SageMaker. At event-evaluation,
	// the placeholders for variable-names in the template will be replaced with
	// the variable values before being sent to SageMaker.
	CsvInputTemplate *string `locationName:"csvInputTemplate" type:"string"`

	// The format of the model input configuration. The format differs depending
	// on if it is passed through to SageMaker or constructed by Amazon Fraud Detector.
	Format ModelInputDataFormat `locationName:"format" type:"string" enum:"true"`

	// For an opaque-model, the input to the model will be a ByteBuffer blob provided
	// in the getPrediction request, and will be passed to SageMaker as-is. For
	// non-opaque models, the input will be constructed by Amazon Fraud Detector
	// based on the model-configuration.
	//
	// IsOpaque is a required field
	IsOpaque *bool `locationName:"isOpaque" type:"boolean" required:"true"`

	// Template for constructing the JSON input-data sent to SageMaker. At event-evaluation,
	// the placeholders for variable names in the template will be replaced with
	// the variable values before being sent to SageMaker.
	JsonInputTemplate *string `locationName:"jsonInputTemplate" type:"string"`
	// contains filtered or unexported fields
}

The model input configuration.

func (ModelInputConfiguration) String

func (s ModelInputConfiguration) String() string

String returns the string representation

func (*ModelInputConfiguration) Validate

func (s *ModelInputConfiguration) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ModelInputDataFormat

type ModelInputDataFormat string
const (
	ModelInputDataFormatTextCsv         ModelInputDataFormat = "TEXT_CSV"
	ModelInputDataFormatApplicationJson ModelInputDataFormat = "APPLICATION_JSON"
)

Enum values for ModelInputDataFormat

func (ModelInputDataFormat) MarshalValue

func (enum ModelInputDataFormat) MarshalValue() (string, error)

func (ModelInputDataFormat) MarshalValueBuf

func (enum ModelInputDataFormat) MarshalValueBuf(b []byte) ([]byte, error)

type ModelOutputConfiguration

type ModelOutputConfiguration struct {

	// A map of CSV index values in the SageMaker response to the Amazon Fraud Detector
	// variables.
	CsvIndexToVariableMap map[string]string `locationName:"csvIndexToVariableMap" type:"map"`

	// The format of the model output configuration.
	//
	// Format is a required field
	Format ModelOutputDataFormat `locationName:"format" type:"string" required:"true" enum:"true"`

	// A map of JSON keys in response from SageMaker to the Amazon Fraud Detector
	// variables.
	JsonKeyToVariableMap map[string]string `locationName:"jsonKeyToVariableMap" type:"map"`
	// contains filtered or unexported fields
}

Provides the model output configuration.

func (ModelOutputConfiguration) String

func (s ModelOutputConfiguration) String() string

String returns the string representation

func (*ModelOutputConfiguration) Validate

func (s *ModelOutputConfiguration) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ModelOutputDataFormat

type ModelOutputDataFormat string
const (
	ModelOutputDataFormatTextCsv              ModelOutputDataFormat = "TEXT_CSV"
	ModelOutputDataFormatApplicationJsonlines ModelOutputDataFormat = "APPLICATION_JSONLINES"
)

Enum values for ModelOutputDataFormat

func (ModelOutputDataFormat) MarshalValue

func (enum ModelOutputDataFormat) MarshalValue() (string, error)

func (ModelOutputDataFormat) MarshalValueBuf

func (enum ModelOutputDataFormat) MarshalValueBuf(b []byte) ([]byte, error)

type ModelScores

type ModelScores struct {

	// The model version.
	ModelVersion *ModelVersion `locationName:"modelVersion" type:"structure"`

	// The model's fraud prediction scores.
	Scores map[string]float64 `locationName:"scores" type:"map"`
	// contains filtered or unexported fields
}

The fraud prediction scores.

func (ModelScores) String

func (s ModelScores) String() string

String returns the string representation

type ModelSource

type ModelSource string
const (
	ModelSourceSagemaker ModelSource = "SAGEMAKER"
)

Enum values for ModelSource

func (ModelSource) MarshalValue

func (enum ModelSource) MarshalValue() (string, error)

func (ModelSource) MarshalValueBuf

func (enum ModelSource) MarshalValueBuf(b []byte) ([]byte, error)

type ModelTypeEnum

type ModelTypeEnum string
const (
	ModelTypeEnumOnlineFraudInsights ModelTypeEnum = "ONLINE_FRAUD_INSIGHTS"
)

Enum values for ModelTypeEnum

func (ModelTypeEnum) MarshalValue

func (enum ModelTypeEnum) MarshalValue() (string, error)

func (ModelTypeEnum) MarshalValueBuf

func (enum ModelTypeEnum) MarshalValueBuf(b []byte) ([]byte, error)

type ModelVariable

type ModelVariable struct {

	// The model variable's index.>
	Index *int64 `locationName:"index" type:"integer"`

	// The model variable's name.>
	//
	// Name is a required field
	Name *string `locationName:"name" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The model variable.>

func (ModelVariable) String

func (s ModelVariable) String() string

String returns the string representation

func (*ModelVariable) Validate

func (s *ModelVariable) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ModelVersion

type ModelVersion struct {

	// The parent model ID.
	//
	// ModelId is a required field
	ModelId *string `locationName:"modelId" min:"1" type:"string" required:"true"`

	// The model type.
	//
	// ModelType is a required field
	ModelType ModelTypeEnum `locationName:"modelType" type:"string" required:"true" enum:"true"`

	// The model version.
	//
	// ModelVersionNumber is a required field
	ModelVersionNumber *string `locationName:"modelVersionNumber" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The model version.

func (ModelVersion) String

func (s ModelVersion) String() string

String returns the string representation

func (*ModelVersion) Validate

func (s *ModelVersion) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ModelVersionDetail

type ModelVersionDetail struct {

	// The timestamp when the model was created.
	CreatedTime *string `locationName:"createdTime" type:"string"`

	// The model description.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The model label schema.
	LabelSchema *LabelSchema `locationName:"labelSchema" type:"structure"`

	// The timestamp when the model was last updated.
	LastUpdatedTime *string `locationName:"lastUpdatedTime" type:"string"`

	// The model ID.
	ModelId *string `locationName:"modelId" min:"1" type:"string"`

	// The model type.
	ModelType ModelTypeEnum `locationName:"modelType" type:"string" enum:"true"`

	// The model variables.
	ModelVariables []ModelVariable `locationName:"modelVariables" type:"list"`

	// The model version.
	ModelVersionNumber *string `locationName:"modelVersionNumber" min:"1" type:"string"`

	// The model status.
	Status *string `locationName:"status" type:"string"`

	// The model training data source.
	TrainingDataSource *TrainingDataSource `locationName:"trainingDataSource" type:"structure"`

	// The model training metrics.
	TrainingMetrics map[string]string `locationName:"trainingMetrics" type:"map"`

	// The model validation metrics.
	ValidationMetrics map[string]string `locationName:"validationMetrics" type:"map"`
	// contains filtered or unexported fields
}

Provides the model version details.

func (ModelVersionDetail) String

func (s ModelVersionDetail) String() string

String returns the string representation

type ModelVersionStatus

type ModelVersionStatus string
const (
	ModelVersionStatusTrainingInProgress   ModelVersionStatus = "TRAINING_IN_PROGRESS"
	ModelVersionStatusTrainingComplete     ModelVersionStatus = "TRAINING_COMPLETE"
	ModelVersionStatusActivateRequested    ModelVersionStatus = "ACTIVATE_REQUESTED"
	ModelVersionStatusActivateInProgress   ModelVersionStatus = "ACTIVATE_IN_PROGRESS"
	ModelVersionStatusActive               ModelVersionStatus = "ACTIVE"
	ModelVersionStatusInactivateInProgress ModelVersionStatus = "INACTIVATE_IN_PROGRESS"
	ModelVersionStatusInactive             ModelVersionStatus = "INACTIVE"
	ModelVersionStatusError                ModelVersionStatus = "ERROR"
)

Enum values for ModelVersionStatus

func (ModelVersionStatus) MarshalValue

func (enum ModelVersionStatus) MarshalValue() (string, error)

func (ModelVersionStatus) MarshalValueBuf

func (enum ModelVersionStatus) MarshalValueBuf(b []byte) ([]byte, error)

type Outcome

type Outcome struct {

	// The timestamp when the outcome was created.
	CreatedTime *string `locationName:"createdTime" type:"string"`

	// The outcome description.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The timestamp when the outcome was last updated.
	LastUpdatedTime *string `locationName:"lastUpdatedTime" type:"string"`

	// The outcome name.
	Name *string `locationName:"name" min:"1" type:"string"`
	// contains filtered or unexported fields
}

The outcome.

func (Outcome) String

func (s Outcome) String() string

String returns the string representation

type PutDetectorInput

type PutDetectorInput struct {

	// The description of the detector.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The detector ID.
	//
	// DetectorId is a required field
	DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (PutDetectorInput) String

func (s PutDetectorInput) String() string

String returns the string representation

func (*PutDetectorInput) Validate

func (s *PutDetectorInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutDetectorOutput

type PutDetectorOutput struct {
	// contains filtered or unexported fields
}

func (PutDetectorOutput) String

func (s PutDetectorOutput) String() string

String returns the string representation

type PutDetectorRequest

type PutDetectorRequest struct {
	*aws.Request
	Input *PutDetectorInput
	Copy  func(*PutDetectorInput) PutDetectorRequest
}

PutDetectorRequest is the request type for the PutDetector API operation.

func (PutDetectorRequest) Send

Send marshals and sends the PutDetector API request.

type PutDetectorResponse

type PutDetectorResponse struct {
	*PutDetectorOutput
	// contains filtered or unexported fields
}

PutDetectorResponse is the response type for the PutDetector API operation.

func (*PutDetectorResponse) SDKResponseMetdata

func (r *PutDetectorResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutDetector request.

type PutExternalModelInput

type PutExternalModelInput struct {

	// The model endpoint input configuration.
	//
	// InputConfiguration is a required field
	InputConfiguration *ModelInputConfiguration `locationName:"inputConfiguration" type:"structure" required:"true"`

	// The model endpoints name.
	//
	// ModelEndpoint is a required field
	ModelEndpoint *string `locationName:"modelEndpoint" type:"string" required:"true"`

	// The model endpoint’s status in Amazon Fraud Detector.
	//
	// ModelEndpointStatus is a required field
	ModelEndpointStatus ModelEndpointStatus `locationName:"modelEndpointStatus" type:"string" required:"true" enum:"true"`

	// The source of the model.
	//
	// ModelSource is a required field
	ModelSource ModelSource `locationName:"modelSource" type:"string" required:"true" enum:"true"`

	// The model endpoint output configuration.
	//
	// OutputConfiguration is a required field
	OutputConfiguration *ModelOutputConfiguration `locationName:"outputConfiguration" type:"structure" required:"true"`

	// The IAM role used to invoke the model endpoint.
	//
	// Role is a required field
	Role *Role `locationName:"role" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (PutExternalModelInput) String

func (s PutExternalModelInput) String() string

String returns the string representation

func (*PutExternalModelInput) Validate

func (s *PutExternalModelInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutExternalModelOutput

type PutExternalModelOutput struct {
	// contains filtered or unexported fields
}

func (PutExternalModelOutput) String

func (s PutExternalModelOutput) String() string

String returns the string representation

type PutExternalModelRequest

type PutExternalModelRequest struct {
	*aws.Request
	Input *PutExternalModelInput
	Copy  func(*PutExternalModelInput) PutExternalModelRequest
}

PutExternalModelRequest is the request type for the PutExternalModel API operation.

func (PutExternalModelRequest) Send

Send marshals and sends the PutExternalModel API request.

type PutExternalModelResponse

type PutExternalModelResponse struct {
	*PutExternalModelOutput
	// contains filtered or unexported fields
}

PutExternalModelResponse is the response type for the PutExternalModel API operation.

func (*PutExternalModelResponse) SDKResponseMetdata

func (r *PutExternalModelResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutExternalModel request.

type PutModelInput

type PutModelInput struct {

	// The model description.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The label schema.
	//
	// LabelSchema is a required field
	LabelSchema *LabelSchema `locationName:"labelSchema" type:"structure" required:"true"`

	// The model ID.
	//
	// ModelId is a required field
	ModelId *string `locationName:"modelId" min:"1" type:"string" required:"true"`

	// The model type.
	//
	// ModelType is a required field
	ModelType ModelTypeEnum `locationName:"modelType" type:"string" required:"true" enum:"true"`

	// The model input variables.
	//
	// ModelVariables is a required field
	ModelVariables []ModelVariable `locationName:"modelVariables" type:"list" required:"true"`

	// The training data source location in Amazon S3.
	//
	// TrainingDataSource is a required field
	TrainingDataSource *TrainingDataSource `locationName:"trainingDataSource" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (PutModelInput) String

func (s PutModelInput) String() string

String returns the string representation

func (*PutModelInput) Validate

func (s *PutModelInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutModelOutput

type PutModelOutput struct {
	// contains filtered or unexported fields
}

func (PutModelOutput) String

func (s PutModelOutput) String() string

String returns the string representation

type PutModelRequest

type PutModelRequest struct {
	*aws.Request
	Input *PutModelInput
	Copy  func(*PutModelInput) PutModelRequest
}

PutModelRequest is the request type for the PutModel API operation.

func (PutModelRequest) Send

Send marshals and sends the PutModel API request.

type PutModelResponse

type PutModelResponse struct {
	*PutModelOutput
	// contains filtered or unexported fields
}

PutModelResponse is the response type for the PutModel API operation.

func (*PutModelResponse) SDKResponseMetdata

func (r *PutModelResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutModel request.

type PutOutcomeInput

type PutOutcomeInput struct {

	// The outcome description.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The name of the outcome.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (PutOutcomeInput) String

func (s PutOutcomeInput) String() string

String returns the string representation

func (*PutOutcomeInput) Validate

func (s *PutOutcomeInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutOutcomeOutput

type PutOutcomeOutput struct {
	// contains filtered or unexported fields
}

func (PutOutcomeOutput) String

func (s PutOutcomeOutput) String() string

String returns the string representation

type PutOutcomeRequest

type PutOutcomeRequest struct {
	*aws.Request
	Input *PutOutcomeInput
	Copy  func(*PutOutcomeInput) PutOutcomeRequest
}

PutOutcomeRequest is the request type for the PutOutcome API operation.

func (PutOutcomeRequest) Send

Send marshals and sends the PutOutcome API request.

type PutOutcomeResponse

type PutOutcomeResponse struct {
	*PutOutcomeOutput
	// contains filtered or unexported fields
}

PutOutcomeResponse is the response type for the PutOutcome API operation.

func (*PutOutcomeResponse) SDKResponseMetdata

func (r *PutOutcomeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutOutcome request.

type Role

type Role struct {

	// The role ARN.
	//
	// Arn is a required field
	Arn *string `locationName:"arn" type:"string" required:"true"`

	// The role name.
	//
	// Name is a required field
	Name *string `locationName:"name" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The role used to invoke external model endpoints.

func (Role) String

func (s Role) String() string

String returns the string representation

func (*Role) Validate

func (s *Role) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type Rule

type Rule struct {

	// The detector for which the rule is associated.
	//
	// DetectorId is a required field
	DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"`

	// The rule ID.
	//
	// RuleId is a required field
	RuleId *string `locationName:"ruleId" min:"1" type:"string" required:"true"`

	// The rule version.
	//
	// RuleVersion is a required field
	RuleVersion *string `locationName:"ruleVersion" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

A rule.

func (Rule) String

func (s Rule) String() string

String returns the string representation

func (*Rule) Validate

func (s *Rule) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type RuleDetail

type RuleDetail struct {

	// The timestamp of when the rule was created.
	CreatedTime *string `locationName:"createdTime" type:"string"`

	// The rule description.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The detector for which the rule is associated.
	DetectorId *string `locationName:"detectorId" min:"1" type:"string"`

	// The rule expression.
	Expression *string `locationName:"expression" min:"1" type:"string"`

	// The rule language.
	Language Language `locationName:"language" type:"string" enum:"true"`

	// Timestamp of the last time the rule was updated.
	LastUpdatedTime *string `locationName:"lastUpdatedTime" type:"string"`

	// The rule outcomes.
	Outcomes []string `locationName:"outcomes" min:"1" type:"list"`

	// The rule ID.
	RuleId *string `locationName:"ruleId" min:"1" type:"string"`

	// The rule version.
	RuleVersion *string `locationName:"ruleVersion" min:"1" type:"string"`
	// contains filtered or unexported fields
}

The details of the rule.

func (RuleDetail) String

func (s RuleDetail) String() string

String returns the string representation

type RuleExecutionMode added in v0.21.0

type RuleExecutionMode string
const (
	RuleExecutionModeAllMatched   RuleExecutionMode = "ALL_MATCHED"
	RuleExecutionModeFirstMatched RuleExecutionMode = "FIRST_MATCHED"
)

Enum values for RuleExecutionMode

func (RuleExecutionMode) MarshalValue added in v0.21.0

func (enum RuleExecutionMode) MarshalValue() (string, error)

func (RuleExecutionMode) MarshalValueBuf added in v0.21.0

func (enum RuleExecutionMode) MarshalValueBuf(b []byte) ([]byte, error)

type RuleResult added in v0.21.0

type RuleResult struct {

	// The outcomes of the matched rule, based on the rule execution mode.
	Outcomes []string `locationName:"outcomes" type:"list"`

	// The rule ID that was matched, based on the rule execution mode.
	RuleId *string `locationName:"ruleId" type:"string"`
	// contains filtered or unexported fields
}

The rule results.

func (RuleResult) String added in v0.21.0

func (s RuleResult) String() string

String returns the string representation

type TrainingDataSource

type TrainingDataSource struct {

	// The data access role ARN for the training data source.
	//
	// DataAccessRoleArn is a required field
	DataAccessRoleArn *string `locationName:"dataAccessRoleArn" min:"1" type:"string" required:"true"`

	// The data location of the training data source.
	//
	// DataLocation is a required field
	DataLocation *string `locationName:"dataLocation" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The training data source.

func (TrainingDataSource) String

func (s TrainingDataSource) String() string

String returns the string representation

func (*TrainingDataSource) Validate

func (s *TrainingDataSource) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateDetectorVersionInput

type UpdateDetectorVersionInput struct {

	// The detector version description.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The parent detector ID for the detector version you want to update.
	//
	// DetectorId is a required field
	DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"`

	// The detector version ID.
	//
	// DetectorVersionId is a required field
	DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string" required:"true"`

	// The Amazon SageMaker model endpoints to include in the detector version.
	//
	// ExternalModelEndpoints is a required field
	ExternalModelEndpoints []string `locationName:"externalModelEndpoints" type:"list" required:"true"`

	// The model versions to include in the detector version.
	ModelVersions []ModelVersion `locationName:"modelVersions" type:"list"`

	// 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.
	RuleExecutionMode RuleExecutionMode `locationName:"ruleExecutionMode" type:"string" enum:"true"`

	// The rules to include in the detector version.
	//
	// Rules is a required field
	Rules []Rule `locationName:"rules" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateDetectorVersionInput) String

String returns the string representation

func (*UpdateDetectorVersionInput) Validate

func (s *UpdateDetectorVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateDetectorVersionMetadataInput

type UpdateDetectorVersionMetadataInput struct {

	// The description.
	//
	// Description is a required field
	Description *string `locationName:"description" min:"1" type:"string" required:"true"`

	// The detector ID.
	//
	// DetectorId is a required field
	DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"`

	// The detector version ID.
	//
	// DetectorVersionId is a required field
	DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateDetectorVersionMetadataInput) String

String returns the string representation

func (*UpdateDetectorVersionMetadataInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type UpdateDetectorVersionMetadataOutput

type UpdateDetectorVersionMetadataOutput struct {
	// contains filtered or unexported fields
}

func (UpdateDetectorVersionMetadataOutput) String

String returns the string representation

type UpdateDetectorVersionMetadataRequest

type UpdateDetectorVersionMetadataRequest struct {
	*aws.Request
	Input *UpdateDetectorVersionMetadataInput
	Copy  func(*UpdateDetectorVersionMetadataInput) UpdateDetectorVersionMetadataRequest
}

UpdateDetectorVersionMetadataRequest is the request type for the UpdateDetectorVersionMetadata API operation.

func (UpdateDetectorVersionMetadataRequest) Send

Send marshals and sends the UpdateDetectorVersionMetadata API request.

type UpdateDetectorVersionMetadataResponse

type UpdateDetectorVersionMetadataResponse struct {
	*UpdateDetectorVersionMetadataOutput
	// contains filtered or unexported fields
}

UpdateDetectorVersionMetadataResponse is the response type for the UpdateDetectorVersionMetadata API operation.

func (*UpdateDetectorVersionMetadataResponse) SDKResponseMetdata

func (r *UpdateDetectorVersionMetadataResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UpdateDetectorVersionMetadata request.

type UpdateDetectorVersionOutput

type UpdateDetectorVersionOutput struct {
	// contains filtered or unexported fields
}

func (UpdateDetectorVersionOutput) String

String returns the string representation

type UpdateDetectorVersionRequest

type UpdateDetectorVersionRequest struct {
	*aws.Request
	Input *UpdateDetectorVersionInput
	Copy  func(*UpdateDetectorVersionInput) UpdateDetectorVersionRequest
}

UpdateDetectorVersionRequest is the request type for the UpdateDetectorVersion API operation.

func (UpdateDetectorVersionRequest) Send

Send marshals and sends the UpdateDetectorVersion API request.

type UpdateDetectorVersionResponse

type UpdateDetectorVersionResponse struct {
	*UpdateDetectorVersionOutput
	// contains filtered or unexported fields
}

UpdateDetectorVersionResponse is the response type for the UpdateDetectorVersion API operation.

func (*UpdateDetectorVersionResponse) SDKResponseMetdata

func (r *UpdateDetectorVersionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UpdateDetectorVersion request.

type UpdateDetectorVersionStatusInput

type UpdateDetectorVersionStatusInput struct {

	// The detector ID.
	//
	// DetectorId is a required field
	DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"`

	// The detector version ID.
	//
	// DetectorVersionId is a required field
	DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string" required:"true"`

	// The new status.
	//
	// Status is a required field
	Status DetectorVersionStatus `locationName:"status" type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

func (UpdateDetectorVersionStatusInput) String

String returns the string representation

func (*UpdateDetectorVersionStatusInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type UpdateDetectorVersionStatusOutput

type UpdateDetectorVersionStatusOutput struct {
	// contains filtered or unexported fields
}

func (UpdateDetectorVersionStatusOutput) String

String returns the string representation

type UpdateDetectorVersionStatusRequest

type UpdateDetectorVersionStatusRequest struct {
	*aws.Request
	Input *UpdateDetectorVersionStatusInput
	Copy  func(*UpdateDetectorVersionStatusInput) UpdateDetectorVersionStatusRequest
}

UpdateDetectorVersionStatusRequest is the request type for the UpdateDetectorVersionStatus API operation.

func (UpdateDetectorVersionStatusRequest) Send

Send marshals and sends the UpdateDetectorVersionStatus API request.

type UpdateDetectorVersionStatusResponse

type UpdateDetectorVersionStatusResponse struct {
	*UpdateDetectorVersionStatusOutput
	// contains filtered or unexported fields
}

UpdateDetectorVersionStatusResponse is the response type for the UpdateDetectorVersionStatus API operation.

func (*UpdateDetectorVersionStatusResponse) SDKResponseMetdata

func (r *UpdateDetectorVersionStatusResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UpdateDetectorVersionStatus request.

type UpdateModelVersionInput

type UpdateModelVersionInput struct {

	// The model description.
	//
	// Description is a required field
	Description *string `locationName:"description" min:"1" type:"string" required:"true"`

	// The model ID.
	//
	// ModelId is a required field
	ModelId *string `locationName:"modelId" min:"1" type:"string" required:"true"`

	// The model type.
	//
	// ModelType is a required field
	ModelType ModelTypeEnum `locationName:"modelType" type:"string" required:"true" enum:"true"`

	// The model version.
	//
	// ModelVersionNumber is a required field
	ModelVersionNumber *string `locationName:"modelVersionNumber" min:"1" type:"string" required:"true"`

	// The new model status.
	//
	// Status is a required field
	Status ModelVersionStatus `locationName:"status" type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

func (UpdateModelVersionInput) String

func (s UpdateModelVersionInput) String() string

String returns the string representation

func (*UpdateModelVersionInput) Validate

func (s *UpdateModelVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateModelVersionOutput

type UpdateModelVersionOutput struct {
	// contains filtered or unexported fields
}

func (UpdateModelVersionOutput) String

func (s UpdateModelVersionOutput) String() string

String returns the string representation

type UpdateModelVersionRequest

type UpdateModelVersionRequest struct {
	*aws.Request
	Input *UpdateModelVersionInput
	Copy  func(*UpdateModelVersionInput) UpdateModelVersionRequest
}

UpdateModelVersionRequest is the request type for the UpdateModelVersion API operation.

func (UpdateModelVersionRequest) Send

Send marshals and sends the UpdateModelVersion API request.

type UpdateModelVersionResponse

type UpdateModelVersionResponse struct {
	*UpdateModelVersionOutput
	// contains filtered or unexported fields
}

UpdateModelVersionResponse is the response type for the UpdateModelVersion API operation.

func (*UpdateModelVersionResponse) SDKResponseMetdata

func (r *UpdateModelVersionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UpdateModelVersion request.

type UpdateRuleMetadataInput

type UpdateRuleMetadataInput struct {

	// The rule description.
	//
	// Description is a required field
	Description *string `locationName:"description" min:"1" type:"string" required:"true"`

	// The rule to update.
	//
	// Rule is a required field
	Rule *Rule `locationName:"rule" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateRuleMetadataInput) String

func (s UpdateRuleMetadataInput) String() string

String returns the string representation

func (*UpdateRuleMetadataInput) Validate

func (s *UpdateRuleMetadataInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateRuleMetadataOutput

type UpdateRuleMetadataOutput struct {
	// contains filtered or unexported fields
}

func (UpdateRuleMetadataOutput) String

func (s UpdateRuleMetadataOutput) String() string

String returns the string representation

type UpdateRuleMetadataRequest

type UpdateRuleMetadataRequest struct {
	*aws.Request
	Input *UpdateRuleMetadataInput
	Copy  func(*UpdateRuleMetadataInput) UpdateRuleMetadataRequest
}

UpdateRuleMetadataRequest is the request type for the UpdateRuleMetadata API operation.

func (UpdateRuleMetadataRequest) Send

Send marshals and sends the UpdateRuleMetadata API request.

type UpdateRuleMetadataResponse

type UpdateRuleMetadataResponse struct {
	*UpdateRuleMetadataOutput
	// contains filtered or unexported fields
}

UpdateRuleMetadataResponse is the response type for the UpdateRuleMetadata API operation.

func (*UpdateRuleMetadataResponse) SDKResponseMetdata

func (r *UpdateRuleMetadataResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UpdateRuleMetadata request.

type UpdateRuleVersionInput

type UpdateRuleVersionInput struct {

	// The description.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The rule expression.
	//
	// Expression is a required field
	Expression *string `locationName:"expression" min:"1" type:"string" required:"true"`

	// The language.
	//
	// Language is a required field
	Language Language `locationName:"language" type:"string" required:"true" enum:"true"`

	// The outcomes.
	//
	// Outcomes is a required field
	Outcomes []string `locationName:"outcomes" min:"1" type:"list" required:"true"`

	// The rule to update.
	//
	// Rule is a required field
	Rule *Rule `locationName:"rule" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateRuleVersionInput) String

func (s UpdateRuleVersionInput) String() string

String returns the string representation

func (*UpdateRuleVersionInput) Validate

func (s *UpdateRuleVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateRuleVersionOutput

type UpdateRuleVersionOutput struct {

	// The new rule version that was created.
	Rule *Rule `locationName:"rule" type:"structure"`
	// contains filtered or unexported fields
}

func (UpdateRuleVersionOutput) String

func (s UpdateRuleVersionOutput) String() string

String returns the string representation

type UpdateRuleVersionRequest

type UpdateRuleVersionRequest struct {
	*aws.Request
	Input *UpdateRuleVersionInput
	Copy  func(*UpdateRuleVersionInput) UpdateRuleVersionRequest
}

UpdateRuleVersionRequest is the request type for the UpdateRuleVersion API operation.

func (UpdateRuleVersionRequest) Send

Send marshals and sends the UpdateRuleVersion API request.

type UpdateRuleVersionResponse

type UpdateRuleVersionResponse struct {
	*UpdateRuleVersionOutput
	// contains filtered or unexported fields
}

UpdateRuleVersionResponse is the response type for the UpdateRuleVersion API operation.

func (*UpdateRuleVersionResponse) SDKResponseMetdata

func (r *UpdateRuleVersionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UpdateRuleVersion request.

type UpdateVariableInput

type UpdateVariableInput struct {

	// The new default value of the variable.
	DefaultValue *string `locationName:"defaultValue" type:"string"`

	// The new description.
	Description *string `locationName:"description" type:"string"`

	// The name of the variable.
	//
	// Name is a required field
	Name *string `locationName:"name" type:"string" required:"true"`

	// The variable type.
	VariableType *string `locationName:"variableType" type:"string"`
	// contains filtered or unexported fields
}

func (UpdateVariableInput) String

func (s UpdateVariableInput) String() string

String returns the string representation

func (*UpdateVariableInput) Validate

func (s *UpdateVariableInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateVariableOutput

type UpdateVariableOutput struct {
	// contains filtered or unexported fields
}

func (UpdateVariableOutput) String

func (s UpdateVariableOutput) String() string

String returns the string representation

type UpdateVariableRequest

type UpdateVariableRequest struct {
	*aws.Request
	Input *UpdateVariableInput
	Copy  func(*UpdateVariableInput) UpdateVariableRequest
}

UpdateVariableRequest is the request type for the UpdateVariable API operation.

func (UpdateVariableRequest) Send

Send marshals and sends the UpdateVariable API request.

type UpdateVariableResponse

type UpdateVariableResponse struct {
	*UpdateVariableOutput
	// contains filtered or unexported fields
}

UpdateVariableResponse is the response type for the UpdateVariable API operation.

func (*UpdateVariableResponse) SDKResponseMetdata

func (r *UpdateVariableResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UpdateVariable request.

type Variable

type Variable struct {

	// The time when the variable was created.
	CreatedTime *string `locationName:"createdTime" type:"string"`

	// The data source of the variable.
	DataSource DataSource `locationName:"dataSource" type:"string" enum:"true"`

	// The data type of the variable.
	DataType DataType `locationName:"dataType" type:"string" enum:"true"`

	// The default value of the variable.
	DefaultValue *string `locationName:"defaultValue" type:"string"`

	// The description of the variable.
	Description *string `locationName:"description" type:"string"`

	// The time when variable was last updated.
	LastUpdatedTime *string `locationName:"lastUpdatedTime" type:"string"`

	// The name of the variable.
	Name *string `locationName:"name" type:"string"`

	// The variable type of the variable.
	VariableType *string `locationName:"variableType" type:"string"`
	// contains filtered or unexported fields
}

The variable.

func (Variable) String

func (s Variable) String() string

String returns the string representation

type VariableEntry

type VariableEntry struct {

	// The data source of the variable entry.
	DataSource *string `locationName:"dataSource" type:"string"`

	// The data type of the variable entry.
	DataType *string `locationName:"dataType" type:"string"`

	// The default value of the variable entry.
	DefaultValue *string `locationName:"defaultValue" type:"string"`

	// The description of the variable entry.
	Description *string `locationName:"description" type:"string"`

	// The name of the variable entry.
	Name *string `locationName:"name" type:"string"`

	// The type of the variable entry.
	VariableType *string `locationName:"variableType" type:"string"`
	// contains filtered or unexported fields
}

The variable entry in a list.

func (VariableEntry) String

func (s VariableEntry) String() string

String returns the string representation

Directories

Path Synopsis
Package frauddetectoriface provides an interface to enable mocking the Amazon Fraud Detector service client for testing your code.
Package frauddetectoriface provides an interface to enable mocking the Amazon Fraud Detector service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL