github.com/aavshr/aws-sdk-go@v1.41.3/service/frauddetector/api.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package frauddetector 4 5 import ( 6 "fmt" 7 8 "github.com/aavshr/aws-sdk-go/aws" 9 "github.com/aavshr/aws-sdk-go/aws/awsutil" 10 "github.com/aavshr/aws-sdk-go/aws/request" 11 "github.com/aavshr/aws-sdk-go/private/protocol" 12 "github.com/aavshr/aws-sdk-go/private/protocol/jsonrpc" 13 ) 14 15 const opBatchCreateVariable = "BatchCreateVariable" 16 17 // BatchCreateVariableRequest generates a "aws/request.Request" representing the 18 // client's request for the BatchCreateVariable operation. The "output" return 19 // value will be populated with the request's response once the request completes 20 // successfully. 21 // 22 // Use "Send" method on the returned Request to send the API call to the service. 23 // the "output" return value is not valid until after Send returns without error. 24 // 25 // See BatchCreateVariable for more information on using the BatchCreateVariable 26 // API call, and error handling. 27 // 28 // This method is useful when you want to inject custom logic or configuration 29 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 30 // 31 // 32 // // Example sending a request using the BatchCreateVariableRequest method. 33 // req, resp := client.BatchCreateVariableRequest(params) 34 // 35 // err := req.Send() 36 // if err == nil { // resp is now filled 37 // fmt.Println(resp) 38 // } 39 // 40 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/BatchCreateVariable 41 func (c *FraudDetector) BatchCreateVariableRequest(input *BatchCreateVariableInput) (req *request.Request, output *BatchCreateVariableOutput) { 42 op := &request.Operation{ 43 Name: opBatchCreateVariable, 44 HTTPMethod: "POST", 45 HTTPPath: "/", 46 } 47 48 if input == nil { 49 input = &BatchCreateVariableInput{} 50 } 51 52 output = &BatchCreateVariableOutput{} 53 req = c.newRequest(op, input, output) 54 return 55 } 56 57 // BatchCreateVariable API operation for Amazon Fraud Detector. 58 // 59 // Creates a batch of variables. 60 // 61 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 62 // with awserr.Error's Code and Message methods to get detailed information about 63 // the error. 64 // 65 // See the AWS API reference guide for Amazon Fraud Detector's 66 // API operation BatchCreateVariable for usage and error information. 67 // 68 // Returned Error Types: 69 // * ValidationException 70 // An exception indicating a specified value is not allowed. 71 // 72 // * InternalServerException 73 // An exception indicating an internal server error. 74 // 75 // * ThrottlingException 76 // An exception indicating a throttling error. 77 // 78 // * AccessDeniedException 79 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 80 // This can occur if you submit a request, such as PutExternalModel, that specifies 81 // a role that is not in your account. 82 // 83 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/BatchCreateVariable 84 func (c *FraudDetector) BatchCreateVariable(input *BatchCreateVariableInput) (*BatchCreateVariableOutput, error) { 85 req, out := c.BatchCreateVariableRequest(input) 86 return out, req.Send() 87 } 88 89 // BatchCreateVariableWithContext is the same as BatchCreateVariable with the addition of 90 // the ability to pass a context and additional request options. 91 // 92 // See BatchCreateVariable for details on how to use this API operation. 93 // 94 // The context must be non-nil and will be used for request cancellation. If 95 // the context is nil a panic will occur. In the future the SDK may create 96 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 97 // for more information on using Contexts. 98 func (c *FraudDetector) BatchCreateVariableWithContext(ctx aws.Context, input *BatchCreateVariableInput, opts ...request.Option) (*BatchCreateVariableOutput, error) { 99 req, out := c.BatchCreateVariableRequest(input) 100 req.SetContext(ctx) 101 req.ApplyOptions(opts...) 102 return out, req.Send() 103 } 104 105 const opBatchGetVariable = "BatchGetVariable" 106 107 // BatchGetVariableRequest generates a "aws/request.Request" representing the 108 // client's request for the BatchGetVariable operation. The "output" return 109 // value will be populated with the request's response once the request completes 110 // successfully. 111 // 112 // Use "Send" method on the returned Request to send the API call to the service. 113 // the "output" return value is not valid until after Send returns without error. 114 // 115 // See BatchGetVariable for more information on using the BatchGetVariable 116 // API call, and error handling. 117 // 118 // This method is useful when you want to inject custom logic or configuration 119 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 120 // 121 // 122 // // Example sending a request using the BatchGetVariableRequest method. 123 // req, resp := client.BatchGetVariableRequest(params) 124 // 125 // err := req.Send() 126 // if err == nil { // resp is now filled 127 // fmt.Println(resp) 128 // } 129 // 130 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/BatchGetVariable 131 func (c *FraudDetector) BatchGetVariableRequest(input *BatchGetVariableInput) (req *request.Request, output *BatchGetVariableOutput) { 132 op := &request.Operation{ 133 Name: opBatchGetVariable, 134 HTTPMethod: "POST", 135 HTTPPath: "/", 136 } 137 138 if input == nil { 139 input = &BatchGetVariableInput{} 140 } 141 142 output = &BatchGetVariableOutput{} 143 req = c.newRequest(op, input, output) 144 return 145 } 146 147 // BatchGetVariable API operation for Amazon Fraud Detector. 148 // 149 // Gets a batch of variables. 150 // 151 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 152 // with awserr.Error's Code and Message methods to get detailed information about 153 // the error. 154 // 155 // See the AWS API reference guide for Amazon Fraud Detector's 156 // API operation BatchGetVariable for usage and error information. 157 // 158 // Returned Error Types: 159 // * ValidationException 160 // An exception indicating a specified value is not allowed. 161 // 162 // * InternalServerException 163 // An exception indicating an internal server error. 164 // 165 // * ThrottlingException 166 // An exception indicating a throttling error. 167 // 168 // * AccessDeniedException 169 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 170 // This can occur if you submit a request, such as PutExternalModel, that specifies 171 // a role that is not in your account. 172 // 173 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/BatchGetVariable 174 func (c *FraudDetector) BatchGetVariable(input *BatchGetVariableInput) (*BatchGetVariableOutput, error) { 175 req, out := c.BatchGetVariableRequest(input) 176 return out, req.Send() 177 } 178 179 // BatchGetVariableWithContext is the same as BatchGetVariable with the addition of 180 // the ability to pass a context and additional request options. 181 // 182 // See BatchGetVariable for details on how to use this API operation. 183 // 184 // The context must be non-nil and will be used for request cancellation. If 185 // the context is nil a panic will occur. In the future the SDK may create 186 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 187 // for more information on using Contexts. 188 func (c *FraudDetector) BatchGetVariableWithContext(ctx aws.Context, input *BatchGetVariableInput, opts ...request.Option) (*BatchGetVariableOutput, error) { 189 req, out := c.BatchGetVariableRequest(input) 190 req.SetContext(ctx) 191 req.ApplyOptions(opts...) 192 return out, req.Send() 193 } 194 195 const opCancelBatchImportJob = "CancelBatchImportJob" 196 197 // CancelBatchImportJobRequest generates a "aws/request.Request" representing the 198 // client's request for the CancelBatchImportJob operation. The "output" return 199 // value will be populated with the request's response once the request completes 200 // successfully. 201 // 202 // Use "Send" method on the returned Request to send the API call to the service. 203 // the "output" return value is not valid until after Send returns without error. 204 // 205 // See CancelBatchImportJob for more information on using the CancelBatchImportJob 206 // API call, and error handling. 207 // 208 // This method is useful when you want to inject custom logic or configuration 209 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 210 // 211 // 212 // // Example sending a request using the CancelBatchImportJobRequest method. 213 // req, resp := client.CancelBatchImportJobRequest(params) 214 // 215 // err := req.Send() 216 // if err == nil { // resp is now filled 217 // fmt.Println(resp) 218 // } 219 // 220 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CancelBatchImportJob 221 func (c *FraudDetector) CancelBatchImportJobRequest(input *CancelBatchImportJobInput) (req *request.Request, output *CancelBatchImportJobOutput) { 222 op := &request.Operation{ 223 Name: opCancelBatchImportJob, 224 HTTPMethod: "POST", 225 HTTPPath: "/", 226 } 227 228 if input == nil { 229 input = &CancelBatchImportJobInput{} 230 } 231 232 output = &CancelBatchImportJobOutput{} 233 req = c.newRequest(op, input, output) 234 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 235 return 236 } 237 238 // CancelBatchImportJob API operation for Amazon Fraud Detector. 239 // 240 // Cancels an in-progress batch import job. 241 // 242 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 243 // with awserr.Error's Code and Message methods to get detailed information about 244 // the error. 245 // 246 // See the AWS API reference guide for Amazon Fraud Detector's 247 // API operation CancelBatchImportJob for usage and error information. 248 // 249 // Returned Error Types: 250 // * ValidationException 251 // An exception indicating a specified value is not allowed. 252 // 253 // * ResourceNotFoundException 254 // An exception indicating the specified resource was not found. 255 // 256 // * InternalServerException 257 // An exception indicating an internal server error. 258 // 259 // * ThrottlingException 260 // An exception indicating a throttling error. 261 // 262 // * AccessDeniedException 263 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 264 // This can occur if you submit a request, such as PutExternalModel, that specifies 265 // a role that is not in your account. 266 // 267 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CancelBatchImportJob 268 func (c *FraudDetector) CancelBatchImportJob(input *CancelBatchImportJobInput) (*CancelBatchImportJobOutput, error) { 269 req, out := c.CancelBatchImportJobRequest(input) 270 return out, req.Send() 271 } 272 273 // CancelBatchImportJobWithContext is the same as CancelBatchImportJob with the addition of 274 // the ability to pass a context and additional request options. 275 // 276 // See CancelBatchImportJob for details on how to use this API operation. 277 // 278 // The context must be non-nil and will be used for request cancellation. If 279 // the context is nil a panic will occur. In the future the SDK may create 280 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 281 // for more information on using Contexts. 282 func (c *FraudDetector) CancelBatchImportJobWithContext(ctx aws.Context, input *CancelBatchImportJobInput, opts ...request.Option) (*CancelBatchImportJobOutput, error) { 283 req, out := c.CancelBatchImportJobRequest(input) 284 req.SetContext(ctx) 285 req.ApplyOptions(opts...) 286 return out, req.Send() 287 } 288 289 const opCancelBatchPredictionJob = "CancelBatchPredictionJob" 290 291 // CancelBatchPredictionJobRequest generates a "aws/request.Request" representing the 292 // client's request for the CancelBatchPredictionJob operation. The "output" return 293 // value will be populated with the request's response once the request completes 294 // successfully. 295 // 296 // Use "Send" method on the returned Request to send the API call to the service. 297 // the "output" return value is not valid until after Send returns without error. 298 // 299 // See CancelBatchPredictionJob for more information on using the CancelBatchPredictionJob 300 // API call, and error handling. 301 // 302 // This method is useful when you want to inject custom logic or configuration 303 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 304 // 305 // 306 // // Example sending a request using the CancelBatchPredictionJobRequest method. 307 // req, resp := client.CancelBatchPredictionJobRequest(params) 308 // 309 // err := req.Send() 310 // if err == nil { // resp is now filled 311 // fmt.Println(resp) 312 // } 313 // 314 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CancelBatchPredictionJob 315 func (c *FraudDetector) CancelBatchPredictionJobRequest(input *CancelBatchPredictionJobInput) (req *request.Request, output *CancelBatchPredictionJobOutput) { 316 op := &request.Operation{ 317 Name: opCancelBatchPredictionJob, 318 HTTPMethod: "POST", 319 HTTPPath: "/", 320 } 321 322 if input == nil { 323 input = &CancelBatchPredictionJobInput{} 324 } 325 326 output = &CancelBatchPredictionJobOutput{} 327 req = c.newRequest(op, input, output) 328 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 329 return 330 } 331 332 // CancelBatchPredictionJob API operation for Amazon Fraud Detector. 333 // 334 // Cancels the specified batch prediction job. 335 // 336 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 337 // with awserr.Error's Code and Message methods to get detailed information about 338 // the error. 339 // 340 // See the AWS API reference guide for Amazon Fraud Detector's 341 // API operation CancelBatchPredictionJob for usage and error information. 342 // 343 // Returned Error Types: 344 // * ValidationException 345 // An exception indicating a specified value is not allowed. 346 // 347 // * ResourceNotFoundException 348 // An exception indicating the specified resource was not found. 349 // 350 // * InternalServerException 351 // An exception indicating an internal server error. 352 // 353 // * ThrottlingException 354 // An exception indicating a throttling error. 355 // 356 // * AccessDeniedException 357 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 358 // This can occur if you submit a request, such as PutExternalModel, that specifies 359 // a role that is not in your account. 360 // 361 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CancelBatchPredictionJob 362 func (c *FraudDetector) CancelBatchPredictionJob(input *CancelBatchPredictionJobInput) (*CancelBatchPredictionJobOutput, error) { 363 req, out := c.CancelBatchPredictionJobRequest(input) 364 return out, req.Send() 365 } 366 367 // CancelBatchPredictionJobWithContext is the same as CancelBatchPredictionJob with the addition of 368 // the ability to pass a context and additional request options. 369 // 370 // See CancelBatchPredictionJob for details on how to use this API operation. 371 // 372 // The context must be non-nil and will be used for request cancellation. If 373 // the context is nil a panic will occur. In the future the SDK may create 374 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 375 // for more information on using Contexts. 376 func (c *FraudDetector) CancelBatchPredictionJobWithContext(ctx aws.Context, input *CancelBatchPredictionJobInput, opts ...request.Option) (*CancelBatchPredictionJobOutput, error) { 377 req, out := c.CancelBatchPredictionJobRequest(input) 378 req.SetContext(ctx) 379 req.ApplyOptions(opts...) 380 return out, req.Send() 381 } 382 383 const opCreateBatchImportJob = "CreateBatchImportJob" 384 385 // CreateBatchImportJobRequest generates a "aws/request.Request" representing the 386 // client's request for the CreateBatchImportJob operation. The "output" return 387 // value will be populated with the request's response once the request completes 388 // successfully. 389 // 390 // Use "Send" method on the returned Request to send the API call to the service. 391 // the "output" return value is not valid until after Send returns without error. 392 // 393 // See CreateBatchImportJob for more information on using the CreateBatchImportJob 394 // API call, and error handling. 395 // 396 // This method is useful when you want to inject custom logic or configuration 397 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 398 // 399 // 400 // // Example sending a request using the CreateBatchImportJobRequest method. 401 // req, resp := client.CreateBatchImportJobRequest(params) 402 // 403 // err := req.Send() 404 // if err == nil { // resp is now filled 405 // fmt.Println(resp) 406 // } 407 // 408 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateBatchImportJob 409 func (c *FraudDetector) CreateBatchImportJobRequest(input *CreateBatchImportJobInput) (req *request.Request, output *CreateBatchImportJobOutput) { 410 op := &request.Operation{ 411 Name: opCreateBatchImportJob, 412 HTTPMethod: "POST", 413 HTTPPath: "/", 414 } 415 416 if input == nil { 417 input = &CreateBatchImportJobInput{} 418 } 419 420 output = &CreateBatchImportJobOutput{} 421 req = c.newRequest(op, input, output) 422 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 423 return 424 } 425 426 // CreateBatchImportJob API operation for Amazon Fraud Detector. 427 // 428 // Creates a batch import job. 429 // 430 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 431 // with awserr.Error's Code and Message methods to get detailed information about 432 // the error. 433 // 434 // See the AWS API reference guide for Amazon Fraud Detector's 435 // API operation CreateBatchImportJob for usage and error information. 436 // 437 // Returned Error Types: 438 // * ValidationException 439 // An exception indicating a specified value is not allowed. 440 // 441 // * ResourceNotFoundException 442 // An exception indicating the specified resource was not found. 443 // 444 // * InternalServerException 445 // An exception indicating an internal server error. 446 // 447 // * ThrottlingException 448 // An exception indicating a throttling error. 449 // 450 // * AccessDeniedException 451 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 452 // This can occur if you submit a request, such as PutExternalModel, that specifies 453 // a role that is not in your account. 454 // 455 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateBatchImportJob 456 func (c *FraudDetector) CreateBatchImportJob(input *CreateBatchImportJobInput) (*CreateBatchImportJobOutput, error) { 457 req, out := c.CreateBatchImportJobRequest(input) 458 return out, req.Send() 459 } 460 461 // CreateBatchImportJobWithContext is the same as CreateBatchImportJob with the addition of 462 // the ability to pass a context and additional request options. 463 // 464 // See CreateBatchImportJob for details on how to use this API operation. 465 // 466 // The context must be non-nil and will be used for request cancellation. If 467 // the context is nil a panic will occur. In the future the SDK may create 468 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 469 // for more information on using Contexts. 470 func (c *FraudDetector) CreateBatchImportJobWithContext(ctx aws.Context, input *CreateBatchImportJobInput, opts ...request.Option) (*CreateBatchImportJobOutput, error) { 471 req, out := c.CreateBatchImportJobRequest(input) 472 req.SetContext(ctx) 473 req.ApplyOptions(opts...) 474 return out, req.Send() 475 } 476 477 const opCreateBatchPredictionJob = "CreateBatchPredictionJob" 478 479 // CreateBatchPredictionJobRequest generates a "aws/request.Request" representing the 480 // client's request for the CreateBatchPredictionJob operation. The "output" return 481 // value will be populated with the request's response once the request completes 482 // successfully. 483 // 484 // Use "Send" method on the returned Request to send the API call to the service. 485 // the "output" return value is not valid until after Send returns without error. 486 // 487 // See CreateBatchPredictionJob for more information on using the CreateBatchPredictionJob 488 // API call, and error handling. 489 // 490 // This method is useful when you want to inject custom logic or configuration 491 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 492 // 493 // 494 // // Example sending a request using the CreateBatchPredictionJobRequest method. 495 // req, resp := client.CreateBatchPredictionJobRequest(params) 496 // 497 // err := req.Send() 498 // if err == nil { // resp is now filled 499 // fmt.Println(resp) 500 // } 501 // 502 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateBatchPredictionJob 503 func (c *FraudDetector) CreateBatchPredictionJobRequest(input *CreateBatchPredictionJobInput) (req *request.Request, output *CreateBatchPredictionJobOutput) { 504 op := &request.Operation{ 505 Name: opCreateBatchPredictionJob, 506 HTTPMethod: "POST", 507 HTTPPath: "/", 508 } 509 510 if input == nil { 511 input = &CreateBatchPredictionJobInput{} 512 } 513 514 output = &CreateBatchPredictionJobOutput{} 515 req = c.newRequest(op, input, output) 516 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 517 return 518 } 519 520 // CreateBatchPredictionJob API operation for Amazon Fraud Detector. 521 // 522 // Creates a batch prediction job. 523 // 524 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 525 // with awserr.Error's Code and Message methods to get detailed information about 526 // the error. 527 // 528 // See the AWS API reference guide for Amazon Fraud Detector's 529 // API operation CreateBatchPredictionJob for usage and error information. 530 // 531 // Returned Error Types: 532 // * ValidationException 533 // An exception indicating a specified value is not allowed. 534 // 535 // * InternalServerException 536 // An exception indicating an internal server error. 537 // 538 // * ThrottlingException 539 // An exception indicating a throttling error. 540 // 541 // * AccessDeniedException 542 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 543 // This can occur if you submit a request, such as PutExternalModel, that specifies 544 // a role that is not in your account. 545 // 546 // * ResourceNotFoundException 547 // An exception indicating the specified resource was not found. 548 // 549 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateBatchPredictionJob 550 func (c *FraudDetector) CreateBatchPredictionJob(input *CreateBatchPredictionJobInput) (*CreateBatchPredictionJobOutput, error) { 551 req, out := c.CreateBatchPredictionJobRequest(input) 552 return out, req.Send() 553 } 554 555 // CreateBatchPredictionJobWithContext is the same as CreateBatchPredictionJob with the addition of 556 // the ability to pass a context and additional request options. 557 // 558 // See CreateBatchPredictionJob for details on how to use this API operation. 559 // 560 // The context must be non-nil and will be used for request cancellation. If 561 // the context is nil a panic will occur. In the future the SDK may create 562 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 563 // for more information on using Contexts. 564 func (c *FraudDetector) CreateBatchPredictionJobWithContext(ctx aws.Context, input *CreateBatchPredictionJobInput, opts ...request.Option) (*CreateBatchPredictionJobOutput, error) { 565 req, out := c.CreateBatchPredictionJobRequest(input) 566 req.SetContext(ctx) 567 req.ApplyOptions(opts...) 568 return out, req.Send() 569 } 570 571 const opCreateDetectorVersion = "CreateDetectorVersion" 572 573 // CreateDetectorVersionRequest generates a "aws/request.Request" representing the 574 // client's request for the CreateDetectorVersion operation. The "output" return 575 // value will be populated with the request's response once the request completes 576 // successfully. 577 // 578 // Use "Send" method on the returned Request to send the API call to the service. 579 // the "output" return value is not valid until after Send returns without error. 580 // 581 // See CreateDetectorVersion for more information on using the CreateDetectorVersion 582 // API call, and error handling. 583 // 584 // This method is useful when you want to inject custom logic or configuration 585 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 586 // 587 // 588 // // Example sending a request using the CreateDetectorVersionRequest method. 589 // req, resp := client.CreateDetectorVersionRequest(params) 590 // 591 // err := req.Send() 592 // if err == nil { // resp is now filled 593 // fmt.Println(resp) 594 // } 595 // 596 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateDetectorVersion 597 func (c *FraudDetector) CreateDetectorVersionRequest(input *CreateDetectorVersionInput) (req *request.Request, output *CreateDetectorVersionOutput) { 598 op := &request.Operation{ 599 Name: opCreateDetectorVersion, 600 HTTPMethod: "POST", 601 HTTPPath: "/", 602 } 603 604 if input == nil { 605 input = &CreateDetectorVersionInput{} 606 } 607 608 output = &CreateDetectorVersionOutput{} 609 req = c.newRequest(op, input, output) 610 return 611 } 612 613 // CreateDetectorVersion API operation for Amazon Fraud Detector. 614 // 615 // Creates a detector version. The detector version starts in a DRAFT status. 616 // 617 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 618 // with awserr.Error's Code and Message methods to get detailed information about 619 // the error. 620 // 621 // See the AWS API reference guide for Amazon Fraud Detector's 622 // API operation CreateDetectorVersion for usage and error information. 623 // 624 // Returned Error Types: 625 // * ValidationException 626 // An exception indicating a specified value is not allowed. 627 // 628 // * ResourceNotFoundException 629 // An exception indicating the specified resource was not found. 630 // 631 // * InternalServerException 632 // An exception indicating an internal server error. 633 // 634 // * ThrottlingException 635 // An exception indicating a throttling error. 636 // 637 // * AccessDeniedException 638 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 639 // This can occur if you submit a request, such as PutExternalModel, that specifies 640 // a role that is not in your account. 641 // 642 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateDetectorVersion 643 func (c *FraudDetector) CreateDetectorVersion(input *CreateDetectorVersionInput) (*CreateDetectorVersionOutput, error) { 644 req, out := c.CreateDetectorVersionRequest(input) 645 return out, req.Send() 646 } 647 648 // CreateDetectorVersionWithContext is the same as CreateDetectorVersion with the addition of 649 // the ability to pass a context and additional request options. 650 // 651 // See CreateDetectorVersion for details on how to use this API operation. 652 // 653 // The context must be non-nil and will be used for request cancellation. If 654 // the context is nil a panic will occur. In the future the SDK may create 655 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 656 // for more information on using Contexts. 657 func (c *FraudDetector) CreateDetectorVersionWithContext(ctx aws.Context, input *CreateDetectorVersionInput, opts ...request.Option) (*CreateDetectorVersionOutput, error) { 658 req, out := c.CreateDetectorVersionRequest(input) 659 req.SetContext(ctx) 660 req.ApplyOptions(opts...) 661 return out, req.Send() 662 } 663 664 const opCreateModel = "CreateModel" 665 666 // CreateModelRequest generates a "aws/request.Request" representing the 667 // client's request for the CreateModel operation. The "output" return 668 // value will be populated with the request's response once the request completes 669 // successfully. 670 // 671 // Use "Send" method on the returned Request to send the API call to the service. 672 // the "output" return value is not valid until after Send returns without error. 673 // 674 // See CreateModel for more information on using the CreateModel 675 // API call, and error handling. 676 // 677 // This method is useful when you want to inject custom logic or configuration 678 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 679 // 680 // 681 // // Example sending a request using the CreateModelRequest method. 682 // req, resp := client.CreateModelRequest(params) 683 // 684 // err := req.Send() 685 // if err == nil { // resp is now filled 686 // fmt.Println(resp) 687 // } 688 // 689 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateModel 690 func (c *FraudDetector) CreateModelRequest(input *CreateModelInput) (req *request.Request, output *CreateModelOutput) { 691 op := &request.Operation{ 692 Name: opCreateModel, 693 HTTPMethod: "POST", 694 HTTPPath: "/", 695 } 696 697 if input == nil { 698 input = &CreateModelInput{} 699 } 700 701 output = &CreateModelOutput{} 702 req = c.newRequest(op, input, output) 703 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 704 return 705 } 706 707 // CreateModel API operation for Amazon Fraud Detector. 708 // 709 // Creates a model using the specified model type. 710 // 711 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 712 // with awserr.Error's Code and Message methods to get detailed information about 713 // the error. 714 // 715 // See the AWS API reference guide for Amazon Fraud Detector's 716 // API operation CreateModel for usage and error information. 717 // 718 // Returned Error Types: 719 // * ValidationException 720 // An exception indicating a specified value is not allowed. 721 // 722 // * InternalServerException 723 // An exception indicating an internal server error. 724 // 725 // * ThrottlingException 726 // An exception indicating a throttling error. 727 // 728 // * AccessDeniedException 729 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 730 // This can occur if you submit a request, such as PutExternalModel, that specifies 731 // a role that is not in your account. 732 // 733 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateModel 734 func (c *FraudDetector) CreateModel(input *CreateModelInput) (*CreateModelOutput, error) { 735 req, out := c.CreateModelRequest(input) 736 return out, req.Send() 737 } 738 739 // CreateModelWithContext is the same as CreateModel with the addition of 740 // the ability to pass a context and additional request options. 741 // 742 // See CreateModel for details on how to use this API operation. 743 // 744 // The context must be non-nil and will be used for request cancellation. If 745 // the context is nil a panic will occur. In the future the SDK may create 746 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 747 // for more information on using Contexts. 748 func (c *FraudDetector) CreateModelWithContext(ctx aws.Context, input *CreateModelInput, opts ...request.Option) (*CreateModelOutput, error) { 749 req, out := c.CreateModelRequest(input) 750 req.SetContext(ctx) 751 req.ApplyOptions(opts...) 752 return out, req.Send() 753 } 754 755 const opCreateModelVersion = "CreateModelVersion" 756 757 // CreateModelVersionRequest generates a "aws/request.Request" representing the 758 // client's request for the CreateModelVersion operation. The "output" return 759 // value will be populated with the request's response once the request completes 760 // successfully. 761 // 762 // Use "Send" method on the returned Request to send the API call to the service. 763 // the "output" return value is not valid until after Send returns without error. 764 // 765 // See CreateModelVersion for more information on using the CreateModelVersion 766 // API call, and error handling. 767 // 768 // This method is useful when you want to inject custom logic or configuration 769 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 770 // 771 // 772 // // Example sending a request using the CreateModelVersionRequest method. 773 // req, resp := client.CreateModelVersionRequest(params) 774 // 775 // err := req.Send() 776 // if err == nil { // resp is now filled 777 // fmt.Println(resp) 778 // } 779 // 780 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateModelVersion 781 func (c *FraudDetector) CreateModelVersionRequest(input *CreateModelVersionInput) (req *request.Request, output *CreateModelVersionOutput) { 782 op := &request.Operation{ 783 Name: opCreateModelVersion, 784 HTTPMethod: "POST", 785 HTTPPath: "/", 786 } 787 788 if input == nil { 789 input = &CreateModelVersionInput{} 790 } 791 792 output = &CreateModelVersionOutput{} 793 req = c.newRequest(op, input, output) 794 return 795 } 796 797 // CreateModelVersion API operation for Amazon Fraud Detector. 798 // 799 // Creates a version of the model using the specified model type and model id. 800 // 801 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 802 // with awserr.Error's Code and Message methods to get detailed information about 803 // the error. 804 // 805 // See the AWS API reference guide for Amazon Fraud Detector's 806 // API operation CreateModelVersion for usage and error information. 807 // 808 // Returned Error Types: 809 // * ValidationException 810 // An exception indicating a specified value is not allowed. 811 // 812 // * ResourceNotFoundException 813 // An exception indicating the specified resource was not found. 814 // 815 // * AccessDeniedException 816 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 817 // This can occur if you submit a request, such as PutExternalModel, that specifies 818 // a role that is not in your account. 819 // 820 // * ThrottlingException 821 // An exception indicating a throttling error. 822 // 823 // * InternalServerException 824 // An exception indicating an internal server error. 825 // 826 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateModelVersion 827 func (c *FraudDetector) CreateModelVersion(input *CreateModelVersionInput) (*CreateModelVersionOutput, error) { 828 req, out := c.CreateModelVersionRequest(input) 829 return out, req.Send() 830 } 831 832 // CreateModelVersionWithContext is the same as CreateModelVersion with the addition of 833 // the ability to pass a context and additional request options. 834 // 835 // See CreateModelVersion for details on how to use this API operation. 836 // 837 // The context must be non-nil and will be used for request cancellation. If 838 // the context is nil a panic will occur. In the future the SDK may create 839 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 840 // for more information on using Contexts. 841 func (c *FraudDetector) CreateModelVersionWithContext(ctx aws.Context, input *CreateModelVersionInput, opts ...request.Option) (*CreateModelVersionOutput, error) { 842 req, out := c.CreateModelVersionRequest(input) 843 req.SetContext(ctx) 844 req.ApplyOptions(opts...) 845 return out, req.Send() 846 } 847 848 const opCreateRule = "CreateRule" 849 850 // CreateRuleRequest generates a "aws/request.Request" representing the 851 // client's request for the CreateRule operation. The "output" return 852 // value will be populated with the request's response once the request completes 853 // successfully. 854 // 855 // Use "Send" method on the returned Request to send the API call to the service. 856 // the "output" return value is not valid until after Send returns without error. 857 // 858 // See CreateRule for more information on using the CreateRule 859 // API call, and error handling. 860 // 861 // This method is useful when you want to inject custom logic or configuration 862 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 863 // 864 // 865 // // Example sending a request using the CreateRuleRequest method. 866 // req, resp := client.CreateRuleRequest(params) 867 // 868 // err := req.Send() 869 // if err == nil { // resp is now filled 870 // fmt.Println(resp) 871 // } 872 // 873 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateRule 874 func (c *FraudDetector) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, output *CreateRuleOutput) { 875 op := &request.Operation{ 876 Name: opCreateRule, 877 HTTPMethod: "POST", 878 HTTPPath: "/", 879 } 880 881 if input == nil { 882 input = &CreateRuleInput{} 883 } 884 885 output = &CreateRuleOutput{} 886 req = c.newRequest(op, input, output) 887 return 888 } 889 890 // CreateRule API operation for Amazon Fraud Detector. 891 // 892 // Creates a rule for use with the specified detector. 893 // 894 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 895 // with awserr.Error's Code and Message methods to get detailed information about 896 // the error. 897 // 898 // See the AWS API reference guide for Amazon Fraud Detector's 899 // API operation CreateRule for usage and error information. 900 // 901 // Returned Error Types: 902 // * ValidationException 903 // An exception indicating a specified value is not allowed. 904 // 905 // * InternalServerException 906 // An exception indicating an internal server error. 907 // 908 // * ThrottlingException 909 // An exception indicating a throttling error. 910 // 911 // * AccessDeniedException 912 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 913 // This can occur if you submit a request, such as PutExternalModel, that specifies 914 // a role that is not in your account. 915 // 916 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateRule 917 func (c *FraudDetector) CreateRule(input *CreateRuleInput) (*CreateRuleOutput, error) { 918 req, out := c.CreateRuleRequest(input) 919 return out, req.Send() 920 } 921 922 // CreateRuleWithContext is the same as CreateRule with the addition of 923 // the ability to pass a context and additional request options. 924 // 925 // See CreateRule for details on how to use this API operation. 926 // 927 // The context must be non-nil and will be used for request cancellation. If 928 // the context is nil a panic will occur. In the future the SDK may create 929 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 930 // for more information on using Contexts. 931 func (c *FraudDetector) CreateRuleWithContext(ctx aws.Context, input *CreateRuleInput, opts ...request.Option) (*CreateRuleOutput, error) { 932 req, out := c.CreateRuleRequest(input) 933 req.SetContext(ctx) 934 req.ApplyOptions(opts...) 935 return out, req.Send() 936 } 937 938 const opCreateVariable = "CreateVariable" 939 940 // CreateVariableRequest generates a "aws/request.Request" representing the 941 // client's request for the CreateVariable operation. The "output" return 942 // value will be populated with the request's response once the request completes 943 // successfully. 944 // 945 // Use "Send" method on the returned Request to send the API call to the service. 946 // the "output" return value is not valid until after Send returns without error. 947 // 948 // See CreateVariable for more information on using the CreateVariable 949 // API call, and error handling. 950 // 951 // This method is useful when you want to inject custom logic or configuration 952 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 953 // 954 // 955 // // Example sending a request using the CreateVariableRequest method. 956 // req, resp := client.CreateVariableRequest(params) 957 // 958 // err := req.Send() 959 // if err == nil { // resp is now filled 960 // fmt.Println(resp) 961 // } 962 // 963 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateVariable 964 func (c *FraudDetector) CreateVariableRequest(input *CreateVariableInput) (req *request.Request, output *CreateVariableOutput) { 965 op := &request.Operation{ 966 Name: opCreateVariable, 967 HTTPMethod: "POST", 968 HTTPPath: "/", 969 } 970 971 if input == nil { 972 input = &CreateVariableInput{} 973 } 974 975 output = &CreateVariableOutput{} 976 req = c.newRequest(op, input, output) 977 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 978 return 979 } 980 981 // CreateVariable API operation for Amazon Fraud Detector. 982 // 983 // Creates a variable. 984 // 985 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 986 // with awserr.Error's Code and Message methods to get detailed information about 987 // the error. 988 // 989 // See the AWS API reference guide for Amazon Fraud Detector's 990 // API operation CreateVariable for usage and error information. 991 // 992 // Returned Error Types: 993 // * ValidationException 994 // An exception indicating a specified value is not allowed. 995 // 996 // * InternalServerException 997 // An exception indicating an internal server error. 998 // 999 // * ThrottlingException 1000 // An exception indicating a throttling error. 1001 // 1002 // * AccessDeniedException 1003 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 1004 // This can occur if you submit a request, such as PutExternalModel, that specifies 1005 // a role that is not in your account. 1006 // 1007 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateVariable 1008 func (c *FraudDetector) CreateVariable(input *CreateVariableInput) (*CreateVariableOutput, error) { 1009 req, out := c.CreateVariableRequest(input) 1010 return out, req.Send() 1011 } 1012 1013 // CreateVariableWithContext is the same as CreateVariable with the addition of 1014 // the ability to pass a context and additional request options. 1015 // 1016 // See CreateVariable for details on how to use this API operation. 1017 // 1018 // The context must be non-nil and will be used for request cancellation. If 1019 // the context is nil a panic will occur. In the future the SDK may create 1020 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1021 // for more information on using Contexts. 1022 func (c *FraudDetector) CreateVariableWithContext(ctx aws.Context, input *CreateVariableInput, opts ...request.Option) (*CreateVariableOutput, error) { 1023 req, out := c.CreateVariableRequest(input) 1024 req.SetContext(ctx) 1025 req.ApplyOptions(opts...) 1026 return out, req.Send() 1027 } 1028 1029 const opDeleteBatchImportJob = "DeleteBatchImportJob" 1030 1031 // DeleteBatchImportJobRequest generates a "aws/request.Request" representing the 1032 // client's request for the DeleteBatchImportJob operation. The "output" return 1033 // value will be populated with the request's response once the request completes 1034 // successfully. 1035 // 1036 // Use "Send" method on the returned Request to send the API call to the service. 1037 // the "output" return value is not valid until after Send returns without error. 1038 // 1039 // See DeleteBatchImportJob for more information on using the DeleteBatchImportJob 1040 // API call, and error handling. 1041 // 1042 // This method is useful when you want to inject custom logic or configuration 1043 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1044 // 1045 // 1046 // // Example sending a request using the DeleteBatchImportJobRequest method. 1047 // req, resp := client.DeleteBatchImportJobRequest(params) 1048 // 1049 // err := req.Send() 1050 // if err == nil { // resp is now filled 1051 // fmt.Println(resp) 1052 // } 1053 // 1054 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteBatchImportJob 1055 func (c *FraudDetector) DeleteBatchImportJobRequest(input *DeleteBatchImportJobInput) (req *request.Request, output *DeleteBatchImportJobOutput) { 1056 op := &request.Operation{ 1057 Name: opDeleteBatchImportJob, 1058 HTTPMethod: "POST", 1059 HTTPPath: "/", 1060 } 1061 1062 if input == nil { 1063 input = &DeleteBatchImportJobInput{} 1064 } 1065 1066 output = &DeleteBatchImportJobOutput{} 1067 req = c.newRequest(op, input, output) 1068 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1069 return 1070 } 1071 1072 // DeleteBatchImportJob API operation for Amazon Fraud Detector. 1073 // 1074 // Deletes data that was batch imported to Amazon Fraud Detector. 1075 // 1076 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1077 // with awserr.Error's Code and Message methods to get detailed information about 1078 // the error. 1079 // 1080 // See the AWS API reference guide for Amazon Fraud Detector's 1081 // API operation DeleteBatchImportJob for usage and error information. 1082 // 1083 // Returned Error Types: 1084 // * ValidationException 1085 // An exception indicating a specified value is not allowed. 1086 // 1087 // * InternalServerException 1088 // An exception indicating an internal server error. 1089 // 1090 // * ThrottlingException 1091 // An exception indicating a throttling error. 1092 // 1093 // * AccessDeniedException 1094 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 1095 // This can occur if you submit a request, such as PutExternalModel, that specifies 1096 // a role that is not in your account. 1097 // 1098 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteBatchImportJob 1099 func (c *FraudDetector) DeleteBatchImportJob(input *DeleteBatchImportJobInput) (*DeleteBatchImportJobOutput, error) { 1100 req, out := c.DeleteBatchImportJobRequest(input) 1101 return out, req.Send() 1102 } 1103 1104 // DeleteBatchImportJobWithContext is the same as DeleteBatchImportJob with the addition of 1105 // the ability to pass a context and additional request options. 1106 // 1107 // See DeleteBatchImportJob for details on how to use this API operation. 1108 // 1109 // The context must be non-nil and will be used for request cancellation. If 1110 // the context is nil a panic will occur. In the future the SDK may create 1111 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1112 // for more information on using Contexts. 1113 func (c *FraudDetector) DeleteBatchImportJobWithContext(ctx aws.Context, input *DeleteBatchImportJobInput, opts ...request.Option) (*DeleteBatchImportJobOutput, error) { 1114 req, out := c.DeleteBatchImportJobRequest(input) 1115 req.SetContext(ctx) 1116 req.ApplyOptions(opts...) 1117 return out, req.Send() 1118 } 1119 1120 const opDeleteBatchPredictionJob = "DeleteBatchPredictionJob" 1121 1122 // DeleteBatchPredictionJobRequest generates a "aws/request.Request" representing the 1123 // client's request for the DeleteBatchPredictionJob operation. The "output" return 1124 // value will be populated with the request's response once the request completes 1125 // successfully. 1126 // 1127 // Use "Send" method on the returned Request to send the API call to the service. 1128 // the "output" return value is not valid until after Send returns without error. 1129 // 1130 // See DeleteBatchPredictionJob for more information on using the DeleteBatchPredictionJob 1131 // API call, and error handling. 1132 // 1133 // This method is useful when you want to inject custom logic or configuration 1134 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1135 // 1136 // 1137 // // Example sending a request using the DeleteBatchPredictionJobRequest method. 1138 // req, resp := client.DeleteBatchPredictionJobRequest(params) 1139 // 1140 // err := req.Send() 1141 // if err == nil { // resp is now filled 1142 // fmt.Println(resp) 1143 // } 1144 // 1145 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteBatchPredictionJob 1146 func (c *FraudDetector) DeleteBatchPredictionJobRequest(input *DeleteBatchPredictionJobInput) (req *request.Request, output *DeleteBatchPredictionJobOutput) { 1147 op := &request.Operation{ 1148 Name: opDeleteBatchPredictionJob, 1149 HTTPMethod: "POST", 1150 HTTPPath: "/", 1151 } 1152 1153 if input == nil { 1154 input = &DeleteBatchPredictionJobInput{} 1155 } 1156 1157 output = &DeleteBatchPredictionJobOutput{} 1158 req = c.newRequest(op, input, output) 1159 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1160 return 1161 } 1162 1163 // DeleteBatchPredictionJob API operation for Amazon Fraud Detector. 1164 // 1165 // Deletes a batch prediction job. 1166 // 1167 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1168 // with awserr.Error's Code and Message methods to get detailed information about 1169 // the error. 1170 // 1171 // See the AWS API reference guide for Amazon Fraud Detector's 1172 // API operation DeleteBatchPredictionJob for usage and error information. 1173 // 1174 // Returned Error Types: 1175 // * ValidationException 1176 // An exception indicating a specified value is not allowed. 1177 // 1178 // * InternalServerException 1179 // An exception indicating an internal server error. 1180 // 1181 // * ThrottlingException 1182 // An exception indicating a throttling error. 1183 // 1184 // * AccessDeniedException 1185 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 1186 // This can occur if you submit a request, such as PutExternalModel, that specifies 1187 // a role that is not in your account. 1188 // 1189 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteBatchPredictionJob 1190 func (c *FraudDetector) DeleteBatchPredictionJob(input *DeleteBatchPredictionJobInput) (*DeleteBatchPredictionJobOutput, error) { 1191 req, out := c.DeleteBatchPredictionJobRequest(input) 1192 return out, req.Send() 1193 } 1194 1195 // DeleteBatchPredictionJobWithContext is the same as DeleteBatchPredictionJob with the addition of 1196 // the ability to pass a context and additional request options. 1197 // 1198 // See DeleteBatchPredictionJob for details on how to use this API operation. 1199 // 1200 // The context must be non-nil and will be used for request cancellation. If 1201 // the context is nil a panic will occur. In the future the SDK may create 1202 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1203 // for more information on using Contexts. 1204 func (c *FraudDetector) DeleteBatchPredictionJobWithContext(ctx aws.Context, input *DeleteBatchPredictionJobInput, opts ...request.Option) (*DeleteBatchPredictionJobOutput, error) { 1205 req, out := c.DeleteBatchPredictionJobRequest(input) 1206 req.SetContext(ctx) 1207 req.ApplyOptions(opts...) 1208 return out, req.Send() 1209 } 1210 1211 const opDeleteDetector = "DeleteDetector" 1212 1213 // DeleteDetectorRequest generates a "aws/request.Request" representing the 1214 // client's request for the DeleteDetector operation. The "output" return 1215 // value will be populated with the request's response once the request completes 1216 // successfully. 1217 // 1218 // Use "Send" method on the returned Request to send the API call to the service. 1219 // the "output" return value is not valid until after Send returns without error. 1220 // 1221 // See DeleteDetector for more information on using the DeleteDetector 1222 // API call, and error handling. 1223 // 1224 // This method is useful when you want to inject custom logic or configuration 1225 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1226 // 1227 // 1228 // // Example sending a request using the DeleteDetectorRequest method. 1229 // req, resp := client.DeleteDetectorRequest(params) 1230 // 1231 // err := req.Send() 1232 // if err == nil { // resp is now filled 1233 // fmt.Println(resp) 1234 // } 1235 // 1236 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetector 1237 func (c *FraudDetector) DeleteDetectorRequest(input *DeleteDetectorInput) (req *request.Request, output *DeleteDetectorOutput) { 1238 op := &request.Operation{ 1239 Name: opDeleteDetector, 1240 HTTPMethod: "POST", 1241 HTTPPath: "/", 1242 } 1243 1244 if input == nil { 1245 input = &DeleteDetectorInput{} 1246 } 1247 1248 output = &DeleteDetectorOutput{} 1249 req = c.newRequest(op, input, output) 1250 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1251 return 1252 } 1253 1254 // DeleteDetector API operation for Amazon Fraud Detector. 1255 // 1256 // Deletes the detector. Before deleting a detector, you must first delete all 1257 // detector versions and rule versions associated with the detector. 1258 // 1259 // When you delete a detector, Amazon Fraud Detector permanently deletes the 1260 // detector and the data is no longer stored in Amazon Fraud Detector. 1261 // 1262 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1263 // with awserr.Error's Code and Message methods to get detailed information about 1264 // the error. 1265 // 1266 // See the AWS API reference guide for Amazon Fraud Detector's 1267 // API operation DeleteDetector for usage and error information. 1268 // 1269 // Returned Error Types: 1270 // * ConflictException 1271 // An exception indicating there was a conflict during a delete operation. 1272 // 1273 // * ValidationException 1274 // An exception indicating a specified value is not allowed. 1275 // 1276 // * InternalServerException 1277 // An exception indicating an internal server error. 1278 // 1279 // * ThrottlingException 1280 // An exception indicating a throttling error. 1281 // 1282 // * AccessDeniedException 1283 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 1284 // This can occur if you submit a request, such as PutExternalModel, that specifies 1285 // a role that is not in your account. 1286 // 1287 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetector 1288 func (c *FraudDetector) DeleteDetector(input *DeleteDetectorInput) (*DeleteDetectorOutput, error) { 1289 req, out := c.DeleteDetectorRequest(input) 1290 return out, req.Send() 1291 } 1292 1293 // DeleteDetectorWithContext is the same as DeleteDetector with the addition of 1294 // the ability to pass a context and additional request options. 1295 // 1296 // See DeleteDetector for details on how to use this API operation. 1297 // 1298 // The context must be non-nil and will be used for request cancellation. If 1299 // the context is nil a panic will occur. In the future the SDK may create 1300 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1301 // for more information on using Contexts. 1302 func (c *FraudDetector) DeleteDetectorWithContext(ctx aws.Context, input *DeleteDetectorInput, opts ...request.Option) (*DeleteDetectorOutput, error) { 1303 req, out := c.DeleteDetectorRequest(input) 1304 req.SetContext(ctx) 1305 req.ApplyOptions(opts...) 1306 return out, req.Send() 1307 } 1308 1309 const opDeleteDetectorVersion = "DeleteDetectorVersion" 1310 1311 // DeleteDetectorVersionRequest generates a "aws/request.Request" representing the 1312 // client's request for the DeleteDetectorVersion operation. The "output" return 1313 // value will be populated with the request's response once the request completes 1314 // successfully. 1315 // 1316 // Use "Send" method on the returned Request to send the API call to the service. 1317 // the "output" return value is not valid until after Send returns without error. 1318 // 1319 // See DeleteDetectorVersion for more information on using the DeleteDetectorVersion 1320 // API call, and error handling. 1321 // 1322 // This method is useful when you want to inject custom logic or configuration 1323 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1324 // 1325 // 1326 // // Example sending a request using the DeleteDetectorVersionRequest method. 1327 // req, resp := client.DeleteDetectorVersionRequest(params) 1328 // 1329 // err := req.Send() 1330 // if err == nil { // resp is now filled 1331 // fmt.Println(resp) 1332 // } 1333 // 1334 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetectorVersion 1335 func (c *FraudDetector) DeleteDetectorVersionRequest(input *DeleteDetectorVersionInput) (req *request.Request, output *DeleteDetectorVersionOutput) { 1336 op := &request.Operation{ 1337 Name: opDeleteDetectorVersion, 1338 HTTPMethod: "POST", 1339 HTTPPath: "/", 1340 } 1341 1342 if input == nil { 1343 input = &DeleteDetectorVersionInput{} 1344 } 1345 1346 output = &DeleteDetectorVersionOutput{} 1347 req = c.newRequest(op, input, output) 1348 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1349 return 1350 } 1351 1352 // DeleteDetectorVersion API operation for Amazon Fraud Detector. 1353 // 1354 // Deletes the detector version. You cannot delete detector versions that are 1355 // in ACTIVE status. 1356 // 1357 // When you delete a detector version, Amazon Fraud Detector permanently deletes 1358 // the detector and the data is no longer stored in Amazon Fraud Detector. 1359 // 1360 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1361 // with awserr.Error's Code and Message methods to get detailed information about 1362 // the error. 1363 // 1364 // See the AWS API reference guide for Amazon Fraud Detector's 1365 // API operation DeleteDetectorVersion for usage and error information. 1366 // 1367 // Returned Error Types: 1368 // * ValidationException 1369 // An exception indicating a specified value is not allowed. 1370 // 1371 // * ResourceNotFoundException 1372 // An exception indicating the specified resource was not found. 1373 // 1374 // * InternalServerException 1375 // An exception indicating an internal server error. 1376 // 1377 // * ThrottlingException 1378 // An exception indicating a throttling error. 1379 // 1380 // * ConflictException 1381 // An exception indicating there was a conflict during a delete operation. 1382 // 1383 // * AccessDeniedException 1384 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 1385 // This can occur if you submit a request, such as PutExternalModel, that specifies 1386 // a role that is not in your account. 1387 // 1388 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetectorVersion 1389 func (c *FraudDetector) DeleteDetectorVersion(input *DeleteDetectorVersionInput) (*DeleteDetectorVersionOutput, error) { 1390 req, out := c.DeleteDetectorVersionRequest(input) 1391 return out, req.Send() 1392 } 1393 1394 // DeleteDetectorVersionWithContext is the same as DeleteDetectorVersion with the addition of 1395 // the ability to pass a context and additional request options. 1396 // 1397 // See DeleteDetectorVersion for details on how to use this API operation. 1398 // 1399 // The context must be non-nil and will be used for request cancellation. If 1400 // the context is nil a panic will occur. In the future the SDK may create 1401 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1402 // for more information on using Contexts. 1403 func (c *FraudDetector) DeleteDetectorVersionWithContext(ctx aws.Context, input *DeleteDetectorVersionInput, opts ...request.Option) (*DeleteDetectorVersionOutput, error) { 1404 req, out := c.DeleteDetectorVersionRequest(input) 1405 req.SetContext(ctx) 1406 req.ApplyOptions(opts...) 1407 return out, req.Send() 1408 } 1409 1410 const opDeleteEntityType = "DeleteEntityType" 1411 1412 // DeleteEntityTypeRequest generates a "aws/request.Request" representing the 1413 // client's request for the DeleteEntityType operation. The "output" return 1414 // value will be populated with the request's response once the request completes 1415 // successfully. 1416 // 1417 // Use "Send" method on the returned Request to send the API call to the service. 1418 // the "output" return value is not valid until after Send returns without error. 1419 // 1420 // See DeleteEntityType for more information on using the DeleteEntityType 1421 // API call, and error handling. 1422 // 1423 // This method is useful when you want to inject custom logic or configuration 1424 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1425 // 1426 // 1427 // // Example sending a request using the DeleteEntityTypeRequest method. 1428 // req, resp := client.DeleteEntityTypeRequest(params) 1429 // 1430 // err := req.Send() 1431 // if err == nil { // resp is now filled 1432 // fmt.Println(resp) 1433 // } 1434 // 1435 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteEntityType 1436 func (c *FraudDetector) DeleteEntityTypeRequest(input *DeleteEntityTypeInput) (req *request.Request, output *DeleteEntityTypeOutput) { 1437 op := &request.Operation{ 1438 Name: opDeleteEntityType, 1439 HTTPMethod: "POST", 1440 HTTPPath: "/", 1441 } 1442 1443 if input == nil { 1444 input = &DeleteEntityTypeInput{} 1445 } 1446 1447 output = &DeleteEntityTypeOutput{} 1448 req = c.newRequest(op, input, output) 1449 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1450 return 1451 } 1452 1453 // DeleteEntityType API operation for Amazon Fraud Detector. 1454 // 1455 // Deletes an entity type. 1456 // 1457 // You cannot delete an entity type that is included in an event type. 1458 // 1459 // When you delete an entity type, Amazon Fraud Detector permanently deletes 1460 // that entity type and the data is no longer stored in Amazon Fraud Detector. 1461 // 1462 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1463 // with awserr.Error's Code and Message methods to get detailed information about 1464 // the error. 1465 // 1466 // See the AWS API reference guide for Amazon Fraud Detector's 1467 // API operation DeleteEntityType for usage and error information. 1468 // 1469 // Returned Error Types: 1470 // * ValidationException 1471 // An exception indicating a specified value is not allowed. 1472 // 1473 // * ConflictException 1474 // An exception indicating there was a conflict during a delete operation. 1475 // 1476 // * InternalServerException 1477 // An exception indicating an internal server error. 1478 // 1479 // * ThrottlingException 1480 // An exception indicating a throttling error. 1481 // 1482 // * AccessDeniedException 1483 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 1484 // This can occur if you submit a request, such as PutExternalModel, that specifies 1485 // a role that is not in your account. 1486 // 1487 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteEntityType 1488 func (c *FraudDetector) DeleteEntityType(input *DeleteEntityTypeInput) (*DeleteEntityTypeOutput, error) { 1489 req, out := c.DeleteEntityTypeRequest(input) 1490 return out, req.Send() 1491 } 1492 1493 // DeleteEntityTypeWithContext is the same as DeleteEntityType with the addition of 1494 // the ability to pass a context and additional request options. 1495 // 1496 // See DeleteEntityType for details on how to use this API operation. 1497 // 1498 // The context must be non-nil and will be used for request cancellation. If 1499 // the context is nil a panic will occur. In the future the SDK may create 1500 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1501 // for more information on using Contexts. 1502 func (c *FraudDetector) DeleteEntityTypeWithContext(ctx aws.Context, input *DeleteEntityTypeInput, opts ...request.Option) (*DeleteEntityTypeOutput, error) { 1503 req, out := c.DeleteEntityTypeRequest(input) 1504 req.SetContext(ctx) 1505 req.ApplyOptions(opts...) 1506 return out, req.Send() 1507 } 1508 1509 const opDeleteEvent = "DeleteEvent" 1510 1511 // DeleteEventRequest generates a "aws/request.Request" representing the 1512 // client's request for the DeleteEvent operation. The "output" return 1513 // value will be populated with the request's response once the request completes 1514 // successfully. 1515 // 1516 // Use "Send" method on the returned Request to send the API call to the service. 1517 // the "output" return value is not valid until after Send returns without error. 1518 // 1519 // See DeleteEvent for more information on using the DeleteEvent 1520 // API call, and error handling. 1521 // 1522 // This method is useful when you want to inject custom logic or configuration 1523 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1524 // 1525 // 1526 // // Example sending a request using the DeleteEventRequest method. 1527 // req, resp := client.DeleteEventRequest(params) 1528 // 1529 // err := req.Send() 1530 // if err == nil { // resp is now filled 1531 // fmt.Println(resp) 1532 // } 1533 // 1534 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteEvent 1535 func (c *FraudDetector) DeleteEventRequest(input *DeleteEventInput) (req *request.Request, output *DeleteEventOutput) { 1536 op := &request.Operation{ 1537 Name: opDeleteEvent, 1538 HTTPMethod: "POST", 1539 HTTPPath: "/", 1540 } 1541 1542 if input == nil { 1543 input = &DeleteEventInput{} 1544 } 1545 1546 output = &DeleteEventOutput{} 1547 req = c.newRequest(op, input, output) 1548 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1549 return 1550 } 1551 1552 // DeleteEvent API operation for Amazon Fraud Detector. 1553 // 1554 // Deletes the specified event. 1555 // 1556 // When you delete an event, Amazon Fraud Detector permanently deletes that 1557 // event and the event data is no longer stored in Amazon Fraud Detector. 1558 // 1559 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1560 // with awserr.Error's Code and Message methods to get detailed information about 1561 // the error. 1562 // 1563 // See the AWS API reference guide for Amazon Fraud Detector's 1564 // API operation DeleteEvent for usage and error information. 1565 // 1566 // Returned Error Types: 1567 // * InternalServerException 1568 // An exception indicating an internal server error. 1569 // 1570 // * ThrottlingException 1571 // An exception indicating a throttling error. 1572 // 1573 // * AccessDeniedException 1574 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 1575 // This can occur if you submit a request, such as PutExternalModel, that specifies 1576 // a role that is not in your account. 1577 // 1578 // * ValidationException 1579 // An exception indicating a specified value is not allowed. 1580 // 1581 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteEvent 1582 func (c *FraudDetector) DeleteEvent(input *DeleteEventInput) (*DeleteEventOutput, error) { 1583 req, out := c.DeleteEventRequest(input) 1584 return out, req.Send() 1585 } 1586 1587 // DeleteEventWithContext is the same as DeleteEvent with the addition of 1588 // the ability to pass a context and additional request options. 1589 // 1590 // See DeleteEvent for details on how to use this API operation. 1591 // 1592 // The context must be non-nil and will be used for request cancellation. If 1593 // the context is nil a panic will occur. In the future the SDK may create 1594 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1595 // for more information on using Contexts. 1596 func (c *FraudDetector) DeleteEventWithContext(ctx aws.Context, input *DeleteEventInput, opts ...request.Option) (*DeleteEventOutput, error) { 1597 req, out := c.DeleteEventRequest(input) 1598 req.SetContext(ctx) 1599 req.ApplyOptions(opts...) 1600 return out, req.Send() 1601 } 1602 1603 const opDeleteEventType = "DeleteEventType" 1604 1605 // DeleteEventTypeRequest generates a "aws/request.Request" representing the 1606 // client's request for the DeleteEventType operation. The "output" return 1607 // value will be populated with the request's response once the request completes 1608 // successfully. 1609 // 1610 // Use "Send" method on the returned Request to send the API call to the service. 1611 // the "output" return value is not valid until after Send returns without error. 1612 // 1613 // See DeleteEventType for more information on using the DeleteEventType 1614 // API call, and error handling. 1615 // 1616 // This method is useful when you want to inject custom logic or configuration 1617 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1618 // 1619 // 1620 // // Example sending a request using the DeleteEventTypeRequest method. 1621 // req, resp := client.DeleteEventTypeRequest(params) 1622 // 1623 // err := req.Send() 1624 // if err == nil { // resp is now filled 1625 // fmt.Println(resp) 1626 // } 1627 // 1628 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteEventType 1629 func (c *FraudDetector) DeleteEventTypeRequest(input *DeleteEventTypeInput) (req *request.Request, output *DeleteEventTypeOutput) { 1630 op := &request.Operation{ 1631 Name: opDeleteEventType, 1632 HTTPMethod: "POST", 1633 HTTPPath: "/", 1634 } 1635 1636 if input == nil { 1637 input = &DeleteEventTypeInput{} 1638 } 1639 1640 output = &DeleteEventTypeOutput{} 1641 req = c.newRequest(op, input, output) 1642 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1643 return 1644 } 1645 1646 // DeleteEventType API operation for Amazon Fraud Detector. 1647 // 1648 // Deletes an event type. 1649 // 1650 // You cannot delete an event type that is used in a detector or a model. 1651 // 1652 // When you delete an event type, Amazon Fraud Detector permanently deletes 1653 // that event type and the data is no longer stored in Amazon Fraud Detector. 1654 // 1655 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1656 // with awserr.Error's Code and Message methods to get detailed information about 1657 // the error. 1658 // 1659 // See the AWS API reference guide for Amazon Fraud Detector's 1660 // API operation DeleteEventType for usage and error information. 1661 // 1662 // Returned Error Types: 1663 // * ConflictException 1664 // An exception indicating there was a conflict during a delete operation. 1665 // 1666 // * ValidationException 1667 // An exception indicating a specified value is not allowed. 1668 // 1669 // * InternalServerException 1670 // An exception indicating an internal server error. 1671 // 1672 // * ThrottlingException 1673 // An exception indicating a throttling error. 1674 // 1675 // * AccessDeniedException 1676 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 1677 // This can occur if you submit a request, such as PutExternalModel, that specifies 1678 // a role that is not in your account. 1679 // 1680 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteEventType 1681 func (c *FraudDetector) DeleteEventType(input *DeleteEventTypeInput) (*DeleteEventTypeOutput, error) { 1682 req, out := c.DeleteEventTypeRequest(input) 1683 return out, req.Send() 1684 } 1685 1686 // DeleteEventTypeWithContext is the same as DeleteEventType with the addition of 1687 // the ability to pass a context and additional request options. 1688 // 1689 // See DeleteEventType for details on how to use this API operation. 1690 // 1691 // The context must be non-nil and will be used for request cancellation. If 1692 // the context is nil a panic will occur. In the future the SDK may create 1693 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1694 // for more information on using Contexts. 1695 func (c *FraudDetector) DeleteEventTypeWithContext(ctx aws.Context, input *DeleteEventTypeInput, opts ...request.Option) (*DeleteEventTypeOutput, error) { 1696 req, out := c.DeleteEventTypeRequest(input) 1697 req.SetContext(ctx) 1698 req.ApplyOptions(opts...) 1699 return out, req.Send() 1700 } 1701 1702 const opDeleteEventsByEventType = "DeleteEventsByEventType" 1703 1704 // DeleteEventsByEventTypeRequest generates a "aws/request.Request" representing the 1705 // client's request for the DeleteEventsByEventType operation. The "output" return 1706 // value will be populated with the request's response once the request completes 1707 // successfully. 1708 // 1709 // Use "Send" method on the returned Request to send the API call to the service. 1710 // the "output" return value is not valid until after Send returns without error. 1711 // 1712 // See DeleteEventsByEventType for more information on using the DeleteEventsByEventType 1713 // API call, and error handling. 1714 // 1715 // This method is useful when you want to inject custom logic or configuration 1716 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1717 // 1718 // 1719 // // Example sending a request using the DeleteEventsByEventTypeRequest method. 1720 // req, resp := client.DeleteEventsByEventTypeRequest(params) 1721 // 1722 // err := req.Send() 1723 // if err == nil { // resp is now filled 1724 // fmt.Println(resp) 1725 // } 1726 // 1727 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteEventsByEventType 1728 func (c *FraudDetector) DeleteEventsByEventTypeRequest(input *DeleteEventsByEventTypeInput) (req *request.Request, output *DeleteEventsByEventTypeOutput) { 1729 op := &request.Operation{ 1730 Name: opDeleteEventsByEventType, 1731 HTTPMethod: "POST", 1732 HTTPPath: "/", 1733 } 1734 1735 if input == nil { 1736 input = &DeleteEventsByEventTypeInput{} 1737 } 1738 1739 output = &DeleteEventsByEventTypeOutput{} 1740 req = c.newRequest(op, input, output) 1741 return 1742 } 1743 1744 // DeleteEventsByEventType API operation for Amazon Fraud Detector. 1745 // 1746 // Deletes all events of a particular event type. 1747 // 1748 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1749 // with awserr.Error's Code and Message methods to get detailed information about 1750 // the error. 1751 // 1752 // See the AWS API reference guide for Amazon Fraud Detector's 1753 // API operation DeleteEventsByEventType for usage and error information. 1754 // 1755 // Returned Error Types: 1756 // * ConflictException 1757 // An exception indicating there was a conflict during a delete operation. 1758 // 1759 // * ValidationException 1760 // An exception indicating a specified value is not allowed. 1761 // 1762 // * ResourceNotFoundException 1763 // An exception indicating the specified resource was not found. 1764 // 1765 // * InternalServerException 1766 // An exception indicating an internal server error. 1767 // 1768 // * ThrottlingException 1769 // An exception indicating a throttling error. 1770 // 1771 // * AccessDeniedException 1772 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 1773 // This can occur if you submit a request, such as PutExternalModel, that specifies 1774 // a role that is not in your account. 1775 // 1776 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteEventsByEventType 1777 func (c *FraudDetector) DeleteEventsByEventType(input *DeleteEventsByEventTypeInput) (*DeleteEventsByEventTypeOutput, error) { 1778 req, out := c.DeleteEventsByEventTypeRequest(input) 1779 return out, req.Send() 1780 } 1781 1782 // DeleteEventsByEventTypeWithContext is the same as DeleteEventsByEventType with the addition of 1783 // the ability to pass a context and additional request options. 1784 // 1785 // See DeleteEventsByEventType for details on how to use this API operation. 1786 // 1787 // The context must be non-nil and will be used for request cancellation. If 1788 // the context is nil a panic will occur. In the future the SDK may create 1789 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1790 // for more information on using Contexts. 1791 func (c *FraudDetector) DeleteEventsByEventTypeWithContext(ctx aws.Context, input *DeleteEventsByEventTypeInput, opts ...request.Option) (*DeleteEventsByEventTypeOutput, error) { 1792 req, out := c.DeleteEventsByEventTypeRequest(input) 1793 req.SetContext(ctx) 1794 req.ApplyOptions(opts...) 1795 return out, req.Send() 1796 } 1797 1798 const opDeleteExternalModel = "DeleteExternalModel" 1799 1800 // DeleteExternalModelRequest generates a "aws/request.Request" representing the 1801 // client's request for the DeleteExternalModel operation. The "output" return 1802 // value will be populated with the request's response once the request completes 1803 // successfully. 1804 // 1805 // Use "Send" method on the returned Request to send the API call to the service. 1806 // the "output" return value is not valid until after Send returns without error. 1807 // 1808 // See DeleteExternalModel for more information on using the DeleteExternalModel 1809 // API call, and error handling. 1810 // 1811 // This method is useful when you want to inject custom logic or configuration 1812 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1813 // 1814 // 1815 // // Example sending a request using the DeleteExternalModelRequest method. 1816 // req, resp := client.DeleteExternalModelRequest(params) 1817 // 1818 // err := req.Send() 1819 // if err == nil { // resp is now filled 1820 // fmt.Println(resp) 1821 // } 1822 // 1823 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteExternalModel 1824 func (c *FraudDetector) DeleteExternalModelRequest(input *DeleteExternalModelInput) (req *request.Request, output *DeleteExternalModelOutput) { 1825 op := &request.Operation{ 1826 Name: opDeleteExternalModel, 1827 HTTPMethod: "POST", 1828 HTTPPath: "/", 1829 } 1830 1831 if input == nil { 1832 input = &DeleteExternalModelInput{} 1833 } 1834 1835 output = &DeleteExternalModelOutput{} 1836 req = c.newRequest(op, input, output) 1837 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1838 return 1839 } 1840 1841 // DeleteExternalModel API operation for Amazon Fraud Detector. 1842 // 1843 // Removes a SageMaker model from Amazon Fraud Detector. 1844 // 1845 // You can remove an Amazon SageMaker model if it is not associated with a detector 1846 // version. Removing a SageMaker model disconnects it from Amazon Fraud Detector, 1847 // but the model remains available in SageMaker. 1848 // 1849 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1850 // with awserr.Error's Code and Message methods to get detailed information about 1851 // the error. 1852 // 1853 // See the AWS API reference guide for Amazon Fraud Detector's 1854 // API operation DeleteExternalModel for usage and error information. 1855 // 1856 // Returned Error Types: 1857 // * ValidationException 1858 // An exception indicating a specified value is not allowed. 1859 // 1860 // * ConflictException 1861 // An exception indicating there was a conflict during a delete operation. 1862 // 1863 // * InternalServerException 1864 // An exception indicating an internal server error. 1865 // 1866 // * ThrottlingException 1867 // An exception indicating a throttling error. 1868 // 1869 // * AccessDeniedException 1870 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 1871 // This can occur if you submit a request, such as PutExternalModel, that specifies 1872 // a role that is not in your account. 1873 // 1874 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteExternalModel 1875 func (c *FraudDetector) DeleteExternalModel(input *DeleteExternalModelInput) (*DeleteExternalModelOutput, error) { 1876 req, out := c.DeleteExternalModelRequest(input) 1877 return out, req.Send() 1878 } 1879 1880 // DeleteExternalModelWithContext is the same as DeleteExternalModel with the addition of 1881 // the ability to pass a context and additional request options. 1882 // 1883 // See DeleteExternalModel for details on how to use this API operation. 1884 // 1885 // The context must be non-nil and will be used for request cancellation. If 1886 // the context is nil a panic will occur. In the future the SDK may create 1887 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1888 // for more information on using Contexts. 1889 func (c *FraudDetector) DeleteExternalModelWithContext(ctx aws.Context, input *DeleteExternalModelInput, opts ...request.Option) (*DeleteExternalModelOutput, error) { 1890 req, out := c.DeleteExternalModelRequest(input) 1891 req.SetContext(ctx) 1892 req.ApplyOptions(opts...) 1893 return out, req.Send() 1894 } 1895 1896 const opDeleteLabel = "DeleteLabel" 1897 1898 // DeleteLabelRequest generates a "aws/request.Request" representing the 1899 // client's request for the DeleteLabel operation. The "output" return 1900 // value will be populated with the request's response once the request completes 1901 // successfully. 1902 // 1903 // Use "Send" method on the returned Request to send the API call to the service. 1904 // the "output" return value is not valid until after Send returns without error. 1905 // 1906 // See DeleteLabel for more information on using the DeleteLabel 1907 // API call, and error handling. 1908 // 1909 // This method is useful when you want to inject custom logic or configuration 1910 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1911 // 1912 // 1913 // // Example sending a request using the DeleteLabelRequest method. 1914 // req, resp := client.DeleteLabelRequest(params) 1915 // 1916 // err := req.Send() 1917 // if err == nil { // resp is now filled 1918 // fmt.Println(resp) 1919 // } 1920 // 1921 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteLabel 1922 func (c *FraudDetector) DeleteLabelRequest(input *DeleteLabelInput) (req *request.Request, output *DeleteLabelOutput) { 1923 op := &request.Operation{ 1924 Name: opDeleteLabel, 1925 HTTPMethod: "POST", 1926 HTTPPath: "/", 1927 } 1928 1929 if input == nil { 1930 input = &DeleteLabelInput{} 1931 } 1932 1933 output = &DeleteLabelOutput{} 1934 req = c.newRequest(op, input, output) 1935 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1936 return 1937 } 1938 1939 // DeleteLabel API operation for Amazon Fraud Detector. 1940 // 1941 // Deletes a label. 1942 // 1943 // You cannot delete labels that are included in an event type in Amazon Fraud 1944 // Detector. 1945 // 1946 // You cannot delete a label assigned to an event ID. You must first delete 1947 // the relevant event ID. 1948 // 1949 // When you delete a label, Amazon Fraud Detector permanently deletes that label 1950 // and the data is no longer stored in Amazon Fraud Detector. 1951 // 1952 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1953 // with awserr.Error's Code and Message methods to get detailed information about 1954 // the error. 1955 // 1956 // See the AWS API reference guide for Amazon Fraud Detector's 1957 // API operation DeleteLabel for usage and error information. 1958 // 1959 // Returned Error Types: 1960 // * ValidationException 1961 // An exception indicating a specified value is not allowed. 1962 // 1963 // * ConflictException 1964 // An exception indicating there was a conflict during a delete operation. 1965 // 1966 // * ThrottlingException 1967 // An exception indicating a throttling error. 1968 // 1969 // * InternalServerException 1970 // An exception indicating an internal server error. 1971 // 1972 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteLabel 1973 func (c *FraudDetector) DeleteLabel(input *DeleteLabelInput) (*DeleteLabelOutput, error) { 1974 req, out := c.DeleteLabelRequest(input) 1975 return out, req.Send() 1976 } 1977 1978 // DeleteLabelWithContext is the same as DeleteLabel with the addition of 1979 // the ability to pass a context and additional request options. 1980 // 1981 // See DeleteLabel for details on how to use this API operation. 1982 // 1983 // The context must be non-nil and will be used for request cancellation. If 1984 // the context is nil a panic will occur. In the future the SDK may create 1985 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1986 // for more information on using Contexts. 1987 func (c *FraudDetector) DeleteLabelWithContext(ctx aws.Context, input *DeleteLabelInput, opts ...request.Option) (*DeleteLabelOutput, error) { 1988 req, out := c.DeleteLabelRequest(input) 1989 req.SetContext(ctx) 1990 req.ApplyOptions(opts...) 1991 return out, req.Send() 1992 } 1993 1994 const opDeleteModel = "DeleteModel" 1995 1996 // DeleteModelRequest generates a "aws/request.Request" representing the 1997 // client's request for the DeleteModel operation. The "output" return 1998 // value will be populated with the request's response once the request completes 1999 // successfully. 2000 // 2001 // Use "Send" method on the returned Request to send the API call to the service. 2002 // the "output" return value is not valid until after Send returns without error. 2003 // 2004 // See DeleteModel for more information on using the DeleteModel 2005 // API call, and error handling. 2006 // 2007 // This method is useful when you want to inject custom logic or configuration 2008 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2009 // 2010 // 2011 // // Example sending a request using the DeleteModelRequest method. 2012 // req, resp := client.DeleteModelRequest(params) 2013 // 2014 // err := req.Send() 2015 // if err == nil { // resp is now filled 2016 // fmt.Println(resp) 2017 // } 2018 // 2019 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteModel 2020 func (c *FraudDetector) DeleteModelRequest(input *DeleteModelInput) (req *request.Request, output *DeleteModelOutput) { 2021 op := &request.Operation{ 2022 Name: opDeleteModel, 2023 HTTPMethod: "POST", 2024 HTTPPath: "/", 2025 } 2026 2027 if input == nil { 2028 input = &DeleteModelInput{} 2029 } 2030 2031 output = &DeleteModelOutput{} 2032 req = c.newRequest(op, input, output) 2033 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 2034 return 2035 } 2036 2037 // DeleteModel API operation for Amazon Fraud Detector. 2038 // 2039 // Deletes a model. 2040 // 2041 // You can delete models and model versions in Amazon Fraud Detector, provided 2042 // that they are not associated with a detector version. 2043 // 2044 // When you delete a model, Amazon Fraud Detector permanently deletes that model 2045 // and the data is no longer stored in Amazon Fraud Detector. 2046 // 2047 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2048 // with awserr.Error's Code and Message methods to get detailed information about 2049 // the error. 2050 // 2051 // See the AWS API reference guide for Amazon Fraud Detector's 2052 // API operation DeleteModel for usage and error information. 2053 // 2054 // Returned Error Types: 2055 // * ConflictException 2056 // An exception indicating there was a conflict during a delete operation. 2057 // 2058 // * ValidationException 2059 // An exception indicating a specified value is not allowed. 2060 // 2061 // * InternalServerException 2062 // An exception indicating an internal server error. 2063 // 2064 // * ThrottlingException 2065 // An exception indicating a throttling error. 2066 // 2067 // * AccessDeniedException 2068 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 2069 // This can occur if you submit a request, such as PutExternalModel, that specifies 2070 // a role that is not in your account. 2071 // 2072 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteModel 2073 func (c *FraudDetector) DeleteModel(input *DeleteModelInput) (*DeleteModelOutput, error) { 2074 req, out := c.DeleteModelRequest(input) 2075 return out, req.Send() 2076 } 2077 2078 // DeleteModelWithContext is the same as DeleteModel with the addition of 2079 // the ability to pass a context and additional request options. 2080 // 2081 // See DeleteModel for details on how to use this API operation. 2082 // 2083 // The context must be non-nil and will be used for request cancellation. If 2084 // the context is nil a panic will occur. In the future the SDK may create 2085 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2086 // for more information on using Contexts. 2087 func (c *FraudDetector) DeleteModelWithContext(ctx aws.Context, input *DeleteModelInput, opts ...request.Option) (*DeleteModelOutput, error) { 2088 req, out := c.DeleteModelRequest(input) 2089 req.SetContext(ctx) 2090 req.ApplyOptions(opts...) 2091 return out, req.Send() 2092 } 2093 2094 const opDeleteModelVersion = "DeleteModelVersion" 2095 2096 // DeleteModelVersionRequest generates a "aws/request.Request" representing the 2097 // client's request for the DeleteModelVersion operation. The "output" return 2098 // value will be populated with the request's response once the request completes 2099 // successfully. 2100 // 2101 // Use "Send" method on the returned Request to send the API call to the service. 2102 // the "output" return value is not valid until after Send returns without error. 2103 // 2104 // See DeleteModelVersion for more information on using the DeleteModelVersion 2105 // API call, and error handling. 2106 // 2107 // This method is useful when you want to inject custom logic or configuration 2108 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2109 // 2110 // 2111 // // Example sending a request using the DeleteModelVersionRequest method. 2112 // req, resp := client.DeleteModelVersionRequest(params) 2113 // 2114 // err := req.Send() 2115 // if err == nil { // resp is now filled 2116 // fmt.Println(resp) 2117 // } 2118 // 2119 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteModelVersion 2120 func (c *FraudDetector) DeleteModelVersionRequest(input *DeleteModelVersionInput) (req *request.Request, output *DeleteModelVersionOutput) { 2121 op := &request.Operation{ 2122 Name: opDeleteModelVersion, 2123 HTTPMethod: "POST", 2124 HTTPPath: "/", 2125 } 2126 2127 if input == nil { 2128 input = &DeleteModelVersionInput{} 2129 } 2130 2131 output = &DeleteModelVersionOutput{} 2132 req = c.newRequest(op, input, output) 2133 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 2134 return 2135 } 2136 2137 // DeleteModelVersion API operation for Amazon Fraud Detector. 2138 // 2139 // Deletes a model version. 2140 // 2141 // You can delete models and model versions in Amazon Fraud Detector, provided 2142 // that they are not associated with a detector version. 2143 // 2144 // When you delete a model version, Amazon Fraud Detector permanently deletes 2145 // that model version and the data is no longer stored in Amazon Fraud Detector. 2146 // 2147 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2148 // with awserr.Error's Code and Message methods to get detailed information about 2149 // the error. 2150 // 2151 // See the AWS API reference guide for Amazon Fraud Detector's 2152 // API operation DeleteModelVersion for usage and error information. 2153 // 2154 // Returned Error Types: 2155 // * ValidationException 2156 // An exception indicating a specified value is not allowed. 2157 // 2158 // * InternalServerException 2159 // An exception indicating an internal server error. 2160 // 2161 // * AccessDeniedException 2162 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 2163 // This can occur if you submit a request, such as PutExternalModel, that specifies 2164 // a role that is not in your account. 2165 // 2166 // * ThrottlingException 2167 // An exception indicating a throttling error. 2168 // 2169 // * ConflictException 2170 // An exception indicating there was a conflict during a delete operation. 2171 // 2172 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteModelVersion 2173 func (c *FraudDetector) DeleteModelVersion(input *DeleteModelVersionInput) (*DeleteModelVersionOutput, error) { 2174 req, out := c.DeleteModelVersionRequest(input) 2175 return out, req.Send() 2176 } 2177 2178 // DeleteModelVersionWithContext is the same as DeleteModelVersion with the addition of 2179 // the ability to pass a context and additional request options. 2180 // 2181 // See DeleteModelVersion for details on how to use this API operation. 2182 // 2183 // The context must be non-nil and will be used for request cancellation. If 2184 // the context is nil a panic will occur. In the future the SDK may create 2185 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2186 // for more information on using Contexts. 2187 func (c *FraudDetector) DeleteModelVersionWithContext(ctx aws.Context, input *DeleteModelVersionInput, opts ...request.Option) (*DeleteModelVersionOutput, error) { 2188 req, out := c.DeleteModelVersionRequest(input) 2189 req.SetContext(ctx) 2190 req.ApplyOptions(opts...) 2191 return out, req.Send() 2192 } 2193 2194 const opDeleteOutcome = "DeleteOutcome" 2195 2196 // DeleteOutcomeRequest generates a "aws/request.Request" representing the 2197 // client's request for the DeleteOutcome operation. The "output" return 2198 // value will be populated with the request's response once the request completes 2199 // successfully. 2200 // 2201 // Use "Send" method on the returned Request to send the API call to the service. 2202 // the "output" return value is not valid until after Send returns without error. 2203 // 2204 // See DeleteOutcome for more information on using the DeleteOutcome 2205 // API call, and error handling. 2206 // 2207 // This method is useful when you want to inject custom logic or configuration 2208 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2209 // 2210 // 2211 // // Example sending a request using the DeleteOutcomeRequest method. 2212 // req, resp := client.DeleteOutcomeRequest(params) 2213 // 2214 // err := req.Send() 2215 // if err == nil { // resp is now filled 2216 // fmt.Println(resp) 2217 // } 2218 // 2219 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteOutcome 2220 func (c *FraudDetector) DeleteOutcomeRequest(input *DeleteOutcomeInput) (req *request.Request, output *DeleteOutcomeOutput) { 2221 op := &request.Operation{ 2222 Name: opDeleteOutcome, 2223 HTTPMethod: "POST", 2224 HTTPPath: "/", 2225 } 2226 2227 if input == nil { 2228 input = &DeleteOutcomeInput{} 2229 } 2230 2231 output = &DeleteOutcomeOutput{} 2232 req = c.newRequest(op, input, output) 2233 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 2234 return 2235 } 2236 2237 // DeleteOutcome API operation for Amazon Fraud Detector. 2238 // 2239 // Deletes an outcome. 2240 // 2241 // You cannot delete an outcome that is used in a rule version. 2242 // 2243 // When you delete an outcome, Amazon Fraud Detector permanently deletes that 2244 // outcome and the data is no longer stored in Amazon Fraud Detector. 2245 // 2246 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2247 // with awserr.Error's Code and Message methods to get detailed information about 2248 // the error. 2249 // 2250 // See the AWS API reference guide for Amazon Fraud Detector's 2251 // API operation DeleteOutcome for usage and error information. 2252 // 2253 // Returned Error Types: 2254 // * ValidationException 2255 // An exception indicating a specified value is not allowed. 2256 // 2257 // * InternalServerException 2258 // An exception indicating an internal server error. 2259 // 2260 // * ThrottlingException 2261 // An exception indicating a throttling error. 2262 // 2263 // * ConflictException 2264 // An exception indicating there was a conflict during a delete operation. 2265 // 2266 // * AccessDeniedException 2267 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 2268 // This can occur if you submit a request, such as PutExternalModel, that specifies 2269 // a role that is not in your account. 2270 // 2271 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteOutcome 2272 func (c *FraudDetector) DeleteOutcome(input *DeleteOutcomeInput) (*DeleteOutcomeOutput, error) { 2273 req, out := c.DeleteOutcomeRequest(input) 2274 return out, req.Send() 2275 } 2276 2277 // DeleteOutcomeWithContext is the same as DeleteOutcome with the addition of 2278 // the ability to pass a context and additional request options. 2279 // 2280 // See DeleteOutcome for details on how to use this API operation. 2281 // 2282 // The context must be non-nil and will be used for request cancellation. If 2283 // the context is nil a panic will occur. In the future the SDK may create 2284 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2285 // for more information on using Contexts. 2286 func (c *FraudDetector) DeleteOutcomeWithContext(ctx aws.Context, input *DeleteOutcomeInput, opts ...request.Option) (*DeleteOutcomeOutput, error) { 2287 req, out := c.DeleteOutcomeRequest(input) 2288 req.SetContext(ctx) 2289 req.ApplyOptions(opts...) 2290 return out, req.Send() 2291 } 2292 2293 const opDeleteRule = "DeleteRule" 2294 2295 // DeleteRuleRequest generates a "aws/request.Request" representing the 2296 // client's request for the DeleteRule operation. The "output" return 2297 // value will be populated with the request's response once the request completes 2298 // successfully. 2299 // 2300 // Use "Send" method on the returned Request to send the API call to the service. 2301 // the "output" return value is not valid until after Send returns without error. 2302 // 2303 // See DeleteRule for more information on using the DeleteRule 2304 // API call, and error handling. 2305 // 2306 // This method is useful when you want to inject custom logic or configuration 2307 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2308 // 2309 // 2310 // // Example sending a request using the DeleteRuleRequest method. 2311 // req, resp := client.DeleteRuleRequest(params) 2312 // 2313 // err := req.Send() 2314 // if err == nil { // resp is now filled 2315 // fmt.Println(resp) 2316 // } 2317 // 2318 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRule 2319 func (c *FraudDetector) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, output *DeleteRuleOutput) { 2320 op := &request.Operation{ 2321 Name: opDeleteRule, 2322 HTTPMethod: "POST", 2323 HTTPPath: "/", 2324 } 2325 2326 if input == nil { 2327 input = &DeleteRuleInput{} 2328 } 2329 2330 output = &DeleteRuleOutput{} 2331 req = c.newRequest(op, input, output) 2332 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 2333 return 2334 } 2335 2336 // DeleteRule API operation for Amazon Fraud Detector. 2337 // 2338 // Deletes the rule. You cannot delete a rule if it is used by an ACTIVE or 2339 // INACTIVE detector version. 2340 // 2341 // When you delete a rule, Amazon Fraud Detector permanently deletes that rule 2342 // and the data is no longer stored in Amazon Fraud Detector. 2343 // 2344 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2345 // with awserr.Error's Code and Message methods to get detailed information about 2346 // the error. 2347 // 2348 // See the AWS API reference guide for Amazon Fraud Detector's 2349 // API operation DeleteRule for usage and error information. 2350 // 2351 // Returned Error Types: 2352 // * ConflictException 2353 // An exception indicating there was a conflict during a delete operation. 2354 // 2355 // * ValidationException 2356 // An exception indicating a specified value is not allowed. 2357 // 2358 // * InternalServerException 2359 // An exception indicating an internal server error. 2360 // 2361 // * ThrottlingException 2362 // An exception indicating a throttling error. 2363 // 2364 // * AccessDeniedException 2365 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 2366 // This can occur if you submit a request, such as PutExternalModel, that specifies 2367 // a role that is not in your account. 2368 // 2369 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRule 2370 func (c *FraudDetector) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) { 2371 req, out := c.DeleteRuleRequest(input) 2372 return out, req.Send() 2373 } 2374 2375 // DeleteRuleWithContext is the same as DeleteRule with the addition of 2376 // the ability to pass a context and additional request options. 2377 // 2378 // See DeleteRule for details on how to use this API operation. 2379 // 2380 // The context must be non-nil and will be used for request cancellation. If 2381 // the context is nil a panic will occur. In the future the SDK may create 2382 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2383 // for more information on using Contexts. 2384 func (c *FraudDetector) DeleteRuleWithContext(ctx aws.Context, input *DeleteRuleInput, opts ...request.Option) (*DeleteRuleOutput, error) { 2385 req, out := c.DeleteRuleRequest(input) 2386 req.SetContext(ctx) 2387 req.ApplyOptions(opts...) 2388 return out, req.Send() 2389 } 2390 2391 const opDeleteVariable = "DeleteVariable" 2392 2393 // DeleteVariableRequest generates a "aws/request.Request" representing the 2394 // client's request for the DeleteVariable operation. The "output" return 2395 // value will be populated with the request's response once the request completes 2396 // successfully. 2397 // 2398 // Use "Send" method on the returned Request to send the API call to the service. 2399 // the "output" return value is not valid until after Send returns without error. 2400 // 2401 // See DeleteVariable for more information on using the DeleteVariable 2402 // API call, and error handling. 2403 // 2404 // This method is useful when you want to inject custom logic or configuration 2405 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2406 // 2407 // 2408 // // Example sending a request using the DeleteVariableRequest method. 2409 // req, resp := client.DeleteVariableRequest(params) 2410 // 2411 // err := req.Send() 2412 // if err == nil { // resp is now filled 2413 // fmt.Println(resp) 2414 // } 2415 // 2416 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteVariable 2417 func (c *FraudDetector) DeleteVariableRequest(input *DeleteVariableInput) (req *request.Request, output *DeleteVariableOutput) { 2418 op := &request.Operation{ 2419 Name: opDeleteVariable, 2420 HTTPMethod: "POST", 2421 HTTPPath: "/", 2422 } 2423 2424 if input == nil { 2425 input = &DeleteVariableInput{} 2426 } 2427 2428 output = &DeleteVariableOutput{} 2429 req = c.newRequest(op, input, output) 2430 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 2431 return 2432 } 2433 2434 // DeleteVariable API operation for Amazon Fraud Detector. 2435 // 2436 // Deletes a variable. 2437 // 2438 // You can't delete variables that are included in an event type in Amazon Fraud 2439 // Detector. 2440 // 2441 // Amazon Fraud Detector automatically deletes model output variables and SageMaker 2442 // model output variables when you delete the model. You can't delete these 2443 // variables manually. 2444 // 2445 // When you delete a variable, Amazon Fraud Detector permanently deletes that 2446 // variable and the data is no longer stored in Amazon Fraud Detector. 2447 // 2448 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2449 // with awserr.Error's Code and Message methods to get detailed information about 2450 // the error. 2451 // 2452 // See the AWS API reference guide for Amazon Fraud Detector's 2453 // API operation DeleteVariable for usage and error information. 2454 // 2455 // Returned Error Types: 2456 // * ValidationException 2457 // An exception indicating a specified value is not allowed. 2458 // 2459 // * ConflictException 2460 // An exception indicating there was a conflict during a delete operation. 2461 // 2462 // * InternalServerException 2463 // An exception indicating an internal server error. 2464 // 2465 // * ThrottlingException 2466 // An exception indicating a throttling error. 2467 // 2468 // * AccessDeniedException 2469 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 2470 // This can occur if you submit a request, such as PutExternalModel, that specifies 2471 // a role that is not in your account. 2472 // 2473 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteVariable 2474 func (c *FraudDetector) DeleteVariable(input *DeleteVariableInput) (*DeleteVariableOutput, error) { 2475 req, out := c.DeleteVariableRequest(input) 2476 return out, req.Send() 2477 } 2478 2479 // DeleteVariableWithContext is the same as DeleteVariable with the addition of 2480 // the ability to pass a context and additional request options. 2481 // 2482 // See DeleteVariable for details on how to use this API operation. 2483 // 2484 // The context must be non-nil and will be used for request cancellation. If 2485 // the context is nil a panic will occur. In the future the SDK may create 2486 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2487 // for more information on using Contexts. 2488 func (c *FraudDetector) DeleteVariableWithContext(ctx aws.Context, input *DeleteVariableInput, opts ...request.Option) (*DeleteVariableOutput, error) { 2489 req, out := c.DeleteVariableRequest(input) 2490 req.SetContext(ctx) 2491 req.ApplyOptions(opts...) 2492 return out, req.Send() 2493 } 2494 2495 const opDescribeDetector = "DescribeDetector" 2496 2497 // DescribeDetectorRequest generates a "aws/request.Request" representing the 2498 // client's request for the DescribeDetector operation. The "output" return 2499 // value will be populated with the request's response once the request completes 2500 // successfully. 2501 // 2502 // Use "Send" method on the returned Request to send the API call to the service. 2503 // the "output" return value is not valid until after Send returns without error. 2504 // 2505 // See DescribeDetector for more information on using the DescribeDetector 2506 // API call, and error handling. 2507 // 2508 // This method is useful when you want to inject custom logic or configuration 2509 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2510 // 2511 // 2512 // // Example sending a request using the DescribeDetectorRequest method. 2513 // req, resp := client.DescribeDetectorRequest(params) 2514 // 2515 // err := req.Send() 2516 // if err == nil { // resp is now filled 2517 // fmt.Println(resp) 2518 // } 2519 // 2520 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DescribeDetector 2521 func (c *FraudDetector) DescribeDetectorRequest(input *DescribeDetectorInput) (req *request.Request, output *DescribeDetectorOutput) { 2522 op := &request.Operation{ 2523 Name: opDescribeDetector, 2524 HTTPMethod: "POST", 2525 HTTPPath: "/", 2526 } 2527 2528 if input == nil { 2529 input = &DescribeDetectorInput{} 2530 } 2531 2532 output = &DescribeDetectorOutput{} 2533 req = c.newRequest(op, input, output) 2534 return 2535 } 2536 2537 // DescribeDetector API operation for Amazon Fraud Detector. 2538 // 2539 // Gets all versions for a specified detector. 2540 // 2541 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2542 // with awserr.Error's Code and Message methods to get detailed information about 2543 // the error. 2544 // 2545 // See the AWS API reference guide for Amazon Fraud Detector's 2546 // API operation DescribeDetector for usage and error information. 2547 // 2548 // Returned Error Types: 2549 // * ValidationException 2550 // An exception indicating a specified value is not allowed. 2551 // 2552 // * ResourceNotFoundException 2553 // An exception indicating the specified resource was not found. 2554 // 2555 // * InternalServerException 2556 // An exception indicating an internal server error. 2557 // 2558 // * ThrottlingException 2559 // An exception indicating a throttling error. 2560 // 2561 // * AccessDeniedException 2562 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 2563 // This can occur if you submit a request, such as PutExternalModel, that specifies 2564 // a role that is not in your account. 2565 // 2566 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DescribeDetector 2567 func (c *FraudDetector) DescribeDetector(input *DescribeDetectorInput) (*DescribeDetectorOutput, error) { 2568 req, out := c.DescribeDetectorRequest(input) 2569 return out, req.Send() 2570 } 2571 2572 // DescribeDetectorWithContext is the same as DescribeDetector with the addition of 2573 // the ability to pass a context and additional request options. 2574 // 2575 // See DescribeDetector for details on how to use this API operation. 2576 // 2577 // The context must be non-nil and will be used for request cancellation. If 2578 // the context is nil a panic will occur. In the future the SDK may create 2579 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2580 // for more information on using Contexts. 2581 func (c *FraudDetector) DescribeDetectorWithContext(ctx aws.Context, input *DescribeDetectorInput, opts ...request.Option) (*DescribeDetectorOutput, error) { 2582 req, out := c.DescribeDetectorRequest(input) 2583 req.SetContext(ctx) 2584 req.ApplyOptions(opts...) 2585 return out, req.Send() 2586 } 2587 2588 const opDescribeModelVersions = "DescribeModelVersions" 2589 2590 // DescribeModelVersionsRequest generates a "aws/request.Request" representing the 2591 // client's request for the DescribeModelVersions operation. The "output" return 2592 // value will be populated with the request's response once the request completes 2593 // successfully. 2594 // 2595 // Use "Send" method on the returned Request to send the API call to the service. 2596 // the "output" return value is not valid until after Send returns without error. 2597 // 2598 // See DescribeModelVersions for more information on using the DescribeModelVersions 2599 // API call, and error handling. 2600 // 2601 // This method is useful when you want to inject custom logic or configuration 2602 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2603 // 2604 // 2605 // // Example sending a request using the DescribeModelVersionsRequest method. 2606 // req, resp := client.DescribeModelVersionsRequest(params) 2607 // 2608 // err := req.Send() 2609 // if err == nil { // resp is now filled 2610 // fmt.Println(resp) 2611 // } 2612 // 2613 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DescribeModelVersions 2614 func (c *FraudDetector) DescribeModelVersionsRequest(input *DescribeModelVersionsInput) (req *request.Request, output *DescribeModelVersionsOutput) { 2615 op := &request.Operation{ 2616 Name: opDescribeModelVersions, 2617 HTTPMethod: "POST", 2618 HTTPPath: "/", 2619 Paginator: &request.Paginator{ 2620 InputTokens: []string{"nextToken"}, 2621 OutputTokens: []string{"nextToken"}, 2622 LimitToken: "maxResults", 2623 TruncationToken: "", 2624 }, 2625 } 2626 2627 if input == nil { 2628 input = &DescribeModelVersionsInput{} 2629 } 2630 2631 output = &DescribeModelVersionsOutput{} 2632 req = c.newRequest(op, input, output) 2633 return 2634 } 2635 2636 // DescribeModelVersions API operation for Amazon Fraud Detector. 2637 // 2638 // Gets all of the model versions for the specified model type or for the specified 2639 // model type and model ID. You can also get details for a single, specified 2640 // model version. 2641 // 2642 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2643 // with awserr.Error's Code and Message methods to get detailed information about 2644 // the error. 2645 // 2646 // See the AWS API reference guide for Amazon Fraud Detector's 2647 // API operation DescribeModelVersions for usage and error information. 2648 // 2649 // Returned Error Types: 2650 // * ValidationException 2651 // An exception indicating a specified value is not allowed. 2652 // 2653 // * ResourceNotFoundException 2654 // An exception indicating the specified resource was not found. 2655 // 2656 // * InternalServerException 2657 // An exception indicating an internal server error. 2658 // 2659 // * ThrottlingException 2660 // An exception indicating a throttling error. 2661 // 2662 // * AccessDeniedException 2663 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 2664 // This can occur if you submit a request, such as PutExternalModel, that specifies 2665 // a role that is not in your account. 2666 // 2667 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DescribeModelVersions 2668 func (c *FraudDetector) DescribeModelVersions(input *DescribeModelVersionsInput) (*DescribeModelVersionsOutput, error) { 2669 req, out := c.DescribeModelVersionsRequest(input) 2670 return out, req.Send() 2671 } 2672 2673 // DescribeModelVersionsWithContext is the same as DescribeModelVersions with the addition of 2674 // the ability to pass a context and additional request options. 2675 // 2676 // See DescribeModelVersions for details on how to use this API operation. 2677 // 2678 // The context must be non-nil and will be used for request cancellation. If 2679 // the context is nil a panic will occur. In the future the SDK may create 2680 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2681 // for more information on using Contexts. 2682 func (c *FraudDetector) DescribeModelVersionsWithContext(ctx aws.Context, input *DescribeModelVersionsInput, opts ...request.Option) (*DescribeModelVersionsOutput, error) { 2683 req, out := c.DescribeModelVersionsRequest(input) 2684 req.SetContext(ctx) 2685 req.ApplyOptions(opts...) 2686 return out, req.Send() 2687 } 2688 2689 // DescribeModelVersionsPages iterates over the pages of a DescribeModelVersions operation, 2690 // calling the "fn" function with the response data for each page. To stop 2691 // iterating, return false from the fn function. 2692 // 2693 // See DescribeModelVersions method for more information on how to use this operation. 2694 // 2695 // Note: This operation can generate multiple requests to a service. 2696 // 2697 // // Example iterating over at most 3 pages of a DescribeModelVersions operation. 2698 // pageNum := 0 2699 // err := client.DescribeModelVersionsPages(params, 2700 // func(page *frauddetector.DescribeModelVersionsOutput, lastPage bool) bool { 2701 // pageNum++ 2702 // fmt.Println(page) 2703 // return pageNum <= 3 2704 // }) 2705 // 2706 func (c *FraudDetector) DescribeModelVersionsPages(input *DescribeModelVersionsInput, fn func(*DescribeModelVersionsOutput, bool) bool) error { 2707 return c.DescribeModelVersionsPagesWithContext(aws.BackgroundContext(), input, fn) 2708 } 2709 2710 // DescribeModelVersionsPagesWithContext same as DescribeModelVersionsPages except 2711 // it takes a Context and allows setting request options on the pages. 2712 // 2713 // The context must be non-nil and will be used for request cancellation. If 2714 // the context is nil a panic will occur. In the future the SDK may create 2715 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2716 // for more information on using Contexts. 2717 func (c *FraudDetector) DescribeModelVersionsPagesWithContext(ctx aws.Context, input *DescribeModelVersionsInput, fn func(*DescribeModelVersionsOutput, bool) bool, opts ...request.Option) error { 2718 p := request.Pagination{ 2719 NewRequest: func() (*request.Request, error) { 2720 var inCpy *DescribeModelVersionsInput 2721 if input != nil { 2722 tmp := *input 2723 inCpy = &tmp 2724 } 2725 req, _ := c.DescribeModelVersionsRequest(inCpy) 2726 req.SetContext(ctx) 2727 req.ApplyOptions(opts...) 2728 return req, nil 2729 }, 2730 } 2731 2732 for p.Next() { 2733 if !fn(p.Page().(*DescribeModelVersionsOutput), !p.HasNextPage()) { 2734 break 2735 } 2736 } 2737 2738 return p.Err() 2739 } 2740 2741 const opGetBatchImportJobs = "GetBatchImportJobs" 2742 2743 // GetBatchImportJobsRequest generates a "aws/request.Request" representing the 2744 // client's request for the GetBatchImportJobs operation. The "output" return 2745 // value will be populated with the request's response once the request completes 2746 // successfully. 2747 // 2748 // Use "Send" method on the returned Request to send the API call to the service. 2749 // the "output" return value is not valid until after Send returns without error. 2750 // 2751 // See GetBatchImportJobs for more information on using the GetBatchImportJobs 2752 // API call, and error handling. 2753 // 2754 // This method is useful when you want to inject custom logic or configuration 2755 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2756 // 2757 // 2758 // // Example sending a request using the GetBatchImportJobsRequest method. 2759 // req, resp := client.GetBatchImportJobsRequest(params) 2760 // 2761 // err := req.Send() 2762 // if err == nil { // resp is now filled 2763 // fmt.Println(resp) 2764 // } 2765 // 2766 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetBatchImportJobs 2767 func (c *FraudDetector) GetBatchImportJobsRequest(input *GetBatchImportJobsInput) (req *request.Request, output *GetBatchImportJobsOutput) { 2768 op := &request.Operation{ 2769 Name: opGetBatchImportJobs, 2770 HTTPMethod: "POST", 2771 HTTPPath: "/", 2772 Paginator: &request.Paginator{ 2773 InputTokens: []string{"nextToken"}, 2774 OutputTokens: []string{"nextToken"}, 2775 LimitToken: "maxResults", 2776 TruncationToken: "", 2777 }, 2778 } 2779 2780 if input == nil { 2781 input = &GetBatchImportJobsInput{} 2782 } 2783 2784 output = &GetBatchImportJobsOutput{} 2785 req = c.newRequest(op, input, output) 2786 return 2787 } 2788 2789 // GetBatchImportJobs API operation for Amazon Fraud Detector. 2790 // 2791 // Gets all batch import jobs or a specific job of the specified ID. This is 2792 // a paginated API. If you provide a null maxResults, this action retrieves 2793 // a maximum of 50 records per page. If you provide a maxResults, the value 2794 // must be between 1 and 50. To get the next page results, provide the pagination 2795 // token from the GetBatchImportJobsResponse as part of your request. A null 2796 // pagination token fetches the records from the beginning. 2797 // 2798 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2799 // with awserr.Error's Code and Message methods to get detailed information about 2800 // the error. 2801 // 2802 // See the AWS API reference guide for Amazon Fraud Detector's 2803 // API operation GetBatchImportJobs for usage and error information. 2804 // 2805 // Returned Error Types: 2806 // * ValidationException 2807 // An exception indicating a specified value is not allowed. 2808 // 2809 // * ResourceNotFoundException 2810 // An exception indicating the specified resource was not found. 2811 // 2812 // * InternalServerException 2813 // An exception indicating an internal server error. 2814 // 2815 // * ThrottlingException 2816 // An exception indicating a throttling error. 2817 // 2818 // * AccessDeniedException 2819 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 2820 // This can occur if you submit a request, such as PutExternalModel, that specifies 2821 // a role that is not in your account. 2822 // 2823 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetBatchImportJobs 2824 func (c *FraudDetector) GetBatchImportJobs(input *GetBatchImportJobsInput) (*GetBatchImportJobsOutput, error) { 2825 req, out := c.GetBatchImportJobsRequest(input) 2826 return out, req.Send() 2827 } 2828 2829 // GetBatchImportJobsWithContext is the same as GetBatchImportJobs with the addition of 2830 // the ability to pass a context and additional request options. 2831 // 2832 // See GetBatchImportJobs for details on how to use this API operation. 2833 // 2834 // The context must be non-nil and will be used for request cancellation. If 2835 // the context is nil a panic will occur. In the future the SDK may create 2836 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2837 // for more information on using Contexts. 2838 func (c *FraudDetector) GetBatchImportJobsWithContext(ctx aws.Context, input *GetBatchImportJobsInput, opts ...request.Option) (*GetBatchImportJobsOutput, error) { 2839 req, out := c.GetBatchImportJobsRequest(input) 2840 req.SetContext(ctx) 2841 req.ApplyOptions(opts...) 2842 return out, req.Send() 2843 } 2844 2845 // GetBatchImportJobsPages iterates over the pages of a GetBatchImportJobs operation, 2846 // calling the "fn" function with the response data for each page. To stop 2847 // iterating, return false from the fn function. 2848 // 2849 // See GetBatchImportJobs method for more information on how to use this operation. 2850 // 2851 // Note: This operation can generate multiple requests to a service. 2852 // 2853 // // Example iterating over at most 3 pages of a GetBatchImportJobs operation. 2854 // pageNum := 0 2855 // err := client.GetBatchImportJobsPages(params, 2856 // func(page *frauddetector.GetBatchImportJobsOutput, lastPage bool) bool { 2857 // pageNum++ 2858 // fmt.Println(page) 2859 // return pageNum <= 3 2860 // }) 2861 // 2862 func (c *FraudDetector) GetBatchImportJobsPages(input *GetBatchImportJobsInput, fn func(*GetBatchImportJobsOutput, bool) bool) error { 2863 return c.GetBatchImportJobsPagesWithContext(aws.BackgroundContext(), input, fn) 2864 } 2865 2866 // GetBatchImportJobsPagesWithContext same as GetBatchImportJobsPages except 2867 // it takes a Context and allows setting request options on the pages. 2868 // 2869 // The context must be non-nil and will be used for request cancellation. If 2870 // the context is nil a panic will occur. In the future the SDK may create 2871 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2872 // for more information on using Contexts. 2873 func (c *FraudDetector) GetBatchImportJobsPagesWithContext(ctx aws.Context, input *GetBatchImportJobsInput, fn func(*GetBatchImportJobsOutput, bool) bool, opts ...request.Option) error { 2874 p := request.Pagination{ 2875 NewRequest: func() (*request.Request, error) { 2876 var inCpy *GetBatchImportJobsInput 2877 if input != nil { 2878 tmp := *input 2879 inCpy = &tmp 2880 } 2881 req, _ := c.GetBatchImportJobsRequest(inCpy) 2882 req.SetContext(ctx) 2883 req.ApplyOptions(opts...) 2884 return req, nil 2885 }, 2886 } 2887 2888 for p.Next() { 2889 if !fn(p.Page().(*GetBatchImportJobsOutput), !p.HasNextPage()) { 2890 break 2891 } 2892 } 2893 2894 return p.Err() 2895 } 2896 2897 const opGetBatchPredictionJobs = "GetBatchPredictionJobs" 2898 2899 // GetBatchPredictionJobsRequest generates a "aws/request.Request" representing the 2900 // client's request for the GetBatchPredictionJobs operation. The "output" return 2901 // value will be populated with the request's response once the request completes 2902 // successfully. 2903 // 2904 // Use "Send" method on the returned Request to send the API call to the service. 2905 // the "output" return value is not valid until after Send returns without error. 2906 // 2907 // See GetBatchPredictionJobs for more information on using the GetBatchPredictionJobs 2908 // API call, and error handling. 2909 // 2910 // This method is useful when you want to inject custom logic or configuration 2911 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2912 // 2913 // 2914 // // Example sending a request using the GetBatchPredictionJobsRequest method. 2915 // req, resp := client.GetBatchPredictionJobsRequest(params) 2916 // 2917 // err := req.Send() 2918 // if err == nil { // resp is now filled 2919 // fmt.Println(resp) 2920 // } 2921 // 2922 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetBatchPredictionJobs 2923 func (c *FraudDetector) GetBatchPredictionJobsRequest(input *GetBatchPredictionJobsInput) (req *request.Request, output *GetBatchPredictionJobsOutput) { 2924 op := &request.Operation{ 2925 Name: opGetBatchPredictionJobs, 2926 HTTPMethod: "POST", 2927 HTTPPath: "/", 2928 Paginator: &request.Paginator{ 2929 InputTokens: []string{"nextToken"}, 2930 OutputTokens: []string{"nextToken"}, 2931 LimitToken: "maxResults", 2932 TruncationToken: "", 2933 }, 2934 } 2935 2936 if input == nil { 2937 input = &GetBatchPredictionJobsInput{} 2938 } 2939 2940 output = &GetBatchPredictionJobsOutput{} 2941 req = c.newRequest(op, input, output) 2942 return 2943 } 2944 2945 // GetBatchPredictionJobs API operation for Amazon Fraud Detector. 2946 // 2947 // Gets all batch prediction jobs or a specific job if you specify a job ID. 2948 // This is a paginated API. If you provide a null maxResults, this action retrieves 2949 // a maximum of 50 records per page. If you provide a maxResults, the value 2950 // must be between 1 and 50. To get the next page results, provide the pagination 2951 // token from the GetBatchPredictionJobsResponse as part of your request. A 2952 // null pagination token fetches the records from the beginning. 2953 // 2954 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2955 // with awserr.Error's Code and Message methods to get detailed information about 2956 // the error. 2957 // 2958 // See the AWS API reference guide for Amazon Fraud Detector's 2959 // API operation GetBatchPredictionJobs for usage and error information. 2960 // 2961 // Returned Error Types: 2962 // * ValidationException 2963 // An exception indicating a specified value is not allowed. 2964 // 2965 // * ResourceNotFoundException 2966 // An exception indicating the specified resource was not found. 2967 // 2968 // * InternalServerException 2969 // An exception indicating an internal server error. 2970 // 2971 // * ThrottlingException 2972 // An exception indicating a throttling error. 2973 // 2974 // * AccessDeniedException 2975 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 2976 // This can occur if you submit a request, such as PutExternalModel, that specifies 2977 // a role that is not in your account. 2978 // 2979 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetBatchPredictionJobs 2980 func (c *FraudDetector) GetBatchPredictionJobs(input *GetBatchPredictionJobsInput) (*GetBatchPredictionJobsOutput, error) { 2981 req, out := c.GetBatchPredictionJobsRequest(input) 2982 return out, req.Send() 2983 } 2984 2985 // GetBatchPredictionJobsWithContext is the same as GetBatchPredictionJobs with the addition of 2986 // the ability to pass a context and additional request options. 2987 // 2988 // See GetBatchPredictionJobs for details on how to use this API operation. 2989 // 2990 // The context must be non-nil and will be used for request cancellation. If 2991 // the context is nil a panic will occur. In the future the SDK may create 2992 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2993 // for more information on using Contexts. 2994 func (c *FraudDetector) GetBatchPredictionJobsWithContext(ctx aws.Context, input *GetBatchPredictionJobsInput, opts ...request.Option) (*GetBatchPredictionJobsOutput, error) { 2995 req, out := c.GetBatchPredictionJobsRequest(input) 2996 req.SetContext(ctx) 2997 req.ApplyOptions(opts...) 2998 return out, req.Send() 2999 } 3000 3001 // GetBatchPredictionJobsPages iterates over the pages of a GetBatchPredictionJobs operation, 3002 // calling the "fn" function with the response data for each page. To stop 3003 // iterating, return false from the fn function. 3004 // 3005 // See GetBatchPredictionJobs method for more information on how to use this operation. 3006 // 3007 // Note: This operation can generate multiple requests to a service. 3008 // 3009 // // Example iterating over at most 3 pages of a GetBatchPredictionJobs operation. 3010 // pageNum := 0 3011 // err := client.GetBatchPredictionJobsPages(params, 3012 // func(page *frauddetector.GetBatchPredictionJobsOutput, lastPage bool) bool { 3013 // pageNum++ 3014 // fmt.Println(page) 3015 // return pageNum <= 3 3016 // }) 3017 // 3018 func (c *FraudDetector) GetBatchPredictionJobsPages(input *GetBatchPredictionJobsInput, fn func(*GetBatchPredictionJobsOutput, bool) bool) error { 3019 return c.GetBatchPredictionJobsPagesWithContext(aws.BackgroundContext(), input, fn) 3020 } 3021 3022 // GetBatchPredictionJobsPagesWithContext same as GetBatchPredictionJobsPages except 3023 // it takes a Context and allows setting request options on the pages. 3024 // 3025 // The context must be non-nil and will be used for request cancellation. If 3026 // the context is nil a panic will occur. In the future the SDK may create 3027 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3028 // for more information on using Contexts. 3029 func (c *FraudDetector) GetBatchPredictionJobsPagesWithContext(ctx aws.Context, input *GetBatchPredictionJobsInput, fn func(*GetBatchPredictionJobsOutput, bool) bool, opts ...request.Option) error { 3030 p := request.Pagination{ 3031 NewRequest: func() (*request.Request, error) { 3032 var inCpy *GetBatchPredictionJobsInput 3033 if input != nil { 3034 tmp := *input 3035 inCpy = &tmp 3036 } 3037 req, _ := c.GetBatchPredictionJobsRequest(inCpy) 3038 req.SetContext(ctx) 3039 req.ApplyOptions(opts...) 3040 return req, nil 3041 }, 3042 } 3043 3044 for p.Next() { 3045 if !fn(p.Page().(*GetBatchPredictionJobsOutput), !p.HasNextPage()) { 3046 break 3047 } 3048 } 3049 3050 return p.Err() 3051 } 3052 3053 const opGetDeleteEventsByEventTypeStatus = "GetDeleteEventsByEventTypeStatus" 3054 3055 // GetDeleteEventsByEventTypeStatusRequest generates a "aws/request.Request" representing the 3056 // client's request for the GetDeleteEventsByEventTypeStatus operation. The "output" return 3057 // value will be populated with the request's response once the request completes 3058 // successfully. 3059 // 3060 // Use "Send" method on the returned Request to send the API call to the service. 3061 // the "output" return value is not valid until after Send returns without error. 3062 // 3063 // See GetDeleteEventsByEventTypeStatus for more information on using the GetDeleteEventsByEventTypeStatus 3064 // API call, and error handling. 3065 // 3066 // This method is useful when you want to inject custom logic or configuration 3067 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 3068 // 3069 // 3070 // // Example sending a request using the GetDeleteEventsByEventTypeStatusRequest method. 3071 // req, resp := client.GetDeleteEventsByEventTypeStatusRequest(params) 3072 // 3073 // err := req.Send() 3074 // if err == nil { // resp is now filled 3075 // fmt.Println(resp) 3076 // } 3077 // 3078 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDeleteEventsByEventTypeStatus 3079 func (c *FraudDetector) GetDeleteEventsByEventTypeStatusRequest(input *GetDeleteEventsByEventTypeStatusInput) (req *request.Request, output *GetDeleteEventsByEventTypeStatusOutput) { 3080 op := &request.Operation{ 3081 Name: opGetDeleteEventsByEventTypeStatus, 3082 HTTPMethod: "POST", 3083 HTTPPath: "/", 3084 } 3085 3086 if input == nil { 3087 input = &GetDeleteEventsByEventTypeStatusInput{} 3088 } 3089 3090 output = &GetDeleteEventsByEventTypeStatusOutput{} 3091 req = c.newRequest(op, input, output) 3092 return 3093 } 3094 3095 // GetDeleteEventsByEventTypeStatus API operation for Amazon Fraud Detector. 3096 // 3097 // Retrieves the status of a DeleteEventsByEventType action. 3098 // 3099 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3100 // with awserr.Error's Code and Message methods to get detailed information about 3101 // the error. 3102 // 3103 // See the AWS API reference guide for Amazon Fraud Detector's 3104 // API operation GetDeleteEventsByEventTypeStatus for usage and error information. 3105 // 3106 // Returned Error Types: 3107 // * ValidationException 3108 // An exception indicating a specified value is not allowed. 3109 // 3110 // * ResourceNotFoundException 3111 // An exception indicating the specified resource was not found. 3112 // 3113 // * InternalServerException 3114 // An exception indicating an internal server error. 3115 // 3116 // * ThrottlingException 3117 // An exception indicating a throttling error. 3118 // 3119 // * AccessDeniedException 3120 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 3121 // This can occur if you submit a request, such as PutExternalModel, that specifies 3122 // a role that is not in your account. 3123 // 3124 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDeleteEventsByEventTypeStatus 3125 func (c *FraudDetector) GetDeleteEventsByEventTypeStatus(input *GetDeleteEventsByEventTypeStatusInput) (*GetDeleteEventsByEventTypeStatusOutput, error) { 3126 req, out := c.GetDeleteEventsByEventTypeStatusRequest(input) 3127 return out, req.Send() 3128 } 3129 3130 // GetDeleteEventsByEventTypeStatusWithContext is the same as GetDeleteEventsByEventTypeStatus with the addition of 3131 // the ability to pass a context and additional request options. 3132 // 3133 // See GetDeleteEventsByEventTypeStatus for details on how to use this API operation. 3134 // 3135 // The context must be non-nil and will be used for request cancellation. If 3136 // the context is nil a panic will occur. In the future the SDK may create 3137 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3138 // for more information on using Contexts. 3139 func (c *FraudDetector) GetDeleteEventsByEventTypeStatusWithContext(ctx aws.Context, input *GetDeleteEventsByEventTypeStatusInput, opts ...request.Option) (*GetDeleteEventsByEventTypeStatusOutput, error) { 3140 req, out := c.GetDeleteEventsByEventTypeStatusRequest(input) 3141 req.SetContext(ctx) 3142 req.ApplyOptions(opts...) 3143 return out, req.Send() 3144 } 3145 3146 const opGetDetectorVersion = "GetDetectorVersion" 3147 3148 // GetDetectorVersionRequest generates a "aws/request.Request" representing the 3149 // client's request for the GetDetectorVersion operation. The "output" return 3150 // value will be populated with the request's response once the request completes 3151 // successfully. 3152 // 3153 // Use "Send" method on the returned Request to send the API call to the service. 3154 // the "output" return value is not valid until after Send returns without error. 3155 // 3156 // See GetDetectorVersion for more information on using the GetDetectorVersion 3157 // API call, and error handling. 3158 // 3159 // This method is useful when you want to inject custom logic or configuration 3160 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 3161 // 3162 // 3163 // // Example sending a request using the GetDetectorVersionRequest method. 3164 // req, resp := client.GetDetectorVersionRequest(params) 3165 // 3166 // err := req.Send() 3167 // if err == nil { // resp is now filled 3168 // fmt.Println(resp) 3169 // } 3170 // 3171 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDetectorVersion 3172 func (c *FraudDetector) GetDetectorVersionRequest(input *GetDetectorVersionInput) (req *request.Request, output *GetDetectorVersionOutput) { 3173 op := &request.Operation{ 3174 Name: opGetDetectorVersion, 3175 HTTPMethod: "POST", 3176 HTTPPath: "/", 3177 } 3178 3179 if input == nil { 3180 input = &GetDetectorVersionInput{} 3181 } 3182 3183 output = &GetDetectorVersionOutput{} 3184 req = c.newRequest(op, input, output) 3185 return 3186 } 3187 3188 // GetDetectorVersion API operation for Amazon Fraud Detector. 3189 // 3190 // Gets a particular detector version. 3191 // 3192 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3193 // with awserr.Error's Code and Message methods to get detailed information about 3194 // the error. 3195 // 3196 // See the AWS API reference guide for Amazon Fraud Detector's 3197 // API operation GetDetectorVersion for usage and error information. 3198 // 3199 // Returned Error Types: 3200 // * ValidationException 3201 // An exception indicating a specified value is not allowed. 3202 // 3203 // * ResourceNotFoundException 3204 // An exception indicating the specified resource was not found. 3205 // 3206 // * InternalServerException 3207 // An exception indicating an internal server error. 3208 // 3209 // * ThrottlingException 3210 // An exception indicating a throttling error. 3211 // 3212 // * AccessDeniedException 3213 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 3214 // This can occur if you submit a request, such as PutExternalModel, that specifies 3215 // a role that is not in your account. 3216 // 3217 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDetectorVersion 3218 func (c *FraudDetector) GetDetectorVersion(input *GetDetectorVersionInput) (*GetDetectorVersionOutput, error) { 3219 req, out := c.GetDetectorVersionRequest(input) 3220 return out, req.Send() 3221 } 3222 3223 // GetDetectorVersionWithContext is the same as GetDetectorVersion with the addition of 3224 // the ability to pass a context and additional request options. 3225 // 3226 // See GetDetectorVersion for details on how to use this API operation. 3227 // 3228 // The context must be non-nil and will be used for request cancellation. If 3229 // the context is nil a panic will occur. In the future the SDK may create 3230 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3231 // for more information on using Contexts. 3232 func (c *FraudDetector) GetDetectorVersionWithContext(ctx aws.Context, input *GetDetectorVersionInput, opts ...request.Option) (*GetDetectorVersionOutput, error) { 3233 req, out := c.GetDetectorVersionRequest(input) 3234 req.SetContext(ctx) 3235 req.ApplyOptions(opts...) 3236 return out, req.Send() 3237 } 3238 3239 const opGetDetectors = "GetDetectors" 3240 3241 // GetDetectorsRequest generates a "aws/request.Request" representing the 3242 // client's request for the GetDetectors operation. The "output" return 3243 // value will be populated with the request's response once the request completes 3244 // successfully. 3245 // 3246 // Use "Send" method on the returned Request to send the API call to the service. 3247 // the "output" return value is not valid until after Send returns without error. 3248 // 3249 // See GetDetectors for more information on using the GetDetectors 3250 // API call, and error handling. 3251 // 3252 // This method is useful when you want to inject custom logic or configuration 3253 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 3254 // 3255 // 3256 // // Example sending a request using the GetDetectorsRequest method. 3257 // req, resp := client.GetDetectorsRequest(params) 3258 // 3259 // err := req.Send() 3260 // if err == nil { // resp is now filled 3261 // fmt.Println(resp) 3262 // } 3263 // 3264 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDetectors 3265 func (c *FraudDetector) GetDetectorsRequest(input *GetDetectorsInput) (req *request.Request, output *GetDetectorsOutput) { 3266 op := &request.Operation{ 3267 Name: opGetDetectors, 3268 HTTPMethod: "POST", 3269 HTTPPath: "/", 3270 Paginator: &request.Paginator{ 3271 InputTokens: []string{"nextToken"}, 3272 OutputTokens: []string{"nextToken"}, 3273 LimitToken: "maxResults", 3274 TruncationToken: "", 3275 }, 3276 } 3277 3278 if input == nil { 3279 input = &GetDetectorsInput{} 3280 } 3281 3282 output = &GetDetectorsOutput{} 3283 req = c.newRequest(op, input, output) 3284 return 3285 } 3286 3287 // GetDetectors API operation for Amazon Fraud Detector. 3288 // 3289 // Gets all detectors or a single detector if a detectorId is specified. This 3290 // is a paginated API. If you provide a null maxResults, this action retrieves 3291 // a maximum of 10 records per page. If you provide a maxResults, the value 3292 // must be between 5 and 10. To get the next page results, provide the pagination 3293 // token from the GetDetectorsResponse as part of your request. A null pagination 3294 // token fetches the records from the beginning. 3295 // 3296 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3297 // with awserr.Error's Code and Message methods to get detailed information about 3298 // the error. 3299 // 3300 // See the AWS API reference guide for Amazon Fraud Detector's 3301 // API operation GetDetectors for usage and error information. 3302 // 3303 // Returned Error Types: 3304 // * ValidationException 3305 // An exception indicating a specified value is not allowed. 3306 // 3307 // * ResourceNotFoundException 3308 // An exception indicating the specified resource was not found. 3309 // 3310 // * InternalServerException 3311 // An exception indicating an internal server error. 3312 // 3313 // * ThrottlingException 3314 // An exception indicating a throttling error. 3315 // 3316 // * AccessDeniedException 3317 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 3318 // This can occur if you submit a request, such as PutExternalModel, that specifies 3319 // a role that is not in your account. 3320 // 3321 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDetectors 3322 func (c *FraudDetector) GetDetectors(input *GetDetectorsInput) (*GetDetectorsOutput, error) { 3323 req, out := c.GetDetectorsRequest(input) 3324 return out, req.Send() 3325 } 3326 3327 // GetDetectorsWithContext is the same as GetDetectors with the addition of 3328 // the ability to pass a context and additional request options. 3329 // 3330 // See GetDetectors for details on how to use this API operation. 3331 // 3332 // The context must be non-nil and will be used for request cancellation. If 3333 // the context is nil a panic will occur. In the future the SDK may create 3334 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3335 // for more information on using Contexts. 3336 func (c *FraudDetector) GetDetectorsWithContext(ctx aws.Context, input *GetDetectorsInput, opts ...request.Option) (*GetDetectorsOutput, error) { 3337 req, out := c.GetDetectorsRequest(input) 3338 req.SetContext(ctx) 3339 req.ApplyOptions(opts...) 3340 return out, req.Send() 3341 } 3342 3343 // GetDetectorsPages iterates over the pages of a GetDetectors operation, 3344 // calling the "fn" function with the response data for each page. To stop 3345 // iterating, return false from the fn function. 3346 // 3347 // See GetDetectors method for more information on how to use this operation. 3348 // 3349 // Note: This operation can generate multiple requests to a service. 3350 // 3351 // // Example iterating over at most 3 pages of a GetDetectors operation. 3352 // pageNum := 0 3353 // err := client.GetDetectorsPages(params, 3354 // func(page *frauddetector.GetDetectorsOutput, lastPage bool) bool { 3355 // pageNum++ 3356 // fmt.Println(page) 3357 // return pageNum <= 3 3358 // }) 3359 // 3360 func (c *FraudDetector) GetDetectorsPages(input *GetDetectorsInput, fn func(*GetDetectorsOutput, bool) bool) error { 3361 return c.GetDetectorsPagesWithContext(aws.BackgroundContext(), input, fn) 3362 } 3363 3364 // GetDetectorsPagesWithContext same as GetDetectorsPages except 3365 // it takes a Context and allows setting request options on the pages. 3366 // 3367 // The context must be non-nil and will be used for request cancellation. If 3368 // the context is nil a panic will occur. In the future the SDK may create 3369 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3370 // for more information on using Contexts. 3371 func (c *FraudDetector) GetDetectorsPagesWithContext(ctx aws.Context, input *GetDetectorsInput, fn func(*GetDetectorsOutput, bool) bool, opts ...request.Option) error { 3372 p := request.Pagination{ 3373 NewRequest: func() (*request.Request, error) { 3374 var inCpy *GetDetectorsInput 3375 if input != nil { 3376 tmp := *input 3377 inCpy = &tmp 3378 } 3379 req, _ := c.GetDetectorsRequest(inCpy) 3380 req.SetContext(ctx) 3381 req.ApplyOptions(opts...) 3382 return req, nil 3383 }, 3384 } 3385 3386 for p.Next() { 3387 if !fn(p.Page().(*GetDetectorsOutput), !p.HasNextPage()) { 3388 break 3389 } 3390 } 3391 3392 return p.Err() 3393 } 3394 3395 const opGetEntityTypes = "GetEntityTypes" 3396 3397 // GetEntityTypesRequest generates a "aws/request.Request" representing the 3398 // client's request for the GetEntityTypes operation. The "output" return 3399 // value will be populated with the request's response once the request completes 3400 // successfully. 3401 // 3402 // Use "Send" method on the returned Request to send the API call to the service. 3403 // the "output" return value is not valid until after Send returns without error. 3404 // 3405 // See GetEntityTypes for more information on using the GetEntityTypes 3406 // API call, and error handling. 3407 // 3408 // This method is useful when you want to inject custom logic or configuration 3409 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 3410 // 3411 // 3412 // // Example sending a request using the GetEntityTypesRequest method. 3413 // req, resp := client.GetEntityTypesRequest(params) 3414 // 3415 // err := req.Send() 3416 // if err == nil { // resp is now filled 3417 // fmt.Println(resp) 3418 // } 3419 // 3420 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetEntityTypes 3421 func (c *FraudDetector) GetEntityTypesRequest(input *GetEntityTypesInput) (req *request.Request, output *GetEntityTypesOutput) { 3422 op := &request.Operation{ 3423 Name: opGetEntityTypes, 3424 HTTPMethod: "POST", 3425 HTTPPath: "/", 3426 Paginator: &request.Paginator{ 3427 InputTokens: []string{"nextToken"}, 3428 OutputTokens: []string{"nextToken"}, 3429 LimitToken: "maxResults", 3430 TruncationToken: "", 3431 }, 3432 } 3433 3434 if input == nil { 3435 input = &GetEntityTypesInput{} 3436 } 3437 3438 output = &GetEntityTypesOutput{} 3439 req = c.newRequest(op, input, output) 3440 return 3441 } 3442 3443 // GetEntityTypes API operation for Amazon Fraud Detector. 3444 // 3445 // Gets all entity types or a specific entity type if a name is specified. This 3446 // is a paginated API. If you provide a null maxResults, this action retrieves 3447 // a maximum of 10 records per page. If you provide a maxResults, the value 3448 // must be between 5 and 10. To get the next page results, provide the pagination 3449 // token from the GetEntityTypesResponse as part of your request. A null pagination 3450 // token fetches the records from the beginning. 3451 // 3452 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3453 // with awserr.Error's Code and Message methods to get detailed information about 3454 // the error. 3455 // 3456 // See the AWS API reference guide for Amazon Fraud Detector's 3457 // API operation GetEntityTypes for usage and error information. 3458 // 3459 // Returned Error Types: 3460 // * ValidationException 3461 // An exception indicating a specified value is not allowed. 3462 // 3463 // * ResourceNotFoundException 3464 // An exception indicating the specified resource was not found. 3465 // 3466 // * InternalServerException 3467 // An exception indicating an internal server error. 3468 // 3469 // * ThrottlingException 3470 // An exception indicating a throttling error. 3471 // 3472 // * AccessDeniedException 3473 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 3474 // This can occur if you submit a request, such as PutExternalModel, that specifies 3475 // a role that is not in your account. 3476 // 3477 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetEntityTypes 3478 func (c *FraudDetector) GetEntityTypes(input *GetEntityTypesInput) (*GetEntityTypesOutput, error) { 3479 req, out := c.GetEntityTypesRequest(input) 3480 return out, req.Send() 3481 } 3482 3483 // GetEntityTypesWithContext is the same as GetEntityTypes with the addition of 3484 // the ability to pass a context and additional request options. 3485 // 3486 // See GetEntityTypes for details on how to use this API operation. 3487 // 3488 // The context must be non-nil and will be used for request cancellation. If 3489 // the context is nil a panic will occur. In the future the SDK may create 3490 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3491 // for more information on using Contexts. 3492 func (c *FraudDetector) GetEntityTypesWithContext(ctx aws.Context, input *GetEntityTypesInput, opts ...request.Option) (*GetEntityTypesOutput, error) { 3493 req, out := c.GetEntityTypesRequest(input) 3494 req.SetContext(ctx) 3495 req.ApplyOptions(opts...) 3496 return out, req.Send() 3497 } 3498 3499 // GetEntityTypesPages iterates over the pages of a GetEntityTypes operation, 3500 // calling the "fn" function with the response data for each page. To stop 3501 // iterating, return false from the fn function. 3502 // 3503 // See GetEntityTypes method for more information on how to use this operation. 3504 // 3505 // Note: This operation can generate multiple requests to a service. 3506 // 3507 // // Example iterating over at most 3 pages of a GetEntityTypes operation. 3508 // pageNum := 0 3509 // err := client.GetEntityTypesPages(params, 3510 // func(page *frauddetector.GetEntityTypesOutput, lastPage bool) bool { 3511 // pageNum++ 3512 // fmt.Println(page) 3513 // return pageNum <= 3 3514 // }) 3515 // 3516 func (c *FraudDetector) GetEntityTypesPages(input *GetEntityTypesInput, fn func(*GetEntityTypesOutput, bool) bool) error { 3517 return c.GetEntityTypesPagesWithContext(aws.BackgroundContext(), input, fn) 3518 } 3519 3520 // GetEntityTypesPagesWithContext same as GetEntityTypesPages except 3521 // it takes a Context and allows setting request options on the pages. 3522 // 3523 // The context must be non-nil and will be used for request cancellation. If 3524 // the context is nil a panic will occur. In the future the SDK may create 3525 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3526 // for more information on using Contexts. 3527 func (c *FraudDetector) GetEntityTypesPagesWithContext(ctx aws.Context, input *GetEntityTypesInput, fn func(*GetEntityTypesOutput, bool) bool, opts ...request.Option) error { 3528 p := request.Pagination{ 3529 NewRequest: func() (*request.Request, error) { 3530 var inCpy *GetEntityTypesInput 3531 if input != nil { 3532 tmp := *input 3533 inCpy = &tmp 3534 } 3535 req, _ := c.GetEntityTypesRequest(inCpy) 3536 req.SetContext(ctx) 3537 req.ApplyOptions(opts...) 3538 return req, nil 3539 }, 3540 } 3541 3542 for p.Next() { 3543 if !fn(p.Page().(*GetEntityTypesOutput), !p.HasNextPage()) { 3544 break 3545 } 3546 } 3547 3548 return p.Err() 3549 } 3550 3551 const opGetEvent = "GetEvent" 3552 3553 // GetEventRequest generates a "aws/request.Request" representing the 3554 // client's request for the GetEvent operation. The "output" return 3555 // value will be populated with the request's response once the request completes 3556 // successfully. 3557 // 3558 // Use "Send" method on the returned Request to send the API call to the service. 3559 // the "output" return value is not valid until after Send returns without error. 3560 // 3561 // See GetEvent for more information on using the GetEvent 3562 // API call, and error handling. 3563 // 3564 // This method is useful when you want to inject custom logic or configuration 3565 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 3566 // 3567 // 3568 // // Example sending a request using the GetEventRequest method. 3569 // req, resp := client.GetEventRequest(params) 3570 // 3571 // err := req.Send() 3572 // if err == nil { // resp is now filled 3573 // fmt.Println(resp) 3574 // } 3575 // 3576 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetEvent 3577 func (c *FraudDetector) GetEventRequest(input *GetEventInput) (req *request.Request, output *GetEventOutput) { 3578 op := &request.Operation{ 3579 Name: opGetEvent, 3580 HTTPMethod: "POST", 3581 HTTPPath: "/", 3582 } 3583 3584 if input == nil { 3585 input = &GetEventInput{} 3586 } 3587 3588 output = &GetEventOutput{} 3589 req = c.newRequest(op, input, output) 3590 return 3591 } 3592 3593 // GetEvent API operation for Amazon Fraud Detector. 3594 // 3595 // Retrieves details of events stored with Amazon Fraud Detector. This action 3596 // does not retrieve prediction results. 3597 // 3598 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3599 // with awserr.Error's Code and Message methods to get detailed information about 3600 // the error. 3601 // 3602 // See the AWS API reference guide for Amazon Fraud Detector's 3603 // API operation GetEvent for usage and error information. 3604 // 3605 // Returned Error Types: 3606 // * ValidationException 3607 // An exception indicating a specified value is not allowed. 3608 // 3609 // * ResourceNotFoundException 3610 // An exception indicating the specified resource was not found. 3611 // 3612 // * InternalServerException 3613 // An exception indicating an internal server error. 3614 // 3615 // * ThrottlingException 3616 // An exception indicating a throttling error. 3617 // 3618 // * AccessDeniedException 3619 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 3620 // This can occur if you submit a request, such as PutExternalModel, that specifies 3621 // a role that is not in your account. 3622 // 3623 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetEvent 3624 func (c *FraudDetector) GetEvent(input *GetEventInput) (*GetEventOutput, error) { 3625 req, out := c.GetEventRequest(input) 3626 return out, req.Send() 3627 } 3628 3629 // GetEventWithContext is the same as GetEvent with the addition of 3630 // the ability to pass a context and additional request options. 3631 // 3632 // See GetEvent for details on how to use this API operation. 3633 // 3634 // The context must be non-nil and will be used for request cancellation. If 3635 // the context is nil a panic will occur. In the future the SDK may create 3636 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3637 // for more information on using Contexts. 3638 func (c *FraudDetector) GetEventWithContext(ctx aws.Context, input *GetEventInput, opts ...request.Option) (*GetEventOutput, error) { 3639 req, out := c.GetEventRequest(input) 3640 req.SetContext(ctx) 3641 req.ApplyOptions(opts...) 3642 return out, req.Send() 3643 } 3644 3645 const opGetEventPrediction = "GetEventPrediction" 3646 3647 // GetEventPredictionRequest generates a "aws/request.Request" representing the 3648 // client's request for the GetEventPrediction operation. The "output" return 3649 // value will be populated with the request's response once the request completes 3650 // successfully. 3651 // 3652 // Use "Send" method on the returned Request to send the API call to the service. 3653 // the "output" return value is not valid until after Send returns without error. 3654 // 3655 // See GetEventPrediction for more information on using the GetEventPrediction 3656 // API call, and error handling. 3657 // 3658 // This method is useful when you want to inject custom logic or configuration 3659 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 3660 // 3661 // 3662 // // Example sending a request using the GetEventPredictionRequest method. 3663 // req, resp := client.GetEventPredictionRequest(params) 3664 // 3665 // err := req.Send() 3666 // if err == nil { // resp is now filled 3667 // fmt.Println(resp) 3668 // } 3669 // 3670 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetEventPrediction 3671 func (c *FraudDetector) GetEventPredictionRequest(input *GetEventPredictionInput) (req *request.Request, output *GetEventPredictionOutput) { 3672 op := &request.Operation{ 3673 Name: opGetEventPrediction, 3674 HTTPMethod: "POST", 3675 HTTPPath: "/", 3676 } 3677 3678 if input == nil { 3679 input = &GetEventPredictionInput{} 3680 } 3681 3682 output = &GetEventPredictionOutput{} 3683 req = c.newRequest(op, input, output) 3684 return 3685 } 3686 3687 // GetEventPrediction API operation for Amazon Fraud Detector. 3688 // 3689 // Evaluates an event against a detector version. If a version ID is not provided, 3690 // the detector’s (ACTIVE) version is used. 3691 // 3692 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3693 // with awserr.Error's Code and Message methods to get detailed information about 3694 // the error. 3695 // 3696 // See the AWS API reference guide for Amazon Fraud Detector's 3697 // API operation GetEventPrediction for usage and error information. 3698 // 3699 // Returned Error Types: 3700 // * ValidationException 3701 // An exception indicating a specified value is not allowed. 3702 // 3703 // * ResourceNotFoundException 3704 // An exception indicating the specified resource was not found. 3705 // 3706 // * InternalServerException 3707 // An exception indicating an internal server error. 3708 // 3709 // * ThrottlingException 3710 // An exception indicating a throttling error. 3711 // 3712 // * AccessDeniedException 3713 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 3714 // This can occur if you submit a request, such as PutExternalModel, that specifies 3715 // a role that is not in your account. 3716 // 3717 // * ConflictException 3718 // An exception indicating there was a conflict during a delete operation. 3719 // 3720 // * ResourceUnavailableException 3721 // An exception indicating that the attached customer-owned (external) model 3722 // threw an exception when Amazon Fraud Detector invoked the model. 3723 // 3724 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetEventPrediction 3725 func (c *FraudDetector) GetEventPrediction(input *GetEventPredictionInput) (*GetEventPredictionOutput, error) { 3726 req, out := c.GetEventPredictionRequest(input) 3727 return out, req.Send() 3728 } 3729 3730 // GetEventPredictionWithContext is the same as GetEventPrediction with the addition of 3731 // the ability to pass a context and additional request options. 3732 // 3733 // See GetEventPrediction for details on how to use this API operation. 3734 // 3735 // The context must be non-nil and will be used for request cancellation. If 3736 // the context is nil a panic will occur. In the future the SDK may create 3737 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3738 // for more information on using Contexts. 3739 func (c *FraudDetector) GetEventPredictionWithContext(ctx aws.Context, input *GetEventPredictionInput, opts ...request.Option) (*GetEventPredictionOutput, error) { 3740 req, out := c.GetEventPredictionRequest(input) 3741 req.SetContext(ctx) 3742 req.ApplyOptions(opts...) 3743 return out, req.Send() 3744 } 3745 3746 const opGetEventTypes = "GetEventTypes" 3747 3748 // GetEventTypesRequest generates a "aws/request.Request" representing the 3749 // client's request for the GetEventTypes operation. The "output" return 3750 // value will be populated with the request's response once the request completes 3751 // successfully. 3752 // 3753 // Use "Send" method on the returned Request to send the API call to the service. 3754 // the "output" return value is not valid until after Send returns without error. 3755 // 3756 // See GetEventTypes for more information on using the GetEventTypes 3757 // API call, and error handling. 3758 // 3759 // This method is useful when you want to inject custom logic or configuration 3760 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 3761 // 3762 // 3763 // // Example sending a request using the GetEventTypesRequest method. 3764 // req, resp := client.GetEventTypesRequest(params) 3765 // 3766 // err := req.Send() 3767 // if err == nil { // resp is now filled 3768 // fmt.Println(resp) 3769 // } 3770 // 3771 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetEventTypes 3772 func (c *FraudDetector) GetEventTypesRequest(input *GetEventTypesInput) (req *request.Request, output *GetEventTypesOutput) { 3773 op := &request.Operation{ 3774 Name: opGetEventTypes, 3775 HTTPMethod: "POST", 3776 HTTPPath: "/", 3777 Paginator: &request.Paginator{ 3778 InputTokens: []string{"nextToken"}, 3779 OutputTokens: []string{"nextToken"}, 3780 LimitToken: "maxResults", 3781 TruncationToken: "", 3782 }, 3783 } 3784 3785 if input == nil { 3786 input = &GetEventTypesInput{} 3787 } 3788 3789 output = &GetEventTypesOutput{} 3790 req = c.newRequest(op, input, output) 3791 return 3792 } 3793 3794 // GetEventTypes API operation for Amazon Fraud Detector. 3795 // 3796 // Gets all event types or a specific event type if name is provided. This is 3797 // a paginated API. If you provide a null maxResults, this action retrieves 3798 // a maximum of 10 records per page. If you provide a maxResults, the value 3799 // must be between 5 and 10. To get the next page results, provide the pagination 3800 // token from the GetEventTypesResponse as part of your request. A null pagination 3801 // token fetches the records from the beginning. 3802 // 3803 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3804 // with awserr.Error's Code and Message methods to get detailed information about 3805 // the error. 3806 // 3807 // See the AWS API reference guide for Amazon Fraud Detector's 3808 // API operation GetEventTypes for usage and error information. 3809 // 3810 // Returned Error Types: 3811 // * ValidationException 3812 // An exception indicating a specified value is not allowed. 3813 // 3814 // * ResourceNotFoundException 3815 // An exception indicating the specified resource was not found. 3816 // 3817 // * InternalServerException 3818 // An exception indicating an internal server error. 3819 // 3820 // * ThrottlingException 3821 // An exception indicating a throttling error. 3822 // 3823 // * AccessDeniedException 3824 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 3825 // This can occur if you submit a request, such as PutExternalModel, that specifies 3826 // a role that is not in your account. 3827 // 3828 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetEventTypes 3829 func (c *FraudDetector) GetEventTypes(input *GetEventTypesInput) (*GetEventTypesOutput, error) { 3830 req, out := c.GetEventTypesRequest(input) 3831 return out, req.Send() 3832 } 3833 3834 // GetEventTypesWithContext is the same as GetEventTypes with the addition of 3835 // the ability to pass a context and additional request options. 3836 // 3837 // See GetEventTypes for details on how to use this API operation. 3838 // 3839 // The context must be non-nil and will be used for request cancellation. If 3840 // the context is nil a panic will occur. In the future the SDK may create 3841 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3842 // for more information on using Contexts. 3843 func (c *FraudDetector) GetEventTypesWithContext(ctx aws.Context, input *GetEventTypesInput, opts ...request.Option) (*GetEventTypesOutput, error) { 3844 req, out := c.GetEventTypesRequest(input) 3845 req.SetContext(ctx) 3846 req.ApplyOptions(opts...) 3847 return out, req.Send() 3848 } 3849 3850 // GetEventTypesPages iterates over the pages of a GetEventTypes operation, 3851 // calling the "fn" function with the response data for each page. To stop 3852 // iterating, return false from the fn function. 3853 // 3854 // See GetEventTypes method for more information on how to use this operation. 3855 // 3856 // Note: This operation can generate multiple requests to a service. 3857 // 3858 // // Example iterating over at most 3 pages of a GetEventTypes operation. 3859 // pageNum := 0 3860 // err := client.GetEventTypesPages(params, 3861 // func(page *frauddetector.GetEventTypesOutput, lastPage bool) bool { 3862 // pageNum++ 3863 // fmt.Println(page) 3864 // return pageNum <= 3 3865 // }) 3866 // 3867 func (c *FraudDetector) GetEventTypesPages(input *GetEventTypesInput, fn func(*GetEventTypesOutput, bool) bool) error { 3868 return c.GetEventTypesPagesWithContext(aws.BackgroundContext(), input, fn) 3869 } 3870 3871 // GetEventTypesPagesWithContext same as GetEventTypesPages except 3872 // it takes a Context and allows setting request options on the pages. 3873 // 3874 // The context must be non-nil and will be used for request cancellation. If 3875 // the context is nil a panic will occur. In the future the SDK may create 3876 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3877 // for more information on using Contexts. 3878 func (c *FraudDetector) GetEventTypesPagesWithContext(ctx aws.Context, input *GetEventTypesInput, fn func(*GetEventTypesOutput, bool) bool, opts ...request.Option) error { 3879 p := request.Pagination{ 3880 NewRequest: func() (*request.Request, error) { 3881 var inCpy *GetEventTypesInput 3882 if input != nil { 3883 tmp := *input 3884 inCpy = &tmp 3885 } 3886 req, _ := c.GetEventTypesRequest(inCpy) 3887 req.SetContext(ctx) 3888 req.ApplyOptions(opts...) 3889 return req, nil 3890 }, 3891 } 3892 3893 for p.Next() { 3894 if !fn(p.Page().(*GetEventTypesOutput), !p.HasNextPage()) { 3895 break 3896 } 3897 } 3898 3899 return p.Err() 3900 } 3901 3902 const opGetExternalModels = "GetExternalModels" 3903 3904 // GetExternalModelsRequest generates a "aws/request.Request" representing the 3905 // client's request for the GetExternalModels operation. The "output" return 3906 // value will be populated with the request's response once the request completes 3907 // successfully. 3908 // 3909 // Use "Send" method on the returned Request to send the API call to the service. 3910 // the "output" return value is not valid until after Send returns without error. 3911 // 3912 // See GetExternalModels for more information on using the GetExternalModels 3913 // API call, and error handling. 3914 // 3915 // This method is useful when you want to inject custom logic or configuration 3916 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 3917 // 3918 // 3919 // // Example sending a request using the GetExternalModelsRequest method. 3920 // req, resp := client.GetExternalModelsRequest(params) 3921 // 3922 // err := req.Send() 3923 // if err == nil { // resp is now filled 3924 // fmt.Println(resp) 3925 // } 3926 // 3927 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetExternalModels 3928 func (c *FraudDetector) GetExternalModelsRequest(input *GetExternalModelsInput) (req *request.Request, output *GetExternalModelsOutput) { 3929 op := &request.Operation{ 3930 Name: opGetExternalModels, 3931 HTTPMethod: "POST", 3932 HTTPPath: "/", 3933 Paginator: &request.Paginator{ 3934 InputTokens: []string{"nextToken"}, 3935 OutputTokens: []string{"nextToken"}, 3936 LimitToken: "maxResults", 3937 TruncationToken: "", 3938 }, 3939 } 3940 3941 if input == nil { 3942 input = &GetExternalModelsInput{} 3943 } 3944 3945 output = &GetExternalModelsOutput{} 3946 req = c.newRequest(op, input, output) 3947 return 3948 } 3949 3950 // GetExternalModels API operation for Amazon Fraud Detector. 3951 // 3952 // Gets the details for one or more Amazon SageMaker models that have been imported 3953 // into the service. This is a paginated API. If you provide a null maxResults, 3954 // this actions retrieves a maximum of 10 records per page. If you provide a 3955 // maxResults, the value must be between 5 and 10. To get the next page results, 3956 // provide the pagination token from the GetExternalModelsResult as part of 3957 // your request. A null pagination token fetches the records from the beginning. 3958 // 3959 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3960 // with awserr.Error's Code and Message methods to get detailed information about 3961 // the error. 3962 // 3963 // See the AWS API reference guide for Amazon Fraud Detector's 3964 // API operation GetExternalModels for usage and error information. 3965 // 3966 // Returned Error Types: 3967 // * ValidationException 3968 // An exception indicating a specified value is not allowed. 3969 // 3970 // * ResourceNotFoundException 3971 // An exception indicating the specified resource was not found. 3972 // 3973 // * InternalServerException 3974 // An exception indicating an internal server error. 3975 // 3976 // * ThrottlingException 3977 // An exception indicating a throttling error. 3978 // 3979 // * AccessDeniedException 3980 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 3981 // This can occur if you submit a request, such as PutExternalModel, that specifies 3982 // a role that is not in your account. 3983 // 3984 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetExternalModels 3985 func (c *FraudDetector) GetExternalModels(input *GetExternalModelsInput) (*GetExternalModelsOutput, error) { 3986 req, out := c.GetExternalModelsRequest(input) 3987 return out, req.Send() 3988 } 3989 3990 // GetExternalModelsWithContext is the same as GetExternalModels with the addition of 3991 // the ability to pass a context and additional request options. 3992 // 3993 // See GetExternalModels for details on how to use this API operation. 3994 // 3995 // The context must be non-nil and will be used for request cancellation. If 3996 // the context is nil a panic will occur. In the future the SDK may create 3997 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3998 // for more information on using Contexts. 3999 func (c *FraudDetector) GetExternalModelsWithContext(ctx aws.Context, input *GetExternalModelsInput, opts ...request.Option) (*GetExternalModelsOutput, error) { 4000 req, out := c.GetExternalModelsRequest(input) 4001 req.SetContext(ctx) 4002 req.ApplyOptions(opts...) 4003 return out, req.Send() 4004 } 4005 4006 // GetExternalModelsPages iterates over the pages of a GetExternalModels operation, 4007 // calling the "fn" function with the response data for each page. To stop 4008 // iterating, return false from the fn function. 4009 // 4010 // See GetExternalModels method for more information on how to use this operation. 4011 // 4012 // Note: This operation can generate multiple requests to a service. 4013 // 4014 // // Example iterating over at most 3 pages of a GetExternalModels operation. 4015 // pageNum := 0 4016 // err := client.GetExternalModelsPages(params, 4017 // func(page *frauddetector.GetExternalModelsOutput, lastPage bool) bool { 4018 // pageNum++ 4019 // fmt.Println(page) 4020 // return pageNum <= 3 4021 // }) 4022 // 4023 func (c *FraudDetector) GetExternalModelsPages(input *GetExternalModelsInput, fn func(*GetExternalModelsOutput, bool) bool) error { 4024 return c.GetExternalModelsPagesWithContext(aws.BackgroundContext(), input, fn) 4025 } 4026 4027 // GetExternalModelsPagesWithContext same as GetExternalModelsPages except 4028 // it takes a Context and allows setting request options on the pages. 4029 // 4030 // The context must be non-nil and will be used for request cancellation. If 4031 // the context is nil a panic will occur. In the future the SDK may create 4032 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4033 // for more information on using Contexts. 4034 func (c *FraudDetector) GetExternalModelsPagesWithContext(ctx aws.Context, input *GetExternalModelsInput, fn func(*GetExternalModelsOutput, bool) bool, opts ...request.Option) error { 4035 p := request.Pagination{ 4036 NewRequest: func() (*request.Request, error) { 4037 var inCpy *GetExternalModelsInput 4038 if input != nil { 4039 tmp := *input 4040 inCpy = &tmp 4041 } 4042 req, _ := c.GetExternalModelsRequest(inCpy) 4043 req.SetContext(ctx) 4044 req.ApplyOptions(opts...) 4045 return req, nil 4046 }, 4047 } 4048 4049 for p.Next() { 4050 if !fn(p.Page().(*GetExternalModelsOutput), !p.HasNextPage()) { 4051 break 4052 } 4053 } 4054 4055 return p.Err() 4056 } 4057 4058 const opGetKMSEncryptionKey = "GetKMSEncryptionKey" 4059 4060 // GetKMSEncryptionKeyRequest generates a "aws/request.Request" representing the 4061 // client's request for the GetKMSEncryptionKey operation. The "output" return 4062 // value will be populated with the request's response once the request completes 4063 // successfully. 4064 // 4065 // Use "Send" method on the returned Request to send the API call to the service. 4066 // the "output" return value is not valid until after Send returns without error. 4067 // 4068 // See GetKMSEncryptionKey for more information on using the GetKMSEncryptionKey 4069 // API call, and error handling. 4070 // 4071 // This method is useful when you want to inject custom logic or configuration 4072 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 4073 // 4074 // 4075 // // Example sending a request using the GetKMSEncryptionKeyRequest method. 4076 // req, resp := client.GetKMSEncryptionKeyRequest(params) 4077 // 4078 // err := req.Send() 4079 // if err == nil { // resp is now filled 4080 // fmt.Println(resp) 4081 // } 4082 // 4083 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetKMSEncryptionKey 4084 func (c *FraudDetector) GetKMSEncryptionKeyRequest(input *GetKMSEncryptionKeyInput) (req *request.Request, output *GetKMSEncryptionKeyOutput) { 4085 op := &request.Operation{ 4086 Name: opGetKMSEncryptionKey, 4087 HTTPMethod: "POST", 4088 HTTPPath: "/", 4089 } 4090 4091 if input == nil { 4092 input = &GetKMSEncryptionKeyInput{} 4093 } 4094 4095 output = &GetKMSEncryptionKeyOutput{} 4096 req = c.newRequest(op, input, output) 4097 return 4098 } 4099 4100 // GetKMSEncryptionKey API operation for Amazon Fraud Detector. 4101 // 4102 // Gets the encryption key if a KMS key has been specified to be used to encrypt 4103 // content in Amazon Fraud Detector. 4104 // 4105 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4106 // with awserr.Error's Code and Message methods to get detailed information about 4107 // the error. 4108 // 4109 // See the AWS API reference guide for Amazon Fraud Detector's 4110 // API operation GetKMSEncryptionKey for usage and error information. 4111 // 4112 // Returned Error Types: 4113 // * ResourceNotFoundException 4114 // An exception indicating the specified resource was not found. 4115 // 4116 // * InternalServerException 4117 // An exception indicating an internal server error. 4118 // 4119 // * ThrottlingException 4120 // An exception indicating a throttling error. 4121 // 4122 // * AccessDeniedException 4123 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 4124 // This can occur if you submit a request, such as PutExternalModel, that specifies 4125 // a role that is not in your account. 4126 // 4127 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetKMSEncryptionKey 4128 func (c *FraudDetector) GetKMSEncryptionKey(input *GetKMSEncryptionKeyInput) (*GetKMSEncryptionKeyOutput, error) { 4129 req, out := c.GetKMSEncryptionKeyRequest(input) 4130 return out, req.Send() 4131 } 4132 4133 // GetKMSEncryptionKeyWithContext is the same as GetKMSEncryptionKey with the addition of 4134 // the ability to pass a context and additional request options. 4135 // 4136 // See GetKMSEncryptionKey for details on how to use this API operation. 4137 // 4138 // The context must be non-nil and will be used for request cancellation. If 4139 // the context is nil a panic will occur. In the future the SDK may create 4140 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4141 // for more information on using Contexts. 4142 func (c *FraudDetector) GetKMSEncryptionKeyWithContext(ctx aws.Context, input *GetKMSEncryptionKeyInput, opts ...request.Option) (*GetKMSEncryptionKeyOutput, error) { 4143 req, out := c.GetKMSEncryptionKeyRequest(input) 4144 req.SetContext(ctx) 4145 req.ApplyOptions(opts...) 4146 return out, req.Send() 4147 } 4148 4149 const opGetLabels = "GetLabels" 4150 4151 // GetLabelsRequest generates a "aws/request.Request" representing the 4152 // client's request for the GetLabels operation. The "output" return 4153 // value will be populated with the request's response once the request completes 4154 // successfully. 4155 // 4156 // Use "Send" method on the returned Request to send the API call to the service. 4157 // the "output" return value is not valid until after Send returns without error. 4158 // 4159 // See GetLabels for more information on using the GetLabels 4160 // API call, and error handling. 4161 // 4162 // This method is useful when you want to inject custom logic or configuration 4163 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 4164 // 4165 // 4166 // // Example sending a request using the GetLabelsRequest method. 4167 // req, resp := client.GetLabelsRequest(params) 4168 // 4169 // err := req.Send() 4170 // if err == nil { // resp is now filled 4171 // fmt.Println(resp) 4172 // } 4173 // 4174 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetLabels 4175 func (c *FraudDetector) GetLabelsRequest(input *GetLabelsInput) (req *request.Request, output *GetLabelsOutput) { 4176 op := &request.Operation{ 4177 Name: opGetLabels, 4178 HTTPMethod: "POST", 4179 HTTPPath: "/", 4180 Paginator: &request.Paginator{ 4181 InputTokens: []string{"nextToken"}, 4182 OutputTokens: []string{"nextToken"}, 4183 LimitToken: "maxResults", 4184 TruncationToken: "", 4185 }, 4186 } 4187 4188 if input == nil { 4189 input = &GetLabelsInput{} 4190 } 4191 4192 output = &GetLabelsOutput{} 4193 req = c.newRequest(op, input, output) 4194 return 4195 } 4196 4197 // GetLabels API operation for Amazon Fraud Detector. 4198 // 4199 // Gets all labels or a specific label if name is provided. This is a paginated 4200 // API. If you provide a null maxResults, this action retrieves a maximum of 4201 // 50 records per page. If you provide a maxResults, the value must be between 4202 // 10 and 50. To get the next page results, provide the pagination token from 4203 // the GetGetLabelsResponse as part of your request. A null pagination token 4204 // fetches the records from the beginning. 4205 // 4206 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4207 // with awserr.Error's Code and Message methods to get detailed information about 4208 // the error. 4209 // 4210 // See the AWS API reference guide for Amazon Fraud Detector's 4211 // API operation GetLabels for usage and error information. 4212 // 4213 // Returned Error Types: 4214 // * ValidationException 4215 // An exception indicating a specified value is not allowed. 4216 // 4217 // * ResourceNotFoundException 4218 // An exception indicating the specified resource was not found. 4219 // 4220 // * InternalServerException 4221 // An exception indicating an internal server error. 4222 // 4223 // * ThrottlingException 4224 // An exception indicating a throttling error. 4225 // 4226 // * AccessDeniedException 4227 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 4228 // This can occur if you submit a request, such as PutExternalModel, that specifies 4229 // a role that is not in your account. 4230 // 4231 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetLabels 4232 func (c *FraudDetector) GetLabels(input *GetLabelsInput) (*GetLabelsOutput, error) { 4233 req, out := c.GetLabelsRequest(input) 4234 return out, req.Send() 4235 } 4236 4237 // GetLabelsWithContext is the same as GetLabels with the addition of 4238 // the ability to pass a context and additional request options. 4239 // 4240 // See GetLabels for details on how to use this API operation. 4241 // 4242 // The context must be non-nil and will be used for request cancellation. If 4243 // the context is nil a panic will occur. In the future the SDK may create 4244 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4245 // for more information on using Contexts. 4246 func (c *FraudDetector) GetLabelsWithContext(ctx aws.Context, input *GetLabelsInput, opts ...request.Option) (*GetLabelsOutput, error) { 4247 req, out := c.GetLabelsRequest(input) 4248 req.SetContext(ctx) 4249 req.ApplyOptions(opts...) 4250 return out, req.Send() 4251 } 4252 4253 // GetLabelsPages iterates over the pages of a GetLabels operation, 4254 // calling the "fn" function with the response data for each page. To stop 4255 // iterating, return false from the fn function. 4256 // 4257 // See GetLabels method for more information on how to use this operation. 4258 // 4259 // Note: This operation can generate multiple requests to a service. 4260 // 4261 // // Example iterating over at most 3 pages of a GetLabels operation. 4262 // pageNum := 0 4263 // err := client.GetLabelsPages(params, 4264 // func(page *frauddetector.GetLabelsOutput, lastPage bool) bool { 4265 // pageNum++ 4266 // fmt.Println(page) 4267 // return pageNum <= 3 4268 // }) 4269 // 4270 func (c *FraudDetector) GetLabelsPages(input *GetLabelsInput, fn func(*GetLabelsOutput, bool) bool) error { 4271 return c.GetLabelsPagesWithContext(aws.BackgroundContext(), input, fn) 4272 } 4273 4274 // GetLabelsPagesWithContext same as GetLabelsPages except 4275 // it takes a Context and allows setting request options on the pages. 4276 // 4277 // The context must be non-nil and will be used for request cancellation. If 4278 // the context is nil a panic will occur. In the future the SDK may create 4279 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4280 // for more information on using Contexts. 4281 func (c *FraudDetector) GetLabelsPagesWithContext(ctx aws.Context, input *GetLabelsInput, fn func(*GetLabelsOutput, bool) bool, opts ...request.Option) error { 4282 p := request.Pagination{ 4283 NewRequest: func() (*request.Request, error) { 4284 var inCpy *GetLabelsInput 4285 if input != nil { 4286 tmp := *input 4287 inCpy = &tmp 4288 } 4289 req, _ := c.GetLabelsRequest(inCpy) 4290 req.SetContext(ctx) 4291 req.ApplyOptions(opts...) 4292 return req, nil 4293 }, 4294 } 4295 4296 for p.Next() { 4297 if !fn(p.Page().(*GetLabelsOutput), !p.HasNextPage()) { 4298 break 4299 } 4300 } 4301 4302 return p.Err() 4303 } 4304 4305 const opGetModelVersion = "GetModelVersion" 4306 4307 // GetModelVersionRequest generates a "aws/request.Request" representing the 4308 // client's request for the GetModelVersion operation. The "output" return 4309 // value will be populated with the request's response once the request completes 4310 // successfully. 4311 // 4312 // Use "Send" method on the returned Request to send the API call to the service. 4313 // the "output" return value is not valid until after Send returns without error. 4314 // 4315 // See GetModelVersion for more information on using the GetModelVersion 4316 // API call, and error handling. 4317 // 4318 // This method is useful when you want to inject custom logic or configuration 4319 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 4320 // 4321 // 4322 // // Example sending a request using the GetModelVersionRequest method. 4323 // req, resp := client.GetModelVersionRequest(params) 4324 // 4325 // err := req.Send() 4326 // if err == nil { // resp is now filled 4327 // fmt.Println(resp) 4328 // } 4329 // 4330 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModelVersion 4331 func (c *FraudDetector) GetModelVersionRequest(input *GetModelVersionInput) (req *request.Request, output *GetModelVersionOutput) { 4332 op := &request.Operation{ 4333 Name: opGetModelVersion, 4334 HTTPMethod: "POST", 4335 HTTPPath: "/", 4336 } 4337 4338 if input == nil { 4339 input = &GetModelVersionInput{} 4340 } 4341 4342 output = &GetModelVersionOutput{} 4343 req = c.newRequest(op, input, output) 4344 return 4345 } 4346 4347 // GetModelVersion API operation for Amazon Fraud Detector. 4348 // 4349 // Gets the details of the specified model version. 4350 // 4351 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4352 // with awserr.Error's Code and Message methods to get detailed information about 4353 // the error. 4354 // 4355 // See the AWS API reference guide for Amazon Fraud Detector's 4356 // API operation GetModelVersion for usage and error information. 4357 // 4358 // Returned Error Types: 4359 // * ValidationException 4360 // An exception indicating a specified value is not allowed. 4361 // 4362 // * ResourceNotFoundException 4363 // An exception indicating the specified resource was not found. 4364 // 4365 // * InternalServerException 4366 // An exception indicating an internal server error. 4367 // 4368 // * ThrottlingException 4369 // An exception indicating a throttling error. 4370 // 4371 // * AccessDeniedException 4372 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 4373 // This can occur if you submit a request, such as PutExternalModel, that specifies 4374 // a role that is not in your account. 4375 // 4376 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModelVersion 4377 func (c *FraudDetector) GetModelVersion(input *GetModelVersionInput) (*GetModelVersionOutput, error) { 4378 req, out := c.GetModelVersionRequest(input) 4379 return out, req.Send() 4380 } 4381 4382 // GetModelVersionWithContext is the same as GetModelVersion with the addition of 4383 // the ability to pass a context and additional request options. 4384 // 4385 // See GetModelVersion for details on how to use this API operation. 4386 // 4387 // The context must be non-nil and will be used for request cancellation. If 4388 // the context is nil a panic will occur. In the future the SDK may create 4389 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4390 // for more information on using Contexts. 4391 func (c *FraudDetector) GetModelVersionWithContext(ctx aws.Context, input *GetModelVersionInput, opts ...request.Option) (*GetModelVersionOutput, error) { 4392 req, out := c.GetModelVersionRequest(input) 4393 req.SetContext(ctx) 4394 req.ApplyOptions(opts...) 4395 return out, req.Send() 4396 } 4397 4398 const opGetModels = "GetModels" 4399 4400 // GetModelsRequest generates a "aws/request.Request" representing the 4401 // client's request for the GetModels operation. The "output" return 4402 // value will be populated with the request's response once the request completes 4403 // successfully. 4404 // 4405 // Use "Send" method on the returned Request to send the API call to the service. 4406 // the "output" return value is not valid until after Send returns without error. 4407 // 4408 // See GetModels for more information on using the GetModels 4409 // API call, and error handling. 4410 // 4411 // This method is useful when you want to inject custom logic or configuration 4412 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 4413 // 4414 // 4415 // // Example sending a request using the GetModelsRequest method. 4416 // req, resp := client.GetModelsRequest(params) 4417 // 4418 // err := req.Send() 4419 // if err == nil { // resp is now filled 4420 // fmt.Println(resp) 4421 // } 4422 // 4423 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModels 4424 func (c *FraudDetector) GetModelsRequest(input *GetModelsInput) (req *request.Request, output *GetModelsOutput) { 4425 op := &request.Operation{ 4426 Name: opGetModels, 4427 HTTPMethod: "POST", 4428 HTTPPath: "/", 4429 Paginator: &request.Paginator{ 4430 InputTokens: []string{"nextToken"}, 4431 OutputTokens: []string{"nextToken"}, 4432 LimitToken: "maxResults", 4433 TruncationToken: "", 4434 }, 4435 } 4436 4437 if input == nil { 4438 input = &GetModelsInput{} 4439 } 4440 4441 output = &GetModelsOutput{} 4442 req = c.newRequest(op, input, output) 4443 return 4444 } 4445 4446 // GetModels API operation for Amazon Fraud Detector. 4447 // 4448 // Gets one or more models. Gets all models for the Amazon Web Services account 4449 // if no model type and no model id provided. Gets all models for the Amazon 4450 // Web Services account and model type, if the model type is specified but model 4451 // id is not provided. Gets a specific model if (model type, model id) tuple 4452 // is specified. 4453 // 4454 // This is a paginated API. If you provide a null maxResults, this action retrieves 4455 // a maximum of 10 records per page. If you provide a maxResults, the value 4456 // must be between 1 and 10. To get the next page results, provide the pagination 4457 // token from the response as part of your request. A null pagination token 4458 // fetches the records from the beginning. 4459 // 4460 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4461 // with awserr.Error's Code and Message methods to get detailed information about 4462 // the error. 4463 // 4464 // See the AWS API reference guide for Amazon Fraud Detector's 4465 // API operation GetModels for usage and error information. 4466 // 4467 // Returned Error Types: 4468 // * ValidationException 4469 // An exception indicating a specified value is not allowed. 4470 // 4471 // * ResourceNotFoundException 4472 // An exception indicating the specified resource was not found. 4473 // 4474 // * InternalServerException 4475 // An exception indicating an internal server error. 4476 // 4477 // * ThrottlingException 4478 // An exception indicating a throttling error. 4479 // 4480 // * AccessDeniedException 4481 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 4482 // This can occur if you submit a request, such as PutExternalModel, that specifies 4483 // a role that is not in your account. 4484 // 4485 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModels 4486 func (c *FraudDetector) GetModels(input *GetModelsInput) (*GetModelsOutput, error) { 4487 req, out := c.GetModelsRequest(input) 4488 return out, req.Send() 4489 } 4490 4491 // GetModelsWithContext is the same as GetModels with the addition of 4492 // the ability to pass a context and additional request options. 4493 // 4494 // See GetModels for details on how to use this API operation. 4495 // 4496 // The context must be non-nil and will be used for request cancellation. If 4497 // the context is nil a panic will occur. In the future the SDK may create 4498 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4499 // for more information on using Contexts. 4500 func (c *FraudDetector) GetModelsWithContext(ctx aws.Context, input *GetModelsInput, opts ...request.Option) (*GetModelsOutput, error) { 4501 req, out := c.GetModelsRequest(input) 4502 req.SetContext(ctx) 4503 req.ApplyOptions(opts...) 4504 return out, req.Send() 4505 } 4506 4507 // GetModelsPages iterates over the pages of a GetModels operation, 4508 // calling the "fn" function with the response data for each page. To stop 4509 // iterating, return false from the fn function. 4510 // 4511 // See GetModels method for more information on how to use this operation. 4512 // 4513 // Note: This operation can generate multiple requests to a service. 4514 // 4515 // // Example iterating over at most 3 pages of a GetModels operation. 4516 // pageNum := 0 4517 // err := client.GetModelsPages(params, 4518 // func(page *frauddetector.GetModelsOutput, lastPage bool) bool { 4519 // pageNum++ 4520 // fmt.Println(page) 4521 // return pageNum <= 3 4522 // }) 4523 // 4524 func (c *FraudDetector) GetModelsPages(input *GetModelsInput, fn func(*GetModelsOutput, bool) bool) error { 4525 return c.GetModelsPagesWithContext(aws.BackgroundContext(), input, fn) 4526 } 4527 4528 // GetModelsPagesWithContext same as GetModelsPages except 4529 // it takes a Context and allows setting request options on the pages. 4530 // 4531 // The context must be non-nil and will be used for request cancellation. If 4532 // the context is nil a panic will occur. In the future the SDK may create 4533 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4534 // for more information on using Contexts. 4535 func (c *FraudDetector) GetModelsPagesWithContext(ctx aws.Context, input *GetModelsInput, fn func(*GetModelsOutput, bool) bool, opts ...request.Option) error { 4536 p := request.Pagination{ 4537 NewRequest: func() (*request.Request, error) { 4538 var inCpy *GetModelsInput 4539 if input != nil { 4540 tmp := *input 4541 inCpy = &tmp 4542 } 4543 req, _ := c.GetModelsRequest(inCpy) 4544 req.SetContext(ctx) 4545 req.ApplyOptions(opts...) 4546 return req, nil 4547 }, 4548 } 4549 4550 for p.Next() { 4551 if !fn(p.Page().(*GetModelsOutput), !p.HasNextPage()) { 4552 break 4553 } 4554 } 4555 4556 return p.Err() 4557 } 4558 4559 const opGetOutcomes = "GetOutcomes" 4560 4561 // GetOutcomesRequest generates a "aws/request.Request" representing the 4562 // client's request for the GetOutcomes operation. The "output" return 4563 // value will be populated with the request's response once the request completes 4564 // successfully. 4565 // 4566 // Use "Send" method on the returned Request to send the API call to the service. 4567 // the "output" return value is not valid until after Send returns without error. 4568 // 4569 // See GetOutcomes for more information on using the GetOutcomes 4570 // API call, and error handling. 4571 // 4572 // This method is useful when you want to inject custom logic or configuration 4573 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 4574 // 4575 // 4576 // // Example sending a request using the GetOutcomesRequest method. 4577 // req, resp := client.GetOutcomesRequest(params) 4578 // 4579 // err := req.Send() 4580 // if err == nil { // resp is now filled 4581 // fmt.Println(resp) 4582 // } 4583 // 4584 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetOutcomes 4585 func (c *FraudDetector) GetOutcomesRequest(input *GetOutcomesInput) (req *request.Request, output *GetOutcomesOutput) { 4586 op := &request.Operation{ 4587 Name: opGetOutcomes, 4588 HTTPMethod: "POST", 4589 HTTPPath: "/", 4590 Paginator: &request.Paginator{ 4591 InputTokens: []string{"nextToken"}, 4592 OutputTokens: []string{"nextToken"}, 4593 LimitToken: "maxResults", 4594 TruncationToken: "", 4595 }, 4596 } 4597 4598 if input == nil { 4599 input = &GetOutcomesInput{} 4600 } 4601 4602 output = &GetOutcomesOutput{} 4603 req = c.newRequest(op, input, output) 4604 return 4605 } 4606 4607 // GetOutcomes API operation for Amazon Fraud Detector. 4608 // 4609 // Gets one or more outcomes. This is a paginated API. If you provide a null 4610 // maxResults, this actions retrieves a maximum of 100 records per page. If 4611 // you provide a maxResults, the value must be between 50 and 100. To get the 4612 // next page results, provide the pagination token from the GetOutcomesResult 4613 // as part of your request. A null pagination token fetches the records from 4614 // the beginning. 4615 // 4616 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4617 // with awserr.Error's Code and Message methods to get detailed information about 4618 // the error. 4619 // 4620 // See the AWS API reference guide for Amazon Fraud Detector's 4621 // API operation GetOutcomes for usage and error information. 4622 // 4623 // Returned Error Types: 4624 // * ValidationException 4625 // An exception indicating a specified value is not allowed. 4626 // 4627 // * ResourceNotFoundException 4628 // An exception indicating the specified resource was not found. 4629 // 4630 // * InternalServerException 4631 // An exception indicating an internal server error. 4632 // 4633 // * ThrottlingException 4634 // An exception indicating a throttling error. 4635 // 4636 // * AccessDeniedException 4637 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 4638 // This can occur if you submit a request, such as PutExternalModel, that specifies 4639 // a role that is not in your account. 4640 // 4641 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetOutcomes 4642 func (c *FraudDetector) GetOutcomes(input *GetOutcomesInput) (*GetOutcomesOutput, error) { 4643 req, out := c.GetOutcomesRequest(input) 4644 return out, req.Send() 4645 } 4646 4647 // GetOutcomesWithContext is the same as GetOutcomes with the addition of 4648 // the ability to pass a context and additional request options. 4649 // 4650 // See GetOutcomes for details on how to use this API operation. 4651 // 4652 // The context must be non-nil and will be used for request cancellation. If 4653 // the context is nil a panic will occur. In the future the SDK may create 4654 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4655 // for more information on using Contexts. 4656 func (c *FraudDetector) GetOutcomesWithContext(ctx aws.Context, input *GetOutcomesInput, opts ...request.Option) (*GetOutcomesOutput, error) { 4657 req, out := c.GetOutcomesRequest(input) 4658 req.SetContext(ctx) 4659 req.ApplyOptions(opts...) 4660 return out, req.Send() 4661 } 4662 4663 // GetOutcomesPages iterates over the pages of a GetOutcomes operation, 4664 // calling the "fn" function with the response data for each page. To stop 4665 // iterating, return false from the fn function. 4666 // 4667 // See GetOutcomes method for more information on how to use this operation. 4668 // 4669 // Note: This operation can generate multiple requests to a service. 4670 // 4671 // // Example iterating over at most 3 pages of a GetOutcomes operation. 4672 // pageNum := 0 4673 // err := client.GetOutcomesPages(params, 4674 // func(page *frauddetector.GetOutcomesOutput, lastPage bool) bool { 4675 // pageNum++ 4676 // fmt.Println(page) 4677 // return pageNum <= 3 4678 // }) 4679 // 4680 func (c *FraudDetector) GetOutcomesPages(input *GetOutcomesInput, fn func(*GetOutcomesOutput, bool) bool) error { 4681 return c.GetOutcomesPagesWithContext(aws.BackgroundContext(), input, fn) 4682 } 4683 4684 // GetOutcomesPagesWithContext same as GetOutcomesPages except 4685 // it takes a Context and allows setting request options on the pages. 4686 // 4687 // The context must be non-nil and will be used for request cancellation. If 4688 // the context is nil a panic will occur. In the future the SDK may create 4689 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4690 // for more information on using Contexts. 4691 func (c *FraudDetector) GetOutcomesPagesWithContext(ctx aws.Context, input *GetOutcomesInput, fn func(*GetOutcomesOutput, bool) bool, opts ...request.Option) error { 4692 p := request.Pagination{ 4693 NewRequest: func() (*request.Request, error) { 4694 var inCpy *GetOutcomesInput 4695 if input != nil { 4696 tmp := *input 4697 inCpy = &tmp 4698 } 4699 req, _ := c.GetOutcomesRequest(inCpy) 4700 req.SetContext(ctx) 4701 req.ApplyOptions(opts...) 4702 return req, nil 4703 }, 4704 } 4705 4706 for p.Next() { 4707 if !fn(p.Page().(*GetOutcomesOutput), !p.HasNextPage()) { 4708 break 4709 } 4710 } 4711 4712 return p.Err() 4713 } 4714 4715 const opGetRules = "GetRules" 4716 4717 // GetRulesRequest generates a "aws/request.Request" representing the 4718 // client's request for the GetRules operation. The "output" return 4719 // value will be populated with the request's response once the request completes 4720 // successfully. 4721 // 4722 // Use "Send" method on the returned Request to send the API call to the service. 4723 // the "output" return value is not valid until after Send returns without error. 4724 // 4725 // See GetRules for more information on using the GetRules 4726 // API call, and error handling. 4727 // 4728 // This method is useful when you want to inject custom logic or configuration 4729 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 4730 // 4731 // 4732 // // Example sending a request using the GetRulesRequest method. 4733 // req, resp := client.GetRulesRequest(params) 4734 // 4735 // err := req.Send() 4736 // if err == nil { // resp is now filled 4737 // fmt.Println(resp) 4738 // } 4739 // 4740 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetRules 4741 func (c *FraudDetector) GetRulesRequest(input *GetRulesInput) (req *request.Request, output *GetRulesOutput) { 4742 op := &request.Operation{ 4743 Name: opGetRules, 4744 HTTPMethod: "POST", 4745 HTTPPath: "/", 4746 Paginator: &request.Paginator{ 4747 InputTokens: []string{"nextToken"}, 4748 OutputTokens: []string{"nextToken"}, 4749 LimitToken: "maxResults", 4750 TruncationToken: "", 4751 }, 4752 } 4753 4754 if input == nil { 4755 input = &GetRulesInput{} 4756 } 4757 4758 output = &GetRulesOutput{} 4759 req = c.newRequest(op, input, output) 4760 return 4761 } 4762 4763 // GetRules API operation for Amazon Fraud Detector. 4764 // 4765 // Get all rules for a detector (paginated) if ruleId and ruleVersion are not 4766 // specified. Gets all rules for the detector and the ruleId if present (paginated). 4767 // Gets a specific rule if both the ruleId and the ruleVersion are specified. 4768 // 4769 // This is a paginated API. Providing null maxResults results in retrieving 4770 // maximum of 100 records per page. If you provide maxResults the value must 4771 // be between 50 and 100. To get the next page result, a provide a pagination 4772 // token from GetRulesResult as part of your request. Null pagination token 4773 // fetches the records from the beginning. 4774 // 4775 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4776 // with awserr.Error's Code and Message methods to get detailed information about 4777 // the error. 4778 // 4779 // See the AWS API reference guide for Amazon Fraud Detector's 4780 // API operation GetRules for usage and error information. 4781 // 4782 // Returned Error Types: 4783 // * ValidationException 4784 // An exception indicating a specified value is not allowed. 4785 // 4786 // * ResourceNotFoundException 4787 // An exception indicating the specified resource was not found. 4788 // 4789 // * InternalServerException 4790 // An exception indicating an internal server error. 4791 // 4792 // * ThrottlingException 4793 // An exception indicating a throttling error. 4794 // 4795 // * AccessDeniedException 4796 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 4797 // This can occur if you submit a request, such as PutExternalModel, that specifies 4798 // a role that is not in your account. 4799 // 4800 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetRules 4801 func (c *FraudDetector) GetRules(input *GetRulesInput) (*GetRulesOutput, error) { 4802 req, out := c.GetRulesRequest(input) 4803 return out, req.Send() 4804 } 4805 4806 // GetRulesWithContext is the same as GetRules with the addition of 4807 // the ability to pass a context and additional request options. 4808 // 4809 // See GetRules for details on how to use this API operation. 4810 // 4811 // The context must be non-nil and will be used for request cancellation. If 4812 // the context is nil a panic will occur. In the future the SDK may create 4813 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4814 // for more information on using Contexts. 4815 func (c *FraudDetector) GetRulesWithContext(ctx aws.Context, input *GetRulesInput, opts ...request.Option) (*GetRulesOutput, error) { 4816 req, out := c.GetRulesRequest(input) 4817 req.SetContext(ctx) 4818 req.ApplyOptions(opts...) 4819 return out, req.Send() 4820 } 4821 4822 // GetRulesPages iterates over the pages of a GetRules operation, 4823 // calling the "fn" function with the response data for each page. To stop 4824 // iterating, return false from the fn function. 4825 // 4826 // See GetRules method for more information on how to use this operation. 4827 // 4828 // Note: This operation can generate multiple requests to a service. 4829 // 4830 // // Example iterating over at most 3 pages of a GetRules operation. 4831 // pageNum := 0 4832 // err := client.GetRulesPages(params, 4833 // func(page *frauddetector.GetRulesOutput, lastPage bool) bool { 4834 // pageNum++ 4835 // fmt.Println(page) 4836 // return pageNum <= 3 4837 // }) 4838 // 4839 func (c *FraudDetector) GetRulesPages(input *GetRulesInput, fn func(*GetRulesOutput, bool) bool) error { 4840 return c.GetRulesPagesWithContext(aws.BackgroundContext(), input, fn) 4841 } 4842 4843 // GetRulesPagesWithContext same as GetRulesPages except 4844 // it takes a Context and allows setting request options on the pages. 4845 // 4846 // The context must be non-nil and will be used for request cancellation. If 4847 // the context is nil a panic will occur. In the future the SDK may create 4848 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4849 // for more information on using Contexts. 4850 func (c *FraudDetector) GetRulesPagesWithContext(ctx aws.Context, input *GetRulesInput, fn func(*GetRulesOutput, bool) bool, opts ...request.Option) error { 4851 p := request.Pagination{ 4852 NewRequest: func() (*request.Request, error) { 4853 var inCpy *GetRulesInput 4854 if input != nil { 4855 tmp := *input 4856 inCpy = &tmp 4857 } 4858 req, _ := c.GetRulesRequest(inCpy) 4859 req.SetContext(ctx) 4860 req.ApplyOptions(opts...) 4861 return req, nil 4862 }, 4863 } 4864 4865 for p.Next() { 4866 if !fn(p.Page().(*GetRulesOutput), !p.HasNextPage()) { 4867 break 4868 } 4869 } 4870 4871 return p.Err() 4872 } 4873 4874 const opGetVariables = "GetVariables" 4875 4876 // GetVariablesRequest generates a "aws/request.Request" representing the 4877 // client's request for the GetVariables operation. The "output" return 4878 // value will be populated with the request's response once the request completes 4879 // successfully. 4880 // 4881 // Use "Send" method on the returned Request to send the API call to the service. 4882 // the "output" return value is not valid until after Send returns without error. 4883 // 4884 // See GetVariables for more information on using the GetVariables 4885 // API call, and error handling. 4886 // 4887 // This method is useful when you want to inject custom logic or configuration 4888 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 4889 // 4890 // 4891 // // Example sending a request using the GetVariablesRequest method. 4892 // req, resp := client.GetVariablesRequest(params) 4893 // 4894 // err := req.Send() 4895 // if err == nil { // resp is now filled 4896 // fmt.Println(resp) 4897 // } 4898 // 4899 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetVariables 4900 func (c *FraudDetector) GetVariablesRequest(input *GetVariablesInput) (req *request.Request, output *GetVariablesOutput) { 4901 op := &request.Operation{ 4902 Name: opGetVariables, 4903 HTTPMethod: "POST", 4904 HTTPPath: "/", 4905 Paginator: &request.Paginator{ 4906 InputTokens: []string{"nextToken"}, 4907 OutputTokens: []string{"nextToken"}, 4908 LimitToken: "maxResults", 4909 TruncationToken: "", 4910 }, 4911 } 4912 4913 if input == nil { 4914 input = &GetVariablesInput{} 4915 } 4916 4917 output = &GetVariablesOutput{} 4918 req = c.newRequest(op, input, output) 4919 return 4920 } 4921 4922 // GetVariables API operation for Amazon Fraud Detector. 4923 // 4924 // Gets all of the variables or the specific variable. This is a paginated API. 4925 // Providing null maxSizePerPage results in retrieving maximum of 100 records 4926 // per page. If you provide maxSizePerPage the value must be between 50 and 4927 // 100. To get the next page result, a provide a pagination token from GetVariablesResult 4928 // as part of your request. Null pagination token fetches the records from the 4929 // beginning. 4930 // 4931 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4932 // with awserr.Error's Code and Message methods to get detailed information about 4933 // the error. 4934 // 4935 // See the AWS API reference guide for Amazon Fraud Detector's 4936 // API operation GetVariables for usage and error information. 4937 // 4938 // Returned Error Types: 4939 // * ValidationException 4940 // An exception indicating a specified value is not allowed. 4941 // 4942 // * ResourceNotFoundException 4943 // An exception indicating the specified resource was not found. 4944 // 4945 // * InternalServerException 4946 // An exception indicating an internal server error. 4947 // 4948 // * ThrottlingException 4949 // An exception indicating a throttling error. 4950 // 4951 // * AccessDeniedException 4952 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 4953 // This can occur if you submit a request, such as PutExternalModel, that specifies 4954 // a role that is not in your account. 4955 // 4956 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetVariables 4957 func (c *FraudDetector) GetVariables(input *GetVariablesInput) (*GetVariablesOutput, error) { 4958 req, out := c.GetVariablesRequest(input) 4959 return out, req.Send() 4960 } 4961 4962 // GetVariablesWithContext is the same as GetVariables with the addition of 4963 // the ability to pass a context and additional request options. 4964 // 4965 // See GetVariables for details on how to use this API operation. 4966 // 4967 // The context must be non-nil and will be used for request cancellation. If 4968 // the context is nil a panic will occur. In the future the SDK may create 4969 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4970 // for more information on using Contexts. 4971 func (c *FraudDetector) GetVariablesWithContext(ctx aws.Context, input *GetVariablesInput, opts ...request.Option) (*GetVariablesOutput, error) { 4972 req, out := c.GetVariablesRequest(input) 4973 req.SetContext(ctx) 4974 req.ApplyOptions(opts...) 4975 return out, req.Send() 4976 } 4977 4978 // GetVariablesPages iterates over the pages of a GetVariables operation, 4979 // calling the "fn" function with the response data for each page. To stop 4980 // iterating, return false from the fn function. 4981 // 4982 // See GetVariables method for more information on how to use this operation. 4983 // 4984 // Note: This operation can generate multiple requests to a service. 4985 // 4986 // // Example iterating over at most 3 pages of a GetVariables operation. 4987 // pageNum := 0 4988 // err := client.GetVariablesPages(params, 4989 // func(page *frauddetector.GetVariablesOutput, lastPage bool) bool { 4990 // pageNum++ 4991 // fmt.Println(page) 4992 // return pageNum <= 3 4993 // }) 4994 // 4995 func (c *FraudDetector) GetVariablesPages(input *GetVariablesInput, fn func(*GetVariablesOutput, bool) bool) error { 4996 return c.GetVariablesPagesWithContext(aws.BackgroundContext(), input, fn) 4997 } 4998 4999 // GetVariablesPagesWithContext same as GetVariablesPages except 5000 // it takes a Context and allows setting request options on the pages. 5001 // 5002 // The context must be non-nil and will be used for request cancellation. If 5003 // the context is nil a panic will occur. In the future the SDK may create 5004 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5005 // for more information on using Contexts. 5006 func (c *FraudDetector) GetVariablesPagesWithContext(ctx aws.Context, input *GetVariablesInput, fn func(*GetVariablesOutput, bool) bool, opts ...request.Option) error { 5007 p := request.Pagination{ 5008 NewRequest: func() (*request.Request, error) { 5009 var inCpy *GetVariablesInput 5010 if input != nil { 5011 tmp := *input 5012 inCpy = &tmp 5013 } 5014 req, _ := c.GetVariablesRequest(inCpy) 5015 req.SetContext(ctx) 5016 req.ApplyOptions(opts...) 5017 return req, nil 5018 }, 5019 } 5020 5021 for p.Next() { 5022 if !fn(p.Page().(*GetVariablesOutput), !p.HasNextPage()) { 5023 break 5024 } 5025 } 5026 5027 return p.Err() 5028 } 5029 5030 const opListTagsForResource = "ListTagsForResource" 5031 5032 // ListTagsForResourceRequest generates a "aws/request.Request" representing the 5033 // client's request for the ListTagsForResource operation. The "output" return 5034 // value will be populated with the request's response once the request completes 5035 // successfully. 5036 // 5037 // Use "Send" method on the returned Request to send the API call to the service. 5038 // the "output" return value is not valid until after Send returns without error. 5039 // 5040 // See ListTagsForResource for more information on using the ListTagsForResource 5041 // API call, and error handling. 5042 // 5043 // This method is useful when you want to inject custom logic or configuration 5044 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 5045 // 5046 // 5047 // // Example sending a request using the ListTagsForResourceRequest method. 5048 // req, resp := client.ListTagsForResourceRequest(params) 5049 // 5050 // err := req.Send() 5051 // if err == nil { // resp is now filled 5052 // fmt.Println(resp) 5053 // } 5054 // 5055 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/ListTagsForResource 5056 func (c *FraudDetector) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { 5057 op := &request.Operation{ 5058 Name: opListTagsForResource, 5059 HTTPMethod: "POST", 5060 HTTPPath: "/", 5061 Paginator: &request.Paginator{ 5062 InputTokens: []string{"nextToken"}, 5063 OutputTokens: []string{"nextToken"}, 5064 LimitToken: "maxResults", 5065 TruncationToken: "", 5066 }, 5067 } 5068 5069 if input == nil { 5070 input = &ListTagsForResourceInput{} 5071 } 5072 5073 output = &ListTagsForResourceOutput{} 5074 req = c.newRequest(op, input, output) 5075 return 5076 } 5077 5078 // ListTagsForResource API operation for Amazon Fraud Detector. 5079 // 5080 // Lists all tags associated with the resource. This is a paginated API. To 5081 // get the next page results, provide the pagination token from the response 5082 // as part of your request. A null pagination token fetches the records from 5083 // the beginning. 5084 // 5085 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5086 // with awserr.Error's Code and Message methods to get detailed information about 5087 // the error. 5088 // 5089 // See the AWS API reference guide for Amazon Fraud Detector's 5090 // API operation ListTagsForResource for usage and error information. 5091 // 5092 // Returned Error Types: 5093 // * ValidationException 5094 // An exception indicating a specified value is not allowed. 5095 // 5096 // * ResourceNotFoundException 5097 // An exception indicating the specified resource was not found. 5098 // 5099 // * ThrottlingException 5100 // An exception indicating a throttling error. 5101 // 5102 // * AccessDeniedException 5103 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 5104 // This can occur if you submit a request, such as PutExternalModel, that specifies 5105 // a role that is not in your account. 5106 // 5107 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/ListTagsForResource 5108 func (c *FraudDetector) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { 5109 req, out := c.ListTagsForResourceRequest(input) 5110 return out, req.Send() 5111 } 5112 5113 // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of 5114 // the ability to pass a context and additional request options. 5115 // 5116 // See ListTagsForResource for details on how to use this API operation. 5117 // 5118 // The context must be non-nil and will be used for request cancellation. If 5119 // the context is nil a panic will occur. In the future the SDK may create 5120 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5121 // for more information on using Contexts. 5122 func (c *FraudDetector) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { 5123 req, out := c.ListTagsForResourceRequest(input) 5124 req.SetContext(ctx) 5125 req.ApplyOptions(opts...) 5126 return out, req.Send() 5127 } 5128 5129 // ListTagsForResourcePages iterates over the pages of a ListTagsForResource operation, 5130 // calling the "fn" function with the response data for each page. To stop 5131 // iterating, return false from the fn function. 5132 // 5133 // See ListTagsForResource method for more information on how to use this operation. 5134 // 5135 // Note: This operation can generate multiple requests to a service. 5136 // 5137 // // Example iterating over at most 3 pages of a ListTagsForResource operation. 5138 // pageNum := 0 5139 // err := client.ListTagsForResourcePages(params, 5140 // func(page *frauddetector.ListTagsForResourceOutput, lastPage bool) bool { 5141 // pageNum++ 5142 // fmt.Println(page) 5143 // return pageNum <= 3 5144 // }) 5145 // 5146 func (c *FraudDetector) ListTagsForResourcePages(input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool) error { 5147 return c.ListTagsForResourcePagesWithContext(aws.BackgroundContext(), input, fn) 5148 } 5149 5150 // ListTagsForResourcePagesWithContext same as ListTagsForResourcePages except 5151 // it takes a Context and allows setting request options on the pages. 5152 // 5153 // The context must be non-nil and will be used for request cancellation. If 5154 // the context is nil a panic will occur. In the future the SDK may create 5155 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5156 // for more information on using Contexts. 5157 func (c *FraudDetector) ListTagsForResourcePagesWithContext(ctx aws.Context, input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool, opts ...request.Option) error { 5158 p := request.Pagination{ 5159 NewRequest: func() (*request.Request, error) { 5160 var inCpy *ListTagsForResourceInput 5161 if input != nil { 5162 tmp := *input 5163 inCpy = &tmp 5164 } 5165 req, _ := c.ListTagsForResourceRequest(inCpy) 5166 req.SetContext(ctx) 5167 req.ApplyOptions(opts...) 5168 return req, nil 5169 }, 5170 } 5171 5172 for p.Next() { 5173 if !fn(p.Page().(*ListTagsForResourceOutput), !p.HasNextPage()) { 5174 break 5175 } 5176 } 5177 5178 return p.Err() 5179 } 5180 5181 const opPutDetector = "PutDetector" 5182 5183 // PutDetectorRequest generates a "aws/request.Request" representing the 5184 // client's request for the PutDetector operation. The "output" return 5185 // value will be populated with the request's response once the request completes 5186 // successfully. 5187 // 5188 // Use "Send" method on the returned Request to send the API call to the service. 5189 // the "output" return value is not valid until after Send returns without error. 5190 // 5191 // See PutDetector for more information on using the PutDetector 5192 // API call, and error handling. 5193 // 5194 // This method is useful when you want to inject custom logic or configuration 5195 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 5196 // 5197 // 5198 // // Example sending a request using the PutDetectorRequest method. 5199 // req, resp := client.PutDetectorRequest(params) 5200 // 5201 // err := req.Send() 5202 // if err == nil { // resp is now filled 5203 // fmt.Println(resp) 5204 // } 5205 // 5206 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutDetector 5207 func (c *FraudDetector) PutDetectorRequest(input *PutDetectorInput) (req *request.Request, output *PutDetectorOutput) { 5208 op := &request.Operation{ 5209 Name: opPutDetector, 5210 HTTPMethod: "POST", 5211 HTTPPath: "/", 5212 } 5213 5214 if input == nil { 5215 input = &PutDetectorInput{} 5216 } 5217 5218 output = &PutDetectorOutput{} 5219 req = c.newRequest(op, input, output) 5220 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 5221 return 5222 } 5223 5224 // PutDetector API operation for Amazon Fraud Detector. 5225 // 5226 // Creates or updates a detector. 5227 // 5228 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5229 // with awserr.Error's Code and Message methods to get detailed information about 5230 // the error. 5231 // 5232 // See the AWS API reference guide for Amazon Fraud Detector's 5233 // API operation PutDetector for usage and error information. 5234 // 5235 // Returned Error Types: 5236 // * ValidationException 5237 // An exception indicating a specified value is not allowed. 5238 // 5239 // * InternalServerException 5240 // An exception indicating an internal server error. 5241 // 5242 // * ThrottlingException 5243 // An exception indicating a throttling error. 5244 // 5245 // * AccessDeniedException 5246 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 5247 // This can occur if you submit a request, such as PutExternalModel, that specifies 5248 // a role that is not in your account. 5249 // 5250 // * ConflictException 5251 // An exception indicating there was a conflict during a delete operation. 5252 // 5253 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutDetector 5254 func (c *FraudDetector) PutDetector(input *PutDetectorInput) (*PutDetectorOutput, error) { 5255 req, out := c.PutDetectorRequest(input) 5256 return out, req.Send() 5257 } 5258 5259 // PutDetectorWithContext is the same as PutDetector with the addition of 5260 // the ability to pass a context and additional request options. 5261 // 5262 // See PutDetector for details on how to use this API operation. 5263 // 5264 // The context must be non-nil and will be used for request cancellation. If 5265 // the context is nil a panic will occur. In the future the SDK may create 5266 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5267 // for more information on using Contexts. 5268 func (c *FraudDetector) PutDetectorWithContext(ctx aws.Context, input *PutDetectorInput, opts ...request.Option) (*PutDetectorOutput, error) { 5269 req, out := c.PutDetectorRequest(input) 5270 req.SetContext(ctx) 5271 req.ApplyOptions(opts...) 5272 return out, req.Send() 5273 } 5274 5275 const opPutEntityType = "PutEntityType" 5276 5277 // PutEntityTypeRequest generates a "aws/request.Request" representing the 5278 // client's request for the PutEntityType operation. The "output" return 5279 // value will be populated with the request's response once the request completes 5280 // successfully. 5281 // 5282 // Use "Send" method on the returned Request to send the API call to the service. 5283 // the "output" return value is not valid until after Send returns without error. 5284 // 5285 // See PutEntityType for more information on using the PutEntityType 5286 // API call, and error handling. 5287 // 5288 // This method is useful when you want to inject custom logic or configuration 5289 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 5290 // 5291 // 5292 // // Example sending a request using the PutEntityTypeRequest method. 5293 // req, resp := client.PutEntityTypeRequest(params) 5294 // 5295 // err := req.Send() 5296 // if err == nil { // resp is now filled 5297 // fmt.Println(resp) 5298 // } 5299 // 5300 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutEntityType 5301 func (c *FraudDetector) PutEntityTypeRequest(input *PutEntityTypeInput) (req *request.Request, output *PutEntityTypeOutput) { 5302 op := &request.Operation{ 5303 Name: opPutEntityType, 5304 HTTPMethod: "POST", 5305 HTTPPath: "/", 5306 } 5307 5308 if input == nil { 5309 input = &PutEntityTypeInput{} 5310 } 5311 5312 output = &PutEntityTypeOutput{} 5313 req = c.newRequest(op, input, output) 5314 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 5315 return 5316 } 5317 5318 // PutEntityType API operation for Amazon Fraud Detector. 5319 // 5320 // Creates or updates an entity type. An entity represents who is performing 5321 // the event. As part of a fraud prediction, you pass the entity ID to indicate 5322 // the specific entity who performed the event. An entity type classifies the 5323 // entity. Example classifications include customer, merchant, or account. 5324 // 5325 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5326 // with awserr.Error's Code and Message methods to get detailed information about 5327 // the error. 5328 // 5329 // See the AWS API reference guide for Amazon Fraud Detector's 5330 // API operation PutEntityType for usage and error information. 5331 // 5332 // Returned Error Types: 5333 // * ValidationException 5334 // An exception indicating a specified value is not allowed. 5335 // 5336 // * InternalServerException 5337 // An exception indicating an internal server error. 5338 // 5339 // * ThrottlingException 5340 // An exception indicating a throttling error. 5341 // 5342 // * AccessDeniedException 5343 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 5344 // This can occur if you submit a request, such as PutExternalModel, that specifies 5345 // a role that is not in your account. 5346 // 5347 // * ConflictException 5348 // An exception indicating there was a conflict during a delete operation. 5349 // 5350 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutEntityType 5351 func (c *FraudDetector) PutEntityType(input *PutEntityTypeInput) (*PutEntityTypeOutput, error) { 5352 req, out := c.PutEntityTypeRequest(input) 5353 return out, req.Send() 5354 } 5355 5356 // PutEntityTypeWithContext is the same as PutEntityType with the addition of 5357 // the ability to pass a context and additional request options. 5358 // 5359 // See PutEntityType for details on how to use this API operation. 5360 // 5361 // The context must be non-nil and will be used for request cancellation. If 5362 // the context is nil a panic will occur. In the future the SDK may create 5363 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5364 // for more information on using Contexts. 5365 func (c *FraudDetector) PutEntityTypeWithContext(ctx aws.Context, input *PutEntityTypeInput, opts ...request.Option) (*PutEntityTypeOutput, error) { 5366 req, out := c.PutEntityTypeRequest(input) 5367 req.SetContext(ctx) 5368 req.ApplyOptions(opts...) 5369 return out, req.Send() 5370 } 5371 5372 const opPutEventType = "PutEventType" 5373 5374 // PutEventTypeRequest generates a "aws/request.Request" representing the 5375 // client's request for the PutEventType operation. The "output" return 5376 // value will be populated with the request's response once the request completes 5377 // successfully. 5378 // 5379 // Use "Send" method on the returned Request to send the API call to the service. 5380 // the "output" return value is not valid until after Send returns without error. 5381 // 5382 // See PutEventType for more information on using the PutEventType 5383 // API call, and error handling. 5384 // 5385 // This method is useful when you want to inject custom logic or configuration 5386 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 5387 // 5388 // 5389 // // Example sending a request using the PutEventTypeRequest method. 5390 // req, resp := client.PutEventTypeRequest(params) 5391 // 5392 // err := req.Send() 5393 // if err == nil { // resp is now filled 5394 // fmt.Println(resp) 5395 // } 5396 // 5397 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutEventType 5398 func (c *FraudDetector) PutEventTypeRequest(input *PutEventTypeInput) (req *request.Request, output *PutEventTypeOutput) { 5399 op := &request.Operation{ 5400 Name: opPutEventType, 5401 HTTPMethod: "POST", 5402 HTTPPath: "/", 5403 } 5404 5405 if input == nil { 5406 input = &PutEventTypeInput{} 5407 } 5408 5409 output = &PutEventTypeOutput{} 5410 req = c.newRequest(op, input, output) 5411 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 5412 return 5413 } 5414 5415 // PutEventType API operation for Amazon Fraud Detector. 5416 // 5417 // Creates or updates an event type. An event is a business activity that is 5418 // evaluated for fraud risk. With Amazon Fraud Detector, you generate fraud 5419 // predictions for events. An event type defines the structure for an event 5420 // sent to Amazon Fraud Detector. This includes the variables sent as part of 5421 // the event, the entity performing the event (such as a customer), and the 5422 // labels that classify the event. Example event types include online payment 5423 // transactions, account registrations, and authentications. 5424 // 5425 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5426 // with awserr.Error's Code and Message methods to get detailed information about 5427 // the error. 5428 // 5429 // See the AWS API reference guide for Amazon Fraud Detector's 5430 // API operation PutEventType for usage and error information. 5431 // 5432 // Returned Error Types: 5433 // * ValidationException 5434 // An exception indicating a specified value is not allowed. 5435 // 5436 // * InternalServerException 5437 // An exception indicating an internal server error. 5438 // 5439 // * ThrottlingException 5440 // An exception indicating a throttling error. 5441 // 5442 // * AccessDeniedException 5443 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 5444 // This can occur if you submit a request, such as PutExternalModel, that specifies 5445 // a role that is not in your account. 5446 // 5447 // * ConflictException 5448 // An exception indicating there was a conflict during a delete operation. 5449 // 5450 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutEventType 5451 func (c *FraudDetector) PutEventType(input *PutEventTypeInput) (*PutEventTypeOutput, error) { 5452 req, out := c.PutEventTypeRequest(input) 5453 return out, req.Send() 5454 } 5455 5456 // PutEventTypeWithContext is the same as PutEventType with the addition of 5457 // the ability to pass a context and additional request options. 5458 // 5459 // See PutEventType for details on how to use this API operation. 5460 // 5461 // The context must be non-nil and will be used for request cancellation. If 5462 // the context is nil a panic will occur. In the future the SDK may create 5463 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5464 // for more information on using Contexts. 5465 func (c *FraudDetector) PutEventTypeWithContext(ctx aws.Context, input *PutEventTypeInput, opts ...request.Option) (*PutEventTypeOutput, error) { 5466 req, out := c.PutEventTypeRequest(input) 5467 req.SetContext(ctx) 5468 req.ApplyOptions(opts...) 5469 return out, req.Send() 5470 } 5471 5472 const opPutExternalModel = "PutExternalModel" 5473 5474 // PutExternalModelRequest generates a "aws/request.Request" representing the 5475 // client's request for the PutExternalModel operation. The "output" return 5476 // value will be populated with the request's response once the request completes 5477 // successfully. 5478 // 5479 // Use "Send" method on the returned Request to send the API call to the service. 5480 // the "output" return value is not valid until after Send returns without error. 5481 // 5482 // See PutExternalModel for more information on using the PutExternalModel 5483 // API call, and error handling. 5484 // 5485 // This method is useful when you want to inject custom logic or configuration 5486 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 5487 // 5488 // 5489 // // Example sending a request using the PutExternalModelRequest method. 5490 // req, resp := client.PutExternalModelRequest(params) 5491 // 5492 // err := req.Send() 5493 // if err == nil { // resp is now filled 5494 // fmt.Println(resp) 5495 // } 5496 // 5497 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutExternalModel 5498 func (c *FraudDetector) PutExternalModelRequest(input *PutExternalModelInput) (req *request.Request, output *PutExternalModelOutput) { 5499 op := &request.Operation{ 5500 Name: opPutExternalModel, 5501 HTTPMethod: "POST", 5502 HTTPPath: "/", 5503 } 5504 5505 if input == nil { 5506 input = &PutExternalModelInput{} 5507 } 5508 5509 output = &PutExternalModelOutput{} 5510 req = c.newRequest(op, input, output) 5511 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 5512 return 5513 } 5514 5515 // PutExternalModel API operation for Amazon Fraud Detector. 5516 // 5517 // Creates or updates an Amazon SageMaker model endpoint. You can also use this 5518 // action to update the configuration of the model endpoint, including the IAM 5519 // role and/or the mapped variables. 5520 // 5521 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5522 // with awserr.Error's Code and Message methods to get detailed information about 5523 // the error. 5524 // 5525 // See the AWS API reference guide for Amazon Fraud Detector's 5526 // API operation PutExternalModel for usage and error information. 5527 // 5528 // Returned Error Types: 5529 // * ValidationException 5530 // An exception indicating a specified value is not allowed. 5531 // 5532 // * InternalServerException 5533 // An exception indicating an internal server error. 5534 // 5535 // * ThrottlingException 5536 // An exception indicating a throttling error. 5537 // 5538 // * AccessDeniedException 5539 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 5540 // This can occur if you submit a request, such as PutExternalModel, that specifies 5541 // a role that is not in your account. 5542 // 5543 // * ConflictException 5544 // An exception indicating there was a conflict during a delete operation. 5545 // 5546 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutExternalModel 5547 func (c *FraudDetector) PutExternalModel(input *PutExternalModelInput) (*PutExternalModelOutput, error) { 5548 req, out := c.PutExternalModelRequest(input) 5549 return out, req.Send() 5550 } 5551 5552 // PutExternalModelWithContext is the same as PutExternalModel with the addition of 5553 // the ability to pass a context and additional request options. 5554 // 5555 // See PutExternalModel for details on how to use this API operation. 5556 // 5557 // The context must be non-nil and will be used for request cancellation. If 5558 // the context is nil a panic will occur. In the future the SDK may create 5559 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5560 // for more information on using Contexts. 5561 func (c *FraudDetector) PutExternalModelWithContext(ctx aws.Context, input *PutExternalModelInput, opts ...request.Option) (*PutExternalModelOutput, error) { 5562 req, out := c.PutExternalModelRequest(input) 5563 req.SetContext(ctx) 5564 req.ApplyOptions(opts...) 5565 return out, req.Send() 5566 } 5567 5568 const opPutKMSEncryptionKey = "PutKMSEncryptionKey" 5569 5570 // PutKMSEncryptionKeyRequest generates a "aws/request.Request" representing the 5571 // client's request for the PutKMSEncryptionKey operation. The "output" return 5572 // value will be populated with the request's response once the request completes 5573 // successfully. 5574 // 5575 // Use "Send" method on the returned Request to send the API call to the service. 5576 // the "output" return value is not valid until after Send returns without error. 5577 // 5578 // See PutKMSEncryptionKey for more information on using the PutKMSEncryptionKey 5579 // API call, and error handling. 5580 // 5581 // This method is useful when you want to inject custom logic or configuration 5582 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 5583 // 5584 // 5585 // // Example sending a request using the PutKMSEncryptionKeyRequest method. 5586 // req, resp := client.PutKMSEncryptionKeyRequest(params) 5587 // 5588 // err := req.Send() 5589 // if err == nil { // resp is now filled 5590 // fmt.Println(resp) 5591 // } 5592 // 5593 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutKMSEncryptionKey 5594 func (c *FraudDetector) PutKMSEncryptionKeyRequest(input *PutKMSEncryptionKeyInput) (req *request.Request, output *PutKMSEncryptionKeyOutput) { 5595 op := &request.Operation{ 5596 Name: opPutKMSEncryptionKey, 5597 HTTPMethod: "POST", 5598 HTTPPath: "/", 5599 } 5600 5601 if input == nil { 5602 input = &PutKMSEncryptionKeyInput{} 5603 } 5604 5605 output = &PutKMSEncryptionKeyOutput{} 5606 req = c.newRequest(op, input, output) 5607 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 5608 return 5609 } 5610 5611 // PutKMSEncryptionKey API operation for Amazon Fraud Detector. 5612 // 5613 // Specifies the KMS key to be used to encrypt content in Amazon Fraud Detector. 5614 // 5615 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5616 // with awserr.Error's Code and Message methods to get detailed information about 5617 // the error. 5618 // 5619 // See the AWS API reference guide for Amazon Fraud Detector's 5620 // API operation PutKMSEncryptionKey for usage and error information. 5621 // 5622 // Returned Error Types: 5623 // * ValidationException 5624 // An exception indicating a specified value is not allowed. 5625 // 5626 // * ResourceNotFoundException 5627 // An exception indicating the specified resource was not found. 5628 // 5629 // * InternalServerException 5630 // An exception indicating an internal server error. 5631 // 5632 // * ThrottlingException 5633 // An exception indicating a throttling error. 5634 // 5635 // * AccessDeniedException 5636 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 5637 // This can occur if you submit a request, such as PutExternalModel, that specifies 5638 // a role that is not in your account. 5639 // 5640 // * ConflictException 5641 // An exception indicating there was a conflict during a delete operation. 5642 // 5643 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutKMSEncryptionKey 5644 func (c *FraudDetector) PutKMSEncryptionKey(input *PutKMSEncryptionKeyInput) (*PutKMSEncryptionKeyOutput, error) { 5645 req, out := c.PutKMSEncryptionKeyRequest(input) 5646 return out, req.Send() 5647 } 5648 5649 // PutKMSEncryptionKeyWithContext is the same as PutKMSEncryptionKey with the addition of 5650 // the ability to pass a context and additional request options. 5651 // 5652 // See PutKMSEncryptionKey for details on how to use this API operation. 5653 // 5654 // The context must be non-nil and will be used for request cancellation. If 5655 // the context is nil a panic will occur. In the future the SDK may create 5656 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5657 // for more information on using Contexts. 5658 func (c *FraudDetector) PutKMSEncryptionKeyWithContext(ctx aws.Context, input *PutKMSEncryptionKeyInput, opts ...request.Option) (*PutKMSEncryptionKeyOutput, error) { 5659 req, out := c.PutKMSEncryptionKeyRequest(input) 5660 req.SetContext(ctx) 5661 req.ApplyOptions(opts...) 5662 return out, req.Send() 5663 } 5664 5665 const opPutLabel = "PutLabel" 5666 5667 // PutLabelRequest generates a "aws/request.Request" representing the 5668 // client's request for the PutLabel operation. The "output" return 5669 // value will be populated with the request's response once the request completes 5670 // successfully. 5671 // 5672 // Use "Send" method on the returned Request to send the API call to the service. 5673 // the "output" return value is not valid until after Send returns without error. 5674 // 5675 // See PutLabel for more information on using the PutLabel 5676 // API call, and error handling. 5677 // 5678 // This method is useful when you want to inject custom logic or configuration 5679 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 5680 // 5681 // 5682 // // Example sending a request using the PutLabelRequest method. 5683 // req, resp := client.PutLabelRequest(params) 5684 // 5685 // err := req.Send() 5686 // if err == nil { // resp is now filled 5687 // fmt.Println(resp) 5688 // } 5689 // 5690 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutLabel 5691 func (c *FraudDetector) PutLabelRequest(input *PutLabelInput) (req *request.Request, output *PutLabelOutput) { 5692 op := &request.Operation{ 5693 Name: opPutLabel, 5694 HTTPMethod: "POST", 5695 HTTPPath: "/", 5696 } 5697 5698 if input == nil { 5699 input = &PutLabelInput{} 5700 } 5701 5702 output = &PutLabelOutput{} 5703 req = c.newRequest(op, input, output) 5704 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 5705 return 5706 } 5707 5708 // PutLabel API operation for Amazon Fraud Detector. 5709 // 5710 // Creates or updates label. A label classifies an event as fraudulent or legitimate. 5711 // Labels are associated with event types and used to train supervised machine 5712 // learning models in Amazon Fraud Detector. 5713 // 5714 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5715 // with awserr.Error's Code and Message methods to get detailed information about 5716 // the error. 5717 // 5718 // See the AWS API reference guide for Amazon Fraud Detector's 5719 // API operation PutLabel for usage and error information. 5720 // 5721 // Returned Error Types: 5722 // * ValidationException 5723 // An exception indicating a specified value is not allowed. 5724 // 5725 // * InternalServerException 5726 // An exception indicating an internal server error. 5727 // 5728 // * ThrottlingException 5729 // An exception indicating a throttling error. 5730 // 5731 // * AccessDeniedException 5732 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 5733 // This can occur if you submit a request, such as PutExternalModel, that specifies 5734 // a role that is not in your account. 5735 // 5736 // * ConflictException 5737 // An exception indicating there was a conflict during a delete operation. 5738 // 5739 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutLabel 5740 func (c *FraudDetector) PutLabel(input *PutLabelInput) (*PutLabelOutput, error) { 5741 req, out := c.PutLabelRequest(input) 5742 return out, req.Send() 5743 } 5744 5745 // PutLabelWithContext is the same as PutLabel with the addition of 5746 // the ability to pass a context and additional request options. 5747 // 5748 // See PutLabel for details on how to use this API operation. 5749 // 5750 // The context must be non-nil and will be used for request cancellation. If 5751 // the context is nil a panic will occur. In the future the SDK may create 5752 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5753 // for more information on using Contexts. 5754 func (c *FraudDetector) PutLabelWithContext(ctx aws.Context, input *PutLabelInput, opts ...request.Option) (*PutLabelOutput, error) { 5755 req, out := c.PutLabelRequest(input) 5756 req.SetContext(ctx) 5757 req.ApplyOptions(opts...) 5758 return out, req.Send() 5759 } 5760 5761 const opPutOutcome = "PutOutcome" 5762 5763 // PutOutcomeRequest generates a "aws/request.Request" representing the 5764 // client's request for the PutOutcome operation. The "output" return 5765 // value will be populated with the request's response once the request completes 5766 // successfully. 5767 // 5768 // Use "Send" method on the returned Request to send the API call to the service. 5769 // the "output" return value is not valid until after Send returns without error. 5770 // 5771 // See PutOutcome for more information on using the PutOutcome 5772 // API call, and error handling. 5773 // 5774 // This method is useful when you want to inject custom logic or configuration 5775 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 5776 // 5777 // 5778 // // Example sending a request using the PutOutcomeRequest method. 5779 // req, resp := client.PutOutcomeRequest(params) 5780 // 5781 // err := req.Send() 5782 // if err == nil { // resp is now filled 5783 // fmt.Println(resp) 5784 // } 5785 // 5786 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutOutcome 5787 func (c *FraudDetector) PutOutcomeRequest(input *PutOutcomeInput) (req *request.Request, output *PutOutcomeOutput) { 5788 op := &request.Operation{ 5789 Name: opPutOutcome, 5790 HTTPMethod: "POST", 5791 HTTPPath: "/", 5792 } 5793 5794 if input == nil { 5795 input = &PutOutcomeInput{} 5796 } 5797 5798 output = &PutOutcomeOutput{} 5799 req = c.newRequest(op, input, output) 5800 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 5801 return 5802 } 5803 5804 // PutOutcome API operation for Amazon Fraud Detector. 5805 // 5806 // Creates or updates an outcome. 5807 // 5808 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5809 // with awserr.Error's Code and Message methods to get detailed information about 5810 // the error. 5811 // 5812 // See the AWS API reference guide for Amazon Fraud Detector's 5813 // API operation PutOutcome for usage and error information. 5814 // 5815 // Returned Error Types: 5816 // * ValidationException 5817 // An exception indicating a specified value is not allowed. 5818 // 5819 // * InternalServerException 5820 // An exception indicating an internal server error. 5821 // 5822 // * ThrottlingException 5823 // An exception indicating a throttling error. 5824 // 5825 // * AccessDeniedException 5826 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 5827 // This can occur if you submit a request, such as PutExternalModel, that specifies 5828 // a role that is not in your account. 5829 // 5830 // * ConflictException 5831 // An exception indicating there was a conflict during a delete operation. 5832 // 5833 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutOutcome 5834 func (c *FraudDetector) PutOutcome(input *PutOutcomeInput) (*PutOutcomeOutput, error) { 5835 req, out := c.PutOutcomeRequest(input) 5836 return out, req.Send() 5837 } 5838 5839 // PutOutcomeWithContext is the same as PutOutcome with the addition of 5840 // the ability to pass a context and additional request options. 5841 // 5842 // See PutOutcome for details on how to use this API operation. 5843 // 5844 // The context must be non-nil and will be used for request cancellation. If 5845 // the context is nil a panic will occur. In the future the SDK may create 5846 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5847 // for more information on using Contexts. 5848 func (c *FraudDetector) PutOutcomeWithContext(ctx aws.Context, input *PutOutcomeInput, opts ...request.Option) (*PutOutcomeOutput, error) { 5849 req, out := c.PutOutcomeRequest(input) 5850 req.SetContext(ctx) 5851 req.ApplyOptions(opts...) 5852 return out, req.Send() 5853 } 5854 5855 const opSendEvent = "SendEvent" 5856 5857 // SendEventRequest generates a "aws/request.Request" representing the 5858 // client's request for the SendEvent operation. The "output" return 5859 // value will be populated with the request's response once the request completes 5860 // successfully. 5861 // 5862 // Use "Send" method on the returned Request to send the API call to the service. 5863 // the "output" return value is not valid until after Send returns without error. 5864 // 5865 // See SendEvent for more information on using the SendEvent 5866 // API call, and error handling. 5867 // 5868 // This method is useful when you want to inject custom logic or configuration 5869 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 5870 // 5871 // 5872 // // Example sending a request using the SendEventRequest method. 5873 // req, resp := client.SendEventRequest(params) 5874 // 5875 // err := req.Send() 5876 // if err == nil { // resp is now filled 5877 // fmt.Println(resp) 5878 // } 5879 // 5880 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/SendEvent 5881 func (c *FraudDetector) SendEventRequest(input *SendEventInput) (req *request.Request, output *SendEventOutput) { 5882 op := &request.Operation{ 5883 Name: opSendEvent, 5884 HTTPMethod: "POST", 5885 HTTPPath: "/", 5886 } 5887 5888 if input == nil { 5889 input = &SendEventInput{} 5890 } 5891 5892 output = &SendEventOutput{} 5893 req = c.newRequest(op, input, output) 5894 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 5895 return 5896 } 5897 5898 // SendEvent API operation for Amazon Fraud Detector. 5899 // 5900 // Stores events in Amazon Fraud Detector without generating fraud predictions 5901 // for those events. For example, you can use SendEvent to upload a historical 5902 // dataset, which you can then later use to train a model. 5903 // 5904 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5905 // with awserr.Error's Code and Message methods to get detailed information about 5906 // the error. 5907 // 5908 // See the AWS API reference guide for Amazon Fraud Detector's 5909 // API operation SendEvent for usage and error information. 5910 // 5911 // Returned Error Types: 5912 // * ValidationException 5913 // An exception indicating a specified value is not allowed. 5914 // 5915 // * ConflictException 5916 // An exception indicating there was a conflict during a delete operation. 5917 // 5918 // * ResourceNotFoundException 5919 // An exception indicating the specified resource was not found. 5920 // 5921 // * InternalServerException 5922 // An exception indicating an internal server error. 5923 // 5924 // * ThrottlingException 5925 // An exception indicating a throttling error. 5926 // 5927 // * AccessDeniedException 5928 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 5929 // This can occur if you submit a request, such as PutExternalModel, that specifies 5930 // a role that is not in your account. 5931 // 5932 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/SendEvent 5933 func (c *FraudDetector) SendEvent(input *SendEventInput) (*SendEventOutput, error) { 5934 req, out := c.SendEventRequest(input) 5935 return out, req.Send() 5936 } 5937 5938 // SendEventWithContext is the same as SendEvent with the addition of 5939 // the ability to pass a context and additional request options. 5940 // 5941 // See SendEvent for details on how to use this API operation. 5942 // 5943 // The context must be non-nil and will be used for request cancellation. If 5944 // the context is nil a panic will occur. In the future the SDK may create 5945 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5946 // for more information on using Contexts. 5947 func (c *FraudDetector) SendEventWithContext(ctx aws.Context, input *SendEventInput, opts ...request.Option) (*SendEventOutput, error) { 5948 req, out := c.SendEventRequest(input) 5949 req.SetContext(ctx) 5950 req.ApplyOptions(opts...) 5951 return out, req.Send() 5952 } 5953 5954 const opTagResource = "TagResource" 5955 5956 // TagResourceRequest generates a "aws/request.Request" representing the 5957 // client's request for the TagResource operation. The "output" return 5958 // value will be populated with the request's response once the request completes 5959 // successfully. 5960 // 5961 // Use "Send" method on the returned Request to send the API call to the service. 5962 // the "output" return value is not valid until after Send returns without error. 5963 // 5964 // See TagResource for more information on using the TagResource 5965 // API call, and error handling. 5966 // 5967 // This method is useful when you want to inject custom logic or configuration 5968 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 5969 // 5970 // 5971 // // Example sending a request using the TagResourceRequest method. 5972 // req, resp := client.TagResourceRequest(params) 5973 // 5974 // err := req.Send() 5975 // if err == nil { // resp is now filled 5976 // fmt.Println(resp) 5977 // } 5978 // 5979 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/TagResource 5980 func (c *FraudDetector) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { 5981 op := &request.Operation{ 5982 Name: opTagResource, 5983 HTTPMethod: "POST", 5984 HTTPPath: "/", 5985 } 5986 5987 if input == nil { 5988 input = &TagResourceInput{} 5989 } 5990 5991 output = &TagResourceOutput{} 5992 req = c.newRequest(op, input, output) 5993 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 5994 return 5995 } 5996 5997 // TagResource API operation for Amazon Fraud Detector. 5998 // 5999 // Assigns tags to a resource. 6000 // 6001 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6002 // with awserr.Error's Code and Message methods to get detailed information about 6003 // the error. 6004 // 6005 // See the AWS API reference guide for Amazon Fraud Detector's 6006 // API operation TagResource for usage and error information. 6007 // 6008 // Returned Error Types: 6009 // * ValidationException 6010 // An exception indicating a specified value is not allowed. 6011 // 6012 // * ResourceNotFoundException 6013 // An exception indicating the specified resource was not found. 6014 // 6015 // * ThrottlingException 6016 // An exception indicating a throttling error. 6017 // 6018 // * AccessDeniedException 6019 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 6020 // This can occur if you submit a request, such as PutExternalModel, that specifies 6021 // a role that is not in your account. 6022 // 6023 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/TagResource 6024 func (c *FraudDetector) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { 6025 req, out := c.TagResourceRequest(input) 6026 return out, req.Send() 6027 } 6028 6029 // TagResourceWithContext is the same as TagResource with the addition of 6030 // the ability to pass a context and additional request options. 6031 // 6032 // See TagResource for details on how to use this API operation. 6033 // 6034 // The context must be non-nil and will be used for request cancellation. If 6035 // the context is nil a panic will occur. In the future the SDK may create 6036 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6037 // for more information on using Contexts. 6038 func (c *FraudDetector) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { 6039 req, out := c.TagResourceRequest(input) 6040 req.SetContext(ctx) 6041 req.ApplyOptions(opts...) 6042 return out, req.Send() 6043 } 6044 6045 const opUntagResource = "UntagResource" 6046 6047 // UntagResourceRequest generates a "aws/request.Request" representing the 6048 // client's request for the UntagResource operation. The "output" return 6049 // value will be populated with the request's response once the request completes 6050 // successfully. 6051 // 6052 // Use "Send" method on the returned Request to send the API call to the service. 6053 // the "output" return value is not valid until after Send returns without error. 6054 // 6055 // See UntagResource for more information on using the UntagResource 6056 // API call, and error handling. 6057 // 6058 // This method is useful when you want to inject custom logic or configuration 6059 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 6060 // 6061 // 6062 // // Example sending a request using the UntagResourceRequest method. 6063 // req, resp := client.UntagResourceRequest(params) 6064 // 6065 // err := req.Send() 6066 // if err == nil { // resp is now filled 6067 // fmt.Println(resp) 6068 // } 6069 // 6070 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UntagResource 6071 func (c *FraudDetector) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { 6072 op := &request.Operation{ 6073 Name: opUntagResource, 6074 HTTPMethod: "POST", 6075 HTTPPath: "/", 6076 } 6077 6078 if input == nil { 6079 input = &UntagResourceInput{} 6080 } 6081 6082 output = &UntagResourceOutput{} 6083 req = c.newRequest(op, input, output) 6084 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 6085 return 6086 } 6087 6088 // UntagResource API operation for Amazon Fraud Detector. 6089 // 6090 // Removes tags from a resource. 6091 // 6092 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6093 // with awserr.Error's Code and Message methods to get detailed information about 6094 // the error. 6095 // 6096 // See the AWS API reference guide for Amazon Fraud Detector's 6097 // API operation UntagResource for usage and error information. 6098 // 6099 // Returned Error Types: 6100 // * ValidationException 6101 // An exception indicating a specified value is not allowed. 6102 // 6103 // * ResourceNotFoundException 6104 // An exception indicating the specified resource was not found. 6105 // 6106 // * ThrottlingException 6107 // An exception indicating a throttling error. 6108 // 6109 // * AccessDeniedException 6110 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 6111 // This can occur if you submit a request, such as PutExternalModel, that specifies 6112 // a role that is not in your account. 6113 // 6114 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UntagResource 6115 func (c *FraudDetector) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { 6116 req, out := c.UntagResourceRequest(input) 6117 return out, req.Send() 6118 } 6119 6120 // UntagResourceWithContext is the same as UntagResource with the addition of 6121 // the ability to pass a context and additional request options. 6122 // 6123 // See UntagResource for details on how to use this API operation. 6124 // 6125 // The context must be non-nil and will be used for request cancellation. If 6126 // the context is nil a panic will occur. In the future the SDK may create 6127 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6128 // for more information on using Contexts. 6129 func (c *FraudDetector) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { 6130 req, out := c.UntagResourceRequest(input) 6131 req.SetContext(ctx) 6132 req.ApplyOptions(opts...) 6133 return out, req.Send() 6134 } 6135 6136 const opUpdateDetectorVersion = "UpdateDetectorVersion" 6137 6138 // UpdateDetectorVersionRequest generates a "aws/request.Request" representing the 6139 // client's request for the UpdateDetectorVersion operation. The "output" return 6140 // value will be populated with the request's response once the request completes 6141 // successfully. 6142 // 6143 // Use "Send" method on the returned Request to send the API call to the service. 6144 // the "output" return value is not valid until after Send returns without error. 6145 // 6146 // See UpdateDetectorVersion for more information on using the UpdateDetectorVersion 6147 // API call, and error handling. 6148 // 6149 // This method is useful when you want to inject custom logic or configuration 6150 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 6151 // 6152 // 6153 // // Example sending a request using the UpdateDetectorVersionRequest method. 6154 // req, resp := client.UpdateDetectorVersionRequest(params) 6155 // 6156 // err := req.Send() 6157 // if err == nil { // resp is now filled 6158 // fmt.Println(resp) 6159 // } 6160 // 6161 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersion 6162 func (c *FraudDetector) UpdateDetectorVersionRequest(input *UpdateDetectorVersionInput) (req *request.Request, output *UpdateDetectorVersionOutput) { 6163 op := &request.Operation{ 6164 Name: opUpdateDetectorVersion, 6165 HTTPMethod: "POST", 6166 HTTPPath: "/", 6167 } 6168 6169 if input == nil { 6170 input = &UpdateDetectorVersionInput{} 6171 } 6172 6173 output = &UpdateDetectorVersionOutput{} 6174 req = c.newRequest(op, input, output) 6175 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 6176 return 6177 } 6178 6179 // UpdateDetectorVersion API operation for Amazon Fraud Detector. 6180 // 6181 // Updates a detector version. The detector version attributes that you can 6182 // update include models, external model endpoints, rules, rule execution mode, 6183 // and description. You can only update a DRAFT detector version. 6184 // 6185 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6186 // with awserr.Error's Code and Message methods to get detailed information about 6187 // the error. 6188 // 6189 // See the AWS API reference guide for Amazon Fraud Detector's 6190 // API operation UpdateDetectorVersion for usage and error information. 6191 // 6192 // Returned Error Types: 6193 // * ValidationException 6194 // An exception indicating a specified value is not allowed. 6195 // 6196 // * ResourceNotFoundException 6197 // An exception indicating the specified resource was not found. 6198 // 6199 // * InternalServerException 6200 // An exception indicating an internal server error. 6201 // 6202 // * ThrottlingException 6203 // An exception indicating a throttling error. 6204 // 6205 // * AccessDeniedException 6206 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 6207 // This can occur if you submit a request, such as PutExternalModel, that specifies 6208 // a role that is not in your account. 6209 // 6210 // * ConflictException 6211 // An exception indicating there was a conflict during a delete operation. 6212 // 6213 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersion 6214 func (c *FraudDetector) UpdateDetectorVersion(input *UpdateDetectorVersionInput) (*UpdateDetectorVersionOutput, error) { 6215 req, out := c.UpdateDetectorVersionRequest(input) 6216 return out, req.Send() 6217 } 6218 6219 // UpdateDetectorVersionWithContext is the same as UpdateDetectorVersion with the addition of 6220 // the ability to pass a context and additional request options. 6221 // 6222 // See UpdateDetectorVersion for details on how to use this API operation. 6223 // 6224 // The context must be non-nil and will be used for request cancellation. If 6225 // the context is nil a panic will occur. In the future the SDK may create 6226 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6227 // for more information on using Contexts. 6228 func (c *FraudDetector) UpdateDetectorVersionWithContext(ctx aws.Context, input *UpdateDetectorVersionInput, opts ...request.Option) (*UpdateDetectorVersionOutput, error) { 6229 req, out := c.UpdateDetectorVersionRequest(input) 6230 req.SetContext(ctx) 6231 req.ApplyOptions(opts...) 6232 return out, req.Send() 6233 } 6234 6235 const opUpdateDetectorVersionMetadata = "UpdateDetectorVersionMetadata" 6236 6237 // UpdateDetectorVersionMetadataRequest generates a "aws/request.Request" representing the 6238 // client's request for the UpdateDetectorVersionMetadata operation. The "output" return 6239 // value will be populated with the request's response once the request completes 6240 // successfully. 6241 // 6242 // Use "Send" method on the returned Request to send the API call to the service. 6243 // the "output" return value is not valid until after Send returns without error. 6244 // 6245 // See UpdateDetectorVersionMetadata for more information on using the UpdateDetectorVersionMetadata 6246 // API call, and error handling. 6247 // 6248 // This method is useful when you want to inject custom logic or configuration 6249 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 6250 // 6251 // 6252 // // Example sending a request using the UpdateDetectorVersionMetadataRequest method. 6253 // req, resp := client.UpdateDetectorVersionMetadataRequest(params) 6254 // 6255 // err := req.Send() 6256 // if err == nil { // resp is now filled 6257 // fmt.Println(resp) 6258 // } 6259 // 6260 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersionMetadata 6261 func (c *FraudDetector) UpdateDetectorVersionMetadataRequest(input *UpdateDetectorVersionMetadataInput) (req *request.Request, output *UpdateDetectorVersionMetadataOutput) { 6262 op := &request.Operation{ 6263 Name: opUpdateDetectorVersionMetadata, 6264 HTTPMethod: "POST", 6265 HTTPPath: "/", 6266 } 6267 6268 if input == nil { 6269 input = &UpdateDetectorVersionMetadataInput{} 6270 } 6271 6272 output = &UpdateDetectorVersionMetadataOutput{} 6273 req = c.newRequest(op, input, output) 6274 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 6275 return 6276 } 6277 6278 // UpdateDetectorVersionMetadata API operation for Amazon Fraud Detector. 6279 // 6280 // Updates the detector version's description. You can update the metadata for 6281 // any detector version (DRAFT, ACTIVE, or INACTIVE). 6282 // 6283 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6284 // with awserr.Error's Code and Message methods to get detailed information about 6285 // the error. 6286 // 6287 // See the AWS API reference guide for Amazon Fraud Detector's 6288 // API operation UpdateDetectorVersionMetadata for usage and error information. 6289 // 6290 // Returned Error Types: 6291 // * ValidationException 6292 // An exception indicating a specified value is not allowed. 6293 // 6294 // * InternalServerException 6295 // An exception indicating an internal server error. 6296 // 6297 // * ThrottlingException 6298 // An exception indicating a throttling error. 6299 // 6300 // * AccessDeniedException 6301 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 6302 // This can occur if you submit a request, such as PutExternalModel, that specifies 6303 // a role that is not in your account. 6304 // 6305 // * ConflictException 6306 // An exception indicating there was a conflict during a delete operation. 6307 // 6308 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersionMetadata 6309 func (c *FraudDetector) UpdateDetectorVersionMetadata(input *UpdateDetectorVersionMetadataInput) (*UpdateDetectorVersionMetadataOutput, error) { 6310 req, out := c.UpdateDetectorVersionMetadataRequest(input) 6311 return out, req.Send() 6312 } 6313 6314 // UpdateDetectorVersionMetadataWithContext is the same as UpdateDetectorVersionMetadata with the addition of 6315 // the ability to pass a context and additional request options. 6316 // 6317 // See UpdateDetectorVersionMetadata for details on how to use this API operation. 6318 // 6319 // The context must be non-nil and will be used for request cancellation. If 6320 // the context is nil a panic will occur. In the future the SDK may create 6321 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6322 // for more information on using Contexts. 6323 func (c *FraudDetector) UpdateDetectorVersionMetadataWithContext(ctx aws.Context, input *UpdateDetectorVersionMetadataInput, opts ...request.Option) (*UpdateDetectorVersionMetadataOutput, error) { 6324 req, out := c.UpdateDetectorVersionMetadataRequest(input) 6325 req.SetContext(ctx) 6326 req.ApplyOptions(opts...) 6327 return out, req.Send() 6328 } 6329 6330 const opUpdateDetectorVersionStatus = "UpdateDetectorVersionStatus" 6331 6332 // UpdateDetectorVersionStatusRequest generates a "aws/request.Request" representing the 6333 // client's request for the UpdateDetectorVersionStatus operation. The "output" return 6334 // value will be populated with the request's response once the request completes 6335 // successfully. 6336 // 6337 // Use "Send" method on the returned Request to send the API call to the service. 6338 // the "output" return value is not valid until after Send returns without error. 6339 // 6340 // See UpdateDetectorVersionStatus for more information on using the UpdateDetectorVersionStatus 6341 // API call, and error handling. 6342 // 6343 // This method is useful when you want to inject custom logic or configuration 6344 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 6345 // 6346 // 6347 // // Example sending a request using the UpdateDetectorVersionStatusRequest method. 6348 // req, resp := client.UpdateDetectorVersionStatusRequest(params) 6349 // 6350 // err := req.Send() 6351 // if err == nil { // resp is now filled 6352 // fmt.Println(resp) 6353 // } 6354 // 6355 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersionStatus 6356 func (c *FraudDetector) UpdateDetectorVersionStatusRequest(input *UpdateDetectorVersionStatusInput) (req *request.Request, output *UpdateDetectorVersionStatusOutput) { 6357 op := &request.Operation{ 6358 Name: opUpdateDetectorVersionStatus, 6359 HTTPMethod: "POST", 6360 HTTPPath: "/", 6361 } 6362 6363 if input == nil { 6364 input = &UpdateDetectorVersionStatusInput{} 6365 } 6366 6367 output = &UpdateDetectorVersionStatusOutput{} 6368 req = c.newRequest(op, input, output) 6369 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 6370 return 6371 } 6372 6373 // UpdateDetectorVersionStatus API operation for Amazon Fraud Detector. 6374 // 6375 // Updates the detector version’s status. You can perform the following promotions 6376 // or demotions using UpdateDetectorVersionStatus: DRAFT to ACTIVE, ACTIVE to 6377 // INACTIVE, and INACTIVE to ACTIVE. 6378 // 6379 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6380 // with awserr.Error's Code and Message methods to get detailed information about 6381 // the error. 6382 // 6383 // See the AWS API reference guide for Amazon Fraud Detector's 6384 // API operation UpdateDetectorVersionStatus for usage and error information. 6385 // 6386 // Returned Error Types: 6387 // * ValidationException 6388 // An exception indicating a specified value is not allowed. 6389 // 6390 // * ResourceNotFoundException 6391 // An exception indicating the specified resource was not found. 6392 // 6393 // * InternalServerException 6394 // An exception indicating an internal server error. 6395 // 6396 // * ThrottlingException 6397 // An exception indicating a throttling error. 6398 // 6399 // * AccessDeniedException 6400 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 6401 // This can occur if you submit a request, such as PutExternalModel, that specifies 6402 // a role that is not in your account. 6403 // 6404 // * ConflictException 6405 // An exception indicating there was a conflict during a delete operation. 6406 // 6407 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersionStatus 6408 func (c *FraudDetector) UpdateDetectorVersionStatus(input *UpdateDetectorVersionStatusInput) (*UpdateDetectorVersionStatusOutput, error) { 6409 req, out := c.UpdateDetectorVersionStatusRequest(input) 6410 return out, req.Send() 6411 } 6412 6413 // UpdateDetectorVersionStatusWithContext is the same as UpdateDetectorVersionStatus with the addition of 6414 // the ability to pass a context and additional request options. 6415 // 6416 // See UpdateDetectorVersionStatus for details on how to use this API operation. 6417 // 6418 // The context must be non-nil and will be used for request cancellation. If 6419 // the context is nil a panic will occur. In the future the SDK may create 6420 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6421 // for more information on using Contexts. 6422 func (c *FraudDetector) UpdateDetectorVersionStatusWithContext(ctx aws.Context, input *UpdateDetectorVersionStatusInput, opts ...request.Option) (*UpdateDetectorVersionStatusOutput, error) { 6423 req, out := c.UpdateDetectorVersionStatusRequest(input) 6424 req.SetContext(ctx) 6425 req.ApplyOptions(opts...) 6426 return out, req.Send() 6427 } 6428 6429 const opUpdateEventLabel = "UpdateEventLabel" 6430 6431 // UpdateEventLabelRequest generates a "aws/request.Request" representing the 6432 // client's request for the UpdateEventLabel operation. The "output" return 6433 // value will be populated with the request's response once the request completes 6434 // successfully. 6435 // 6436 // Use "Send" method on the returned Request to send the API call to the service. 6437 // the "output" return value is not valid until after Send returns without error. 6438 // 6439 // See UpdateEventLabel for more information on using the UpdateEventLabel 6440 // API call, and error handling. 6441 // 6442 // This method is useful when you want to inject custom logic or configuration 6443 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 6444 // 6445 // 6446 // // Example sending a request using the UpdateEventLabelRequest method. 6447 // req, resp := client.UpdateEventLabelRequest(params) 6448 // 6449 // err := req.Send() 6450 // if err == nil { // resp is now filled 6451 // fmt.Println(resp) 6452 // } 6453 // 6454 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateEventLabel 6455 func (c *FraudDetector) UpdateEventLabelRequest(input *UpdateEventLabelInput) (req *request.Request, output *UpdateEventLabelOutput) { 6456 op := &request.Operation{ 6457 Name: opUpdateEventLabel, 6458 HTTPMethod: "POST", 6459 HTTPPath: "/", 6460 } 6461 6462 if input == nil { 6463 input = &UpdateEventLabelInput{} 6464 } 6465 6466 output = &UpdateEventLabelOutput{} 6467 req = c.newRequest(op, input, output) 6468 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 6469 return 6470 } 6471 6472 // UpdateEventLabel API operation for Amazon Fraud Detector. 6473 // 6474 // Updates the specified event with a new label. 6475 // 6476 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6477 // with awserr.Error's Code and Message methods to get detailed information about 6478 // the error. 6479 // 6480 // See the AWS API reference guide for Amazon Fraud Detector's 6481 // API operation UpdateEventLabel for usage and error information. 6482 // 6483 // Returned Error Types: 6484 // * ValidationException 6485 // An exception indicating a specified value is not allowed. 6486 // 6487 // * ResourceNotFoundException 6488 // An exception indicating the specified resource was not found. 6489 // 6490 // * InternalServerException 6491 // An exception indicating an internal server error. 6492 // 6493 // * ThrottlingException 6494 // An exception indicating a throttling error. 6495 // 6496 // * AccessDeniedException 6497 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 6498 // This can occur if you submit a request, such as PutExternalModel, that specifies 6499 // a role that is not in your account. 6500 // 6501 // * ConflictException 6502 // An exception indicating there was a conflict during a delete operation. 6503 // 6504 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateEventLabel 6505 func (c *FraudDetector) UpdateEventLabel(input *UpdateEventLabelInput) (*UpdateEventLabelOutput, error) { 6506 req, out := c.UpdateEventLabelRequest(input) 6507 return out, req.Send() 6508 } 6509 6510 // UpdateEventLabelWithContext is the same as UpdateEventLabel with the addition of 6511 // the ability to pass a context and additional request options. 6512 // 6513 // See UpdateEventLabel for details on how to use this API operation. 6514 // 6515 // The context must be non-nil and will be used for request cancellation. If 6516 // the context is nil a panic will occur. In the future the SDK may create 6517 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6518 // for more information on using Contexts. 6519 func (c *FraudDetector) UpdateEventLabelWithContext(ctx aws.Context, input *UpdateEventLabelInput, opts ...request.Option) (*UpdateEventLabelOutput, error) { 6520 req, out := c.UpdateEventLabelRequest(input) 6521 req.SetContext(ctx) 6522 req.ApplyOptions(opts...) 6523 return out, req.Send() 6524 } 6525 6526 const opUpdateModel = "UpdateModel" 6527 6528 // UpdateModelRequest generates a "aws/request.Request" representing the 6529 // client's request for the UpdateModel operation. The "output" return 6530 // value will be populated with the request's response once the request completes 6531 // successfully. 6532 // 6533 // Use "Send" method on the returned Request to send the API call to the service. 6534 // the "output" return value is not valid until after Send returns without error. 6535 // 6536 // See UpdateModel for more information on using the UpdateModel 6537 // API call, and error handling. 6538 // 6539 // This method is useful when you want to inject custom logic or configuration 6540 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 6541 // 6542 // 6543 // // Example sending a request using the UpdateModelRequest method. 6544 // req, resp := client.UpdateModelRequest(params) 6545 // 6546 // err := req.Send() 6547 // if err == nil { // resp is now filled 6548 // fmt.Println(resp) 6549 // } 6550 // 6551 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModel 6552 func (c *FraudDetector) UpdateModelRequest(input *UpdateModelInput) (req *request.Request, output *UpdateModelOutput) { 6553 op := &request.Operation{ 6554 Name: opUpdateModel, 6555 HTTPMethod: "POST", 6556 HTTPPath: "/", 6557 } 6558 6559 if input == nil { 6560 input = &UpdateModelInput{} 6561 } 6562 6563 output = &UpdateModelOutput{} 6564 req = c.newRequest(op, input, output) 6565 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 6566 return 6567 } 6568 6569 // UpdateModel API operation for Amazon Fraud Detector. 6570 // 6571 // Updates model description. 6572 // 6573 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6574 // with awserr.Error's Code and Message methods to get detailed information about 6575 // the error. 6576 // 6577 // See the AWS API reference guide for Amazon Fraud Detector's 6578 // API operation UpdateModel for usage and error information. 6579 // 6580 // Returned Error Types: 6581 // * ValidationException 6582 // An exception indicating a specified value is not allowed. 6583 // 6584 // * ResourceNotFoundException 6585 // An exception indicating the specified resource was not found. 6586 // 6587 // * InternalServerException 6588 // An exception indicating an internal server error. 6589 // 6590 // * ThrottlingException 6591 // An exception indicating a throttling error. 6592 // 6593 // * AccessDeniedException 6594 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 6595 // This can occur if you submit a request, such as PutExternalModel, that specifies 6596 // a role that is not in your account. 6597 // 6598 // * ConflictException 6599 // An exception indicating there was a conflict during a delete operation. 6600 // 6601 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModel 6602 func (c *FraudDetector) UpdateModel(input *UpdateModelInput) (*UpdateModelOutput, error) { 6603 req, out := c.UpdateModelRequest(input) 6604 return out, req.Send() 6605 } 6606 6607 // UpdateModelWithContext is the same as UpdateModel with the addition of 6608 // the ability to pass a context and additional request options. 6609 // 6610 // See UpdateModel for details on how to use this API operation. 6611 // 6612 // The context must be non-nil and will be used for request cancellation. If 6613 // the context is nil a panic will occur. In the future the SDK may create 6614 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6615 // for more information on using Contexts. 6616 func (c *FraudDetector) UpdateModelWithContext(ctx aws.Context, input *UpdateModelInput, opts ...request.Option) (*UpdateModelOutput, error) { 6617 req, out := c.UpdateModelRequest(input) 6618 req.SetContext(ctx) 6619 req.ApplyOptions(opts...) 6620 return out, req.Send() 6621 } 6622 6623 const opUpdateModelVersion = "UpdateModelVersion" 6624 6625 // UpdateModelVersionRequest generates a "aws/request.Request" representing the 6626 // client's request for the UpdateModelVersion operation. The "output" return 6627 // value will be populated with the request's response once the request completes 6628 // successfully. 6629 // 6630 // Use "Send" method on the returned Request to send the API call to the service. 6631 // the "output" return value is not valid until after Send returns without error. 6632 // 6633 // See UpdateModelVersion for more information on using the UpdateModelVersion 6634 // API call, and error handling. 6635 // 6636 // This method is useful when you want to inject custom logic or configuration 6637 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 6638 // 6639 // 6640 // // Example sending a request using the UpdateModelVersionRequest method. 6641 // req, resp := client.UpdateModelVersionRequest(params) 6642 // 6643 // err := req.Send() 6644 // if err == nil { // resp is now filled 6645 // fmt.Println(resp) 6646 // } 6647 // 6648 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelVersion 6649 func (c *FraudDetector) UpdateModelVersionRequest(input *UpdateModelVersionInput) (req *request.Request, output *UpdateModelVersionOutput) { 6650 op := &request.Operation{ 6651 Name: opUpdateModelVersion, 6652 HTTPMethod: "POST", 6653 HTTPPath: "/", 6654 } 6655 6656 if input == nil { 6657 input = &UpdateModelVersionInput{} 6658 } 6659 6660 output = &UpdateModelVersionOutput{} 6661 req = c.newRequest(op, input, output) 6662 return 6663 } 6664 6665 // UpdateModelVersion API operation for Amazon Fraud Detector. 6666 // 6667 // Updates a model version. Updating a model version retrains an existing model 6668 // version using updated training data and produces a new minor version of the 6669 // model. You can update the training data set location and data access role 6670 // attributes using this action. This action creates and trains a new minor 6671 // version of the model, for example version 1.01, 1.02, 1.03. 6672 // 6673 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6674 // with awserr.Error's Code and Message methods to get detailed information about 6675 // the error. 6676 // 6677 // See the AWS API reference guide for Amazon Fraud Detector's 6678 // API operation UpdateModelVersion for usage and error information. 6679 // 6680 // Returned Error Types: 6681 // * ValidationException 6682 // An exception indicating a specified value is not allowed. 6683 // 6684 // * ResourceNotFoundException 6685 // An exception indicating the specified resource was not found. 6686 // 6687 // * AccessDeniedException 6688 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 6689 // This can occur if you submit a request, such as PutExternalModel, that specifies 6690 // a role that is not in your account. 6691 // 6692 // * ThrottlingException 6693 // An exception indicating a throttling error. 6694 // 6695 // * InternalServerException 6696 // An exception indicating an internal server error. 6697 // 6698 // * ConflictException 6699 // An exception indicating there was a conflict during a delete operation. 6700 // 6701 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelVersion 6702 func (c *FraudDetector) UpdateModelVersion(input *UpdateModelVersionInput) (*UpdateModelVersionOutput, error) { 6703 req, out := c.UpdateModelVersionRequest(input) 6704 return out, req.Send() 6705 } 6706 6707 // UpdateModelVersionWithContext is the same as UpdateModelVersion with the addition of 6708 // the ability to pass a context and additional request options. 6709 // 6710 // See UpdateModelVersion for details on how to use this API operation. 6711 // 6712 // The context must be non-nil and will be used for request cancellation. If 6713 // the context is nil a panic will occur. In the future the SDK may create 6714 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6715 // for more information on using Contexts. 6716 func (c *FraudDetector) UpdateModelVersionWithContext(ctx aws.Context, input *UpdateModelVersionInput, opts ...request.Option) (*UpdateModelVersionOutput, error) { 6717 req, out := c.UpdateModelVersionRequest(input) 6718 req.SetContext(ctx) 6719 req.ApplyOptions(opts...) 6720 return out, req.Send() 6721 } 6722 6723 const opUpdateModelVersionStatus = "UpdateModelVersionStatus" 6724 6725 // UpdateModelVersionStatusRequest generates a "aws/request.Request" representing the 6726 // client's request for the UpdateModelVersionStatus operation. The "output" return 6727 // value will be populated with the request's response once the request completes 6728 // successfully. 6729 // 6730 // Use "Send" method on the returned Request to send the API call to the service. 6731 // the "output" return value is not valid until after Send returns without error. 6732 // 6733 // See UpdateModelVersionStatus for more information on using the UpdateModelVersionStatus 6734 // API call, and error handling. 6735 // 6736 // This method is useful when you want to inject custom logic or configuration 6737 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 6738 // 6739 // 6740 // // Example sending a request using the UpdateModelVersionStatusRequest method. 6741 // req, resp := client.UpdateModelVersionStatusRequest(params) 6742 // 6743 // err := req.Send() 6744 // if err == nil { // resp is now filled 6745 // fmt.Println(resp) 6746 // } 6747 // 6748 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelVersionStatus 6749 func (c *FraudDetector) UpdateModelVersionStatusRequest(input *UpdateModelVersionStatusInput) (req *request.Request, output *UpdateModelVersionStatusOutput) { 6750 op := &request.Operation{ 6751 Name: opUpdateModelVersionStatus, 6752 HTTPMethod: "POST", 6753 HTTPPath: "/", 6754 } 6755 6756 if input == nil { 6757 input = &UpdateModelVersionStatusInput{} 6758 } 6759 6760 output = &UpdateModelVersionStatusOutput{} 6761 req = c.newRequest(op, input, output) 6762 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 6763 return 6764 } 6765 6766 // UpdateModelVersionStatus API operation for Amazon Fraud Detector. 6767 // 6768 // Updates the status of a model version. 6769 // 6770 // You can perform the following status updates: 6771 // 6772 // Change the TRAINING_COMPLETE status to ACTIVE. 6773 // 6774 // Change ACTIVE to INACTIVE. 6775 // 6776 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6777 // with awserr.Error's Code and Message methods to get detailed information about 6778 // the error. 6779 // 6780 // See the AWS API reference guide for Amazon Fraud Detector's 6781 // API operation UpdateModelVersionStatus for usage and error information. 6782 // 6783 // Returned Error Types: 6784 // * ValidationException 6785 // An exception indicating a specified value is not allowed. 6786 // 6787 // * ResourceNotFoundException 6788 // An exception indicating the specified resource was not found. 6789 // 6790 // * InternalServerException 6791 // An exception indicating an internal server error. 6792 // 6793 // * ThrottlingException 6794 // An exception indicating a throttling error. 6795 // 6796 // * AccessDeniedException 6797 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 6798 // This can occur if you submit a request, such as PutExternalModel, that specifies 6799 // a role that is not in your account. 6800 // 6801 // * ConflictException 6802 // An exception indicating there was a conflict during a delete operation. 6803 // 6804 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelVersionStatus 6805 func (c *FraudDetector) UpdateModelVersionStatus(input *UpdateModelVersionStatusInput) (*UpdateModelVersionStatusOutput, error) { 6806 req, out := c.UpdateModelVersionStatusRequest(input) 6807 return out, req.Send() 6808 } 6809 6810 // UpdateModelVersionStatusWithContext is the same as UpdateModelVersionStatus with the addition of 6811 // the ability to pass a context and additional request options. 6812 // 6813 // See UpdateModelVersionStatus for details on how to use this API operation. 6814 // 6815 // The context must be non-nil and will be used for request cancellation. If 6816 // the context is nil a panic will occur. In the future the SDK may create 6817 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6818 // for more information on using Contexts. 6819 func (c *FraudDetector) UpdateModelVersionStatusWithContext(ctx aws.Context, input *UpdateModelVersionStatusInput, opts ...request.Option) (*UpdateModelVersionStatusOutput, error) { 6820 req, out := c.UpdateModelVersionStatusRequest(input) 6821 req.SetContext(ctx) 6822 req.ApplyOptions(opts...) 6823 return out, req.Send() 6824 } 6825 6826 const opUpdateRuleMetadata = "UpdateRuleMetadata" 6827 6828 // UpdateRuleMetadataRequest generates a "aws/request.Request" representing the 6829 // client's request for the UpdateRuleMetadata operation. The "output" return 6830 // value will be populated with the request's response once the request completes 6831 // successfully. 6832 // 6833 // Use "Send" method on the returned Request to send the API call to the service. 6834 // the "output" return value is not valid until after Send returns without error. 6835 // 6836 // See UpdateRuleMetadata for more information on using the UpdateRuleMetadata 6837 // API call, and error handling. 6838 // 6839 // This method is useful when you want to inject custom logic or configuration 6840 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 6841 // 6842 // 6843 // // Example sending a request using the UpdateRuleMetadataRequest method. 6844 // req, resp := client.UpdateRuleMetadataRequest(params) 6845 // 6846 // err := req.Send() 6847 // if err == nil { // resp is now filled 6848 // fmt.Println(resp) 6849 // } 6850 // 6851 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateRuleMetadata 6852 func (c *FraudDetector) UpdateRuleMetadataRequest(input *UpdateRuleMetadataInput) (req *request.Request, output *UpdateRuleMetadataOutput) { 6853 op := &request.Operation{ 6854 Name: opUpdateRuleMetadata, 6855 HTTPMethod: "POST", 6856 HTTPPath: "/", 6857 } 6858 6859 if input == nil { 6860 input = &UpdateRuleMetadataInput{} 6861 } 6862 6863 output = &UpdateRuleMetadataOutput{} 6864 req = c.newRequest(op, input, output) 6865 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 6866 return 6867 } 6868 6869 // UpdateRuleMetadata API operation for Amazon Fraud Detector. 6870 // 6871 // Updates a rule's metadata. The description attribute can be updated. 6872 // 6873 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6874 // with awserr.Error's Code and Message methods to get detailed information about 6875 // the error. 6876 // 6877 // See the AWS API reference guide for Amazon Fraud Detector's 6878 // API operation UpdateRuleMetadata for usage and error information. 6879 // 6880 // Returned Error Types: 6881 // * ValidationException 6882 // An exception indicating a specified value is not allowed. 6883 // 6884 // * ResourceNotFoundException 6885 // An exception indicating the specified resource was not found. 6886 // 6887 // * InternalServerException 6888 // An exception indicating an internal server error. 6889 // 6890 // * ThrottlingException 6891 // An exception indicating a throttling error. 6892 // 6893 // * AccessDeniedException 6894 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 6895 // This can occur if you submit a request, such as PutExternalModel, that specifies 6896 // a role that is not in your account. 6897 // 6898 // * ConflictException 6899 // An exception indicating there was a conflict during a delete operation. 6900 // 6901 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateRuleMetadata 6902 func (c *FraudDetector) UpdateRuleMetadata(input *UpdateRuleMetadataInput) (*UpdateRuleMetadataOutput, error) { 6903 req, out := c.UpdateRuleMetadataRequest(input) 6904 return out, req.Send() 6905 } 6906 6907 // UpdateRuleMetadataWithContext is the same as UpdateRuleMetadata with the addition of 6908 // the ability to pass a context and additional request options. 6909 // 6910 // See UpdateRuleMetadata for details on how to use this API operation. 6911 // 6912 // The context must be non-nil and will be used for request cancellation. If 6913 // the context is nil a panic will occur. In the future the SDK may create 6914 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6915 // for more information on using Contexts. 6916 func (c *FraudDetector) UpdateRuleMetadataWithContext(ctx aws.Context, input *UpdateRuleMetadataInput, opts ...request.Option) (*UpdateRuleMetadataOutput, error) { 6917 req, out := c.UpdateRuleMetadataRequest(input) 6918 req.SetContext(ctx) 6919 req.ApplyOptions(opts...) 6920 return out, req.Send() 6921 } 6922 6923 const opUpdateRuleVersion = "UpdateRuleVersion" 6924 6925 // UpdateRuleVersionRequest generates a "aws/request.Request" representing the 6926 // client's request for the UpdateRuleVersion operation. The "output" return 6927 // value will be populated with the request's response once the request completes 6928 // successfully. 6929 // 6930 // Use "Send" method on the returned Request to send the API call to the service. 6931 // the "output" return value is not valid until after Send returns without error. 6932 // 6933 // See UpdateRuleVersion for more information on using the UpdateRuleVersion 6934 // API call, and error handling. 6935 // 6936 // This method is useful when you want to inject custom logic or configuration 6937 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 6938 // 6939 // 6940 // // Example sending a request using the UpdateRuleVersionRequest method. 6941 // req, resp := client.UpdateRuleVersionRequest(params) 6942 // 6943 // err := req.Send() 6944 // if err == nil { // resp is now filled 6945 // fmt.Println(resp) 6946 // } 6947 // 6948 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateRuleVersion 6949 func (c *FraudDetector) UpdateRuleVersionRequest(input *UpdateRuleVersionInput) (req *request.Request, output *UpdateRuleVersionOutput) { 6950 op := &request.Operation{ 6951 Name: opUpdateRuleVersion, 6952 HTTPMethod: "POST", 6953 HTTPPath: "/", 6954 } 6955 6956 if input == nil { 6957 input = &UpdateRuleVersionInput{} 6958 } 6959 6960 output = &UpdateRuleVersionOutput{} 6961 req = c.newRequest(op, input, output) 6962 return 6963 } 6964 6965 // UpdateRuleVersion API operation for Amazon Fraud Detector. 6966 // 6967 // Updates a rule version resulting in a new rule version. Updates a rule version 6968 // resulting in a new rule version (version 1, 2, 3 ...). 6969 // 6970 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6971 // with awserr.Error's Code and Message methods to get detailed information about 6972 // the error. 6973 // 6974 // See the AWS API reference guide for Amazon Fraud Detector's 6975 // API operation UpdateRuleVersion for usage and error information. 6976 // 6977 // Returned Error Types: 6978 // * ValidationException 6979 // An exception indicating a specified value is not allowed. 6980 // 6981 // * ResourceNotFoundException 6982 // An exception indicating the specified resource was not found. 6983 // 6984 // * InternalServerException 6985 // An exception indicating an internal server error. 6986 // 6987 // * ThrottlingException 6988 // An exception indicating a throttling error. 6989 // 6990 // * AccessDeniedException 6991 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 6992 // This can occur if you submit a request, such as PutExternalModel, that specifies 6993 // a role that is not in your account. 6994 // 6995 // * ConflictException 6996 // An exception indicating there was a conflict during a delete operation. 6997 // 6998 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateRuleVersion 6999 func (c *FraudDetector) UpdateRuleVersion(input *UpdateRuleVersionInput) (*UpdateRuleVersionOutput, error) { 7000 req, out := c.UpdateRuleVersionRequest(input) 7001 return out, req.Send() 7002 } 7003 7004 // UpdateRuleVersionWithContext is the same as UpdateRuleVersion with the addition of 7005 // the ability to pass a context and additional request options. 7006 // 7007 // See UpdateRuleVersion for details on how to use this API operation. 7008 // 7009 // The context must be non-nil and will be used for request cancellation. If 7010 // the context is nil a panic will occur. In the future the SDK may create 7011 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 7012 // for more information on using Contexts. 7013 func (c *FraudDetector) UpdateRuleVersionWithContext(ctx aws.Context, input *UpdateRuleVersionInput, opts ...request.Option) (*UpdateRuleVersionOutput, error) { 7014 req, out := c.UpdateRuleVersionRequest(input) 7015 req.SetContext(ctx) 7016 req.ApplyOptions(opts...) 7017 return out, req.Send() 7018 } 7019 7020 const opUpdateVariable = "UpdateVariable" 7021 7022 // UpdateVariableRequest generates a "aws/request.Request" representing the 7023 // client's request for the UpdateVariable operation. The "output" return 7024 // value will be populated with the request's response once the request completes 7025 // successfully. 7026 // 7027 // Use "Send" method on the returned Request to send the API call to the service. 7028 // the "output" return value is not valid until after Send returns without error. 7029 // 7030 // See UpdateVariable for more information on using the UpdateVariable 7031 // API call, and error handling. 7032 // 7033 // This method is useful when you want to inject custom logic or configuration 7034 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 7035 // 7036 // 7037 // // Example sending a request using the UpdateVariableRequest method. 7038 // req, resp := client.UpdateVariableRequest(params) 7039 // 7040 // err := req.Send() 7041 // if err == nil { // resp is now filled 7042 // fmt.Println(resp) 7043 // } 7044 // 7045 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateVariable 7046 func (c *FraudDetector) UpdateVariableRequest(input *UpdateVariableInput) (req *request.Request, output *UpdateVariableOutput) { 7047 op := &request.Operation{ 7048 Name: opUpdateVariable, 7049 HTTPMethod: "POST", 7050 HTTPPath: "/", 7051 } 7052 7053 if input == nil { 7054 input = &UpdateVariableInput{} 7055 } 7056 7057 output = &UpdateVariableOutput{} 7058 req = c.newRequest(op, input, output) 7059 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 7060 return 7061 } 7062 7063 // UpdateVariable API operation for Amazon Fraud Detector. 7064 // 7065 // Updates a variable. 7066 // 7067 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 7068 // with awserr.Error's Code and Message methods to get detailed information about 7069 // the error. 7070 // 7071 // See the AWS API reference guide for Amazon Fraud Detector's 7072 // API operation UpdateVariable for usage and error information. 7073 // 7074 // Returned Error Types: 7075 // * ValidationException 7076 // An exception indicating a specified value is not allowed. 7077 // 7078 // * ResourceNotFoundException 7079 // An exception indicating the specified resource was not found. 7080 // 7081 // * InternalServerException 7082 // An exception indicating an internal server error. 7083 // 7084 // * ThrottlingException 7085 // An exception indicating a throttling error. 7086 // 7087 // * AccessDeniedException 7088 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 7089 // This can occur if you submit a request, such as PutExternalModel, that specifies 7090 // a role that is not in your account. 7091 // 7092 // * ConflictException 7093 // An exception indicating there was a conflict during a delete operation. 7094 // 7095 // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateVariable 7096 func (c *FraudDetector) UpdateVariable(input *UpdateVariableInput) (*UpdateVariableOutput, error) { 7097 req, out := c.UpdateVariableRequest(input) 7098 return out, req.Send() 7099 } 7100 7101 // UpdateVariableWithContext is the same as UpdateVariable with the addition of 7102 // the ability to pass a context and additional request options. 7103 // 7104 // See UpdateVariable for details on how to use this API operation. 7105 // 7106 // The context must be non-nil and will be used for request cancellation. If 7107 // the context is nil a panic will occur. In the future the SDK may create 7108 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 7109 // for more information on using Contexts. 7110 func (c *FraudDetector) UpdateVariableWithContext(ctx aws.Context, input *UpdateVariableInput, opts ...request.Option) (*UpdateVariableOutput, error) { 7111 req, out := c.UpdateVariableRequest(input) 7112 req.SetContext(ctx) 7113 req.ApplyOptions(opts...) 7114 return out, req.Send() 7115 } 7116 7117 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 7118 // This can occur if you submit a request, such as PutExternalModel, that specifies 7119 // a role that is not in your account. 7120 type AccessDeniedException struct { 7121 _ struct{} `type:"structure"` 7122 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7123 7124 Message_ *string `locationName:"message" type:"string"` 7125 } 7126 7127 // String returns the string representation. 7128 // 7129 // API parameter values that are decorated as "sensitive" in the API will not 7130 // be included in the string output. The member name will be present, but the 7131 // value will be replaced with "sensitive". 7132 func (s AccessDeniedException) String() string { 7133 return awsutil.Prettify(s) 7134 } 7135 7136 // GoString returns the string representation. 7137 // 7138 // API parameter values that are decorated as "sensitive" in the API will not 7139 // be included in the string output. The member name will be present, but the 7140 // value will be replaced with "sensitive". 7141 func (s AccessDeniedException) GoString() string { 7142 return s.String() 7143 } 7144 7145 func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { 7146 return &AccessDeniedException{ 7147 RespMetadata: v, 7148 } 7149 } 7150 7151 // Code returns the exception type name. 7152 func (s *AccessDeniedException) Code() string { 7153 return "AccessDeniedException" 7154 } 7155 7156 // Message returns the exception's message. 7157 func (s *AccessDeniedException) Message() string { 7158 if s.Message_ != nil { 7159 return *s.Message_ 7160 } 7161 return "" 7162 } 7163 7164 // OrigErr always returns nil, satisfies awserr.Error interface. 7165 func (s *AccessDeniedException) OrigErr() error { 7166 return nil 7167 } 7168 7169 func (s *AccessDeniedException) Error() string { 7170 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7171 } 7172 7173 // Status code returns the HTTP status code for the request's response error. 7174 func (s *AccessDeniedException) StatusCode() int { 7175 return s.RespMetadata.StatusCode 7176 } 7177 7178 // RequestID returns the service's response RequestID for request. 7179 func (s *AccessDeniedException) RequestID() string { 7180 return s.RespMetadata.RequestID 7181 } 7182 7183 // Provides the error of the batch create variable API. 7184 type BatchCreateVariableError struct { 7185 _ struct{} `type:"structure"` 7186 7187 // The error code. 7188 Code *int64 `locationName:"code" type:"integer"` 7189 7190 // The error message. 7191 Message *string `locationName:"message" type:"string"` 7192 7193 // The name. 7194 Name *string `locationName:"name" type:"string"` 7195 } 7196 7197 // String returns the string representation. 7198 // 7199 // API parameter values that are decorated as "sensitive" in the API will not 7200 // be included in the string output. The member name will be present, but the 7201 // value will be replaced with "sensitive". 7202 func (s BatchCreateVariableError) String() string { 7203 return awsutil.Prettify(s) 7204 } 7205 7206 // GoString returns the string representation. 7207 // 7208 // API parameter values that are decorated as "sensitive" in the API will not 7209 // be included in the string output. The member name will be present, but the 7210 // value will be replaced with "sensitive". 7211 func (s BatchCreateVariableError) GoString() string { 7212 return s.String() 7213 } 7214 7215 // SetCode sets the Code field's value. 7216 func (s *BatchCreateVariableError) SetCode(v int64) *BatchCreateVariableError { 7217 s.Code = &v 7218 return s 7219 } 7220 7221 // SetMessage sets the Message field's value. 7222 func (s *BatchCreateVariableError) SetMessage(v string) *BatchCreateVariableError { 7223 s.Message = &v 7224 return s 7225 } 7226 7227 // SetName sets the Name field's value. 7228 func (s *BatchCreateVariableError) SetName(v string) *BatchCreateVariableError { 7229 s.Name = &v 7230 return s 7231 } 7232 7233 type BatchCreateVariableInput struct { 7234 _ struct{} `type:"structure"` 7235 7236 // A collection of key and value pairs. 7237 Tags []*Tag `locationName:"tags" type:"list"` 7238 7239 // The list of variables for the batch create variable request. 7240 // 7241 // VariableEntries is a required field 7242 VariableEntries []*VariableEntry `locationName:"variableEntries" min:"1" type:"list" required:"true"` 7243 } 7244 7245 // String returns the string representation. 7246 // 7247 // API parameter values that are decorated as "sensitive" in the API will not 7248 // be included in the string output. The member name will be present, but the 7249 // value will be replaced with "sensitive". 7250 func (s BatchCreateVariableInput) String() string { 7251 return awsutil.Prettify(s) 7252 } 7253 7254 // GoString returns the string representation. 7255 // 7256 // API parameter values that are decorated as "sensitive" in the API will not 7257 // be included in the string output. The member name will be present, but the 7258 // value will be replaced with "sensitive". 7259 func (s BatchCreateVariableInput) GoString() string { 7260 return s.String() 7261 } 7262 7263 // Validate inspects the fields of the type to determine if they are valid. 7264 func (s *BatchCreateVariableInput) Validate() error { 7265 invalidParams := request.ErrInvalidParams{Context: "BatchCreateVariableInput"} 7266 if s.VariableEntries == nil { 7267 invalidParams.Add(request.NewErrParamRequired("VariableEntries")) 7268 } 7269 if s.VariableEntries != nil && len(s.VariableEntries) < 1 { 7270 invalidParams.Add(request.NewErrParamMinLen("VariableEntries", 1)) 7271 } 7272 if s.Tags != nil { 7273 for i, v := range s.Tags { 7274 if v == nil { 7275 continue 7276 } 7277 if err := v.Validate(); err != nil { 7278 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 7279 } 7280 } 7281 } 7282 7283 if invalidParams.Len() > 0 { 7284 return invalidParams 7285 } 7286 return nil 7287 } 7288 7289 // SetTags sets the Tags field's value. 7290 func (s *BatchCreateVariableInput) SetTags(v []*Tag) *BatchCreateVariableInput { 7291 s.Tags = v 7292 return s 7293 } 7294 7295 // SetVariableEntries sets the VariableEntries field's value. 7296 func (s *BatchCreateVariableInput) SetVariableEntries(v []*VariableEntry) *BatchCreateVariableInput { 7297 s.VariableEntries = v 7298 return s 7299 } 7300 7301 type BatchCreateVariableOutput struct { 7302 _ struct{} `type:"structure"` 7303 7304 // Provides the errors for the BatchCreateVariable request. 7305 Errors []*BatchCreateVariableError `locationName:"errors" type:"list"` 7306 } 7307 7308 // String returns the string representation. 7309 // 7310 // API parameter values that are decorated as "sensitive" in the API will not 7311 // be included in the string output. The member name will be present, but the 7312 // value will be replaced with "sensitive". 7313 func (s BatchCreateVariableOutput) String() string { 7314 return awsutil.Prettify(s) 7315 } 7316 7317 // GoString returns the string representation. 7318 // 7319 // API parameter values that are decorated as "sensitive" in the API will not 7320 // be included in the string output. The member name will be present, but the 7321 // value will be replaced with "sensitive". 7322 func (s BatchCreateVariableOutput) GoString() string { 7323 return s.String() 7324 } 7325 7326 // SetErrors sets the Errors field's value. 7327 func (s *BatchCreateVariableOutput) SetErrors(v []*BatchCreateVariableError) *BatchCreateVariableOutput { 7328 s.Errors = v 7329 return s 7330 } 7331 7332 // Provides the error of the batch get variable API. 7333 type BatchGetVariableError struct { 7334 _ struct{} `type:"structure"` 7335 7336 // The error code. 7337 Code *int64 `locationName:"code" type:"integer"` 7338 7339 // The error message. 7340 Message *string `locationName:"message" type:"string"` 7341 7342 // The error name. 7343 Name *string `locationName:"name" type:"string"` 7344 } 7345 7346 // String returns the string representation. 7347 // 7348 // API parameter values that are decorated as "sensitive" in the API will not 7349 // be included in the string output. The member name will be present, but the 7350 // value will be replaced with "sensitive". 7351 func (s BatchGetVariableError) String() string { 7352 return awsutil.Prettify(s) 7353 } 7354 7355 // GoString returns the string representation. 7356 // 7357 // API parameter values that are decorated as "sensitive" in the API will not 7358 // be included in the string output. The member name will be present, but the 7359 // value will be replaced with "sensitive". 7360 func (s BatchGetVariableError) GoString() string { 7361 return s.String() 7362 } 7363 7364 // SetCode sets the Code field's value. 7365 func (s *BatchGetVariableError) SetCode(v int64) *BatchGetVariableError { 7366 s.Code = &v 7367 return s 7368 } 7369 7370 // SetMessage sets the Message field's value. 7371 func (s *BatchGetVariableError) SetMessage(v string) *BatchGetVariableError { 7372 s.Message = &v 7373 return s 7374 } 7375 7376 // SetName sets the Name field's value. 7377 func (s *BatchGetVariableError) SetName(v string) *BatchGetVariableError { 7378 s.Name = &v 7379 return s 7380 } 7381 7382 type BatchGetVariableInput struct { 7383 _ struct{} `type:"structure"` 7384 7385 // The list of variable names to get. 7386 // 7387 // Names is a required field 7388 Names []*string `locationName:"names" min:"1" type:"list" required:"true"` 7389 } 7390 7391 // String returns the string representation. 7392 // 7393 // API parameter values that are decorated as "sensitive" in the API will not 7394 // be included in the string output. The member name will be present, but the 7395 // value will be replaced with "sensitive". 7396 func (s BatchGetVariableInput) String() string { 7397 return awsutil.Prettify(s) 7398 } 7399 7400 // GoString returns the string representation. 7401 // 7402 // API parameter values that are decorated as "sensitive" in the API will not 7403 // be included in the string output. The member name will be present, but the 7404 // value will be replaced with "sensitive". 7405 func (s BatchGetVariableInput) GoString() string { 7406 return s.String() 7407 } 7408 7409 // Validate inspects the fields of the type to determine if they are valid. 7410 func (s *BatchGetVariableInput) Validate() error { 7411 invalidParams := request.ErrInvalidParams{Context: "BatchGetVariableInput"} 7412 if s.Names == nil { 7413 invalidParams.Add(request.NewErrParamRequired("Names")) 7414 } 7415 if s.Names != nil && len(s.Names) < 1 { 7416 invalidParams.Add(request.NewErrParamMinLen("Names", 1)) 7417 } 7418 7419 if invalidParams.Len() > 0 { 7420 return invalidParams 7421 } 7422 return nil 7423 } 7424 7425 // SetNames sets the Names field's value. 7426 func (s *BatchGetVariableInput) SetNames(v []*string) *BatchGetVariableInput { 7427 s.Names = v 7428 return s 7429 } 7430 7431 type BatchGetVariableOutput struct { 7432 _ struct{} `type:"structure"` 7433 7434 // The errors from the request. 7435 Errors []*BatchGetVariableError `locationName:"errors" type:"list"` 7436 7437 // The returned variables. 7438 Variables []*Variable `locationName:"variables" type:"list"` 7439 } 7440 7441 // String returns the string representation. 7442 // 7443 // API parameter values that are decorated as "sensitive" in the API will not 7444 // be included in the string output. The member name will be present, but the 7445 // value will be replaced with "sensitive". 7446 func (s BatchGetVariableOutput) String() string { 7447 return awsutil.Prettify(s) 7448 } 7449 7450 // GoString returns the string representation. 7451 // 7452 // API parameter values that are decorated as "sensitive" in the API will not 7453 // be included in the string output. The member name will be present, but the 7454 // value will be replaced with "sensitive". 7455 func (s BatchGetVariableOutput) GoString() string { 7456 return s.String() 7457 } 7458 7459 // SetErrors sets the Errors field's value. 7460 func (s *BatchGetVariableOutput) SetErrors(v []*BatchGetVariableError) *BatchGetVariableOutput { 7461 s.Errors = v 7462 return s 7463 } 7464 7465 // SetVariables sets the Variables field's value. 7466 func (s *BatchGetVariableOutput) SetVariables(v []*Variable) *BatchGetVariableOutput { 7467 s.Variables = v 7468 return s 7469 } 7470 7471 // The batch import job details. 7472 type BatchImport struct { 7473 _ struct{} `type:"structure"` 7474 7475 // The ARN of the batch import job. 7476 Arn *string `locationName:"arn" min:"1" type:"string"` 7477 7478 // Timestamp of when batch import job completed. 7479 CompletionTime *string `locationName:"completionTime" min:"11" type:"string"` 7480 7481 // The name of the event type. 7482 EventTypeName *string `locationName:"eventTypeName" min:"1" type:"string"` 7483 7484 // The number of records that failed to import. 7485 FailedRecordsCount *int64 `locationName:"failedRecordsCount" type:"integer"` 7486 7487 // The reason batch import job failed. 7488 FailureReason *string `locationName:"failureReason" type:"string"` 7489 7490 // The ARN of the IAM role to use for this job request. 7491 IamRoleArn *string `locationName:"iamRoleArn" min:"1" type:"string"` 7492 7493 // The Amazon S3 location of your data file for batch import. 7494 InputPath *string `locationName:"inputPath" min:"1" type:"string"` 7495 7496 // The ID of the batch import job. 7497 JobId *string `locationName:"jobId" min:"1" type:"string"` 7498 7499 // The Amazon S3 location of your output file. 7500 OutputPath *string `locationName:"outputPath" min:"1" type:"string"` 7501 7502 // The number of records processed by batch import job. 7503 ProcessedRecordsCount *int64 `locationName:"processedRecordsCount" type:"integer"` 7504 7505 // Timestamp of when the batch import job started. 7506 StartTime *string `locationName:"startTime" min:"11" type:"string"` 7507 7508 // The status of the batch import job. 7509 Status *string `locationName:"status" type:"string" enum:"AsyncJobStatus"` 7510 7511 // The total number of records in the batch import job. 7512 TotalRecordsCount *int64 `locationName:"totalRecordsCount" type:"integer"` 7513 } 7514 7515 // String returns the string representation. 7516 // 7517 // API parameter values that are decorated as "sensitive" in the API will not 7518 // be included in the string output. The member name will be present, but the 7519 // value will be replaced with "sensitive". 7520 func (s BatchImport) String() string { 7521 return awsutil.Prettify(s) 7522 } 7523 7524 // GoString returns the string representation. 7525 // 7526 // API parameter values that are decorated as "sensitive" in the API will not 7527 // be included in the string output. The member name will be present, but the 7528 // value will be replaced with "sensitive". 7529 func (s BatchImport) GoString() string { 7530 return s.String() 7531 } 7532 7533 // SetArn sets the Arn field's value. 7534 func (s *BatchImport) SetArn(v string) *BatchImport { 7535 s.Arn = &v 7536 return s 7537 } 7538 7539 // SetCompletionTime sets the CompletionTime field's value. 7540 func (s *BatchImport) SetCompletionTime(v string) *BatchImport { 7541 s.CompletionTime = &v 7542 return s 7543 } 7544 7545 // SetEventTypeName sets the EventTypeName field's value. 7546 func (s *BatchImport) SetEventTypeName(v string) *BatchImport { 7547 s.EventTypeName = &v 7548 return s 7549 } 7550 7551 // SetFailedRecordsCount sets the FailedRecordsCount field's value. 7552 func (s *BatchImport) SetFailedRecordsCount(v int64) *BatchImport { 7553 s.FailedRecordsCount = &v 7554 return s 7555 } 7556 7557 // SetFailureReason sets the FailureReason field's value. 7558 func (s *BatchImport) SetFailureReason(v string) *BatchImport { 7559 s.FailureReason = &v 7560 return s 7561 } 7562 7563 // SetIamRoleArn sets the IamRoleArn field's value. 7564 func (s *BatchImport) SetIamRoleArn(v string) *BatchImport { 7565 s.IamRoleArn = &v 7566 return s 7567 } 7568 7569 // SetInputPath sets the InputPath field's value. 7570 func (s *BatchImport) SetInputPath(v string) *BatchImport { 7571 s.InputPath = &v 7572 return s 7573 } 7574 7575 // SetJobId sets the JobId field's value. 7576 func (s *BatchImport) SetJobId(v string) *BatchImport { 7577 s.JobId = &v 7578 return s 7579 } 7580 7581 // SetOutputPath sets the OutputPath field's value. 7582 func (s *BatchImport) SetOutputPath(v string) *BatchImport { 7583 s.OutputPath = &v 7584 return s 7585 } 7586 7587 // SetProcessedRecordsCount sets the ProcessedRecordsCount field's value. 7588 func (s *BatchImport) SetProcessedRecordsCount(v int64) *BatchImport { 7589 s.ProcessedRecordsCount = &v 7590 return s 7591 } 7592 7593 // SetStartTime sets the StartTime field's value. 7594 func (s *BatchImport) SetStartTime(v string) *BatchImport { 7595 s.StartTime = &v 7596 return s 7597 } 7598 7599 // SetStatus sets the Status field's value. 7600 func (s *BatchImport) SetStatus(v string) *BatchImport { 7601 s.Status = &v 7602 return s 7603 } 7604 7605 // SetTotalRecordsCount sets the TotalRecordsCount field's value. 7606 func (s *BatchImport) SetTotalRecordsCount(v int64) *BatchImport { 7607 s.TotalRecordsCount = &v 7608 return s 7609 } 7610 7611 // The batch prediction details. 7612 type BatchPrediction struct { 7613 _ struct{} `type:"structure"` 7614 7615 // The ARN of batch prediction job. 7616 Arn *string `locationName:"arn" min:"1" type:"string"` 7617 7618 // Timestamp of when the batch prediction job completed. 7619 CompletionTime *string `locationName:"completionTime" min:"11" type:"string"` 7620 7621 // The name of the detector. 7622 DetectorName *string `locationName:"detectorName" min:"1" type:"string"` 7623 7624 // The detector version. 7625 DetectorVersion *string `locationName:"detectorVersion" min:"3" type:"string"` 7626 7627 // The name of the event type. 7628 EventTypeName *string `locationName:"eventTypeName" min:"1" type:"string"` 7629 7630 // The reason a batch prediction job failed. 7631 FailureReason *string `locationName:"failureReason" type:"string"` 7632 7633 // The ARN of the IAM role to use for this job request. 7634 IamRoleArn *string `locationName:"iamRoleArn" min:"1" type:"string"` 7635 7636 // The Amazon S3 location of your training file. 7637 InputPath *string `locationName:"inputPath" min:"1" type:"string"` 7638 7639 // The job ID for the batch prediction. 7640 JobId *string `locationName:"jobId" min:"1" type:"string"` 7641 7642 // Timestamp of most recent heartbeat indicating the batch prediction job was 7643 // making progress. 7644 LastHeartbeatTime *string `locationName:"lastHeartbeatTime" min:"11" type:"string"` 7645 7646 // The Amazon S3 location of your output file. 7647 OutputPath *string `locationName:"outputPath" min:"1" type:"string"` 7648 7649 // The number of records processed by the batch prediction job. 7650 ProcessedRecordsCount *int64 `locationName:"processedRecordsCount" type:"integer"` 7651 7652 // Timestamp of when the batch prediction job started. 7653 StartTime *string `locationName:"startTime" min:"11" type:"string"` 7654 7655 // The batch prediction status. 7656 Status *string `locationName:"status" type:"string" enum:"AsyncJobStatus"` 7657 7658 // The total number of records in the batch prediction job. 7659 TotalRecordsCount *int64 `locationName:"totalRecordsCount" type:"integer"` 7660 } 7661 7662 // String returns the string representation. 7663 // 7664 // API parameter values that are decorated as "sensitive" in the API will not 7665 // be included in the string output. The member name will be present, but the 7666 // value will be replaced with "sensitive". 7667 func (s BatchPrediction) String() string { 7668 return awsutil.Prettify(s) 7669 } 7670 7671 // GoString returns the string representation. 7672 // 7673 // API parameter values that are decorated as "sensitive" in the API will not 7674 // be included in the string output. The member name will be present, but the 7675 // value will be replaced with "sensitive". 7676 func (s BatchPrediction) GoString() string { 7677 return s.String() 7678 } 7679 7680 // SetArn sets the Arn field's value. 7681 func (s *BatchPrediction) SetArn(v string) *BatchPrediction { 7682 s.Arn = &v 7683 return s 7684 } 7685 7686 // SetCompletionTime sets the CompletionTime field's value. 7687 func (s *BatchPrediction) SetCompletionTime(v string) *BatchPrediction { 7688 s.CompletionTime = &v 7689 return s 7690 } 7691 7692 // SetDetectorName sets the DetectorName field's value. 7693 func (s *BatchPrediction) SetDetectorName(v string) *BatchPrediction { 7694 s.DetectorName = &v 7695 return s 7696 } 7697 7698 // SetDetectorVersion sets the DetectorVersion field's value. 7699 func (s *BatchPrediction) SetDetectorVersion(v string) *BatchPrediction { 7700 s.DetectorVersion = &v 7701 return s 7702 } 7703 7704 // SetEventTypeName sets the EventTypeName field's value. 7705 func (s *BatchPrediction) SetEventTypeName(v string) *BatchPrediction { 7706 s.EventTypeName = &v 7707 return s 7708 } 7709 7710 // SetFailureReason sets the FailureReason field's value. 7711 func (s *BatchPrediction) SetFailureReason(v string) *BatchPrediction { 7712 s.FailureReason = &v 7713 return s 7714 } 7715 7716 // SetIamRoleArn sets the IamRoleArn field's value. 7717 func (s *BatchPrediction) SetIamRoleArn(v string) *BatchPrediction { 7718 s.IamRoleArn = &v 7719 return s 7720 } 7721 7722 // SetInputPath sets the InputPath field's value. 7723 func (s *BatchPrediction) SetInputPath(v string) *BatchPrediction { 7724 s.InputPath = &v 7725 return s 7726 } 7727 7728 // SetJobId sets the JobId field's value. 7729 func (s *BatchPrediction) SetJobId(v string) *BatchPrediction { 7730 s.JobId = &v 7731 return s 7732 } 7733 7734 // SetLastHeartbeatTime sets the LastHeartbeatTime field's value. 7735 func (s *BatchPrediction) SetLastHeartbeatTime(v string) *BatchPrediction { 7736 s.LastHeartbeatTime = &v 7737 return s 7738 } 7739 7740 // SetOutputPath sets the OutputPath field's value. 7741 func (s *BatchPrediction) SetOutputPath(v string) *BatchPrediction { 7742 s.OutputPath = &v 7743 return s 7744 } 7745 7746 // SetProcessedRecordsCount sets the ProcessedRecordsCount field's value. 7747 func (s *BatchPrediction) SetProcessedRecordsCount(v int64) *BatchPrediction { 7748 s.ProcessedRecordsCount = &v 7749 return s 7750 } 7751 7752 // SetStartTime sets the StartTime field's value. 7753 func (s *BatchPrediction) SetStartTime(v string) *BatchPrediction { 7754 s.StartTime = &v 7755 return s 7756 } 7757 7758 // SetStatus sets the Status field's value. 7759 func (s *BatchPrediction) SetStatus(v string) *BatchPrediction { 7760 s.Status = &v 7761 return s 7762 } 7763 7764 // SetTotalRecordsCount sets the TotalRecordsCount field's value. 7765 func (s *BatchPrediction) SetTotalRecordsCount(v int64) *BatchPrediction { 7766 s.TotalRecordsCount = &v 7767 return s 7768 } 7769 7770 type CancelBatchImportJobInput struct { 7771 _ struct{} `type:"structure"` 7772 7773 // The ID of an in-progress batch import job to cancel. 7774 // 7775 // Amazon Fraud Detector will throw an error if the batch import job is in FAILED, 7776 // CANCELED, or COMPLETED state. 7777 // 7778 // JobId is a required field 7779 JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"` 7780 } 7781 7782 // String returns the string representation. 7783 // 7784 // API parameter values that are decorated as "sensitive" in the API will not 7785 // be included in the string output. The member name will be present, but the 7786 // value will be replaced with "sensitive". 7787 func (s CancelBatchImportJobInput) String() string { 7788 return awsutil.Prettify(s) 7789 } 7790 7791 // GoString returns the string representation. 7792 // 7793 // API parameter values that are decorated as "sensitive" in the API will not 7794 // be included in the string output. The member name will be present, but the 7795 // value will be replaced with "sensitive". 7796 func (s CancelBatchImportJobInput) GoString() string { 7797 return s.String() 7798 } 7799 7800 // Validate inspects the fields of the type to determine if they are valid. 7801 func (s *CancelBatchImportJobInput) Validate() error { 7802 invalidParams := request.ErrInvalidParams{Context: "CancelBatchImportJobInput"} 7803 if s.JobId == nil { 7804 invalidParams.Add(request.NewErrParamRequired("JobId")) 7805 } 7806 if s.JobId != nil && len(*s.JobId) < 1 { 7807 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 7808 } 7809 7810 if invalidParams.Len() > 0 { 7811 return invalidParams 7812 } 7813 return nil 7814 } 7815 7816 // SetJobId sets the JobId field's value. 7817 func (s *CancelBatchImportJobInput) SetJobId(v string) *CancelBatchImportJobInput { 7818 s.JobId = &v 7819 return s 7820 } 7821 7822 type CancelBatchImportJobOutput struct { 7823 _ struct{} `type:"structure"` 7824 } 7825 7826 // String returns the string representation. 7827 // 7828 // API parameter values that are decorated as "sensitive" in the API will not 7829 // be included in the string output. The member name will be present, but the 7830 // value will be replaced with "sensitive". 7831 func (s CancelBatchImportJobOutput) String() string { 7832 return awsutil.Prettify(s) 7833 } 7834 7835 // GoString returns the string representation. 7836 // 7837 // API parameter values that are decorated as "sensitive" in the API will not 7838 // be included in the string output. The member name will be present, but the 7839 // value will be replaced with "sensitive". 7840 func (s CancelBatchImportJobOutput) GoString() string { 7841 return s.String() 7842 } 7843 7844 type CancelBatchPredictionJobInput struct { 7845 _ struct{} `type:"structure"` 7846 7847 // The ID of the batch prediction job to cancel. 7848 // 7849 // JobId is a required field 7850 JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"` 7851 } 7852 7853 // String returns the string representation. 7854 // 7855 // API parameter values that are decorated as "sensitive" in the API will not 7856 // be included in the string output. The member name will be present, but the 7857 // value will be replaced with "sensitive". 7858 func (s CancelBatchPredictionJobInput) String() string { 7859 return awsutil.Prettify(s) 7860 } 7861 7862 // GoString returns the string representation. 7863 // 7864 // API parameter values that are decorated as "sensitive" in the API will not 7865 // be included in the string output. The member name will be present, but the 7866 // value will be replaced with "sensitive". 7867 func (s CancelBatchPredictionJobInput) GoString() string { 7868 return s.String() 7869 } 7870 7871 // Validate inspects the fields of the type to determine if they are valid. 7872 func (s *CancelBatchPredictionJobInput) Validate() error { 7873 invalidParams := request.ErrInvalidParams{Context: "CancelBatchPredictionJobInput"} 7874 if s.JobId == nil { 7875 invalidParams.Add(request.NewErrParamRequired("JobId")) 7876 } 7877 if s.JobId != nil && len(*s.JobId) < 1 { 7878 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 7879 } 7880 7881 if invalidParams.Len() > 0 { 7882 return invalidParams 7883 } 7884 return nil 7885 } 7886 7887 // SetJobId sets the JobId field's value. 7888 func (s *CancelBatchPredictionJobInput) SetJobId(v string) *CancelBatchPredictionJobInput { 7889 s.JobId = &v 7890 return s 7891 } 7892 7893 type CancelBatchPredictionJobOutput struct { 7894 _ struct{} `type:"structure"` 7895 } 7896 7897 // String returns the string representation. 7898 // 7899 // API parameter values that are decorated as "sensitive" in the API will not 7900 // be included in the string output. The member name will be present, but the 7901 // value will be replaced with "sensitive". 7902 func (s CancelBatchPredictionJobOutput) String() string { 7903 return awsutil.Prettify(s) 7904 } 7905 7906 // GoString returns the string representation. 7907 // 7908 // API parameter values that are decorated as "sensitive" in the API will not 7909 // be included in the string output. The member name will be present, but the 7910 // value will be replaced with "sensitive". 7911 func (s CancelBatchPredictionJobOutput) GoString() string { 7912 return s.String() 7913 } 7914 7915 // An exception indicating there was a conflict during a delete operation. 7916 type ConflictException struct { 7917 _ struct{} `type:"structure"` 7918 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7919 7920 Message_ *string `locationName:"message" type:"string"` 7921 } 7922 7923 // String returns the string representation. 7924 // 7925 // API parameter values that are decorated as "sensitive" in the API will not 7926 // be included in the string output. The member name will be present, but the 7927 // value will be replaced with "sensitive". 7928 func (s ConflictException) String() string { 7929 return awsutil.Prettify(s) 7930 } 7931 7932 // GoString returns the string representation. 7933 // 7934 // API parameter values that are decorated as "sensitive" in the API will not 7935 // be included in the string output. The member name will be present, but the 7936 // value will be replaced with "sensitive". 7937 func (s ConflictException) GoString() string { 7938 return s.String() 7939 } 7940 7941 func newErrorConflictException(v protocol.ResponseMetadata) error { 7942 return &ConflictException{ 7943 RespMetadata: v, 7944 } 7945 } 7946 7947 // Code returns the exception type name. 7948 func (s *ConflictException) Code() string { 7949 return "ConflictException" 7950 } 7951 7952 // Message returns the exception's message. 7953 func (s *ConflictException) Message() string { 7954 if s.Message_ != nil { 7955 return *s.Message_ 7956 } 7957 return "" 7958 } 7959 7960 // OrigErr always returns nil, satisfies awserr.Error interface. 7961 func (s *ConflictException) OrigErr() error { 7962 return nil 7963 } 7964 7965 func (s *ConflictException) Error() string { 7966 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7967 } 7968 7969 // Status code returns the HTTP status code for the request's response error. 7970 func (s *ConflictException) StatusCode() int { 7971 return s.RespMetadata.StatusCode 7972 } 7973 7974 // RequestID returns the service's response RequestID for request. 7975 func (s *ConflictException) RequestID() string { 7976 return s.RespMetadata.RequestID 7977 } 7978 7979 type CreateBatchImportJobInput struct { 7980 _ struct{} `type:"structure"` 7981 7982 // The name of the event type. 7983 // 7984 // EventTypeName is a required field 7985 EventTypeName *string `locationName:"eventTypeName" min:"1" type:"string" required:"true"` 7986 7987 // The ARN of the IAM role created for Amazon S3 bucket that holds your data 7988 // file. The IAM role must have read and write permissions to both input and 7989 // output S3 buckets. 7990 // 7991 // IamRoleArn is a required field 7992 IamRoleArn *string `locationName:"iamRoleArn" min:"1" type:"string" required:"true"` 7993 7994 // The URI that points to the Amazon S3 location of your data file. 7995 // 7996 // InputPath is a required field 7997 InputPath *string `locationName:"inputPath" min:"1" type:"string" required:"true"` 7998 7999 // The ID of the batch import job. The ID cannot be of a past job, unless the 8000 // job exists in CREATE_FAILED state. 8001 // 8002 // JobId is a required field 8003 JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"` 8004 8005 // The URI that points to the Amazon S3 location for storing your results. 8006 // 8007 // OutputPath is a required field 8008 OutputPath *string `locationName:"outputPath" min:"1" type:"string" required:"true"` 8009 8010 // A collection of key-value pairs associated with this request. 8011 Tags []*Tag `locationName:"tags" type:"list"` 8012 } 8013 8014 // String returns the string representation. 8015 // 8016 // API parameter values that are decorated as "sensitive" in the API will not 8017 // be included in the string output. The member name will be present, but the 8018 // value will be replaced with "sensitive". 8019 func (s CreateBatchImportJobInput) String() string { 8020 return awsutil.Prettify(s) 8021 } 8022 8023 // GoString returns the string representation. 8024 // 8025 // API parameter values that are decorated as "sensitive" in the API will not 8026 // be included in the string output. The member name will be present, but the 8027 // value will be replaced with "sensitive". 8028 func (s CreateBatchImportJobInput) GoString() string { 8029 return s.String() 8030 } 8031 8032 // Validate inspects the fields of the type to determine if they are valid. 8033 func (s *CreateBatchImportJobInput) Validate() error { 8034 invalidParams := request.ErrInvalidParams{Context: "CreateBatchImportJobInput"} 8035 if s.EventTypeName == nil { 8036 invalidParams.Add(request.NewErrParamRequired("EventTypeName")) 8037 } 8038 if s.EventTypeName != nil && len(*s.EventTypeName) < 1 { 8039 invalidParams.Add(request.NewErrParamMinLen("EventTypeName", 1)) 8040 } 8041 if s.IamRoleArn == nil { 8042 invalidParams.Add(request.NewErrParamRequired("IamRoleArn")) 8043 } 8044 if s.IamRoleArn != nil && len(*s.IamRoleArn) < 1 { 8045 invalidParams.Add(request.NewErrParamMinLen("IamRoleArn", 1)) 8046 } 8047 if s.InputPath == nil { 8048 invalidParams.Add(request.NewErrParamRequired("InputPath")) 8049 } 8050 if s.InputPath != nil && len(*s.InputPath) < 1 { 8051 invalidParams.Add(request.NewErrParamMinLen("InputPath", 1)) 8052 } 8053 if s.JobId == nil { 8054 invalidParams.Add(request.NewErrParamRequired("JobId")) 8055 } 8056 if s.JobId != nil && len(*s.JobId) < 1 { 8057 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 8058 } 8059 if s.OutputPath == nil { 8060 invalidParams.Add(request.NewErrParamRequired("OutputPath")) 8061 } 8062 if s.OutputPath != nil && len(*s.OutputPath) < 1 { 8063 invalidParams.Add(request.NewErrParamMinLen("OutputPath", 1)) 8064 } 8065 if s.Tags != nil { 8066 for i, v := range s.Tags { 8067 if v == nil { 8068 continue 8069 } 8070 if err := v.Validate(); err != nil { 8071 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 8072 } 8073 } 8074 } 8075 8076 if invalidParams.Len() > 0 { 8077 return invalidParams 8078 } 8079 return nil 8080 } 8081 8082 // SetEventTypeName sets the EventTypeName field's value. 8083 func (s *CreateBatchImportJobInput) SetEventTypeName(v string) *CreateBatchImportJobInput { 8084 s.EventTypeName = &v 8085 return s 8086 } 8087 8088 // SetIamRoleArn sets the IamRoleArn field's value. 8089 func (s *CreateBatchImportJobInput) SetIamRoleArn(v string) *CreateBatchImportJobInput { 8090 s.IamRoleArn = &v 8091 return s 8092 } 8093 8094 // SetInputPath sets the InputPath field's value. 8095 func (s *CreateBatchImportJobInput) SetInputPath(v string) *CreateBatchImportJobInput { 8096 s.InputPath = &v 8097 return s 8098 } 8099 8100 // SetJobId sets the JobId field's value. 8101 func (s *CreateBatchImportJobInput) SetJobId(v string) *CreateBatchImportJobInput { 8102 s.JobId = &v 8103 return s 8104 } 8105 8106 // SetOutputPath sets the OutputPath field's value. 8107 func (s *CreateBatchImportJobInput) SetOutputPath(v string) *CreateBatchImportJobInput { 8108 s.OutputPath = &v 8109 return s 8110 } 8111 8112 // SetTags sets the Tags field's value. 8113 func (s *CreateBatchImportJobInput) SetTags(v []*Tag) *CreateBatchImportJobInput { 8114 s.Tags = v 8115 return s 8116 } 8117 8118 type CreateBatchImportJobOutput struct { 8119 _ struct{} `type:"structure"` 8120 } 8121 8122 // String returns the string representation. 8123 // 8124 // API parameter values that are decorated as "sensitive" in the API will not 8125 // be included in the string output. The member name will be present, but the 8126 // value will be replaced with "sensitive". 8127 func (s CreateBatchImportJobOutput) String() string { 8128 return awsutil.Prettify(s) 8129 } 8130 8131 // GoString returns the string representation. 8132 // 8133 // API parameter values that are decorated as "sensitive" in the API will not 8134 // be included in the string output. The member name will be present, but the 8135 // value will be replaced with "sensitive". 8136 func (s CreateBatchImportJobOutput) GoString() string { 8137 return s.String() 8138 } 8139 8140 type CreateBatchPredictionJobInput struct { 8141 _ struct{} `type:"structure"` 8142 8143 // The name of the detector. 8144 // 8145 // DetectorName is a required field 8146 DetectorName *string `locationName:"detectorName" min:"1" type:"string" required:"true"` 8147 8148 // The detector version. 8149 DetectorVersion *string `locationName:"detectorVersion" min:"1" type:"string"` 8150 8151 // The name of the event type. 8152 // 8153 // EventTypeName is a required field 8154 EventTypeName *string `locationName:"eventTypeName" min:"1" type:"string" required:"true"` 8155 8156 // The ARN of the IAM role to use for this job request. 8157 // 8158 // IamRoleArn is a required field 8159 IamRoleArn *string `locationName:"iamRoleArn" min:"1" type:"string" required:"true"` 8160 8161 // The Amazon S3 location of your training file. 8162 // 8163 // InputPath is a required field 8164 InputPath *string `locationName:"inputPath" min:"1" type:"string" required:"true"` 8165 8166 // The ID of the batch prediction job. 8167 // 8168 // JobId is a required field 8169 JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"` 8170 8171 // The Amazon S3 location of your output file. 8172 // 8173 // OutputPath is a required field 8174 OutputPath *string `locationName:"outputPath" min:"1" type:"string" required:"true"` 8175 8176 // A collection of key and value pairs. 8177 Tags []*Tag `locationName:"tags" type:"list"` 8178 } 8179 8180 // String returns the string representation. 8181 // 8182 // API parameter values that are decorated as "sensitive" in the API will not 8183 // be included in the string output. The member name will be present, but the 8184 // value will be replaced with "sensitive". 8185 func (s CreateBatchPredictionJobInput) String() string { 8186 return awsutil.Prettify(s) 8187 } 8188 8189 // GoString returns the string representation. 8190 // 8191 // API parameter values that are decorated as "sensitive" in the API will not 8192 // be included in the string output. The member name will be present, but the 8193 // value will be replaced with "sensitive". 8194 func (s CreateBatchPredictionJobInput) GoString() string { 8195 return s.String() 8196 } 8197 8198 // Validate inspects the fields of the type to determine if they are valid. 8199 func (s *CreateBatchPredictionJobInput) Validate() error { 8200 invalidParams := request.ErrInvalidParams{Context: "CreateBatchPredictionJobInput"} 8201 if s.DetectorName == nil { 8202 invalidParams.Add(request.NewErrParamRequired("DetectorName")) 8203 } 8204 if s.DetectorName != nil && len(*s.DetectorName) < 1 { 8205 invalidParams.Add(request.NewErrParamMinLen("DetectorName", 1)) 8206 } 8207 if s.DetectorVersion != nil && len(*s.DetectorVersion) < 1 { 8208 invalidParams.Add(request.NewErrParamMinLen("DetectorVersion", 1)) 8209 } 8210 if s.EventTypeName == nil { 8211 invalidParams.Add(request.NewErrParamRequired("EventTypeName")) 8212 } 8213 if s.EventTypeName != nil && len(*s.EventTypeName) < 1 { 8214 invalidParams.Add(request.NewErrParamMinLen("EventTypeName", 1)) 8215 } 8216 if s.IamRoleArn == nil { 8217 invalidParams.Add(request.NewErrParamRequired("IamRoleArn")) 8218 } 8219 if s.IamRoleArn != nil && len(*s.IamRoleArn) < 1 { 8220 invalidParams.Add(request.NewErrParamMinLen("IamRoleArn", 1)) 8221 } 8222 if s.InputPath == nil { 8223 invalidParams.Add(request.NewErrParamRequired("InputPath")) 8224 } 8225 if s.InputPath != nil && len(*s.InputPath) < 1 { 8226 invalidParams.Add(request.NewErrParamMinLen("InputPath", 1)) 8227 } 8228 if s.JobId == nil { 8229 invalidParams.Add(request.NewErrParamRequired("JobId")) 8230 } 8231 if s.JobId != nil && len(*s.JobId) < 1 { 8232 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 8233 } 8234 if s.OutputPath == nil { 8235 invalidParams.Add(request.NewErrParamRequired("OutputPath")) 8236 } 8237 if s.OutputPath != nil && len(*s.OutputPath) < 1 { 8238 invalidParams.Add(request.NewErrParamMinLen("OutputPath", 1)) 8239 } 8240 if s.Tags != nil { 8241 for i, v := range s.Tags { 8242 if v == nil { 8243 continue 8244 } 8245 if err := v.Validate(); err != nil { 8246 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 8247 } 8248 } 8249 } 8250 8251 if invalidParams.Len() > 0 { 8252 return invalidParams 8253 } 8254 return nil 8255 } 8256 8257 // SetDetectorName sets the DetectorName field's value. 8258 func (s *CreateBatchPredictionJobInput) SetDetectorName(v string) *CreateBatchPredictionJobInput { 8259 s.DetectorName = &v 8260 return s 8261 } 8262 8263 // SetDetectorVersion sets the DetectorVersion field's value. 8264 func (s *CreateBatchPredictionJobInput) SetDetectorVersion(v string) *CreateBatchPredictionJobInput { 8265 s.DetectorVersion = &v 8266 return s 8267 } 8268 8269 // SetEventTypeName sets the EventTypeName field's value. 8270 func (s *CreateBatchPredictionJobInput) SetEventTypeName(v string) *CreateBatchPredictionJobInput { 8271 s.EventTypeName = &v 8272 return s 8273 } 8274 8275 // SetIamRoleArn sets the IamRoleArn field's value. 8276 func (s *CreateBatchPredictionJobInput) SetIamRoleArn(v string) *CreateBatchPredictionJobInput { 8277 s.IamRoleArn = &v 8278 return s 8279 } 8280 8281 // SetInputPath sets the InputPath field's value. 8282 func (s *CreateBatchPredictionJobInput) SetInputPath(v string) *CreateBatchPredictionJobInput { 8283 s.InputPath = &v 8284 return s 8285 } 8286 8287 // SetJobId sets the JobId field's value. 8288 func (s *CreateBatchPredictionJobInput) SetJobId(v string) *CreateBatchPredictionJobInput { 8289 s.JobId = &v 8290 return s 8291 } 8292 8293 // SetOutputPath sets the OutputPath field's value. 8294 func (s *CreateBatchPredictionJobInput) SetOutputPath(v string) *CreateBatchPredictionJobInput { 8295 s.OutputPath = &v 8296 return s 8297 } 8298 8299 // SetTags sets the Tags field's value. 8300 func (s *CreateBatchPredictionJobInput) SetTags(v []*Tag) *CreateBatchPredictionJobInput { 8301 s.Tags = v 8302 return s 8303 } 8304 8305 type CreateBatchPredictionJobOutput struct { 8306 _ struct{} `type:"structure"` 8307 } 8308 8309 // String returns the string representation. 8310 // 8311 // API parameter values that are decorated as "sensitive" in the API will not 8312 // be included in the string output. The member name will be present, but the 8313 // value will be replaced with "sensitive". 8314 func (s CreateBatchPredictionJobOutput) String() string { 8315 return awsutil.Prettify(s) 8316 } 8317 8318 // GoString returns the string representation. 8319 // 8320 // API parameter values that are decorated as "sensitive" in the API will not 8321 // be included in the string output. The member name will be present, but the 8322 // value will be replaced with "sensitive". 8323 func (s CreateBatchPredictionJobOutput) GoString() string { 8324 return s.String() 8325 } 8326 8327 type CreateDetectorVersionInput struct { 8328 _ struct{} `type:"structure"` 8329 8330 // The description of the detector version. 8331 Description *string `locationName:"description" min:"1" type:"string"` 8332 8333 // The ID of the detector under which you want to create a new version. 8334 // 8335 // DetectorId is a required field 8336 DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"` 8337 8338 // The Amazon Sagemaker model endpoints to include in the detector version. 8339 ExternalModelEndpoints []*string `locationName:"externalModelEndpoints" type:"list"` 8340 8341 // The model versions to include in the detector version. 8342 ModelVersions []*ModelVersion `locationName:"modelVersions" type:"list"` 8343 8344 // The rule execution mode for the rules included in the detector version. 8345 // 8346 // You can define and edit the rule mode at the detector version level, when 8347 // it is in draft status. 8348 // 8349 // If you specify FIRST_MATCHED, Amazon Fraud Detector evaluates rules sequentially, 8350 // first to last, stopping at the first matched rule. Amazon Fraud dectector 8351 // then provides the outcomes for that single rule. 8352 // 8353 // If you specifiy ALL_MATCHED, Amazon Fraud Detector evaluates all rules and 8354 // returns the outcomes for all matched rules. 8355 // 8356 // The default behavior is FIRST_MATCHED. 8357 RuleExecutionMode *string `locationName:"ruleExecutionMode" type:"string" enum:"RuleExecutionMode"` 8358 8359 // The rules to include in the detector version. 8360 // 8361 // Rules is a required field 8362 Rules []*Rule `locationName:"rules" type:"list" required:"true"` 8363 8364 // A collection of key and value pairs. 8365 Tags []*Tag `locationName:"tags" type:"list"` 8366 } 8367 8368 // String returns the string representation. 8369 // 8370 // API parameter values that are decorated as "sensitive" in the API will not 8371 // be included in the string output. The member name will be present, but the 8372 // value will be replaced with "sensitive". 8373 func (s CreateDetectorVersionInput) String() string { 8374 return awsutil.Prettify(s) 8375 } 8376 8377 // GoString returns the string representation. 8378 // 8379 // API parameter values that are decorated as "sensitive" in the API will not 8380 // be included in the string output. The member name will be present, but the 8381 // value will be replaced with "sensitive". 8382 func (s CreateDetectorVersionInput) GoString() string { 8383 return s.String() 8384 } 8385 8386 // Validate inspects the fields of the type to determine if they are valid. 8387 func (s *CreateDetectorVersionInput) Validate() error { 8388 invalidParams := request.ErrInvalidParams{Context: "CreateDetectorVersionInput"} 8389 if s.Description != nil && len(*s.Description) < 1 { 8390 invalidParams.Add(request.NewErrParamMinLen("Description", 1)) 8391 } 8392 if s.DetectorId == nil { 8393 invalidParams.Add(request.NewErrParamRequired("DetectorId")) 8394 } 8395 if s.DetectorId != nil && len(*s.DetectorId) < 1 { 8396 invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) 8397 } 8398 if s.Rules == nil { 8399 invalidParams.Add(request.NewErrParamRequired("Rules")) 8400 } 8401 if s.ModelVersions != nil { 8402 for i, v := range s.ModelVersions { 8403 if v == nil { 8404 continue 8405 } 8406 if err := v.Validate(); err != nil { 8407 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ModelVersions", i), err.(request.ErrInvalidParams)) 8408 } 8409 } 8410 } 8411 if s.Rules != nil { 8412 for i, v := range s.Rules { 8413 if v == nil { 8414 continue 8415 } 8416 if err := v.Validate(); err != nil { 8417 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams)) 8418 } 8419 } 8420 } 8421 if s.Tags != nil { 8422 for i, v := range s.Tags { 8423 if v == nil { 8424 continue 8425 } 8426 if err := v.Validate(); err != nil { 8427 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 8428 } 8429 } 8430 } 8431 8432 if invalidParams.Len() > 0 { 8433 return invalidParams 8434 } 8435 return nil 8436 } 8437 8438 // SetDescription sets the Description field's value. 8439 func (s *CreateDetectorVersionInput) SetDescription(v string) *CreateDetectorVersionInput { 8440 s.Description = &v 8441 return s 8442 } 8443 8444 // SetDetectorId sets the DetectorId field's value. 8445 func (s *CreateDetectorVersionInput) SetDetectorId(v string) *CreateDetectorVersionInput { 8446 s.DetectorId = &v 8447 return s 8448 } 8449 8450 // SetExternalModelEndpoints sets the ExternalModelEndpoints field's value. 8451 func (s *CreateDetectorVersionInput) SetExternalModelEndpoints(v []*string) *CreateDetectorVersionInput { 8452 s.ExternalModelEndpoints = v 8453 return s 8454 } 8455 8456 // SetModelVersions sets the ModelVersions field's value. 8457 func (s *CreateDetectorVersionInput) SetModelVersions(v []*ModelVersion) *CreateDetectorVersionInput { 8458 s.ModelVersions = v 8459 return s 8460 } 8461 8462 // SetRuleExecutionMode sets the RuleExecutionMode field's value. 8463 func (s *CreateDetectorVersionInput) SetRuleExecutionMode(v string) *CreateDetectorVersionInput { 8464 s.RuleExecutionMode = &v 8465 return s 8466 } 8467 8468 // SetRules sets the Rules field's value. 8469 func (s *CreateDetectorVersionInput) SetRules(v []*Rule) *CreateDetectorVersionInput { 8470 s.Rules = v 8471 return s 8472 } 8473 8474 // SetTags sets the Tags field's value. 8475 func (s *CreateDetectorVersionInput) SetTags(v []*Tag) *CreateDetectorVersionInput { 8476 s.Tags = v 8477 return s 8478 } 8479 8480 type CreateDetectorVersionOutput struct { 8481 _ struct{} `type:"structure"` 8482 8483 // The ID for the created version's parent detector. 8484 DetectorId *string `locationName:"detectorId" min:"1" type:"string"` 8485 8486 // The ID for the created detector. 8487 DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string"` 8488 8489 // The status of the detector version. 8490 Status *string `locationName:"status" type:"string" enum:"DetectorVersionStatus"` 8491 } 8492 8493 // String returns the string representation. 8494 // 8495 // API parameter values that are decorated as "sensitive" in the API will not 8496 // be included in the string output. The member name will be present, but the 8497 // value will be replaced with "sensitive". 8498 func (s CreateDetectorVersionOutput) String() string { 8499 return awsutil.Prettify(s) 8500 } 8501 8502 // GoString returns the string representation. 8503 // 8504 // API parameter values that are decorated as "sensitive" in the API will not 8505 // be included in the string output. The member name will be present, but the 8506 // value will be replaced with "sensitive". 8507 func (s CreateDetectorVersionOutput) GoString() string { 8508 return s.String() 8509 } 8510 8511 // SetDetectorId sets the DetectorId field's value. 8512 func (s *CreateDetectorVersionOutput) SetDetectorId(v string) *CreateDetectorVersionOutput { 8513 s.DetectorId = &v 8514 return s 8515 } 8516 8517 // SetDetectorVersionId sets the DetectorVersionId field's value. 8518 func (s *CreateDetectorVersionOutput) SetDetectorVersionId(v string) *CreateDetectorVersionOutput { 8519 s.DetectorVersionId = &v 8520 return s 8521 } 8522 8523 // SetStatus sets the Status field's value. 8524 func (s *CreateDetectorVersionOutput) SetStatus(v string) *CreateDetectorVersionOutput { 8525 s.Status = &v 8526 return s 8527 } 8528 8529 type CreateModelInput struct { 8530 _ struct{} `type:"structure"` 8531 8532 // The model description. 8533 Description *string `locationName:"description" min:"1" type:"string"` 8534 8535 // The name of the event type. 8536 // 8537 // EventTypeName is a required field 8538 EventTypeName *string `locationName:"eventTypeName" type:"string" required:"true"` 8539 8540 // The model ID. 8541 // 8542 // ModelId is a required field 8543 ModelId *string `locationName:"modelId" min:"1" type:"string" required:"true"` 8544 8545 // The model type. 8546 // 8547 // ModelType is a required field 8548 ModelType *string `locationName:"modelType" type:"string" required:"true" enum:"ModelTypeEnum"` 8549 8550 // A collection of key and value pairs. 8551 Tags []*Tag `locationName:"tags" type:"list"` 8552 } 8553 8554 // String returns the string representation. 8555 // 8556 // API parameter values that are decorated as "sensitive" in the API will not 8557 // be included in the string output. The member name will be present, but the 8558 // value will be replaced with "sensitive". 8559 func (s CreateModelInput) String() string { 8560 return awsutil.Prettify(s) 8561 } 8562 8563 // GoString returns the string representation. 8564 // 8565 // API parameter values that are decorated as "sensitive" in the API will not 8566 // be included in the string output. The member name will be present, but the 8567 // value will be replaced with "sensitive". 8568 func (s CreateModelInput) GoString() string { 8569 return s.String() 8570 } 8571 8572 // Validate inspects the fields of the type to determine if they are valid. 8573 func (s *CreateModelInput) Validate() error { 8574 invalidParams := request.ErrInvalidParams{Context: "CreateModelInput"} 8575 if s.Description != nil && len(*s.Description) < 1 { 8576 invalidParams.Add(request.NewErrParamMinLen("Description", 1)) 8577 } 8578 if s.EventTypeName == nil { 8579 invalidParams.Add(request.NewErrParamRequired("EventTypeName")) 8580 } 8581 if s.ModelId == nil { 8582 invalidParams.Add(request.NewErrParamRequired("ModelId")) 8583 } 8584 if s.ModelId != nil && len(*s.ModelId) < 1 { 8585 invalidParams.Add(request.NewErrParamMinLen("ModelId", 1)) 8586 } 8587 if s.ModelType == nil { 8588 invalidParams.Add(request.NewErrParamRequired("ModelType")) 8589 } 8590 if s.Tags != nil { 8591 for i, v := range s.Tags { 8592 if v == nil { 8593 continue 8594 } 8595 if err := v.Validate(); err != nil { 8596 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 8597 } 8598 } 8599 } 8600 8601 if invalidParams.Len() > 0 { 8602 return invalidParams 8603 } 8604 return nil 8605 } 8606 8607 // SetDescription sets the Description field's value. 8608 func (s *CreateModelInput) SetDescription(v string) *CreateModelInput { 8609 s.Description = &v 8610 return s 8611 } 8612 8613 // SetEventTypeName sets the EventTypeName field's value. 8614 func (s *CreateModelInput) SetEventTypeName(v string) *CreateModelInput { 8615 s.EventTypeName = &v 8616 return s 8617 } 8618 8619 // SetModelId sets the ModelId field's value. 8620 func (s *CreateModelInput) SetModelId(v string) *CreateModelInput { 8621 s.ModelId = &v 8622 return s 8623 } 8624 8625 // SetModelType sets the ModelType field's value. 8626 func (s *CreateModelInput) SetModelType(v string) *CreateModelInput { 8627 s.ModelType = &v 8628 return s 8629 } 8630 8631 // SetTags sets the Tags field's value. 8632 func (s *CreateModelInput) SetTags(v []*Tag) *CreateModelInput { 8633 s.Tags = v 8634 return s 8635 } 8636 8637 type CreateModelOutput struct { 8638 _ struct{} `type:"structure"` 8639 } 8640 8641 // String returns the string representation. 8642 // 8643 // API parameter values that are decorated as "sensitive" in the API will not 8644 // be included in the string output. The member name will be present, but the 8645 // value will be replaced with "sensitive". 8646 func (s CreateModelOutput) String() string { 8647 return awsutil.Prettify(s) 8648 } 8649 8650 // GoString returns the string representation. 8651 // 8652 // API parameter values that are decorated as "sensitive" in the API will not 8653 // be included in the string output. The member name will be present, but the 8654 // value will be replaced with "sensitive". 8655 func (s CreateModelOutput) GoString() string { 8656 return s.String() 8657 } 8658 8659 type CreateModelVersionInput struct { 8660 _ struct{} `type:"structure"` 8661 8662 // Details of the external events data used for model version training. Required 8663 // if trainingDataSource is EXTERNAL_EVENTS. 8664 ExternalEventsDetail *ExternalEventsDetail `locationName:"externalEventsDetail" type:"structure"` 8665 8666 // Details of the ingested events data used for model version training. Required 8667 // if trainingDataSource is INGESTED_EVENTS. 8668 IngestedEventsDetail *IngestedEventsDetail `locationName:"ingestedEventsDetail" type:"structure"` 8669 8670 // The model ID. 8671 // 8672 // ModelId is a required field 8673 ModelId *string `locationName:"modelId" min:"1" type:"string" required:"true"` 8674 8675 // The model type. 8676 // 8677 // ModelType is a required field 8678 ModelType *string `locationName:"modelType" type:"string" required:"true" enum:"ModelTypeEnum"` 8679 8680 // A collection of key and value pairs. 8681 Tags []*Tag `locationName:"tags" type:"list"` 8682 8683 // The training data schema. 8684 // 8685 // TrainingDataSchema is a required field 8686 TrainingDataSchema *TrainingDataSchema `locationName:"trainingDataSchema" type:"structure" required:"true"` 8687 8688 // The training data source location in Amazon S3. 8689 // 8690 // TrainingDataSource is a required field 8691 TrainingDataSource *string `locationName:"trainingDataSource" type:"string" required:"true" enum:"TrainingDataSourceEnum"` 8692 } 8693 8694 // String returns the string representation. 8695 // 8696 // API parameter values that are decorated as "sensitive" in the API will not 8697 // be included in the string output. The member name will be present, but the 8698 // value will be replaced with "sensitive". 8699 func (s CreateModelVersionInput) String() string { 8700 return awsutil.Prettify(s) 8701 } 8702 8703 // GoString returns the string representation. 8704 // 8705 // API parameter values that are decorated as "sensitive" in the API will not 8706 // be included in the string output. The member name will be present, but the 8707 // value will be replaced with "sensitive". 8708 func (s CreateModelVersionInput) GoString() string { 8709 return s.String() 8710 } 8711 8712 // Validate inspects the fields of the type to determine if they are valid. 8713 func (s *CreateModelVersionInput) Validate() error { 8714 invalidParams := request.ErrInvalidParams{Context: "CreateModelVersionInput"} 8715 if s.ModelId == nil { 8716 invalidParams.Add(request.NewErrParamRequired("ModelId")) 8717 } 8718 if s.ModelId != nil && len(*s.ModelId) < 1 { 8719 invalidParams.Add(request.NewErrParamMinLen("ModelId", 1)) 8720 } 8721 if s.ModelType == nil { 8722 invalidParams.Add(request.NewErrParamRequired("ModelType")) 8723 } 8724 if s.TrainingDataSchema == nil { 8725 invalidParams.Add(request.NewErrParamRequired("TrainingDataSchema")) 8726 } 8727 if s.TrainingDataSource == nil { 8728 invalidParams.Add(request.NewErrParamRequired("TrainingDataSource")) 8729 } 8730 if s.ExternalEventsDetail != nil { 8731 if err := s.ExternalEventsDetail.Validate(); err != nil { 8732 invalidParams.AddNested("ExternalEventsDetail", err.(request.ErrInvalidParams)) 8733 } 8734 } 8735 if s.IngestedEventsDetail != nil { 8736 if err := s.IngestedEventsDetail.Validate(); err != nil { 8737 invalidParams.AddNested("IngestedEventsDetail", err.(request.ErrInvalidParams)) 8738 } 8739 } 8740 if s.Tags != nil { 8741 for i, v := range s.Tags { 8742 if v == nil { 8743 continue 8744 } 8745 if err := v.Validate(); err != nil { 8746 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 8747 } 8748 } 8749 } 8750 if s.TrainingDataSchema != nil { 8751 if err := s.TrainingDataSchema.Validate(); err != nil { 8752 invalidParams.AddNested("TrainingDataSchema", err.(request.ErrInvalidParams)) 8753 } 8754 } 8755 8756 if invalidParams.Len() > 0 { 8757 return invalidParams 8758 } 8759 return nil 8760 } 8761 8762 // SetExternalEventsDetail sets the ExternalEventsDetail field's value. 8763 func (s *CreateModelVersionInput) SetExternalEventsDetail(v *ExternalEventsDetail) *CreateModelVersionInput { 8764 s.ExternalEventsDetail = v 8765 return s 8766 } 8767 8768 // SetIngestedEventsDetail sets the IngestedEventsDetail field's value. 8769 func (s *CreateModelVersionInput) SetIngestedEventsDetail(v *IngestedEventsDetail) *CreateModelVersionInput { 8770 s.IngestedEventsDetail = v 8771 return s 8772 } 8773 8774 // SetModelId sets the ModelId field's value. 8775 func (s *CreateModelVersionInput) SetModelId(v string) *CreateModelVersionInput { 8776 s.ModelId = &v 8777 return s 8778 } 8779 8780 // SetModelType sets the ModelType field's value. 8781 func (s *CreateModelVersionInput) SetModelType(v string) *CreateModelVersionInput { 8782 s.ModelType = &v 8783 return s 8784 } 8785 8786 // SetTags sets the Tags field's value. 8787 func (s *CreateModelVersionInput) SetTags(v []*Tag) *CreateModelVersionInput { 8788 s.Tags = v 8789 return s 8790 } 8791 8792 // SetTrainingDataSchema sets the TrainingDataSchema field's value. 8793 func (s *CreateModelVersionInput) SetTrainingDataSchema(v *TrainingDataSchema) *CreateModelVersionInput { 8794 s.TrainingDataSchema = v 8795 return s 8796 } 8797 8798 // SetTrainingDataSource sets the TrainingDataSource field's value. 8799 func (s *CreateModelVersionInput) SetTrainingDataSource(v string) *CreateModelVersionInput { 8800 s.TrainingDataSource = &v 8801 return s 8802 } 8803 8804 type CreateModelVersionOutput struct { 8805 _ struct{} `type:"structure"` 8806 8807 // The model ID. 8808 ModelId *string `locationName:"modelId" min:"1" type:"string"` 8809 8810 // The model type. 8811 ModelType *string `locationName:"modelType" type:"string" enum:"ModelTypeEnum"` 8812 8813 // The model version number of the model version created. 8814 ModelVersionNumber *string `locationName:"modelVersionNumber" min:"3" type:"string"` 8815 8816 // The model version status. 8817 Status *string `locationName:"status" type:"string"` 8818 } 8819 8820 // String returns the string representation. 8821 // 8822 // API parameter values that are decorated as "sensitive" in the API will not 8823 // be included in the string output. The member name will be present, but the 8824 // value will be replaced with "sensitive". 8825 func (s CreateModelVersionOutput) String() string { 8826 return awsutil.Prettify(s) 8827 } 8828 8829 // GoString returns the string representation. 8830 // 8831 // API parameter values that are decorated as "sensitive" in the API will not 8832 // be included in the string output. The member name will be present, but the 8833 // value will be replaced with "sensitive". 8834 func (s CreateModelVersionOutput) GoString() string { 8835 return s.String() 8836 } 8837 8838 // SetModelId sets the ModelId field's value. 8839 func (s *CreateModelVersionOutput) SetModelId(v string) *CreateModelVersionOutput { 8840 s.ModelId = &v 8841 return s 8842 } 8843 8844 // SetModelType sets the ModelType field's value. 8845 func (s *CreateModelVersionOutput) SetModelType(v string) *CreateModelVersionOutput { 8846 s.ModelType = &v 8847 return s 8848 } 8849 8850 // SetModelVersionNumber sets the ModelVersionNumber field's value. 8851 func (s *CreateModelVersionOutput) SetModelVersionNumber(v string) *CreateModelVersionOutput { 8852 s.ModelVersionNumber = &v 8853 return s 8854 } 8855 8856 // SetStatus sets the Status field's value. 8857 func (s *CreateModelVersionOutput) SetStatus(v string) *CreateModelVersionOutput { 8858 s.Status = &v 8859 return s 8860 } 8861 8862 type CreateRuleInput struct { 8863 _ struct{} `type:"structure"` 8864 8865 // The rule description. 8866 Description *string `locationName:"description" min:"1" type:"string"` 8867 8868 // The detector ID for the rule's parent detector. 8869 // 8870 // DetectorId is a required field 8871 DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"` 8872 8873 // The rule expression. 8874 // 8875 // Expression is a sensitive parameter and its value will be 8876 // replaced with "sensitive" in string returned by CreateRuleInput's 8877 // String and GoString methods. 8878 // 8879 // Expression is a required field 8880 Expression *string `locationName:"expression" min:"1" type:"string" required:"true" sensitive:"true"` 8881 8882 // The language of the rule. 8883 // 8884 // Language is a required field 8885 Language *string `locationName:"language" type:"string" required:"true" enum:"Language"` 8886 8887 // The outcome or outcomes returned when the rule expression matches. 8888 // 8889 // Outcomes is a required field 8890 Outcomes []*string `locationName:"outcomes" min:"1" type:"list" required:"true"` 8891 8892 // The rule ID. 8893 // 8894 // RuleId is a required field 8895 RuleId *string `locationName:"ruleId" min:"1" type:"string" required:"true"` 8896 8897 // A collection of key and value pairs. 8898 Tags []*Tag `locationName:"tags" type:"list"` 8899 } 8900 8901 // String returns the string representation. 8902 // 8903 // API parameter values that are decorated as "sensitive" in the API will not 8904 // be included in the string output. The member name will be present, but the 8905 // value will be replaced with "sensitive". 8906 func (s CreateRuleInput) String() string { 8907 return awsutil.Prettify(s) 8908 } 8909 8910 // GoString returns the string representation. 8911 // 8912 // API parameter values that are decorated as "sensitive" in the API will not 8913 // be included in the string output. The member name will be present, but the 8914 // value will be replaced with "sensitive". 8915 func (s CreateRuleInput) GoString() string { 8916 return s.String() 8917 } 8918 8919 // Validate inspects the fields of the type to determine if they are valid. 8920 func (s *CreateRuleInput) Validate() error { 8921 invalidParams := request.ErrInvalidParams{Context: "CreateRuleInput"} 8922 if s.Description != nil && len(*s.Description) < 1 { 8923 invalidParams.Add(request.NewErrParamMinLen("Description", 1)) 8924 } 8925 if s.DetectorId == nil { 8926 invalidParams.Add(request.NewErrParamRequired("DetectorId")) 8927 } 8928 if s.DetectorId != nil && len(*s.DetectorId) < 1 { 8929 invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) 8930 } 8931 if s.Expression == nil { 8932 invalidParams.Add(request.NewErrParamRequired("Expression")) 8933 } 8934 if s.Expression != nil && len(*s.Expression) < 1 { 8935 invalidParams.Add(request.NewErrParamMinLen("Expression", 1)) 8936 } 8937 if s.Language == nil { 8938 invalidParams.Add(request.NewErrParamRequired("Language")) 8939 } 8940 if s.Outcomes == nil { 8941 invalidParams.Add(request.NewErrParamRequired("Outcomes")) 8942 } 8943 if s.Outcomes != nil && len(s.Outcomes) < 1 { 8944 invalidParams.Add(request.NewErrParamMinLen("Outcomes", 1)) 8945 } 8946 if s.RuleId == nil { 8947 invalidParams.Add(request.NewErrParamRequired("RuleId")) 8948 } 8949 if s.RuleId != nil && len(*s.RuleId) < 1 { 8950 invalidParams.Add(request.NewErrParamMinLen("RuleId", 1)) 8951 } 8952 if s.Tags != nil { 8953 for i, v := range s.Tags { 8954 if v == nil { 8955 continue 8956 } 8957 if err := v.Validate(); err != nil { 8958 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 8959 } 8960 } 8961 } 8962 8963 if invalidParams.Len() > 0 { 8964 return invalidParams 8965 } 8966 return nil 8967 } 8968 8969 // SetDescription sets the Description field's value. 8970 func (s *CreateRuleInput) SetDescription(v string) *CreateRuleInput { 8971 s.Description = &v 8972 return s 8973 } 8974 8975 // SetDetectorId sets the DetectorId field's value. 8976 func (s *CreateRuleInput) SetDetectorId(v string) *CreateRuleInput { 8977 s.DetectorId = &v 8978 return s 8979 } 8980 8981 // SetExpression sets the Expression field's value. 8982 func (s *CreateRuleInput) SetExpression(v string) *CreateRuleInput { 8983 s.Expression = &v 8984 return s 8985 } 8986 8987 // SetLanguage sets the Language field's value. 8988 func (s *CreateRuleInput) SetLanguage(v string) *CreateRuleInput { 8989 s.Language = &v 8990 return s 8991 } 8992 8993 // SetOutcomes sets the Outcomes field's value. 8994 func (s *CreateRuleInput) SetOutcomes(v []*string) *CreateRuleInput { 8995 s.Outcomes = v 8996 return s 8997 } 8998 8999 // SetRuleId sets the RuleId field's value. 9000 func (s *CreateRuleInput) SetRuleId(v string) *CreateRuleInput { 9001 s.RuleId = &v 9002 return s 9003 } 9004 9005 // SetTags sets the Tags field's value. 9006 func (s *CreateRuleInput) SetTags(v []*Tag) *CreateRuleInput { 9007 s.Tags = v 9008 return s 9009 } 9010 9011 type CreateRuleOutput struct { 9012 _ struct{} `type:"structure"` 9013 9014 // The created rule. 9015 Rule *Rule `locationName:"rule" type:"structure"` 9016 } 9017 9018 // String returns the string representation. 9019 // 9020 // API parameter values that are decorated as "sensitive" in the API will not 9021 // be included in the string output. The member name will be present, but the 9022 // value will be replaced with "sensitive". 9023 func (s CreateRuleOutput) String() string { 9024 return awsutil.Prettify(s) 9025 } 9026 9027 // GoString returns the string representation. 9028 // 9029 // API parameter values that are decorated as "sensitive" in the API will not 9030 // be included in the string output. The member name will be present, but the 9031 // value will be replaced with "sensitive". 9032 func (s CreateRuleOutput) GoString() string { 9033 return s.String() 9034 } 9035 9036 // SetRule sets the Rule field's value. 9037 func (s *CreateRuleOutput) SetRule(v *Rule) *CreateRuleOutput { 9038 s.Rule = v 9039 return s 9040 } 9041 9042 type CreateVariableInput struct { 9043 _ struct{} `type:"structure"` 9044 9045 // The source of the data. 9046 // 9047 // DataSource is a required field 9048 DataSource *string `locationName:"dataSource" type:"string" required:"true" enum:"DataSource"` 9049 9050 // The data type. 9051 // 9052 // DataType is a required field 9053 DataType *string `locationName:"dataType" type:"string" required:"true" enum:"DataType"` 9054 9055 // The default value for the variable when no value is received. 9056 // 9057 // DefaultValue is a required field 9058 DefaultValue *string `locationName:"defaultValue" type:"string" required:"true"` 9059 9060 // The description. 9061 Description *string `locationName:"description" type:"string"` 9062 9063 // The name of the variable. 9064 // 9065 // Name is a required field 9066 Name *string `locationName:"name" type:"string" required:"true"` 9067 9068 // A collection of key and value pairs. 9069 Tags []*Tag `locationName:"tags" type:"list"` 9070 9071 // The variable type. For more information see Variable types (https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#variable-types). 9072 // 9073 // Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | BILLING_ADDRESS_L2 | 9074 // BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | BILLING_PHONE | BILLING_STATE 9075 // | BILLING_ZIP | CARD_BIN | CATEGORICAL | CURRENCY_CODE | EMAIL_ADDRESS | 9076 // FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | IP_ADDRESS | NUMERIC | ORDER_ID 9077 // | PAYMENT_TYPE | PHONE_NUMBER | PRICE | PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 9078 // | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | SHIPPING_COUNTRY | SHIPPING_NAME 9079 // | SHIPPING_PHONE | SHIPPING_STATE | SHIPPING_ZIP | USERAGENT 9080 VariableType *string `locationName:"variableType" type:"string"` 9081 } 9082 9083 // String returns the string representation. 9084 // 9085 // API parameter values that are decorated as "sensitive" in the API will not 9086 // be included in the string output. The member name will be present, but the 9087 // value will be replaced with "sensitive". 9088 func (s CreateVariableInput) String() string { 9089 return awsutil.Prettify(s) 9090 } 9091 9092 // GoString returns the string representation. 9093 // 9094 // API parameter values that are decorated as "sensitive" in the API will not 9095 // be included in the string output. The member name will be present, but the 9096 // value will be replaced with "sensitive". 9097 func (s CreateVariableInput) GoString() string { 9098 return s.String() 9099 } 9100 9101 // Validate inspects the fields of the type to determine if they are valid. 9102 func (s *CreateVariableInput) Validate() error { 9103 invalidParams := request.ErrInvalidParams{Context: "CreateVariableInput"} 9104 if s.DataSource == nil { 9105 invalidParams.Add(request.NewErrParamRequired("DataSource")) 9106 } 9107 if s.DataType == nil { 9108 invalidParams.Add(request.NewErrParamRequired("DataType")) 9109 } 9110 if s.DefaultValue == nil { 9111 invalidParams.Add(request.NewErrParamRequired("DefaultValue")) 9112 } 9113 if s.Name == nil { 9114 invalidParams.Add(request.NewErrParamRequired("Name")) 9115 } 9116 if s.Tags != nil { 9117 for i, v := range s.Tags { 9118 if v == nil { 9119 continue 9120 } 9121 if err := v.Validate(); err != nil { 9122 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 9123 } 9124 } 9125 } 9126 9127 if invalidParams.Len() > 0 { 9128 return invalidParams 9129 } 9130 return nil 9131 } 9132 9133 // SetDataSource sets the DataSource field's value. 9134 func (s *CreateVariableInput) SetDataSource(v string) *CreateVariableInput { 9135 s.DataSource = &v 9136 return s 9137 } 9138 9139 // SetDataType sets the DataType field's value. 9140 func (s *CreateVariableInput) SetDataType(v string) *CreateVariableInput { 9141 s.DataType = &v 9142 return s 9143 } 9144 9145 // SetDefaultValue sets the DefaultValue field's value. 9146 func (s *CreateVariableInput) SetDefaultValue(v string) *CreateVariableInput { 9147 s.DefaultValue = &v 9148 return s 9149 } 9150 9151 // SetDescription sets the Description field's value. 9152 func (s *CreateVariableInput) SetDescription(v string) *CreateVariableInput { 9153 s.Description = &v 9154 return s 9155 } 9156 9157 // SetName sets the Name field's value. 9158 func (s *CreateVariableInput) SetName(v string) *CreateVariableInput { 9159 s.Name = &v 9160 return s 9161 } 9162 9163 // SetTags sets the Tags field's value. 9164 func (s *CreateVariableInput) SetTags(v []*Tag) *CreateVariableInput { 9165 s.Tags = v 9166 return s 9167 } 9168 9169 // SetVariableType sets the VariableType field's value. 9170 func (s *CreateVariableInput) SetVariableType(v string) *CreateVariableInput { 9171 s.VariableType = &v 9172 return s 9173 } 9174 9175 type CreateVariableOutput struct { 9176 _ struct{} `type:"structure"` 9177 } 9178 9179 // String returns the string representation. 9180 // 9181 // API parameter values that are decorated as "sensitive" in the API will not 9182 // be included in the string output. The member name will be present, but the 9183 // value will be replaced with "sensitive". 9184 func (s CreateVariableOutput) String() string { 9185 return awsutil.Prettify(s) 9186 } 9187 9188 // GoString returns the string representation. 9189 // 9190 // API parameter values that are decorated as "sensitive" in the API will not 9191 // be included in the string output. The member name will be present, but the 9192 // value will be replaced with "sensitive". 9193 func (s CreateVariableOutput) GoString() string { 9194 return s.String() 9195 } 9196 9197 // The model training validation messages. 9198 type DataValidationMetrics struct { 9199 _ struct{} `type:"structure"` 9200 9201 // The field-specific model training validation messages. 9202 FieldLevelMessages []*FieldValidationMessage `locationName:"fieldLevelMessages" type:"list"` 9203 9204 // The file-specific model training validation messages. 9205 FileLevelMessages []*FileValidationMessage `locationName:"fileLevelMessages" type:"list"` 9206 } 9207 9208 // String returns the string representation. 9209 // 9210 // API parameter values that are decorated as "sensitive" in the API will not 9211 // be included in the string output. The member name will be present, but the 9212 // value will be replaced with "sensitive". 9213 func (s DataValidationMetrics) String() string { 9214 return awsutil.Prettify(s) 9215 } 9216 9217 // GoString returns the string representation. 9218 // 9219 // API parameter values that are decorated as "sensitive" in the API will not 9220 // be included in the string output. The member name will be present, but the 9221 // value will be replaced with "sensitive". 9222 func (s DataValidationMetrics) GoString() string { 9223 return s.String() 9224 } 9225 9226 // SetFieldLevelMessages sets the FieldLevelMessages field's value. 9227 func (s *DataValidationMetrics) SetFieldLevelMessages(v []*FieldValidationMessage) *DataValidationMetrics { 9228 s.FieldLevelMessages = v 9229 return s 9230 } 9231 9232 // SetFileLevelMessages sets the FileLevelMessages field's value. 9233 func (s *DataValidationMetrics) SetFileLevelMessages(v []*FileValidationMessage) *DataValidationMetrics { 9234 s.FileLevelMessages = v 9235 return s 9236 } 9237 9238 type DeleteBatchImportJobInput struct { 9239 _ struct{} `type:"structure"` 9240 9241 // The ID of the batch import job to delete. 9242 // 9243 // JobId is a required field 9244 JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"` 9245 } 9246 9247 // String returns the string representation. 9248 // 9249 // API parameter values that are decorated as "sensitive" in the API will not 9250 // be included in the string output. The member name will be present, but the 9251 // value will be replaced with "sensitive". 9252 func (s DeleteBatchImportJobInput) String() string { 9253 return awsutil.Prettify(s) 9254 } 9255 9256 // GoString returns the string representation. 9257 // 9258 // API parameter values that are decorated as "sensitive" in the API will not 9259 // be included in the string output. The member name will be present, but the 9260 // value will be replaced with "sensitive". 9261 func (s DeleteBatchImportJobInput) GoString() string { 9262 return s.String() 9263 } 9264 9265 // Validate inspects the fields of the type to determine if they are valid. 9266 func (s *DeleteBatchImportJobInput) Validate() error { 9267 invalidParams := request.ErrInvalidParams{Context: "DeleteBatchImportJobInput"} 9268 if s.JobId == nil { 9269 invalidParams.Add(request.NewErrParamRequired("JobId")) 9270 } 9271 if s.JobId != nil && len(*s.JobId) < 1 { 9272 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 9273 } 9274 9275 if invalidParams.Len() > 0 { 9276 return invalidParams 9277 } 9278 return nil 9279 } 9280 9281 // SetJobId sets the JobId field's value. 9282 func (s *DeleteBatchImportJobInput) SetJobId(v string) *DeleteBatchImportJobInput { 9283 s.JobId = &v 9284 return s 9285 } 9286 9287 type DeleteBatchImportJobOutput struct { 9288 _ struct{} `type:"structure"` 9289 } 9290 9291 // String returns the string representation. 9292 // 9293 // API parameter values that are decorated as "sensitive" in the API will not 9294 // be included in the string output. The member name will be present, but the 9295 // value will be replaced with "sensitive". 9296 func (s DeleteBatchImportJobOutput) String() string { 9297 return awsutil.Prettify(s) 9298 } 9299 9300 // GoString returns the string representation. 9301 // 9302 // API parameter values that are decorated as "sensitive" in the API will not 9303 // be included in the string output. The member name will be present, but the 9304 // value will be replaced with "sensitive". 9305 func (s DeleteBatchImportJobOutput) GoString() string { 9306 return s.String() 9307 } 9308 9309 type DeleteBatchPredictionJobInput struct { 9310 _ struct{} `type:"structure"` 9311 9312 // The ID of the batch prediction job to delete. 9313 // 9314 // JobId is a required field 9315 JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"` 9316 } 9317 9318 // String returns the string representation. 9319 // 9320 // API parameter values that are decorated as "sensitive" in the API will not 9321 // be included in the string output. The member name will be present, but the 9322 // value will be replaced with "sensitive". 9323 func (s DeleteBatchPredictionJobInput) String() string { 9324 return awsutil.Prettify(s) 9325 } 9326 9327 // GoString returns the string representation. 9328 // 9329 // API parameter values that are decorated as "sensitive" in the API will not 9330 // be included in the string output. The member name will be present, but the 9331 // value will be replaced with "sensitive". 9332 func (s DeleteBatchPredictionJobInput) GoString() string { 9333 return s.String() 9334 } 9335 9336 // Validate inspects the fields of the type to determine if they are valid. 9337 func (s *DeleteBatchPredictionJobInput) Validate() error { 9338 invalidParams := request.ErrInvalidParams{Context: "DeleteBatchPredictionJobInput"} 9339 if s.JobId == nil { 9340 invalidParams.Add(request.NewErrParamRequired("JobId")) 9341 } 9342 if s.JobId != nil && len(*s.JobId) < 1 { 9343 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 9344 } 9345 9346 if invalidParams.Len() > 0 { 9347 return invalidParams 9348 } 9349 return nil 9350 } 9351 9352 // SetJobId sets the JobId field's value. 9353 func (s *DeleteBatchPredictionJobInput) SetJobId(v string) *DeleteBatchPredictionJobInput { 9354 s.JobId = &v 9355 return s 9356 } 9357 9358 type DeleteBatchPredictionJobOutput struct { 9359 _ struct{} `type:"structure"` 9360 } 9361 9362 // String returns the string representation. 9363 // 9364 // API parameter values that are decorated as "sensitive" in the API will not 9365 // be included in the string output. The member name will be present, but the 9366 // value will be replaced with "sensitive". 9367 func (s DeleteBatchPredictionJobOutput) String() string { 9368 return awsutil.Prettify(s) 9369 } 9370 9371 // GoString returns the string representation. 9372 // 9373 // API parameter values that are decorated as "sensitive" in the API will not 9374 // be included in the string output. The member name will be present, but the 9375 // value will be replaced with "sensitive". 9376 func (s DeleteBatchPredictionJobOutput) GoString() string { 9377 return s.String() 9378 } 9379 9380 type DeleteDetectorInput struct { 9381 _ struct{} `type:"structure"` 9382 9383 // The ID of the detector to delete. 9384 // 9385 // DetectorId is a required field 9386 DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"` 9387 } 9388 9389 // String returns the string representation. 9390 // 9391 // API parameter values that are decorated as "sensitive" in the API will not 9392 // be included in the string output. The member name will be present, but the 9393 // value will be replaced with "sensitive". 9394 func (s DeleteDetectorInput) String() string { 9395 return awsutil.Prettify(s) 9396 } 9397 9398 // GoString returns the string representation. 9399 // 9400 // API parameter values that are decorated as "sensitive" in the API will not 9401 // be included in the string output. The member name will be present, but the 9402 // value will be replaced with "sensitive". 9403 func (s DeleteDetectorInput) GoString() string { 9404 return s.String() 9405 } 9406 9407 // Validate inspects the fields of the type to determine if they are valid. 9408 func (s *DeleteDetectorInput) Validate() error { 9409 invalidParams := request.ErrInvalidParams{Context: "DeleteDetectorInput"} 9410 if s.DetectorId == nil { 9411 invalidParams.Add(request.NewErrParamRequired("DetectorId")) 9412 } 9413 if s.DetectorId != nil && len(*s.DetectorId) < 1 { 9414 invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) 9415 } 9416 9417 if invalidParams.Len() > 0 { 9418 return invalidParams 9419 } 9420 return nil 9421 } 9422 9423 // SetDetectorId sets the DetectorId field's value. 9424 func (s *DeleteDetectorInput) SetDetectorId(v string) *DeleteDetectorInput { 9425 s.DetectorId = &v 9426 return s 9427 } 9428 9429 type DeleteDetectorOutput struct { 9430 _ struct{} `type:"structure"` 9431 } 9432 9433 // String returns the string representation. 9434 // 9435 // API parameter values that are decorated as "sensitive" in the API will not 9436 // be included in the string output. The member name will be present, but the 9437 // value will be replaced with "sensitive". 9438 func (s DeleteDetectorOutput) String() string { 9439 return awsutil.Prettify(s) 9440 } 9441 9442 // GoString returns the string representation. 9443 // 9444 // API parameter values that are decorated as "sensitive" in the API will not 9445 // be included in the string output. The member name will be present, but the 9446 // value will be replaced with "sensitive". 9447 func (s DeleteDetectorOutput) GoString() string { 9448 return s.String() 9449 } 9450 9451 type DeleteDetectorVersionInput struct { 9452 _ struct{} `type:"structure"` 9453 9454 // The ID of the parent detector for the detector version to delete. 9455 // 9456 // DetectorId is a required field 9457 DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"` 9458 9459 // The ID of the detector version to delete. 9460 // 9461 // DetectorVersionId is a required field 9462 DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string" required:"true"` 9463 } 9464 9465 // String returns the string representation. 9466 // 9467 // API parameter values that are decorated as "sensitive" in the API will not 9468 // be included in the string output. The member name will be present, but the 9469 // value will be replaced with "sensitive". 9470 func (s DeleteDetectorVersionInput) String() string { 9471 return awsutil.Prettify(s) 9472 } 9473 9474 // GoString returns the string representation. 9475 // 9476 // API parameter values that are decorated as "sensitive" in the API will not 9477 // be included in the string output. The member name will be present, but the 9478 // value will be replaced with "sensitive". 9479 func (s DeleteDetectorVersionInput) GoString() string { 9480 return s.String() 9481 } 9482 9483 // Validate inspects the fields of the type to determine if they are valid. 9484 func (s *DeleteDetectorVersionInput) Validate() error { 9485 invalidParams := request.ErrInvalidParams{Context: "DeleteDetectorVersionInput"} 9486 if s.DetectorId == nil { 9487 invalidParams.Add(request.NewErrParamRequired("DetectorId")) 9488 } 9489 if s.DetectorId != nil && len(*s.DetectorId) < 1 { 9490 invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) 9491 } 9492 if s.DetectorVersionId == nil { 9493 invalidParams.Add(request.NewErrParamRequired("DetectorVersionId")) 9494 } 9495 if s.DetectorVersionId != nil && len(*s.DetectorVersionId) < 1 { 9496 invalidParams.Add(request.NewErrParamMinLen("DetectorVersionId", 1)) 9497 } 9498 9499 if invalidParams.Len() > 0 { 9500 return invalidParams 9501 } 9502 return nil 9503 } 9504 9505 // SetDetectorId sets the DetectorId field's value. 9506 func (s *DeleteDetectorVersionInput) SetDetectorId(v string) *DeleteDetectorVersionInput { 9507 s.DetectorId = &v 9508 return s 9509 } 9510 9511 // SetDetectorVersionId sets the DetectorVersionId field's value. 9512 func (s *DeleteDetectorVersionInput) SetDetectorVersionId(v string) *DeleteDetectorVersionInput { 9513 s.DetectorVersionId = &v 9514 return s 9515 } 9516 9517 type DeleteDetectorVersionOutput struct { 9518 _ struct{} `type:"structure"` 9519 } 9520 9521 // String returns the string representation. 9522 // 9523 // API parameter values that are decorated as "sensitive" in the API will not 9524 // be included in the string output. The member name will be present, but the 9525 // value will be replaced with "sensitive". 9526 func (s DeleteDetectorVersionOutput) String() string { 9527 return awsutil.Prettify(s) 9528 } 9529 9530 // GoString returns the string representation. 9531 // 9532 // API parameter values that are decorated as "sensitive" in the API will not 9533 // be included in the string output. The member name will be present, but the 9534 // value will be replaced with "sensitive". 9535 func (s DeleteDetectorVersionOutput) GoString() string { 9536 return s.String() 9537 } 9538 9539 type DeleteEntityTypeInput struct { 9540 _ struct{} `type:"structure"` 9541 9542 // The name of the entity type to delete. 9543 // 9544 // Name is a required field 9545 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 9546 } 9547 9548 // String returns the string representation. 9549 // 9550 // API parameter values that are decorated as "sensitive" in the API will not 9551 // be included in the string output. The member name will be present, but the 9552 // value will be replaced with "sensitive". 9553 func (s DeleteEntityTypeInput) String() string { 9554 return awsutil.Prettify(s) 9555 } 9556 9557 // GoString returns the string representation. 9558 // 9559 // API parameter values that are decorated as "sensitive" in the API will not 9560 // be included in the string output. The member name will be present, but the 9561 // value will be replaced with "sensitive". 9562 func (s DeleteEntityTypeInput) GoString() string { 9563 return s.String() 9564 } 9565 9566 // Validate inspects the fields of the type to determine if they are valid. 9567 func (s *DeleteEntityTypeInput) Validate() error { 9568 invalidParams := request.ErrInvalidParams{Context: "DeleteEntityTypeInput"} 9569 if s.Name == nil { 9570 invalidParams.Add(request.NewErrParamRequired("Name")) 9571 } 9572 if s.Name != nil && len(*s.Name) < 1 { 9573 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 9574 } 9575 9576 if invalidParams.Len() > 0 { 9577 return invalidParams 9578 } 9579 return nil 9580 } 9581 9582 // SetName sets the Name field's value. 9583 func (s *DeleteEntityTypeInput) SetName(v string) *DeleteEntityTypeInput { 9584 s.Name = &v 9585 return s 9586 } 9587 9588 type DeleteEntityTypeOutput struct { 9589 _ struct{} `type:"structure"` 9590 } 9591 9592 // String returns the string representation. 9593 // 9594 // API parameter values that are decorated as "sensitive" in the API will not 9595 // be included in the string output. The member name will be present, but the 9596 // value will be replaced with "sensitive". 9597 func (s DeleteEntityTypeOutput) String() string { 9598 return awsutil.Prettify(s) 9599 } 9600 9601 // GoString returns the string representation. 9602 // 9603 // API parameter values that are decorated as "sensitive" in the API will not 9604 // be included in the string output. The member name will be present, but the 9605 // value will be replaced with "sensitive". 9606 func (s DeleteEntityTypeOutput) GoString() string { 9607 return s.String() 9608 } 9609 9610 type DeleteEventInput struct { 9611 _ struct{} `type:"structure"` 9612 9613 // Specifies whether or not to delete any predictions associated with the event. 9614 DeleteAuditHistory *bool `locationName:"deleteAuditHistory" type:"boolean"` 9615 9616 // The ID of the event to delete. 9617 // 9618 // EventId is a required field 9619 EventId *string `locationName:"eventId" min:"1" type:"string" required:"true"` 9620 9621 // The name of the event type. 9622 // 9623 // EventTypeName is a required field 9624 EventTypeName *string `locationName:"eventTypeName" min:"1" type:"string" required:"true"` 9625 } 9626 9627 // String returns the string representation. 9628 // 9629 // API parameter values that are decorated as "sensitive" in the API will not 9630 // be included in the string output. The member name will be present, but the 9631 // value will be replaced with "sensitive". 9632 func (s DeleteEventInput) String() string { 9633 return awsutil.Prettify(s) 9634 } 9635 9636 // GoString returns the string representation. 9637 // 9638 // API parameter values that are decorated as "sensitive" in the API will not 9639 // be included in the string output. The member name will be present, but the 9640 // value will be replaced with "sensitive". 9641 func (s DeleteEventInput) GoString() string { 9642 return s.String() 9643 } 9644 9645 // Validate inspects the fields of the type to determine if they are valid. 9646 func (s *DeleteEventInput) Validate() error { 9647 invalidParams := request.ErrInvalidParams{Context: "DeleteEventInput"} 9648 if s.EventId == nil { 9649 invalidParams.Add(request.NewErrParamRequired("EventId")) 9650 } 9651 if s.EventId != nil && len(*s.EventId) < 1 { 9652 invalidParams.Add(request.NewErrParamMinLen("EventId", 1)) 9653 } 9654 if s.EventTypeName == nil { 9655 invalidParams.Add(request.NewErrParamRequired("EventTypeName")) 9656 } 9657 if s.EventTypeName != nil && len(*s.EventTypeName) < 1 { 9658 invalidParams.Add(request.NewErrParamMinLen("EventTypeName", 1)) 9659 } 9660 9661 if invalidParams.Len() > 0 { 9662 return invalidParams 9663 } 9664 return nil 9665 } 9666 9667 // SetDeleteAuditHistory sets the DeleteAuditHistory field's value. 9668 func (s *DeleteEventInput) SetDeleteAuditHistory(v bool) *DeleteEventInput { 9669 s.DeleteAuditHistory = &v 9670 return s 9671 } 9672 9673 // SetEventId sets the EventId field's value. 9674 func (s *DeleteEventInput) SetEventId(v string) *DeleteEventInput { 9675 s.EventId = &v 9676 return s 9677 } 9678 9679 // SetEventTypeName sets the EventTypeName field's value. 9680 func (s *DeleteEventInput) SetEventTypeName(v string) *DeleteEventInput { 9681 s.EventTypeName = &v 9682 return s 9683 } 9684 9685 type DeleteEventOutput struct { 9686 _ struct{} `type:"structure"` 9687 } 9688 9689 // String returns the string representation. 9690 // 9691 // API parameter values that are decorated as "sensitive" in the API will not 9692 // be included in the string output. The member name will be present, but the 9693 // value will be replaced with "sensitive". 9694 func (s DeleteEventOutput) String() string { 9695 return awsutil.Prettify(s) 9696 } 9697 9698 // GoString returns the string representation. 9699 // 9700 // API parameter values that are decorated as "sensitive" in the API will not 9701 // be included in the string output. The member name will be present, but the 9702 // value will be replaced with "sensitive". 9703 func (s DeleteEventOutput) GoString() string { 9704 return s.String() 9705 } 9706 9707 type DeleteEventTypeInput struct { 9708 _ struct{} `type:"structure"` 9709 9710 // The name of the event type to delete. 9711 // 9712 // Name is a required field 9713 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 9714 } 9715 9716 // String returns the string representation. 9717 // 9718 // API parameter values that are decorated as "sensitive" in the API will not 9719 // be included in the string output. The member name will be present, but the 9720 // value will be replaced with "sensitive". 9721 func (s DeleteEventTypeInput) String() string { 9722 return awsutil.Prettify(s) 9723 } 9724 9725 // GoString returns the string representation. 9726 // 9727 // API parameter values that are decorated as "sensitive" in the API will not 9728 // be included in the string output. The member name will be present, but the 9729 // value will be replaced with "sensitive". 9730 func (s DeleteEventTypeInput) GoString() string { 9731 return s.String() 9732 } 9733 9734 // Validate inspects the fields of the type to determine if they are valid. 9735 func (s *DeleteEventTypeInput) Validate() error { 9736 invalidParams := request.ErrInvalidParams{Context: "DeleteEventTypeInput"} 9737 if s.Name == nil { 9738 invalidParams.Add(request.NewErrParamRequired("Name")) 9739 } 9740 if s.Name != nil && len(*s.Name) < 1 { 9741 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 9742 } 9743 9744 if invalidParams.Len() > 0 { 9745 return invalidParams 9746 } 9747 return nil 9748 } 9749 9750 // SetName sets the Name field's value. 9751 func (s *DeleteEventTypeInput) SetName(v string) *DeleteEventTypeInput { 9752 s.Name = &v 9753 return s 9754 } 9755 9756 type DeleteEventTypeOutput struct { 9757 _ struct{} `type:"structure"` 9758 } 9759 9760 // String returns the string representation. 9761 // 9762 // API parameter values that are decorated as "sensitive" in the API will not 9763 // be included in the string output. The member name will be present, but the 9764 // value will be replaced with "sensitive". 9765 func (s DeleteEventTypeOutput) String() string { 9766 return awsutil.Prettify(s) 9767 } 9768 9769 // GoString returns the string representation. 9770 // 9771 // API parameter values that are decorated as "sensitive" in the API will not 9772 // be included in the string output. The member name will be present, but the 9773 // value will be replaced with "sensitive". 9774 func (s DeleteEventTypeOutput) GoString() string { 9775 return s.String() 9776 } 9777 9778 type DeleteEventsByEventTypeInput struct { 9779 _ struct{} `type:"structure"` 9780 9781 // The name of the event type. 9782 // 9783 // EventTypeName is a required field 9784 EventTypeName *string `locationName:"eventTypeName" min:"1" type:"string" required:"true"` 9785 } 9786 9787 // String returns the string representation. 9788 // 9789 // API parameter values that are decorated as "sensitive" in the API will not 9790 // be included in the string output. The member name will be present, but the 9791 // value will be replaced with "sensitive". 9792 func (s DeleteEventsByEventTypeInput) String() string { 9793 return awsutil.Prettify(s) 9794 } 9795 9796 // GoString returns the string representation. 9797 // 9798 // API parameter values that are decorated as "sensitive" in the API will not 9799 // be included in the string output. The member name will be present, but the 9800 // value will be replaced with "sensitive". 9801 func (s DeleteEventsByEventTypeInput) GoString() string { 9802 return s.String() 9803 } 9804 9805 // Validate inspects the fields of the type to determine if they are valid. 9806 func (s *DeleteEventsByEventTypeInput) Validate() error { 9807 invalidParams := request.ErrInvalidParams{Context: "DeleteEventsByEventTypeInput"} 9808 if s.EventTypeName == nil { 9809 invalidParams.Add(request.NewErrParamRequired("EventTypeName")) 9810 } 9811 if s.EventTypeName != nil && len(*s.EventTypeName) < 1 { 9812 invalidParams.Add(request.NewErrParamMinLen("EventTypeName", 1)) 9813 } 9814 9815 if invalidParams.Len() > 0 { 9816 return invalidParams 9817 } 9818 return nil 9819 } 9820 9821 // SetEventTypeName sets the EventTypeName field's value. 9822 func (s *DeleteEventsByEventTypeInput) SetEventTypeName(v string) *DeleteEventsByEventTypeInput { 9823 s.EventTypeName = &v 9824 return s 9825 } 9826 9827 type DeleteEventsByEventTypeOutput struct { 9828 _ struct{} `type:"structure"` 9829 9830 // Name of event type for which to delete the events. 9831 EventTypeName *string `locationName:"eventTypeName" min:"1" type:"string"` 9832 9833 // The status of the delete request. 9834 EventsDeletionStatus *string `locationName:"eventsDeletionStatus" type:"string"` 9835 } 9836 9837 // String returns the string representation. 9838 // 9839 // API parameter values that are decorated as "sensitive" in the API will not 9840 // be included in the string output. The member name will be present, but the 9841 // value will be replaced with "sensitive". 9842 func (s DeleteEventsByEventTypeOutput) String() string { 9843 return awsutil.Prettify(s) 9844 } 9845 9846 // GoString returns the string representation. 9847 // 9848 // API parameter values that are decorated as "sensitive" in the API will not 9849 // be included in the string output. The member name will be present, but the 9850 // value will be replaced with "sensitive". 9851 func (s DeleteEventsByEventTypeOutput) GoString() string { 9852 return s.String() 9853 } 9854 9855 // SetEventTypeName sets the EventTypeName field's value. 9856 func (s *DeleteEventsByEventTypeOutput) SetEventTypeName(v string) *DeleteEventsByEventTypeOutput { 9857 s.EventTypeName = &v 9858 return s 9859 } 9860 9861 // SetEventsDeletionStatus sets the EventsDeletionStatus field's value. 9862 func (s *DeleteEventsByEventTypeOutput) SetEventsDeletionStatus(v string) *DeleteEventsByEventTypeOutput { 9863 s.EventsDeletionStatus = &v 9864 return s 9865 } 9866 9867 type DeleteExternalModelInput struct { 9868 _ struct{} `type:"structure"` 9869 9870 // The endpoint of the Amazon Sagemaker model to delete. 9871 // 9872 // ModelEndpoint is a required field 9873 ModelEndpoint *string `locationName:"modelEndpoint" min:"1" type:"string" required:"true"` 9874 } 9875 9876 // String returns the string representation. 9877 // 9878 // API parameter values that are decorated as "sensitive" in the API will not 9879 // be included in the string output. The member name will be present, but the 9880 // value will be replaced with "sensitive". 9881 func (s DeleteExternalModelInput) String() string { 9882 return awsutil.Prettify(s) 9883 } 9884 9885 // GoString returns the string representation. 9886 // 9887 // API parameter values that are decorated as "sensitive" in the API will not 9888 // be included in the string output. The member name will be present, but the 9889 // value will be replaced with "sensitive". 9890 func (s DeleteExternalModelInput) GoString() string { 9891 return s.String() 9892 } 9893 9894 // Validate inspects the fields of the type to determine if they are valid. 9895 func (s *DeleteExternalModelInput) Validate() error { 9896 invalidParams := request.ErrInvalidParams{Context: "DeleteExternalModelInput"} 9897 if s.ModelEndpoint == nil { 9898 invalidParams.Add(request.NewErrParamRequired("ModelEndpoint")) 9899 } 9900 if s.ModelEndpoint != nil && len(*s.ModelEndpoint) < 1 { 9901 invalidParams.Add(request.NewErrParamMinLen("ModelEndpoint", 1)) 9902 } 9903 9904 if invalidParams.Len() > 0 { 9905 return invalidParams 9906 } 9907 return nil 9908 } 9909 9910 // SetModelEndpoint sets the ModelEndpoint field's value. 9911 func (s *DeleteExternalModelInput) SetModelEndpoint(v string) *DeleteExternalModelInput { 9912 s.ModelEndpoint = &v 9913 return s 9914 } 9915 9916 type DeleteExternalModelOutput struct { 9917 _ struct{} `type:"structure"` 9918 } 9919 9920 // String returns the string representation. 9921 // 9922 // API parameter values that are decorated as "sensitive" in the API will not 9923 // be included in the string output. The member name will be present, but the 9924 // value will be replaced with "sensitive". 9925 func (s DeleteExternalModelOutput) String() string { 9926 return awsutil.Prettify(s) 9927 } 9928 9929 // GoString returns the string representation. 9930 // 9931 // API parameter values that are decorated as "sensitive" in the API will not 9932 // be included in the string output. The member name will be present, but the 9933 // value will be replaced with "sensitive". 9934 func (s DeleteExternalModelOutput) GoString() string { 9935 return s.String() 9936 } 9937 9938 type DeleteLabelInput struct { 9939 _ struct{} `type:"structure"` 9940 9941 // The name of the label to delete. 9942 // 9943 // Name is a required field 9944 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 9945 } 9946 9947 // String returns the string representation. 9948 // 9949 // API parameter values that are decorated as "sensitive" in the API will not 9950 // be included in the string output. The member name will be present, but the 9951 // value will be replaced with "sensitive". 9952 func (s DeleteLabelInput) String() string { 9953 return awsutil.Prettify(s) 9954 } 9955 9956 // GoString returns the string representation. 9957 // 9958 // API parameter values that are decorated as "sensitive" in the API will not 9959 // be included in the string output. The member name will be present, but the 9960 // value will be replaced with "sensitive". 9961 func (s DeleteLabelInput) GoString() string { 9962 return s.String() 9963 } 9964 9965 // Validate inspects the fields of the type to determine if they are valid. 9966 func (s *DeleteLabelInput) Validate() error { 9967 invalidParams := request.ErrInvalidParams{Context: "DeleteLabelInput"} 9968 if s.Name == nil { 9969 invalidParams.Add(request.NewErrParamRequired("Name")) 9970 } 9971 if s.Name != nil && len(*s.Name) < 1 { 9972 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 9973 } 9974 9975 if invalidParams.Len() > 0 { 9976 return invalidParams 9977 } 9978 return nil 9979 } 9980 9981 // SetName sets the Name field's value. 9982 func (s *DeleteLabelInput) SetName(v string) *DeleteLabelInput { 9983 s.Name = &v 9984 return s 9985 } 9986 9987 type DeleteLabelOutput struct { 9988 _ struct{} `type:"structure"` 9989 } 9990 9991 // String returns the string representation. 9992 // 9993 // API parameter values that are decorated as "sensitive" in the API will not 9994 // be included in the string output. The member name will be present, but the 9995 // value will be replaced with "sensitive". 9996 func (s DeleteLabelOutput) String() string { 9997 return awsutil.Prettify(s) 9998 } 9999 10000 // GoString returns the string representation. 10001 // 10002 // API parameter values that are decorated as "sensitive" in the API will not 10003 // be included in the string output. The member name will be present, but the 10004 // value will be replaced with "sensitive". 10005 func (s DeleteLabelOutput) GoString() string { 10006 return s.String() 10007 } 10008 10009 type DeleteModelInput struct { 10010 _ struct{} `type:"structure"` 10011 10012 // The model ID of the model to delete. 10013 // 10014 // ModelId is a required field 10015 ModelId *string `locationName:"modelId" min:"1" type:"string" required:"true"` 10016 10017 // The model type of the model to delete. 10018 // 10019 // ModelType is a required field 10020 ModelType *string `locationName:"modelType" type:"string" required:"true" enum:"ModelTypeEnum"` 10021 } 10022 10023 // String returns the string representation. 10024 // 10025 // API parameter values that are decorated as "sensitive" in the API will not 10026 // be included in the string output. The member name will be present, but the 10027 // value will be replaced with "sensitive". 10028 func (s DeleteModelInput) String() string { 10029 return awsutil.Prettify(s) 10030 } 10031 10032 // GoString returns the string representation. 10033 // 10034 // API parameter values that are decorated as "sensitive" in the API will not 10035 // be included in the string output. The member name will be present, but the 10036 // value will be replaced with "sensitive". 10037 func (s DeleteModelInput) GoString() string { 10038 return s.String() 10039 } 10040 10041 // Validate inspects the fields of the type to determine if they are valid. 10042 func (s *DeleteModelInput) Validate() error { 10043 invalidParams := request.ErrInvalidParams{Context: "DeleteModelInput"} 10044 if s.ModelId == nil { 10045 invalidParams.Add(request.NewErrParamRequired("ModelId")) 10046 } 10047 if s.ModelId != nil && len(*s.ModelId) < 1 { 10048 invalidParams.Add(request.NewErrParamMinLen("ModelId", 1)) 10049 } 10050 if s.ModelType == nil { 10051 invalidParams.Add(request.NewErrParamRequired("ModelType")) 10052 } 10053 10054 if invalidParams.Len() > 0 { 10055 return invalidParams 10056 } 10057 return nil 10058 } 10059 10060 // SetModelId sets the ModelId field's value. 10061 func (s *DeleteModelInput) SetModelId(v string) *DeleteModelInput { 10062 s.ModelId = &v 10063 return s 10064 } 10065 10066 // SetModelType sets the ModelType field's value. 10067 func (s *DeleteModelInput) SetModelType(v string) *DeleteModelInput { 10068 s.ModelType = &v 10069 return s 10070 } 10071 10072 type DeleteModelOutput struct { 10073 _ struct{} `type:"structure"` 10074 } 10075 10076 // String returns the string representation. 10077 // 10078 // API parameter values that are decorated as "sensitive" in the API will not 10079 // be included in the string output. The member name will be present, but the 10080 // value will be replaced with "sensitive". 10081 func (s DeleteModelOutput) String() string { 10082 return awsutil.Prettify(s) 10083 } 10084 10085 // GoString returns the string representation. 10086 // 10087 // API parameter values that are decorated as "sensitive" in the API will not 10088 // be included in the string output. The member name will be present, but the 10089 // value will be replaced with "sensitive". 10090 func (s DeleteModelOutput) GoString() string { 10091 return s.String() 10092 } 10093 10094 type DeleteModelVersionInput struct { 10095 _ struct{} `type:"structure"` 10096 10097 // The model ID of the model version to delete. 10098 // 10099 // ModelId is a required field 10100 ModelId *string `locationName:"modelId" min:"1" type:"string" required:"true"` 10101 10102 // The model type of the model version to delete. 10103 // 10104 // ModelType is a required field 10105 ModelType *string `locationName:"modelType" type:"string" required:"true" enum:"ModelTypeEnum"` 10106 10107 // The model version number of the model version to delete. 10108 // 10109 // ModelVersionNumber is a required field 10110 ModelVersionNumber *string `locationName:"modelVersionNumber" min:"3" type:"string" required:"true"` 10111 } 10112 10113 // String returns the string representation. 10114 // 10115 // API parameter values that are decorated as "sensitive" in the API will not 10116 // be included in the string output. The member name will be present, but the 10117 // value will be replaced with "sensitive". 10118 func (s DeleteModelVersionInput) String() string { 10119 return awsutil.Prettify(s) 10120 } 10121 10122 // GoString returns the string representation. 10123 // 10124 // API parameter values that are decorated as "sensitive" in the API will not 10125 // be included in the string output. The member name will be present, but the 10126 // value will be replaced with "sensitive". 10127 func (s DeleteModelVersionInput) GoString() string { 10128 return s.String() 10129 } 10130 10131 // Validate inspects the fields of the type to determine if they are valid. 10132 func (s *DeleteModelVersionInput) Validate() error { 10133 invalidParams := request.ErrInvalidParams{Context: "DeleteModelVersionInput"} 10134 if s.ModelId == nil { 10135 invalidParams.Add(request.NewErrParamRequired("ModelId")) 10136 } 10137 if s.ModelId != nil && len(*s.ModelId) < 1 { 10138 invalidParams.Add(request.NewErrParamMinLen("ModelId", 1)) 10139 } 10140 if s.ModelType == nil { 10141 invalidParams.Add(request.NewErrParamRequired("ModelType")) 10142 } 10143 if s.ModelVersionNumber == nil { 10144 invalidParams.Add(request.NewErrParamRequired("ModelVersionNumber")) 10145 } 10146 if s.ModelVersionNumber != nil && len(*s.ModelVersionNumber) < 3 { 10147 invalidParams.Add(request.NewErrParamMinLen("ModelVersionNumber", 3)) 10148 } 10149 10150 if invalidParams.Len() > 0 { 10151 return invalidParams 10152 } 10153 return nil 10154 } 10155 10156 // SetModelId sets the ModelId field's value. 10157 func (s *DeleteModelVersionInput) SetModelId(v string) *DeleteModelVersionInput { 10158 s.ModelId = &v 10159 return s 10160 } 10161 10162 // SetModelType sets the ModelType field's value. 10163 func (s *DeleteModelVersionInput) SetModelType(v string) *DeleteModelVersionInput { 10164 s.ModelType = &v 10165 return s 10166 } 10167 10168 // SetModelVersionNumber sets the ModelVersionNumber field's value. 10169 func (s *DeleteModelVersionInput) SetModelVersionNumber(v string) *DeleteModelVersionInput { 10170 s.ModelVersionNumber = &v 10171 return s 10172 } 10173 10174 type DeleteModelVersionOutput struct { 10175 _ struct{} `type:"structure"` 10176 } 10177 10178 // String returns the string representation. 10179 // 10180 // API parameter values that are decorated as "sensitive" in the API will not 10181 // be included in the string output. The member name will be present, but the 10182 // value will be replaced with "sensitive". 10183 func (s DeleteModelVersionOutput) String() string { 10184 return awsutil.Prettify(s) 10185 } 10186 10187 // GoString returns the string representation. 10188 // 10189 // API parameter values that are decorated as "sensitive" in the API will not 10190 // be included in the string output. The member name will be present, but the 10191 // value will be replaced with "sensitive". 10192 func (s DeleteModelVersionOutput) GoString() string { 10193 return s.String() 10194 } 10195 10196 type DeleteOutcomeInput struct { 10197 _ struct{} `type:"structure"` 10198 10199 // The name of the outcome to delete. 10200 // 10201 // Name is a required field 10202 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 10203 } 10204 10205 // String returns the string representation. 10206 // 10207 // API parameter values that are decorated as "sensitive" in the API will not 10208 // be included in the string output. The member name will be present, but the 10209 // value will be replaced with "sensitive". 10210 func (s DeleteOutcomeInput) String() string { 10211 return awsutil.Prettify(s) 10212 } 10213 10214 // GoString returns the string representation. 10215 // 10216 // API parameter values that are decorated as "sensitive" in the API will not 10217 // be included in the string output. The member name will be present, but the 10218 // value will be replaced with "sensitive". 10219 func (s DeleteOutcomeInput) GoString() string { 10220 return s.String() 10221 } 10222 10223 // Validate inspects the fields of the type to determine if they are valid. 10224 func (s *DeleteOutcomeInput) Validate() error { 10225 invalidParams := request.ErrInvalidParams{Context: "DeleteOutcomeInput"} 10226 if s.Name == nil { 10227 invalidParams.Add(request.NewErrParamRequired("Name")) 10228 } 10229 if s.Name != nil && len(*s.Name) < 1 { 10230 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 10231 } 10232 10233 if invalidParams.Len() > 0 { 10234 return invalidParams 10235 } 10236 return nil 10237 } 10238 10239 // SetName sets the Name field's value. 10240 func (s *DeleteOutcomeInput) SetName(v string) *DeleteOutcomeInput { 10241 s.Name = &v 10242 return s 10243 } 10244 10245 type DeleteOutcomeOutput struct { 10246 _ struct{} `type:"structure"` 10247 } 10248 10249 // String returns the string representation. 10250 // 10251 // API parameter values that are decorated as "sensitive" in the API will not 10252 // be included in the string output. The member name will be present, but the 10253 // value will be replaced with "sensitive". 10254 func (s DeleteOutcomeOutput) String() string { 10255 return awsutil.Prettify(s) 10256 } 10257 10258 // GoString returns the string representation. 10259 // 10260 // API parameter values that are decorated as "sensitive" in the API will not 10261 // be included in the string output. The member name will be present, but the 10262 // value will be replaced with "sensitive". 10263 func (s DeleteOutcomeOutput) GoString() string { 10264 return s.String() 10265 } 10266 10267 type DeleteRuleInput struct { 10268 _ struct{} `type:"structure"` 10269 10270 // A rule. 10271 // 10272 // Rule is a required field 10273 Rule *Rule `locationName:"rule" type:"structure" required:"true"` 10274 } 10275 10276 // String returns the string representation. 10277 // 10278 // API parameter values that are decorated as "sensitive" in the API will not 10279 // be included in the string output. The member name will be present, but the 10280 // value will be replaced with "sensitive". 10281 func (s DeleteRuleInput) String() string { 10282 return awsutil.Prettify(s) 10283 } 10284 10285 // GoString returns the string representation. 10286 // 10287 // API parameter values that are decorated as "sensitive" in the API will not 10288 // be included in the string output. The member name will be present, but the 10289 // value will be replaced with "sensitive". 10290 func (s DeleteRuleInput) GoString() string { 10291 return s.String() 10292 } 10293 10294 // Validate inspects the fields of the type to determine if they are valid. 10295 func (s *DeleteRuleInput) Validate() error { 10296 invalidParams := request.ErrInvalidParams{Context: "DeleteRuleInput"} 10297 if s.Rule == nil { 10298 invalidParams.Add(request.NewErrParamRequired("Rule")) 10299 } 10300 if s.Rule != nil { 10301 if err := s.Rule.Validate(); err != nil { 10302 invalidParams.AddNested("Rule", err.(request.ErrInvalidParams)) 10303 } 10304 } 10305 10306 if invalidParams.Len() > 0 { 10307 return invalidParams 10308 } 10309 return nil 10310 } 10311 10312 // SetRule sets the Rule field's value. 10313 func (s *DeleteRuleInput) SetRule(v *Rule) *DeleteRuleInput { 10314 s.Rule = v 10315 return s 10316 } 10317 10318 type DeleteRuleOutput struct { 10319 _ struct{} `type:"structure"` 10320 } 10321 10322 // String returns the string representation. 10323 // 10324 // API parameter values that are decorated as "sensitive" in the API will not 10325 // be included in the string output. The member name will be present, but the 10326 // value will be replaced with "sensitive". 10327 func (s DeleteRuleOutput) String() string { 10328 return awsutil.Prettify(s) 10329 } 10330 10331 // GoString returns the string representation. 10332 // 10333 // API parameter values that are decorated as "sensitive" in the API will not 10334 // be included in the string output. The member name will be present, but the 10335 // value will be replaced with "sensitive". 10336 func (s DeleteRuleOutput) GoString() string { 10337 return s.String() 10338 } 10339 10340 type DeleteVariableInput struct { 10341 _ struct{} `type:"structure"` 10342 10343 // The name of the variable to delete. 10344 // 10345 // Name is a required field 10346 Name *string `locationName:"name" type:"string" required:"true"` 10347 } 10348 10349 // String returns the string representation. 10350 // 10351 // API parameter values that are decorated as "sensitive" in the API will not 10352 // be included in the string output. The member name will be present, but the 10353 // value will be replaced with "sensitive". 10354 func (s DeleteVariableInput) String() string { 10355 return awsutil.Prettify(s) 10356 } 10357 10358 // GoString returns the string representation. 10359 // 10360 // API parameter values that are decorated as "sensitive" in the API will not 10361 // be included in the string output. The member name will be present, but the 10362 // value will be replaced with "sensitive". 10363 func (s DeleteVariableInput) GoString() string { 10364 return s.String() 10365 } 10366 10367 // Validate inspects the fields of the type to determine if they are valid. 10368 func (s *DeleteVariableInput) Validate() error { 10369 invalidParams := request.ErrInvalidParams{Context: "DeleteVariableInput"} 10370 if s.Name == nil { 10371 invalidParams.Add(request.NewErrParamRequired("Name")) 10372 } 10373 10374 if invalidParams.Len() > 0 { 10375 return invalidParams 10376 } 10377 return nil 10378 } 10379 10380 // SetName sets the Name field's value. 10381 func (s *DeleteVariableInput) SetName(v string) *DeleteVariableInput { 10382 s.Name = &v 10383 return s 10384 } 10385 10386 type DeleteVariableOutput struct { 10387 _ struct{} `type:"structure"` 10388 } 10389 10390 // String returns the string representation. 10391 // 10392 // API parameter values that are decorated as "sensitive" in the API will not 10393 // be included in the string output. The member name will be present, but the 10394 // value will be replaced with "sensitive". 10395 func (s DeleteVariableOutput) String() string { 10396 return awsutil.Prettify(s) 10397 } 10398 10399 // GoString returns the string representation. 10400 // 10401 // API parameter values that are decorated as "sensitive" in the API will not 10402 // be included in the string output. The member name will be present, but the 10403 // value will be replaced with "sensitive". 10404 func (s DeleteVariableOutput) GoString() string { 10405 return s.String() 10406 } 10407 10408 type DescribeDetectorInput struct { 10409 _ struct{} `type:"structure"` 10410 10411 // The detector ID. 10412 // 10413 // DetectorId is a required field 10414 DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"` 10415 10416 // The maximum number of results to return for the request. 10417 MaxResults *int64 `locationName:"maxResults" min:"1000" type:"integer"` 10418 10419 // The next token from the previous response. 10420 NextToken *string `locationName:"nextToken" type:"string"` 10421 } 10422 10423 // String returns the string representation. 10424 // 10425 // API parameter values that are decorated as "sensitive" in the API will not 10426 // be included in the string output. The member name will be present, but the 10427 // value will be replaced with "sensitive". 10428 func (s DescribeDetectorInput) String() string { 10429 return awsutil.Prettify(s) 10430 } 10431 10432 // GoString returns the string representation. 10433 // 10434 // API parameter values that are decorated as "sensitive" in the API will not 10435 // be included in the string output. The member name will be present, but the 10436 // value will be replaced with "sensitive". 10437 func (s DescribeDetectorInput) GoString() string { 10438 return s.String() 10439 } 10440 10441 // Validate inspects the fields of the type to determine if they are valid. 10442 func (s *DescribeDetectorInput) Validate() error { 10443 invalidParams := request.ErrInvalidParams{Context: "DescribeDetectorInput"} 10444 if s.DetectorId == nil { 10445 invalidParams.Add(request.NewErrParamRequired("DetectorId")) 10446 } 10447 if s.DetectorId != nil && len(*s.DetectorId) < 1 { 10448 invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) 10449 } 10450 if s.MaxResults != nil && *s.MaxResults < 1000 { 10451 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1000)) 10452 } 10453 10454 if invalidParams.Len() > 0 { 10455 return invalidParams 10456 } 10457 return nil 10458 } 10459 10460 // SetDetectorId sets the DetectorId field's value. 10461 func (s *DescribeDetectorInput) SetDetectorId(v string) *DescribeDetectorInput { 10462 s.DetectorId = &v 10463 return s 10464 } 10465 10466 // SetMaxResults sets the MaxResults field's value. 10467 func (s *DescribeDetectorInput) SetMaxResults(v int64) *DescribeDetectorInput { 10468 s.MaxResults = &v 10469 return s 10470 } 10471 10472 // SetNextToken sets the NextToken field's value. 10473 func (s *DescribeDetectorInput) SetNextToken(v string) *DescribeDetectorInput { 10474 s.NextToken = &v 10475 return s 10476 } 10477 10478 type DescribeDetectorOutput struct { 10479 _ struct{} `type:"structure"` 10480 10481 // The detector ARN. 10482 Arn *string `locationName:"arn" min:"1" type:"string"` 10483 10484 // The detector ID. 10485 DetectorId *string `locationName:"detectorId" min:"1" type:"string"` 10486 10487 // The status and description for each detector version. 10488 DetectorVersionSummaries []*DetectorVersionSummary `locationName:"detectorVersionSummaries" type:"list"` 10489 10490 // The next token to be used for subsequent requests. 10491 NextToken *string `locationName:"nextToken" type:"string"` 10492 } 10493 10494 // String returns the string representation. 10495 // 10496 // API parameter values that are decorated as "sensitive" in the API will not 10497 // be included in the string output. The member name will be present, but the 10498 // value will be replaced with "sensitive". 10499 func (s DescribeDetectorOutput) String() string { 10500 return awsutil.Prettify(s) 10501 } 10502 10503 // GoString returns the string representation. 10504 // 10505 // API parameter values that are decorated as "sensitive" in the API will not 10506 // be included in the string output. The member name will be present, but the 10507 // value will be replaced with "sensitive". 10508 func (s DescribeDetectorOutput) GoString() string { 10509 return s.String() 10510 } 10511 10512 // SetArn sets the Arn field's value. 10513 func (s *DescribeDetectorOutput) SetArn(v string) *DescribeDetectorOutput { 10514 s.Arn = &v 10515 return s 10516 } 10517 10518 // SetDetectorId sets the DetectorId field's value. 10519 func (s *DescribeDetectorOutput) SetDetectorId(v string) *DescribeDetectorOutput { 10520 s.DetectorId = &v 10521 return s 10522 } 10523 10524 // SetDetectorVersionSummaries sets the DetectorVersionSummaries field's value. 10525 func (s *DescribeDetectorOutput) SetDetectorVersionSummaries(v []*DetectorVersionSummary) *DescribeDetectorOutput { 10526 s.DetectorVersionSummaries = v 10527 return s 10528 } 10529 10530 // SetNextToken sets the NextToken field's value. 10531 func (s *DescribeDetectorOutput) SetNextToken(v string) *DescribeDetectorOutput { 10532 s.NextToken = &v 10533 return s 10534 } 10535 10536 type DescribeModelVersionsInput struct { 10537 _ struct{} `type:"structure"` 10538 10539 // The maximum number of results to return. 10540 MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` 10541 10542 // The model ID. 10543 ModelId *string `locationName:"modelId" min:"1" type:"string"` 10544 10545 // The model type. 10546 ModelType *string `locationName:"modelType" type:"string" enum:"ModelTypeEnum"` 10547 10548 // The model version number. 10549 ModelVersionNumber *string `locationName:"modelVersionNumber" min:"3" type:"string"` 10550 10551 // The next token from the previous results. 10552 NextToken *string `locationName:"nextToken" type:"string"` 10553 } 10554 10555 // String returns the string representation. 10556 // 10557 // API parameter values that are decorated as "sensitive" in the API will not 10558 // be included in the string output. The member name will be present, but the 10559 // value will be replaced with "sensitive". 10560 func (s DescribeModelVersionsInput) String() string { 10561 return awsutil.Prettify(s) 10562 } 10563 10564 // GoString returns the string representation. 10565 // 10566 // API parameter values that are decorated as "sensitive" in the API will not 10567 // be included in the string output. The member name will be present, but the 10568 // value will be replaced with "sensitive". 10569 func (s DescribeModelVersionsInput) GoString() string { 10570 return s.String() 10571 } 10572 10573 // Validate inspects the fields of the type to determine if they are valid. 10574 func (s *DescribeModelVersionsInput) Validate() error { 10575 invalidParams := request.ErrInvalidParams{Context: "DescribeModelVersionsInput"} 10576 if s.MaxResults != nil && *s.MaxResults < 1 { 10577 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 10578 } 10579 if s.ModelId != nil && len(*s.ModelId) < 1 { 10580 invalidParams.Add(request.NewErrParamMinLen("ModelId", 1)) 10581 } 10582 if s.ModelVersionNumber != nil && len(*s.ModelVersionNumber) < 3 { 10583 invalidParams.Add(request.NewErrParamMinLen("ModelVersionNumber", 3)) 10584 } 10585 10586 if invalidParams.Len() > 0 { 10587 return invalidParams 10588 } 10589 return nil 10590 } 10591 10592 // SetMaxResults sets the MaxResults field's value. 10593 func (s *DescribeModelVersionsInput) SetMaxResults(v int64) *DescribeModelVersionsInput { 10594 s.MaxResults = &v 10595 return s 10596 } 10597 10598 // SetModelId sets the ModelId field's value. 10599 func (s *DescribeModelVersionsInput) SetModelId(v string) *DescribeModelVersionsInput { 10600 s.ModelId = &v 10601 return s 10602 } 10603 10604 // SetModelType sets the ModelType field's value. 10605 func (s *DescribeModelVersionsInput) SetModelType(v string) *DescribeModelVersionsInput { 10606 s.ModelType = &v 10607 return s 10608 } 10609 10610 // SetModelVersionNumber sets the ModelVersionNumber field's value. 10611 func (s *DescribeModelVersionsInput) SetModelVersionNumber(v string) *DescribeModelVersionsInput { 10612 s.ModelVersionNumber = &v 10613 return s 10614 } 10615 10616 // SetNextToken sets the NextToken field's value. 10617 func (s *DescribeModelVersionsInput) SetNextToken(v string) *DescribeModelVersionsInput { 10618 s.NextToken = &v 10619 return s 10620 } 10621 10622 type DescribeModelVersionsOutput struct { 10623 _ struct{} `type:"structure"` 10624 10625 // The model version details. 10626 ModelVersionDetails []*ModelVersionDetail `locationName:"modelVersionDetails" type:"list"` 10627 10628 // The next token. 10629 NextToken *string `locationName:"nextToken" type:"string"` 10630 } 10631 10632 // String returns the string representation. 10633 // 10634 // API parameter values that are decorated as "sensitive" in the API will not 10635 // be included in the string output. The member name will be present, but the 10636 // value will be replaced with "sensitive". 10637 func (s DescribeModelVersionsOutput) String() string { 10638 return awsutil.Prettify(s) 10639 } 10640 10641 // GoString returns the string representation. 10642 // 10643 // API parameter values that are decorated as "sensitive" in the API will not 10644 // be included in the string output. The member name will be present, but the 10645 // value will be replaced with "sensitive". 10646 func (s DescribeModelVersionsOutput) GoString() string { 10647 return s.String() 10648 } 10649 10650 // SetModelVersionDetails sets the ModelVersionDetails field's value. 10651 func (s *DescribeModelVersionsOutput) SetModelVersionDetails(v []*ModelVersionDetail) *DescribeModelVersionsOutput { 10652 s.ModelVersionDetails = v 10653 return s 10654 } 10655 10656 // SetNextToken sets the NextToken field's value. 10657 func (s *DescribeModelVersionsOutput) SetNextToken(v string) *DescribeModelVersionsOutput { 10658 s.NextToken = &v 10659 return s 10660 } 10661 10662 // The detector. 10663 type Detector struct { 10664 _ struct{} `type:"structure"` 10665 10666 // The detector ARN. 10667 Arn *string `locationName:"arn" min:"1" type:"string"` 10668 10669 // Timestamp of when the detector was created. 10670 CreatedTime *string `locationName:"createdTime" min:"11" type:"string"` 10671 10672 // The detector description. 10673 Description *string `locationName:"description" min:"1" type:"string"` 10674 10675 // The detector ID. 10676 DetectorId *string `locationName:"detectorId" min:"1" type:"string"` 10677 10678 // The name of the event type. 10679 EventTypeName *string `locationName:"eventTypeName" min:"1" type:"string"` 10680 10681 // Timestamp of when the detector was last updated. 10682 LastUpdatedTime *string `locationName:"lastUpdatedTime" min:"11" type:"string"` 10683 } 10684 10685 // String returns the string representation. 10686 // 10687 // API parameter values that are decorated as "sensitive" in the API will not 10688 // be included in the string output. The member name will be present, but the 10689 // value will be replaced with "sensitive". 10690 func (s Detector) String() string { 10691 return awsutil.Prettify(s) 10692 } 10693 10694 // GoString returns the string representation. 10695 // 10696 // API parameter values that are decorated as "sensitive" in the API will not 10697 // be included in the string output. The member name will be present, but the 10698 // value will be replaced with "sensitive". 10699 func (s Detector) GoString() string { 10700 return s.String() 10701 } 10702 10703 // SetArn sets the Arn field's value. 10704 func (s *Detector) SetArn(v string) *Detector { 10705 s.Arn = &v 10706 return s 10707 } 10708 10709 // SetCreatedTime sets the CreatedTime field's value. 10710 func (s *Detector) SetCreatedTime(v string) *Detector { 10711 s.CreatedTime = &v 10712 return s 10713 } 10714 10715 // SetDescription sets the Description field's value. 10716 func (s *Detector) SetDescription(v string) *Detector { 10717 s.Description = &v 10718 return s 10719 } 10720 10721 // SetDetectorId sets the DetectorId field's value. 10722 func (s *Detector) SetDetectorId(v string) *Detector { 10723 s.DetectorId = &v 10724 return s 10725 } 10726 10727 // SetEventTypeName sets the EventTypeName field's value. 10728 func (s *Detector) SetEventTypeName(v string) *Detector { 10729 s.EventTypeName = &v 10730 return s 10731 } 10732 10733 // SetLastUpdatedTime sets the LastUpdatedTime field's value. 10734 func (s *Detector) SetLastUpdatedTime(v string) *Detector { 10735 s.LastUpdatedTime = &v 10736 return s 10737 } 10738 10739 // The summary of the detector version. 10740 type DetectorVersionSummary struct { 10741 _ struct{} `type:"structure"` 10742 10743 // The detector version description. 10744 Description *string `locationName:"description" min:"1" type:"string"` 10745 10746 // The detector version ID. 10747 DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string"` 10748 10749 // Timestamp of when the detector version was last updated. 10750 LastUpdatedTime *string `locationName:"lastUpdatedTime" min:"11" type:"string"` 10751 10752 // The detector version status. 10753 Status *string `locationName:"status" type:"string" enum:"DetectorVersionStatus"` 10754 } 10755 10756 // String returns the string representation. 10757 // 10758 // API parameter values that are decorated as "sensitive" in the API will not 10759 // be included in the string output. The member name will be present, but the 10760 // value will be replaced with "sensitive". 10761 func (s DetectorVersionSummary) String() string { 10762 return awsutil.Prettify(s) 10763 } 10764 10765 // GoString returns the string representation. 10766 // 10767 // API parameter values that are decorated as "sensitive" in the API will not 10768 // be included in the string output. The member name will be present, but the 10769 // value will be replaced with "sensitive". 10770 func (s DetectorVersionSummary) GoString() string { 10771 return s.String() 10772 } 10773 10774 // SetDescription sets the Description field's value. 10775 func (s *DetectorVersionSummary) SetDescription(v string) *DetectorVersionSummary { 10776 s.Description = &v 10777 return s 10778 } 10779 10780 // SetDetectorVersionId sets the DetectorVersionId field's value. 10781 func (s *DetectorVersionSummary) SetDetectorVersionId(v string) *DetectorVersionSummary { 10782 s.DetectorVersionId = &v 10783 return s 10784 } 10785 10786 // SetLastUpdatedTime sets the LastUpdatedTime field's value. 10787 func (s *DetectorVersionSummary) SetLastUpdatedTime(v string) *DetectorVersionSummary { 10788 s.LastUpdatedTime = &v 10789 return s 10790 } 10791 10792 // SetStatus sets the Status field's value. 10793 func (s *DetectorVersionSummary) SetStatus(v string) *DetectorVersionSummary { 10794 s.Status = &v 10795 return s 10796 } 10797 10798 // The entity details. 10799 type Entity struct { 10800 _ struct{} `type:"structure" sensitive:"true"` 10801 10802 // The entity ID. If you do not know the entityId, you can pass unknown, which 10803 // is areserved string literal. 10804 // 10805 // EntityId is a required field 10806 EntityId *string `locationName:"entityId" min:"1" type:"string" required:"true"` 10807 10808 // The entity type. 10809 // 10810 // EntityType is a required field 10811 EntityType *string `locationName:"entityType" type:"string" required:"true"` 10812 } 10813 10814 // String returns the string representation. 10815 // 10816 // API parameter values that are decorated as "sensitive" in the API will not 10817 // be included in the string output. The member name will be present, but the 10818 // value will be replaced with "sensitive". 10819 func (s Entity) String() string { 10820 return awsutil.Prettify(s) 10821 } 10822 10823 // GoString returns the string representation. 10824 // 10825 // API parameter values that are decorated as "sensitive" in the API will not 10826 // be included in the string output. The member name will be present, but the 10827 // value will be replaced with "sensitive". 10828 func (s Entity) GoString() string { 10829 return s.String() 10830 } 10831 10832 // Validate inspects the fields of the type to determine if they are valid. 10833 func (s *Entity) Validate() error { 10834 invalidParams := request.ErrInvalidParams{Context: "Entity"} 10835 if s.EntityId == nil { 10836 invalidParams.Add(request.NewErrParamRequired("EntityId")) 10837 } 10838 if s.EntityId != nil && len(*s.EntityId) < 1 { 10839 invalidParams.Add(request.NewErrParamMinLen("EntityId", 1)) 10840 } 10841 if s.EntityType == nil { 10842 invalidParams.Add(request.NewErrParamRequired("EntityType")) 10843 } 10844 10845 if invalidParams.Len() > 0 { 10846 return invalidParams 10847 } 10848 return nil 10849 } 10850 10851 // SetEntityId sets the EntityId field's value. 10852 func (s *Entity) SetEntityId(v string) *Entity { 10853 s.EntityId = &v 10854 return s 10855 } 10856 10857 // SetEntityType sets the EntityType field's value. 10858 func (s *Entity) SetEntityType(v string) *Entity { 10859 s.EntityType = &v 10860 return s 10861 } 10862 10863 // The entity type details. 10864 type EntityType struct { 10865 _ struct{} `type:"structure"` 10866 10867 // The entity type ARN. 10868 Arn *string `locationName:"arn" min:"1" type:"string"` 10869 10870 // Timestamp of when the entity type was created. 10871 CreatedTime *string `locationName:"createdTime" min:"11" type:"string"` 10872 10873 // The entity type description. 10874 Description *string `locationName:"description" min:"1" type:"string"` 10875 10876 // Timestamp of when the entity type was last updated. 10877 LastUpdatedTime *string `locationName:"lastUpdatedTime" min:"11" type:"string"` 10878 10879 // The entity type name. 10880 Name *string `locationName:"name" type:"string"` 10881 } 10882 10883 // String returns the string representation. 10884 // 10885 // API parameter values that are decorated as "sensitive" in the API will not 10886 // be included in the string output. The member name will be present, but the 10887 // value will be replaced with "sensitive". 10888 func (s EntityType) String() string { 10889 return awsutil.Prettify(s) 10890 } 10891 10892 // GoString returns the string representation. 10893 // 10894 // API parameter values that are decorated as "sensitive" in the API will not 10895 // be included in the string output. The member name will be present, but the 10896 // value will be replaced with "sensitive". 10897 func (s EntityType) GoString() string { 10898 return s.String() 10899 } 10900 10901 // SetArn sets the Arn field's value. 10902 func (s *EntityType) SetArn(v string) *EntityType { 10903 s.Arn = &v 10904 return s 10905 } 10906 10907 // SetCreatedTime sets the CreatedTime field's value. 10908 func (s *EntityType) SetCreatedTime(v string) *EntityType { 10909 s.CreatedTime = &v 10910 return s 10911 } 10912 10913 // SetDescription sets the Description field's value. 10914 func (s *EntityType) SetDescription(v string) *EntityType { 10915 s.Description = &v 10916 return s 10917 } 10918 10919 // SetLastUpdatedTime sets the LastUpdatedTime field's value. 10920 func (s *EntityType) SetLastUpdatedTime(v string) *EntityType { 10921 s.LastUpdatedTime = &v 10922 return s 10923 } 10924 10925 // SetName sets the Name field's value. 10926 func (s *EntityType) SetName(v string) *EntityType { 10927 s.Name = &v 10928 return s 10929 } 10930 10931 // The event details. 10932 type Event struct { 10933 _ struct{} `type:"structure"` 10934 10935 // The label associated with the event. 10936 CurrentLabel *string `locationName:"currentLabel" type:"string"` 10937 10938 // The event entities. 10939 Entities []*Entity `locationName:"entities" type:"list"` 10940 10941 // The event ID. 10942 EventId *string `locationName:"eventId" type:"string"` 10943 10944 // The timestamp that defines when the event under evaluation occurred. The 10945 // timestamp must be specified using ISO 8601 standard in UTC. 10946 EventTimestamp *string `locationName:"eventTimestamp" type:"string"` 10947 10948 // The event type. 10949 EventTypeName *string `locationName:"eventTypeName" type:"string"` 10950 10951 // Names of the event type's variables you defined in Amazon Fraud Detector 10952 // to represent data elements and their corresponding values for the event you 10953 // are sending for evaluation. 10954 EventVariables map[string]*string `locationName:"eventVariables" type:"map"` 10955 10956 // The timestamp associated with the label to update. The timestamp must be 10957 // specified using ISO 8601 standard in UTC. 10958 LabelTimestamp *string `locationName:"labelTimestamp" type:"string"` 10959 } 10960 10961 // String returns the string representation. 10962 // 10963 // API parameter values that are decorated as "sensitive" in the API will not 10964 // be included in the string output. The member name will be present, but the 10965 // value will be replaced with "sensitive". 10966 func (s Event) String() string { 10967 return awsutil.Prettify(s) 10968 } 10969 10970 // GoString returns the string representation. 10971 // 10972 // API parameter values that are decorated as "sensitive" in the API will not 10973 // be included in the string output. The member name will be present, but the 10974 // value will be replaced with "sensitive". 10975 func (s Event) GoString() string { 10976 return s.String() 10977 } 10978 10979 // SetCurrentLabel sets the CurrentLabel field's value. 10980 func (s *Event) SetCurrentLabel(v string) *Event { 10981 s.CurrentLabel = &v 10982 return s 10983 } 10984 10985 // SetEntities sets the Entities field's value. 10986 func (s *Event) SetEntities(v []*Entity) *Event { 10987 s.Entities = v 10988 return s 10989 } 10990 10991 // SetEventId sets the EventId field's value. 10992 func (s *Event) SetEventId(v string) *Event { 10993 s.EventId = &v 10994 return s 10995 } 10996 10997 // SetEventTimestamp sets the EventTimestamp field's value. 10998 func (s *Event) SetEventTimestamp(v string) *Event { 10999 s.EventTimestamp = &v 11000 return s 11001 } 11002 11003 // SetEventTypeName sets the EventTypeName field's value. 11004 func (s *Event) SetEventTypeName(v string) *Event { 11005 s.EventTypeName = &v 11006 return s 11007 } 11008 11009 // SetEventVariables sets the EventVariables field's value. 11010 func (s *Event) SetEventVariables(v map[string]*string) *Event { 11011 s.EventVariables = v 11012 return s 11013 } 11014 11015 // SetLabelTimestamp sets the LabelTimestamp field's value. 11016 func (s *Event) SetLabelTimestamp(v string) *Event { 11017 s.LabelTimestamp = &v 11018 return s 11019 } 11020 11021 // The event type details. 11022 type EventType struct { 11023 _ struct{} `type:"structure" sensitive:"true"` 11024 11025 // The entity type ARN. 11026 Arn *string `locationName:"arn" min:"1" type:"string"` 11027 11028 // Timestamp of when the event type was created. 11029 CreatedTime *string `locationName:"createdTime" min:"11" type:"string"` 11030 11031 // The event type description. 11032 Description *string `locationName:"description" min:"1" type:"string"` 11033 11034 // The event type entity types. 11035 EntityTypes []*string `locationName:"entityTypes" min:"1" type:"list"` 11036 11037 // If Enabled, Amazon Fraud Detector stores event data when you generate a prediction 11038 // and uses that data to update calculated variables in near real-time. Amazon 11039 // Fraud Detector uses this data, known as INGESTED_EVENTS, to train your model 11040 // and improve fraud predictions. 11041 EventIngestion *string `locationName:"eventIngestion" type:"string" enum:"EventIngestion"` 11042 11043 // The event type event variables. 11044 EventVariables []*string `locationName:"eventVariables" type:"list"` 11045 11046 // Data about the stored events. 11047 IngestedEventStatistics *IngestedEventStatistics `locationName:"ingestedEventStatistics" type:"structure"` 11048 11049 // The event type labels. 11050 Labels []*string `locationName:"labels" type:"list"` 11051 11052 // Timestamp of when the event type was last updated. 11053 LastUpdatedTime *string `locationName:"lastUpdatedTime" min:"11" type:"string"` 11054 11055 // The event type name. 11056 Name *string `locationName:"name" type:"string"` 11057 } 11058 11059 // String returns the string representation. 11060 // 11061 // API parameter values that are decorated as "sensitive" in the API will not 11062 // be included in the string output. The member name will be present, but the 11063 // value will be replaced with "sensitive". 11064 func (s EventType) String() string { 11065 return awsutil.Prettify(s) 11066 } 11067 11068 // GoString returns the string representation. 11069 // 11070 // API parameter values that are decorated as "sensitive" in the API will not 11071 // be included in the string output. The member name will be present, but the 11072 // value will be replaced with "sensitive". 11073 func (s EventType) GoString() string { 11074 return s.String() 11075 } 11076 11077 // SetArn sets the Arn field's value. 11078 func (s *EventType) SetArn(v string) *EventType { 11079 s.Arn = &v 11080 return s 11081 } 11082 11083 // SetCreatedTime sets the CreatedTime field's value. 11084 func (s *EventType) SetCreatedTime(v string) *EventType { 11085 s.CreatedTime = &v 11086 return s 11087 } 11088 11089 // SetDescription sets the Description field's value. 11090 func (s *EventType) SetDescription(v string) *EventType { 11091 s.Description = &v 11092 return s 11093 } 11094 11095 // SetEntityTypes sets the EntityTypes field's value. 11096 func (s *EventType) SetEntityTypes(v []*string) *EventType { 11097 s.EntityTypes = v 11098 return s 11099 } 11100 11101 // SetEventIngestion sets the EventIngestion field's value. 11102 func (s *EventType) SetEventIngestion(v string) *EventType { 11103 s.EventIngestion = &v 11104 return s 11105 } 11106 11107 // SetEventVariables sets the EventVariables field's value. 11108 func (s *EventType) SetEventVariables(v []*string) *EventType { 11109 s.EventVariables = v 11110 return s 11111 } 11112 11113 // SetIngestedEventStatistics sets the IngestedEventStatistics field's value. 11114 func (s *EventType) SetIngestedEventStatistics(v *IngestedEventStatistics) *EventType { 11115 s.IngestedEventStatistics = v 11116 return s 11117 } 11118 11119 // SetLabels sets the Labels field's value. 11120 func (s *EventType) SetLabels(v []*string) *EventType { 11121 s.Labels = v 11122 return s 11123 } 11124 11125 // SetLastUpdatedTime sets the LastUpdatedTime field's value. 11126 func (s *EventType) SetLastUpdatedTime(v string) *EventType { 11127 s.LastUpdatedTime = &v 11128 return s 11129 } 11130 11131 // SetName sets the Name field's value. 11132 func (s *EventType) SetName(v string) *EventType { 11133 s.Name = &v 11134 return s 11135 } 11136 11137 // Details for the external events data used for model version training. 11138 type ExternalEventsDetail struct { 11139 _ struct{} `type:"structure"` 11140 11141 // The ARN of the role that provides Amazon Fraud Detector access to the data 11142 // location. 11143 // 11144 // DataAccessRoleArn is a required field 11145 DataAccessRoleArn *string `locationName:"dataAccessRoleArn" min:"1" type:"string" required:"true"` 11146 11147 // The Amazon S3 bucket location for the data. 11148 // 11149 // DataLocation is a required field 11150 DataLocation *string `locationName:"dataLocation" min:"1" type:"string" required:"true"` 11151 } 11152 11153 // String returns the string representation. 11154 // 11155 // API parameter values that are decorated as "sensitive" in the API will not 11156 // be included in the string output. The member name will be present, but the 11157 // value will be replaced with "sensitive". 11158 func (s ExternalEventsDetail) String() string { 11159 return awsutil.Prettify(s) 11160 } 11161 11162 // GoString returns the string representation. 11163 // 11164 // API parameter values that are decorated as "sensitive" in the API will not 11165 // be included in the string output. The member name will be present, but the 11166 // value will be replaced with "sensitive". 11167 func (s ExternalEventsDetail) GoString() string { 11168 return s.String() 11169 } 11170 11171 // Validate inspects the fields of the type to determine if they are valid. 11172 func (s *ExternalEventsDetail) Validate() error { 11173 invalidParams := request.ErrInvalidParams{Context: "ExternalEventsDetail"} 11174 if s.DataAccessRoleArn == nil { 11175 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 11176 } 11177 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 1 { 11178 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 1)) 11179 } 11180 if s.DataLocation == nil { 11181 invalidParams.Add(request.NewErrParamRequired("DataLocation")) 11182 } 11183 if s.DataLocation != nil && len(*s.DataLocation) < 1 { 11184 invalidParams.Add(request.NewErrParamMinLen("DataLocation", 1)) 11185 } 11186 11187 if invalidParams.Len() > 0 { 11188 return invalidParams 11189 } 11190 return nil 11191 } 11192 11193 // SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 11194 func (s *ExternalEventsDetail) SetDataAccessRoleArn(v string) *ExternalEventsDetail { 11195 s.DataAccessRoleArn = &v 11196 return s 11197 } 11198 11199 // SetDataLocation sets the DataLocation field's value. 11200 func (s *ExternalEventsDetail) SetDataLocation(v string) *ExternalEventsDetail { 11201 s.DataLocation = &v 11202 return s 11203 } 11204 11205 // The Amazon SageMaker model. 11206 type ExternalModel struct { 11207 _ struct{} `type:"structure"` 11208 11209 // The model ARN. 11210 Arn *string `locationName:"arn" min:"1" type:"string"` 11211 11212 // Timestamp of when the model was last created. 11213 CreatedTime *string `locationName:"createdTime" min:"11" type:"string"` 11214 11215 // The input configuration. 11216 InputConfiguration *ModelInputConfiguration `locationName:"inputConfiguration" type:"structure"` 11217 11218 // The role used to invoke the model. 11219 InvokeModelEndpointRoleArn *string `locationName:"invokeModelEndpointRoleArn" type:"string"` 11220 11221 // Timestamp of when the model was last updated. 11222 LastUpdatedTime *string `locationName:"lastUpdatedTime" min:"11" type:"string"` 11223 11224 // The Amazon SageMaker model endpoints. 11225 ModelEndpoint *string `locationName:"modelEndpoint" type:"string"` 11226 11227 // The Amazon Fraud Detector status for the external model endpoint 11228 ModelEndpointStatus *string `locationName:"modelEndpointStatus" type:"string" enum:"ModelEndpointStatus"` 11229 11230 // The source of the model. 11231 ModelSource *string `locationName:"modelSource" type:"string" enum:"ModelSource"` 11232 11233 // The output configuration. 11234 OutputConfiguration *ModelOutputConfiguration `locationName:"outputConfiguration" type:"structure"` 11235 } 11236 11237 // String returns the string representation. 11238 // 11239 // API parameter values that are decorated as "sensitive" in the API will not 11240 // be included in the string output. The member name will be present, but the 11241 // value will be replaced with "sensitive". 11242 func (s ExternalModel) String() string { 11243 return awsutil.Prettify(s) 11244 } 11245 11246 // GoString returns the string representation. 11247 // 11248 // API parameter values that are decorated as "sensitive" in the API will not 11249 // be included in the string output. The member name will be present, but the 11250 // value will be replaced with "sensitive". 11251 func (s ExternalModel) GoString() string { 11252 return s.String() 11253 } 11254 11255 // SetArn sets the Arn field's value. 11256 func (s *ExternalModel) SetArn(v string) *ExternalModel { 11257 s.Arn = &v 11258 return s 11259 } 11260 11261 // SetCreatedTime sets the CreatedTime field's value. 11262 func (s *ExternalModel) SetCreatedTime(v string) *ExternalModel { 11263 s.CreatedTime = &v 11264 return s 11265 } 11266 11267 // SetInputConfiguration sets the InputConfiguration field's value. 11268 func (s *ExternalModel) SetInputConfiguration(v *ModelInputConfiguration) *ExternalModel { 11269 s.InputConfiguration = v 11270 return s 11271 } 11272 11273 // SetInvokeModelEndpointRoleArn sets the InvokeModelEndpointRoleArn field's value. 11274 func (s *ExternalModel) SetInvokeModelEndpointRoleArn(v string) *ExternalModel { 11275 s.InvokeModelEndpointRoleArn = &v 11276 return s 11277 } 11278 11279 // SetLastUpdatedTime sets the LastUpdatedTime field's value. 11280 func (s *ExternalModel) SetLastUpdatedTime(v string) *ExternalModel { 11281 s.LastUpdatedTime = &v 11282 return s 11283 } 11284 11285 // SetModelEndpoint sets the ModelEndpoint field's value. 11286 func (s *ExternalModel) SetModelEndpoint(v string) *ExternalModel { 11287 s.ModelEndpoint = &v 11288 return s 11289 } 11290 11291 // SetModelEndpointStatus sets the ModelEndpointStatus field's value. 11292 func (s *ExternalModel) SetModelEndpointStatus(v string) *ExternalModel { 11293 s.ModelEndpointStatus = &v 11294 return s 11295 } 11296 11297 // SetModelSource sets the ModelSource field's value. 11298 func (s *ExternalModel) SetModelSource(v string) *ExternalModel { 11299 s.ModelSource = &v 11300 return s 11301 } 11302 11303 // SetOutputConfiguration sets the OutputConfiguration field's value. 11304 func (s *ExternalModel) SetOutputConfiguration(v *ModelOutputConfiguration) *ExternalModel { 11305 s.OutputConfiguration = v 11306 return s 11307 } 11308 11309 // The fraud prediction scores from Amazon SageMaker model. 11310 type ExternalModelOutputs struct { 11311 _ struct{} `type:"structure"` 11312 11313 // The Amazon SageMaker model. 11314 ExternalModel *ExternalModelSummary `locationName:"externalModel" type:"structure"` 11315 11316 // The fraud prediction scores from Amazon SageMaker model. 11317 Outputs map[string]*string `locationName:"outputs" type:"map"` 11318 } 11319 11320 // String returns the string representation. 11321 // 11322 // API parameter values that are decorated as "sensitive" in the API will not 11323 // be included in the string output. The member name will be present, but the 11324 // value will be replaced with "sensitive". 11325 func (s ExternalModelOutputs) String() string { 11326 return awsutil.Prettify(s) 11327 } 11328 11329 // GoString returns the string representation. 11330 // 11331 // API parameter values that are decorated as "sensitive" in the API will not 11332 // be included in the string output. The member name will be present, but the 11333 // value will be replaced with "sensitive". 11334 func (s ExternalModelOutputs) GoString() string { 11335 return s.String() 11336 } 11337 11338 // SetExternalModel sets the ExternalModel field's value. 11339 func (s *ExternalModelOutputs) SetExternalModel(v *ExternalModelSummary) *ExternalModelOutputs { 11340 s.ExternalModel = v 11341 return s 11342 } 11343 11344 // SetOutputs sets the Outputs field's value. 11345 func (s *ExternalModelOutputs) SetOutputs(v map[string]*string) *ExternalModelOutputs { 11346 s.Outputs = v 11347 return s 11348 } 11349 11350 // The Amazon SageMaker model. 11351 type ExternalModelSummary struct { 11352 _ struct{} `type:"structure"` 11353 11354 // The endpoint of the Amazon SageMaker model. 11355 ModelEndpoint *string `locationName:"modelEndpoint" type:"string"` 11356 11357 // The source of the model. 11358 ModelSource *string `locationName:"modelSource" type:"string" enum:"ModelSource"` 11359 } 11360 11361 // String returns the string representation. 11362 // 11363 // API parameter values that are decorated as "sensitive" in the API will not 11364 // be included in the string output. The member name will be present, but the 11365 // value will be replaced with "sensitive". 11366 func (s ExternalModelSummary) String() string { 11367 return awsutil.Prettify(s) 11368 } 11369 11370 // GoString returns the string representation. 11371 // 11372 // API parameter values that are decorated as "sensitive" in the API will not 11373 // be included in the string output. The member name will be present, but the 11374 // value will be replaced with "sensitive". 11375 func (s ExternalModelSummary) GoString() string { 11376 return s.String() 11377 } 11378 11379 // SetModelEndpoint sets the ModelEndpoint field's value. 11380 func (s *ExternalModelSummary) SetModelEndpoint(v string) *ExternalModelSummary { 11381 s.ModelEndpoint = &v 11382 return s 11383 } 11384 11385 // SetModelSource sets the ModelSource field's value. 11386 func (s *ExternalModelSummary) SetModelSource(v string) *ExternalModelSummary { 11387 s.ModelSource = &v 11388 return s 11389 } 11390 11391 // The message details. 11392 type FieldValidationMessage struct { 11393 _ struct{} `type:"structure"` 11394 11395 // The message content. 11396 Content *string `locationName:"content" type:"string"` 11397 11398 // The field name. 11399 FieldName *string `locationName:"fieldName" type:"string"` 11400 11401 // The message ID. 11402 Identifier *string `locationName:"identifier" type:"string"` 11403 11404 // The message title. 11405 Title *string `locationName:"title" type:"string"` 11406 11407 // The message type. 11408 Type *string `locationName:"type" type:"string"` 11409 } 11410 11411 // String returns the string representation. 11412 // 11413 // API parameter values that are decorated as "sensitive" in the API will not 11414 // be included in the string output. The member name will be present, but the 11415 // value will be replaced with "sensitive". 11416 func (s FieldValidationMessage) String() string { 11417 return awsutil.Prettify(s) 11418 } 11419 11420 // GoString returns the string representation. 11421 // 11422 // API parameter values that are decorated as "sensitive" in the API will not 11423 // be included in the string output. The member name will be present, but the 11424 // value will be replaced with "sensitive". 11425 func (s FieldValidationMessage) GoString() string { 11426 return s.String() 11427 } 11428 11429 // SetContent sets the Content field's value. 11430 func (s *FieldValidationMessage) SetContent(v string) *FieldValidationMessage { 11431 s.Content = &v 11432 return s 11433 } 11434 11435 // SetFieldName sets the FieldName field's value. 11436 func (s *FieldValidationMessage) SetFieldName(v string) *FieldValidationMessage { 11437 s.FieldName = &v 11438 return s 11439 } 11440 11441 // SetIdentifier sets the Identifier field's value. 11442 func (s *FieldValidationMessage) SetIdentifier(v string) *FieldValidationMessage { 11443 s.Identifier = &v 11444 return s 11445 } 11446 11447 // SetTitle sets the Title field's value. 11448 func (s *FieldValidationMessage) SetTitle(v string) *FieldValidationMessage { 11449 s.Title = &v 11450 return s 11451 } 11452 11453 // SetType sets the Type field's value. 11454 func (s *FieldValidationMessage) SetType(v string) *FieldValidationMessage { 11455 s.Type = &v 11456 return s 11457 } 11458 11459 // The message details. 11460 type FileValidationMessage struct { 11461 _ struct{} `type:"structure"` 11462 11463 // The message content. 11464 Content *string `locationName:"content" type:"string"` 11465 11466 // The message title. 11467 Title *string `locationName:"title" type:"string"` 11468 11469 // The message type. 11470 Type *string `locationName:"type" type:"string"` 11471 } 11472 11473 // String returns the string representation. 11474 // 11475 // API parameter values that are decorated as "sensitive" in the API will not 11476 // be included in the string output. The member name will be present, but the 11477 // value will be replaced with "sensitive". 11478 func (s FileValidationMessage) String() string { 11479 return awsutil.Prettify(s) 11480 } 11481 11482 // GoString returns the string representation. 11483 // 11484 // API parameter values that are decorated as "sensitive" in the API will not 11485 // be included in the string output. The member name will be present, but the 11486 // value will be replaced with "sensitive". 11487 func (s FileValidationMessage) GoString() string { 11488 return s.String() 11489 } 11490 11491 // SetContent sets the Content field's value. 11492 func (s *FileValidationMessage) SetContent(v string) *FileValidationMessage { 11493 s.Content = &v 11494 return s 11495 } 11496 11497 // SetTitle sets the Title field's value. 11498 func (s *FileValidationMessage) SetTitle(v string) *FileValidationMessage { 11499 s.Title = &v 11500 return s 11501 } 11502 11503 // SetType sets the Type field's value. 11504 func (s *FileValidationMessage) SetType(v string) *FileValidationMessage { 11505 s.Type = &v 11506 return s 11507 } 11508 11509 type GetBatchImportJobsInput struct { 11510 _ struct{} `type:"structure"` 11511 11512 // The ID of the batch import job to get. 11513 JobId *string `locationName:"jobId" min:"1" type:"string"` 11514 11515 // The maximum number of objects to return for request. 11516 MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` 11517 11518 // The next token from the previous request. 11519 NextToken *string `locationName:"nextToken" type:"string"` 11520 } 11521 11522 // String returns the string representation. 11523 // 11524 // API parameter values that are decorated as "sensitive" in the API will not 11525 // be included in the string output. The member name will be present, but the 11526 // value will be replaced with "sensitive". 11527 func (s GetBatchImportJobsInput) String() string { 11528 return awsutil.Prettify(s) 11529 } 11530 11531 // GoString returns the string representation. 11532 // 11533 // API parameter values that are decorated as "sensitive" in the API will not 11534 // be included in the string output. The member name will be present, but the 11535 // value will be replaced with "sensitive". 11536 func (s GetBatchImportJobsInput) GoString() string { 11537 return s.String() 11538 } 11539 11540 // Validate inspects the fields of the type to determine if they are valid. 11541 func (s *GetBatchImportJobsInput) Validate() error { 11542 invalidParams := request.ErrInvalidParams{Context: "GetBatchImportJobsInput"} 11543 if s.JobId != nil && len(*s.JobId) < 1 { 11544 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 11545 } 11546 if s.MaxResults != nil && *s.MaxResults < 1 { 11547 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 11548 } 11549 11550 if invalidParams.Len() > 0 { 11551 return invalidParams 11552 } 11553 return nil 11554 } 11555 11556 // SetJobId sets the JobId field's value. 11557 func (s *GetBatchImportJobsInput) SetJobId(v string) *GetBatchImportJobsInput { 11558 s.JobId = &v 11559 return s 11560 } 11561 11562 // SetMaxResults sets the MaxResults field's value. 11563 func (s *GetBatchImportJobsInput) SetMaxResults(v int64) *GetBatchImportJobsInput { 11564 s.MaxResults = &v 11565 return s 11566 } 11567 11568 // SetNextToken sets the NextToken field's value. 11569 func (s *GetBatchImportJobsInput) SetNextToken(v string) *GetBatchImportJobsInput { 11570 s.NextToken = &v 11571 return s 11572 } 11573 11574 type GetBatchImportJobsOutput struct { 11575 _ struct{} `type:"structure"` 11576 11577 // An array containing the details of each batch import job. 11578 BatchImports []*BatchImport `locationName:"batchImports" type:"list"` 11579 11580 // The next token for the subsequent resquest. 11581 NextToken *string `locationName:"nextToken" type:"string"` 11582 } 11583 11584 // String returns the string representation. 11585 // 11586 // API parameter values that are decorated as "sensitive" in the API will not 11587 // be included in the string output. The member name will be present, but the 11588 // value will be replaced with "sensitive". 11589 func (s GetBatchImportJobsOutput) String() string { 11590 return awsutil.Prettify(s) 11591 } 11592 11593 // GoString returns the string representation. 11594 // 11595 // API parameter values that are decorated as "sensitive" in the API will not 11596 // be included in the string output. The member name will be present, but the 11597 // value will be replaced with "sensitive". 11598 func (s GetBatchImportJobsOutput) GoString() string { 11599 return s.String() 11600 } 11601 11602 // SetBatchImports sets the BatchImports field's value. 11603 func (s *GetBatchImportJobsOutput) SetBatchImports(v []*BatchImport) *GetBatchImportJobsOutput { 11604 s.BatchImports = v 11605 return s 11606 } 11607 11608 // SetNextToken sets the NextToken field's value. 11609 func (s *GetBatchImportJobsOutput) SetNextToken(v string) *GetBatchImportJobsOutput { 11610 s.NextToken = &v 11611 return s 11612 } 11613 11614 type GetBatchPredictionJobsInput struct { 11615 _ struct{} `type:"structure"` 11616 11617 // The batch prediction job for which to get the details. 11618 JobId *string `locationName:"jobId" min:"1" type:"string"` 11619 11620 // The maximum number of objects to return for the request. 11621 MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` 11622 11623 // The next token from the previous request. 11624 NextToken *string `locationName:"nextToken" type:"string"` 11625 } 11626 11627 // String returns the string representation. 11628 // 11629 // API parameter values that are decorated as "sensitive" in the API will not 11630 // be included in the string output. The member name will be present, but the 11631 // value will be replaced with "sensitive". 11632 func (s GetBatchPredictionJobsInput) String() string { 11633 return awsutil.Prettify(s) 11634 } 11635 11636 // GoString returns the string representation. 11637 // 11638 // API parameter values that are decorated as "sensitive" in the API will not 11639 // be included in the string output. The member name will be present, but the 11640 // value will be replaced with "sensitive". 11641 func (s GetBatchPredictionJobsInput) GoString() string { 11642 return s.String() 11643 } 11644 11645 // Validate inspects the fields of the type to determine if they are valid. 11646 func (s *GetBatchPredictionJobsInput) Validate() error { 11647 invalidParams := request.ErrInvalidParams{Context: "GetBatchPredictionJobsInput"} 11648 if s.JobId != nil && len(*s.JobId) < 1 { 11649 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 11650 } 11651 if s.MaxResults != nil && *s.MaxResults < 1 { 11652 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 11653 } 11654 11655 if invalidParams.Len() > 0 { 11656 return invalidParams 11657 } 11658 return nil 11659 } 11660 11661 // SetJobId sets the JobId field's value. 11662 func (s *GetBatchPredictionJobsInput) SetJobId(v string) *GetBatchPredictionJobsInput { 11663 s.JobId = &v 11664 return s 11665 } 11666 11667 // SetMaxResults sets the MaxResults field's value. 11668 func (s *GetBatchPredictionJobsInput) SetMaxResults(v int64) *GetBatchPredictionJobsInput { 11669 s.MaxResults = &v 11670 return s 11671 } 11672 11673 // SetNextToken sets the NextToken field's value. 11674 func (s *GetBatchPredictionJobsInput) SetNextToken(v string) *GetBatchPredictionJobsInput { 11675 s.NextToken = &v 11676 return s 11677 } 11678 11679 type GetBatchPredictionJobsOutput struct { 11680 _ struct{} `type:"structure"` 11681 11682 // An array containing the details of each batch prediction job. 11683 BatchPredictions []*BatchPrediction `locationName:"batchPredictions" type:"list"` 11684 11685 // The next token for the subsequent request. 11686 NextToken *string `locationName:"nextToken" type:"string"` 11687 } 11688 11689 // String returns the string representation. 11690 // 11691 // API parameter values that are decorated as "sensitive" in the API will not 11692 // be included in the string output. The member name will be present, but the 11693 // value will be replaced with "sensitive". 11694 func (s GetBatchPredictionJobsOutput) String() string { 11695 return awsutil.Prettify(s) 11696 } 11697 11698 // GoString returns the string representation. 11699 // 11700 // API parameter values that are decorated as "sensitive" in the API will not 11701 // be included in the string output. The member name will be present, but the 11702 // value will be replaced with "sensitive". 11703 func (s GetBatchPredictionJobsOutput) GoString() string { 11704 return s.String() 11705 } 11706 11707 // SetBatchPredictions sets the BatchPredictions field's value. 11708 func (s *GetBatchPredictionJobsOutput) SetBatchPredictions(v []*BatchPrediction) *GetBatchPredictionJobsOutput { 11709 s.BatchPredictions = v 11710 return s 11711 } 11712 11713 // SetNextToken sets the NextToken field's value. 11714 func (s *GetBatchPredictionJobsOutput) SetNextToken(v string) *GetBatchPredictionJobsOutput { 11715 s.NextToken = &v 11716 return s 11717 } 11718 11719 type GetDeleteEventsByEventTypeStatusInput struct { 11720 _ struct{} `type:"structure"` 11721 11722 // Name of event type for which to get the deletion status. 11723 // 11724 // EventTypeName is a required field 11725 EventTypeName *string `locationName:"eventTypeName" min:"1" type:"string" required:"true"` 11726 } 11727 11728 // String returns the string representation. 11729 // 11730 // API parameter values that are decorated as "sensitive" in the API will not 11731 // be included in the string output. The member name will be present, but the 11732 // value will be replaced with "sensitive". 11733 func (s GetDeleteEventsByEventTypeStatusInput) String() string { 11734 return awsutil.Prettify(s) 11735 } 11736 11737 // GoString returns the string representation. 11738 // 11739 // API parameter values that are decorated as "sensitive" in the API will not 11740 // be included in the string output. The member name will be present, but the 11741 // value will be replaced with "sensitive". 11742 func (s GetDeleteEventsByEventTypeStatusInput) GoString() string { 11743 return s.String() 11744 } 11745 11746 // Validate inspects the fields of the type to determine if they are valid. 11747 func (s *GetDeleteEventsByEventTypeStatusInput) Validate() error { 11748 invalidParams := request.ErrInvalidParams{Context: "GetDeleteEventsByEventTypeStatusInput"} 11749 if s.EventTypeName == nil { 11750 invalidParams.Add(request.NewErrParamRequired("EventTypeName")) 11751 } 11752 if s.EventTypeName != nil && len(*s.EventTypeName) < 1 { 11753 invalidParams.Add(request.NewErrParamMinLen("EventTypeName", 1)) 11754 } 11755 11756 if invalidParams.Len() > 0 { 11757 return invalidParams 11758 } 11759 return nil 11760 } 11761 11762 // SetEventTypeName sets the EventTypeName field's value. 11763 func (s *GetDeleteEventsByEventTypeStatusInput) SetEventTypeName(v string) *GetDeleteEventsByEventTypeStatusInput { 11764 s.EventTypeName = &v 11765 return s 11766 } 11767 11768 type GetDeleteEventsByEventTypeStatusOutput struct { 11769 _ struct{} `type:"structure"` 11770 11771 // The event type name. 11772 EventTypeName *string `locationName:"eventTypeName" min:"1" type:"string"` 11773 11774 // The deletion status. 11775 EventsDeletionStatus *string `locationName:"eventsDeletionStatus" type:"string" enum:"AsyncJobStatus"` 11776 } 11777 11778 // String returns the string representation. 11779 // 11780 // API parameter values that are decorated as "sensitive" in the API will not 11781 // be included in the string output. The member name will be present, but the 11782 // value will be replaced with "sensitive". 11783 func (s GetDeleteEventsByEventTypeStatusOutput) String() string { 11784 return awsutil.Prettify(s) 11785 } 11786 11787 // GoString returns the string representation. 11788 // 11789 // API parameter values that are decorated as "sensitive" in the API will not 11790 // be included in the string output. The member name will be present, but the 11791 // value will be replaced with "sensitive". 11792 func (s GetDeleteEventsByEventTypeStatusOutput) GoString() string { 11793 return s.String() 11794 } 11795 11796 // SetEventTypeName sets the EventTypeName field's value. 11797 func (s *GetDeleteEventsByEventTypeStatusOutput) SetEventTypeName(v string) *GetDeleteEventsByEventTypeStatusOutput { 11798 s.EventTypeName = &v 11799 return s 11800 } 11801 11802 // SetEventsDeletionStatus sets the EventsDeletionStatus field's value. 11803 func (s *GetDeleteEventsByEventTypeStatusOutput) SetEventsDeletionStatus(v string) *GetDeleteEventsByEventTypeStatusOutput { 11804 s.EventsDeletionStatus = &v 11805 return s 11806 } 11807 11808 type GetDetectorVersionInput struct { 11809 _ struct{} `type:"structure"` 11810 11811 // The detector ID. 11812 // 11813 // DetectorId is a required field 11814 DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"` 11815 11816 // The detector version ID. 11817 // 11818 // DetectorVersionId is a required field 11819 DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string" required:"true"` 11820 } 11821 11822 // String returns the string representation. 11823 // 11824 // API parameter values that are decorated as "sensitive" in the API will not 11825 // be included in the string output. The member name will be present, but the 11826 // value will be replaced with "sensitive". 11827 func (s GetDetectorVersionInput) String() string { 11828 return awsutil.Prettify(s) 11829 } 11830 11831 // GoString returns the string representation. 11832 // 11833 // API parameter values that are decorated as "sensitive" in the API will not 11834 // be included in the string output. The member name will be present, but the 11835 // value will be replaced with "sensitive". 11836 func (s GetDetectorVersionInput) GoString() string { 11837 return s.String() 11838 } 11839 11840 // Validate inspects the fields of the type to determine if they are valid. 11841 func (s *GetDetectorVersionInput) Validate() error { 11842 invalidParams := request.ErrInvalidParams{Context: "GetDetectorVersionInput"} 11843 if s.DetectorId == nil { 11844 invalidParams.Add(request.NewErrParamRequired("DetectorId")) 11845 } 11846 if s.DetectorId != nil && len(*s.DetectorId) < 1 { 11847 invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) 11848 } 11849 if s.DetectorVersionId == nil { 11850 invalidParams.Add(request.NewErrParamRequired("DetectorVersionId")) 11851 } 11852 if s.DetectorVersionId != nil && len(*s.DetectorVersionId) < 1 { 11853 invalidParams.Add(request.NewErrParamMinLen("DetectorVersionId", 1)) 11854 } 11855 11856 if invalidParams.Len() > 0 { 11857 return invalidParams 11858 } 11859 return nil 11860 } 11861 11862 // SetDetectorId sets the DetectorId field's value. 11863 func (s *GetDetectorVersionInput) SetDetectorId(v string) *GetDetectorVersionInput { 11864 s.DetectorId = &v 11865 return s 11866 } 11867 11868 // SetDetectorVersionId sets the DetectorVersionId field's value. 11869 func (s *GetDetectorVersionInput) SetDetectorVersionId(v string) *GetDetectorVersionInput { 11870 s.DetectorVersionId = &v 11871 return s 11872 } 11873 11874 type GetDetectorVersionOutput struct { 11875 _ struct{} `type:"structure"` 11876 11877 // The detector version ARN. 11878 Arn *string `locationName:"arn" min:"1" type:"string"` 11879 11880 // The timestamp when the detector version was created. 11881 CreatedTime *string `locationName:"createdTime" min:"11" type:"string"` 11882 11883 // The detector version description. 11884 Description *string `locationName:"description" min:"1" type:"string"` 11885 11886 // The detector ID. 11887 DetectorId *string `locationName:"detectorId" min:"1" type:"string"` 11888 11889 // The detector version ID. 11890 DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string"` 11891 11892 // The Amazon SageMaker model endpoints included in the detector version. 11893 ExternalModelEndpoints []*string `locationName:"externalModelEndpoints" type:"list"` 11894 11895 // The timestamp when the detector version was last updated. 11896 LastUpdatedTime *string `locationName:"lastUpdatedTime" min:"11" type:"string"` 11897 11898 // The model versions included in the detector version. 11899 ModelVersions []*ModelVersion `locationName:"modelVersions" type:"list"` 11900 11901 // The execution mode of the rule in the dectector 11902 // 11903 // FIRST_MATCHED indicates that Amazon Fraud Detector evaluates rules sequentially, 11904 // first to last, stopping at the first matched rule. Amazon Fraud dectector 11905 // then provides the outcomes for that single rule. 11906 // 11907 // ALL_MATCHED indicates that Amazon Fraud Detector evaluates all rules and 11908 // returns the outcomes for all matched rules. You can define and edit the rule 11909 // mode at the detector version level, when it is in draft status. 11910 RuleExecutionMode *string `locationName:"ruleExecutionMode" type:"string" enum:"RuleExecutionMode"` 11911 11912 // The rules included in the detector version. 11913 Rules []*Rule `locationName:"rules" type:"list"` 11914 11915 // The status of the detector version. 11916 Status *string `locationName:"status" type:"string" enum:"DetectorVersionStatus"` 11917 } 11918 11919 // String returns the string representation. 11920 // 11921 // API parameter values that are decorated as "sensitive" in the API will not 11922 // be included in the string output. The member name will be present, but the 11923 // value will be replaced with "sensitive". 11924 func (s GetDetectorVersionOutput) String() string { 11925 return awsutil.Prettify(s) 11926 } 11927 11928 // GoString returns the string representation. 11929 // 11930 // API parameter values that are decorated as "sensitive" in the API will not 11931 // be included in the string output. The member name will be present, but the 11932 // value will be replaced with "sensitive". 11933 func (s GetDetectorVersionOutput) GoString() string { 11934 return s.String() 11935 } 11936 11937 // SetArn sets the Arn field's value. 11938 func (s *GetDetectorVersionOutput) SetArn(v string) *GetDetectorVersionOutput { 11939 s.Arn = &v 11940 return s 11941 } 11942 11943 // SetCreatedTime sets the CreatedTime field's value. 11944 func (s *GetDetectorVersionOutput) SetCreatedTime(v string) *GetDetectorVersionOutput { 11945 s.CreatedTime = &v 11946 return s 11947 } 11948 11949 // SetDescription sets the Description field's value. 11950 func (s *GetDetectorVersionOutput) SetDescription(v string) *GetDetectorVersionOutput { 11951 s.Description = &v 11952 return s 11953 } 11954 11955 // SetDetectorId sets the DetectorId field's value. 11956 func (s *GetDetectorVersionOutput) SetDetectorId(v string) *GetDetectorVersionOutput { 11957 s.DetectorId = &v 11958 return s 11959 } 11960 11961 // SetDetectorVersionId sets the DetectorVersionId field's value. 11962 func (s *GetDetectorVersionOutput) SetDetectorVersionId(v string) *GetDetectorVersionOutput { 11963 s.DetectorVersionId = &v 11964 return s 11965 } 11966 11967 // SetExternalModelEndpoints sets the ExternalModelEndpoints field's value. 11968 func (s *GetDetectorVersionOutput) SetExternalModelEndpoints(v []*string) *GetDetectorVersionOutput { 11969 s.ExternalModelEndpoints = v 11970 return s 11971 } 11972 11973 // SetLastUpdatedTime sets the LastUpdatedTime field's value. 11974 func (s *GetDetectorVersionOutput) SetLastUpdatedTime(v string) *GetDetectorVersionOutput { 11975 s.LastUpdatedTime = &v 11976 return s 11977 } 11978 11979 // SetModelVersions sets the ModelVersions field's value. 11980 func (s *GetDetectorVersionOutput) SetModelVersions(v []*ModelVersion) *GetDetectorVersionOutput { 11981 s.ModelVersions = v 11982 return s 11983 } 11984 11985 // SetRuleExecutionMode sets the RuleExecutionMode field's value. 11986 func (s *GetDetectorVersionOutput) SetRuleExecutionMode(v string) *GetDetectorVersionOutput { 11987 s.RuleExecutionMode = &v 11988 return s 11989 } 11990 11991 // SetRules sets the Rules field's value. 11992 func (s *GetDetectorVersionOutput) SetRules(v []*Rule) *GetDetectorVersionOutput { 11993 s.Rules = v 11994 return s 11995 } 11996 11997 // SetStatus sets the Status field's value. 11998 func (s *GetDetectorVersionOutput) SetStatus(v string) *GetDetectorVersionOutput { 11999 s.Status = &v 12000 return s 12001 } 12002 12003 type GetDetectorsInput struct { 12004 _ struct{} `type:"structure"` 12005 12006 // The detector ID. 12007 DetectorId *string `locationName:"detectorId" min:"1" type:"string"` 12008 12009 // The maximum number of objects to return for the request. 12010 MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"` 12011 12012 // The next token for the subsequent request. 12013 NextToken *string `locationName:"nextToken" type:"string"` 12014 } 12015 12016 // String returns the string representation. 12017 // 12018 // API parameter values that are decorated as "sensitive" in the API will not 12019 // be included in the string output. The member name will be present, but the 12020 // value will be replaced with "sensitive". 12021 func (s GetDetectorsInput) String() string { 12022 return awsutil.Prettify(s) 12023 } 12024 12025 // GoString returns the string representation. 12026 // 12027 // API parameter values that are decorated as "sensitive" in the API will not 12028 // be included in the string output. The member name will be present, but the 12029 // value will be replaced with "sensitive". 12030 func (s GetDetectorsInput) GoString() string { 12031 return s.String() 12032 } 12033 12034 // Validate inspects the fields of the type to determine if they are valid. 12035 func (s *GetDetectorsInput) Validate() error { 12036 invalidParams := request.ErrInvalidParams{Context: "GetDetectorsInput"} 12037 if s.DetectorId != nil && len(*s.DetectorId) < 1 { 12038 invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) 12039 } 12040 if s.MaxResults != nil && *s.MaxResults < 5 { 12041 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) 12042 } 12043 12044 if invalidParams.Len() > 0 { 12045 return invalidParams 12046 } 12047 return nil 12048 } 12049 12050 // SetDetectorId sets the DetectorId field's value. 12051 func (s *GetDetectorsInput) SetDetectorId(v string) *GetDetectorsInput { 12052 s.DetectorId = &v 12053 return s 12054 } 12055 12056 // SetMaxResults sets the MaxResults field's value. 12057 func (s *GetDetectorsInput) SetMaxResults(v int64) *GetDetectorsInput { 12058 s.MaxResults = &v 12059 return s 12060 } 12061 12062 // SetNextToken sets the NextToken field's value. 12063 func (s *GetDetectorsInput) SetNextToken(v string) *GetDetectorsInput { 12064 s.NextToken = &v 12065 return s 12066 } 12067 12068 type GetDetectorsOutput struct { 12069 _ struct{} `type:"structure"` 12070 12071 // The detectors. 12072 Detectors []*Detector `locationName:"detectors" type:"list"` 12073 12074 // The next page token. 12075 NextToken *string `locationName:"nextToken" type:"string"` 12076 } 12077 12078 // String returns the string representation. 12079 // 12080 // API parameter values that are decorated as "sensitive" in the API will not 12081 // be included in the string output. The member name will be present, but the 12082 // value will be replaced with "sensitive". 12083 func (s GetDetectorsOutput) String() string { 12084 return awsutil.Prettify(s) 12085 } 12086 12087 // GoString returns the string representation. 12088 // 12089 // API parameter values that are decorated as "sensitive" in the API will not 12090 // be included in the string output. The member name will be present, but the 12091 // value will be replaced with "sensitive". 12092 func (s GetDetectorsOutput) GoString() string { 12093 return s.String() 12094 } 12095 12096 // SetDetectors sets the Detectors field's value. 12097 func (s *GetDetectorsOutput) SetDetectors(v []*Detector) *GetDetectorsOutput { 12098 s.Detectors = v 12099 return s 12100 } 12101 12102 // SetNextToken sets the NextToken field's value. 12103 func (s *GetDetectorsOutput) SetNextToken(v string) *GetDetectorsOutput { 12104 s.NextToken = &v 12105 return s 12106 } 12107 12108 type GetEntityTypesInput struct { 12109 _ struct{} `type:"structure"` 12110 12111 // The maximum number of objects to return for the request. 12112 MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"` 12113 12114 // The name. 12115 Name *string `locationName:"name" min:"1" type:"string"` 12116 12117 // The next token for the subsequent request. 12118 NextToken *string `locationName:"nextToken" type:"string"` 12119 } 12120 12121 // String returns the string representation. 12122 // 12123 // API parameter values that are decorated as "sensitive" in the API will not 12124 // be included in the string output. The member name will be present, but the 12125 // value will be replaced with "sensitive". 12126 func (s GetEntityTypesInput) String() string { 12127 return awsutil.Prettify(s) 12128 } 12129 12130 // GoString returns the string representation. 12131 // 12132 // API parameter values that are decorated as "sensitive" in the API will not 12133 // be included in the string output. The member name will be present, but the 12134 // value will be replaced with "sensitive". 12135 func (s GetEntityTypesInput) GoString() string { 12136 return s.String() 12137 } 12138 12139 // Validate inspects the fields of the type to determine if they are valid. 12140 func (s *GetEntityTypesInput) Validate() error { 12141 invalidParams := request.ErrInvalidParams{Context: "GetEntityTypesInput"} 12142 if s.MaxResults != nil && *s.MaxResults < 5 { 12143 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) 12144 } 12145 if s.Name != nil && len(*s.Name) < 1 { 12146 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 12147 } 12148 12149 if invalidParams.Len() > 0 { 12150 return invalidParams 12151 } 12152 return nil 12153 } 12154 12155 // SetMaxResults sets the MaxResults field's value. 12156 func (s *GetEntityTypesInput) SetMaxResults(v int64) *GetEntityTypesInput { 12157 s.MaxResults = &v 12158 return s 12159 } 12160 12161 // SetName sets the Name field's value. 12162 func (s *GetEntityTypesInput) SetName(v string) *GetEntityTypesInput { 12163 s.Name = &v 12164 return s 12165 } 12166 12167 // SetNextToken sets the NextToken field's value. 12168 func (s *GetEntityTypesInput) SetNextToken(v string) *GetEntityTypesInput { 12169 s.NextToken = &v 12170 return s 12171 } 12172 12173 type GetEntityTypesOutput struct { 12174 _ struct{} `type:"structure"` 12175 12176 // An array of entity types. 12177 EntityTypes []*EntityType `locationName:"entityTypes" type:"list"` 12178 12179 // The next page token. 12180 NextToken *string `locationName:"nextToken" type:"string"` 12181 } 12182 12183 // String returns the string representation. 12184 // 12185 // API parameter values that are decorated as "sensitive" in the API will not 12186 // be included in the string output. The member name will be present, but the 12187 // value will be replaced with "sensitive". 12188 func (s GetEntityTypesOutput) String() string { 12189 return awsutil.Prettify(s) 12190 } 12191 12192 // GoString returns the string representation. 12193 // 12194 // API parameter values that are decorated as "sensitive" in the API will not 12195 // be included in the string output. The member name will be present, but the 12196 // value will be replaced with "sensitive". 12197 func (s GetEntityTypesOutput) GoString() string { 12198 return s.String() 12199 } 12200 12201 // SetEntityTypes sets the EntityTypes field's value. 12202 func (s *GetEntityTypesOutput) SetEntityTypes(v []*EntityType) *GetEntityTypesOutput { 12203 s.EntityTypes = v 12204 return s 12205 } 12206 12207 // SetNextToken sets the NextToken field's value. 12208 func (s *GetEntityTypesOutput) SetNextToken(v string) *GetEntityTypesOutput { 12209 s.NextToken = &v 12210 return s 12211 } 12212 12213 type GetEventInput struct { 12214 _ struct{} `type:"structure"` 12215 12216 // The ID of the event to retrieve. 12217 // 12218 // EventId is a required field 12219 EventId *string `locationName:"eventId" type:"string" required:"true"` 12220 12221 // The event type of the event to retrieve. 12222 // 12223 // EventTypeName is a required field 12224 EventTypeName *string `locationName:"eventTypeName" type:"string" required:"true"` 12225 } 12226 12227 // String returns the string representation. 12228 // 12229 // API parameter values that are decorated as "sensitive" in the API will not 12230 // be included in the string output. The member name will be present, but the 12231 // value will be replaced with "sensitive". 12232 func (s GetEventInput) String() string { 12233 return awsutil.Prettify(s) 12234 } 12235 12236 // GoString returns the string representation. 12237 // 12238 // API parameter values that are decorated as "sensitive" in the API will not 12239 // be included in the string output. The member name will be present, but the 12240 // value will be replaced with "sensitive". 12241 func (s GetEventInput) GoString() string { 12242 return s.String() 12243 } 12244 12245 // Validate inspects the fields of the type to determine if they are valid. 12246 func (s *GetEventInput) Validate() error { 12247 invalidParams := request.ErrInvalidParams{Context: "GetEventInput"} 12248 if s.EventId == nil { 12249 invalidParams.Add(request.NewErrParamRequired("EventId")) 12250 } 12251 if s.EventTypeName == nil { 12252 invalidParams.Add(request.NewErrParamRequired("EventTypeName")) 12253 } 12254 12255 if invalidParams.Len() > 0 { 12256 return invalidParams 12257 } 12258 return nil 12259 } 12260 12261 // SetEventId sets the EventId field's value. 12262 func (s *GetEventInput) SetEventId(v string) *GetEventInput { 12263 s.EventId = &v 12264 return s 12265 } 12266 12267 // SetEventTypeName sets the EventTypeName field's value. 12268 func (s *GetEventInput) SetEventTypeName(v string) *GetEventInput { 12269 s.EventTypeName = &v 12270 return s 12271 } 12272 12273 type GetEventOutput struct { 12274 _ struct{} `type:"structure"` 12275 12276 // The details of the event. 12277 Event *Event `locationName:"event" type:"structure"` 12278 } 12279 12280 // String returns the string representation. 12281 // 12282 // API parameter values that are decorated as "sensitive" in the API will not 12283 // be included in the string output. The member name will be present, but the 12284 // value will be replaced with "sensitive". 12285 func (s GetEventOutput) String() string { 12286 return awsutil.Prettify(s) 12287 } 12288 12289 // GoString returns the string representation. 12290 // 12291 // API parameter values that are decorated as "sensitive" in the API will not 12292 // be included in the string output. The member name will be present, but the 12293 // value will be replaced with "sensitive". 12294 func (s GetEventOutput) GoString() string { 12295 return s.String() 12296 } 12297 12298 // SetEvent sets the Event field's value. 12299 func (s *GetEventOutput) SetEvent(v *Event) *GetEventOutput { 12300 s.Event = v 12301 return s 12302 } 12303 12304 type GetEventPredictionInput struct { 12305 _ struct{} `type:"structure"` 12306 12307 // The detector ID. 12308 // 12309 // DetectorId is a required field 12310 DetectorId *string `locationName:"detectorId" type:"string" required:"true"` 12311 12312 // The detector version ID. 12313 DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string"` 12314 12315 // The entity type (associated with the detector's event type) and specific 12316 // entity ID representing who performed the event. If an entity id is not available, 12317 // use "UNKNOWN." 12318 // 12319 // Entities is a required field 12320 Entities []*Entity `locationName:"entities" type:"list" required:"true"` 12321 12322 // The unique ID used to identify the event. 12323 // 12324 // EventId is a required field 12325 EventId *string `locationName:"eventId" type:"string" required:"true"` 12326 12327 // Timestamp that defines when the event under evaluation occurred. The timestamp 12328 // must be specified using ISO 8601 standard in UTC. 12329 // 12330 // EventTimestamp is a required field 12331 EventTimestamp *string `locationName:"eventTimestamp" min:"10" type:"string" required:"true"` 12332 12333 // The event type associated with the detector specified for the prediction. 12334 // 12335 // EventTypeName is a required field 12336 EventTypeName *string `locationName:"eventTypeName" type:"string" required:"true"` 12337 12338 // Names of the event type's variables you defined in Amazon Fraud Detector 12339 // to represent data elements and their corresponding values for the event you 12340 // are sending for evaluation. 12341 // 12342 // You must provide at least one eventVariable 12343 // 12344 // To ensure most accurate fraud prediction and to simplify your data preparation, 12345 // Amazon Fraud Detector will replace all missing variables or values as follows: 12346 // 12347 // For Amazon Fraud Detector trained models: 12348 // 12349 // If a null value is provided explicitly for a variable or if a variable is 12350 // missing, model will replace the null value or the missing variable (no variable 12351 // name in the eventVariables map) with calculated default mean/medians for 12352 // numeric variables and with special values for categorical variables. 12353 // 12354 // For imported SageMaker models: 12355 // 12356 // If a null value is provided explicitly for a variable, the model and rules 12357 // will use “null” as the value. If a variable is not provided (no variable 12358 // name in the eventVariables map), model and rules will use the default value 12359 // that is provided for the variable. 12360 // 12361 // EventVariables is a required field 12362 EventVariables map[string]*string `locationName:"eventVariables" min:"1" type:"map" required:"true"` 12363 12364 // The Amazon SageMaker model endpoint input data blobs. 12365 // 12366 // ExternalModelEndpointDataBlobs is a sensitive parameter and its value will be 12367 // replaced with "sensitive" in string returned by GetEventPredictionInput's 12368 // String and GoString methods. 12369 ExternalModelEndpointDataBlobs map[string]*ModelEndpointDataBlob `locationName:"externalModelEndpointDataBlobs" type:"map" sensitive:"true"` 12370 } 12371 12372 // String returns the string representation. 12373 // 12374 // API parameter values that are decorated as "sensitive" in the API will not 12375 // be included in the string output. The member name will be present, but the 12376 // value will be replaced with "sensitive". 12377 func (s GetEventPredictionInput) String() string { 12378 return awsutil.Prettify(s) 12379 } 12380 12381 // GoString returns the string representation. 12382 // 12383 // API parameter values that are decorated as "sensitive" in the API will not 12384 // be included in the string output. The member name will be present, but the 12385 // value will be replaced with "sensitive". 12386 func (s GetEventPredictionInput) GoString() string { 12387 return s.String() 12388 } 12389 12390 // Validate inspects the fields of the type to determine if they are valid. 12391 func (s *GetEventPredictionInput) Validate() error { 12392 invalidParams := request.ErrInvalidParams{Context: "GetEventPredictionInput"} 12393 if s.DetectorId == nil { 12394 invalidParams.Add(request.NewErrParamRequired("DetectorId")) 12395 } 12396 if s.DetectorVersionId != nil && len(*s.DetectorVersionId) < 1 { 12397 invalidParams.Add(request.NewErrParamMinLen("DetectorVersionId", 1)) 12398 } 12399 if s.Entities == nil { 12400 invalidParams.Add(request.NewErrParamRequired("Entities")) 12401 } 12402 if s.EventId == nil { 12403 invalidParams.Add(request.NewErrParamRequired("EventId")) 12404 } 12405 if s.EventTimestamp == nil { 12406 invalidParams.Add(request.NewErrParamRequired("EventTimestamp")) 12407 } 12408 if s.EventTimestamp != nil && len(*s.EventTimestamp) < 10 { 12409 invalidParams.Add(request.NewErrParamMinLen("EventTimestamp", 10)) 12410 } 12411 if s.EventTypeName == nil { 12412 invalidParams.Add(request.NewErrParamRequired("EventTypeName")) 12413 } 12414 if s.EventVariables == nil { 12415 invalidParams.Add(request.NewErrParamRequired("EventVariables")) 12416 } 12417 if s.EventVariables != nil && len(s.EventVariables) < 1 { 12418 invalidParams.Add(request.NewErrParamMinLen("EventVariables", 1)) 12419 } 12420 if s.Entities != nil { 12421 for i, v := range s.Entities { 12422 if v == nil { 12423 continue 12424 } 12425 if err := v.Validate(); err != nil { 12426 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entities", i), err.(request.ErrInvalidParams)) 12427 } 12428 } 12429 } 12430 if s.ExternalModelEndpointDataBlobs != nil { 12431 for i, v := range s.ExternalModelEndpointDataBlobs { 12432 if v == nil { 12433 continue 12434 } 12435 if err := v.Validate(); err != nil { 12436 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ExternalModelEndpointDataBlobs", i), err.(request.ErrInvalidParams)) 12437 } 12438 } 12439 } 12440 12441 if invalidParams.Len() > 0 { 12442 return invalidParams 12443 } 12444 return nil 12445 } 12446 12447 // SetDetectorId sets the DetectorId field's value. 12448 func (s *GetEventPredictionInput) SetDetectorId(v string) *GetEventPredictionInput { 12449 s.DetectorId = &v 12450 return s 12451 } 12452 12453 // SetDetectorVersionId sets the DetectorVersionId field's value. 12454 func (s *GetEventPredictionInput) SetDetectorVersionId(v string) *GetEventPredictionInput { 12455 s.DetectorVersionId = &v 12456 return s 12457 } 12458 12459 // SetEntities sets the Entities field's value. 12460 func (s *GetEventPredictionInput) SetEntities(v []*Entity) *GetEventPredictionInput { 12461 s.Entities = v 12462 return s 12463 } 12464 12465 // SetEventId sets the EventId field's value. 12466 func (s *GetEventPredictionInput) SetEventId(v string) *GetEventPredictionInput { 12467 s.EventId = &v 12468 return s 12469 } 12470 12471 // SetEventTimestamp sets the EventTimestamp field's value. 12472 func (s *GetEventPredictionInput) SetEventTimestamp(v string) *GetEventPredictionInput { 12473 s.EventTimestamp = &v 12474 return s 12475 } 12476 12477 // SetEventTypeName sets the EventTypeName field's value. 12478 func (s *GetEventPredictionInput) SetEventTypeName(v string) *GetEventPredictionInput { 12479 s.EventTypeName = &v 12480 return s 12481 } 12482 12483 // SetEventVariables sets the EventVariables field's value. 12484 func (s *GetEventPredictionInput) SetEventVariables(v map[string]*string) *GetEventPredictionInput { 12485 s.EventVariables = v 12486 return s 12487 } 12488 12489 // SetExternalModelEndpointDataBlobs sets the ExternalModelEndpointDataBlobs field's value. 12490 func (s *GetEventPredictionInput) SetExternalModelEndpointDataBlobs(v map[string]*ModelEndpointDataBlob) *GetEventPredictionInput { 12491 s.ExternalModelEndpointDataBlobs = v 12492 return s 12493 } 12494 12495 type GetEventPredictionOutput struct { 12496 _ struct{} `type:"structure"` 12497 12498 // The model scores for Amazon SageMaker models. 12499 ExternalModelOutputs []*ExternalModelOutputs `locationName:"externalModelOutputs" type:"list"` 12500 12501 // The model scores. Amazon Fraud Detector generates model scores between 0 12502 // and 1000, where 0 is low fraud risk and 1000 is high fraud risk. Model scores 12503 // are directly related to the false positive rate (FPR). For example, a score 12504 // of 600 corresponds to an estimated 10% false positive rate whereas a score 12505 // of 900 corresponds to an estimated 2% false positive rate. 12506 ModelScores []*ModelScores `locationName:"modelScores" type:"list"` 12507 12508 // The results from the rules. 12509 RuleResults []*RuleResult `locationName:"ruleResults" type:"list"` 12510 } 12511 12512 // String returns the string representation. 12513 // 12514 // API parameter values that are decorated as "sensitive" in the API will not 12515 // be included in the string output. The member name will be present, but the 12516 // value will be replaced with "sensitive". 12517 func (s GetEventPredictionOutput) String() string { 12518 return awsutil.Prettify(s) 12519 } 12520 12521 // GoString returns the string representation. 12522 // 12523 // API parameter values that are decorated as "sensitive" in the API will not 12524 // be included in the string output. The member name will be present, but the 12525 // value will be replaced with "sensitive". 12526 func (s GetEventPredictionOutput) GoString() string { 12527 return s.String() 12528 } 12529 12530 // SetExternalModelOutputs sets the ExternalModelOutputs field's value. 12531 func (s *GetEventPredictionOutput) SetExternalModelOutputs(v []*ExternalModelOutputs) *GetEventPredictionOutput { 12532 s.ExternalModelOutputs = v 12533 return s 12534 } 12535 12536 // SetModelScores sets the ModelScores field's value. 12537 func (s *GetEventPredictionOutput) SetModelScores(v []*ModelScores) *GetEventPredictionOutput { 12538 s.ModelScores = v 12539 return s 12540 } 12541 12542 // SetRuleResults sets the RuleResults field's value. 12543 func (s *GetEventPredictionOutput) SetRuleResults(v []*RuleResult) *GetEventPredictionOutput { 12544 s.RuleResults = v 12545 return s 12546 } 12547 12548 type GetEventTypesInput struct { 12549 _ struct{} `type:"structure"` 12550 12551 // The maximum number of objects to return for the request. 12552 MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"` 12553 12554 // The name. 12555 Name *string `locationName:"name" min:"1" type:"string"` 12556 12557 // The next token for the subsequent request. 12558 NextToken *string `locationName:"nextToken" type:"string"` 12559 } 12560 12561 // String returns the string representation. 12562 // 12563 // API parameter values that are decorated as "sensitive" in the API will not 12564 // be included in the string output. The member name will be present, but the 12565 // value will be replaced with "sensitive". 12566 func (s GetEventTypesInput) String() string { 12567 return awsutil.Prettify(s) 12568 } 12569 12570 // GoString returns the string representation. 12571 // 12572 // API parameter values that are decorated as "sensitive" in the API will not 12573 // be included in the string output. The member name will be present, but the 12574 // value will be replaced with "sensitive". 12575 func (s GetEventTypesInput) GoString() string { 12576 return s.String() 12577 } 12578 12579 // Validate inspects the fields of the type to determine if they are valid. 12580 func (s *GetEventTypesInput) Validate() error { 12581 invalidParams := request.ErrInvalidParams{Context: "GetEventTypesInput"} 12582 if s.MaxResults != nil && *s.MaxResults < 5 { 12583 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) 12584 } 12585 if s.Name != nil && len(*s.Name) < 1 { 12586 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 12587 } 12588 12589 if invalidParams.Len() > 0 { 12590 return invalidParams 12591 } 12592 return nil 12593 } 12594 12595 // SetMaxResults sets the MaxResults field's value. 12596 func (s *GetEventTypesInput) SetMaxResults(v int64) *GetEventTypesInput { 12597 s.MaxResults = &v 12598 return s 12599 } 12600 12601 // SetName sets the Name field's value. 12602 func (s *GetEventTypesInput) SetName(v string) *GetEventTypesInput { 12603 s.Name = &v 12604 return s 12605 } 12606 12607 // SetNextToken sets the NextToken field's value. 12608 func (s *GetEventTypesInput) SetNextToken(v string) *GetEventTypesInput { 12609 s.NextToken = &v 12610 return s 12611 } 12612 12613 type GetEventTypesOutput struct { 12614 _ struct{} `type:"structure"` 12615 12616 // An array of event types. 12617 EventTypes []*EventType `locationName:"eventTypes" type:"list"` 12618 12619 // The next page token. 12620 NextToken *string `locationName:"nextToken" type:"string"` 12621 } 12622 12623 // String returns the string representation. 12624 // 12625 // API parameter values that are decorated as "sensitive" in the API will not 12626 // be included in the string output. The member name will be present, but the 12627 // value will be replaced with "sensitive". 12628 func (s GetEventTypesOutput) String() string { 12629 return awsutil.Prettify(s) 12630 } 12631 12632 // GoString returns the string representation. 12633 // 12634 // API parameter values that are decorated as "sensitive" in the API will not 12635 // be included in the string output. The member name will be present, but the 12636 // value will be replaced with "sensitive". 12637 func (s GetEventTypesOutput) GoString() string { 12638 return s.String() 12639 } 12640 12641 // SetEventTypes sets the EventTypes field's value. 12642 func (s *GetEventTypesOutput) SetEventTypes(v []*EventType) *GetEventTypesOutput { 12643 s.EventTypes = v 12644 return s 12645 } 12646 12647 // SetNextToken sets the NextToken field's value. 12648 func (s *GetEventTypesOutput) SetNextToken(v string) *GetEventTypesOutput { 12649 s.NextToken = &v 12650 return s 12651 } 12652 12653 type GetExternalModelsInput struct { 12654 _ struct{} `type:"structure"` 12655 12656 // The maximum number of objects to return for the request. 12657 MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"` 12658 12659 // The Amazon SageMaker model endpoint. 12660 ModelEndpoint *string `locationName:"modelEndpoint" type:"string"` 12661 12662 // The next page token for the request. 12663 NextToken *string `locationName:"nextToken" type:"string"` 12664 } 12665 12666 // String returns the string representation. 12667 // 12668 // API parameter values that are decorated as "sensitive" in the API will not 12669 // be included in the string output. The member name will be present, but the 12670 // value will be replaced with "sensitive". 12671 func (s GetExternalModelsInput) String() string { 12672 return awsutil.Prettify(s) 12673 } 12674 12675 // GoString returns the string representation. 12676 // 12677 // API parameter values that are decorated as "sensitive" in the API will not 12678 // be included in the string output. The member name will be present, but the 12679 // value will be replaced with "sensitive". 12680 func (s GetExternalModelsInput) GoString() string { 12681 return s.String() 12682 } 12683 12684 // Validate inspects the fields of the type to determine if they are valid. 12685 func (s *GetExternalModelsInput) Validate() error { 12686 invalidParams := request.ErrInvalidParams{Context: "GetExternalModelsInput"} 12687 if s.MaxResults != nil && *s.MaxResults < 5 { 12688 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) 12689 } 12690 12691 if invalidParams.Len() > 0 { 12692 return invalidParams 12693 } 12694 return nil 12695 } 12696 12697 // SetMaxResults sets the MaxResults field's value. 12698 func (s *GetExternalModelsInput) SetMaxResults(v int64) *GetExternalModelsInput { 12699 s.MaxResults = &v 12700 return s 12701 } 12702 12703 // SetModelEndpoint sets the ModelEndpoint field's value. 12704 func (s *GetExternalModelsInput) SetModelEndpoint(v string) *GetExternalModelsInput { 12705 s.ModelEndpoint = &v 12706 return s 12707 } 12708 12709 // SetNextToken sets the NextToken field's value. 12710 func (s *GetExternalModelsInput) SetNextToken(v string) *GetExternalModelsInput { 12711 s.NextToken = &v 12712 return s 12713 } 12714 12715 type GetExternalModelsOutput struct { 12716 _ struct{} `type:"structure"` 12717 12718 // Gets the Amazon SageMaker models. 12719 ExternalModels []*ExternalModel `locationName:"externalModels" type:"list"` 12720 12721 // The next page token to be used in subsequent requests. 12722 NextToken *string `locationName:"nextToken" type:"string"` 12723 } 12724 12725 // String returns the string representation. 12726 // 12727 // API parameter values that are decorated as "sensitive" in the API will not 12728 // be included in the string output. The member name will be present, but the 12729 // value will be replaced with "sensitive". 12730 func (s GetExternalModelsOutput) String() string { 12731 return awsutil.Prettify(s) 12732 } 12733 12734 // GoString returns the string representation. 12735 // 12736 // API parameter values that are decorated as "sensitive" in the API will not 12737 // be included in the string output. The member name will be present, but the 12738 // value will be replaced with "sensitive". 12739 func (s GetExternalModelsOutput) GoString() string { 12740 return s.String() 12741 } 12742 12743 // SetExternalModels sets the ExternalModels field's value. 12744 func (s *GetExternalModelsOutput) SetExternalModels(v []*ExternalModel) *GetExternalModelsOutput { 12745 s.ExternalModels = v 12746 return s 12747 } 12748 12749 // SetNextToken sets the NextToken field's value. 12750 func (s *GetExternalModelsOutput) SetNextToken(v string) *GetExternalModelsOutput { 12751 s.NextToken = &v 12752 return s 12753 } 12754 12755 type GetKMSEncryptionKeyInput struct { 12756 _ struct{} `type:"structure"` 12757 } 12758 12759 // String returns the string representation. 12760 // 12761 // API parameter values that are decorated as "sensitive" in the API will not 12762 // be included in the string output. The member name will be present, but the 12763 // value will be replaced with "sensitive". 12764 func (s GetKMSEncryptionKeyInput) String() string { 12765 return awsutil.Prettify(s) 12766 } 12767 12768 // GoString returns the string representation. 12769 // 12770 // API parameter values that are decorated as "sensitive" in the API will not 12771 // be included in the string output. The member name will be present, but the 12772 // value will be replaced with "sensitive". 12773 func (s GetKMSEncryptionKeyInput) GoString() string { 12774 return s.String() 12775 } 12776 12777 type GetKMSEncryptionKeyOutput struct { 12778 _ struct{} `type:"structure"` 12779 12780 // The KMS encryption key. 12781 KmsKey *KMSKey `locationName:"kmsKey" type:"structure"` 12782 } 12783 12784 // String returns the string representation. 12785 // 12786 // API parameter values that are decorated as "sensitive" in the API will not 12787 // be included in the string output. The member name will be present, but the 12788 // value will be replaced with "sensitive". 12789 func (s GetKMSEncryptionKeyOutput) String() string { 12790 return awsutil.Prettify(s) 12791 } 12792 12793 // GoString returns the string representation. 12794 // 12795 // API parameter values that are decorated as "sensitive" in the API will not 12796 // be included in the string output. The member name will be present, but the 12797 // value will be replaced with "sensitive". 12798 func (s GetKMSEncryptionKeyOutput) GoString() string { 12799 return s.String() 12800 } 12801 12802 // SetKmsKey sets the KmsKey field's value. 12803 func (s *GetKMSEncryptionKeyOutput) SetKmsKey(v *KMSKey) *GetKMSEncryptionKeyOutput { 12804 s.KmsKey = v 12805 return s 12806 } 12807 12808 type GetLabelsInput struct { 12809 _ struct{} `type:"structure"` 12810 12811 // The maximum number of objects to return for the request. 12812 MaxResults *int64 `locationName:"maxResults" min:"10" type:"integer"` 12813 12814 // The name of the label or labels to get. 12815 Name *string `locationName:"name" min:"1" type:"string"` 12816 12817 // The next token for the subsequent request. 12818 NextToken *string `locationName:"nextToken" type:"string"` 12819 } 12820 12821 // String returns the string representation. 12822 // 12823 // API parameter values that are decorated as "sensitive" in the API will not 12824 // be included in the string output. The member name will be present, but the 12825 // value will be replaced with "sensitive". 12826 func (s GetLabelsInput) String() string { 12827 return awsutil.Prettify(s) 12828 } 12829 12830 // GoString returns the string representation. 12831 // 12832 // API parameter values that are decorated as "sensitive" in the API will not 12833 // be included in the string output. The member name will be present, but the 12834 // value will be replaced with "sensitive". 12835 func (s GetLabelsInput) GoString() string { 12836 return s.String() 12837 } 12838 12839 // Validate inspects the fields of the type to determine if they are valid. 12840 func (s *GetLabelsInput) Validate() error { 12841 invalidParams := request.ErrInvalidParams{Context: "GetLabelsInput"} 12842 if s.MaxResults != nil && *s.MaxResults < 10 { 12843 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) 12844 } 12845 if s.Name != nil && len(*s.Name) < 1 { 12846 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 12847 } 12848 12849 if invalidParams.Len() > 0 { 12850 return invalidParams 12851 } 12852 return nil 12853 } 12854 12855 // SetMaxResults sets the MaxResults field's value. 12856 func (s *GetLabelsInput) SetMaxResults(v int64) *GetLabelsInput { 12857 s.MaxResults = &v 12858 return s 12859 } 12860 12861 // SetName sets the Name field's value. 12862 func (s *GetLabelsInput) SetName(v string) *GetLabelsInput { 12863 s.Name = &v 12864 return s 12865 } 12866 12867 // SetNextToken sets the NextToken field's value. 12868 func (s *GetLabelsInput) SetNextToken(v string) *GetLabelsInput { 12869 s.NextToken = &v 12870 return s 12871 } 12872 12873 type GetLabelsOutput struct { 12874 _ struct{} `type:"structure"` 12875 12876 // An array of labels. 12877 Labels []*Label `locationName:"labels" type:"list"` 12878 12879 // The next page token. 12880 NextToken *string `locationName:"nextToken" type:"string"` 12881 } 12882 12883 // String returns the string representation. 12884 // 12885 // API parameter values that are decorated as "sensitive" in the API will not 12886 // be included in the string output. The member name will be present, but the 12887 // value will be replaced with "sensitive". 12888 func (s GetLabelsOutput) String() string { 12889 return awsutil.Prettify(s) 12890 } 12891 12892 // GoString returns the string representation. 12893 // 12894 // API parameter values that are decorated as "sensitive" in the API will not 12895 // be included in the string output. The member name will be present, but the 12896 // value will be replaced with "sensitive". 12897 func (s GetLabelsOutput) GoString() string { 12898 return s.String() 12899 } 12900 12901 // SetLabels sets the Labels field's value. 12902 func (s *GetLabelsOutput) SetLabels(v []*Label) *GetLabelsOutput { 12903 s.Labels = v 12904 return s 12905 } 12906 12907 // SetNextToken sets the NextToken field's value. 12908 func (s *GetLabelsOutput) SetNextToken(v string) *GetLabelsOutput { 12909 s.NextToken = &v 12910 return s 12911 } 12912 12913 type GetModelVersionInput struct { 12914 _ struct{} `type:"structure"` 12915 12916 // The model ID. 12917 // 12918 // ModelId is a required field 12919 ModelId *string `locationName:"modelId" min:"1" type:"string" required:"true"` 12920 12921 // The model type. 12922 // 12923 // ModelType is a required field 12924 ModelType *string `locationName:"modelType" type:"string" required:"true" enum:"ModelTypeEnum"` 12925 12926 // The model version number. 12927 // 12928 // ModelVersionNumber is a required field 12929 ModelVersionNumber *string `locationName:"modelVersionNumber" min:"3" type:"string" required:"true"` 12930 } 12931 12932 // String returns the string representation. 12933 // 12934 // API parameter values that are decorated as "sensitive" in the API will not 12935 // be included in the string output. The member name will be present, but the 12936 // value will be replaced with "sensitive". 12937 func (s GetModelVersionInput) String() string { 12938 return awsutil.Prettify(s) 12939 } 12940 12941 // GoString returns the string representation. 12942 // 12943 // API parameter values that are decorated as "sensitive" in the API will not 12944 // be included in the string output. The member name will be present, but the 12945 // value will be replaced with "sensitive". 12946 func (s GetModelVersionInput) GoString() string { 12947 return s.String() 12948 } 12949 12950 // Validate inspects the fields of the type to determine if they are valid. 12951 func (s *GetModelVersionInput) Validate() error { 12952 invalidParams := request.ErrInvalidParams{Context: "GetModelVersionInput"} 12953 if s.ModelId == nil { 12954 invalidParams.Add(request.NewErrParamRequired("ModelId")) 12955 } 12956 if s.ModelId != nil && len(*s.ModelId) < 1 { 12957 invalidParams.Add(request.NewErrParamMinLen("ModelId", 1)) 12958 } 12959 if s.ModelType == nil { 12960 invalidParams.Add(request.NewErrParamRequired("ModelType")) 12961 } 12962 if s.ModelVersionNumber == nil { 12963 invalidParams.Add(request.NewErrParamRequired("ModelVersionNumber")) 12964 } 12965 if s.ModelVersionNumber != nil && len(*s.ModelVersionNumber) < 3 { 12966 invalidParams.Add(request.NewErrParamMinLen("ModelVersionNumber", 3)) 12967 } 12968 12969 if invalidParams.Len() > 0 { 12970 return invalidParams 12971 } 12972 return nil 12973 } 12974 12975 // SetModelId sets the ModelId field's value. 12976 func (s *GetModelVersionInput) SetModelId(v string) *GetModelVersionInput { 12977 s.ModelId = &v 12978 return s 12979 } 12980 12981 // SetModelType sets the ModelType field's value. 12982 func (s *GetModelVersionInput) SetModelType(v string) *GetModelVersionInput { 12983 s.ModelType = &v 12984 return s 12985 } 12986 12987 // SetModelVersionNumber sets the ModelVersionNumber field's value. 12988 func (s *GetModelVersionInput) SetModelVersionNumber(v string) *GetModelVersionInput { 12989 s.ModelVersionNumber = &v 12990 return s 12991 } 12992 12993 type GetModelVersionOutput struct { 12994 _ struct{} `type:"structure"` 12995 12996 // The model version ARN. 12997 Arn *string `locationName:"arn" min:"1" type:"string"` 12998 12999 // The details of the external events data used for training the model version. 13000 // This will be populated if the trainingDataSource is EXTERNAL_EVENTS 13001 ExternalEventsDetail *ExternalEventsDetail `locationName:"externalEventsDetail" type:"structure"` 13002 13003 // The details of the ingested events data used for training the model version. 13004 // This will be populated if the trainingDataSource is INGESTED_EVENTS. 13005 IngestedEventsDetail *IngestedEventsDetail `locationName:"ingestedEventsDetail" type:"structure"` 13006 13007 // The model ID. 13008 ModelId *string `locationName:"modelId" min:"1" type:"string"` 13009 13010 // The model type. 13011 ModelType *string `locationName:"modelType" type:"string" enum:"ModelTypeEnum"` 13012 13013 // The model version number. 13014 ModelVersionNumber *string `locationName:"modelVersionNumber" min:"3" type:"string"` 13015 13016 // The model version status. 13017 // 13018 // Possible values are: 13019 // 13020 // * TRAINING_IN_PROGRESS 13021 // 13022 // * TRAINING_COMPLETE 13023 // 13024 // * ACTIVATE_REQUESTED 13025 // 13026 // * ACTIVATE_IN_PROGRESS 13027 // 13028 // * ACTIVE 13029 // 13030 // * INACTIVATE_REQUESTED 13031 // 13032 // * INACTIVATE_IN_PROGRESS 13033 // 13034 // * INACTIVE 13035 // 13036 // * ERROR 13037 Status *string `locationName:"status" type:"string"` 13038 13039 // The training data schema. 13040 TrainingDataSchema *TrainingDataSchema `locationName:"trainingDataSchema" type:"structure"` 13041 13042 // The training data source. 13043 TrainingDataSource *string `locationName:"trainingDataSource" type:"string" enum:"TrainingDataSourceEnum"` 13044 } 13045 13046 // String returns the string representation. 13047 // 13048 // API parameter values that are decorated as "sensitive" in the API will not 13049 // be included in the string output. The member name will be present, but the 13050 // value will be replaced with "sensitive". 13051 func (s GetModelVersionOutput) String() string { 13052 return awsutil.Prettify(s) 13053 } 13054 13055 // GoString returns the string representation. 13056 // 13057 // API parameter values that are decorated as "sensitive" in the API will not 13058 // be included in the string output. The member name will be present, but the 13059 // value will be replaced with "sensitive". 13060 func (s GetModelVersionOutput) GoString() string { 13061 return s.String() 13062 } 13063 13064 // SetArn sets the Arn field's value. 13065 func (s *GetModelVersionOutput) SetArn(v string) *GetModelVersionOutput { 13066 s.Arn = &v 13067 return s 13068 } 13069 13070 // SetExternalEventsDetail sets the ExternalEventsDetail field's value. 13071 func (s *GetModelVersionOutput) SetExternalEventsDetail(v *ExternalEventsDetail) *GetModelVersionOutput { 13072 s.ExternalEventsDetail = v 13073 return s 13074 } 13075 13076 // SetIngestedEventsDetail sets the IngestedEventsDetail field's value. 13077 func (s *GetModelVersionOutput) SetIngestedEventsDetail(v *IngestedEventsDetail) *GetModelVersionOutput { 13078 s.IngestedEventsDetail = v 13079 return s 13080 } 13081 13082 // SetModelId sets the ModelId field's value. 13083 func (s *GetModelVersionOutput) SetModelId(v string) *GetModelVersionOutput { 13084 s.ModelId = &v 13085 return s 13086 } 13087 13088 // SetModelType sets the ModelType field's value. 13089 func (s *GetModelVersionOutput) SetModelType(v string) *GetModelVersionOutput { 13090 s.ModelType = &v 13091 return s 13092 } 13093 13094 // SetModelVersionNumber sets the ModelVersionNumber field's value. 13095 func (s *GetModelVersionOutput) SetModelVersionNumber(v string) *GetModelVersionOutput { 13096 s.ModelVersionNumber = &v 13097 return s 13098 } 13099 13100 // SetStatus sets the Status field's value. 13101 func (s *GetModelVersionOutput) SetStatus(v string) *GetModelVersionOutput { 13102 s.Status = &v 13103 return s 13104 } 13105 13106 // SetTrainingDataSchema sets the TrainingDataSchema field's value. 13107 func (s *GetModelVersionOutput) SetTrainingDataSchema(v *TrainingDataSchema) *GetModelVersionOutput { 13108 s.TrainingDataSchema = v 13109 return s 13110 } 13111 13112 // SetTrainingDataSource sets the TrainingDataSource field's value. 13113 func (s *GetModelVersionOutput) SetTrainingDataSource(v string) *GetModelVersionOutput { 13114 s.TrainingDataSource = &v 13115 return s 13116 } 13117 13118 type GetModelsInput struct { 13119 _ struct{} `type:"structure"` 13120 13121 // The maximum number of objects to return for the request. 13122 MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` 13123 13124 // The model ID. 13125 ModelId *string `locationName:"modelId" min:"1" type:"string"` 13126 13127 // The model type. 13128 ModelType *string `locationName:"modelType" type:"string" enum:"ModelTypeEnum"` 13129 13130 // The next token for the subsequent request. 13131 NextToken *string `locationName:"nextToken" type:"string"` 13132 } 13133 13134 // String returns the string representation. 13135 // 13136 // API parameter values that are decorated as "sensitive" in the API will not 13137 // be included in the string output. The member name will be present, but the 13138 // value will be replaced with "sensitive". 13139 func (s GetModelsInput) String() string { 13140 return awsutil.Prettify(s) 13141 } 13142 13143 // GoString returns the string representation. 13144 // 13145 // API parameter values that are decorated as "sensitive" in the API will not 13146 // be included in the string output. The member name will be present, but the 13147 // value will be replaced with "sensitive". 13148 func (s GetModelsInput) GoString() string { 13149 return s.String() 13150 } 13151 13152 // Validate inspects the fields of the type to determine if they are valid. 13153 func (s *GetModelsInput) Validate() error { 13154 invalidParams := request.ErrInvalidParams{Context: "GetModelsInput"} 13155 if s.MaxResults != nil && *s.MaxResults < 1 { 13156 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 13157 } 13158 if s.ModelId != nil && len(*s.ModelId) < 1 { 13159 invalidParams.Add(request.NewErrParamMinLen("ModelId", 1)) 13160 } 13161 13162 if invalidParams.Len() > 0 { 13163 return invalidParams 13164 } 13165 return nil 13166 } 13167 13168 // SetMaxResults sets the MaxResults field's value. 13169 func (s *GetModelsInput) SetMaxResults(v int64) *GetModelsInput { 13170 s.MaxResults = &v 13171 return s 13172 } 13173 13174 // SetModelId sets the ModelId field's value. 13175 func (s *GetModelsInput) SetModelId(v string) *GetModelsInput { 13176 s.ModelId = &v 13177 return s 13178 } 13179 13180 // SetModelType sets the ModelType field's value. 13181 func (s *GetModelsInput) SetModelType(v string) *GetModelsInput { 13182 s.ModelType = &v 13183 return s 13184 } 13185 13186 // SetNextToken sets the NextToken field's value. 13187 func (s *GetModelsInput) SetNextToken(v string) *GetModelsInput { 13188 s.NextToken = &v 13189 return s 13190 } 13191 13192 type GetModelsOutput struct { 13193 _ struct{} `type:"structure"` 13194 13195 // The array of models. 13196 Models []*Model `locationName:"models" type:"list"` 13197 13198 // The next page token to be used in subsequent requests. 13199 NextToken *string `locationName:"nextToken" type:"string"` 13200 } 13201 13202 // String returns the string representation. 13203 // 13204 // API parameter values that are decorated as "sensitive" in the API will not 13205 // be included in the string output. The member name will be present, but the 13206 // value will be replaced with "sensitive". 13207 func (s GetModelsOutput) String() string { 13208 return awsutil.Prettify(s) 13209 } 13210 13211 // GoString returns the string representation. 13212 // 13213 // API parameter values that are decorated as "sensitive" in the API will not 13214 // be included in the string output. The member name will be present, but the 13215 // value will be replaced with "sensitive". 13216 func (s GetModelsOutput) GoString() string { 13217 return s.String() 13218 } 13219 13220 // SetModels sets the Models field's value. 13221 func (s *GetModelsOutput) SetModels(v []*Model) *GetModelsOutput { 13222 s.Models = v 13223 return s 13224 } 13225 13226 // SetNextToken sets the NextToken field's value. 13227 func (s *GetModelsOutput) SetNextToken(v string) *GetModelsOutput { 13228 s.NextToken = &v 13229 return s 13230 } 13231 13232 type GetOutcomesInput struct { 13233 _ struct{} `type:"structure"` 13234 13235 // The maximum number of objects to return for the request. 13236 MaxResults *int64 `locationName:"maxResults" min:"50" type:"integer"` 13237 13238 // The name of the outcome or outcomes to get. 13239 Name *string `locationName:"name" min:"1" type:"string"` 13240 13241 // The next page token for the request. 13242 NextToken *string `locationName:"nextToken" type:"string"` 13243 } 13244 13245 // String returns the string representation. 13246 // 13247 // API parameter values that are decorated as "sensitive" in the API will not 13248 // be included in the string output. The member name will be present, but the 13249 // value will be replaced with "sensitive". 13250 func (s GetOutcomesInput) String() string { 13251 return awsutil.Prettify(s) 13252 } 13253 13254 // GoString returns the string representation. 13255 // 13256 // API parameter values that are decorated as "sensitive" in the API will not 13257 // be included in the string output. The member name will be present, but the 13258 // value will be replaced with "sensitive". 13259 func (s GetOutcomesInput) GoString() string { 13260 return s.String() 13261 } 13262 13263 // Validate inspects the fields of the type to determine if they are valid. 13264 func (s *GetOutcomesInput) Validate() error { 13265 invalidParams := request.ErrInvalidParams{Context: "GetOutcomesInput"} 13266 if s.MaxResults != nil && *s.MaxResults < 50 { 13267 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 50)) 13268 } 13269 if s.Name != nil && len(*s.Name) < 1 { 13270 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 13271 } 13272 13273 if invalidParams.Len() > 0 { 13274 return invalidParams 13275 } 13276 return nil 13277 } 13278 13279 // SetMaxResults sets the MaxResults field's value. 13280 func (s *GetOutcomesInput) SetMaxResults(v int64) *GetOutcomesInput { 13281 s.MaxResults = &v 13282 return s 13283 } 13284 13285 // SetName sets the Name field's value. 13286 func (s *GetOutcomesInput) SetName(v string) *GetOutcomesInput { 13287 s.Name = &v 13288 return s 13289 } 13290 13291 // SetNextToken sets the NextToken field's value. 13292 func (s *GetOutcomesInput) SetNextToken(v string) *GetOutcomesInput { 13293 s.NextToken = &v 13294 return s 13295 } 13296 13297 type GetOutcomesOutput struct { 13298 _ struct{} `type:"structure"` 13299 13300 // The next page token for subsequent requests. 13301 NextToken *string `locationName:"nextToken" type:"string"` 13302 13303 // The outcomes. 13304 Outcomes []*Outcome `locationName:"outcomes" type:"list"` 13305 } 13306 13307 // String returns the string representation. 13308 // 13309 // API parameter values that are decorated as "sensitive" in the API will not 13310 // be included in the string output. The member name will be present, but the 13311 // value will be replaced with "sensitive". 13312 func (s GetOutcomesOutput) String() string { 13313 return awsutil.Prettify(s) 13314 } 13315 13316 // GoString returns the string representation. 13317 // 13318 // API parameter values that are decorated as "sensitive" in the API will not 13319 // be included in the string output. The member name will be present, but the 13320 // value will be replaced with "sensitive". 13321 func (s GetOutcomesOutput) GoString() string { 13322 return s.String() 13323 } 13324 13325 // SetNextToken sets the NextToken field's value. 13326 func (s *GetOutcomesOutput) SetNextToken(v string) *GetOutcomesOutput { 13327 s.NextToken = &v 13328 return s 13329 } 13330 13331 // SetOutcomes sets the Outcomes field's value. 13332 func (s *GetOutcomesOutput) SetOutcomes(v []*Outcome) *GetOutcomesOutput { 13333 s.Outcomes = v 13334 return s 13335 } 13336 13337 type GetRulesInput struct { 13338 _ struct{} `type:"structure"` 13339 13340 // The detector ID. 13341 // 13342 // DetectorId is a required field 13343 DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"` 13344 13345 // The maximum number of rules to return for the request. 13346 MaxResults *int64 `locationName:"maxResults" min:"50" type:"integer"` 13347 13348 // The next page token. 13349 NextToken *string `locationName:"nextToken" type:"string"` 13350 13351 // The rule ID. 13352 RuleId *string `locationName:"ruleId" min:"1" type:"string"` 13353 13354 // The rule version. 13355 RuleVersion *string `locationName:"ruleVersion" min:"1" type:"string"` 13356 } 13357 13358 // String returns the string representation. 13359 // 13360 // API parameter values that are decorated as "sensitive" in the API will not 13361 // be included in the string output. The member name will be present, but the 13362 // value will be replaced with "sensitive". 13363 func (s GetRulesInput) String() string { 13364 return awsutil.Prettify(s) 13365 } 13366 13367 // GoString returns the string representation. 13368 // 13369 // API parameter values that are decorated as "sensitive" in the API will not 13370 // be included in the string output. The member name will be present, but the 13371 // value will be replaced with "sensitive". 13372 func (s GetRulesInput) GoString() string { 13373 return s.String() 13374 } 13375 13376 // Validate inspects the fields of the type to determine if they are valid. 13377 func (s *GetRulesInput) Validate() error { 13378 invalidParams := request.ErrInvalidParams{Context: "GetRulesInput"} 13379 if s.DetectorId == nil { 13380 invalidParams.Add(request.NewErrParamRequired("DetectorId")) 13381 } 13382 if s.DetectorId != nil && len(*s.DetectorId) < 1 { 13383 invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) 13384 } 13385 if s.MaxResults != nil && *s.MaxResults < 50 { 13386 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 50)) 13387 } 13388 if s.RuleId != nil && len(*s.RuleId) < 1 { 13389 invalidParams.Add(request.NewErrParamMinLen("RuleId", 1)) 13390 } 13391 if s.RuleVersion != nil && len(*s.RuleVersion) < 1 { 13392 invalidParams.Add(request.NewErrParamMinLen("RuleVersion", 1)) 13393 } 13394 13395 if invalidParams.Len() > 0 { 13396 return invalidParams 13397 } 13398 return nil 13399 } 13400 13401 // SetDetectorId sets the DetectorId field's value. 13402 func (s *GetRulesInput) SetDetectorId(v string) *GetRulesInput { 13403 s.DetectorId = &v 13404 return s 13405 } 13406 13407 // SetMaxResults sets the MaxResults field's value. 13408 func (s *GetRulesInput) SetMaxResults(v int64) *GetRulesInput { 13409 s.MaxResults = &v 13410 return s 13411 } 13412 13413 // SetNextToken sets the NextToken field's value. 13414 func (s *GetRulesInput) SetNextToken(v string) *GetRulesInput { 13415 s.NextToken = &v 13416 return s 13417 } 13418 13419 // SetRuleId sets the RuleId field's value. 13420 func (s *GetRulesInput) SetRuleId(v string) *GetRulesInput { 13421 s.RuleId = &v 13422 return s 13423 } 13424 13425 // SetRuleVersion sets the RuleVersion field's value. 13426 func (s *GetRulesInput) SetRuleVersion(v string) *GetRulesInput { 13427 s.RuleVersion = &v 13428 return s 13429 } 13430 13431 type GetRulesOutput struct { 13432 _ struct{} `type:"structure"` 13433 13434 // The next page token to be used in subsequent requests. 13435 NextToken *string `locationName:"nextToken" type:"string"` 13436 13437 // The details of the requested rule. 13438 RuleDetails []*RuleDetail `locationName:"ruleDetails" type:"list"` 13439 } 13440 13441 // String returns the string representation. 13442 // 13443 // API parameter values that are decorated as "sensitive" in the API will not 13444 // be included in the string output. The member name will be present, but the 13445 // value will be replaced with "sensitive". 13446 func (s GetRulesOutput) String() string { 13447 return awsutil.Prettify(s) 13448 } 13449 13450 // GoString returns the string representation. 13451 // 13452 // API parameter values that are decorated as "sensitive" in the API will not 13453 // be included in the string output. The member name will be present, but the 13454 // value will be replaced with "sensitive". 13455 func (s GetRulesOutput) GoString() string { 13456 return s.String() 13457 } 13458 13459 // SetNextToken sets the NextToken field's value. 13460 func (s *GetRulesOutput) SetNextToken(v string) *GetRulesOutput { 13461 s.NextToken = &v 13462 return s 13463 } 13464 13465 // SetRuleDetails sets the RuleDetails field's value. 13466 func (s *GetRulesOutput) SetRuleDetails(v []*RuleDetail) *GetRulesOutput { 13467 s.RuleDetails = v 13468 return s 13469 } 13470 13471 type GetVariablesInput struct { 13472 _ struct{} `type:"structure"` 13473 13474 // The max size per page determined for the get variable request. 13475 MaxResults *int64 `locationName:"maxResults" min:"50" type:"integer"` 13476 13477 // The name of the variable. 13478 Name *string `locationName:"name" type:"string"` 13479 13480 // The next page token of the get variable request. 13481 NextToken *string `locationName:"nextToken" type:"string"` 13482 } 13483 13484 // String returns the string representation. 13485 // 13486 // API parameter values that are decorated as "sensitive" in the API will not 13487 // be included in the string output. The member name will be present, but the 13488 // value will be replaced with "sensitive". 13489 func (s GetVariablesInput) String() string { 13490 return awsutil.Prettify(s) 13491 } 13492 13493 // GoString returns the string representation. 13494 // 13495 // API parameter values that are decorated as "sensitive" in the API will not 13496 // be included in the string output. The member name will be present, but the 13497 // value will be replaced with "sensitive". 13498 func (s GetVariablesInput) GoString() string { 13499 return s.String() 13500 } 13501 13502 // Validate inspects the fields of the type to determine if they are valid. 13503 func (s *GetVariablesInput) Validate() error { 13504 invalidParams := request.ErrInvalidParams{Context: "GetVariablesInput"} 13505 if s.MaxResults != nil && *s.MaxResults < 50 { 13506 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 50)) 13507 } 13508 13509 if invalidParams.Len() > 0 { 13510 return invalidParams 13511 } 13512 return nil 13513 } 13514 13515 // SetMaxResults sets the MaxResults field's value. 13516 func (s *GetVariablesInput) SetMaxResults(v int64) *GetVariablesInput { 13517 s.MaxResults = &v 13518 return s 13519 } 13520 13521 // SetName sets the Name field's value. 13522 func (s *GetVariablesInput) SetName(v string) *GetVariablesInput { 13523 s.Name = &v 13524 return s 13525 } 13526 13527 // SetNextToken sets the NextToken field's value. 13528 func (s *GetVariablesInput) SetNextToken(v string) *GetVariablesInput { 13529 s.NextToken = &v 13530 return s 13531 } 13532 13533 type GetVariablesOutput struct { 13534 _ struct{} `type:"structure"` 13535 13536 // The next page token to be used in subsequent requests. 13537 NextToken *string `locationName:"nextToken" type:"string"` 13538 13539 // The names of the variables returned. 13540 Variables []*Variable `locationName:"variables" type:"list"` 13541 } 13542 13543 // String returns the string representation. 13544 // 13545 // API parameter values that are decorated as "sensitive" in the API will not 13546 // be included in the string output. The member name will be present, but the 13547 // value will be replaced with "sensitive". 13548 func (s GetVariablesOutput) String() string { 13549 return awsutil.Prettify(s) 13550 } 13551 13552 // GoString returns the string representation. 13553 // 13554 // API parameter values that are decorated as "sensitive" in the API will not 13555 // be included in the string output. The member name will be present, but the 13556 // value will be replaced with "sensitive". 13557 func (s GetVariablesOutput) GoString() string { 13558 return s.String() 13559 } 13560 13561 // SetNextToken sets the NextToken field's value. 13562 func (s *GetVariablesOutput) SetNextToken(v string) *GetVariablesOutput { 13563 s.NextToken = &v 13564 return s 13565 } 13566 13567 // SetVariables sets the Variables field's value. 13568 func (s *GetVariablesOutput) SetVariables(v []*Variable) *GetVariablesOutput { 13569 s.Variables = v 13570 return s 13571 } 13572 13573 // Data about the stored events. 13574 type IngestedEventStatistics struct { 13575 _ struct{} `type:"structure"` 13576 13577 // The total size of the stored events. 13578 EventDataSizeInBytes *int64 `locationName:"eventDataSizeInBytes" type:"long"` 13579 13580 // Timestamp of when the stored event was last updated. 13581 LastUpdatedTime *string `locationName:"lastUpdatedTime" min:"11" type:"string"` 13582 13583 // The oldest stored event. 13584 LeastRecentEvent *string `locationName:"leastRecentEvent" min:"11" type:"string"` 13585 13586 // The newest stored event. 13587 MostRecentEvent *string `locationName:"mostRecentEvent" min:"11" type:"string"` 13588 13589 // The number of stored events. 13590 NumberOfEvents *int64 `locationName:"numberOfEvents" type:"long"` 13591 } 13592 13593 // String returns the string representation. 13594 // 13595 // API parameter values that are decorated as "sensitive" in the API will not 13596 // be included in the string output. The member name will be present, but the 13597 // value will be replaced with "sensitive". 13598 func (s IngestedEventStatistics) String() string { 13599 return awsutil.Prettify(s) 13600 } 13601 13602 // GoString returns the string representation. 13603 // 13604 // API parameter values that are decorated as "sensitive" in the API will not 13605 // be included in the string output. The member name will be present, but the 13606 // value will be replaced with "sensitive". 13607 func (s IngestedEventStatistics) GoString() string { 13608 return s.String() 13609 } 13610 13611 // SetEventDataSizeInBytes sets the EventDataSizeInBytes field's value. 13612 func (s *IngestedEventStatistics) SetEventDataSizeInBytes(v int64) *IngestedEventStatistics { 13613 s.EventDataSizeInBytes = &v 13614 return s 13615 } 13616 13617 // SetLastUpdatedTime sets the LastUpdatedTime field's value. 13618 func (s *IngestedEventStatistics) SetLastUpdatedTime(v string) *IngestedEventStatistics { 13619 s.LastUpdatedTime = &v 13620 return s 13621 } 13622 13623 // SetLeastRecentEvent sets the LeastRecentEvent field's value. 13624 func (s *IngestedEventStatistics) SetLeastRecentEvent(v string) *IngestedEventStatistics { 13625 s.LeastRecentEvent = &v 13626 return s 13627 } 13628 13629 // SetMostRecentEvent sets the MostRecentEvent field's value. 13630 func (s *IngestedEventStatistics) SetMostRecentEvent(v string) *IngestedEventStatistics { 13631 s.MostRecentEvent = &v 13632 return s 13633 } 13634 13635 // SetNumberOfEvents sets the NumberOfEvents field's value. 13636 func (s *IngestedEventStatistics) SetNumberOfEvents(v int64) *IngestedEventStatistics { 13637 s.NumberOfEvents = &v 13638 return s 13639 } 13640 13641 // The details of the ingested event. 13642 type IngestedEventsDetail struct { 13643 _ struct{} `type:"structure"` 13644 13645 // The start and stop time of the ingested events. 13646 // 13647 // IngestedEventsTimeWindow is a required field 13648 IngestedEventsTimeWindow *IngestedEventsTimeWindow `locationName:"ingestedEventsTimeWindow" type:"structure" required:"true"` 13649 } 13650 13651 // String returns the string representation. 13652 // 13653 // API parameter values that are decorated as "sensitive" in the API will not 13654 // be included in the string output. The member name will be present, but the 13655 // value will be replaced with "sensitive". 13656 func (s IngestedEventsDetail) String() string { 13657 return awsutil.Prettify(s) 13658 } 13659 13660 // GoString returns the string representation. 13661 // 13662 // API parameter values that are decorated as "sensitive" in the API will not 13663 // be included in the string output. The member name will be present, but the 13664 // value will be replaced with "sensitive". 13665 func (s IngestedEventsDetail) GoString() string { 13666 return s.String() 13667 } 13668 13669 // Validate inspects the fields of the type to determine if they are valid. 13670 func (s *IngestedEventsDetail) Validate() error { 13671 invalidParams := request.ErrInvalidParams{Context: "IngestedEventsDetail"} 13672 if s.IngestedEventsTimeWindow == nil { 13673 invalidParams.Add(request.NewErrParamRequired("IngestedEventsTimeWindow")) 13674 } 13675 if s.IngestedEventsTimeWindow != nil { 13676 if err := s.IngestedEventsTimeWindow.Validate(); err != nil { 13677 invalidParams.AddNested("IngestedEventsTimeWindow", err.(request.ErrInvalidParams)) 13678 } 13679 } 13680 13681 if invalidParams.Len() > 0 { 13682 return invalidParams 13683 } 13684 return nil 13685 } 13686 13687 // SetIngestedEventsTimeWindow sets the IngestedEventsTimeWindow field's value. 13688 func (s *IngestedEventsDetail) SetIngestedEventsTimeWindow(v *IngestedEventsTimeWindow) *IngestedEventsDetail { 13689 s.IngestedEventsTimeWindow = v 13690 return s 13691 } 13692 13693 // The start and stop time of the ingested events. 13694 type IngestedEventsTimeWindow struct { 13695 _ struct{} `type:"structure"` 13696 13697 // Timestamp of the final ingested event. 13698 // 13699 // EndTime is a required field 13700 EndTime *string `locationName:"endTime" min:"11" type:"string" required:"true"` 13701 13702 // Timestamp of the first ingensted event. 13703 // 13704 // StartTime is a required field 13705 StartTime *string `locationName:"startTime" min:"11" type:"string" required:"true"` 13706 } 13707 13708 // String returns the string representation. 13709 // 13710 // API parameter values that are decorated as "sensitive" in the API will not 13711 // be included in the string output. The member name will be present, but the 13712 // value will be replaced with "sensitive". 13713 func (s IngestedEventsTimeWindow) String() string { 13714 return awsutil.Prettify(s) 13715 } 13716 13717 // GoString returns the string representation. 13718 // 13719 // API parameter values that are decorated as "sensitive" in the API will not 13720 // be included in the string output. The member name will be present, but the 13721 // value will be replaced with "sensitive". 13722 func (s IngestedEventsTimeWindow) GoString() string { 13723 return s.String() 13724 } 13725 13726 // Validate inspects the fields of the type to determine if they are valid. 13727 func (s *IngestedEventsTimeWindow) Validate() error { 13728 invalidParams := request.ErrInvalidParams{Context: "IngestedEventsTimeWindow"} 13729 if s.EndTime == nil { 13730 invalidParams.Add(request.NewErrParamRequired("EndTime")) 13731 } 13732 if s.EndTime != nil && len(*s.EndTime) < 11 { 13733 invalidParams.Add(request.NewErrParamMinLen("EndTime", 11)) 13734 } 13735 if s.StartTime == nil { 13736 invalidParams.Add(request.NewErrParamRequired("StartTime")) 13737 } 13738 if s.StartTime != nil && len(*s.StartTime) < 11 { 13739 invalidParams.Add(request.NewErrParamMinLen("StartTime", 11)) 13740 } 13741 13742 if invalidParams.Len() > 0 { 13743 return invalidParams 13744 } 13745 return nil 13746 } 13747 13748 // SetEndTime sets the EndTime field's value. 13749 func (s *IngestedEventsTimeWindow) SetEndTime(v string) *IngestedEventsTimeWindow { 13750 s.EndTime = &v 13751 return s 13752 } 13753 13754 // SetStartTime sets the StartTime field's value. 13755 func (s *IngestedEventsTimeWindow) SetStartTime(v string) *IngestedEventsTimeWindow { 13756 s.StartTime = &v 13757 return s 13758 } 13759 13760 // An exception indicating an internal server error. 13761 type InternalServerException struct { 13762 _ struct{} `type:"structure"` 13763 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13764 13765 Message_ *string `locationName:"message" type:"string"` 13766 } 13767 13768 // String returns the string representation. 13769 // 13770 // API parameter values that are decorated as "sensitive" in the API will not 13771 // be included in the string output. The member name will be present, but the 13772 // value will be replaced with "sensitive". 13773 func (s InternalServerException) String() string { 13774 return awsutil.Prettify(s) 13775 } 13776 13777 // GoString returns the string representation. 13778 // 13779 // API parameter values that are decorated as "sensitive" in the API will not 13780 // be included in the string output. The member name will be present, but the 13781 // value will be replaced with "sensitive". 13782 func (s InternalServerException) GoString() string { 13783 return s.String() 13784 } 13785 13786 func newErrorInternalServerException(v protocol.ResponseMetadata) error { 13787 return &InternalServerException{ 13788 RespMetadata: v, 13789 } 13790 } 13791 13792 // Code returns the exception type name. 13793 func (s *InternalServerException) Code() string { 13794 return "InternalServerException" 13795 } 13796 13797 // Message returns the exception's message. 13798 func (s *InternalServerException) Message() string { 13799 if s.Message_ != nil { 13800 return *s.Message_ 13801 } 13802 return "" 13803 } 13804 13805 // OrigErr always returns nil, satisfies awserr.Error interface. 13806 func (s *InternalServerException) OrigErr() error { 13807 return nil 13808 } 13809 13810 func (s *InternalServerException) Error() string { 13811 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13812 } 13813 13814 // Status code returns the HTTP status code for the request's response error. 13815 func (s *InternalServerException) StatusCode() int { 13816 return s.RespMetadata.StatusCode 13817 } 13818 13819 // RequestID returns the service's response RequestID for request. 13820 func (s *InternalServerException) RequestID() string { 13821 return s.RespMetadata.RequestID 13822 } 13823 13824 // The KMS key details. 13825 type KMSKey struct { 13826 _ struct{} `type:"structure"` 13827 13828 // The encryption key ARN. 13829 KmsEncryptionKeyArn *string `locationName:"kmsEncryptionKeyArn" min:"7" type:"string"` 13830 } 13831 13832 // String returns the string representation. 13833 // 13834 // API parameter values that are decorated as "sensitive" in the API will not 13835 // be included in the string output. The member name will be present, but the 13836 // value will be replaced with "sensitive". 13837 func (s KMSKey) String() string { 13838 return awsutil.Prettify(s) 13839 } 13840 13841 // GoString returns the string representation. 13842 // 13843 // API parameter values that are decorated as "sensitive" in the API will not 13844 // be included in the string output. The member name will be present, but the 13845 // value will be replaced with "sensitive". 13846 func (s KMSKey) GoString() string { 13847 return s.String() 13848 } 13849 13850 // SetKmsEncryptionKeyArn sets the KmsEncryptionKeyArn field's value. 13851 func (s *KMSKey) SetKmsEncryptionKeyArn(v string) *KMSKey { 13852 s.KmsEncryptionKeyArn = &v 13853 return s 13854 } 13855 13856 // The label details. 13857 type Label struct { 13858 _ struct{} `type:"structure"` 13859 13860 // The label ARN. 13861 Arn *string `locationName:"arn" min:"1" type:"string"` 13862 13863 // Timestamp of when the event type was created. 13864 CreatedTime *string `locationName:"createdTime" min:"11" type:"string"` 13865 13866 // The label description. 13867 Description *string `locationName:"description" min:"1" type:"string"` 13868 13869 // Timestamp of when the label was last updated. 13870 LastUpdatedTime *string `locationName:"lastUpdatedTime" min:"11" type:"string"` 13871 13872 // The label name. 13873 Name *string `locationName:"name" type:"string"` 13874 } 13875 13876 // String returns the string representation. 13877 // 13878 // API parameter values that are decorated as "sensitive" in the API will not 13879 // be included in the string output. The member name will be present, but the 13880 // value will be replaced with "sensitive". 13881 func (s Label) String() string { 13882 return awsutil.Prettify(s) 13883 } 13884 13885 // GoString returns the string representation. 13886 // 13887 // API parameter values that are decorated as "sensitive" in the API will not 13888 // be included in the string output. The member name will be present, but the 13889 // value will be replaced with "sensitive". 13890 func (s Label) GoString() string { 13891 return s.String() 13892 } 13893 13894 // SetArn sets the Arn field's value. 13895 func (s *Label) SetArn(v string) *Label { 13896 s.Arn = &v 13897 return s 13898 } 13899 13900 // SetCreatedTime sets the CreatedTime field's value. 13901 func (s *Label) SetCreatedTime(v string) *Label { 13902 s.CreatedTime = &v 13903 return s 13904 } 13905 13906 // SetDescription sets the Description field's value. 13907 func (s *Label) SetDescription(v string) *Label { 13908 s.Description = &v 13909 return s 13910 } 13911 13912 // SetLastUpdatedTime sets the LastUpdatedTime field's value. 13913 func (s *Label) SetLastUpdatedTime(v string) *Label { 13914 s.LastUpdatedTime = &v 13915 return s 13916 } 13917 13918 // SetName sets the Name field's value. 13919 func (s *Label) SetName(v string) *Label { 13920 s.Name = &v 13921 return s 13922 } 13923 13924 // The label schema. 13925 type LabelSchema struct { 13926 _ struct{} `type:"structure"` 13927 13928 // The label mapper maps the Amazon Fraud Detector supported model classification 13929 // labels (FRAUD, LEGIT) to the appropriate event type labels. For example, 13930 // if "FRAUD" and "LEGIT" are Amazon Fraud Detector supported labels, this mapper 13931 // could be: {"FRAUD" => ["0"], "LEGIT" => ["1"]} or {"FRAUD" => ["false"], 13932 // "LEGIT" => ["true"]} or {"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", 13933 // "safe"]}. The value part of the mapper is a list, because you may have multiple 13934 // label variants from your event type for a single Amazon Fraud Detector label. 13935 // 13936 // LabelMapper is a required field 13937 LabelMapper map[string][]*string `locationName:"labelMapper" type:"map" required:"true"` 13938 13939 // The action to take for unlabeled events. 13940 UnlabeledEventsTreatment *string `locationName:"unlabeledEventsTreatment" type:"string" enum:"UnlabeledEventsTreatment"` 13941 } 13942 13943 // String returns the string representation. 13944 // 13945 // API parameter values that are decorated as "sensitive" in the API will not 13946 // be included in the string output. The member name will be present, but the 13947 // value will be replaced with "sensitive". 13948 func (s LabelSchema) String() string { 13949 return awsutil.Prettify(s) 13950 } 13951 13952 // GoString returns the string representation. 13953 // 13954 // API parameter values that are decorated as "sensitive" in the API will not 13955 // be included in the string output. The member name will be present, but the 13956 // value will be replaced with "sensitive". 13957 func (s LabelSchema) GoString() string { 13958 return s.String() 13959 } 13960 13961 // Validate inspects the fields of the type to determine if they are valid. 13962 func (s *LabelSchema) Validate() error { 13963 invalidParams := request.ErrInvalidParams{Context: "LabelSchema"} 13964 if s.LabelMapper == nil { 13965 invalidParams.Add(request.NewErrParamRequired("LabelMapper")) 13966 } 13967 13968 if invalidParams.Len() > 0 { 13969 return invalidParams 13970 } 13971 return nil 13972 } 13973 13974 // SetLabelMapper sets the LabelMapper field's value. 13975 func (s *LabelSchema) SetLabelMapper(v map[string][]*string) *LabelSchema { 13976 s.LabelMapper = v 13977 return s 13978 } 13979 13980 // SetUnlabeledEventsTreatment sets the UnlabeledEventsTreatment field's value. 13981 func (s *LabelSchema) SetUnlabeledEventsTreatment(v string) *LabelSchema { 13982 s.UnlabeledEventsTreatment = &v 13983 return s 13984 } 13985 13986 type ListTagsForResourceInput struct { 13987 _ struct{} `type:"structure"` 13988 13989 // The maximum number of objects to return for the request. 13990 MaxResults *int64 `locationName:"maxResults" min:"50" type:"integer"` 13991 13992 // The next token from the previous results. 13993 NextToken *string `locationName:"nextToken" type:"string"` 13994 13995 // The ARN that specifies the resource whose tags you want to list. 13996 // 13997 // ResourceARN is a required field 13998 ResourceARN *string `locationName:"resourceARN" min:"1" type:"string" required:"true"` 13999 } 14000 14001 // String returns the string representation. 14002 // 14003 // API parameter values that are decorated as "sensitive" in the API will not 14004 // be included in the string output. The member name will be present, but the 14005 // value will be replaced with "sensitive". 14006 func (s ListTagsForResourceInput) String() string { 14007 return awsutil.Prettify(s) 14008 } 14009 14010 // GoString returns the string representation. 14011 // 14012 // API parameter values that are decorated as "sensitive" in the API will not 14013 // be included in the string output. The member name will be present, but the 14014 // value will be replaced with "sensitive". 14015 func (s ListTagsForResourceInput) GoString() string { 14016 return s.String() 14017 } 14018 14019 // Validate inspects the fields of the type to determine if they are valid. 14020 func (s *ListTagsForResourceInput) Validate() error { 14021 invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} 14022 if s.MaxResults != nil && *s.MaxResults < 50 { 14023 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 50)) 14024 } 14025 if s.ResourceARN == nil { 14026 invalidParams.Add(request.NewErrParamRequired("ResourceARN")) 14027 } 14028 if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { 14029 invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) 14030 } 14031 14032 if invalidParams.Len() > 0 { 14033 return invalidParams 14034 } 14035 return nil 14036 } 14037 14038 // SetMaxResults sets the MaxResults field's value. 14039 func (s *ListTagsForResourceInput) SetMaxResults(v int64) *ListTagsForResourceInput { 14040 s.MaxResults = &v 14041 return s 14042 } 14043 14044 // SetNextToken sets the NextToken field's value. 14045 func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput { 14046 s.NextToken = &v 14047 return s 14048 } 14049 14050 // SetResourceARN sets the ResourceARN field's value. 14051 func (s *ListTagsForResourceInput) SetResourceARN(v string) *ListTagsForResourceInput { 14052 s.ResourceARN = &v 14053 return s 14054 } 14055 14056 type ListTagsForResourceOutput struct { 14057 _ struct{} `type:"structure"` 14058 14059 // The next token for subsequent requests. 14060 NextToken *string `locationName:"nextToken" type:"string"` 14061 14062 // A collection of key and value pairs. 14063 Tags []*Tag `locationName:"tags" type:"list"` 14064 } 14065 14066 // String returns the string representation. 14067 // 14068 // API parameter values that are decorated as "sensitive" in the API will not 14069 // be included in the string output. The member name will be present, but the 14070 // value will be replaced with "sensitive". 14071 func (s ListTagsForResourceOutput) String() string { 14072 return awsutil.Prettify(s) 14073 } 14074 14075 // GoString returns the string representation. 14076 // 14077 // API parameter values that are decorated as "sensitive" in the API will not 14078 // be included in the string output. The member name will be present, but the 14079 // value will be replaced with "sensitive". 14080 func (s ListTagsForResourceOutput) GoString() string { 14081 return s.String() 14082 } 14083 14084 // SetNextToken sets the NextToken field's value. 14085 func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput { 14086 s.NextToken = &v 14087 return s 14088 } 14089 14090 // SetTags sets the Tags field's value. 14091 func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { 14092 s.Tags = v 14093 return s 14094 } 14095 14096 // The log odds metric details. 14097 type LogOddsMetric struct { 14098 _ struct{} `type:"structure"` 14099 14100 // The relative importance of the variable. For more information, see Model 14101 // variable importance (https://docs.aws.amazon.com/frauddetector/latest/ug/model-variable-importance.html). 14102 // 14103 // VariableImportance is a required field 14104 VariableImportance *float64 `locationName:"variableImportance" type:"float" required:"true"` 14105 14106 // The name of the variable. 14107 // 14108 // VariableName is a required field 14109 VariableName *string `locationName:"variableName" type:"string" required:"true"` 14110 14111 // The type of variable. 14112 // 14113 // VariableType is a required field 14114 VariableType *string `locationName:"variableType" type:"string" required:"true"` 14115 } 14116 14117 // String returns the string representation. 14118 // 14119 // API parameter values that are decorated as "sensitive" in the API will not 14120 // be included in the string output. The member name will be present, but the 14121 // value will be replaced with "sensitive". 14122 func (s LogOddsMetric) String() string { 14123 return awsutil.Prettify(s) 14124 } 14125 14126 // GoString returns the string representation. 14127 // 14128 // API parameter values that are decorated as "sensitive" in the API will not 14129 // be included in the string output. The member name will be present, but the 14130 // value will be replaced with "sensitive". 14131 func (s LogOddsMetric) GoString() string { 14132 return s.String() 14133 } 14134 14135 // SetVariableImportance sets the VariableImportance field's value. 14136 func (s *LogOddsMetric) SetVariableImportance(v float64) *LogOddsMetric { 14137 s.VariableImportance = &v 14138 return s 14139 } 14140 14141 // SetVariableName sets the VariableName field's value. 14142 func (s *LogOddsMetric) SetVariableName(v string) *LogOddsMetric { 14143 s.VariableName = &v 14144 return s 14145 } 14146 14147 // SetVariableType sets the VariableType field's value. 14148 func (s *LogOddsMetric) SetVariableType(v string) *LogOddsMetric { 14149 s.VariableType = &v 14150 return s 14151 } 14152 14153 // Model performance metrics data points. 14154 type MetricDataPoint struct { 14155 _ struct{} `type:"structure"` 14156 14157 // The false positive rate. This is the percentage of total legitimate events 14158 // that are incorrectly predicted as fraud. 14159 Fpr *float64 `locationName:"fpr" type:"float"` 14160 14161 // The percentage of fraud events correctly predicted as fraudulent as compared 14162 // to all events predicted as fraudulent. 14163 Precision *float64 `locationName:"precision" type:"float"` 14164 14165 // The model threshold that specifies an acceptable fraud capture rate. For 14166 // example, a threshold of 500 means any model score 500 or above is labeled 14167 // as fraud. 14168 Threshold *float64 `locationName:"threshold" type:"float"` 14169 14170 // The true positive rate. This is the percentage of total fraud the model detects. 14171 // Also known as capture rate. 14172 Tpr *float64 `locationName:"tpr" type:"float"` 14173 } 14174 14175 // String returns the string representation. 14176 // 14177 // API parameter values that are decorated as "sensitive" in the API will not 14178 // be included in the string output. The member name will be present, but the 14179 // value will be replaced with "sensitive". 14180 func (s MetricDataPoint) String() string { 14181 return awsutil.Prettify(s) 14182 } 14183 14184 // GoString returns the string representation. 14185 // 14186 // API parameter values that are decorated as "sensitive" in the API will not 14187 // be included in the string output. The member name will be present, but the 14188 // value will be replaced with "sensitive". 14189 func (s MetricDataPoint) GoString() string { 14190 return s.String() 14191 } 14192 14193 // SetFpr sets the Fpr field's value. 14194 func (s *MetricDataPoint) SetFpr(v float64) *MetricDataPoint { 14195 s.Fpr = &v 14196 return s 14197 } 14198 14199 // SetPrecision sets the Precision field's value. 14200 func (s *MetricDataPoint) SetPrecision(v float64) *MetricDataPoint { 14201 s.Precision = &v 14202 return s 14203 } 14204 14205 // SetThreshold sets the Threshold field's value. 14206 func (s *MetricDataPoint) SetThreshold(v float64) *MetricDataPoint { 14207 s.Threshold = &v 14208 return s 14209 } 14210 14211 // SetTpr sets the Tpr field's value. 14212 func (s *MetricDataPoint) SetTpr(v float64) *MetricDataPoint { 14213 s.Tpr = &v 14214 return s 14215 } 14216 14217 // The model. 14218 type Model struct { 14219 _ struct{} `type:"structure"` 14220 14221 // The ARN of the model. 14222 Arn *string `locationName:"arn" min:"1" type:"string"` 14223 14224 // Timestamp of when the model was created. 14225 CreatedTime *string `locationName:"createdTime" min:"11" type:"string"` 14226 14227 // The model description. 14228 Description *string `locationName:"description" min:"1" type:"string"` 14229 14230 // The name of the event type. 14231 EventTypeName *string `locationName:"eventTypeName" type:"string"` 14232 14233 // Timestamp of last time the model was updated. 14234 LastUpdatedTime *string `locationName:"lastUpdatedTime" min:"11" type:"string"` 14235 14236 // The model ID. 14237 ModelId *string `locationName:"modelId" min:"1" type:"string"` 14238 14239 // The model type. 14240 ModelType *string `locationName:"modelType" type:"string" enum:"ModelTypeEnum"` 14241 } 14242 14243 // String returns the string representation. 14244 // 14245 // API parameter values that are decorated as "sensitive" in the API will not 14246 // be included in the string output. The member name will be present, but the 14247 // value will be replaced with "sensitive". 14248 func (s Model) String() string { 14249 return awsutil.Prettify(s) 14250 } 14251 14252 // GoString returns the string representation. 14253 // 14254 // API parameter values that are decorated as "sensitive" in the API will not 14255 // be included in the string output. The member name will be present, but the 14256 // value will be replaced with "sensitive". 14257 func (s Model) GoString() string { 14258 return s.String() 14259 } 14260 14261 // SetArn sets the Arn field's value. 14262 func (s *Model) SetArn(v string) *Model { 14263 s.Arn = &v 14264 return s 14265 } 14266 14267 // SetCreatedTime sets the CreatedTime field's value. 14268 func (s *Model) SetCreatedTime(v string) *Model { 14269 s.CreatedTime = &v 14270 return s 14271 } 14272 14273 // SetDescription sets the Description field's value. 14274 func (s *Model) SetDescription(v string) *Model { 14275 s.Description = &v 14276 return s 14277 } 14278 14279 // SetEventTypeName sets the EventTypeName field's value. 14280 func (s *Model) SetEventTypeName(v string) *Model { 14281 s.EventTypeName = &v 14282 return s 14283 } 14284 14285 // SetLastUpdatedTime sets the LastUpdatedTime field's value. 14286 func (s *Model) SetLastUpdatedTime(v string) *Model { 14287 s.LastUpdatedTime = &v 14288 return s 14289 } 14290 14291 // SetModelId sets the ModelId field's value. 14292 func (s *Model) SetModelId(v string) *Model { 14293 s.ModelId = &v 14294 return s 14295 } 14296 14297 // SetModelType sets the ModelType field's value. 14298 func (s *Model) SetModelType(v string) *Model { 14299 s.ModelType = &v 14300 return s 14301 } 14302 14303 // A pre-formed Amazon SageMaker model input you can include if your detector 14304 // version includes an imported Amazon SageMaker model endpoint with pass-through 14305 // input configuration. 14306 type ModelEndpointDataBlob struct { 14307 _ struct{} `type:"structure"` 14308 14309 // The byte buffer of the Amazon SageMaker model endpoint input data blob. 14310 // ByteBuffer is automatically base64 encoded/decoded by the SDK. 14311 ByteBuffer []byte `locationName:"byteBuffer" type:"blob"` 14312 14313 // The content type of the Amazon SageMaker model endpoint input data blob. 14314 ContentType *string `locationName:"contentType" min:"1" type:"string"` 14315 } 14316 14317 // String returns the string representation. 14318 // 14319 // API parameter values that are decorated as "sensitive" in the API will not 14320 // be included in the string output. The member name will be present, but the 14321 // value will be replaced with "sensitive". 14322 func (s ModelEndpointDataBlob) String() string { 14323 return awsutil.Prettify(s) 14324 } 14325 14326 // GoString returns the string representation. 14327 // 14328 // API parameter values that are decorated as "sensitive" in the API will not 14329 // be included in the string output. The member name will be present, but the 14330 // value will be replaced with "sensitive". 14331 func (s ModelEndpointDataBlob) GoString() string { 14332 return s.String() 14333 } 14334 14335 // Validate inspects the fields of the type to determine if they are valid. 14336 func (s *ModelEndpointDataBlob) Validate() error { 14337 invalidParams := request.ErrInvalidParams{Context: "ModelEndpointDataBlob"} 14338 if s.ContentType != nil && len(*s.ContentType) < 1 { 14339 invalidParams.Add(request.NewErrParamMinLen("ContentType", 1)) 14340 } 14341 14342 if invalidParams.Len() > 0 { 14343 return invalidParams 14344 } 14345 return nil 14346 } 14347 14348 // SetByteBuffer sets the ByteBuffer field's value. 14349 func (s *ModelEndpointDataBlob) SetByteBuffer(v []byte) *ModelEndpointDataBlob { 14350 s.ByteBuffer = v 14351 return s 14352 } 14353 14354 // SetContentType sets the ContentType field's value. 14355 func (s *ModelEndpointDataBlob) SetContentType(v string) *ModelEndpointDataBlob { 14356 s.ContentType = &v 14357 return s 14358 } 14359 14360 // The Amazon SageMaker model input configuration. 14361 type ModelInputConfiguration struct { 14362 _ struct{} `type:"structure"` 14363 14364 // Template for constructing the CSV input-data sent to SageMaker. At event-evaluation, 14365 // the placeholders for variable-names in the template will be replaced with 14366 // the variable values before being sent to SageMaker. 14367 CsvInputTemplate *string `locationName:"csvInputTemplate" min:"1" type:"string"` 14368 14369 // The event type name. 14370 EventTypeName *string `locationName:"eventTypeName" min:"1" type:"string"` 14371 14372 // The format of the model input configuration. The format differs depending 14373 // on if it is passed through to SageMaker or constructed by Amazon Fraud Detector. 14374 Format *string `locationName:"format" type:"string" enum:"ModelInputDataFormat"` 14375 14376 // Template for constructing the JSON input-data sent to SageMaker. At event-evaluation, 14377 // the placeholders for variable names in the template will be replaced with 14378 // the variable values before being sent to SageMaker. 14379 JsonInputTemplate *string `locationName:"jsonInputTemplate" min:"1" type:"string"` 14380 14381 // The event variables. 14382 // 14383 // UseEventVariables is a required field 14384 UseEventVariables *bool `locationName:"useEventVariables" type:"boolean" required:"true"` 14385 } 14386 14387 // String returns the string representation. 14388 // 14389 // API parameter values that are decorated as "sensitive" in the API will not 14390 // be included in the string output. The member name will be present, but the 14391 // value will be replaced with "sensitive". 14392 func (s ModelInputConfiguration) String() string { 14393 return awsutil.Prettify(s) 14394 } 14395 14396 // GoString returns the string representation. 14397 // 14398 // API parameter values that are decorated as "sensitive" in the API will not 14399 // be included in the string output. The member name will be present, but the 14400 // value will be replaced with "sensitive". 14401 func (s ModelInputConfiguration) GoString() string { 14402 return s.String() 14403 } 14404 14405 // Validate inspects the fields of the type to determine if they are valid. 14406 func (s *ModelInputConfiguration) Validate() error { 14407 invalidParams := request.ErrInvalidParams{Context: "ModelInputConfiguration"} 14408 if s.CsvInputTemplate != nil && len(*s.CsvInputTemplate) < 1 { 14409 invalidParams.Add(request.NewErrParamMinLen("CsvInputTemplate", 1)) 14410 } 14411 if s.EventTypeName != nil && len(*s.EventTypeName) < 1 { 14412 invalidParams.Add(request.NewErrParamMinLen("EventTypeName", 1)) 14413 } 14414 if s.JsonInputTemplate != nil && len(*s.JsonInputTemplate) < 1 { 14415 invalidParams.Add(request.NewErrParamMinLen("JsonInputTemplate", 1)) 14416 } 14417 if s.UseEventVariables == nil { 14418 invalidParams.Add(request.NewErrParamRequired("UseEventVariables")) 14419 } 14420 14421 if invalidParams.Len() > 0 { 14422 return invalidParams 14423 } 14424 return nil 14425 } 14426 14427 // SetCsvInputTemplate sets the CsvInputTemplate field's value. 14428 func (s *ModelInputConfiguration) SetCsvInputTemplate(v string) *ModelInputConfiguration { 14429 s.CsvInputTemplate = &v 14430 return s 14431 } 14432 14433 // SetEventTypeName sets the EventTypeName field's value. 14434 func (s *ModelInputConfiguration) SetEventTypeName(v string) *ModelInputConfiguration { 14435 s.EventTypeName = &v 14436 return s 14437 } 14438 14439 // SetFormat sets the Format field's value. 14440 func (s *ModelInputConfiguration) SetFormat(v string) *ModelInputConfiguration { 14441 s.Format = &v 14442 return s 14443 } 14444 14445 // SetJsonInputTemplate sets the JsonInputTemplate field's value. 14446 func (s *ModelInputConfiguration) SetJsonInputTemplate(v string) *ModelInputConfiguration { 14447 s.JsonInputTemplate = &v 14448 return s 14449 } 14450 14451 // SetUseEventVariables sets the UseEventVariables field's value. 14452 func (s *ModelInputConfiguration) SetUseEventVariables(v bool) *ModelInputConfiguration { 14453 s.UseEventVariables = &v 14454 return s 14455 } 14456 14457 // Provides the Amazon Sagemaker model output configuration. 14458 type ModelOutputConfiguration struct { 14459 _ struct{} `type:"structure"` 14460 14461 // A map of CSV index values in the SageMaker response to the Amazon Fraud Detector 14462 // variables. 14463 CsvIndexToVariableMap map[string]*string `locationName:"csvIndexToVariableMap" type:"map"` 14464 14465 // The format of the model output configuration. 14466 // 14467 // Format is a required field 14468 Format *string `locationName:"format" type:"string" required:"true" enum:"ModelOutputDataFormat"` 14469 14470 // A map of JSON keys in response from SageMaker to the Amazon Fraud Detector 14471 // variables. 14472 JsonKeyToVariableMap map[string]*string `locationName:"jsonKeyToVariableMap" type:"map"` 14473 } 14474 14475 // String returns the string representation. 14476 // 14477 // API parameter values that are decorated as "sensitive" in the API will not 14478 // be included in the string output. The member name will be present, but the 14479 // value will be replaced with "sensitive". 14480 func (s ModelOutputConfiguration) String() string { 14481 return awsutil.Prettify(s) 14482 } 14483 14484 // GoString returns the string representation. 14485 // 14486 // API parameter values that are decorated as "sensitive" in the API will not 14487 // be included in the string output. The member name will be present, but the 14488 // value will be replaced with "sensitive". 14489 func (s ModelOutputConfiguration) GoString() string { 14490 return s.String() 14491 } 14492 14493 // Validate inspects the fields of the type to determine if they are valid. 14494 func (s *ModelOutputConfiguration) Validate() error { 14495 invalidParams := request.ErrInvalidParams{Context: "ModelOutputConfiguration"} 14496 if s.Format == nil { 14497 invalidParams.Add(request.NewErrParamRequired("Format")) 14498 } 14499 14500 if invalidParams.Len() > 0 { 14501 return invalidParams 14502 } 14503 return nil 14504 } 14505 14506 // SetCsvIndexToVariableMap sets the CsvIndexToVariableMap field's value. 14507 func (s *ModelOutputConfiguration) SetCsvIndexToVariableMap(v map[string]*string) *ModelOutputConfiguration { 14508 s.CsvIndexToVariableMap = v 14509 return s 14510 } 14511 14512 // SetFormat sets the Format field's value. 14513 func (s *ModelOutputConfiguration) SetFormat(v string) *ModelOutputConfiguration { 14514 s.Format = &v 14515 return s 14516 } 14517 14518 // SetJsonKeyToVariableMap sets the JsonKeyToVariableMap field's value. 14519 func (s *ModelOutputConfiguration) SetJsonKeyToVariableMap(v map[string]*string) *ModelOutputConfiguration { 14520 s.JsonKeyToVariableMap = v 14521 return s 14522 } 14523 14524 // The fraud prediction scores. 14525 type ModelScores struct { 14526 _ struct{} `type:"structure"` 14527 14528 // The model version. 14529 ModelVersion *ModelVersion `locationName:"modelVersion" type:"structure"` 14530 14531 // The model's fraud prediction scores. 14532 Scores map[string]*float64 `locationName:"scores" type:"map"` 14533 } 14534 14535 // String returns the string representation. 14536 // 14537 // API parameter values that are decorated as "sensitive" in the API will not 14538 // be included in the string output. The member name will be present, but the 14539 // value will be replaced with "sensitive". 14540 func (s ModelScores) String() string { 14541 return awsutil.Prettify(s) 14542 } 14543 14544 // GoString returns the string representation. 14545 // 14546 // API parameter values that are decorated as "sensitive" in the API will not 14547 // be included in the string output. The member name will be present, but the 14548 // value will be replaced with "sensitive". 14549 func (s ModelScores) GoString() string { 14550 return s.String() 14551 } 14552 14553 // SetModelVersion sets the ModelVersion field's value. 14554 func (s *ModelScores) SetModelVersion(v *ModelVersion) *ModelScores { 14555 s.ModelVersion = v 14556 return s 14557 } 14558 14559 // SetScores sets the Scores field's value. 14560 func (s *ModelScores) SetScores(v map[string]*float64) *ModelScores { 14561 s.Scores = v 14562 return s 14563 } 14564 14565 // The model version. 14566 type ModelVersion struct { 14567 _ struct{} `type:"structure"` 14568 14569 // The model version ARN. 14570 Arn *string `locationName:"arn" min:"1" type:"string"` 14571 14572 // The model ID. 14573 // 14574 // ModelId is a required field 14575 ModelId *string `locationName:"modelId" min:"1" type:"string" required:"true"` 14576 14577 // The model type. 14578 // 14579 // ModelType is a required field 14580 ModelType *string `locationName:"modelType" type:"string" required:"true" enum:"ModelTypeEnum"` 14581 14582 // The model version number. 14583 // 14584 // ModelVersionNumber is a required field 14585 ModelVersionNumber *string `locationName:"modelVersionNumber" min:"3" type:"string" required:"true"` 14586 } 14587 14588 // String returns the string representation. 14589 // 14590 // API parameter values that are decorated as "sensitive" in the API will not 14591 // be included in the string output. The member name will be present, but the 14592 // value will be replaced with "sensitive". 14593 func (s ModelVersion) String() string { 14594 return awsutil.Prettify(s) 14595 } 14596 14597 // GoString returns the string representation. 14598 // 14599 // API parameter values that are decorated as "sensitive" in the API will not 14600 // be included in the string output. The member name will be present, but the 14601 // value will be replaced with "sensitive". 14602 func (s ModelVersion) GoString() string { 14603 return s.String() 14604 } 14605 14606 // Validate inspects the fields of the type to determine if they are valid. 14607 func (s *ModelVersion) Validate() error { 14608 invalidParams := request.ErrInvalidParams{Context: "ModelVersion"} 14609 if s.Arn != nil && len(*s.Arn) < 1 { 14610 invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) 14611 } 14612 if s.ModelId == nil { 14613 invalidParams.Add(request.NewErrParamRequired("ModelId")) 14614 } 14615 if s.ModelId != nil && len(*s.ModelId) < 1 { 14616 invalidParams.Add(request.NewErrParamMinLen("ModelId", 1)) 14617 } 14618 if s.ModelType == nil { 14619 invalidParams.Add(request.NewErrParamRequired("ModelType")) 14620 } 14621 if s.ModelVersionNumber == nil { 14622 invalidParams.Add(request.NewErrParamRequired("ModelVersionNumber")) 14623 } 14624 if s.ModelVersionNumber != nil && len(*s.ModelVersionNumber) < 3 { 14625 invalidParams.Add(request.NewErrParamMinLen("ModelVersionNumber", 3)) 14626 } 14627 14628 if invalidParams.Len() > 0 { 14629 return invalidParams 14630 } 14631 return nil 14632 } 14633 14634 // SetArn sets the Arn field's value. 14635 func (s *ModelVersion) SetArn(v string) *ModelVersion { 14636 s.Arn = &v 14637 return s 14638 } 14639 14640 // SetModelId sets the ModelId field's value. 14641 func (s *ModelVersion) SetModelId(v string) *ModelVersion { 14642 s.ModelId = &v 14643 return s 14644 } 14645 14646 // SetModelType sets the ModelType field's value. 14647 func (s *ModelVersion) SetModelType(v string) *ModelVersion { 14648 s.ModelType = &v 14649 return s 14650 } 14651 14652 // SetModelVersionNumber sets the ModelVersionNumber field's value. 14653 func (s *ModelVersion) SetModelVersionNumber(v string) *ModelVersion { 14654 s.ModelVersionNumber = &v 14655 return s 14656 } 14657 14658 // The details of the model version. 14659 type ModelVersionDetail struct { 14660 _ struct{} `type:"structure"` 14661 14662 // The model version ARN. 14663 Arn *string `locationName:"arn" min:"1" type:"string"` 14664 14665 // The timestamp when the model was created. 14666 CreatedTime *string `locationName:"createdTime" min:"11" type:"string"` 14667 14668 // The external events data details. This will be populated if the trainingDataSource 14669 // for the model version is specified as EXTERNAL_EVENTS. 14670 ExternalEventsDetail *ExternalEventsDetail `locationName:"externalEventsDetail" type:"structure"` 14671 14672 // The ingested events data details. This will be populated if the trainingDataSource 14673 // for the model version is specified as INGESTED_EVENTS. 14674 IngestedEventsDetail *IngestedEventsDetail `locationName:"ingestedEventsDetail" type:"structure"` 14675 14676 // The timestamp when the model was last updated. 14677 LastUpdatedTime *string `locationName:"lastUpdatedTime" min:"11" type:"string"` 14678 14679 // The model ID. 14680 ModelId *string `locationName:"modelId" min:"1" type:"string"` 14681 14682 // The model type. 14683 ModelType *string `locationName:"modelType" type:"string" enum:"ModelTypeEnum"` 14684 14685 // The model version number. 14686 ModelVersionNumber *string `locationName:"modelVersionNumber" min:"3" type:"string"` 14687 14688 // The status of the model version. 14689 Status *string `locationName:"status" type:"string"` 14690 14691 // The training data schema. 14692 TrainingDataSchema *TrainingDataSchema `locationName:"trainingDataSchema" type:"structure"` 14693 14694 // The model version training data source. 14695 TrainingDataSource *string `locationName:"trainingDataSource" type:"string" enum:"TrainingDataSourceEnum"` 14696 14697 // The training results. 14698 TrainingResult *TrainingResult `locationName:"trainingResult" type:"structure"` 14699 } 14700 14701 // String returns the string representation. 14702 // 14703 // API parameter values that are decorated as "sensitive" in the API will not 14704 // be included in the string output. The member name will be present, but the 14705 // value will be replaced with "sensitive". 14706 func (s ModelVersionDetail) String() string { 14707 return awsutil.Prettify(s) 14708 } 14709 14710 // GoString returns the string representation. 14711 // 14712 // API parameter values that are decorated as "sensitive" in the API will not 14713 // be included in the string output. The member name will be present, but the 14714 // value will be replaced with "sensitive". 14715 func (s ModelVersionDetail) GoString() string { 14716 return s.String() 14717 } 14718 14719 // SetArn sets the Arn field's value. 14720 func (s *ModelVersionDetail) SetArn(v string) *ModelVersionDetail { 14721 s.Arn = &v 14722 return s 14723 } 14724 14725 // SetCreatedTime sets the CreatedTime field's value. 14726 func (s *ModelVersionDetail) SetCreatedTime(v string) *ModelVersionDetail { 14727 s.CreatedTime = &v 14728 return s 14729 } 14730 14731 // SetExternalEventsDetail sets the ExternalEventsDetail field's value. 14732 func (s *ModelVersionDetail) SetExternalEventsDetail(v *ExternalEventsDetail) *ModelVersionDetail { 14733 s.ExternalEventsDetail = v 14734 return s 14735 } 14736 14737 // SetIngestedEventsDetail sets the IngestedEventsDetail field's value. 14738 func (s *ModelVersionDetail) SetIngestedEventsDetail(v *IngestedEventsDetail) *ModelVersionDetail { 14739 s.IngestedEventsDetail = v 14740 return s 14741 } 14742 14743 // SetLastUpdatedTime sets the LastUpdatedTime field's value. 14744 func (s *ModelVersionDetail) SetLastUpdatedTime(v string) *ModelVersionDetail { 14745 s.LastUpdatedTime = &v 14746 return s 14747 } 14748 14749 // SetModelId sets the ModelId field's value. 14750 func (s *ModelVersionDetail) SetModelId(v string) *ModelVersionDetail { 14751 s.ModelId = &v 14752 return s 14753 } 14754 14755 // SetModelType sets the ModelType field's value. 14756 func (s *ModelVersionDetail) SetModelType(v string) *ModelVersionDetail { 14757 s.ModelType = &v 14758 return s 14759 } 14760 14761 // SetModelVersionNumber sets the ModelVersionNumber field's value. 14762 func (s *ModelVersionDetail) SetModelVersionNumber(v string) *ModelVersionDetail { 14763 s.ModelVersionNumber = &v 14764 return s 14765 } 14766 14767 // SetStatus sets the Status field's value. 14768 func (s *ModelVersionDetail) SetStatus(v string) *ModelVersionDetail { 14769 s.Status = &v 14770 return s 14771 } 14772 14773 // SetTrainingDataSchema sets the TrainingDataSchema field's value. 14774 func (s *ModelVersionDetail) SetTrainingDataSchema(v *TrainingDataSchema) *ModelVersionDetail { 14775 s.TrainingDataSchema = v 14776 return s 14777 } 14778 14779 // SetTrainingDataSource sets the TrainingDataSource field's value. 14780 func (s *ModelVersionDetail) SetTrainingDataSource(v string) *ModelVersionDetail { 14781 s.TrainingDataSource = &v 14782 return s 14783 } 14784 14785 // SetTrainingResult sets the TrainingResult field's value. 14786 func (s *ModelVersionDetail) SetTrainingResult(v *TrainingResult) *ModelVersionDetail { 14787 s.TrainingResult = v 14788 return s 14789 } 14790 14791 // The outcome. 14792 type Outcome struct { 14793 _ struct{} `type:"structure"` 14794 14795 // The outcome ARN. 14796 Arn *string `locationName:"arn" min:"1" type:"string"` 14797 14798 // The timestamp when the outcome was created. 14799 CreatedTime *string `locationName:"createdTime" min:"11" type:"string"` 14800 14801 // The outcome description. 14802 Description *string `locationName:"description" min:"1" type:"string"` 14803 14804 // The timestamp when the outcome was last updated. 14805 LastUpdatedTime *string `locationName:"lastUpdatedTime" min:"11" type:"string"` 14806 14807 // The outcome name. 14808 Name *string `locationName:"name" min:"1" type:"string"` 14809 } 14810 14811 // String returns the string representation. 14812 // 14813 // API parameter values that are decorated as "sensitive" in the API will not 14814 // be included in the string output. The member name will be present, but the 14815 // value will be replaced with "sensitive". 14816 func (s Outcome) String() string { 14817 return awsutil.Prettify(s) 14818 } 14819 14820 // GoString returns the string representation. 14821 // 14822 // API parameter values that are decorated as "sensitive" in the API will not 14823 // be included in the string output. The member name will be present, but the 14824 // value will be replaced with "sensitive". 14825 func (s Outcome) GoString() string { 14826 return s.String() 14827 } 14828 14829 // SetArn sets the Arn field's value. 14830 func (s *Outcome) SetArn(v string) *Outcome { 14831 s.Arn = &v 14832 return s 14833 } 14834 14835 // SetCreatedTime sets the CreatedTime field's value. 14836 func (s *Outcome) SetCreatedTime(v string) *Outcome { 14837 s.CreatedTime = &v 14838 return s 14839 } 14840 14841 // SetDescription sets the Description field's value. 14842 func (s *Outcome) SetDescription(v string) *Outcome { 14843 s.Description = &v 14844 return s 14845 } 14846 14847 // SetLastUpdatedTime sets the LastUpdatedTime field's value. 14848 func (s *Outcome) SetLastUpdatedTime(v string) *Outcome { 14849 s.LastUpdatedTime = &v 14850 return s 14851 } 14852 14853 // SetName sets the Name field's value. 14854 func (s *Outcome) SetName(v string) *Outcome { 14855 s.Name = &v 14856 return s 14857 } 14858 14859 type PutDetectorInput struct { 14860 _ struct{} `type:"structure"` 14861 14862 // The description of the detector. 14863 Description *string `locationName:"description" min:"1" type:"string"` 14864 14865 // The detector ID. 14866 // 14867 // DetectorId is a required field 14868 DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"` 14869 14870 // The name of the event type. 14871 // 14872 // EventTypeName is a required field 14873 EventTypeName *string `locationName:"eventTypeName" min:"1" type:"string" required:"true"` 14874 14875 // A collection of key and value pairs. 14876 Tags []*Tag `locationName:"tags" type:"list"` 14877 } 14878 14879 // String returns the string representation. 14880 // 14881 // API parameter values that are decorated as "sensitive" in the API will not 14882 // be included in the string output. The member name will be present, but the 14883 // value will be replaced with "sensitive". 14884 func (s PutDetectorInput) String() string { 14885 return awsutil.Prettify(s) 14886 } 14887 14888 // GoString returns the string representation. 14889 // 14890 // API parameter values that are decorated as "sensitive" in the API will not 14891 // be included in the string output. The member name will be present, but the 14892 // value will be replaced with "sensitive". 14893 func (s PutDetectorInput) GoString() string { 14894 return s.String() 14895 } 14896 14897 // Validate inspects the fields of the type to determine if they are valid. 14898 func (s *PutDetectorInput) Validate() error { 14899 invalidParams := request.ErrInvalidParams{Context: "PutDetectorInput"} 14900 if s.Description != nil && len(*s.Description) < 1 { 14901 invalidParams.Add(request.NewErrParamMinLen("Description", 1)) 14902 } 14903 if s.DetectorId == nil { 14904 invalidParams.Add(request.NewErrParamRequired("DetectorId")) 14905 } 14906 if s.DetectorId != nil && len(*s.DetectorId) < 1 { 14907 invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) 14908 } 14909 if s.EventTypeName == nil { 14910 invalidParams.Add(request.NewErrParamRequired("EventTypeName")) 14911 } 14912 if s.EventTypeName != nil && len(*s.EventTypeName) < 1 { 14913 invalidParams.Add(request.NewErrParamMinLen("EventTypeName", 1)) 14914 } 14915 if s.Tags != nil { 14916 for i, v := range s.Tags { 14917 if v == nil { 14918 continue 14919 } 14920 if err := v.Validate(); err != nil { 14921 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 14922 } 14923 } 14924 } 14925 14926 if invalidParams.Len() > 0 { 14927 return invalidParams 14928 } 14929 return nil 14930 } 14931 14932 // SetDescription sets the Description field's value. 14933 func (s *PutDetectorInput) SetDescription(v string) *PutDetectorInput { 14934 s.Description = &v 14935 return s 14936 } 14937 14938 // SetDetectorId sets the DetectorId field's value. 14939 func (s *PutDetectorInput) SetDetectorId(v string) *PutDetectorInput { 14940 s.DetectorId = &v 14941 return s 14942 } 14943 14944 // SetEventTypeName sets the EventTypeName field's value. 14945 func (s *PutDetectorInput) SetEventTypeName(v string) *PutDetectorInput { 14946 s.EventTypeName = &v 14947 return s 14948 } 14949 14950 // SetTags sets the Tags field's value. 14951 func (s *PutDetectorInput) SetTags(v []*Tag) *PutDetectorInput { 14952 s.Tags = v 14953 return s 14954 } 14955 14956 type PutDetectorOutput struct { 14957 _ struct{} `type:"structure"` 14958 } 14959 14960 // String returns the string representation. 14961 // 14962 // API parameter values that are decorated as "sensitive" in the API will not 14963 // be included in the string output. The member name will be present, but the 14964 // value will be replaced with "sensitive". 14965 func (s PutDetectorOutput) String() string { 14966 return awsutil.Prettify(s) 14967 } 14968 14969 // GoString returns the string representation. 14970 // 14971 // API parameter values that are decorated as "sensitive" in the API will not 14972 // be included in the string output. The member name will be present, but the 14973 // value will be replaced with "sensitive". 14974 func (s PutDetectorOutput) GoString() string { 14975 return s.String() 14976 } 14977 14978 type PutEntityTypeInput struct { 14979 _ struct{} `type:"structure"` 14980 14981 // The description. 14982 Description *string `locationName:"description" min:"1" type:"string"` 14983 14984 // The name of the entity type. 14985 // 14986 // Name is a required field 14987 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 14988 14989 // A collection of key and value pairs. 14990 Tags []*Tag `locationName:"tags" type:"list"` 14991 } 14992 14993 // String returns the string representation. 14994 // 14995 // API parameter values that are decorated as "sensitive" in the API will not 14996 // be included in the string output. The member name will be present, but the 14997 // value will be replaced with "sensitive". 14998 func (s PutEntityTypeInput) String() string { 14999 return awsutil.Prettify(s) 15000 } 15001 15002 // GoString returns the string representation. 15003 // 15004 // API parameter values that are decorated as "sensitive" in the API will not 15005 // be included in the string output. The member name will be present, but the 15006 // value will be replaced with "sensitive". 15007 func (s PutEntityTypeInput) GoString() string { 15008 return s.String() 15009 } 15010 15011 // Validate inspects the fields of the type to determine if they are valid. 15012 func (s *PutEntityTypeInput) Validate() error { 15013 invalidParams := request.ErrInvalidParams{Context: "PutEntityTypeInput"} 15014 if s.Description != nil && len(*s.Description) < 1 { 15015 invalidParams.Add(request.NewErrParamMinLen("Description", 1)) 15016 } 15017 if s.Name == nil { 15018 invalidParams.Add(request.NewErrParamRequired("Name")) 15019 } 15020 if s.Name != nil && len(*s.Name) < 1 { 15021 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 15022 } 15023 if s.Tags != nil { 15024 for i, v := range s.Tags { 15025 if v == nil { 15026 continue 15027 } 15028 if err := v.Validate(); err != nil { 15029 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 15030 } 15031 } 15032 } 15033 15034 if invalidParams.Len() > 0 { 15035 return invalidParams 15036 } 15037 return nil 15038 } 15039 15040 // SetDescription sets the Description field's value. 15041 func (s *PutEntityTypeInput) SetDescription(v string) *PutEntityTypeInput { 15042 s.Description = &v 15043 return s 15044 } 15045 15046 // SetName sets the Name field's value. 15047 func (s *PutEntityTypeInput) SetName(v string) *PutEntityTypeInput { 15048 s.Name = &v 15049 return s 15050 } 15051 15052 // SetTags sets the Tags field's value. 15053 func (s *PutEntityTypeInput) SetTags(v []*Tag) *PutEntityTypeInput { 15054 s.Tags = v 15055 return s 15056 } 15057 15058 type PutEntityTypeOutput struct { 15059 _ struct{} `type:"structure"` 15060 } 15061 15062 // String returns the string representation. 15063 // 15064 // API parameter values that are decorated as "sensitive" in the API will not 15065 // be included in the string output. The member name will be present, but the 15066 // value will be replaced with "sensitive". 15067 func (s PutEntityTypeOutput) String() string { 15068 return awsutil.Prettify(s) 15069 } 15070 15071 // GoString returns the string representation. 15072 // 15073 // API parameter values that are decorated as "sensitive" in the API will not 15074 // be included in the string output. The member name will be present, but the 15075 // value will be replaced with "sensitive". 15076 func (s PutEntityTypeOutput) GoString() string { 15077 return s.String() 15078 } 15079 15080 type PutEventTypeInput struct { 15081 _ struct{} `type:"structure"` 15082 15083 // The description of the event type. 15084 Description *string `locationName:"description" min:"1" type:"string"` 15085 15086 // The entity type for the event type. Example entity types: customer, merchant, 15087 // account. 15088 // 15089 // EntityTypes is a required field 15090 EntityTypes []*string `locationName:"entityTypes" min:"1" type:"list" required:"true"` 15091 15092 // Specifies if ingenstion is enabled or disabled. 15093 EventIngestion *string `locationName:"eventIngestion" type:"string" enum:"EventIngestion"` 15094 15095 // The event type variables. 15096 // 15097 // EventVariables is a required field 15098 EventVariables []*string `locationName:"eventVariables" min:"1" type:"list" required:"true"` 15099 15100 // The event type labels. 15101 Labels []*string `locationName:"labels" type:"list"` 15102 15103 // The name. 15104 // 15105 // Name is a required field 15106 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 15107 15108 // A collection of key and value pairs. 15109 Tags []*Tag `locationName:"tags" type:"list"` 15110 } 15111 15112 // String returns the string representation. 15113 // 15114 // API parameter values that are decorated as "sensitive" in the API will not 15115 // be included in the string output. The member name will be present, but the 15116 // value will be replaced with "sensitive". 15117 func (s PutEventTypeInput) String() string { 15118 return awsutil.Prettify(s) 15119 } 15120 15121 // GoString returns the string representation. 15122 // 15123 // API parameter values that are decorated as "sensitive" in the API will not 15124 // be included in the string output. The member name will be present, but the 15125 // value will be replaced with "sensitive". 15126 func (s PutEventTypeInput) GoString() string { 15127 return s.String() 15128 } 15129 15130 // Validate inspects the fields of the type to determine if they are valid. 15131 func (s *PutEventTypeInput) Validate() error { 15132 invalidParams := request.ErrInvalidParams{Context: "PutEventTypeInput"} 15133 if s.Description != nil && len(*s.Description) < 1 { 15134 invalidParams.Add(request.NewErrParamMinLen("Description", 1)) 15135 } 15136 if s.EntityTypes == nil { 15137 invalidParams.Add(request.NewErrParamRequired("EntityTypes")) 15138 } 15139 if s.EntityTypes != nil && len(s.EntityTypes) < 1 { 15140 invalidParams.Add(request.NewErrParamMinLen("EntityTypes", 1)) 15141 } 15142 if s.EventVariables == nil { 15143 invalidParams.Add(request.NewErrParamRequired("EventVariables")) 15144 } 15145 if s.EventVariables != nil && len(s.EventVariables) < 1 { 15146 invalidParams.Add(request.NewErrParamMinLen("EventVariables", 1)) 15147 } 15148 if s.Name == nil { 15149 invalidParams.Add(request.NewErrParamRequired("Name")) 15150 } 15151 if s.Name != nil && len(*s.Name) < 1 { 15152 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 15153 } 15154 if s.Tags != nil { 15155 for i, v := range s.Tags { 15156 if v == nil { 15157 continue 15158 } 15159 if err := v.Validate(); err != nil { 15160 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 15161 } 15162 } 15163 } 15164 15165 if invalidParams.Len() > 0 { 15166 return invalidParams 15167 } 15168 return nil 15169 } 15170 15171 // SetDescription sets the Description field's value. 15172 func (s *PutEventTypeInput) SetDescription(v string) *PutEventTypeInput { 15173 s.Description = &v 15174 return s 15175 } 15176 15177 // SetEntityTypes sets the EntityTypes field's value. 15178 func (s *PutEventTypeInput) SetEntityTypes(v []*string) *PutEventTypeInput { 15179 s.EntityTypes = v 15180 return s 15181 } 15182 15183 // SetEventIngestion sets the EventIngestion field's value. 15184 func (s *PutEventTypeInput) SetEventIngestion(v string) *PutEventTypeInput { 15185 s.EventIngestion = &v 15186 return s 15187 } 15188 15189 // SetEventVariables sets the EventVariables field's value. 15190 func (s *PutEventTypeInput) SetEventVariables(v []*string) *PutEventTypeInput { 15191 s.EventVariables = v 15192 return s 15193 } 15194 15195 // SetLabels sets the Labels field's value. 15196 func (s *PutEventTypeInput) SetLabels(v []*string) *PutEventTypeInput { 15197 s.Labels = v 15198 return s 15199 } 15200 15201 // SetName sets the Name field's value. 15202 func (s *PutEventTypeInput) SetName(v string) *PutEventTypeInput { 15203 s.Name = &v 15204 return s 15205 } 15206 15207 // SetTags sets the Tags field's value. 15208 func (s *PutEventTypeInput) SetTags(v []*Tag) *PutEventTypeInput { 15209 s.Tags = v 15210 return s 15211 } 15212 15213 type PutEventTypeOutput struct { 15214 _ struct{} `type:"structure"` 15215 } 15216 15217 // String returns the string representation. 15218 // 15219 // API parameter values that are decorated as "sensitive" in the API will not 15220 // be included in the string output. The member name will be present, but the 15221 // value will be replaced with "sensitive". 15222 func (s PutEventTypeOutput) String() string { 15223 return awsutil.Prettify(s) 15224 } 15225 15226 // GoString returns the string representation. 15227 // 15228 // API parameter values that are decorated as "sensitive" in the API will not 15229 // be included in the string output. The member name will be present, but the 15230 // value will be replaced with "sensitive". 15231 func (s PutEventTypeOutput) GoString() string { 15232 return s.String() 15233 } 15234 15235 type PutExternalModelInput struct { 15236 _ struct{} `type:"structure"` 15237 15238 // The model endpoint input configuration. 15239 // 15240 // InputConfiguration is a required field 15241 InputConfiguration *ModelInputConfiguration `locationName:"inputConfiguration" type:"structure" required:"true"` 15242 15243 // The IAM role used to invoke the model endpoint. 15244 // 15245 // InvokeModelEndpointRoleArn is a required field 15246 InvokeModelEndpointRoleArn *string `locationName:"invokeModelEndpointRoleArn" type:"string" required:"true"` 15247 15248 // The model endpoints name. 15249 // 15250 // ModelEndpoint is a required field 15251 ModelEndpoint *string `locationName:"modelEndpoint" min:"1" type:"string" required:"true"` 15252 15253 // The model endpoint’s status in Amazon Fraud Detector. 15254 // 15255 // ModelEndpointStatus is a required field 15256 ModelEndpointStatus *string `locationName:"modelEndpointStatus" type:"string" required:"true" enum:"ModelEndpointStatus"` 15257 15258 // The source of the model. 15259 // 15260 // ModelSource is a required field 15261 ModelSource *string `locationName:"modelSource" type:"string" required:"true" enum:"ModelSource"` 15262 15263 // The model endpoint output configuration. 15264 // 15265 // OutputConfiguration is a required field 15266 OutputConfiguration *ModelOutputConfiguration `locationName:"outputConfiguration" type:"structure" required:"true"` 15267 15268 // A collection of key and value pairs. 15269 Tags []*Tag `locationName:"tags" type:"list"` 15270 } 15271 15272 // String returns the string representation. 15273 // 15274 // API parameter values that are decorated as "sensitive" in the API will not 15275 // be included in the string output. The member name will be present, but the 15276 // value will be replaced with "sensitive". 15277 func (s PutExternalModelInput) String() string { 15278 return awsutil.Prettify(s) 15279 } 15280 15281 // GoString returns the string representation. 15282 // 15283 // API parameter values that are decorated as "sensitive" in the API will not 15284 // be included in the string output. The member name will be present, but the 15285 // value will be replaced with "sensitive". 15286 func (s PutExternalModelInput) GoString() string { 15287 return s.String() 15288 } 15289 15290 // Validate inspects the fields of the type to determine if they are valid. 15291 func (s *PutExternalModelInput) Validate() error { 15292 invalidParams := request.ErrInvalidParams{Context: "PutExternalModelInput"} 15293 if s.InputConfiguration == nil { 15294 invalidParams.Add(request.NewErrParamRequired("InputConfiguration")) 15295 } 15296 if s.InvokeModelEndpointRoleArn == nil { 15297 invalidParams.Add(request.NewErrParamRequired("InvokeModelEndpointRoleArn")) 15298 } 15299 if s.ModelEndpoint == nil { 15300 invalidParams.Add(request.NewErrParamRequired("ModelEndpoint")) 15301 } 15302 if s.ModelEndpoint != nil && len(*s.ModelEndpoint) < 1 { 15303 invalidParams.Add(request.NewErrParamMinLen("ModelEndpoint", 1)) 15304 } 15305 if s.ModelEndpointStatus == nil { 15306 invalidParams.Add(request.NewErrParamRequired("ModelEndpointStatus")) 15307 } 15308 if s.ModelSource == nil { 15309 invalidParams.Add(request.NewErrParamRequired("ModelSource")) 15310 } 15311 if s.OutputConfiguration == nil { 15312 invalidParams.Add(request.NewErrParamRequired("OutputConfiguration")) 15313 } 15314 if s.InputConfiguration != nil { 15315 if err := s.InputConfiguration.Validate(); err != nil { 15316 invalidParams.AddNested("InputConfiguration", err.(request.ErrInvalidParams)) 15317 } 15318 } 15319 if s.OutputConfiguration != nil { 15320 if err := s.OutputConfiguration.Validate(); err != nil { 15321 invalidParams.AddNested("OutputConfiguration", err.(request.ErrInvalidParams)) 15322 } 15323 } 15324 if s.Tags != nil { 15325 for i, v := range s.Tags { 15326 if v == nil { 15327 continue 15328 } 15329 if err := v.Validate(); err != nil { 15330 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 15331 } 15332 } 15333 } 15334 15335 if invalidParams.Len() > 0 { 15336 return invalidParams 15337 } 15338 return nil 15339 } 15340 15341 // SetInputConfiguration sets the InputConfiguration field's value. 15342 func (s *PutExternalModelInput) SetInputConfiguration(v *ModelInputConfiguration) *PutExternalModelInput { 15343 s.InputConfiguration = v 15344 return s 15345 } 15346 15347 // SetInvokeModelEndpointRoleArn sets the InvokeModelEndpointRoleArn field's value. 15348 func (s *PutExternalModelInput) SetInvokeModelEndpointRoleArn(v string) *PutExternalModelInput { 15349 s.InvokeModelEndpointRoleArn = &v 15350 return s 15351 } 15352 15353 // SetModelEndpoint sets the ModelEndpoint field's value. 15354 func (s *PutExternalModelInput) SetModelEndpoint(v string) *PutExternalModelInput { 15355 s.ModelEndpoint = &v 15356 return s 15357 } 15358 15359 // SetModelEndpointStatus sets the ModelEndpointStatus field's value. 15360 func (s *PutExternalModelInput) SetModelEndpointStatus(v string) *PutExternalModelInput { 15361 s.ModelEndpointStatus = &v 15362 return s 15363 } 15364 15365 // SetModelSource sets the ModelSource field's value. 15366 func (s *PutExternalModelInput) SetModelSource(v string) *PutExternalModelInput { 15367 s.ModelSource = &v 15368 return s 15369 } 15370 15371 // SetOutputConfiguration sets the OutputConfiguration field's value. 15372 func (s *PutExternalModelInput) SetOutputConfiguration(v *ModelOutputConfiguration) *PutExternalModelInput { 15373 s.OutputConfiguration = v 15374 return s 15375 } 15376 15377 // SetTags sets the Tags field's value. 15378 func (s *PutExternalModelInput) SetTags(v []*Tag) *PutExternalModelInput { 15379 s.Tags = v 15380 return s 15381 } 15382 15383 type PutExternalModelOutput struct { 15384 _ struct{} `type:"structure"` 15385 } 15386 15387 // String returns the string representation. 15388 // 15389 // API parameter values that are decorated as "sensitive" in the API will not 15390 // be included in the string output. The member name will be present, but the 15391 // value will be replaced with "sensitive". 15392 func (s PutExternalModelOutput) String() string { 15393 return awsutil.Prettify(s) 15394 } 15395 15396 // GoString returns the string representation. 15397 // 15398 // API parameter values that are decorated as "sensitive" in the API will not 15399 // be included in the string output. The member name will be present, but the 15400 // value will be replaced with "sensitive". 15401 func (s PutExternalModelOutput) GoString() string { 15402 return s.String() 15403 } 15404 15405 type PutKMSEncryptionKeyInput struct { 15406 _ struct{} `type:"structure"` 15407 15408 // The KMS encryption key ARN. 15409 // 15410 // KmsEncryptionKeyArn is a required field 15411 KmsEncryptionKeyArn *string `locationName:"kmsEncryptionKeyArn" min:"7" type:"string" required:"true"` 15412 } 15413 15414 // String returns the string representation. 15415 // 15416 // API parameter values that are decorated as "sensitive" in the API will not 15417 // be included in the string output. The member name will be present, but the 15418 // value will be replaced with "sensitive". 15419 func (s PutKMSEncryptionKeyInput) String() string { 15420 return awsutil.Prettify(s) 15421 } 15422 15423 // GoString returns the string representation. 15424 // 15425 // API parameter values that are decorated as "sensitive" in the API will not 15426 // be included in the string output. The member name will be present, but the 15427 // value will be replaced with "sensitive". 15428 func (s PutKMSEncryptionKeyInput) GoString() string { 15429 return s.String() 15430 } 15431 15432 // Validate inspects the fields of the type to determine if they are valid. 15433 func (s *PutKMSEncryptionKeyInput) Validate() error { 15434 invalidParams := request.ErrInvalidParams{Context: "PutKMSEncryptionKeyInput"} 15435 if s.KmsEncryptionKeyArn == nil { 15436 invalidParams.Add(request.NewErrParamRequired("KmsEncryptionKeyArn")) 15437 } 15438 if s.KmsEncryptionKeyArn != nil && len(*s.KmsEncryptionKeyArn) < 7 { 15439 invalidParams.Add(request.NewErrParamMinLen("KmsEncryptionKeyArn", 7)) 15440 } 15441 15442 if invalidParams.Len() > 0 { 15443 return invalidParams 15444 } 15445 return nil 15446 } 15447 15448 // SetKmsEncryptionKeyArn sets the KmsEncryptionKeyArn field's value. 15449 func (s *PutKMSEncryptionKeyInput) SetKmsEncryptionKeyArn(v string) *PutKMSEncryptionKeyInput { 15450 s.KmsEncryptionKeyArn = &v 15451 return s 15452 } 15453 15454 type PutKMSEncryptionKeyOutput struct { 15455 _ struct{} `type:"structure"` 15456 } 15457 15458 // String returns the string representation. 15459 // 15460 // API parameter values that are decorated as "sensitive" in the API will not 15461 // be included in the string output. The member name will be present, but the 15462 // value will be replaced with "sensitive". 15463 func (s PutKMSEncryptionKeyOutput) String() string { 15464 return awsutil.Prettify(s) 15465 } 15466 15467 // GoString returns the string representation. 15468 // 15469 // API parameter values that are decorated as "sensitive" in the API will not 15470 // be included in the string output. The member name will be present, but the 15471 // value will be replaced with "sensitive". 15472 func (s PutKMSEncryptionKeyOutput) GoString() string { 15473 return s.String() 15474 } 15475 15476 type PutLabelInput struct { 15477 _ struct{} `type:"structure"` 15478 15479 // The label description. 15480 Description *string `locationName:"description" min:"1" type:"string"` 15481 15482 // The label name. 15483 // 15484 // Name is a required field 15485 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 15486 15487 Tags []*Tag `locationName:"tags" type:"list"` 15488 } 15489 15490 // String returns the string representation. 15491 // 15492 // API parameter values that are decorated as "sensitive" in the API will not 15493 // be included in the string output. The member name will be present, but the 15494 // value will be replaced with "sensitive". 15495 func (s PutLabelInput) String() string { 15496 return awsutil.Prettify(s) 15497 } 15498 15499 // GoString returns the string representation. 15500 // 15501 // API parameter values that are decorated as "sensitive" in the API will not 15502 // be included in the string output. The member name will be present, but the 15503 // value will be replaced with "sensitive". 15504 func (s PutLabelInput) GoString() string { 15505 return s.String() 15506 } 15507 15508 // Validate inspects the fields of the type to determine if they are valid. 15509 func (s *PutLabelInput) Validate() error { 15510 invalidParams := request.ErrInvalidParams{Context: "PutLabelInput"} 15511 if s.Description != nil && len(*s.Description) < 1 { 15512 invalidParams.Add(request.NewErrParamMinLen("Description", 1)) 15513 } 15514 if s.Name == nil { 15515 invalidParams.Add(request.NewErrParamRequired("Name")) 15516 } 15517 if s.Name != nil && len(*s.Name) < 1 { 15518 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 15519 } 15520 if s.Tags != nil { 15521 for i, v := range s.Tags { 15522 if v == nil { 15523 continue 15524 } 15525 if err := v.Validate(); err != nil { 15526 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 15527 } 15528 } 15529 } 15530 15531 if invalidParams.Len() > 0 { 15532 return invalidParams 15533 } 15534 return nil 15535 } 15536 15537 // SetDescription sets the Description field's value. 15538 func (s *PutLabelInput) SetDescription(v string) *PutLabelInput { 15539 s.Description = &v 15540 return s 15541 } 15542 15543 // SetName sets the Name field's value. 15544 func (s *PutLabelInput) SetName(v string) *PutLabelInput { 15545 s.Name = &v 15546 return s 15547 } 15548 15549 // SetTags sets the Tags field's value. 15550 func (s *PutLabelInput) SetTags(v []*Tag) *PutLabelInput { 15551 s.Tags = v 15552 return s 15553 } 15554 15555 type PutLabelOutput struct { 15556 _ struct{} `type:"structure"` 15557 } 15558 15559 // String returns the string representation. 15560 // 15561 // API parameter values that are decorated as "sensitive" in the API will not 15562 // be included in the string output. The member name will be present, but the 15563 // value will be replaced with "sensitive". 15564 func (s PutLabelOutput) String() string { 15565 return awsutil.Prettify(s) 15566 } 15567 15568 // GoString returns the string representation. 15569 // 15570 // API parameter values that are decorated as "sensitive" in the API will not 15571 // be included in the string output. The member name will be present, but the 15572 // value will be replaced with "sensitive". 15573 func (s PutLabelOutput) GoString() string { 15574 return s.String() 15575 } 15576 15577 type PutOutcomeInput struct { 15578 _ struct{} `type:"structure"` 15579 15580 // The outcome description. 15581 Description *string `locationName:"description" min:"1" type:"string"` 15582 15583 // The name of the outcome. 15584 // 15585 // Name is a required field 15586 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 15587 15588 // A collection of key and value pairs. 15589 Tags []*Tag `locationName:"tags" type:"list"` 15590 } 15591 15592 // String returns the string representation. 15593 // 15594 // API parameter values that are decorated as "sensitive" in the API will not 15595 // be included in the string output. The member name will be present, but the 15596 // value will be replaced with "sensitive". 15597 func (s PutOutcomeInput) String() string { 15598 return awsutil.Prettify(s) 15599 } 15600 15601 // GoString returns the string representation. 15602 // 15603 // API parameter values that are decorated as "sensitive" in the API will not 15604 // be included in the string output. The member name will be present, but the 15605 // value will be replaced with "sensitive". 15606 func (s PutOutcomeInput) GoString() string { 15607 return s.String() 15608 } 15609 15610 // Validate inspects the fields of the type to determine if they are valid. 15611 func (s *PutOutcomeInput) Validate() error { 15612 invalidParams := request.ErrInvalidParams{Context: "PutOutcomeInput"} 15613 if s.Description != nil && len(*s.Description) < 1 { 15614 invalidParams.Add(request.NewErrParamMinLen("Description", 1)) 15615 } 15616 if s.Name == nil { 15617 invalidParams.Add(request.NewErrParamRequired("Name")) 15618 } 15619 if s.Name != nil && len(*s.Name) < 1 { 15620 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 15621 } 15622 if s.Tags != nil { 15623 for i, v := range s.Tags { 15624 if v == nil { 15625 continue 15626 } 15627 if err := v.Validate(); err != nil { 15628 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 15629 } 15630 } 15631 } 15632 15633 if invalidParams.Len() > 0 { 15634 return invalidParams 15635 } 15636 return nil 15637 } 15638 15639 // SetDescription sets the Description field's value. 15640 func (s *PutOutcomeInput) SetDescription(v string) *PutOutcomeInput { 15641 s.Description = &v 15642 return s 15643 } 15644 15645 // SetName sets the Name field's value. 15646 func (s *PutOutcomeInput) SetName(v string) *PutOutcomeInput { 15647 s.Name = &v 15648 return s 15649 } 15650 15651 // SetTags sets the Tags field's value. 15652 func (s *PutOutcomeInput) SetTags(v []*Tag) *PutOutcomeInput { 15653 s.Tags = v 15654 return s 15655 } 15656 15657 type PutOutcomeOutput struct { 15658 _ struct{} `type:"structure"` 15659 } 15660 15661 // String returns the string representation. 15662 // 15663 // API parameter values that are decorated as "sensitive" in the API will not 15664 // be included in the string output. The member name will be present, but the 15665 // value will be replaced with "sensitive". 15666 func (s PutOutcomeOutput) String() string { 15667 return awsutil.Prettify(s) 15668 } 15669 15670 // GoString returns the string representation. 15671 // 15672 // API parameter values that are decorated as "sensitive" in the API will not 15673 // be included in the string output. The member name will be present, but the 15674 // value will be replaced with "sensitive". 15675 func (s PutOutcomeOutput) GoString() string { 15676 return s.String() 15677 } 15678 15679 // An exception indicating the specified resource was not found. 15680 type ResourceNotFoundException struct { 15681 _ struct{} `type:"structure"` 15682 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 15683 15684 Message_ *string `locationName:"message" type:"string"` 15685 } 15686 15687 // String returns the string representation. 15688 // 15689 // API parameter values that are decorated as "sensitive" in the API will not 15690 // be included in the string output. The member name will be present, but the 15691 // value will be replaced with "sensitive". 15692 func (s ResourceNotFoundException) String() string { 15693 return awsutil.Prettify(s) 15694 } 15695 15696 // GoString returns the string representation. 15697 // 15698 // API parameter values that are decorated as "sensitive" in the API will not 15699 // be included in the string output. The member name will be present, but the 15700 // value will be replaced with "sensitive". 15701 func (s ResourceNotFoundException) GoString() string { 15702 return s.String() 15703 } 15704 15705 func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { 15706 return &ResourceNotFoundException{ 15707 RespMetadata: v, 15708 } 15709 } 15710 15711 // Code returns the exception type name. 15712 func (s *ResourceNotFoundException) Code() string { 15713 return "ResourceNotFoundException" 15714 } 15715 15716 // Message returns the exception's message. 15717 func (s *ResourceNotFoundException) Message() string { 15718 if s.Message_ != nil { 15719 return *s.Message_ 15720 } 15721 return "" 15722 } 15723 15724 // OrigErr always returns nil, satisfies awserr.Error interface. 15725 func (s *ResourceNotFoundException) OrigErr() error { 15726 return nil 15727 } 15728 15729 func (s *ResourceNotFoundException) Error() string { 15730 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 15731 } 15732 15733 // Status code returns the HTTP status code for the request's response error. 15734 func (s *ResourceNotFoundException) StatusCode() int { 15735 return s.RespMetadata.StatusCode 15736 } 15737 15738 // RequestID returns the service's response RequestID for request. 15739 func (s *ResourceNotFoundException) RequestID() string { 15740 return s.RespMetadata.RequestID 15741 } 15742 15743 // An exception indicating that the attached customer-owned (external) model 15744 // threw an exception when Amazon Fraud Detector invoked the model. 15745 type ResourceUnavailableException struct { 15746 _ struct{} `type:"structure"` 15747 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 15748 15749 Message_ *string `locationName:"message" type:"string"` 15750 } 15751 15752 // String returns the string representation. 15753 // 15754 // API parameter values that are decorated as "sensitive" in the API will not 15755 // be included in the string output. The member name will be present, but the 15756 // value will be replaced with "sensitive". 15757 func (s ResourceUnavailableException) String() string { 15758 return awsutil.Prettify(s) 15759 } 15760 15761 // GoString returns the string representation. 15762 // 15763 // API parameter values that are decorated as "sensitive" in the API will not 15764 // be included in the string output. The member name will be present, but the 15765 // value will be replaced with "sensitive". 15766 func (s ResourceUnavailableException) GoString() string { 15767 return s.String() 15768 } 15769 15770 func newErrorResourceUnavailableException(v protocol.ResponseMetadata) error { 15771 return &ResourceUnavailableException{ 15772 RespMetadata: v, 15773 } 15774 } 15775 15776 // Code returns the exception type name. 15777 func (s *ResourceUnavailableException) Code() string { 15778 return "ResourceUnavailableException" 15779 } 15780 15781 // Message returns the exception's message. 15782 func (s *ResourceUnavailableException) Message() string { 15783 if s.Message_ != nil { 15784 return *s.Message_ 15785 } 15786 return "" 15787 } 15788 15789 // OrigErr always returns nil, satisfies awserr.Error interface. 15790 func (s *ResourceUnavailableException) OrigErr() error { 15791 return nil 15792 } 15793 15794 func (s *ResourceUnavailableException) Error() string { 15795 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 15796 } 15797 15798 // Status code returns the HTTP status code for the request's response error. 15799 func (s *ResourceUnavailableException) StatusCode() int { 15800 return s.RespMetadata.StatusCode 15801 } 15802 15803 // RequestID returns the service's response RequestID for request. 15804 func (s *ResourceUnavailableException) RequestID() string { 15805 return s.RespMetadata.RequestID 15806 } 15807 15808 // A rule. 15809 type Rule struct { 15810 _ struct{} `type:"structure"` 15811 15812 // The detector for which the rule is associated. 15813 // 15814 // DetectorId is a required field 15815 DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"` 15816 15817 // The rule ID. 15818 // 15819 // RuleId is a required field 15820 RuleId *string `locationName:"ruleId" min:"1" type:"string" required:"true"` 15821 15822 // The rule version. 15823 // 15824 // RuleVersion is a required field 15825 RuleVersion *string `locationName:"ruleVersion" min:"1" type:"string" required:"true"` 15826 } 15827 15828 // String returns the string representation. 15829 // 15830 // API parameter values that are decorated as "sensitive" in the API will not 15831 // be included in the string output. The member name will be present, but the 15832 // value will be replaced with "sensitive". 15833 func (s Rule) String() string { 15834 return awsutil.Prettify(s) 15835 } 15836 15837 // GoString returns the string representation. 15838 // 15839 // API parameter values that are decorated as "sensitive" in the API will not 15840 // be included in the string output. The member name will be present, but the 15841 // value will be replaced with "sensitive". 15842 func (s Rule) GoString() string { 15843 return s.String() 15844 } 15845 15846 // Validate inspects the fields of the type to determine if they are valid. 15847 func (s *Rule) Validate() error { 15848 invalidParams := request.ErrInvalidParams{Context: "Rule"} 15849 if s.DetectorId == nil { 15850 invalidParams.Add(request.NewErrParamRequired("DetectorId")) 15851 } 15852 if s.DetectorId != nil && len(*s.DetectorId) < 1 { 15853 invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) 15854 } 15855 if s.RuleId == nil { 15856 invalidParams.Add(request.NewErrParamRequired("RuleId")) 15857 } 15858 if s.RuleId != nil && len(*s.RuleId) < 1 { 15859 invalidParams.Add(request.NewErrParamMinLen("RuleId", 1)) 15860 } 15861 if s.RuleVersion == nil { 15862 invalidParams.Add(request.NewErrParamRequired("RuleVersion")) 15863 } 15864 if s.RuleVersion != nil && len(*s.RuleVersion) < 1 { 15865 invalidParams.Add(request.NewErrParamMinLen("RuleVersion", 1)) 15866 } 15867 15868 if invalidParams.Len() > 0 { 15869 return invalidParams 15870 } 15871 return nil 15872 } 15873 15874 // SetDetectorId sets the DetectorId field's value. 15875 func (s *Rule) SetDetectorId(v string) *Rule { 15876 s.DetectorId = &v 15877 return s 15878 } 15879 15880 // SetRuleId sets the RuleId field's value. 15881 func (s *Rule) SetRuleId(v string) *Rule { 15882 s.RuleId = &v 15883 return s 15884 } 15885 15886 // SetRuleVersion sets the RuleVersion field's value. 15887 func (s *Rule) SetRuleVersion(v string) *Rule { 15888 s.RuleVersion = &v 15889 return s 15890 } 15891 15892 // The details of the rule. 15893 type RuleDetail struct { 15894 _ struct{} `type:"structure"` 15895 15896 // The rule ARN. 15897 Arn *string `locationName:"arn" min:"1" type:"string"` 15898 15899 // The timestamp of when the rule was created. 15900 CreatedTime *string `locationName:"createdTime" min:"11" type:"string"` 15901 15902 // The rule description. 15903 Description *string `locationName:"description" min:"1" type:"string"` 15904 15905 // The detector for which the rule is associated. 15906 DetectorId *string `locationName:"detectorId" min:"1" type:"string"` 15907 15908 // The rule expression. 15909 // 15910 // Expression is a sensitive parameter and its value will be 15911 // replaced with "sensitive" in string returned by RuleDetail's 15912 // String and GoString methods. 15913 Expression *string `locationName:"expression" min:"1" type:"string" sensitive:"true"` 15914 15915 // The rule language. 15916 Language *string `locationName:"language" type:"string" enum:"Language"` 15917 15918 // Timestamp of the last time the rule was updated. 15919 LastUpdatedTime *string `locationName:"lastUpdatedTime" min:"11" type:"string"` 15920 15921 // The rule outcomes. 15922 Outcomes []*string `locationName:"outcomes" min:"1" type:"list"` 15923 15924 // The rule ID. 15925 RuleId *string `locationName:"ruleId" min:"1" type:"string"` 15926 15927 // The rule version. 15928 RuleVersion *string `locationName:"ruleVersion" min:"1" type:"string"` 15929 } 15930 15931 // String returns the string representation. 15932 // 15933 // API parameter values that are decorated as "sensitive" in the API will not 15934 // be included in the string output. The member name will be present, but the 15935 // value will be replaced with "sensitive". 15936 func (s RuleDetail) String() string { 15937 return awsutil.Prettify(s) 15938 } 15939 15940 // GoString returns the string representation. 15941 // 15942 // API parameter values that are decorated as "sensitive" in the API will not 15943 // be included in the string output. The member name will be present, but the 15944 // value will be replaced with "sensitive". 15945 func (s RuleDetail) GoString() string { 15946 return s.String() 15947 } 15948 15949 // SetArn sets the Arn field's value. 15950 func (s *RuleDetail) SetArn(v string) *RuleDetail { 15951 s.Arn = &v 15952 return s 15953 } 15954 15955 // SetCreatedTime sets the CreatedTime field's value. 15956 func (s *RuleDetail) SetCreatedTime(v string) *RuleDetail { 15957 s.CreatedTime = &v 15958 return s 15959 } 15960 15961 // SetDescription sets the Description field's value. 15962 func (s *RuleDetail) SetDescription(v string) *RuleDetail { 15963 s.Description = &v 15964 return s 15965 } 15966 15967 // SetDetectorId sets the DetectorId field's value. 15968 func (s *RuleDetail) SetDetectorId(v string) *RuleDetail { 15969 s.DetectorId = &v 15970 return s 15971 } 15972 15973 // SetExpression sets the Expression field's value. 15974 func (s *RuleDetail) SetExpression(v string) *RuleDetail { 15975 s.Expression = &v 15976 return s 15977 } 15978 15979 // SetLanguage sets the Language field's value. 15980 func (s *RuleDetail) SetLanguage(v string) *RuleDetail { 15981 s.Language = &v 15982 return s 15983 } 15984 15985 // SetLastUpdatedTime sets the LastUpdatedTime field's value. 15986 func (s *RuleDetail) SetLastUpdatedTime(v string) *RuleDetail { 15987 s.LastUpdatedTime = &v 15988 return s 15989 } 15990 15991 // SetOutcomes sets the Outcomes field's value. 15992 func (s *RuleDetail) SetOutcomes(v []*string) *RuleDetail { 15993 s.Outcomes = v 15994 return s 15995 } 15996 15997 // SetRuleId sets the RuleId field's value. 15998 func (s *RuleDetail) SetRuleId(v string) *RuleDetail { 15999 s.RuleId = &v 16000 return s 16001 } 16002 16003 // SetRuleVersion sets the RuleVersion field's value. 16004 func (s *RuleDetail) SetRuleVersion(v string) *RuleDetail { 16005 s.RuleVersion = &v 16006 return s 16007 } 16008 16009 // The rule results. 16010 type RuleResult struct { 16011 _ struct{} `type:"structure"` 16012 16013 // The outcomes of the matched rule, based on the rule execution mode. 16014 Outcomes []*string `locationName:"outcomes" type:"list"` 16015 16016 // The rule ID that was matched, based on the rule execution mode. 16017 RuleId *string `locationName:"ruleId" type:"string"` 16018 } 16019 16020 // String returns the string representation. 16021 // 16022 // API parameter values that are decorated as "sensitive" in the API will not 16023 // be included in the string output. The member name will be present, but the 16024 // value will be replaced with "sensitive". 16025 func (s RuleResult) String() string { 16026 return awsutil.Prettify(s) 16027 } 16028 16029 // GoString returns the string representation. 16030 // 16031 // API parameter values that are decorated as "sensitive" in the API will not 16032 // be included in the string output. The member name will be present, but the 16033 // value will be replaced with "sensitive". 16034 func (s RuleResult) GoString() string { 16035 return s.String() 16036 } 16037 16038 // SetOutcomes sets the Outcomes field's value. 16039 func (s *RuleResult) SetOutcomes(v []*string) *RuleResult { 16040 s.Outcomes = v 16041 return s 16042 } 16043 16044 // SetRuleId sets the RuleId field's value. 16045 func (s *RuleResult) SetRuleId(v string) *RuleResult { 16046 s.RuleId = &v 16047 return s 16048 } 16049 16050 type SendEventInput struct { 16051 _ struct{} `type:"structure"` 16052 16053 // The label to associate with the event. Required if specifying labelTimestamp. 16054 AssignedLabel *string `locationName:"assignedLabel" min:"1" type:"string"` 16055 16056 // An array of entities. 16057 // 16058 // Entities is a required field 16059 Entities []*Entity `locationName:"entities" type:"list" required:"true"` 16060 16061 // The event ID to upload. 16062 // 16063 // EventId is a required field 16064 EventId *string `locationName:"eventId" min:"1" type:"string" required:"true"` 16065 16066 // The timestamp that defines when the event under evaluation occurred. The 16067 // timestamp must be specified using ISO 8601 standard in UTC. 16068 // 16069 // EventTimestamp is a required field 16070 EventTimestamp *string `locationName:"eventTimestamp" min:"10" type:"string" required:"true"` 16071 16072 // The event type name of the event. 16073 // 16074 // EventTypeName is a required field 16075 EventTypeName *string `locationName:"eventTypeName" min:"1" type:"string" required:"true"` 16076 16077 // Names of the event type's variables you defined in Amazon Fraud Detector 16078 // to represent data elements and their corresponding values for the event you 16079 // are sending for evaluation. 16080 // 16081 // EventVariables is a required field 16082 EventVariables map[string]*string `locationName:"eventVariables" min:"1" type:"map" required:"true"` 16083 16084 // The timestamp associated with the label. Required if specifying assignedLabel. 16085 LabelTimestamp *string `locationName:"labelTimestamp" min:"10" type:"string"` 16086 } 16087 16088 // String returns the string representation. 16089 // 16090 // API parameter values that are decorated as "sensitive" in the API will not 16091 // be included in the string output. The member name will be present, but the 16092 // value will be replaced with "sensitive". 16093 func (s SendEventInput) String() string { 16094 return awsutil.Prettify(s) 16095 } 16096 16097 // GoString returns the string representation. 16098 // 16099 // API parameter values that are decorated as "sensitive" in the API will not 16100 // be included in the string output. The member name will be present, but the 16101 // value will be replaced with "sensitive". 16102 func (s SendEventInput) GoString() string { 16103 return s.String() 16104 } 16105 16106 // Validate inspects the fields of the type to determine if they are valid. 16107 func (s *SendEventInput) Validate() error { 16108 invalidParams := request.ErrInvalidParams{Context: "SendEventInput"} 16109 if s.AssignedLabel != nil && len(*s.AssignedLabel) < 1 { 16110 invalidParams.Add(request.NewErrParamMinLen("AssignedLabel", 1)) 16111 } 16112 if s.Entities == nil { 16113 invalidParams.Add(request.NewErrParamRequired("Entities")) 16114 } 16115 if s.EventId == nil { 16116 invalidParams.Add(request.NewErrParamRequired("EventId")) 16117 } 16118 if s.EventId != nil && len(*s.EventId) < 1 { 16119 invalidParams.Add(request.NewErrParamMinLen("EventId", 1)) 16120 } 16121 if s.EventTimestamp == nil { 16122 invalidParams.Add(request.NewErrParamRequired("EventTimestamp")) 16123 } 16124 if s.EventTimestamp != nil && len(*s.EventTimestamp) < 10 { 16125 invalidParams.Add(request.NewErrParamMinLen("EventTimestamp", 10)) 16126 } 16127 if s.EventTypeName == nil { 16128 invalidParams.Add(request.NewErrParamRequired("EventTypeName")) 16129 } 16130 if s.EventTypeName != nil && len(*s.EventTypeName) < 1 { 16131 invalidParams.Add(request.NewErrParamMinLen("EventTypeName", 1)) 16132 } 16133 if s.EventVariables == nil { 16134 invalidParams.Add(request.NewErrParamRequired("EventVariables")) 16135 } 16136 if s.EventVariables != nil && len(s.EventVariables) < 1 { 16137 invalidParams.Add(request.NewErrParamMinLen("EventVariables", 1)) 16138 } 16139 if s.LabelTimestamp != nil && len(*s.LabelTimestamp) < 10 { 16140 invalidParams.Add(request.NewErrParamMinLen("LabelTimestamp", 10)) 16141 } 16142 if s.Entities != nil { 16143 for i, v := range s.Entities { 16144 if v == nil { 16145 continue 16146 } 16147 if err := v.Validate(); err != nil { 16148 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entities", i), err.(request.ErrInvalidParams)) 16149 } 16150 } 16151 } 16152 16153 if invalidParams.Len() > 0 { 16154 return invalidParams 16155 } 16156 return nil 16157 } 16158 16159 // SetAssignedLabel sets the AssignedLabel field's value. 16160 func (s *SendEventInput) SetAssignedLabel(v string) *SendEventInput { 16161 s.AssignedLabel = &v 16162 return s 16163 } 16164 16165 // SetEntities sets the Entities field's value. 16166 func (s *SendEventInput) SetEntities(v []*Entity) *SendEventInput { 16167 s.Entities = v 16168 return s 16169 } 16170 16171 // SetEventId sets the EventId field's value. 16172 func (s *SendEventInput) SetEventId(v string) *SendEventInput { 16173 s.EventId = &v 16174 return s 16175 } 16176 16177 // SetEventTimestamp sets the EventTimestamp field's value. 16178 func (s *SendEventInput) SetEventTimestamp(v string) *SendEventInput { 16179 s.EventTimestamp = &v 16180 return s 16181 } 16182 16183 // SetEventTypeName sets the EventTypeName field's value. 16184 func (s *SendEventInput) SetEventTypeName(v string) *SendEventInput { 16185 s.EventTypeName = &v 16186 return s 16187 } 16188 16189 // SetEventVariables sets the EventVariables field's value. 16190 func (s *SendEventInput) SetEventVariables(v map[string]*string) *SendEventInput { 16191 s.EventVariables = v 16192 return s 16193 } 16194 16195 // SetLabelTimestamp sets the LabelTimestamp field's value. 16196 func (s *SendEventInput) SetLabelTimestamp(v string) *SendEventInput { 16197 s.LabelTimestamp = &v 16198 return s 16199 } 16200 16201 type SendEventOutput struct { 16202 _ struct{} `type:"structure"` 16203 } 16204 16205 // String returns the string representation. 16206 // 16207 // API parameter values that are decorated as "sensitive" in the API will not 16208 // be included in the string output. The member name will be present, but the 16209 // value will be replaced with "sensitive". 16210 func (s SendEventOutput) String() string { 16211 return awsutil.Prettify(s) 16212 } 16213 16214 // GoString returns the string representation. 16215 // 16216 // API parameter values that are decorated as "sensitive" in the API will not 16217 // be included in the string output. The member name will be present, but the 16218 // value will be replaced with "sensitive". 16219 func (s SendEventOutput) GoString() string { 16220 return s.String() 16221 } 16222 16223 // A key and value pair. 16224 type Tag struct { 16225 _ struct{} `type:"structure"` 16226 16227 // A tag key. 16228 // 16229 // Key is a required field 16230 Key *string `locationName:"key" min:"1" type:"string" required:"true"` 16231 16232 // A value assigned to a tag key. 16233 // 16234 // Value is a required field 16235 Value *string `locationName:"value" type:"string" required:"true"` 16236 } 16237 16238 // String returns the string representation. 16239 // 16240 // API parameter values that are decorated as "sensitive" in the API will not 16241 // be included in the string output. The member name will be present, but the 16242 // value will be replaced with "sensitive". 16243 func (s Tag) String() string { 16244 return awsutil.Prettify(s) 16245 } 16246 16247 // GoString returns the string representation. 16248 // 16249 // API parameter values that are decorated as "sensitive" in the API will not 16250 // be included in the string output. The member name will be present, but the 16251 // value will be replaced with "sensitive". 16252 func (s Tag) GoString() string { 16253 return s.String() 16254 } 16255 16256 // Validate inspects the fields of the type to determine if they are valid. 16257 func (s *Tag) Validate() error { 16258 invalidParams := request.ErrInvalidParams{Context: "Tag"} 16259 if s.Key == nil { 16260 invalidParams.Add(request.NewErrParamRequired("Key")) 16261 } 16262 if s.Key != nil && len(*s.Key) < 1 { 16263 invalidParams.Add(request.NewErrParamMinLen("Key", 1)) 16264 } 16265 if s.Value == nil { 16266 invalidParams.Add(request.NewErrParamRequired("Value")) 16267 } 16268 16269 if invalidParams.Len() > 0 { 16270 return invalidParams 16271 } 16272 return nil 16273 } 16274 16275 // SetKey sets the Key field's value. 16276 func (s *Tag) SetKey(v string) *Tag { 16277 s.Key = &v 16278 return s 16279 } 16280 16281 // SetValue sets the Value field's value. 16282 func (s *Tag) SetValue(v string) *Tag { 16283 s.Value = &v 16284 return s 16285 } 16286 16287 type TagResourceInput struct { 16288 _ struct{} `type:"structure"` 16289 16290 // The resource ARN. 16291 // 16292 // ResourceARN is a required field 16293 ResourceARN *string `locationName:"resourceARN" min:"1" type:"string" required:"true"` 16294 16295 // The tags to assign to the resource. 16296 // 16297 // Tags is a required field 16298 Tags []*Tag `locationName:"tags" type:"list" required:"true"` 16299 } 16300 16301 // String returns the string representation. 16302 // 16303 // API parameter values that are decorated as "sensitive" in the API will not 16304 // be included in the string output. The member name will be present, but the 16305 // value will be replaced with "sensitive". 16306 func (s TagResourceInput) String() string { 16307 return awsutil.Prettify(s) 16308 } 16309 16310 // GoString returns the string representation. 16311 // 16312 // API parameter values that are decorated as "sensitive" in the API will not 16313 // be included in the string output. The member name will be present, but the 16314 // value will be replaced with "sensitive". 16315 func (s TagResourceInput) GoString() string { 16316 return s.String() 16317 } 16318 16319 // Validate inspects the fields of the type to determine if they are valid. 16320 func (s *TagResourceInput) Validate() error { 16321 invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} 16322 if s.ResourceARN == nil { 16323 invalidParams.Add(request.NewErrParamRequired("ResourceARN")) 16324 } 16325 if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { 16326 invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) 16327 } 16328 if s.Tags == nil { 16329 invalidParams.Add(request.NewErrParamRequired("Tags")) 16330 } 16331 if s.Tags != nil { 16332 for i, v := range s.Tags { 16333 if v == nil { 16334 continue 16335 } 16336 if err := v.Validate(); err != nil { 16337 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 16338 } 16339 } 16340 } 16341 16342 if invalidParams.Len() > 0 { 16343 return invalidParams 16344 } 16345 return nil 16346 } 16347 16348 // SetResourceARN sets the ResourceARN field's value. 16349 func (s *TagResourceInput) SetResourceARN(v string) *TagResourceInput { 16350 s.ResourceARN = &v 16351 return s 16352 } 16353 16354 // SetTags sets the Tags field's value. 16355 func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { 16356 s.Tags = v 16357 return s 16358 } 16359 16360 type TagResourceOutput struct { 16361 _ struct{} `type:"structure"` 16362 } 16363 16364 // String returns the string representation. 16365 // 16366 // API parameter values that are decorated as "sensitive" in the API will not 16367 // be included in the string output. The member name will be present, but the 16368 // value will be replaced with "sensitive". 16369 func (s TagResourceOutput) String() string { 16370 return awsutil.Prettify(s) 16371 } 16372 16373 // GoString returns the string representation. 16374 // 16375 // API parameter values that are decorated as "sensitive" in the API will not 16376 // be included in the string output. The member name will be present, but the 16377 // value will be replaced with "sensitive". 16378 func (s TagResourceOutput) GoString() string { 16379 return s.String() 16380 } 16381 16382 // An exception indicating a throttling error. 16383 type ThrottlingException struct { 16384 _ struct{} `type:"structure"` 16385 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 16386 16387 Message_ *string `locationName:"message" type:"string"` 16388 } 16389 16390 // String returns the string representation. 16391 // 16392 // API parameter values that are decorated as "sensitive" in the API will not 16393 // be included in the string output. The member name will be present, but the 16394 // value will be replaced with "sensitive". 16395 func (s ThrottlingException) String() string { 16396 return awsutil.Prettify(s) 16397 } 16398 16399 // GoString returns the string representation. 16400 // 16401 // API parameter values that are decorated as "sensitive" in the API will not 16402 // be included in the string output. The member name will be present, but the 16403 // value will be replaced with "sensitive". 16404 func (s ThrottlingException) GoString() string { 16405 return s.String() 16406 } 16407 16408 func newErrorThrottlingException(v protocol.ResponseMetadata) error { 16409 return &ThrottlingException{ 16410 RespMetadata: v, 16411 } 16412 } 16413 16414 // Code returns the exception type name. 16415 func (s *ThrottlingException) Code() string { 16416 return "ThrottlingException" 16417 } 16418 16419 // Message returns the exception's message. 16420 func (s *ThrottlingException) Message() string { 16421 if s.Message_ != nil { 16422 return *s.Message_ 16423 } 16424 return "" 16425 } 16426 16427 // OrigErr always returns nil, satisfies awserr.Error interface. 16428 func (s *ThrottlingException) OrigErr() error { 16429 return nil 16430 } 16431 16432 func (s *ThrottlingException) Error() string { 16433 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 16434 } 16435 16436 // Status code returns the HTTP status code for the request's response error. 16437 func (s *ThrottlingException) StatusCode() int { 16438 return s.RespMetadata.StatusCode 16439 } 16440 16441 // RequestID returns the service's response RequestID for request. 16442 func (s *ThrottlingException) RequestID() string { 16443 return s.RespMetadata.RequestID 16444 } 16445 16446 // The training data schema. 16447 type TrainingDataSchema struct { 16448 _ struct{} `type:"structure"` 16449 16450 // The label schema. 16451 // 16452 // LabelSchema is a required field 16453 LabelSchema *LabelSchema `locationName:"labelSchema" type:"structure" required:"true"` 16454 16455 // The training data schema variables. 16456 // 16457 // ModelVariables is a required field 16458 ModelVariables []*string `locationName:"modelVariables" type:"list" required:"true"` 16459 } 16460 16461 // String returns the string representation. 16462 // 16463 // API parameter values that are decorated as "sensitive" in the API will not 16464 // be included in the string output. The member name will be present, but the 16465 // value will be replaced with "sensitive". 16466 func (s TrainingDataSchema) String() string { 16467 return awsutil.Prettify(s) 16468 } 16469 16470 // GoString returns the string representation. 16471 // 16472 // API parameter values that are decorated as "sensitive" in the API will not 16473 // be included in the string output. The member name will be present, but the 16474 // value will be replaced with "sensitive". 16475 func (s TrainingDataSchema) GoString() string { 16476 return s.String() 16477 } 16478 16479 // Validate inspects the fields of the type to determine if they are valid. 16480 func (s *TrainingDataSchema) Validate() error { 16481 invalidParams := request.ErrInvalidParams{Context: "TrainingDataSchema"} 16482 if s.LabelSchema == nil { 16483 invalidParams.Add(request.NewErrParamRequired("LabelSchema")) 16484 } 16485 if s.ModelVariables == nil { 16486 invalidParams.Add(request.NewErrParamRequired("ModelVariables")) 16487 } 16488 if s.LabelSchema != nil { 16489 if err := s.LabelSchema.Validate(); err != nil { 16490 invalidParams.AddNested("LabelSchema", err.(request.ErrInvalidParams)) 16491 } 16492 } 16493 16494 if invalidParams.Len() > 0 { 16495 return invalidParams 16496 } 16497 return nil 16498 } 16499 16500 // SetLabelSchema sets the LabelSchema field's value. 16501 func (s *TrainingDataSchema) SetLabelSchema(v *LabelSchema) *TrainingDataSchema { 16502 s.LabelSchema = v 16503 return s 16504 } 16505 16506 // SetModelVariables sets the ModelVariables field's value. 16507 func (s *TrainingDataSchema) SetModelVariables(v []*string) *TrainingDataSchema { 16508 s.ModelVariables = v 16509 return s 16510 } 16511 16512 // The training metric details. 16513 type TrainingMetrics struct { 16514 _ struct{} `type:"structure"` 16515 16516 // The area under the curve. This summarizes true positive rate (TPR) and false 16517 // positive rate (FPR) across all possible model score thresholds. A model with 16518 // no predictive power has an AUC of 0.5, whereas a perfect model has a score 16519 // of 1.0. 16520 Auc *float64 `locationName:"auc" type:"float"` 16521 16522 // The data points details. 16523 MetricDataPoints []*MetricDataPoint `locationName:"metricDataPoints" type:"list"` 16524 } 16525 16526 // String returns the string representation. 16527 // 16528 // API parameter values that are decorated as "sensitive" in the API will not 16529 // be included in the string output. The member name will be present, but the 16530 // value will be replaced with "sensitive". 16531 func (s TrainingMetrics) String() string { 16532 return awsutil.Prettify(s) 16533 } 16534 16535 // GoString returns the string representation. 16536 // 16537 // API parameter values that are decorated as "sensitive" in the API will not 16538 // be included in the string output. The member name will be present, but the 16539 // value will be replaced with "sensitive". 16540 func (s TrainingMetrics) GoString() string { 16541 return s.String() 16542 } 16543 16544 // SetAuc sets the Auc field's value. 16545 func (s *TrainingMetrics) SetAuc(v float64) *TrainingMetrics { 16546 s.Auc = &v 16547 return s 16548 } 16549 16550 // SetMetricDataPoints sets the MetricDataPoints field's value. 16551 func (s *TrainingMetrics) SetMetricDataPoints(v []*MetricDataPoint) *TrainingMetrics { 16552 s.MetricDataPoints = v 16553 return s 16554 } 16555 16556 // The training result details. 16557 type TrainingResult struct { 16558 _ struct{} `type:"structure"` 16559 16560 // The validation metrics. 16561 DataValidationMetrics *DataValidationMetrics `locationName:"dataValidationMetrics" type:"structure"` 16562 16563 // The training metric details. 16564 TrainingMetrics *TrainingMetrics `locationName:"trainingMetrics" type:"structure"` 16565 16566 // The variable importance metrics. 16567 VariableImportanceMetrics *VariableImportanceMetrics `locationName:"variableImportanceMetrics" type:"structure"` 16568 } 16569 16570 // String returns the string representation. 16571 // 16572 // API parameter values that are decorated as "sensitive" in the API will not 16573 // be included in the string output. The member name will be present, but the 16574 // value will be replaced with "sensitive". 16575 func (s TrainingResult) String() string { 16576 return awsutil.Prettify(s) 16577 } 16578 16579 // GoString returns the string representation. 16580 // 16581 // API parameter values that are decorated as "sensitive" in the API will not 16582 // be included in the string output. The member name will be present, but the 16583 // value will be replaced with "sensitive". 16584 func (s TrainingResult) GoString() string { 16585 return s.String() 16586 } 16587 16588 // SetDataValidationMetrics sets the DataValidationMetrics field's value. 16589 func (s *TrainingResult) SetDataValidationMetrics(v *DataValidationMetrics) *TrainingResult { 16590 s.DataValidationMetrics = v 16591 return s 16592 } 16593 16594 // SetTrainingMetrics sets the TrainingMetrics field's value. 16595 func (s *TrainingResult) SetTrainingMetrics(v *TrainingMetrics) *TrainingResult { 16596 s.TrainingMetrics = v 16597 return s 16598 } 16599 16600 // SetVariableImportanceMetrics sets the VariableImportanceMetrics field's value. 16601 func (s *TrainingResult) SetVariableImportanceMetrics(v *VariableImportanceMetrics) *TrainingResult { 16602 s.VariableImportanceMetrics = v 16603 return s 16604 } 16605 16606 type UntagResourceInput struct { 16607 _ struct{} `type:"structure"` 16608 16609 // The ARN of the resource from which to remove the tag. 16610 // 16611 // ResourceARN is a required field 16612 ResourceARN *string `locationName:"resourceARN" min:"1" type:"string" required:"true"` 16613 16614 // The resource ARN. 16615 // 16616 // TagKeys is a required field 16617 TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"` 16618 } 16619 16620 // String returns the string representation. 16621 // 16622 // API parameter values that are decorated as "sensitive" in the API will not 16623 // be included in the string output. The member name will be present, but the 16624 // value will be replaced with "sensitive". 16625 func (s UntagResourceInput) String() string { 16626 return awsutil.Prettify(s) 16627 } 16628 16629 // GoString returns the string representation. 16630 // 16631 // API parameter values that are decorated as "sensitive" in the API will not 16632 // be included in the string output. The member name will be present, but the 16633 // value will be replaced with "sensitive". 16634 func (s UntagResourceInput) GoString() string { 16635 return s.String() 16636 } 16637 16638 // Validate inspects the fields of the type to determine if they are valid. 16639 func (s *UntagResourceInput) Validate() error { 16640 invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} 16641 if s.ResourceARN == nil { 16642 invalidParams.Add(request.NewErrParamRequired("ResourceARN")) 16643 } 16644 if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { 16645 invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) 16646 } 16647 if s.TagKeys == nil { 16648 invalidParams.Add(request.NewErrParamRequired("TagKeys")) 16649 } 16650 16651 if invalidParams.Len() > 0 { 16652 return invalidParams 16653 } 16654 return nil 16655 } 16656 16657 // SetResourceARN sets the ResourceARN field's value. 16658 func (s *UntagResourceInput) SetResourceARN(v string) *UntagResourceInput { 16659 s.ResourceARN = &v 16660 return s 16661 } 16662 16663 // SetTagKeys sets the TagKeys field's value. 16664 func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { 16665 s.TagKeys = v 16666 return s 16667 } 16668 16669 type UntagResourceOutput struct { 16670 _ struct{} `type:"structure"` 16671 } 16672 16673 // String returns the string representation. 16674 // 16675 // API parameter values that are decorated as "sensitive" in the API will not 16676 // be included in the string output. The member name will be present, but the 16677 // value will be replaced with "sensitive". 16678 func (s UntagResourceOutput) String() string { 16679 return awsutil.Prettify(s) 16680 } 16681 16682 // GoString returns the string representation. 16683 // 16684 // API parameter values that are decorated as "sensitive" in the API will not 16685 // be included in the string output. The member name will be present, but the 16686 // value will be replaced with "sensitive". 16687 func (s UntagResourceOutput) GoString() string { 16688 return s.String() 16689 } 16690 16691 type UpdateDetectorVersionInput struct { 16692 _ struct{} `type:"structure"` 16693 16694 // The detector version description. 16695 Description *string `locationName:"description" min:"1" type:"string"` 16696 16697 // The parent detector ID for the detector version you want to update. 16698 // 16699 // DetectorId is a required field 16700 DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"` 16701 16702 // The detector version ID. 16703 // 16704 // DetectorVersionId is a required field 16705 DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string" required:"true"` 16706 16707 // The Amazon SageMaker model endpoints to include in the detector version. 16708 // 16709 // ExternalModelEndpoints is a required field 16710 ExternalModelEndpoints []*string `locationName:"externalModelEndpoints" type:"list" required:"true"` 16711 16712 // The model versions to include in the detector version. 16713 ModelVersions []*ModelVersion `locationName:"modelVersions" type:"list"` 16714 16715 // The rule execution mode to add to the detector. 16716 // 16717 // If you specify FIRST_MATCHED, Amazon Fraud Detector evaluates rules sequentially, 16718 // first to last, stopping at the first matched rule. Amazon Fraud dectector 16719 // then provides the outcomes for that single rule. 16720 // 16721 // If you specifiy ALL_MATCHED, Amazon Fraud Detector evaluates all rules and 16722 // returns the outcomes for all matched rules. You can define and edit the rule 16723 // mode at the detector version level, when it is in draft status. 16724 // 16725 // The default behavior is FIRST_MATCHED. 16726 RuleExecutionMode *string `locationName:"ruleExecutionMode" type:"string" enum:"RuleExecutionMode"` 16727 16728 // The rules to include in the detector version. 16729 // 16730 // Rules is a required field 16731 Rules []*Rule `locationName:"rules" type:"list" required:"true"` 16732 } 16733 16734 // String returns the string representation. 16735 // 16736 // API parameter values that are decorated as "sensitive" in the API will not 16737 // be included in the string output. The member name will be present, but the 16738 // value will be replaced with "sensitive". 16739 func (s UpdateDetectorVersionInput) String() string { 16740 return awsutil.Prettify(s) 16741 } 16742 16743 // GoString returns the string representation. 16744 // 16745 // API parameter values that are decorated as "sensitive" in the API will not 16746 // be included in the string output. The member name will be present, but the 16747 // value will be replaced with "sensitive". 16748 func (s UpdateDetectorVersionInput) GoString() string { 16749 return s.String() 16750 } 16751 16752 // Validate inspects the fields of the type to determine if they are valid. 16753 func (s *UpdateDetectorVersionInput) Validate() error { 16754 invalidParams := request.ErrInvalidParams{Context: "UpdateDetectorVersionInput"} 16755 if s.Description != nil && len(*s.Description) < 1 { 16756 invalidParams.Add(request.NewErrParamMinLen("Description", 1)) 16757 } 16758 if s.DetectorId == nil { 16759 invalidParams.Add(request.NewErrParamRequired("DetectorId")) 16760 } 16761 if s.DetectorId != nil && len(*s.DetectorId) < 1 { 16762 invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) 16763 } 16764 if s.DetectorVersionId == nil { 16765 invalidParams.Add(request.NewErrParamRequired("DetectorVersionId")) 16766 } 16767 if s.DetectorVersionId != nil && len(*s.DetectorVersionId) < 1 { 16768 invalidParams.Add(request.NewErrParamMinLen("DetectorVersionId", 1)) 16769 } 16770 if s.ExternalModelEndpoints == nil { 16771 invalidParams.Add(request.NewErrParamRequired("ExternalModelEndpoints")) 16772 } 16773 if s.Rules == nil { 16774 invalidParams.Add(request.NewErrParamRequired("Rules")) 16775 } 16776 if s.ModelVersions != nil { 16777 for i, v := range s.ModelVersions { 16778 if v == nil { 16779 continue 16780 } 16781 if err := v.Validate(); err != nil { 16782 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ModelVersions", i), err.(request.ErrInvalidParams)) 16783 } 16784 } 16785 } 16786 if s.Rules != nil { 16787 for i, v := range s.Rules { 16788 if v == nil { 16789 continue 16790 } 16791 if err := v.Validate(); err != nil { 16792 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams)) 16793 } 16794 } 16795 } 16796 16797 if invalidParams.Len() > 0 { 16798 return invalidParams 16799 } 16800 return nil 16801 } 16802 16803 // SetDescription sets the Description field's value. 16804 func (s *UpdateDetectorVersionInput) SetDescription(v string) *UpdateDetectorVersionInput { 16805 s.Description = &v 16806 return s 16807 } 16808 16809 // SetDetectorId sets the DetectorId field's value. 16810 func (s *UpdateDetectorVersionInput) SetDetectorId(v string) *UpdateDetectorVersionInput { 16811 s.DetectorId = &v 16812 return s 16813 } 16814 16815 // SetDetectorVersionId sets the DetectorVersionId field's value. 16816 func (s *UpdateDetectorVersionInput) SetDetectorVersionId(v string) *UpdateDetectorVersionInput { 16817 s.DetectorVersionId = &v 16818 return s 16819 } 16820 16821 // SetExternalModelEndpoints sets the ExternalModelEndpoints field's value. 16822 func (s *UpdateDetectorVersionInput) SetExternalModelEndpoints(v []*string) *UpdateDetectorVersionInput { 16823 s.ExternalModelEndpoints = v 16824 return s 16825 } 16826 16827 // SetModelVersions sets the ModelVersions field's value. 16828 func (s *UpdateDetectorVersionInput) SetModelVersions(v []*ModelVersion) *UpdateDetectorVersionInput { 16829 s.ModelVersions = v 16830 return s 16831 } 16832 16833 // SetRuleExecutionMode sets the RuleExecutionMode field's value. 16834 func (s *UpdateDetectorVersionInput) SetRuleExecutionMode(v string) *UpdateDetectorVersionInput { 16835 s.RuleExecutionMode = &v 16836 return s 16837 } 16838 16839 // SetRules sets the Rules field's value. 16840 func (s *UpdateDetectorVersionInput) SetRules(v []*Rule) *UpdateDetectorVersionInput { 16841 s.Rules = v 16842 return s 16843 } 16844 16845 type UpdateDetectorVersionMetadataInput struct { 16846 _ struct{} `type:"structure"` 16847 16848 // The description. 16849 // 16850 // Description is a required field 16851 Description *string `locationName:"description" min:"1" type:"string" required:"true"` 16852 16853 // The detector ID. 16854 // 16855 // DetectorId is a required field 16856 DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"` 16857 16858 // The detector version ID. 16859 // 16860 // DetectorVersionId is a required field 16861 DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string" required:"true"` 16862 } 16863 16864 // String returns the string representation. 16865 // 16866 // API parameter values that are decorated as "sensitive" in the API will not 16867 // be included in the string output. The member name will be present, but the 16868 // value will be replaced with "sensitive". 16869 func (s UpdateDetectorVersionMetadataInput) String() string { 16870 return awsutil.Prettify(s) 16871 } 16872 16873 // GoString returns the string representation. 16874 // 16875 // API parameter values that are decorated as "sensitive" in the API will not 16876 // be included in the string output. The member name will be present, but the 16877 // value will be replaced with "sensitive". 16878 func (s UpdateDetectorVersionMetadataInput) GoString() string { 16879 return s.String() 16880 } 16881 16882 // Validate inspects the fields of the type to determine if they are valid. 16883 func (s *UpdateDetectorVersionMetadataInput) Validate() error { 16884 invalidParams := request.ErrInvalidParams{Context: "UpdateDetectorVersionMetadataInput"} 16885 if s.Description == nil { 16886 invalidParams.Add(request.NewErrParamRequired("Description")) 16887 } 16888 if s.Description != nil && len(*s.Description) < 1 { 16889 invalidParams.Add(request.NewErrParamMinLen("Description", 1)) 16890 } 16891 if s.DetectorId == nil { 16892 invalidParams.Add(request.NewErrParamRequired("DetectorId")) 16893 } 16894 if s.DetectorId != nil && len(*s.DetectorId) < 1 { 16895 invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) 16896 } 16897 if s.DetectorVersionId == nil { 16898 invalidParams.Add(request.NewErrParamRequired("DetectorVersionId")) 16899 } 16900 if s.DetectorVersionId != nil && len(*s.DetectorVersionId) < 1 { 16901 invalidParams.Add(request.NewErrParamMinLen("DetectorVersionId", 1)) 16902 } 16903 16904 if invalidParams.Len() > 0 { 16905 return invalidParams 16906 } 16907 return nil 16908 } 16909 16910 // SetDescription sets the Description field's value. 16911 func (s *UpdateDetectorVersionMetadataInput) SetDescription(v string) *UpdateDetectorVersionMetadataInput { 16912 s.Description = &v 16913 return s 16914 } 16915 16916 // SetDetectorId sets the DetectorId field's value. 16917 func (s *UpdateDetectorVersionMetadataInput) SetDetectorId(v string) *UpdateDetectorVersionMetadataInput { 16918 s.DetectorId = &v 16919 return s 16920 } 16921 16922 // SetDetectorVersionId sets the DetectorVersionId field's value. 16923 func (s *UpdateDetectorVersionMetadataInput) SetDetectorVersionId(v string) *UpdateDetectorVersionMetadataInput { 16924 s.DetectorVersionId = &v 16925 return s 16926 } 16927 16928 type UpdateDetectorVersionMetadataOutput struct { 16929 _ struct{} `type:"structure"` 16930 } 16931 16932 // String returns the string representation. 16933 // 16934 // API parameter values that are decorated as "sensitive" in the API will not 16935 // be included in the string output. The member name will be present, but the 16936 // value will be replaced with "sensitive". 16937 func (s UpdateDetectorVersionMetadataOutput) String() string { 16938 return awsutil.Prettify(s) 16939 } 16940 16941 // GoString returns the string representation. 16942 // 16943 // API parameter values that are decorated as "sensitive" in the API will not 16944 // be included in the string output. The member name will be present, but the 16945 // value will be replaced with "sensitive". 16946 func (s UpdateDetectorVersionMetadataOutput) GoString() string { 16947 return s.String() 16948 } 16949 16950 type UpdateDetectorVersionOutput struct { 16951 _ struct{} `type:"structure"` 16952 } 16953 16954 // String returns the string representation. 16955 // 16956 // API parameter values that are decorated as "sensitive" in the API will not 16957 // be included in the string output. The member name will be present, but the 16958 // value will be replaced with "sensitive". 16959 func (s UpdateDetectorVersionOutput) String() string { 16960 return awsutil.Prettify(s) 16961 } 16962 16963 // GoString returns the string representation. 16964 // 16965 // API parameter values that are decorated as "sensitive" in the API will not 16966 // be included in the string output. The member name will be present, but the 16967 // value will be replaced with "sensitive". 16968 func (s UpdateDetectorVersionOutput) GoString() string { 16969 return s.String() 16970 } 16971 16972 type UpdateDetectorVersionStatusInput struct { 16973 _ struct{} `type:"structure"` 16974 16975 // The detector ID. 16976 // 16977 // DetectorId is a required field 16978 DetectorId *string `locationName:"detectorId" min:"1" type:"string" required:"true"` 16979 16980 // The detector version ID. 16981 // 16982 // DetectorVersionId is a required field 16983 DetectorVersionId *string `locationName:"detectorVersionId" min:"1" type:"string" required:"true"` 16984 16985 // The new status. 16986 // 16987 // Status is a required field 16988 Status *string `locationName:"status" type:"string" required:"true" enum:"DetectorVersionStatus"` 16989 } 16990 16991 // String returns the string representation. 16992 // 16993 // API parameter values that are decorated as "sensitive" in the API will not 16994 // be included in the string output. The member name will be present, but the 16995 // value will be replaced with "sensitive". 16996 func (s UpdateDetectorVersionStatusInput) String() string { 16997 return awsutil.Prettify(s) 16998 } 16999 17000 // GoString returns the string representation. 17001 // 17002 // API parameter values that are decorated as "sensitive" in the API will not 17003 // be included in the string output. The member name will be present, but the 17004 // value will be replaced with "sensitive". 17005 func (s UpdateDetectorVersionStatusInput) GoString() string { 17006 return s.String() 17007 } 17008 17009 // Validate inspects the fields of the type to determine if they are valid. 17010 func (s *UpdateDetectorVersionStatusInput) Validate() error { 17011 invalidParams := request.ErrInvalidParams{Context: "UpdateDetectorVersionStatusInput"} 17012 if s.DetectorId == nil { 17013 invalidParams.Add(request.NewErrParamRequired("DetectorId")) 17014 } 17015 if s.DetectorId != nil && len(*s.DetectorId) < 1 { 17016 invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) 17017 } 17018 if s.DetectorVersionId == nil { 17019 invalidParams.Add(request.NewErrParamRequired("DetectorVersionId")) 17020 } 17021 if s.DetectorVersionId != nil && len(*s.DetectorVersionId) < 1 { 17022 invalidParams.Add(request.NewErrParamMinLen("DetectorVersionId", 1)) 17023 } 17024 if s.Status == nil { 17025 invalidParams.Add(request.NewErrParamRequired("Status")) 17026 } 17027 17028 if invalidParams.Len() > 0 { 17029 return invalidParams 17030 } 17031 return nil 17032 } 17033 17034 // SetDetectorId sets the DetectorId field's value. 17035 func (s *UpdateDetectorVersionStatusInput) SetDetectorId(v string) *UpdateDetectorVersionStatusInput { 17036 s.DetectorId = &v 17037 return s 17038 } 17039 17040 // SetDetectorVersionId sets the DetectorVersionId field's value. 17041 func (s *UpdateDetectorVersionStatusInput) SetDetectorVersionId(v string) *UpdateDetectorVersionStatusInput { 17042 s.DetectorVersionId = &v 17043 return s 17044 } 17045 17046 // SetStatus sets the Status field's value. 17047 func (s *UpdateDetectorVersionStatusInput) SetStatus(v string) *UpdateDetectorVersionStatusInput { 17048 s.Status = &v 17049 return s 17050 } 17051 17052 type UpdateDetectorVersionStatusOutput struct { 17053 _ struct{} `type:"structure"` 17054 } 17055 17056 // String returns the string representation. 17057 // 17058 // API parameter values that are decorated as "sensitive" in the API will not 17059 // be included in the string output. The member name will be present, but the 17060 // value will be replaced with "sensitive". 17061 func (s UpdateDetectorVersionStatusOutput) String() string { 17062 return awsutil.Prettify(s) 17063 } 17064 17065 // GoString returns the string representation. 17066 // 17067 // API parameter values that are decorated as "sensitive" in the API will not 17068 // be included in the string output. The member name will be present, but the 17069 // value will be replaced with "sensitive". 17070 func (s UpdateDetectorVersionStatusOutput) GoString() string { 17071 return s.String() 17072 } 17073 17074 type UpdateEventLabelInput struct { 17075 _ struct{} `type:"structure"` 17076 17077 // The new label to assign to the event. 17078 // 17079 // AssignedLabel is a required field 17080 AssignedLabel *string `locationName:"assignedLabel" min:"1" type:"string" required:"true"` 17081 17082 // The ID of the event associated with the label to update. 17083 // 17084 // EventId is a required field 17085 EventId *string `locationName:"eventId" min:"1" type:"string" required:"true"` 17086 17087 // The event type of the event associated with the label to update. 17088 // 17089 // EventTypeName is a required field 17090 EventTypeName *string `locationName:"eventTypeName" min:"1" type:"string" required:"true"` 17091 17092 // The timestamp associated with the label. The timestamp must be specified 17093 // using ISO 8601 standard in UTC. 17094 // 17095 // LabelTimestamp is a required field 17096 LabelTimestamp *string `locationName:"labelTimestamp" min:"10" type:"string" required:"true"` 17097 } 17098 17099 // String returns the string representation. 17100 // 17101 // API parameter values that are decorated as "sensitive" in the API will not 17102 // be included in the string output. The member name will be present, but the 17103 // value will be replaced with "sensitive". 17104 func (s UpdateEventLabelInput) String() string { 17105 return awsutil.Prettify(s) 17106 } 17107 17108 // GoString returns the string representation. 17109 // 17110 // API parameter values that are decorated as "sensitive" in the API will not 17111 // be included in the string output. The member name will be present, but the 17112 // value will be replaced with "sensitive". 17113 func (s UpdateEventLabelInput) GoString() string { 17114 return s.String() 17115 } 17116 17117 // Validate inspects the fields of the type to determine if they are valid. 17118 func (s *UpdateEventLabelInput) Validate() error { 17119 invalidParams := request.ErrInvalidParams{Context: "UpdateEventLabelInput"} 17120 if s.AssignedLabel == nil { 17121 invalidParams.Add(request.NewErrParamRequired("AssignedLabel")) 17122 } 17123 if s.AssignedLabel != nil && len(*s.AssignedLabel) < 1 { 17124 invalidParams.Add(request.NewErrParamMinLen("AssignedLabel", 1)) 17125 } 17126 if s.EventId == nil { 17127 invalidParams.Add(request.NewErrParamRequired("EventId")) 17128 } 17129 if s.EventId != nil && len(*s.EventId) < 1 { 17130 invalidParams.Add(request.NewErrParamMinLen("EventId", 1)) 17131 } 17132 if s.EventTypeName == nil { 17133 invalidParams.Add(request.NewErrParamRequired("EventTypeName")) 17134 } 17135 if s.EventTypeName != nil && len(*s.EventTypeName) < 1 { 17136 invalidParams.Add(request.NewErrParamMinLen("EventTypeName", 1)) 17137 } 17138 if s.LabelTimestamp == nil { 17139 invalidParams.Add(request.NewErrParamRequired("LabelTimestamp")) 17140 } 17141 if s.LabelTimestamp != nil && len(*s.LabelTimestamp) < 10 { 17142 invalidParams.Add(request.NewErrParamMinLen("LabelTimestamp", 10)) 17143 } 17144 17145 if invalidParams.Len() > 0 { 17146 return invalidParams 17147 } 17148 return nil 17149 } 17150 17151 // SetAssignedLabel sets the AssignedLabel field's value. 17152 func (s *UpdateEventLabelInput) SetAssignedLabel(v string) *UpdateEventLabelInput { 17153 s.AssignedLabel = &v 17154 return s 17155 } 17156 17157 // SetEventId sets the EventId field's value. 17158 func (s *UpdateEventLabelInput) SetEventId(v string) *UpdateEventLabelInput { 17159 s.EventId = &v 17160 return s 17161 } 17162 17163 // SetEventTypeName sets the EventTypeName field's value. 17164 func (s *UpdateEventLabelInput) SetEventTypeName(v string) *UpdateEventLabelInput { 17165 s.EventTypeName = &v 17166 return s 17167 } 17168 17169 // SetLabelTimestamp sets the LabelTimestamp field's value. 17170 func (s *UpdateEventLabelInput) SetLabelTimestamp(v string) *UpdateEventLabelInput { 17171 s.LabelTimestamp = &v 17172 return s 17173 } 17174 17175 type UpdateEventLabelOutput struct { 17176 _ struct{} `type:"structure"` 17177 } 17178 17179 // String returns the string representation. 17180 // 17181 // API parameter values that are decorated as "sensitive" in the API will not 17182 // be included in the string output. The member name will be present, but the 17183 // value will be replaced with "sensitive". 17184 func (s UpdateEventLabelOutput) String() string { 17185 return awsutil.Prettify(s) 17186 } 17187 17188 // GoString returns the string representation. 17189 // 17190 // API parameter values that are decorated as "sensitive" in the API will not 17191 // be included in the string output. The member name will be present, but the 17192 // value will be replaced with "sensitive". 17193 func (s UpdateEventLabelOutput) GoString() string { 17194 return s.String() 17195 } 17196 17197 type UpdateModelInput struct { 17198 _ struct{} `type:"structure"` 17199 17200 // The new model description. 17201 Description *string `locationName:"description" min:"1" type:"string"` 17202 17203 // The model ID. 17204 // 17205 // ModelId is a required field 17206 ModelId *string `locationName:"modelId" min:"1" type:"string" required:"true"` 17207 17208 // The model type. 17209 // 17210 // ModelType is a required field 17211 ModelType *string `locationName:"modelType" type:"string" required:"true" enum:"ModelTypeEnum"` 17212 } 17213 17214 // String returns the string representation. 17215 // 17216 // API parameter values that are decorated as "sensitive" in the API will not 17217 // be included in the string output. The member name will be present, but the 17218 // value will be replaced with "sensitive". 17219 func (s UpdateModelInput) String() string { 17220 return awsutil.Prettify(s) 17221 } 17222 17223 // GoString returns the string representation. 17224 // 17225 // API parameter values that are decorated as "sensitive" in the API will not 17226 // be included in the string output. The member name will be present, but the 17227 // value will be replaced with "sensitive". 17228 func (s UpdateModelInput) GoString() string { 17229 return s.String() 17230 } 17231 17232 // Validate inspects the fields of the type to determine if they are valid. 17233 func (s *UpdateModelInput) Validate() error { 17234 invalidParams := request.ErrInvalidParams{Context: "UpdateModelInput"} 17235 if s.Description != nil && len(*s.Description) < 1 { 17236 invalidParams.Add(request.NewErrParamMinLen("Description", 1)) 17237 } 17238 if s.ModelId == nil { 17239 invalidParams.Add(request.NewErrParamRequired("ModelId")) 17240 } 17241 if s.ModelId != nil && len(*s.ModelId) < 1 { 17242 invalidParams.Add(request.NewErrParamMinLen("ModelId", 1)) 17243 } 17244 if s.ModelType == nil { 17245 invalidParams.Add(request.NewErrParamRequired("ModelType")) 17246 } 17247 17248 if invalidParams.Len() > 0 { 17249 return invalidParams 17250 } 17251 return nil 17252 } 17253 17254 // SetDescription sets the Description field's value. 17255 func (s *UpdateModelInput) SetDescription(v string) *UpdateModelInput { 17256 s.Description = &v 17257 return s 17258 } 17259 17260 // SetModelId sets the ModelId field's value. 17261 func (s *UpdateModelInput) SetModelId(v string) *UpdateModelInput { 17262 s.ModelId = &v 17263 return s 17264 } 17265 17266 // SetModelType sets the ModelType field's value. 17267 func (s *UpdateModelInput) SetModelType(v string) *UpdateModelInput { 17268 s.ModelType = &v 17269 return s 17270 } 17271 17272 type UpdateModelOutput struct { 17273 _ struct{} `type:"structure"` 17274 } 17275 17276 // String returns the string representation. 17277 // 17278 // API parameter values that are decorated as "sensitive" in the API will not 17279 // be included in the string output. The member name will be present, but the 17280 // value will be replaced with "sensitive". 17281 func (s UpdateModelOutput) String() string { 17282 return awsutil.Prettify(s) 17283 } 17284 17285 // GoString returns the string representation. 17286 // 17287 // API parameter values that are decorated as "sensitive" in the API will not 17288 // be included in the string output. The member name will be present, but the 17289 // value will be replaced with "sensitive". 17290 func (s UpdateModelOutput) GoString() string { 17291 return s.String() 17292 } 17293 17294 type UpdateModelVersionInput struct { 17295 _ struct{} `type:"structure"` 17296 17297 // The details of the external events data used for training the model version. 17298 // Required if trainingDataSource is EXTERNAL_EVENTS. 17299 ExternalEventsDetail *ExternalEventsDetail `locationName:"externalEventsDetail" type:"structure"` 17300 17301 // The details of the ingested event used for training the model version. Required 17302 // if your trainingDataSource is INGESTED_EVENTS. 17303 IngestedEventsDetail *IngestedEventsDetail `locationName:"ingestedEventsDetail" type:"structure"` 17304 17305 // The major version number. 17306 // 17307 // MajorVersionNumber is a required field 17308 MajorVersionNumber *string `locationName:"majorVersionNumber" min:"1" type:"string" required:"true"` 17309 17310 // The model ID. 17311 // 17312 // ModelId is a required field 17313 ModelId *string `locationName:"modelId" min:"1" type:"string" required:"true"` 17314 17315 // The model type. 17316 // 17317 // ModelType is a required field 17318 ModelType *string `locationName:"modelType" type:"string" required:"true" enum:"ModelTypeEnum"` 17319 17320 // A collection of key and value pairs. 17321 Tags []*Tag `locationName:"tags" type:"list"` 17322 } 17323 17324 // String returns the string representation. 17325 // 17326 // API parameter values that are decorated as "sensitive" in the API will not 17327 // be included in the string output. The member name will be present, but the 17328 // value will be replaced with "sensitive". 17329 func (s UpdateModelVersionInput) String() string { 17330 return awsutil.Prettify(s) 17331 } 17332 17333 // GoString returns the string representation. 17334 // 17335 // API parameter values that are decorated as "sensitive" in the API will not 17336 // be included in the string output. The member name will be present, but the 17337 // value will be replaced with "sensitive". 17338 func (s UpdateModelVersionInput) GoString() string { 17339 return s.String() 17340 } 17341 17342 // Validate inspects the fields of the type to determine if they are valid. 17343 func (s *UpdateModelVersionInput) Validate() error { 17344 invalidParams := request.ErrInvalidParams{Context: "UpdateModelVersionInput"} 17345 if s.MajorVersionNumber == nil { 17346 invalidParams.Add(request.NewErrParamRequired("MajorVersionNumber")) 17347 } 17348 if s.MajorVersionNumber != nil && len(*s.MajorVersionNumber) < 1 { 17349 invalidParams.Add(request.NewErrParamMinLen("MajorVersionNumber", 1)) 17350 } 17351 if s.ModelId == nil { 17352 invalidParams.Add(request.NewErrParamRequired("ModelId")) 17353 } 17354 if s.ModelId != nil && len(*s.ModelId) < 1 { 17355 invalidParams.Add(request.NewErrParamMinLen("ModelId", 1)) 17356 } 17357 if s.ModelType == nil { 17358 invalidParams.Add(request.NewErrParamRequired("ModelType")) 17359 } 17360 if s.ExternalEventsDetail != nil { 17361 if err := s.ExternalEventsDetail.Validate(); err != nil { 17362 invalidParams.AddNested("ExternalEventsDetail", err.(request.ErrInvalidParams)) 17363 } 17364 } 17365 if s.IngestedEventsDetail != nil { 17366 if err := s.IngestedEventsDetail.Validate(); err != nil { 17367 invalidParams.AddNested("IngestedEventsDetail", err.(request.ErrInvalidParams)) 17368 } 17369 } 17370 if s.Tags != nil { 17371 for i, v := range s.Tags { 17372 if v == nil { 17373 continue 17374 } 17375 if err := v.Validate(); err != nil { 17376 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 17377 } 17378 } 17379 } 17380 17381 if invalidParams.Len() > 0 { 17382 return invalidParams 17383 } 17384 return nil 17385 } 17386 17387 // SetExternalEventsDetail sets the ExternalEventsDetail field's value. 17388 func (s *UpdateModelVersionInput) SetExternalEventsDetail(v *ExternalEventsDetail) *UpdateModelVersionInput { 17389 s.ExternalEventsDetail = v 17390 return s 17391 } 17392 17393 // SetIngestedEventsDetail sets the IngestedEventsDetail field's value. 17394 func (s *UpdateModelVersionInput) SetIngestedEventsDetail(v *IngestedEventsDetail) *UpdateModelVersionInput { 17395 s.IngestedEventsDetail = v 17396 return s 17397 } 17398 17399 // SetMajorVersionNumber sets the MajorVersionNumber field's value. 17400 func (s *UpdateModelVersionInput) SetMajorVersionNumber(v string) *UpdateModelVersionInput { 17401 s.MajorVersionNumber = &v 17402 return s 17403 } 17404 17405 // SetModelId sets the ModelId field's value. 17406 func (s *UpdateModelVersionInput) SetModelId(v string) *UpdateModelVersionInput { 17407 s.ModelId = &v 17408 return s 17409 } 17410 17411 // SetModelType sets the ModelType field's value. 17412 func (s *UpdateModelVersionInput) SetModelType(v string) *UpdateModelVersionInput { 17413 s.ModelType = &v 17414 return s 17415 } 17416 17417 // SetTags sets the Tags field's value. 17418 func (s *UpdateModelVersionInput) SetTags(v []*Tag) *UpdateModelVersionInput { 17419 s.Tags = v 17420 return s 17421 } 17422 17423 type UpdateModelVersionOutput struct { 17424 _ struct{} `type:"structure"` 17425 17426 // The model ID. 17427 ModelId *string `locationName:"modelId" min:"1" type:"string"` 17428 17429 // The model type. 17430 ModelType *string `locationName:"modelType" type:"string" enum:"ModelTypeEnum"` 17431 17432 // The model version number of the model version updated. 17433 ModelVersionNumber *string `locationName:"modelVersionNumber" min:"3" type:"string"` 17434 17435 // The status of the updated model version. 17436 Status *string `locationName:"status" type:"string"` 17437 } 17438 17439 // String returns the string representation. 17440 // 17441 // API parameter values that are decorated as "sensitive" in the API will not 17442 // be included in the string output. The member name will be present, but the 17443 // value will be replaced with "sensitive". 17444 func (s UpdateModelVersionOutput) String() string { 17445 return awsutil.Prettify(s) 17446 } 17447 17448 // GoString returns the string representation. 17449 // 17450 // API parameter values that are decorated as "sensitive" in the API will not 17451 // be included in the string output. The member name will be present, but the 17452 // value will be replaced with "sensitive". 17453 func (s UpdateModelVersionOutput) GoString() string { 17454 return s.String() 17455 } 17456 17457 // SetModelId sets the ModelId field's value. 17458 func (s *UpdateModelVersionOutput) SetModelId(v string) *UpdateModelVersionOutput { 17459 s.ModelId = &v 17460 return s 17461 } 17462 17463 // SetModelType sets the ModelType field's value. 17464 func (s *UpdateModelVersionOutput) SetModelType(v string) *UpdateModelVersionOutput { 17465 s.ModelType = &v 17466 return s 17467 } 17468 17469 // SetModelVersionNumber sets the ModelVersionNumber field's value. 17470 func (s *UpdateModelVersionOutput) SetModelVersionNumber(v string) *UpdateModelVersionOutput { 17471 s.ModelVersionNumber = &v 17472 return s 17473 } 17474 17475 // SetStatus sets the Status field's value. 17476 func (s *UpdateModelVersionOutput) SetStatus(v string) *UpdateModelVersionOutput { 17477 s.Status = &v 17478 return s 17479 } 17480 17481 type UpdateModelVersionStatusInput struct { 17482 _ struct{} `type:"structure"` 17483 17484 // The model ID of the model version to update. 17485 // 17486 // ModelId is a required field 17487 ModelId *string `locationName:"modelId" min:"1" type:"string" required:"true"` 17488 17489 // The model type. 17490 // 17491 // ModelType is a required field 17492 ModelType *string `locationName:"modelType" type:"string" required:"true" enum:"ModelTypeEnum"` 17493 17494 // The model version number. 17495 // 17496 // ModelVersionNumber is a required field 17497 ModelVersionNumber *string `locationName:"modelVersionNumber" min:"3" type:"string" required:"true"` 17498 17499 // The model version status. 17500 // 17501 // Status is a required field 17502 Status *string `locationName:"status" type:"string" required:"true" enum:"ModelVersionStatus"` 17503 } 17504 17505 // String returns the string representation. 17506 // 17507 // API parameter values that are decorated as "sensitive" in the API will not 17508 // be included in the string output. The member name will be present, but the 17509 // value will be replaced with "sensitive". 17510 func (s UpdateModelVersionStatusInput) String() string { 17511 return awsutil.Prettify(s) 17512 } 17513 17514 // GoString returns the string representation. 17515 // 17516 // API parameter values that are decorated as "sensitive" in the API will not 17517 // be included in the string output. The member name will be present, but the 17518 // value will be replaced with "sensitive". 17519 func (s UpdateModelVersionStatusInput) GoString() string { 17520 return s.String() 17521 } 17522 17523 // Validate inspects the fields of the type to determine if they are valid. 17524 func (s *UpdateModelVersionStatusInput) Validate() error { 17525 invalidParams := request.ErrInvalidParams{Context: "UpdateModelVersionStatusInput"} 17526 if s.ModelId == nil { 17527 invalidParams.Add(request.NewErrParamRequired("ModelId")) 17528 } 17529 if s.ModelId != nil && len(*s.ModelId) < 1 { 17530 invalidParams.Add(request.NewErrParamMinLen("ModelId", 1)) 17531 } 17532 if s.ModelType == nil { 17533 invalidParams.Add(request.NewErrParamRequired("ModelType")) 17534 } 17535 if s.ModelVersionNumber == nil { 17536 invalidParams.Add(request.NewErrParamRequired("ModelVersionNumber")) 17537 } 17538 if s.ModelVersionNumber != nil && len(*s.ModelVersionNumber) < 3 { 17539 invalidParams.Add(request.NewErrParamMinLen("ModelVersionNumber", 3)) 17540 } 17541 if s.Status == nil { 17542 invalidParams.Add(request.NewErrParamRequired("Status")) 17543 } 17544 17545 if invalidParams.Len() > 0 { 17546 return invalidParams 17547 } 17548 return nil 17549 } 17550 17551 // SetModelId sets the ModelId field's value. 17552 func (s *UpdateModelVersionStatusInput) SetModelId(v string) *UpdateModelVersionStatusInput { 17553 s.ModelId = &v 17554 return s 17555 } 17556 17557 // SetModelType sets the ModelType field's value. 17558 func (s *UpdateModelVersionStatusInput) SetModelType(v string) *UpdateModelVersionStatusInput { 17559 s.ModelType = &v 17560 return s 17561 } 17562 17563 // SetModelVersionNumber sets the ModelVersionNumber field's value. 17564 func (s *UpdateModelVersionStatusInput) SetModelVersionNumber(v string) *UpdateModelVersionStatusInput { 17565 s.ModelVersionNumber = &v 17566 return s 17567 } 17568 17569 // SetStatus sets the Status field's value. 17570 func (s *UpdateModelVersionStatusInput) SetStatus(v string) *UpdateModelVersionStatusInput { 17571 s.Status = &v 17572 return s 17573 } 17574 17575 type UpdateModelVersionStatusOutput struct { 17576 _ struct{} `type:"structure"` 17577 } 17578 17579 // String returns the string representation. 17580 // 17581 // API parameter values that are decorated as "sensitive" in the API will not 17582 // be included in the string output. The member name will be present, but the 17583 // value will be replaced with "sensitive". 17584 func (s UpdateModelVersionStatusOutput) String() string { 17585 return awsutil.Prettify(s) 17586 } 17587 17588 // GoString returns the string representation. 17589 // 17590 // API parameter values that are decorated as "sensitive" in the API will not 17591 // be included in the string output. The member name will be present, but the 17592 // value will be replaced with "sensitive". 17593 func (s UpdateModelVersionStatusOutput) GoString() string { 17594 return s.String() 17595 } 17596 17597 type UpdateRuleMetadataInput struct { 17598 _ struct{} `type:"structure"` 17599 17600 // The rule description. 17601 // 17602 // Description is a required field 17603 Description *string `locationName:"description" min:"1" type:"string" required:"true"` 17604 17605 // The rule to update. 17606 // 17607 // Rule is a required field 17608 Rule *Rule `locationName:"rule" type:"structure" required:"true"` 17609 } 17610 17611 // String returns the string representation. 17612 // 17613 // API parameter values that are decorated as "sensitive" in the API will not 17614 // be included in the string output. The member name will be present, but the 17615 // value will be replaced with "sensitive". 17616 func (s UpdateRuleMetadataInput) String() string { 17617 return awsutil.Prettify(s) 17618 } 17619 17620 // GoString returns the string representation. 17621 // 17622 // API parameter values that are decorated as "sensitive" in the API will not 17623 // be included in the string output. The member name will be present, but the 17624 // value will be replaced with "sensitive". 17625 func (s UpdateRuleMetadataInput) GoString() string { 17626 return s.String() 17627 } 17628 17629 // Validate inspects the fields of the type to determine if they are valid. 17630 func (s *UpdateRuleMetadataInput) Validate() error { 17631 invalidParams := request.ErrInvalidParams{Context: "UpdateRuleMetadataInput"} 17632 if s.Description == nil { 17633 invalidParams.Add(request.NewErrParamRequired("Description")) 17634 } 17635 if s.Description != nil && len(*s.Description) < 1 { 17636 invalidParams.Add(request.NewErrParamMinLen("Description", 1)) 17637 } 17638 if s.Rule == nil { 17639 invalidParams.Add(request.NewErrParamRequired("Rule")) 17640 } 17641 if s.Rule != nil { 17642 if err := s.Rule.Validate(); err != nil { 17643 invalidParams.AddNested("Rule", err.(request.ErrInvalidParams)) 17644 } 17645 } 17646 17647 if invalidParams.Len() > 0 { 17648 return invalidParams 17649 } 17650 return nil 17651 } 17652 17653 // SetDescription sets the Description field's value. 17654 func (s *UpdateRuleMetadataInput) SetDescription(v string) *UpdateRuleMetadataInput { 17655 s.Description = &v 17656 return s 17657 } 17658 17659 // SetRule sets the Rule field's value. 17660 func (s *UpdateRuleMetadataInput) SetRule(v *Rule) *UpdateRuleMetadataInput { 17661 s.Rule = v 17662 return s 17663 } 17664 17665 type UpdateRuleMetadataOutput struct { 17666 _ struct{} `type:"structure"` 17667 } 17668 17669 // String returns the string representation. 17670 // 17671 // API parameter values that are decorated as "sensitive" in the API will not 17672 // be included in the string output. The member name will be present, but the 17673 // value will be replaced with "sensitive". 17674 func (s UpdateRuleMetadataOutput) String() string { 17675 return awsutil.Prettify(s) 17676 } 17677 17678 // GoString returns the string representation. 17679 // 17680 // API parameter values that are decorated as "sensitive" in the API will not 17681 // be included in the string output. The member name will be present, but the 17682 // value will be replaced with "sensitive". 17683 func (s UpdateRuleMetadataOutput) GoString() string { 17684 return s.String() 17685 } 17686 17687 type UpdateRuleVersionInput struct { 17688 _ struct{} `type:"structure"` 17689 17690 // The description. 17691 Description *string `locationName:"description" min:"1" type:"string"` 17692 17693 // The rule expression. 17694 // 17695 // Expression is a sensitive parameter and its value will be 17696 // replaced with "sensitive" in string returned by UpdateRuleVersionInput's 17697 // String and GoString methods. 17698 // 17699 // Expression is a required field 17700 Expression *string `locationName:"expression" min:"1" type:"string" required:"true" sensitive:"true"` 17701 17702 // The language. 17703 // 17704 // Language is a required field 17705 Language *string `locationName:"language" type:"string" required:"true" enum:"Language"` 17706 17707 // The outcomes. 17708 // 17709 // Outcomes is a required field 17710 Outcomes []*string `locationName:"outcomes" min:"1" type:"list" required:"true"` 17711 17712 // The rule to update. 17713 // 17714 // Rule is a required field 17715 Rule *Rule `locationName:"rule" type:"structure" required:"true"` 17716 17717 // The tags to assign to the rule version. 17718 Tags []*Tag `locationName:"tags" type:"list"` 17719 } 17720 17721 // String returns the string representation. 17722 // 17723 // API parameter values that are decorated as "sensitive" in the API will not 17724 // be included in the string output. The member name will be present, but the 17725 // value will be replaced with "sensitive". 17726 func (s UpdateRuleVersionInput) String() string { 17727 return awsutil.Prettify(s) 17728 } 17729 17730 // GoString returns the string representation. 17731 // 17732 // API parameter values that are decorated as "sensitive" in the API will not 17733 // be included in the string output. The member name will be present, but the 17734 // value will be replaced with "sensitive". 17735 func (s UpdateRuleVersionInput) GoString() string { 17736 return s.String() 17737 } 17738 17739 // Validate inspects the fields of the type to determine if they are valid. 17740 func (s *UpdateRuleVersionInput) Validate() error { 17741 invalidParams := request.ErrInvalidParams{Context: "UpdateRuleVersionInput"} 17742 if s.Description != nil && len(*s.Description) < 1 { 17743 invalidParams.Add(request.NewErrParamMinLen("Description", 1)) 17744 } 17745 if s.Expression == nil { 17746 invalidParams.Add(request.NewErrParamRequired("Expression")) 17747 } 17748 if s.Expression != nil && len(*s.Expression) < 1 { 17749 invalidParams.Add(request.NewErrParamMinLen("Expression", 1)) 17750 } 17751 if s.Language == nil { 17752 invalidParams.Add(request.NewErrParamRequired("Language")) 17753 } 17754 if s.Outcomes == nil { 17755 invalidParams.Add(request.NewErrParamRequired("Outcomes")) 17756 } 17757 if s.Outcomes != nil && len(s.Outcomes) < 1 { 17758 invalidParams.Add(request.NewErrParamMinLen("Outcomes", 1)) 17759 } 17760 if s.Rule == nil { 17761 invalidParams.Add(request.NewErrParamRequired("Rule")) 17762 } 17763 if s.Rule != nil { 17764 if err := s.Rule.Validate(); err != nil { 17765 invalidParams.AddNested("Rule", err.(request.ErrInvalidParams)) 17766 } 17767 } 17768 if s.Tags != nil { 17769 for i, v := range s.Tags { 17770 if v == nil { 17771 continue 17772 } 17773 if err := v.Validate(); err != nil { 17774 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 17775 } 17776 } 17777 } 17778 17779 if invalidParams.Len() > 0 { 17780 return invalidParams 17781 } 17782 return nil 17783 } 17784 17785 // SetDescription sets the Description field's value. 17786 func (s *UpdateRuleVersionInput) SetDescription(v string) *UpdateRuleVersionInput { 17787 s.Description = &v 17788 return s 17789 } 17790 17791 // SetExpression sets the Expression field's value. 17792 func (s *UpdateRuleVersionInput) SetExpression(v string) *UpdateRuleVersionInput { 17793 s.Expression = &v 17794 return s 17795 } 17796 17797 // SetLanguage sets the Language field's value. 17798 func (s *UpdateRuleVersionInput) SetLanguage(v string) *UpdateRuleVersionInput { 17799 s.Language = &v 17800 return s 17801 } 17802 17803 // SetOutcomes sets the Outcomes field's value. 17804 func (s *UpdateRuleVersionInput) SetOutcomes(v []*string) *UpdateRuleVersionInput { 17805 s.Outcomes = v 17806 return s 17807 } 17808 17809 // SetRule sets the Rule field's value. 17810 func (s *UpdateRuleVersionInput) SetRule(v *Rule) *UpdateRuleVersionInput { 17811 s.Rule = v 17812 return s 17813 } 17814 17815 // SetTags sets the Tags field's value. 17816 func (s *UpdateRuleVersionInput) SetTags(v []*Tag) *UpdateRuleVersionInput { 17817 s.Tags = v 17818 return s 17819 } 17820 17821 type UpdateRuleVersionOutput struct { 17822 _ struct{} `type:"structure"` 17823 17824 // The new rule version that was created. 17825 Rule *Rule `locationName:"rule" type:"structure"` 17826 } 17827 17828 // String returns the string representation. 17829 // 17830 // API parameter values that are decorated as "sensitive" in the API will not 17831 // be included in the string output. The member name will be present, but the 17832 // value will be replaced with "sensitive". 17833 func (s UpdateRuleVersionOutput) String() string { 17834 return awsutil.Prettify(s) 17835 } 17836 17837 // GoString returns the string representation. 17838 // 17839 // API parameter values that are decorated as "sensitive" in the API will not 17840 // be included in the string output. The member name will be present, but the 17841 // value will be replaced with "sensitive". 17842 func (s UpdateRuleVersionOutput) GoString() string { 17843 return s.String() 17844 } 17845 17846 // SetRule sets the Rule field's value. 17847 func (s *UpdateRuleVersionOutput) SetRule(v *Rule) *UpdateRuleVersionOutput { 17848 s.Rule = v 17849 return s 17850 } 17851 17852 type UpdateVariableInput struct { 17853 _ struct{} `type:"structure"` 17854 17855 // The new default value of the variable. 17856 DefaultValue *string `locationName:"defaultValue" type:"string"` 17857 17858 // The new description. 17859 Description *string `locationName:"description" type:"string"` 17860 17861 // The name of the variable. 17862 // 17863 // Name is a required field 17864 Name *string `locationName:"name" type:"string" required:"true"` 17865 17866 // The variable type. For more information see Variable types (https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#variable-types). 17867 VariableType *string `locationName:"variableType" type:"string"` 17868 } 17869 17870 // String returns the string representation. 17871 // 17872 // API parameter values that are decorated as "sensitive" in the API will not 17873 // be included in the string output. The member name will be present, but the 17874 // value will be replaced with "sensitive". 17875 func (s UpdateVariableInput) String() string { 17876 return awsutil.Prettify(s) 17877 } 17878 17879 // GoString returns the string representation. 17880 // 17881 // API parameter values that are decorated as "sensitive" in the API will not 17882 // be included in the string output. The member name will be present, but the 17883 // value will be replaced with "sensitive". 17884 func (s UpdateVariableInput) GoString() string { 17885 return s.String() 17886 } 17887 17888 // Validate inspects the fields of the type to determine if they are valid. 17889 func (s *UpdateVariableInput) Validate() error { 17890 invalidParams := request.ErrInvalidParams{Context: "UpdateVariableInput"} 17891 if s.Name == nil { 17892 invalidParams.Add(request.NewErrParamRequired("Name")) 17893 } 17894 17895 if invalidParams.Len() > 0 { 17896 return invalidParams 17897 } 17898 return nil 17899 } 17900 17901 // SetDefaultValue sets the DefaultValue field's value. 17902 func (s *UpdateVariableInput) SetDefaultValue(v string) *UpdateVariableInput { 17903 s.DefaultValue = &v 17904 return s 17905 } 17906 17907 // SetDescription sets the Description field's value. 17908 func (s *UpdateVariableInput) SetDescription(v string) *UpdateVariableInput { 17909 s.Description = &v 17910 return s 17911 } 17912 17913 // SetName sets the Name field's value. 17914 func (s *UpdateVariableInput) SetName(v string) *UpdateVariableInput { 17915 s.Name = &v 17916 return s 17917 } 17918 17919 // SetVariableType sets the VariableType field's value. 17920 func (s *UpdateVariableInput) SetVariableType(v string) *UpdateVariableInput { 17921 s.VariableType = &v 17922 return s 17923 } 17924 17925 type UpdateVariableOutput struct { 17926 _ struct{} `type:"structure"` 17927 } 17928 17929 // String returns the string representation. 17930 // 17931 // API parameter values that are decorated as "sensitive" in the API will not 17932 // be included in the string output. The member name will be present, but the 17933 // value will be replaced with "sensitive". 17934 func (s UpdateVariableOutput) String() string { 17935 return awsutil.Prettify(s) 17936 } 17937 17938 // GoString returns the string representation. 17939 // 17940 // API parameter values that are decorated as "sensitive" in the API will not 17941 // be included in the string output. The member name will be present, but the 17942 // value will be replaced with "sensitive". 17943 func (s UpdateVariableOutput) GoString() string { 17944 return s.String() 17945 } 17946 17947 // An exception indicating a specified value is not allowed. 17948 type ValidationException struct { 17949 _ struct{} `type:"structure"` 17950 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 17951 17952 Message_ *string `locationName:"message" type:"string"` 17953 } 17954 17955 // String returns the string representation. 17956 // 17957 // API parameter values that are decorated as "sensitive" in the API will not 17958 // be included in the string output. The member name will be present, but the 17959 // value will be replaced with "sensitive". 17960 func (s ValidationException) String() string { 17961 return awsutil.Prettify(s) 17962 } 17963 17964 // GoString returns the string representation. 17965 // 17966 // API parameter values that are decorated as "sensitive" in the API will not 17967 // be included in the string output. The member name will be present, but the 17968 // value will be replaced with "sensitive". 17969 func (s ValidationException) GoString() string { 17970 return s.String() 17971 } 17972 17973 func newErrorValidationException(v protocol.ResponseMetadata) error { 17974 return &ValidationException{ 17975 RespMetadata: v, 17976 } 17977 } 17978 17979 // Code returns the exception type name. 17980 func (s *ValidationException) Code() string { 17981 return "ValidationException" 17982 } 17983 17984 // Message returns the exception's message. 17985 func (s *ValidationException) Message() string { 17986 if s.Message_ != nil { 17987 return *s.Message_ 17988 } 17989 return "" 17990 } 17991 17992 // OrigErr always returns nil, satisfies awserr.Error interface. 17993 func (s *ValidationException) OrigErr() error { 17994 return nil 17995 } 17996 17997 func (s *ValidationException) Error() string { 17998 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 17999 } 18000 18001 // Status code returns the HTTP status code for the request's response error. 18002 func (s *ValidationException) StatusCode() int { 18003 return s.RespMetadata.StatusCode 18004 } 18005 18006 // RequestID returns the service's response RequestID for request. 18007 func (s *ValidationException) RequestID() string { 18008 return s.RespMetadata.RequestID 18009 } 18010 18011 // The variable. 18012 type Variable struct { 18013 _ struct{} `type:"structure"` 18014 18015 // The ARN of the variable. 18016 Arn *string `locationName:"arn" min:"1" type:"string"` 18017 18018 // The time when the variable was created. 18019 CreatedTime *string `locationName:"createdTime" min:"11" type:"string"` 18020 18021 // The data source of the variable. 18022 DataSource *string `locationName:"dataSource" type:"string" enum:"DataSource"` 18023 18024 // The data type of the variable. For more information see Variable types (https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#variable-types). 18025 DataType *string `locationName:"dataType" type:"string" enum:"DataType"` 18026 18027 // The default value of the variable. 18028 DefaultValue *string `locationName:"defaultValue" type:"string"` 18029 18030 // The description of the variable. 18031 Description *string `locationName:"description" type:"string"` 18032 18033 // The time when variable was last updated. 18034 LastUpdatedTime *string `locationName:"lastUpdatedTime" min:"11" type:"string"` 18035 18036 // The name of the variable. 18037 Name *string `locationName:"name" type:"string"` 18038 18039 // The variable type of the variable. 18040 // 18041 // Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | BILLING_ADDRESS_L2 | 18042 // BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | BILLING_PHONE | BILLING_STATE 18043 // | BILLING_ZIP | CARD_BIN | CATEGORICAL | CURRENCY_CODE | EMAIL_ADDRESS | 18044 // FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | IP_ADDRESS | NUMERIC | ORDER_ID 18045 // | PAYMENT_TYPE | PHONE_NUMBER | PRICE | PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 18046 // | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | SHIPPING_COUNTRY | SHIPPING_NAME 18047 // | SHIPPING_PHONE | SHIPPING_STATE | SHIPPING_ZIP | USERAGENT 18048 VariableType *string `locationName:"variableType" type:"string"` 18049 } 18050 18051 // String returns the string representation. 18052 // 18053 // API parameter values that are decorated as "sensitive" in the API will not 18054 // be included in the string output. The member name will be present, but the 18055 // value will be replaced with "sensitive". 18056 func (s Variable) String() string { 18057 return awsutil.Prettify(s) 18058 } 18059 18060 // GoString returns the string representation. 18061 // 18062 // API parameter values that are decorated as "sensitive" in the API will not 18063 // be included in the string output. The member name will be present, but the 18064 // value will be replaced with "sensitive". 18065 func (s Variable) GoString() string { 18066 return s.String() 18067 } 18068 18069 // SetArn sets the Arn field's value. 18070 func (s *Variable) SetArn(v string) *Variable { 18071 s.Arn = &v 18072 return s 18073 } 18074 18075 // SetCreatedTime sets the CreatedTime field's value. 18076 func (s *Variable) SetCreatedTime(v string) *Variable { 18077 s.CreatedTime = &v 18078 return s 18079 } 18080 18081 // SetDataSource sets the DataSource field's value. 18082 func (s *Variable) SetDataSource(v string) *Variable { 18083 s.DataSource = &v 18084 return s 18085 } 18086 18087 // SetDataType sets the DataType field's value. 18088 func (s *Variable) SetDataType(v string) *Variable { 18089 s.DataType = &v 18090 return s 18091 } 18092 18093 // SetDefaultValue sets the DefaultValue field's value. 18094 func (s *Variable) SetDefaultValue(v string) *Variable { 18095 s.DefaultValue = &v 18096 return s 18097 } 18098 18099 // SetDescription sets the Description field's value. 18100 func (s *Variable) SetDescription(v string) *Variable { 18101 s.Description = &v 18102 return s 18103 } 18104 18105 // SetLastUpdatedTime sets the LastUpdatedTime field's value. 18106 func (s *Variable) SetLastUpdatedTime(v string) *Variable { 18107 s.LastUpdatedTime = &v 18108 return s 18109 } 18110 18111 // SetName sets the Name field's value. 18112 func (s *Variable) SetName(v string) *Variable { 18113 s.Name = &v 18114 return s 18115 } 18116 18117 // SetVariableType sets the VariableType field's value. 18118 func (s *Variable) SetVariableType(v string) *Variable { 18119 s.VariableType = &v 18120 return s 18121 } 18122 18123 // A variable in the list of variables for the batch create variable request. 18124 type VariableEntry struct { 18125 _ struct{} `type:"structure"` 18126 18127 // The data source of the variable. 18128 DataSource *string `locationName:"dataSource" type:"string"` 18129 18130 // The data type of the variable. 18131 DataType *string `locationName:"dataType" type:"string"` 18132 18133 // The default value of the variable. 18134 DefaultValue *string `locationName:"defaultValue" type:"string"` 18135 18136 // The description of the variable. 18137 Description *string `locationName:"description" type:"string"` 18138 18139 // The name of the variable. 18140 Name *string `locationName:"name" type:"string"` 18141 18142 // The type of the variable. For more information see Variable types (https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#variable-types). 18143 // 18144 // Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | BILLING_ADDRESS_L2 | 18145 // BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | BILLING_PHONE | BILLING_STATE 18146 // | BILLING_ZIP | CARD_BIN | CATEGORICAL | CURRENCY_CODE | EMAIL_ADDRESS | 18147 // FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | IP_ADDRESS | NUMERIC | ORDER_ID 18148 // | PAYMENT_TYPE | PHONE_NUMBER | PRICE | PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 18149 // | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | SHIPPING_COUNTRY | SHIPPING_NAME 18150 // | SHIPPING_PHONE | SHIPPING_STATE | SHIPPING_ZIP | USERAGENT 18151 VariableType *string `locationName:"variableType" type:"string"` 18152 } 18153 18154 // String returns the string representation. 18155 // 18156 // API parameter values that are decorated as "sensitive" in the API will not 18157 // be included in the string output. The member name will be present, but the 18158 // value will be replaced with "sensitive". 18159 func (s VariableEntry) String() string { 18160 return awsutil.Prettify(s) 18161 } 18162 18163 // GoString returns the string representation. 18164 // 18165 // API parameter values that are decorated as "sensitive" in the API will not 18166 // be included in the string output. The member name will be present, but the 18167 // value will be replaced with "sensitive". 18168 func (s VariableEntry) GoString() string { 18169 return s.String() 18170 } 18171 18172 // SetDataSource sets the DataSource field's value. 18173 func (s *VariableEntry) SetDataSource(v string) *VariableEntry { 18174 s.DataSource = &v 18175 return s 18176 } 18177 18178 // SetDataType sets the DataType field's value. 18179 func (s *VariableEntry) SetDataType(v string) *VariableEntry { 18180 s.DataType = &v 18181 return s 18182 } 18183 18184 // SetDefaultValue sets the DefaultValue field's value. 18185 func (s *VariableEntry) SetDefaultValue(v string) *VariableEntry { 18186 s.DefaultValue = &v 18187 return s 18188 } 18189 18190 // SetDescription sets the Description field's value. 18191 func (s *VariableEntry) SetDescription(v string) *VariableEntry { 18192 s.Description = &v 18193 return s 18194 } 18195 18196 // SetName sets the Name field's value. 18197 func (s *VariableEntry) SetName(v string) *VariableEntry { 18198 s.Name = &v 18199 return s 18200 } 18201 18202 // SetVariableType sets the VariableType field's value. 18203 func (s *VariableEntry) SetVariableType(v string) *VariableEntry { 18204 s.VariableType = &v 18205 return s 18206 } 18207 18208 // The variable importance metrics details. 18209 type VariableImportanceMetrics struct { 18210 _ struct{} `type:"structure"` 18211 18212 // List of variable metrics. 18213 LogOddsMetrics []*LogOddsMetric `locationName:"logOddsMetrics" type:"list"` 18214 } 18215 18216 // String returns the string representation. 18217 // 18218 // API parameter values that are decorated as "sensitive" in the API will not 18219 // be included in the string output. The member name will be present, but the 18220 // value will be replaced with "sensitive". 18221 func (s VariableImportanceMetrics) String() string { 18222 return awsutil.Prettify(s) 18223 } 18224 18225 // GoString returns the string representation. 18226 // 18227 // API parameter values that are decorated as "sensitive" in the API will not 18228 // be included in the string output. The member name will be present, but the 18229 // value will be replaced with "sensitive". 18230 func (s VariableImportanceMetrics) GoString() string { 18231 return s.String() 18232 } 18233 18234 // SetLogOddsMetrics sets the LogOddsMetrics field's value. 18235 func (s *VariableImportanceMetrics) SetLogOddsMetrics(v []*LogOddsMetric) *VariableImportanceMetrics { 18236 s.LogOddsMetrics = v 18237 return s 18238 } 18239 18240 const ( 18241 // AsyncJobStatusInProgressInitializing is a AsyncJobStatus enum value 18242 AsyncJobStatusInProgressInitializing = "IN_PROGRESS_INITIALIZING" 18243 18244 // AsyncJobStatusInProgress is a AsyncJobStatus enum value 18245 AsyncJobStatusInProgress = "IN_PROGRESS" 18246 18247 // AsyncJobStatusCancelInProgress is a AsyncJobStatus enum value 18248 AsyncJobStatusCancelInProgress = "CANCEL_IN_PROGRESS" 18249 18250 // AsyncJobStatusCanceled is a AsyncJobStatus enum value 18251 AsyncJobStatusCanceled = "CANCELED" 18252 18253 // AsyncJobStatusComplete is a AsyncJobStatus enum value 18254 AsyncJobStatusComplete = "COMPLETE" 18255 18256 // AsyncJobStatusFailed is a AsyncJobStatus enum value 18257 AsyncJobStatusFailed = "FAILED" 18258 ) 18259 18260 // AsyncJobStatus_Values returns all elements of the AsyncJobStatus enum 18261 func AsyncJobStatus_Values() []string { 18262 return []string{ 18263 AsyncJobStatusInProgressInitializing, 18264 AsyncJobStatusInProgress, 18265 AsyncJobStatusCancelInProgress, 18266 AsyncJobStatusCanceled, 18267 AsyncJobStatusComplete, 18268 AsyncJobStatusFailed, 18269 } 18270 } 18271 18272 const ( 18273 // DataSourceEvent is a DataSource enum value 18274 DataSourceEvent = "EVENT" 18275 18276 // DataSourceModelScore is a DataSource enum value 18277 DataSourceModelScore = "MODEL_SCORE" 18278 18279 // DataSourceExternalModelScore is a DataSource enum value 18280 DataSourceExternalModelScore = "EXTERNAL_MODEL_SCORE" 18281 ) 18282 18283 // DataSource_Values returns all elements of the DataSource enum 18284 func DataSource_Values() []string { 18285 return []string{ 18286 DataSourceEvent, 18287 DataSourceModelScore, 18288 DataSourceExternalModelScore, 18289 } 18290 } 18291 18292 const ( 18293 // DataTypeString is a DataType enum value 18294 DataTypeString = "STRING" 18295 18296 // DataTypeInteger is a DataType enum value 18297 DataTypeInteger = "INTEGER" 18298 18299 // DataTypeFloat is a DataType enum value 18300 DataTypeFloat = "FLOAT" 18301 18302 // DataTypeBoolean is a DataType enum value 18303 DataTypeBoolean = "BOOLEAN" 18304 ) 18305 18306 // DataType_Values returns all elements of the DataType enum 18307 func DataType_Values() []string { 18308 return []string{ 18309 DataTypeString, 18310 DataTypeInteger, 18311 DataTypeFloat, 18312 DataTypeBoolean, 18313 } 18314 } 18315 18316 const ( 18317 // DetectorVersionStatusDraft is a DetectorVersionStatus enum value 18318 DetectorVersionStatusDraft = "DRAFT" 18319 18320 // DetectorVersionStatusActive is a DetectorVersionStatus enum value 18321 DetectorVersionStatusActive = "ACTIVE" 18322 18323 // DetectorVersionStatusInactive is a DetectorVersionStatus enum value 18324 DetectorVersionStatusInactive = "INACTIVE" 18325 ) 18326 18327 // DetectorVersionStatus_Values returns all elements of the DetectorVersionStatus enum 18328 func DetectorVersionStatus_Values() []string { 18329 return []string{ 18330 DetectorVersionStatusDraft, 18331 DetectorVersionStatusActive, 18332 DetectorVersionStatusInactive, 18333 } 18334 } 18335 18336 const ( 18337 // EventIngestionEnabled is a EventIngestion enum value 18338 EventIngestionEnabled = "ENABLED" 18339 18340 // EventIngestionDisabled is a EventIngestion enum value 18341 EventIngestionDisabled = "DISABLED" 18342 ) 18343 18344 // EventIngestion_Values returns all elements of the EventIngestion enum 18345 func EventIngestion_Values() []string { 18346 return []string{ 18347 EventIngestionEnabled, 18348 EventIngestionDisabled, 18349 } 18350 } 18351 18352 const ( 18353 // LanguageDetectorpl is a Language enum value 18354 LanguageDetectorpl = "DETECTORPL" 18355 ) 18356 18357 // Language_Values returns all elements of the Language enum 18358 func Language_Values() []string { 18359 return []string{ 18360 LanguageDetectorpl, 18361 } 18362 } 18363 18364 const ( 18365 // ModelEndpointStatusAssociated is a ModelEndpointStatus enum value 18366 ModelEndpointStatusAssociated = "ASSOCIATED" 18367 18368 // ModelEndpointStatusDissociated is a ModelEndpointStatus enum value 18369 ModelEndpointStatusDissociated = "DISSOCIATED" 18370 ) 18371 18372 // ModelEndpointStatus_Values returns all elements of the ModelEndpointStatus enum 18373 func ModelEndpointStatus_Values() []string { 18374 return []string{ 18375 ModelEndpointStatusAssociated, 18376 ModelEndpointStatusDissociated, 18377 } 18378 } 18379 18380 const ( 18381 // ModelInputDataFormatTextCsv is a ModelInputDataFormat enum value 18382 ModelInputDataFormatTextCsv = "TEXT_CSV" 18383 18384 // ModelInputDataFormatApplicationJson is a ModelInputDataFormat enum value 18385 ModelInputDataFormatApplicationJson = "APPLICATION_JSON" 18386 ) 18387 18388 // ModelInputDataFormat_Values returns all elements of the ModelInputDataFormat enum 18389 func ModelInputDataFormat_Values() []string { 18390 return []string{ 18391 ModelInputDataFormatTextCsv, 18392 ModelInputDataFormatApplicationJson, 18393 } 18394 } 18395 18396 const ( 18397 // ModelOutputDataFormatTextCsv is a ModelOutputDataFormat enum value 18398 ModelOutputDataFormatTextCsv = "TEXT_CSV" 18399 18400 // ModelOutputDataFormatApplicationJsonlines is a ModelOutputDataFormat enum value 18401 ModelOutputDataFormatApplicationJsonlines = "APPLICATION_JSONLINES" 18402 ) 18403 18404 // ModelOutputDataFormat_Values returns all elements of the ModelOutputDataFormat enum 18405 func ModelOutputDataFormat_Values() []string { 18406 return []string{ 18407 ModelOutputDataFormatTextCsv, 18408 ModelOutputDataFormatApplicationJsonlines, 18409 } 18410 } 18411 18412 const ( 18413 // ModelSourceSagemaker is a ModelSource enum value 18414 ModelSourceSagemaker = "SAGEMAKER" 18415 ) 18416 18417 // ModelSource_Values returns all elements of the ModelSource enum 18418 func ModelSource_Values() []string { 18419 return []string{ 18420 ModelSourceSagemaker, 18421 } 18422 } 18423 18424 const ( 18425 // ModelTypeEnumOnlineFraudInsights is a ModelTypeEnum enum value 18426 ModelTypeEnumOnlineFraudInsights = "ONLINE_FRAUD_INSIGHTS" 18427 18428 // ModelTypeEnumTransactionFraudInsights is a ModelTypeEnum enum value 18429 ModelTypeEnumTransactionFraudInsights = "TRANSACTION_FRAUD_INSIGHTS" 18430 ) 18431 18432 // ModelTypeEnum_Values returns all elements of the ModelTypeEnum enum 18433 func ModelTypeEnum_Values() []string { 18434 return []string{ 18435 ModelTypeEnumOnlineFraudInsights, 18436 ModelTypeEnumTransactionFraudInsights, 18437 } 18438 } 18439 18440 const ( 18441 // ModelVersionStatusActive is a ModelVersionStatus enum value 18442 ModelVersionStatusActive = "ACTIVE" 18443 18444 // ModelVersionStatusInactive is a ModelVersionStatus enum value 18445 ModelVersionStatusInactive = "INACTIVE" 18446 18447 // ModelVersionStatusTrainingCancelled is a ModelVersionStatus enum value 18448 ModelVersionStatusTrainingCancelled = "TRAINING_CANCELLED" 18449 ) 18450 18451 // ModelVersionStatus_Values returns all elements of the ModelVersionStatus enum 18452 func ModelVersionStatus_Values() []string { 18453 return []string{ 18454 ModelVersionStatusActive, 18455 ModelVersionStatusInactive, 18456 ModelVersionStatusTrainingCancelled, 18457 } 18458 } 18459 18460 const ( 18461 // RuleExecutionModeAllMatched is a RuleExecutionMode enum value 18462 RuleExecutionModeAllMatched = "ALL_MATCHED" 18463 18464 // RuleExecutionModeFirstMatched is a RuleExecutionMode enum value 18465 RuleExecutionModeFirstMatched = "FIRST_MATCHED" 18466 ) 18467 18468 // RuleExecutionMode_Values returns all elements of the RuleExecutionMode enum 18469 func RuleExecutionMode_Values() []string { 18470 return []string{ 18471 RuleExecutionModeAllMatched, 18472 RuleExecutionModeFirstMatched, 18473 } 18474 } 18475 18476 const ( 18477 // TrainingDataSourceEnumExternalEvents is a TrainingDataSourceEnum enum value 18478 TrainingDataSourceEnumExternalEvents = "EXTERNAL_EVENTS" 18479 18480 // TrainingDataSourceEnumIngestedEvents is a TrainingDataSourceEnum enum value 18481 TrainingDataSourceEnumIngestedEvents = "INGESTED_EVENTS" 18482 ) 18483 18484 // TrainingDataSourceEnum_Values returns all elements of the TrainingDataSourceEnum enum 18485 func TrainingDataSourceEnum_Values() []string { 18486 return []string{ 18487 TrainingDataSourceEnumExternalEvents, 18488 TrainingDataSourceEnumIngestedEvents, 18489 } 18490 } 18491 18492 const ( 18493 // UnlabeledEventsTreatmentIgnore is a UnlabeledEventsTreatment enum value 18494 UnlabeledEventsTreatmentIgnore = "IGNORE" 18495 18496 // UnlabeledEventsTreatmentFraud is a UnlabeledEventsTreatment enum value 18497 UnlabeledEventsTreatmentFraud = "FRAUD" 18498 18499 // UnlabeledEventsTreatmentLegit is a UnlabeledEventsTreatment enum value 18500 UnlabeledEventsTreatmentLegit = "LEGIT" 18501 ) 18502 18503 // UnlabeledEventsTreatment_Values returns all elements of the UnlabeledEventsTreatment enum 18504 func UnlabeledEventsTreatment_Values() []string { 18505 return []string{ 18506 UnlabeledEventsTreatmentIgnore, 18507 UnlabeledEventsTreatmentFraud, 18508 UnlabeledEventsTreatmentLegit, 18509 } 18510 }