github.com/aavshr/aws-sdk-go@v1.41.3/service/machinelearning/api.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package machinelearning 4 5 import ( 6 "fmt" 7 "time" 8 9 "github.com/aavshr/aws-sdk-go/aws" 10 "github.com/aavshr/aws-sdk-go/aws/awsutil" 11 "github.com/aavshr/aws-sdk-go/aws/request" 12 "github.com/aavshr/aws-sdk-go/private/protocol" 13 ) 14 15 const opAddTags = "AddTags" 16 17 // AddTagsRequest generates a "aws/request.Request" representing the 18 // client's request for the AddTags 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 AddTags for more information on using the AddTags 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 AddTagsRequest method. 33 // req, resp := client.AddTagsRequest(params) 34 // 35 // err := req.Send() 36 // if err == nil { // resp is now filled 37 // fmt.Println(resp) 38 // } 39 func (c *MachineLearning) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) { 40 op := &request.Operation{ 41 Name: opAddTags, 42 HTTPMethod: "POST", 43 HTTPPath: "/", 44 } 45 46 if input == nil { 47 input = &AddTagsInput{} 48 } 49 50 output = &AddTagsOutput{} 51 req = c.newRequest(op, input, output) 52 return 53 } 54 55 // AddTags API operation for Amazon Machine Learning. 56 // 57 // Adds one or more tags to an object, up to a limit of 10. Each tag consists 58 // of a key and an optional value. If you add a tag using a key that is already 59 // associated with the ML object, AddTags updates the tag's value. 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 Machine Learning's 66 // API operation AddTags for usage and error information. 67 // 68 // Returned Error Types: 69 // * InvalidInputException 70 // An error on the client occurred. Typically, the cause is an invalid input 71 // value. 72 // 73 // * InvalidTagException 74 // 75 // * TagLimitExceededException 76 // 77 // * ResourceNotFoundException 78 // A specified resource cannot be located. 79 // 80 // * InternalServerException 81 // An error on the server occurred when trying to process a request. 82 // 83 func (c *MachineLearning) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { 84 req, out := c.AddTagsRequest(input) 85 return out, req.Send() 86 } 87 88 // AddTagsWithContext is the same as AddTags with the addition of 89 // the ability to pass a context and additional request options. 90 // 91 // See AddTags for details on how to use this API operation. 92 // 93 // The context must be non-nil and will be used for request cancellation. If 94 // the context is nil a panic will occur. In the future the SDK may create 95 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 96 // for more information on using Contexts. 97 func (c *MachineLearning) AddTagsWithContext(ctx aws.Context, input *AddTagsInput, opts ...request.Option) (*AddTagsOutput, error) { 98 req, out := c.AddTagsRequest(input) 99 req.SetContext(ctx) 100 req.ApplyOptions(opts...) 101 return out, req.Send() 102 } 103 104 const opCreateBatchPrediction = "CreateBatchPrediction" 105 106 // CreateBatchPredictionRequest generates a "aws/request.Request" representing the 107 // client's request for the CreateBatchPrediction operation. The "output" return 108 // value will be populated with the request's response once the request completes 109 // successfully. 110 // 111 // Use "Send" method on the returned Request to send the API call to the service. 112 // the "output" return value is not valid until after Send returns without error. 113 // 114 // See CreateBatchPrediction for more information on using the CreateBatchPrediction 115 // API call, and error handling. 116 // 117 // This method is useful when you want to inject custom logic or configuration 118 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 119 // 120 // 121 // // Example sending a request using the CreateBatchPredictionRequest method. 122 // req, resp := client.CreateBatchPredictionRequest(params) 123 // 124 // err := req.Send() 125 // if err == nil { // resp is now filled 126 // fmt.Println(resp) 127 // } 128 func (c *MachineLearning) CreateBatchPredictionRequest(input *CreateBatchPredictionInput) (req *request.Request, output *CreateBatchPredictionOutput) { 129 op := &request.Operation{ 130 Name: opCreateBatchPrediction, 131 HTTPMethod: "POST", 132 HTTPPath: "/", 133 } 134 135 if input == nil { 136 input = &CreateBatchPredictionInput{} 137 } 138 139 output = &CreateBatchPredictionOutput{} 140 req = c.newRequest(op, input, output) 141 return 142 } 143 144 // CreateBatchPrediction API operation for Amazon Machine Learning. 145 // 146 // Generates predictions for a group of observations. The observations to process 147 // exist in one or more data files referenced by a DataSource. This operation 148 // creates a new BatchPrediction, and uses an MLModel and the data files referenced 149 // by the DataSource as information sources. 150 // 151 // CreateBatchPrediction is an asynchronous operation. In response to CreateBatchPrediction, 152 // Amazon Machine Learning (Amazon ML) immediately returns and sets the BatchPrediction 153 // status to PENDING. After the BatchPrediction completes, Amazon ML sets the 154 // status to COMPLETED. 155 // 156 // You can poll for status updates by using the GetBatchPrediction operation 157 // and checking the Status parameter of the result. After the COMPLETED status 158 // appears, the results are available in the location specified by the OutputUri 159 // parameter. 160 // 161 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 162 // with awserr.Error's Code and Message methods to get detailed information about 163 // the error. 164 // 165 // See the AWS API reference guide for Amazon Machine Learning's 166 // API operation CreateBatchPrediction for usage and error information. 167 // 168 // Returned Error Types: 169 // * InvalidInputException 170 // An error on the client occurred. Typically, the cause is an invalid input 171 // value. 172 // 173 // * InternalServerException 174 // An error on the server occurred when trying to process a request. 175 // 176 // * IdempotentParameterMismatchException 177 // A second request to use or change an object was not allowed. This can result 178 // from retrying a request using a parameter that was not present in the original 179 // request. 180 // 181 func (c *MachineLearning) CreateBatchPrediction(input *CreateBatchPredictionInput) (*CreateBatchPredictionOutput, error) { 182 req, out := c.CreateBatchPredictionRequest(input) 183 return out, req.Send() 184 } 185 186 // CreateBatchPredictionWithContext is the same as CreateBatchPrediction with the addition of 187 // the ability to pass a context and additional request options. 188 // 189 // See CreateBatchPrediction for details on how to use this API operation. 190 // 191 // The context must be non-nil and will be used for request cancellation. If 192 // the context is nil a panic will occur. In the future the SDK may create 193 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 194 // for more information on using Contexts. 195 func (c *MachineLearning) CreateBatchPredictionWithContext(ctx aws.Context, input *CreateBatchPredictionInput, opts ...request.Option) (*CreateBatchPredictionOutput, error) { 196 req, out := c.CreateBatchPredictionRequest(input) 197 req.SetContext(ctx) 198 req.ApplyOptions(opts...) 199 return out, req.Send() 200 } 201 202 const opCreateDataSourceFromRDS = "CreateDataSourceFromRDS" 203 204 // CreateDataSourceFromRDSRequest generates a "aws/request.Request" representing the 205 // client's request for the CreateDataSourceFromRDS operation. The "output" return 206 // value will be populated with the request's response once the request completes 207 // successfully. 208 // 209 // Use "Send" method on the returned Request to send the API call to the service. 210 // the "output" return value is not valid until after Send returns without error. 211 // 212 // See CreateDataSourceFromRDS for more information on using the CreateDataSourceFromRDS 213 // API call, and error handling. 214 // 215 // This method is useful when you want to inject custom logic or configuration 216 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 217 // 218 // 219 // // Example sending a request using the CreateDataSourceFromRDSRequest method. 220 // req, resp := client.CreateDataSourceFromRDSRequest(params) 221 // 222 // err := req.Send() 223 // if err == nil { // resp is now filled 224 // fmt.Println(resp) 225 // } 226 func (c *MachineLearning) CreateDataSourceFromRDSRequest(input *CreateDataSourceFromRDSInput) (req *request.Request, output *CreateDataSourceFromRDSOutput) { 227 op := &request.Operation{ 228 Name: opCreateDataSourceFromRDS, 229 HTTPMethod: "POST", 230 HTTPPath: "/", 231 } 232 233 if input == nil { 234 input = &CreateDataSourceFromRDSInput{} 235 } 236 237 output = &CreateDataSourceFromRDSOutput{} 238 req = c.newRequest(op, input, output) 239 return 240 } 241 242 // CreateDataSourceFromRDS API operation for Amazon Machine Learning. 243 // 244 // Creates a DataSource object from an Amazon Relational Database Service (http://aws.amazon.com/rds/) 245 // (Amazon RDS). A DataSource references data that can be used to perform CreateMLModel, 246 // CreateEvaluation, or CreateBatchPrediction operations. 247 // 248 // CreateDataSourceFromRDS is an asynchronous operation. In response to CreateDataSourceFromRDS, 249 // Amazon Machine Learning (Amazon ML) immediately returns and sets the DataSource 250 // status to PENDING. After the DataSource is created and ready for use, Amazon 251 // ML sets the Status parameter to COMPLETED. DataSource in the COMPLETED or 252 // PENDING state can be used only to perform >CreateMLModel>, CreateEvaluation, 253 // or CreateBatchPrediction operations. 254 // 255 // If Amazon ML cannot accept the input source, it sets the Status parameter 256 // to FAILED and includes an error message in the Message attribute of the GetDataSource 257 // operation response. 258 // 259 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 260 // with awserr.Error's Code and Message methods to get detailed information about 261 // the error. 262 // 263 // See the AWS API reference guide for Amazon Machine Learning's 264 // API operation CreateDataSourceFromRDS for usage and error information. 265 // 266 // Returned Error Types: 267 // * InvalidInputException 268 // An error on the client occurred. Typically, the cause is an invalid input 269 // value. 270 // 271 // * InternalServerException 272 // An error on the server occurred when trying to process a request. 273 // 274 // * IdempotentParameterMismatchException 275 // A second request to use or change an object was not allowed. This can result 276 // from retrying a request using a parameter that was not present in the original 277 // request. 278 // 279 func (c *MachineLearning) CreateDataSourceFromRDS(input *CreateDataSourceFromRDSInput) (*CreateDataSourceFromRDSOutput, error) { 280 req, out := c.CreateDataSourceFromRDSRequest(input) 281 return out, req.Send() 282 } 283 284 // CreateDataSourceFromRDSWithContext is the same as CreateDataSourceFromRDS with the addition of 285 // the ability to pass a context and additional request options. 286 // 287 // See CreateDataSourceFromRDS for details on how to use this API operation. 288 // 289 // The context must be non-nil and will be used for request cancellation. If 290 // the context is nil a panic will occur. In the future the SDK may create 291 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 292 // for more information on using Contexts. 293 func (c *MachineLearning) CreateDataSourceFromRDSWithContext(ctx aws.Context, input *CreateDataSourceFromRDSInput, opts ...request.Option) (*CreateDataSourceFromRDSOutput, error) { 294 req, out := c.CreateDataSourceFromRDSRequest(input) 295 req.SetContext(ctx) 296 req.ApplyOptions(opts...) 297 return out, req.Send() 298 } 299 300 const opCreateDataSourceFromRedshift = "CreateDataSourceFromRedshift" 301 302 // CreateDataSourceFromRedshiftRequest generates a "aws/request.Request" representing the 303 // client's request for the CreateDataSourceFromRedshift operation. The "output" return 304 // value will be populated with the request's response once the request completes 305 // successfully. 306 // 307 // Use "Send" method on the returned Request to send the API call to the service. 308 // the "output" return value is not valid until after Send returns without error. 309 // 310 // See CreateDataSourceFromRedshift for more information on using the CreateDataSourceFromRedshift 311 // API call, and error handling. 312 // 313 // This method is useful when you want to inject custom logic or configuration 314 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 315 // 316 // 317 // // Example sending a request using the CreateDataSourceFromRedshiftRequest method. 318 // req, resp := client.CreateDataSourceFromRedshiftRequest(params) 319 // 320 // err := req.Send() 321 // if err == nil { // resp is now filled 322 // fmt.Println(resp) 323 // } 324 func (c *MachineLearning) CreateDataSourceFromRedshiftRequest(input *CreateDataSourceFromRedshiftInput) (req *request.Request, output *CreateDataSourceFromRedshiftOutput) { 325 op := &request.Operation{ 326 Name: opCreateDataSourceFromRedshift, 327 HTTPMethod: "POST", 328 HTTPPath: "/", 329 } 330 331 if input == nil { 332 input = &CreateDataSourceFromRedshiftInput{} 333 } 334 335 output = &CreateDataSourceFromRedshiftOutput{} 336 req = c.newRequest(op, input, output) 337 return 338 } 339 340 // CreateDataSourceFromRedshift API operation for Amazon Machine Learning. 341 // 342 // Creates a DataSource from a database hosted on an Amazon Redshift cluster. 343 // A DataSource references data that can be used to perform either CreateMLModel, 344 // CreateEvaluation, or CreateBatchPrediction operations. 345 // 346 // CreateDataSourceFromRedshift is an asynchronous operation. In response to 347 // CreateDataSourceFromRedshift, Amazon Machine Learning (Amazon ML) immediately 348 // returns and sets the DataSource status to PENDING. After the DataSource is 349 // created and ready for use, Amazon ML sets the Status parameter to COMPLETED. 350 // DataSource in COMPLETED or PENDING states can be used to perform only CreateMLModel, 351 // CreateEvaluation, or CreateBatchPrediction operations. 352 // 353 // If Amazon ML can't accept the input source, it sets the Status parameter 354 // to FAILED and includes an error message in the Message attribute of the GetDataSource 355 // operation response. 356 // 357 // The observations should be contained in the database hosted on an Amazon 358 // Redshift cluster and should be specified by a SelectSqlQuery query. Amazon 359 // ML executes an Unload command in Amazon Redshift to transfer the result set 360 // of the SelectSqlQuery query to S3StagingLocation. 361 // 362 // After the DataSource has been created, it's ready for use in evaluations 363 // and batch predictions. If you plan to use the DataSource to train an MLModel, 364 // the DataSource also requires a recipe. A recipe describes how each input 365 // variable will be used in training an MLModel. Will the variable be included 366 // or excluded from training? Will the variable be manipulated; for example, 367 // will it be combined with another variable or will it be split apart into 368 // word combinations? The recipe provides answers to these questions. 369 // 370 // You can't change an existing datasource, but you can copy and modify the 371 // settings from an existing Amazon Redshift datasource to create a new datasource. 372 // To do so, call GetDataSource for an existing datasource and copy the values 373 // to a CreateDataSource call. Change the settings that you want to change and 374 // make sure that all required fields have the appropriate values. 375 // 376 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 377 // with awserr.Error's Code and Message methods to get detailed information about 378 // the error. 379 // 380 // See the AWS API reference guide for Amazon Machine Learning's 381 // API operation CreateDataSourceFromRedshift for usage and error information. 382 // 383 // Returned Error Types: 384 // * InvalidInputException 385 // An error on the client occurred. Typically, the cause is an invalid input 386 // value. 387 // 388 // * InternalServerException 389 // An error on the server occurred when trying to process a request. 390 // 391 // * IdempotentParameterMismatchException 392 // A second request to use or change an object was not allowed. This can result 393 // from retrying a request using a parameter that was not present in the original 394 // request. 395 // 396 func (c *MachineLearning) CreateDataSourceFromRedshift(input *CreateDataSourceFromRedshiftInput) (*CreateDataSourceFromRedshiftOutput, error) { 397 req, out := c.CreateDataSourceFromRedshiftRequest(input) 398 return out, req.Send() 399 } 400 401 // CreateDataSourceFromRedshiftWithContext is the same as CreateDataSourceFromRedshift with the addition of 402 // the ability to pass a context and additional request options. 403 // 404 // See CreateDataSourceFromRedshift for details on how to use this API operation. 405 // 406 // The context must be non-nil and will be used for request cancellation. If 407 // the context is nil a panic will occur. In the future the SDK may create 408 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 409 // for more information on using Contexts. 410 func (c *MachineLearning) CreateDataSourceFromRedshiftWithContext(ctx aws.Context, input *CreateDataSourceFromRedshiftInput, opts ...request.Option) (*CreateDataSourceFromRedshiftOutput, error) { 411 req, out := c.CreateDataSourceFromRedshiftRequest(input) 412 req.SetContext(ctx) 413 req.ApplyOptions(opts...) 414 return out, req.Send() 415 } 416 417 const opCreateDataSourceFromS3 = "CreateDataSourceFromS3" 418 419 // CreateDataSourceFromS3Request generates a "aws/request.Request" representing the 420 // client's request for the CreateDataSourceFromS3 operation. The "output" return 421 // value will be populated with the request's response once the request completes 422 // successfully. 423 // 424 // Use "Send" method on the returned Request to send the API call to the service. 425 // the "output" return value is not valid until after Send returns without error. 426 // 427 // See CreateDataSourceFromS3 for more information on using the CreateDataSourceFromS3 428 // API call, and error handling. 429 // 430 // This method is useful when you want to inject custom logic or configuration 431 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 432 // 433 // 434 // // Example sending a request using the CreateDataSourceFromS3Request method. 435 // req, resp := client.CreateDataSourceFromS3Request(params) 436 // 437 // err := req.Send() 438 // if err == nil { // resp is now filled 439 // fmt.Println(resp) 440 // } 441 func (c *MachineLearning) CreateDataSourceFromS3Request(input *CreateDataSourceFromS3Input) (req *request.Request, output *CreateDataSourceFromS3Output) { 442 op := &request.Operation{ 443 Name: opCreateDataSourceFromS3, 444 HTTPMethod: "POST", 445 HTTPPath: "/", 446 } 447 448 if input == nil { 449 input = &CreateDataSourceFromS3Input{} 450 } 451 452 output = &CreateDataSourceFromS3Output{} 453 req = c.newRequest(op, input, output) 454 return 455 } 456 457 // CreateDataSourceFromS3 API operation for Amazon Machine Learning. 458 // 459 // Creates a DataSource object. A DataSource references data that can be used 460 // to perform CreateMLModel, CreateEvaluation, or CreateBatchPrediction operations. 461 // 462 // CreateDataSourceFromS3 is an asynchronous operation. In response to CreateDataSourceFromS3, 463 // Amazon Machine Learning (Amazon ML) immediately returns and sets the DataSource 464 // status to PENDING. After the DataSource has been created and is ready for 465 // use, Amazon ML sets the Status parameter to COMPLETED. DataSource in the 466 // COMPLETED or PENDING state can be used to perform only CreateMLModel, CreateEvaluation 467 // or CreateBatchPrediction operations. 468 // 469 // If Amazon ML can't accept the input source, it sets the Status parameter 470 // to FAILED and includes an error message in the Message attribute of the GetDataSource 471 // operation response. 472 // 473 // The observation data used in a DataSource should be ready to use; that is, 474 // it should have a consistent structure, and missing data values should be 475 // kept to a minimum. The observation data must reside in one or more .csv files 476 // in an Amazon Simple Storage Service (Amazon S3) location, along with a schema 477 // that describes the data items by name and type. The same schema must be used 478 // for all of the data files referenced by the DataSource. 479 // 480 // After the DataSource has been created, it's ready to use in evaluations and 481 // batch predictions. If you plan to use the DataSource to train an MLModel, 482 // the DataSource also needs a recipe. A recipe describes how each input variable 483 // will be used in training an MLModel. Will the variable be included or excluded 484 // from training? Will the variable be manipulated; for example, will it be 485 // combined with another variable or will it be split apart into word combinations? 486 // The recipe provides answers to these questions. 487 // 488 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 489 // with awserr.Error's Code and Message methods to get detailed information about 490 // the error. 491 // 492 // See the AWS API reference guide for Amazon Machine Learning's 493 // API operation CreateDataSourceFromS3 for usage and error information. 494 // 495 // Returned Error Types: 496 // * InvalidInputException 497 // An error on the client occurred. Typically, the cause is an invalid input 498 // value. 499 // 500 // * InternalServerException 501 // An error on the server occurred when trying to process a request. 502 // 503 // * IdempotentParameterMismatchException 504 // A second request to use or change an object was not allowed. This can result 505 // from retrying a request using a parameter that was not present in the original 506 // request. 507 // 508 func (c *MachineLearning) CreateDataSourceFromS3(input *CreateDataSourceFromS3Input) (*CreateDataSourceFromS3Output, error) { 509 req, out := c.CreateDataSourceFromS3Request(input) 510 return out, req.Send() 511 } 512 513 // CreateDataSourceFromS3WithContext is the same as CreateDataSourceFromS3 with the addition of 514 // the ability to pass a context and additional request options. 515 // 516 // See CreateDataSourceFromS3 for details on how to use this API operation. 517 // 518 // The context must be non-nil and will be used for request cancellation. If 519 // the context is nil a panic will occur. In the future the SDK may create 520 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 521 // for more information on using Contexts. 522 func (c *MachineLearning) CreateDataSourceFromS3WithContext(ctx aws.Context, input *CreateDataSourceFromS3Input, opts ...request.Option) (*CreateDataSourceFromS3Output, error) { 523 req, out := c.CreateDataSourceFromS3Request(input) 524 req.SetContext(ctx) 525 req.ApplyOptions(opts...) 526 return out, req.Send() 527 } 528 529 const opCreateEvaluation = "CreateEvaluation" 530 531 // CreateEvaluationRequest generates a "aws/request.Request" representing the 532 // client's request for the CreateEvaluation operation. The "output" return 533 // value will be populated with the request's response once the request completes 534 // successfully. 535 // 536 // Use "Send" method on the returned Request to send the API call to the service. 537 // the "output" return value is not valid until after Send returns without error. 538 // 539 // See CreateEvaluation for more information on using the CreateEvaluation 540 // API call, and error handling. 541 // 542 // This method is useful when you want to inject custom logic or configuration 543 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 544 // 545 // 546 // // Example sending a request using the CreateEvaluationRequest method. 547 // req, resp := client.CreateEvaluationRequest(params) 548 // 549 // err := req.Send() 550 // if err == nil { // resp is now filled 551 // fmt.Println(resp) 552 // } 553 func (c *MachineLearning) CreateEvaluationRequest(input *CreateEvaluationInput) (req *request.Request, output *CreateEvaluationOutput) { 554 op := &request.Operation{ 555 Name: opCreateEvaluation, 556 HTTPMethod: "POST", 557 HTTPPath: "/", 558 } 559 560 if input == nil { 561 input = &CreateEvaluationInput{} 562 } 563 564 output = &CreateEvaluationOutput{} 565 req = c.newRequest(op, input, output) 566 return 567 } 568 569 // CreateEvaluation API operation for Amazon Machine Learning. 570 // 571 // Creates a new Evaluation of an MLModel. An MLModel is evaluated on a set 572 // of observations associated to a DataSource. Like a DataSource for an MLModel, 573 // the DataSource for an Evaluation contains values for the Target Variable. 574 // The Evaluation compares the predicted result for each observation to the 575 // actual outcome and provides a summary so that you know how effective the 576 // MLModel functions on the test data. Evaluation generates a relevant performance 577 // metric, such as BinaryAUC, RegressionRMSE or MulticlassAvgFScore based on 578 // the corresponding MLModelType: BINARY, REGRESSION or MULTICLASS. 579 // 580 // CreateEvaluation is an asynchronous operation. In response to CreateEvaluation, 581 // Amazon Machine Learning (Amazon ML) immediately returns and sets the evaluation 582 // status to PENDING. After the Evaluation is created and ready for use, Amazon 583 // ML sets the status to COMPLETED. 584 // 585 // You can use the GetEvaluation operation to check progress of the evaluation 586 // during the creation operation. 587 // 588 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 589 // with awserr.Error's Code and Message methods to get detailed information about 590 // the error. 591 // 592 // See the AWS API reference guide for Amazon Machine Learning's 593 // API operation CreateEvaluation for usage and error information. 594 // 595 // Returned Error Types: 596 // * InvalidInputException 597 // An error on the client occurred. Typically, the cause is an invalid input 598 // value. 599 // 600 // * InternalServerException 601 // An error on the server occurred when trying to process a request. 602 // 603 // * IdempotentParameterMismatchException 604 // A second request to use or change an object was not allowed. This can result 605 // from retrying a request using a parameter that was not present in the original 606 // request. 607 // 608 func (c *MachineLearning) CreateEvaluation(input *CreateEvaluationInput) (*CreateEvaluationOutput, error) { 609 req, out := c.CreateEvaluationRequest(input) 610 return out, req.Send() 611 } 612 613 // CreateEvaluationWithContext is the same as CreateEvaluation with the addition of 614 // the ability to pass a context and additional request options. 615 // 616 // See CreateEvaluation for details on how to use this API operation. 617 // 618 // The context must be non-nil and will be used for request cancellation. If 619 // the context is nil a panic will occur. In the future the SDK may create 620 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 621 // for more information on using Contexts. 622 func (c *MachineLearning) CreateEvaluationWithContext(ctx aws.Context, input *CreateEvaluationInput, opts ...request.Option) (*CreateEvaluationOutput, error) { 623 req, out := c.CreateEvaluationRequest(input) 624 req.SetContext(ctx) 625 req.ApplyOptions(opts...) 626 return out, req.Send() 627 } 628 629 const opCreateMLModel = "CreateMLModel" 630 631 // CreateMLModelRequest generates a "aws/request.Request" representing the 632 // client's request for the CreateMLModel operation. The "output" return 633 // value will be populated with the request's response once the request completes 634 // successfully. 635 // 636 // Use "Send" method on the returned Request to send the API call to the service. 637 // the "output" return value is not valid until after Send returns without error. 638 // 639 // See CreateMLModel for more information on using the CreateMLModel 640 // API call, and error handling. 641 // 642 // This method is useful when you want to inject custom logic or configuration 643 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 644 // 645 // 646 // // Example sending a request using the CreateMLModelRequest method. 647 // req, resp := client.CreateMLModelRequest(params) 648 // 649 // err := req.Send() 650 // if err == nil { // resp is now filled 651 // fmt.Println(resp) 652 // } 653 func (c *MachineLearning) CreateMLModelRequest(input *CreateMLModelInput) (req *request.Request, output *CreateMLModelOutput) { 654 op := &request.Operation{ 655 Name: opCreateMLModel, 656 HTTPMethod: "POST", 657 HTTPPath: "/", 658 } 659 660 if input == nil { 661 input = &CreateMLModelInput{} 662 } 663 664 output = &CreateMLModelOutput{} 665 req = c.newRequest(op, input, output) 666 return 667 } 668 669 // CreateMLModel API operation for Amazon Machine Learning. 670 // 671 // Creates a new MLModel using the DataSource and the recipe as information 672 // sources. 673 // 674 // An MLModel is nearly immutable. Users can update only the MLModelName and 675 // the ScoreThreshold in an MLModel without creating a new MLModel. 676 // 677 // CreateMLModel is an asynchronous operation. In response to CreateMLModel, 678 // Amazon Machine Learning (Amazon ML) immediately returns and sets the MLModel 679 // status to PENDING. After the MLModel has been created and ready is for use, 680 // Amazon ML sets the status to COMPLETED. 681 // 682 // You can use the GetMLModel operation to check the progress of the MLModel 683 // during the creation operation. 684 // 685 // CreateMLModel requires a DataSource with computed statistics, which can be 686 // created by setting ComputeStatistics to true in CreateDataSourceFromRDS, 687 // CreateDataSourceFromS3, or CreateDataSourceFromRedshift operations. 688 // 689 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 690 // with awserr.Error's Code and Message methods to get detailed information about 691 // the error. 692 // 693 // See the AWS API reference guide for Amazon Machine Learning's 694 // API operation CreateMLModel for usage and error information. 695 // 696 // Returned Error Types: 697 // * InvalidInputException 698 // An error on the client occurred. Typically, the cause is an invalid input 699 // value. 700 // 701 // * InternalServerException 702 // An error on the server occurred when trying to process a request. 703 // 704 // * IdempotentParameterMismatchException 705 // A second request to use or change an object was not allowed. This can result 706 // from retrying a request using a parameter that was not present in the original 707 // request. 708 // 709 func (c *MachineLearning) CreateMLModel(input *CreateMLModelInput) (*CreateMLModelOutput, error) { 710 req, out := c.CreateMLModelRequest(input) 711 return out, req.Send() 712 } 713 714 // CreateMLModelWithContext is the same as CreateMLModel with the addition of 715 // the ability to pass a context and additional request options. 716 // 717 // See CreateMLModel for details on how to use this API operation. 718 // 719 // The context must be non-nil and will be used for request cancellation. If 720 // the context is nil a panic will occur. In the future the SDK may create 721 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 722 // for more information on using Contexts. 723 func (c *MachineLearning) CreateMLModelWithContext(ctx aws.Context, input *CreateMLModelInput, opts ...request.Option) (*CreateMLModelOutput, error) { 724 req, out := c.CreateMLModelRequest(input) 725 req.SetContext(ctx) 726 req.ApplyOptions(opts...) 727 return out, req.Send() 728 } 729 730 const opCreateRealtimeEndpoint = "CreateRealtimeEndpoint" 731 732 // CreateRealtimeEndpointRequest generates a "aws/request.Request" representing the 733 // client's request for the CreateRealtimeEndpoint operation. The "output" return 734 // value will be populated with the request's response once the request completes 735 // successfully. 736 // 737 // Use "Send" method on the returned Request to send the API call to the service. 738 // the "output" return value is not valid until after Send returns without error. 739 // 740 // See CreateRealtimeEndpoint for more information on using the CreateRealtimeEndpoint 741 // API call, and error handling. 742 // 743 // This method is useful when you want to inject custom logic or configuration 744 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 745 // 746 // 747 // // Example sending a request using the CreateRealtimeEndpointRequest method. 748 // req, resp := client.CreateRealtimeEndpointRequest(params) 749 // 750 // err := req.Send() 751 // if err == nil { // resp is now filled 752 // fmt.Println(resp) 753 // } 754 func (c *MachineLearning) CreateRealtimeEndpointRequest(input *CreateRealtimeEndpointInput) (req *request.Request, output *CreateRealtimeEndpointOutput) { 755 op := &request.Operation{ 756 Name: opCreateRealtimeEndpoint, 757 HTTPMethod: "POST", 758 HTTPPath: "/", 759 } 760 761 if input == nil { 762 input = &CreateRealtimeEndpointInput{} 763 } 764 765 output = &CreateRealtimeEndpointOutput{} 766 req = c.newRequest(op, input, output) 767 return 768 } 769 770 // CreateRealtimeEndpoint API operation for Amazon Machine Learning. 771 // 772 // Creates a real-time endpoint for the MLModel. The endpoint contains the URI 773 // of the MLModel; that is, the location to send real-time prediction requests 774 // for the specified MLModel. 775 // 776 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 777 // with awserr.Error's Code and Message methods to get detailed information about 778 // the error. 779 // 780 // See the AWS API reference guide for Amazon Machine Learning's 781 // API operation CreateRealtimeEndpoint for usage and error information. 782 // 783 // Returned Error Types: 784 // * InvalidInputException 785 // An error on the client occurred. Typically, the cause is an invalid input 786 // value. 787 // 788 // * ResourceNotFoundException 789 // A specified resource cannot be located. 790 // 791 // * InternalServerException 792 // An error on the server occurred when trying to process a request. 793 // 794 func (c *MachineLearning) CreateRealtimeEndpoint(input *CreateRealtimeEndpointInput) (*CreateRealtimeEndpointOutput, error) { 795 req, out := c.CreateRealtimeEndpointRequest(input) 796 return out, req.Send() 797 } 798 799 // CreateRealtimeEndpointWithContext is the same as CreateRealtimeEndpoint with the addition of 800 // the ability to pass a context and additional request options. 801 // 802 // See CreateRealtimeEndpoint for details on how to use this API operation. 803 // 804 // The context must be non-nil and will be used for request cancellation. If 805 // the context is nil a panic will occur. In the future the SDK may create 806 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 807 // for more information on using Contexts. 808 func (c *MachineLearning) CreateRealtimeEndpointWithContext(ctx aws.Context, input *CreateRealtimeEndpointInput, opts ...request.Option) (*CreateRealtimeEndpointOutput, error) { 809 req, out := c.CreateRealtimeEndpointRequest(input) 810 req.SetContext(ctx) 811 req.ApplyOptions(opts...) 812 return out, req.Send() 813 } 814 815 const opDeleteBatchPrediction = "DeleteBatchPrediction" 816 817 // DeleteBatchPredictionRequest generates a "aws/request.Request" representing the 818 // client's request for the DeleteBatchPrediction operation. The "output" return 819 // value will be populated with the request's response once the request completes 820 // successfully. 821 // 822 // Use "Send" method on the returned Request to send the API call to the service. 823 // the "output" return value is not valid until after Send returns without error. 824 // 825 // See DeleteBatchPrediction for more information on using the DeleteBatchPrediction 826 // API call, and error handling. 827 // 828 // This method is useful when you want to inject custom logic or configuration 829 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 830 // 831 // 832 // // Example sending a request using the DeleteBatchPredictionRequest method. 833 // req, resp := client.DeleteBatchPredictionRequest(params) 834 // 835 // err := req.Send() 836 // if err == nil { // resp is now filled 837 // fmt.Println(resp) 838 // } 839 func (c *MachineLearning) DeleteBatchPredictionRequest(input *DeleteBatchPredictionInput) (req *request.Request, output *DeleteBatchPredictionOutput) { 840 op := &request.Operation{ 841 Name: opDeleteBatchPrediction, 842 HTTPMethod: "POST", 843 HTTPPath: "/", 844 } 845 846 if input == nil { 847 input = &DeleteBatchPredictionInput{} 848 } 849 850 output = &DeleteBatchPredictionOutput{} 851 req = c.newRequest(op, input, output) 852 return 853 } 854 855 // DeleteBatchPrediction API operation for Amazon Machine Learning. 856 // 857 // Assigns the DELETED status to a BatchPrediction, rendering it unusable. 858 // 859 // After using the DeleteBatchPrediction operation, you can use the GetBatchPrediction 860 // operation to verify that the status of the BatchPrediction changed to DELETED. 861 // 862 // Caution: The result of the DeleteBatchPrediction operation is irreversible. 863 // 864 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 865 // with awserr.Error's Code and Message methods to get detailed information about 866 // the error. 867 // 868 // See the AWS API reference guide for Amazon Machine Learning's 869 // API operation DeleteBatchPrediction for usage and error information. 870 // 871 // Returned Error Types: 872 // * InvalidInputException 873 // An error on the client occurred. Typically, the cause is an invalid input 874 // value. 875 // 876 // * ResourceNotFoundException 877 // A specified resource cannot be located. 878 // 879 // * InternalServerException 880 // An error on the server occurred when trying to process a request. 881 // 882 func (c *MachineLearning) DeleteBatchPrediction(input *DeleteBatchPredictionInput) (*DeleteBatchPredictionOutput, error) { 883 req, out := c.DeleteBatchPredictionRequest(input) 884 return out, req.Send() 885 } 886 887 // DeleteBatchPredictionWithContext is the same as DeleteBatchPrediction with the addition of 888 // the ability to pass a context and additional request options. 889 // 890 // See DeleteBatchPrediction for details on how to use this API operation. 891 // 892 // The context must be non-nil and will be used for request cancellation. If 893 // the context is nil a panic will occur. In the future the SDK may create 894 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 895 // for more information on using Contexts. 896 func (c *MachineLearning) DeleteBatchPredictionWithContext(ctx aws.Context, input *DeleteBatchPredictionInput, opts ...request.Option) (*DeleteBatchPredictionOutput, error) { 897 req, out := c.DeleteBatchPredictionRequest(input) 898 req.SetContext(ctx) 899 req.ApplyOptions(opts...) 900 return out, req.Send() 901 } 902 903 const opDeleteDataSource = "DeleteDataSource" 904 905 // DeleteDataSourceRequest generates a "aws/request.Request" representing the 906 // client's request for the DeleteDataSource operation. The "output" return 907 // value will be populated with the request's response once the request completes 908 // successfully. 909 // 910 // Use "Send" method on the returned Request to send the API call to the service. 911 // the "output" return value is not valid until after Send returns without error. 912 // 913 // See DeleteDataSource for more information on using the DeleteDataSource 914 // API call, and error handling. 915 // 916 // This method is useful when you want to inject custom logic or configuration 917 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 918 // 919 // 920 // // Example sending a request using the DeleteDataSourceRequest method. 921 // req, resp := client.DeleteDataSourceRequest(params) 922 // 923 // err := req.Send() 924 // if err == nil { // resp is now filled 925 // fmt.Println(resp) 926 // } 927 func (c *MachineLearning) DeleteDataSourceRequest(input *DeleteDataSourceInput) (req *request.Request, output *DeleteDataSourceOutput) { 928 op := &request.Operation{ 929 Name: opDeleteDataSource, 930 HTTPMethod: "POST", 931 HTTPPath: "/", 932 } 933 934 if input == nil { 935 input = &DeleteDataSourceInput{} 936 } 937 938 output = &DeleteDataSourceOutput{} 939 req = c.newRequest(op, input, output) 940 return 941 } 942 943 // DeleteDataSource API operation for Amazon Machine Learning. 944 // 945 // Assigns the DELETED status to a DataSource, rendering it unusable. 946 // 947 // After using the DeleteDataSource operation, you can use the GetDataSource 948 // operation to verify that the status of the DataSource changed to DELETED. 949 // 950 // Caution: The results of the DeleteDataSource operation are irreversible. 951 // 952 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 953 // with awserr.Error's Code and Message methods to get detailed information about 954 // the error. 955 // 956 // See the AWS API reference guide for Amazon Machine Learning's 957 // API operation DeleteDataSource for usage and error information. 958 // 959 // Returned Error Types: 960 // * InvalidInputException 961 // An error on the client occurred. Typically, the cause is an invalid input 962 // value. 963 // 964 // * ResourceNotFoundException 965 // A specified resource cannot be located. 966 // 967 // * InternalServerException 968 // An error on the server occurred when trying to process a request. 969 // 970 func (c *MachineLearning) DeleteDataSource(input *DeleteDataSourceInput) (*DeleteDataSourceOutput, error) { 971 req, out := c.DeleteDataSourceRequest(input) 972 return out, req.Send() 973 } 974 975 // DeleteDataSourceWithContext is the same as DeleteDataSource with the addition of 976 // the ability to pass a context and additional request options. 977 // 978 // See DeleteDataSource for details on how to use this API operation. 979 // 980 // The context must be non-nil and will be used for request cancellation. If 981 // the context is nil a panic will occur. In the future the SDK may create 982 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 983 // for more information on using Contexts. 984 func (c *MachineLearning) DeleteDataSourceWithContext(ctx aws.Context, input *DeleteDataSourceInput, opts ...request.Option) (*DeleteDataSourceOutput, error) { 985 req, out := c.DeleteDataSourceRequest(input) 986 req.SetContext(ctx) 987 req.ApplyOptions(opts...) 988 return out, req.Send() 989 } 990 991 const opDeleteEvaluation = "DeleteEvaluation" 992 993 // DeleteEvaluationRequest generates a "aws/request.Request" representing the 994 // client's request for the DeleteEvaluation operation. The "output" return 995 // value will be populated with the request's response once the request completes 996 // successfully. 997 // 998 // Use "Send" method on the returned Request to send the API call to the service. 999 // the "output" return value is not valid until after Send returns without error. 1000 // 1001 // See DeleteEvaluation for more information on using the DeleteEvaluation 1002 // API call, and error handling. 1003 // 1004 // This method is useful when you want to inject custom logic or configuration 1005 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1006 // 1007 // 1008 // // Example sending a request using the DeleteEvaluationRequest method. 1009 // req, resp := client.DeleteEvaluationRequest(params) 1010 // 1011 // err := req.Send() 1012 // if err == nil { // resp is now filled 1013 // fmt.Println(resp) 1014 // } 1015 func (c *MachineLearning) DeleteEvaluationRequest(input *DeleteEvaluationInput) (req *request.Request, output *DeleteEvaluationOutput) { 1016 op := &request.Operation{ 1017 Name: opDeleteEvaluation, 1018 HTTPMethod: "POST", 1019 HTTPPath: "/", 1020 } 1021 1022 if input == nil { 1023 input = &DeleteEvaluationInput{} 1024 } 1025 1026 output = &DeleteEvaluationOutput{} 1027 req = c.newRequest(op, input, output) 1028 return 1029 } 1030 1031 // DeleteEvaluation API operation for Amazon Machine Learning. 1032 // 1033 // Assigns the DELETED status to an Evaluation, rendering it unusable. 1034 // 1035 // After invoking the DeleteEvaluation operation, you can use the GetEvaluation 1036 // operation to verify that the status of the Evaluation changed to DELETED. 1037 // 1038 // Caution: The results of the DeleteEvaluation operation are irreversible. 1039 // 1040 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1041 // with awserr.Error's Code and Message methods to get detailed information about 1042 // the error. 1043 // 1044 // See the AWS API reference guide for Amazon Machine Learning's 1045 // API operation DeleteEvaluation for usage and error information. 1046 // 1047 // Returned Error Types: 1048 // * InvalidInputException 1049 // An error on the client occurred. Typically, the cause is an invalid input 1050 // value. 1051 // 1052 // * ResourceNotFoundException 1053 // A specified resource cannot be located. 1054 // 1055 // * InternalServerException 1056 // An error on the server occurred when trying to process a request. 1057 // 1058 func (c *MachineLearning) DeleteEvaluation(input *DeleteEvaluationInput) (*DeleteEvaluationOutput, error) { 1059 req, out := c.DeleteEvaluationRequest(input) 1060 return out, req.Send() 1061 } 1062 1063 // DeleteEvaluationWithContext is the same as DeleteEvaluation with the addition of 1064 // the ability to pass a context and additional request options. 1065 // 1066 // See DeleteEvaluation for details on how to use this API operation. 1067 // 1068 // The context must be non-nil and will be used for request cancellation. If 1069 // the context is nil a panic will occur. In the future the SDK may create 1070 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1071 // for more information on using Contexts. 1072 func (c *MachineLearning) DeleteEvaluationWithContext(ctx aws.Context, input *DeleteEvaluationInput, opts ...request.Option) (*DeleteEvaluationOutput, error) { 1073 req, out := c.DeleteEvaluationRequest(input) 1074 req.SetContext(ctx) 1075 req.ApplyOptions(opts...) 1076 return out, req.Send() 1077 } 1078 1079 const opDeleteMLModel = "DeleteMLModel" 1080 1081 // DeleteMLModelRequest generates a "aws/request.Request" representing the 1082 // client's request for the DeleteMLModel operation. The "output" return 1083 // value will be populated with the request's response once the request completes 1084 // successfully. 1085 // 1086 // Use "Send" method on the returned Request to send the API call to the service. 1087 // the "output" return value is not valid until after Send returns without error. 1088 // 1089 // See DeleteMLModel for more information on using the DeleteMLModel 1090 // API call, and error handling. 1091 // 1092 // This method is useful when you want to inject custom logic or configuration 1093 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1094 // 1095 // 1096 // // Example sending a request using the DeleteMLModelRequest method. 1097 // req, resp := client.DeleteMLModelRequest(params) 1098 // 1099 // err := req.Send() 1100 // if err == nil { // resp is now filled 1101 // fmt.Println(resp) 1102 // } 1103 func (c *MachineLearning) DeleteMLModelRequest(input *DeleteMLModelInput) (req *request.Request, output *DeleteMLModelOutput) { 1104 op := &request.Operation{ 1105 Name: opDeleteMLModel, 1106 HTTPMethod: "POST", 1107 HTTPPath: "/", 1108 } 1109 1110 if input == nil { 1111 input = &DeleteMLModelInput{} 1112 } 1113 1114 output = &DeleteMLModelOutput{} 1115 req = c.newRequest(op, input, output) 1116 return 1117 } 1118 1119 // DeleteMLModel API operation for Amazon Machine Learning. 1120 // 1121 // Assigns the DELETED status to an MLModel, rendering it unusable. 1122 // 1123 // After using the DeleteMLModel operation, you can use the GetMLModel operation 1124 // to verify that the status of the MLModel changed to DELETED. 1125 // 1126 // Caution: The result of the DeleteMLModel operation is irreversible. 1127 // 1128 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1129 // with awserr.Error's Code and Message methods to get detailed information about 1130 // the error. 1131 // 1132 // See the AWS API reference guide for Amazon Machine Learning's 1133 // API operation DeleteMLModel for usage and error information. 1134 // 1135 // Returned Error Types: 1136 // * InvalidInputException 1137 // An error on the client occurred. Typically, the cause is an invalid input 1138 // value. 1139 // 1140 // * ResourceNotFoundException 1141 // A specified resource cannot be located. 1142 // 1143 // * InternalServerException 1144 // An error on the server occurred when trying to process a request. 1145 // 1146 func (c *MachineLearning) DeleteMLModel(input *DeleteMLModelInput) (*DeleteMLModelOutput, error) { 1147 req, out := c.DeleteMLModelRequest(input) 1148 return out, req.Send() 1149 } 1150 1151 // DeleteMLModelWithContext is the same as DeleteMLModel with the addition of 1152 // the ability to pass a context and additional request options. 1153 // 1154 // See DeleteMLModel for details on how to use this API operation. 1155 // 1156 // The context must be non-nil and will be used for request cancellation. If 1157 // the context is nil a panic will occur. In the future the SDK may create 1158 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1159 // for more information on using Contexts. 1160 func (c *MachineLearning) DeleteMLModelWithContext(ctx aws.Context, input *DeleteMLModelInput, opts ...request.Option) (*DeleteMLModelOutput, error) { 1161 req, out := c.DeleteMLModelRequest(input) 1162 req.SetContext(ctx) 1163 req.ApplyOptions(opts...) 1164 return out, req.Send() 1165 } 1166 1167 const opDeleteRealtimeEndpoint = "DeleteRealtimeEndpoint" 1168 1169 // DeleteRealtimeEndpointRequest generates a "aws/request.Request" representing the 1170 // client's request for the DeleteRealtimeEndpoint operation. The "output" return 1171 // value will be populated with the request's response once the request completes 1172 // successfully. 1173 // 1174 // Use "Send" method on the returned Request to send the API call to the service. 1175 // the "output" return value is not valid until after Send returns without error. 1176 // 1177 // See DeleteRealtimeEndpoint for more information on using the DeleteRealtimeEndpoint 1178 // API call, and error handling. 1179 // 1180 // This method is useful when you want to inject custom logic or configuration 1181 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1182 // 1183 // 1184 // // Example sending a request using the DeleteRealtimeEndpointRequest method. 1185 // req, resp := client.DeleteRealtimeEndpointRequest(params) 1186 // 1187 // err := req.Send() 1188 // if err == nil { // resp is now filled 1189 // fmt.Println(resp) 1190 // } 1191 func (c *MachineLearning) DeleteRealtimeEndpointRequest(input *DeleteRealtimeEndpointInput) (req *request.Request, output *DeleteRealtimeEndpointOutput) { 1192 op := &request.Operation{ 1193 Name: opDeleteRealtimeEndpoint, 1194 HTTPMethod: "POST", 1195 HTTPPath: "/", 1196 } 1197 1198 if input == nil { 1199 input = &DeleteRealtimeEndpointInput{} 1200 } 1201 1202 output = &DeleteRealtimeEndpointOutput{} 1203 req = c.newRequest(op, input, output) 1204 return 1205 } 1206 1207 // DeleteRealtimeEndpoint API operation for Amazon Machine Learning. 1208 // 1209 // Deletes a real time endpoint of an MLModel. 1210 // 1211 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1212 // with awserr.Error's Code and Message methods to get detailed information about 1213 // the error. 1214 // 1215 // See the AWS API reference guide for Amazon Machine Learning's 1216 // API operation DeleteRealtimeEndpoint for usage and error information. 1217 // 1218 // Returned Error Types: 1219 // * InvalidInputException 1220 // An error on the client occurred. Typically, the cause is an invalid input 1221 // value. 1222 // 1223 // * ResourceNotFoundException 1224 // A specified resource cannot be located. 1225 // 1226 // * InternalServerException 1227 // An error on the server occurred when trying to process a request. 1228 // 1229 func (c *MachineLearning) DeleteRealtimeEndpoint(input *DeleteRealtimeEndpointInput) (*DeleteRealtimeEndpointOutput, error) { 1230 req, out := c.DeleteRealtimeEndpointRequest(input) 1231 return out, req.Send() 1232 } 1233 1234 // DeleteRealtimeEndpointWithContext is the same as DeleteRealtimeEndpoint with the addition of 1235 // the ability to pass a context and additional request options. 1236 // 1237 // See DeleteRealtimeEndpoint for details on how to use this API operation. 1238 // 1239 // The context must be non-nil and will be used for request cancellation. If 1240 // the context is nil a panic will occur. In the future the SDK may create 1241 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1242 // for more information on using Contexts. 1243 func (c *MachineLearning) DeleteRealtimeEndpointWithContext(ctx aws.Context, input *DeleteRealtimeEndpointInput, opts ...request.Option) (*DeleteRealtimeEndpointOutput, error) { 1244 req, out := c.DeleteRealtimeEndpointRequest(input) 1245 req.SetContext(ctx) 1246 req.ApplyOptions(opts...) 1247 return out, req.Send() 1248 } 1249 1250 const opDeleteTags = "DeleteTags" 1251 1252 // DeleteTagsRequest generates a "aws/request.Request" representing the 1253 // client's request for the DeleteTags operation. The "output" return 1254 // value will be populated with the request's response once the request completes 1255 // successfully. 1256 // 1257 // Use "Send" method on the returned Request to send the API call to the service. 1258 // the "output" return value is not valid until after Send returns without error. 1259 // 1260 // See DeleteTags for more information on using the DeleteTags 1261 // API call, and error handling. 1262 // 1263 // This method is useful when you want to inject custom logic or configuration 1264 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1265 // 1266 // 1267 // // Example sending a request using the DeleteTagsRequest method. 1268 // req, resp := client.DeleteTagsRequest(params) 1269 // 1270 // err := req.Send() 1271 // if err == nil { // resp is now filled 1272 // fmt.Println(resp) 1273 // } 1274 func (c *MachineLearning) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { 1275 op := &request.Operation{ 1276 Name: opDeleteTags, 1277 HTTPMethod: "POST", 1278 HTTPPath: "/", 1279 } 1280 1281 if input == nil { 1282 input = &DeleteTagsInput{} 1283 } 1284 1285 output = &DeleteTagsOutput{} 1286 req = c.newRequest(op, input, output) 1287 return 1288 } 1289 1290 // DeleteTags API operation for Amazon Machine Learning. 1291 // 1292 // Deletes the specified tags associated with an ML object. After this operation 1293 // is complete, you can't recover deleted tags. 1294 // 1295 // If you specify a tag that doesn't exist, Amazon ML ignores it. 1296 // 1297 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1298 // with awserr.Error's Code and Message methods to get detailed information about 1299 // the error. 1300 // 1301 // See the AWS API reference guide for Amazon Machine Learning's 1302 // API operation DeleteTags for usage and error information. 1303 // 1304 // Returned Error Types: 1305 // * InvalidInputException 1306 // An error on the client occurred. Typically, the cause is an invalid input 1307 // value. 1308 // 1309 // * InvalidTagException 1310 // 1311 // * ResourceNotFoundException 1312 // A specified resource cannot be located. 1313 // 1314 // * InternalServerException 1315 // An error on the server occurred when trying to process a request. 1316 // 1317 func (c *MachineLearning) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { 1318 req, out := c.DeleteTagsRequest(input) 1319 return out, req.Send() 1320 } 1321 1322 // DeleteTagsWithContext is the same as DeleteTags with the addition of 1323 // the ability to pass a context and additional request options. 1324 // 1325 // See DeleteTags for details on how to use this API operation. 1326 // 1327 // The context must be non-nil and will be used for request cancellation. If 1328 // the context is nil a panic will occur. In the future the SDK may create 1329 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1330 // for more information on using Contexts. 1331 func (c *MachineLearning) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) { 1332 req, out := c.DeleteTagsRequest(input) 1333 req.SetContext(ctx) 1334 req.ApplyOptions(opts...) 1335 return out, req.Send() 1336 } 1337 1338 const opDescribeBatchPredictions = "DescribeBatchPredictions" 1339 1340 // DescribeBatchPredictionsRequest generates a "aws/request.Request" representing the 1341 // client's request for the DescribeBatchPredictions operation. The "output" return 1342 // value will be populated with the request's response once the request completes 1343 // successfully. 1344 // 1345 // Use "Send" method on the returned Request to send the API call to the service. 1346 // the "output" return value is not valid until after Send returns without error. 1347 // 1348 // See DescribeBatchPredictions for more information on using the DescribeBatchPredictions 1349 // API call, and error handling. 1350 // 1351 // This method is useful when you want to inject custom logic or configuration 1352 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1353 // 1354 // 1355 // // Example sending a request using the DescribeBatchPredictionsRequest method. 1356 // req, resp := client.DescribeBatchPredictionsRequest(params) 1357 // 1358 // err := req.Send() 1359 // if err == nil { // resp is now filled 1360 // fmt.Println(resp) 1361 // } 1362 func (c *MachineLearning) DescribeBatchPredictionsRequest(input *DescribeBatchPredictionsInput) (req *request.Request, output *DescribeBatchPredictionsOutput) { 1363 op := &request.Operation{ 1364 Name: opDescribeBatchPredictions, 1365 HTTPMethod: "POST", 1366 HTTPPath: "/", 1367 Paginator: &request.Paginator{ 1368 InputTokens: []string{"NextToken"}, 1369 OutputTokens: []string{"NextToken"}, 1370 LimitToken: "Limit", 1371 TruncationToken: "", 1372 }, 1373 } 1374 1375 if input == nil { 1376 input = &DescribeBatchPredictionsInput{} 1377 } 1378 1379 output = &DescribeBatchPredictionsOutput{} 1380 req = c.newRequest(op, input, output) 1381 return 1382 } 1383 1384 // DescribeBatchPredictions API operation for Amazon Machine Learning. 1385 // 1386 // Returns a list of BatchPrediction operations that match the search criteria 1387 // in the request. 1388 // 1389 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1390 // with awserr.Error's Code and Message methods to get detailed information about 1391 // the error. 1392 // 1393 // See the AWS API reference guide for Amazon Machine Learning's 1394 // API operation DescribeBatchPredictions for usage and error information. 1395 // 1396 // Returned Error Types: 1397 // * InvalidInputException 1398 // An error on the client occurred. Typically, the cause is an invalid input 1399 // value. 1400 // 1401 // * InternalServerException 1402 // An error on the server occurred when trying to process a request. 1403 // 1404 func (c *MachineLearning) DescribeBatchPredictions(input *DescribeBatchPredictionsInput) (*DescribeBatchPredictionsOutput, error) { 1405 req, out := c.DescribeBatchPredictionsRequest(input) 1406 return out, req.Send() 1407 } 1408 1409 // DescribeBatchPredictionsWithContext is the same as DescribeBatchPredictions with the addition of 1410 // the ability to pass a context and additional request options. 1411 // 1412 // See DescribeBatchPredictions for details on how to use this API operation. 1413 // 1414 // The context must be non-nil and will be used for request cancellation. If 1415 // the context is nil a panic will occur. In the future the SDK may create 1416 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1417 // for more information on using Contexts. 1418 func (c *MachineLearning) DescribeBatchPredictionsWithContext(ctx aws.Context, input *DescribeBatchPredictionsInput, opts ...request.Option) (*DescribeBatchPredictionsOutput, error) { 1419 req, out := c.DescribeBatchPredictionsRequest(input) 1420 req.SetContext(ctx) 1421 req.ApplyOptions(opts...) 1422 return out, req.Send() 1423 } 1424 1425 // DescribeBatchPredictionsPages iterates over the pages of a DescribeBatchPredictions operation, 1426 // calling the "fn" function with the response data for each page. To stop 1427 // iterating, return false from the fn function. 1428 // 1429 // See DescribeBatchPredictions method for more information on how to use this operation. 1430 // 1431 // Note: This operation can generate multiple requests to a service. 1432 // 1433 // // Example iterating over at most 3 pages of a DescribeBatchPredictions operation. 1434 // pageNum := 0 1435 // err := client.DescribeBatchPredictionsPages(params, 1436 // func(page *machinelearning.DescribeBatchPredictionsOutput, lastPage bool) bool { 1437 // pageNum++ 1438 // fmt.Println(page) 1439 // return pageNum <= 3 1440 // }) 1441 // 1442 func (c *MachineLearning) DescribeBatchPredictionsPages(input *DescribeBatchPredictionsInput, fn func(*DescribeBatchPredictionsOutput, bool) bool) error { 1443 return c.DescribeBatchPredictionsPagesWithContext(aws.BackgroundContext(), input, fn) 1444 } 1445 1446 // DescribeBatchPredictionsPagesWithContext same as DescribeBatchPredictionsPages except 1447 // it takes a Context and allows setting request options on the pages. 1448 // 1449 // The context must be non-nil and will be used for request cancellation. If 1450 // the context is nil a panic will occur. In the future the SDK may create 1451 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1452 // for more information on using Contexts. 1453 func (c *MachineLearning) DescribeBatchPredictionsPagesWithContext(ctx aws.Context, input *DescribeBatchPredictionsInput, fn func(*DescribeBatchPredictionsOutput, bool) bool, opts ...request.Option) error { 1454 p := request.Pagination{ 1455 NewRequest: func() (*request.Request, error) { 1456 var inCpy *DescribeBatchPredictionsInput 1457 if input != nil { 1458 tmp := *input 1459 inCpy = &tmp 1460 } 1461 req, _ := c.DescribeBatchPredictionsRequest(inCpy) 1462 req.SetContext(ctx) 1463 req.ApplyOptions(opts...) 1464 return req, nil 1465 }, 1466 } 1467 1468 for p.Next() { 1469 if !fn(p.Page().(*DescribeBatchPredictionsOutput), !p.HasNextPage()) { 1470 break 1471 } 1472 } 1473 1474 return p.Err() 1475 } 1476 1477 const opDescribeDataSources = "DescribeDataSources" 1478 1479 // DescribeDataSourcesRequest generates a "aws/request.Request" representing the 1480 // client's request for the DescribeDataSources operation. The "output" return 1481 // value will be populated with the request's response once the request completes 1482 // successfully. 1483 // 1484 // Use "Send" method on the returned Request to send the API call to the service. 1485 // the "output" return value is not valid until after Send returns without error. 1486 // 1487 // See DescribeDataSources for more information on using the DescribeDataSources 1488 // API call, and error handling. 1489 // 1490 // This method is useful when you want to inject custom logic or configuration 1491 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1492 // 1493 // 1494 // // Example sending a request using the DescribeDataSourcesRequest method. 1495 // req, resp := client.DescribeDataSourcesRequest(params) 1496 // 1497 // err := req.Send() 1498 // if err == nil { // resp is now filled 1499 // fmt.Println(resp) 1500 // } 1501 func (c *MachineLearning) DescribeDataSourcesRequest(input *DescribeDataSourcesInput) (req *request.Request, output *DescribeDataSourcesOutput) { 1502 op := &request.Operation{ 1503 Name: opDescribeDataSources, 1504 HTTPMethod: "POST", 1505 HTTPPath: "/", 1506 Paginator: &request.Paginator{ 1507 InputTokens: []string{"NextToken"}, 1508 OutputTokens: []string{"NextToken"}, 1509 LimitToken: "Limit", 1510 TruncationToken: "", 1511 }, 1512 } 1513 1514 if input == nil { 1515 input = &DescribeDataSourcesInput{} 1516 } 1517 1518 output = &DescribeDataSourcesOutput{} 1519 req = c.newRequest(op, input, output) 1520 return 1521 } 1522 1523 // DescribeDataSources API operation for Amazon Machine Learning. 1524 // 1525 // Returns a list of DataSource that match the search criteria in the request. 1526 // 1527 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1528 // with awserr.Error's Code and Message methods to get detailed information about 1529 // the error. 1530 // 1531 // See the AWS API reference guide for Amazon Machine Learning's 1532 // API operation DescribeDataSources for usage and error information. 1533 // 1534 // Returned Error Types: 1535 // * InvalidInputException 1536 // An error on the client occurred. Typically, the cause is an invalid input 1537 // value. 1538 // 1539 // * InternalServerException 1540 // An error on the server occurred when trying to process a request. 1541 // 1542 func (c *MachineLearning) DescribeDataSources(input *DescribeDataSourcesInput) (*DescribeDataSourcesOutput, error) { 1543 req, out := c.DescribeDataSourcesRequest(input) 1544 return out, req.Send() 1545 } 1546 1547 // DescribeDataSourcesWithContext is the same as DescribeDataSources with the addition of 1548 // the ability to pass a context and additional request options. 1549 // 1550 // See DescribeDataSources for details on how to use this API operation. 1551 // 1552 // The context must be non-nil and will be used for request cancellation. If 1553 // the context is nil a panic will occur. In the future the SDK may create 1554 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1555 // for more information on using Contexts. 1556 func (c *MachineLearning) DescribeDataSourcesWithContext(ctx aws.Context, input *DescribeDataSourcesInput, opts ...request.Option) (*DescribeDataSourcesOutput, error) { 1557 req, out := c.DescribeDataSourcesRequest(input) 1558 req.SetContext(ctx) 1559 req.ApplyOptions(opts...) 1560 return out, req.Send() 1561 } 1562 1563 // DescribeDataSourcesPages iterates over the pages of a DescribeDataSources operation, 1564 // calling the "fn" function with the response data for each page. To stop 1565 // iterating, return false from the fn function. 1566 // 1567 // See DescribeDataSources method for more information on how to use this operation. 1568 // 1569 // Note: This operation can generate multiple requests to a service. 1570 // 1571 // // Example iterating over at most 3 pages of a DescribeDataSources operation. 1572 // pageNum := 0 1573 // err := client.DescribeDataSourcesPages(params, 1574 // func(page *machinelearning.DescribeDataSourcesOutput, lastPage bool) bool { 1575 // pageNum++ 1576 // fmt.Println(page) 1577 // return pageNum <= 3 1578 // }) 1579 // 1580 func (c *MachineLearning) DescribeDataSourcesPages(input *DescribeDataSourcesInput, fn func(*DescribeDataSourcesOutput, bool) bool) error { 1581 return c.DescribeDataSourcesPagesWithContext(aws.BackgroundContext(), input, fn) 1582 } 1583 1584 // DescribeDataSourcesPagesWithContext same as DescribeDataSourcesPages except 1585 // it takes a Context and allows setting request options on the pages. 1586 // 1587 // The context must be non-nil and will be used for request cancellation. If 1588 // the context is nil a panic will occur. In the future the SDK may create 1589 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1590 // for more information on using Contexts. 1591 func (c *MachineLearning) DescribeDataSourcesPagesWithContext(ctx aws.Context, input *DescribeDataSourcesInput, fn func(*DescribeDataSourcesOutput, bool) bool, opts ...request.Option) error { 1592 p := request.Pagination{ 1593 NewRequest: func() (*request.Request, error) { 1594 var inCpy *DescribeDataSourcesInput 1595 if input != nil { 1596 tmp := *input 1597 inCpy = &tmp 1598 } 1599 req, _ := c.DescribeDataSourcesRequest(inCpy) 1600 req.SetContext(ctx) 1601 req.ApplyOptions(opts...) 1602 return req, nil 1603 }, 1604 } 1605 1606 for p.Next() { 1607 if !fn(p.Page().(*DescribeDataSourcesOutput), !p.HasNextPage()) { 1608 break 1609 } 1610 } 1611 1612 return p.Err() 1613 } 1614 1615 const opDescribeEvaluations = "DescribeEvaluations" 1616 1617 // DescribeEvaluationsRequest generates a "aws/request.Request" representing the 1618 // client's request for the DescribeEvaluations operation. The "output" return 1619 // value will be populated with the request's response once the request completes 1620 // successfully. 1621 // 1622 // Use "Send" method on the returned Request to send the API call to the service. 1623 // the "output" return value is not valid until after Send returns without error. 1624 // 1625 // See DescribeEvaluations for more information on using the DescribeEvaluations 1626 // API call, and error handling. 1627 // 1628 // This method is useful when you want to inject custom logic or configuration 1629 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1630 // 1631 // 1632 // // Example sending a request using the DescribeEvaluationsRequest method. 1633 // req, resp := client.DescribeEvaluationsRequest(params) 1634 // 1635 // err := req.Send() 1636 // if err == nil { // resp is now filled 1637 // fmt.Println(resp) 1638 // } 1639 func (c *MachineLearning) DescribeEvaluationsRequest(input *DescribeEvaluationsInput) (req *request.Request, output *DescribeEvaluationsOutput) { 1640 op := &request.Operation{ 1641 Name: opDescribeEvaluations, 1642 HTTPMethod: "POST", 1643 HTTPPath: "/", 1644 Paginator: &request.Paginator{ 1645 InputTokens: []string{"NextToken"}, 1646 OutputTokens: []string{"NextToken"}, 1647 LimitToken: "Limit", 1648 TruncationToken: "", 1649 }, 1650 } 1651 1652 if input == nil { 1653 input = &DescribeEvaluationsInput{} 1654 } 1655 1656 output = &DescribeEvaluationsOutput{} 1657 req = c.newRequest(op, input, output) 1658 return 1659 } 1660 1661 // DescribeEvaluations API operation for Amazon Machine Learning. 1662 // 1663 // Returns a list of DescribeEvaluations that match the search criteria in the 1664 // request. 1665 // 1666 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1667 // with awserr.Error's Code and Message methods to get detailed information about 1668 // the error. 1669 // 1670 // See the AWS API reference guide for Amazon Machine Learning's 1671 // API operation DescribeEvaluations for usage and error information. 1672 // 1673 // Returned Error Types: 1674 // * InvalidInputException 1675 // An error on the client occurred. Typically, the cause is an invalid input 1676 // value. 1677 // 1678 // * InternalServerException 1679 // An error on the server occurred when trying to process a request. 1680 // 1681 func (c *MachineLearning) DescribeEvaluations(input *DescribeEvaluationsInput) (*DescribeEvaluationsOutput, error) { 1682 req, out := c.DescribeEvaluationsRequest(input) 1683 return out, req.Send() 1684 } 1685 1686 // DescribeEvaluationsWithContext is the same as DescribeEvaluations with the addition of 1687 // the ability to pass a context and additional request options. 1688 // 1689 // See DescribeEvaluations 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 *MachineLearning) DescribeEvaluationsWithContext(ctx aws.Context, input *DescribeEvaluationsInput, opts ...request.Option) (*DescribeEvaluationsOutput, error) { 1696 req, out := c.DescribeEvaluationsRequest(input) 1697 req.SetContext(ctx) 1698 req.ApplyOptions(opts...) 1699 return out, req.Send() 1700 } 1701 1702 // DescribeEvaluationsPages iterates over the pages of a DescribeEvaluations operation, 1703 // calling the "fn" function with the response data for each page. To stop 1704 // iterating, return false from the fn function. 1705 // 1706 // See DescribeEvaluations method for more information on how to use this operation. 1707 // 1708 // Note: This operation can generate multiple requests to a service. 1709 // 1710 // // Example iterating over at most 3 pages of a DescribeEvaluations operation. 1711 // pageNum := 0 1712 // err := client.DescribeEvaluationsPages(params, 1713 // func(page *machinelearning.DescribeEvaluationsOutput, lastPage bool) bool { 1714 // pageNum++ 1715 // fmt.Println(page) 1716 // return pageNum <= 3 1717 // }) 1718 // 1719 func (c *MachineLearning) DescribeEvaluationsPages(input *DescribeEvaluationsInput, fn func(*DescribeEvaluationsOutput, bool) bool) error { 1720 return c.DescribeEvaluationsPagesWithContext(aws.BackgroundContext(), input, fn) 1721 } 1722 1723 // DescribeEvaluationsPagesWithContext same as DescribeEvaluationsPages except 1724 // it takes a Context and allows setting request options on the pages. 1725 // 1726 // The context must be non-nil and will be used for request cancellation. If 1727 // the context is nil a panic will occur. In the future the SDK may create 1728 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1729 // for more information on using Contexts. 1730 func (c *MachineLearning) DescribeEvaluationsPagesWithContext(ctx aws.Context, input *DescribeEvaluationsInput, fn func(*DescribeEvaluationsOutput, bool) bool, opts ...request.Option) error { 1731 p := request.Pagination{ 1732 NewRequest: func() (*request.Request, error) { 1733 var inCpy *DescribeEvaluationsInput 1734 if input != nil { 1735 tmp := *input 1736 inCpy = &tmp 1737 } 1738 req, _ := c.DescribeEvaluationsRequest(inCpy) 1739 req.SetContext(ctx) 1740 req.ApplyOptions(opts...) 1741 return req, nil 1742 }, 1743 } 1744 1745 for p.Next() { 1746 if !fn(p.Page().(*DescribeEvaluationsOutput), !p.HasNextPage()) { 1747 break 1748 } 1749 } 1750 1751 return p.Err() 1752 } 1753 1754 const opDescribeMLModels = "DescribeMLModels" 1755 1756 // DescribeMLModelsRequest generates a "aws/request.Request" representing the 1757 // client's request for the DescribeMLModels operation. The "output" return 1758 // value will be populated with the request's response once the request completes 1759 // successfully. 1760 // 1761 // Use "Send" method on the returned Request to send the API call to the service. 1762 // the "output" return value is not valid until after Send returns without error. 1763 // 1764 // See DescribeMLModels for more information on using the DescribeMLModels 1765 // API call, and error handling. 1766 // 1767 // This method is useful when you want to inject custom logic or configuration 1768 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1769 // 1770 // 1771 // // Example sending a request using the DescribeMLModelsRequest method. 1772 // req, resp := client.DescribeMLModelsRequest(params) 1773 // 1774 // err := req.Send() 1775 // if err == nil { // resp is now filled 1776 // fmt.Println(resp) 1777 // } 1778 func (c *MachineLearning) DescribeMLModelsRequest(input *DescribeMLModelsInput) (req *request.Request, output *DescribeMLModelsOutput) { 1779 op := &request.Operation{ 1780 Name: opDescribeMLModels, 1781 HTTPMethod: "POST", 1782 HTTPPath: "/", 1783 Paginator: &request.Paginator{ 1784 InputTokens: []string{"NextToken"}, 1785 OutputTokens: []string{"NextToken"}, 1786 LimitToken: "Limit", 1787 TruncationToken: "", 1788 }, 1789 } 1790 1791 if input == nil { 1792 input = &DescribeMLModelsInput{} 1793 } 1794 1795 output = &DescribeMLModelsOutput{} 1796 req = c.newRequest(op, input, output) 1797 return 1798 } 1799 1800 // DescribeMLModels API operation for Amazon Machine Learning. 1801 // 1802 // Returns a list of MLModel that match the search criteria in the request. 1803 // 1804 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1805 // with awserr.Error's Code and Message methods to get detailed information about 1806 // the error. 1807 // 1808 // See the AWS API reference guide for Amazon Machine Learning's 1809 // API operation DescribeMLModels for usage and error information. 1810 // 1811 // Returned Error Types: 1812 // * InvalidInputException 1813 // An error on the client occurred. Typically, the cause is an invalid input 1814 // value. 1815 // 1816 // * InternalServerException 1817 // An error on the server occurred when trying to process a request. 1818 // 1819 func (c *MachineLearning) DescribeMLModels(input *DescribeMLModelsInput) (*DescribeMLModelsOutput, error) { 1820 req, out := c.DescribeMLModelsRequest(input) 1821 return out, req.Send() 1822 } 1823 1824 // DescribeMLModelsWithContext is the same as DescribeMLModels with the addition of 1825 // the ability to pass a context and additional request options. 1826 // 1827 // See DescribeMLModels for details on how to use this API operation. 1828 // 1829 // The context must be non-nil and will be used for request cancellation. If 1830 // the context is nil a panic will occur. In the future the SDK may create 1831 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1832 // for more information on using Contexts. 1833 func (c *MachineLearning) DescribeMLModelsWithContext(ctx aws.Context, input *DescribeMLModelsInput, opts ...request.Option) (*DescribeMLModelsOutput, error) { 1834 req, out := c.DescribeMLModelsRequest(input) 1835 req.SetContext(ctx) 1836 req.ApplyOptions(opts...) 1837 return out, req.Send() 1838 } 1839 1840 // DescribeMLModelsPages iterates over the pages of a DescribeMLModels operation, 1841 // calling the "fn" function with the response data for each page. To stop 1842 // iterating, return false from the fn function. 1843 // 1844 // See DescribeMLModels method for more information on how to use this operation. 1845 // 1846 // Note: This operation can generate multiple requests to a service. 1847 // 1848 // // Example iterating over at most 3 pages of a DescribeMLModels operation. 1849 // pageNum := 0 1850 // err := client.DescribeMLModelsPages(params, 1851 // func(page *machinelearning.DescribeMLModelsOutput, lastPage bool) bool { 1852 // pageNum++ 1853 // fmt.Println(page) 1854 // return pageNum <= 3 1855 // }) 1856 // 1857 func (c *MachineLearning) DescribeMLModelsPages(input *DescribeMLModelsInput, fn func(*DescribeMLModelsOutput, bool) bool) error { 1858 return c.DescribeMLModelsPagesWithContext(aws.BackgroundContext(), input, fn) 1859 } 1860 1861 // DescribeMLModelsPagesWithContext same as DescribeMLModelsPages except 1862 // it takes a Context and allows setting request options on the pages. 1863 // 1864 // The context must be non-nil and will be used for request cancellation. If 1865 // the context is nil a panic will occur. In the future the SDK may create 1866 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1867 // for more information on using Contexts. 1868 func (c *MachineLearning) DescribeMLModelsPagesWithContext(ctx aws.Context, input *DescribeMLModelsInput, fn func(*DescribeMLModelsOutput, bool) bool, opts ...request.Option) error { 1869 p := request.Pagination{ 1870 NewRequest: func() (*request.Request, error) { 1871 var inCpy *DescribeMLModelsInput 1872 if input != nil { 1873 tmp := *input 1874 inCpy = &tmp 1875 } 1876 req, _ := c.DescribeMLModelsRequest(inCpy) 1877 req.SetContext(ctx) 1878 req.ApplyOptions(opts...) 1879 return req, nil 1880 }, 1881 } 1882 1883 for p.Next() { 1884 if !fn(p.Page().(*DescribeMLModelsOutput), !p.HasNextPage()) { 1885 break 1886 } 1887 } 1888 1889 return p.Err() 1890 } 1891 1892 const opDescribeTags = "DescribeTags" 1893 1894 // DescribeTagsRequest generates a "aws/request.Request" representing the 1895 // client's request for the DescribeTags operation. The "output" return 1896 // value will be populated with the request's response once the request completes 1897 // successfully. 1898 // 1899 // Use "Send" method on the returned Request to send the API call to the service. 1900 // the "output" return value is not valid until after Send returns without error. 1901 // 1902 // See DescribeTags for more information on using the DescribeTags 1903 // API call, and error handling. 1904 // 1905 // This method is useful when you want to inject custom logic or configuration 1906 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1907 // 1908 // 1909 // // Example sending a request using the DescribeTagsRequest method. 1910 // req, resp := client.DescribeTagsRequest(params) 1911 // 1912 // err := req.Send() 1913 // if err == nil { // resp is now filled 1914 // fmt.Println(resp) 1915 // } 1916 func (c *MachineLearning) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) { 1917 op := &request.Operation{ 1918 Name: opDescribeTags, 1919 HTTPMethod: "POST", 1920 HTTPPath: "/", 1921 } 1922 1923 if input == nil { 1924 input = &DescribeTagsInput{} 1925 } 1926 1927 output = &DescribeTagsOutput{} 1928 req = c.newRequest(op, input, output) 1929 return 1930 } 1931 1932 // DescribeTags API operation for Amazon Machine Learning. 1933 // 1934 // Describes one or more of the tags for your Amazon ML object. 1935 // 1936 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1937 // with awserr.Error's Code and Message methods to get detailed information about 1938 // the error. 1939 // 1940 // See the AWS API reference guide for Amazon Machine Learning's 1941 // API operation DescribeTags for usage and error information. 1942 // 1943 // Returned Error Types: 1944 // * InvalidInputException 1945 // An error on the client occurred. Typically, the cause is an invalid input 1946 // value. 1947 // 1948 // * ResourceNotFoundException 1949 // A specified resource cannot be located. 1950 // 1951 // * InternalServerException 1952 // An error on the server occurred when trying to process a request. 1953 // 1954 func (c *MachineLearning) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { 1955 req, out := c.DescribeTagsRequest(input) 1956 return out, req.Send() 1957 } 1958 1959 // DescribeTagsWithContext is the same as DescribeTags with the addition of 1960 // the ability to pass a context and additional request options. 1961 // 1962 // See DescribeTags for details on how to use this API operation. 1963 // 1964 // The context must be non-nil and will be used for request cancellation. If 1965 // the context is nil a panic will occur. In the future the SDK may create 1966 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1967 // for more information on using Contexts. 1968 func (c *MachineLearning) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error) { 1969 req, out := c.DescribeTagsRequest(input) 1970 req.SetContext(ctx) 1971 req.ApplyOptions(opts...) 1972 return out, req.Send() 1973 } 1974 1975 const opGetBatchPrediction = "GetBatchPrediction" 1976 1977 // GetBatchPredictionRequest generates a "aws/request.Request" representing the 1978 // client's request for the GetBatchPrediction operation. The "output" return 1979 // value will be populated with the request's response once the request completes 1980 // successfully. 1981 // 1982 // Use "Send" method on the returned Request to send the API call to the service. 1983 // the "output" return value is not valid until after Send returns without error. 1984 // 1985 // See GetBatchPrediction for more information on using the GetBatchPrediction 1986 // API call, and error handling. 1987 // 1988 // This method is useful when you want to inject custom logic or configuration 1989 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1990 // 1991 // 1992 // // Example sending a request using the GetBatchPredictionRequest method. 1993 // req, resp := client.GetBatchPredictionRequest(params) 1994 // 1995 // err := req.Send() 1996 // if err == nil { // resp is now filled 1997 // fmt.Println(resp) 1998 // } 1999 func (c *MachineLearning) GetBatchPredictionRequest(input *GetBatchPredictionInput) (req *request.Request, output *GetBatchPredictionOutput) { 2000 op := &request.Operation{ 2001 Name: opGetBatchPrediction, 2002 HTTPMethod: "POST", 2003 HTTPPath: "/", 2004 } 2005 2006 if input == nil { 2007 input = &GetBatchPredictionInput{} 2008 } 2009 2010 output = &GetBatchPredictionOutput{} 2011 req = c.newRequest(op, input, output) 2012 return 2013 } 2014 2015 // GetBatchPrediction API operation for Amazon Machine Learning. 2016 // 2017 // Returns a BatchPrediction that includes detailed metadata, status, and data 2018 // file information for a Batch Prediction request. 2019 // 2020 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2021 // with awserr.Error's Code and Message methods to get detailed information about 2022 // the error. 2023 // 2024 // See the AWS API reference guide for Amazon Machine Learning's 2025 // API operation GetBatchPrediction for usage and error information. 2026 // 2027 // Returned Error Types: 2028 // * InvalidInputException 2029 // An error on the client occurred. Typically, the cause is an invalid input 2030 // value. 2031 // 2032 // * ResourceNotFoundException 2033 // A specified resource cannot be located. 2034 // 2035 // * InternalServerException 2036 // An error on the server occurred when trying to process a request. 2037 // 2038 func (c *MachineLearning) GetBatchPrediction(input *GetBatchPredictionInput) (*GetBatchPredictionOutput, error) { 2039 req, out := c.GetBatchPredictionRequest(input) 2040 return out, req.Send() 2041 } 2042 2043 // GetBatchPredictionWithContext is the same as GetBatchPrediction with the addition of 2044 // the ability to pass a context and additional request options. 2045 // 2046 // See GetBatchPrediction for details on how to use this API operation. 2047 // 2048 // The context must be non-nil and will be used for request cancellation. If 2049 // the context is nil a panic will occur. In the future the SDK may create 2050 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2051 // for more information on using Contexts. 2052 func (c *MachineLearning) GetBatchPredictionWithContext(ctx aws.Context, input *GetBatchPredictionInput, opts ...request.Option) (*GetBatchPredictionOutput, error) { 2053 req, out := c.GetBatchPredictionRequest(input) 2054 req.SetContext(ctx) 2055 req.ApplyOptions(opts...) 2056 return out, req.Send() 2057 } 2058 2059 const opGetDataSource = "GetDataSource" 2060 2061 // GetDataSourceRequest generates a "aws/request.Request" representing the 2062 // client's request for the GetDataSource operation. The "output" return 2063 // value will be populated with the request's response once the request completes 2064 // successfully. 2065 // 2066 // Use "Send" method on the returned Request to send the API call to the service. 2067 // the "output" return value is not valid until after Send returns without error. 2068 // 2069 // See GetDataSource for more information on using the GetDataSource 2070 // API call, and error handling. 2071 // 2072 // This method is useful when you want to inject custom logic or configuration 2073 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2074 // 2075 // 2076 // // Example sending a request using the GetDataSourceRequest method. 2077 // req, resp := client.GetDataSourceRequest(params) 2078 // 2079 // err := req.Send() 2080 // if err == nil { // resp is now filled 2081 // fmt.Println(resp) 2082 // } 2083 func (c *MachineLearning) GetDataSourceRequest(input *GetDataSourceInput) (req *request.Request, output *GetDataSourceOutput) { 2084 op := &request.Operation{ 2085 Name: opGetDataSource, 2086 HTTPMethod: "POST", 2087 HTTPPath: "/", 2088 } 2089 2090 if input == nil { 2091 input = &GetDataSourceInput{} 2092 } 2093 2094 output = &GetDataSourceOutput{} 2095 req = c.newRequest(op, input, output) 2096 return 2097 } 2098 2099 // GetDataSource API operation for Amazon Machine Learning. 2100 // 2101 // Returns a DataSource that includes metadata and data file information, as 2102 // well as the current status of the DataSource. 2103 // 2104 // GetDataSource provides results in normal or verbose format. The verbose format 2105 // adds the schema description and the list of files pointed to by the DataSource 2106 // to the normal format. 2107 // 2108 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2109 // with awserr.Error's Code and Message methods to get detailed information about 2110 // the error. 2111 // 2112 // See the AWS API reference guide for Amazon Machine Learning's 2113 // API operation GetDataSource for usage and error information. 2114 // 2115 // Returned Error Types: 2116 // * InvalidInputException 2117 // An error on the client occurred. Typically, the cause is an invalid input 2118 // value. 2119 // 2120 // * ResourceNotFoundException 2121 // A specified resource cannot be located. 2122 // 2123 // * InternalServerException 2124 // An error on the server occurred when trying to process a request. 2125 // 2126 func (c *MachineLearning) GetDataSource(input *GetDataSourceInput) (*GetDataSourceOutput, error) { 2127 req, out := c.GetDataSourceRequest(input) 2128 return out, req.Send() 2129 } 2130 2131 // GetDataSourceWithContext is the same as GetDataSource with the addition of 2132 // the ability to pass a context and additional request options. 2133 // 2134 // See GetDataSource for details on how to use this API operation. 2135 // 2136 // The context must be non-nil and will be used for request cancellation. If 2137 // the context is nil a panic will occur. In the future the SDK may create 2138 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2139 // for more information on using Contexts. 2140 func (c *MachineLearning) GetDataSourceWithContext(ctx aws.Context, input *GetDataSourceInput, opts ...request.Option) (*GetDataSourceOutput, error) { 2141 req, out := c.GetDataSourceRequest(input) 2142 req.SetContext(ctx) 2143 req.ApplyOptions(opts...) 2144 return out, req.Send() 2145 } 2146 2147 const opGetEvaluation = "GetEvaluation" 2148 2149 // GetEvaluationRequest generates a "aws/request.Request" representing the 2150 // client's request for the GetEvaluation operation. The "output" return 2151 // value will be populated with the request's response once the request completes 2152 // successfully. 2153 // 2154 // Use "Send" method on the returned Request to send the API call to the service. 2155 // the "output" return value is not valid until after Send returns without error. 2156 // 2157 // See GetEvaluation for more information on using the GetEvaluation 2158 // API call, and error handling. 2159 // 2160 // This method is useful when you want to inject custom logic or configuration 2161 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2162 // 2163 // 2164 // // Example sending a request using the GetEvaluationRequest method. 2165 // req, resp := client.GetEvaluationRequest(params) 2166 // 2167 // err := req.Send() 2168 // if err == nil { // resp is now filled 2169 // fmt.Println(resp) 2170 // } 2171 func (c *MachineLearning) GetEvaluationRequest(input *GetEvaluationInput) (req *request.Request, output *GetEvaluationOutput) { 2172 op := &request.Operation{ 2173 Name: opGetEvaluation, 2174 HTTPMethod: "POST", 2175 HTTPPath: "/", 2176 } 2177 2178 if input == nil { 2179 input = &GetEvaluationInput{} 2180 } 2181 2182 output = &GetEvaluationOutput{} 2183 req = c.newRequest(op, input, output) 2184 return 2185 } 2186 2187 // GetEvaluation API operation for Amazon Machine Learning. 2188 // 2189 // Returns an Evaluation that includes metadata as well as the current status 2190 // of the Evaluation. 2191 // 2192 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2193 // with awserr.Error's Code and Message methods to get detailed information about 2194 // the error. 2195 // 2196 // See the AWS API reference guide for Amazon Machine Learning's 2197 // API operation GetEvaluation for usage and error information. 2198 // 2199 // Returned Error Types: 2200 // * InvalidInputException 2201 // An error on the client occurred. Typically, the cause is an invalid input 2202 // value. 2203 // 2204 // * ResourceNotFoundException 2205 // A specified resource cannot be located. 2206 // 2207 // * InternalServerException 2208 // An error on the server occurred when trying to process a request. 2209 // 2210 func (c *MachineLearning) GetEvaluation(input *GetEvaluationInput) (*GetEvaluationOutput, error) { 2211 req, out := c.GetEvaluationRequest(input) 2212 return out, req.Send() 2213 } 2214 2215 // GetEvaluationWithContext is the same as GetEvaluation with the addition of 2216 // the ability to pass a context and additional request options. 2217 // 2218 // See GetEvaluation for details on how to use this API operation. 2219 // 2220 // The context must be non-nil and will be used for request cancellation. If 2221 // the context is nil a panic will occur. In the future the SDK may create 2222 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2223 // for more information on using Contexts. 2224 func (c *MachineLearning) GetEvaluationWithContext(ctx aws.Context, input *GetEvaluationInput, opts ...request.Option) (*GetEvaluationOutput, error) { 2225 req, out := c.GetEvaluationRequest(input) 2226 req.SetContext(ctx) 2227 req.ApplyOptions(opts...) 2228 return out, req.Send() 2229 } 2230 2231 const opGetMLModel = "GetMLModel" 2232 2233 // GetMLModelRequest generates a "aws/request.Request" representing the 2234 // client's request for the GetMLModel operation. The "output" return 2235 // value will be populated with the request's response once the request completes 2236 // successfully. 2237 // 2238 // Use "Send" method on the returned Request to send the API call to the service. 2239 // the "output" return value is not valid until after Send returns without error. 2240 // 2241 // See GetMLModel for more information on using the GetMLModel 2242 // API call, and error handling. 2243 // 2244 // This method is useful when you want to inject custom logic or configuration 2245 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2246 // 2247 // 2248 // // Example sending a request using the GetMLModelRequest method. 2249 // req, resp := client.GetMLModelRequest(params) 2250 // 2251 // err := req.Send() 2252 // if err == nil { // resp is now filled 2253 // fmt.Println(resp) 2254 // } 2255 func (c *MachineLearning) GetMLModelRequest(input *GetMLModelInput) (req *request.Request, output *GetMLModelOutput) { 2256 op := &request.Operation{ 2257 Name: opGetMLModel, 2258 HTTPMethod: "POST", 2259 HTTPPath: "/", 2260 } 2261 2262 if input == nil { 2263 input = &GetMLModelInput{} 2264 } 2265 2266 output = &GetMLModelOutput{} 2267 req = c.newRequest(op, input, output) 2268 return 2269 } 2270 2271 // GetMLModel API operation for Amazon Machine Learning. 2272 // 2273 // Returns an MLModel that includes detailed metadata, data source information, 2274 // and the current status of the MLModel. 2275 // 2276 // GetMLModel provides results in normal or verbose format. 2277 // 2278 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2279 // with awserr.Error's Code and Message methods to get detailed information about 2280 // the error. 2281 // 2282 // See the AWS API reference guide for Amazon Machine Learning's 2283 // API operation GetMLModel for usage and error information. 2284 // 2285 // Returned Error Types: 2286 // * InvalidInputException 2287 // An error on the client occurred. Typically, the cause is an invalid input 2288 // value. 2289 // 2290 // * ResourceNotFoundException 2291 // A specified resource cannot be located. 2292 // 2293 // * InternalServerException 2294 // An error on the server occurred when trying to process a request. 2295 // 2296 func (c *MachineLearning) GetMLModel(input *GetMLModelInput) (*GetMLModelOutput, error) { 2297 req, out := c.GetMLModelRequest(input) 2298 return out, req.Send() 2299 } 2300 2301 // GetMLModelWithContext is the same as GetMLModel with the addition of 2302 // the ability to pass a context and additional request options. 2303 // 2304 // See GetMLModel for details on how to use this API operation. 2305 // 2306 // The context must be non-nil and will be used for request cancellation. If 2307 // the context is nil a panic will occur. In the future the SDK may create 2308 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2309 // for more information on using Contexts. 2310 func (c *MachineLearning) GetMLModelWithContext(ctx aws.Context, input *GetMLModelInput, opts ...request.Option) (*GetMLModelOutput, error) { 2311 req, out := c.GetMLModelRequest(input) 2312 req.SetContext(ctx) 2313 req.ApplyOptions(opts...) 2314 return out, req.Send() 2315 } 2316 2317 const opPredict = "Predict" 2318 2319 // PredictRequest generates a "aws/request.Request" representing the 2320 // client's request for the Predict operation. The "output" return 2321 // value will be populated with the request's response once the request completes 2322 // successfully. 2323 // 2324 // Use "Send" method on the returned Request to send the API call to the service. 2325 // the "output" return value is not valid until after Send returns without error. 2326 // 2327 // See Predict for more information on using the Predict 2328 // API call, and error handling. 2329 // 2330 // This method is useful when you want to inject custom logic or configuration 2331 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2332 // 2333 // 2334 // // Example sending a request using the PredictRequest method. 2335 // req, resp := client.PredictRequest(params) 2336 // 2337 // err := req.Send() 2338 // if err == nil { // resp is now filled 2339 // fmt.Println(resp) 2340 // } 2341 func (c *MachineLearning) PredictRequest(input *PredictInput) (req *request.Request, output *PredictOutput) { 2342 op := &request.Operation{ 2343 Name: opPredict, 2344 HTTPMethod: "POST", 2345 HTTPPath: "/", 2346 } 2347 2348 if input == nil { 2349 input = &PredictInput{} 2350 } 2351 2352 output = &PredictOutput{} 2353 req = c.newRequest(op, input, output) 2354 return 2355 } 2356 2357 // Predict API operation for Amazon Machine Learning. 2358 // 2359 // Generates a prediction for the observation using the specified ML Model. 2360 // 2361 // Note: Not all response parameters will be populated. Whether a response parameter 2362 // is populated depends on the type of model requested. 2363 // 2364 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2365 // with awserr.Error's Code and Message methods to get detailed information about 2366 // the error. 2367 // 2368 // See the AWS API reference guide for Amazon Machine Learning's 2369 // API operation Predict for usage and error information. 2370 // 2371 // Returned Error Types: 2372 // * InvalidInputException 2373 // An error on the client occurred. Typically, the cause is an invalid input 2374 // value. 2375 // 2376 // * ResourceNotFoundException 2377 // A specified resource cannot be located. 2378 // 2379 // * LimitExceededException 2380 // The subscriber exceeded the maximum number of operations. This exception 2381 // can occur when listing objects such as DataSource. 2382 // 2383 // * InternalServerException 2384 // An error on the server occurred when trying to process a request. 2385 // 2386 // * PredictorNotMountedException 2387 // The exception is thrown when a predict request is made to an unmounted MLModel. 2388 // 2389 func (c *MachineLearning) Predict(input *PredictInput) (*PredictOutput, error) { 2390 req, out := c.PredictRequest(input) 2391 return out, req.Send() 2392 } 2393 2394 // PredictWithContext is the same as Predict with the addition of 2395 // the ability to pass a context and additional request options. 2396 // 2397 // See Predict for details on how to use this API operation. 2398 // 2399 // The context must be non-nil and will be used for request cancellation. If 2400 // the context is nil a panic will occur. In the future the SDK may create 2401 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2402 // for more information on using Contexts. 2403 func (c *MachineLearning) PredictWithContext(ctx aws.Context, input *PredictInput, opts ...request.Option) (*PredictOutput, error) { 2404 req, out := c.PredictRequest(input) 2405 req.SetContext(ctx) 2406 req.ApplyOptions(opts...) 2407 return out, req.Send() 2408 } 2409 2410 const opUpdateBatchPrediction = "UpdateBatchPrediction" 2411 2412 // UpdateBatchPredictionRequest generates a "aws/request.Request" representing the 2413 // client's request for the UpdateBatchPrediction operation. The "output" return 2414 // value will be populated with the request's response once the request completes 2415 // successfully. 2416 // 2417 // Use "Send" method on the returned Request to send the API call to the service. 2418 // the "output" return value is not valid until after Send returns without error. 2419 // 2420 // See UpdateBatchPrediction for more information on using the UpdateBatchPrediction 2421 // API call, and error handling. 2422 // 2423 // This method is useful when you want to inject custom logic or configuration 2424 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2425 // 2426 // 2427 // // Example sending a request using the UpdateBatchPredictionRequest method. 2428 // req, resp := client.UpdateBatchPredictionRequest(params) 2429 // 2430 // err := req.Send() 2431 // if err == nil { // resp is now filled 2432 // fmt.Println(resp) 2433 // } 2434 func (c *MachineLearning) UpdateBatchPredictionRequest(input *UpdateBatchPredictionInput) (req *request.Request, output *UpdateBatchPredictionOutput) { 2435 op := &request.Operation{ 2436 Name: opUpdateBatchPrediction, 2437 HTTPMethod: "POST", 2438 HTTPPath: "/", 2439 } 2440 2441 if input == nil { 2442 input = &UpdateBatchPredictionInput{} 2443 } 2444 2445 output = &UpdateBatchPredictionOutput{} 2446 req = c.newRequest(op, input, output) 2447 return 2448 } 2449 2450 // UpdateBatchPrediction API operation for Amazon Machine Learning. 2451 // 2452 // Updates the BatchPredictionName of a BatchPrediction. 2453 // 2454 // You can use the GetBatchPrediction operation to view the contents of the 2455 // updated data element. 2456 // 2457 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2458 // with awserr.Error's Code and Message methods to get detailed information about 2459 // the error. 2460 // 2461 // See the AWS API reference guide for Amazon Machine Learning's 2462 // API operation UpdateBatchPrediction for usage and error information. 2463 // 2464 // Returned Error Types: 2465 // * InvalidInputException 2466 // An error on the client occurred. Typically, the cause is an invalid input 2467 // value. 2468 // 2469 // * ResourceNotFoundException 2470 // A specified resource cannot be located. 2471 // 2472 // * InternalServerException 2473 // An error on the server occurred when trying to process a request. 2474 // 2475 func (c *MachineLearning) UpdateBatchPrediction(input *UpdateBatchPredictionInput) (*UpdateBatchPredictionOutput, error) { 2476 req, out := c.UpdateBatchPredictionRequest(input) 2477 return out, req.Send() 2478 } 2479 2480 // UpdateBatchPredictionWithContext is the same as UpdateBatchPrediction with the addition of 2481 // the ability to pass a context and additional request options. 2482 // 2483 // See UpdateBatchPrediction for details on how to use this API operation. 2484 // 2485 // The context must be non-nil and will be used for request cancellation. If 2486 // the context is nil a panic will occur. In the future the SDK may create 2487 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2488 // for more information on using Contexts. 2489 func (c *MachineLearning) UpdateBatchPredictionWithContext(ctx aws.Context, input *UpdateBatchPredictionInput, opts ...request.Option) (*UpdateBatchPredictionOutput, error) { 2490 req, out := c.UpdateBatchPredictionRequest(input) 2491 req.SetContext(ctx) 2492 req.ApplyOptions(opts...) 2493 return out, req.Send() 2494 } 2495 2496 const opUpdateDataSource = "UpdateDataSource" 2497 2498 // UpdateDataSourceRequest generates a "aws/request.Request" representing the 2499 // client's request for the UpdateDataSource operation. The "output" return 2500 // value will be populated with the request's response once the request completes 2501 // successfully. 2502 // 2503 // Use "Send" method on the returned Request to send the API call to the service. 2504 // the "output" return value is not valid until after Send returns without error. 2505 // 2506 // See UpdateDataSource for more information on using the UpdateDataSource 2507 // API call, and error handling. 2508 // 2509 // This method is useful when you want to inject custom logic or configuration 2510 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2511 // 2512 // 2513 // // Example sending a request using the UpdateDataSourceRequest method. 2514 // req, resp := client.UpdateDataSourceRequest(params) 2515 // 2516 // err := req.Send() 2517 // if err == nil { // resp is now filled 2518 // fmt.Println(resp) 2519 // } 2520 func (c *MachineLearning) UpdateDataSourceRequest(input *UpdateDataSourceInput) (req *request.Request, output *UpdateDataSourceOutput) { 2521 op := &request.Operation{ 2522 Name: opUpdateDataSource, 2523 HTTPMethod: "POST", 2524 HTTPPath: "/", 2525 } 2526 2527 if input == nil { 2528 input = &UpdateDataSourceInput{} 2529 } 2530 2531 output = &UpdateDataSourceOutput{} 2532 req = c.newRequest(op, input, output) 2533 return 2534 } 2535 2536 // UpdateDataSource API operation for Amazon Machine Learning. 2537 // 2538 // Updates the DataSourceName of a DataSource. 2539 // 2540 // You can use the GetDataSource operation to view the contents of the updated 2541 // data element. 2542 // 2543 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2544 // with awserr.Error's Code and Message methods to get detailed information about 2545 // the error. 2546 // 2547 // See the AWS API reference guide for Amazon Machine Learning's 2548 // API operation UpdateDataSource for usage and error information. 2549 // 2550 // Returned Error Types: 2551 // * InvalidInputException 2552 // An error on the client occurred. Typically, the cause is an invalid input 2553 // value. 2554 // 2555 // * ResourceNotFoundException 2556 // A specified resource cannot be located. 2557 // 2558 // * InternalServerException 2559 // An error on the server occurred when trying to process a request. 2560 // 2561 func (c *MachineLearning) UpdateDataSource(input *UpdateDataSourceInput) (*UpdateDataSourceOutput, error) { 2562 req, out := c.UpdateDataSourceRequest(input) 2563 return out, req.Send() 2564 } 2565 2566 // UpdateDataSourceWithContext is the same as UpdateDataSource with the addition of 2567 // the ability to pass a context and additional request options. 2568 // 2569 // See UpdateDataSource for details on how to use this API operation. 2570 // 2571 // The context must be non-nil and will be used for request cancellation. If 2572 // the context is nil a panic will occur. In the future the SDK may create 2573 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2574 // for more information on using Contexts. 2575 func (c *MachineLearning) UpdateDataSourceWithContext(ctx aws.Context, input *UpdateDataSourceInput, opts ...request.Option) (*UpdateDataSourceOutput, error) { 2576 req, out := c.UpdateDataSourceRequest(input) 2577 req.SetContext(ctx) 2578 req.ApplyOptions(opts...) 2579 return out, req.Send() 2580 } 2581 2582 const opUpdateEvaluation = "UpdateEvaluation" 2583 2584 // UpdateEvaluationRequest generates a "aws/request.Request" representing the 2585 // client's request for the UpdateEvaluation operation. The "output" return 2586 // value will be populated with the request's response once the request completes 2587 // successfully. 2588 // 2589 // Use "Send" method on the returned Request to send the API call to the service. 2590 // the "output" return value is not valid until after Send returns without error. 2591 // 2592 // See UpdateEvaluation for more information on using the UpdateEvaluation 2593 // API call, and error handling. 2594 // 2595 // This method is useful when you want to inject custom logic or configuration 2596 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2597 // 2598 // 2599 // // Example sending a request using the UpdateEvaluationRequest method. 2600 // req, resp := client.UpdateEvaluationRequest(params) 2601 // 2602 // err := req.Send() 2603 // if err == nil { // resp is now filled 2604 // fmt.Println(resp) 2605 // } 2606 func (c *MachineLearning) UpdateEvaluationRequest(input *UpdateEvaluationInput) (req *request.Request, output *UpdateEvaluationOutput) { 2607 op := &request.Operation{ 2608 Name: opUpdateEvaluation, 2609 HTTPMethod: "POST", 2610 HTTPPath: "/", 2611 } 2612 2613 if input == nil { 2614 input = &UpdateEvaluationInput{} 2615 } 2616 2617 output = &UpdateEvaluationOutput{} 2618 req = c.newRequest(op, input, output) 2619 return 2620 } 2621 2622 // UpdateEvaluation API operation for Amazon Machine Learning. 2623 // 2624 // Updates the EvaluationName of an Evaluation. 2625 // 2626 // You can use the GetEvaluation operation to view the contents of the updated 2627 // data element. 2628 // 2629 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2630 // with awserr.Error's Code and Message methods to get detailed information about 2631 // the error. 2632 // 2633 // See the AWS API reference guide for Amazon Machine Learning's 2634 // API operation UpdateEvaluation for usage and error information. 2635 // 2636 // Returned Error Types: 2637 // * InvalidInputException 2638 // An error on the client occurred. Typically, the cause is an invalid input 2639 // value. 2640 // 2641 // * ResourceNotFoundException 2642 // A specified resource cannot be located. 2643 // 2644 // * InternalServerException 2645 // An error on the server occurred when trying to process a request. 2646 // 2647 func (c *MachineLearning) UpdateEvaluation(input *UpdateEvaluationInput) (*UpdateEvaluationOutput, error) { 2648 req, out := c.UpdateEvaluationRequest(input) 2649 return out, req.Send() 2650 } 2651 2652 // UpdateEvaluationWithContext is the same as UpdateEvaluation with the addition of 2653 // the ability to pass a context and additional request options. 2654 // 2655 // See UpdateEvaluation for details on how to use this API operation. 2656 // 2657 // The context must be non-nil and will be used for request cancellation. If 2658 // the context is nil a panic will occur. In the future the SDK may create 2659 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2660 // for more information on using Contexts. 2661 func (c *MachineLearning) UpdateEvaluationWithContext(ctx aws.Context, input *UpdateEvaluationInput, opts ...request.Option) (*UpdateEvaluationOutput, error) { 2662 req, out := c.UpdateEvaluationRequest(input) 2663 req.SetContext(ctx) 2664 req.ApplyOptions(opts...) 2665 return out, req.Send() 2666 } 2667 2668 const opUpdateMLModel = "UpdateMLModel" 2669 2670 // UpdateMLModelRequest generates a "aws/request.Request" representing the 2671 // client's request for the UpdateMLModel operation. The "output" return 2672 // value will be populated with the request's response once the request completes 2673 // successfully. 2674 // 2675 // Use "Send" method on the returned Request to send the API call to the service. 2676 // the "output" return value is not valid until after Send returns without error. 2677 // 2678 // See UpdateMLModel for more information on using the UpdateMLModel 2679 // API call, and error handling. 2680 // 2681 // This method is useful when you want to inject custom logic or configuration 2682 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2683 // 2684 // 2685 // // Example sending a request using the UpdateMLModelRequest method. 2686 // req, resp := client.UpdateMLModelRequest(params) 2687 // 2688 // err := req.Send() 2689 // if err == nil { // resp is now filled 2690 // fmt.Println(resp) 2691 // } 2692 func (c *MachineLearning) UpdateMLModelRequest(input *UpdateMLModelInput) (req *request.Request, output *UpdateMLModelOutput) { 2693 op := &request.Operation{ 2694 Name: opUpdateMLModel, 2695 HTTPMethod: "POST", 2696 HTTPPath: "/", 2697 } 2698 2699 if input == nil { 2700 input = &UpdateMLModelInput{} 2701 } 2702 2703 output = &UpdateMLModelOutput{} 2704 req = c.newRequest(op, input, output) 2705 return 2706 } 2707 2708 // UpdateMLModel API operation for Amazon Machine Learning. 2709 // 2710 // Updates the MLModelName and the ScoreThreshold of an MLModel. 2711 // 2712 // You can use the GetMLModel operation to view the contents of the updated 2713 // data element. 2714 // 2715 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2716 // with awserr.Error's Code and Message methods to get detailed information about 2717 // the error. 2718 // 2719 // See the AWS API reference guide for Amazon Machine Learning's 2720 // API operation UpdateMLModel for usage and error information. 2721 // 2722 // Returned Error Types: 2723 // * InvalidInputException 2724 // An error on the client occurred. Typically, the cause is an invalid input 2725 // value. 2726 // 2727 // * ResourceNotFoundException 2728 // A specified resource cannot be located. 2729 // 2730 // * InternalServerException 2731 // An error on the server occurred when trying to process a request. 2732 // 2733 func (c *MachineLearning) UpdateMLModel(input *UpdateMLModelInput) (*UpdateMLModelOutput, error) { 2734 req, out := c.UpdateMLModelRequest(input) 2735 return out, req.Send() 2736 } 2737 2738 // UpdateMLModelWithContext is the same as UpdateMLModel with the addition of 2739 // the ability to pass a context and additional request options. 2740 // 2741 // See UpdateMLModel for details on how to use this API operation. 2742 // 2743 // The context must be non-nil and will be used for request cancellation. If 2744 // the context is nil a panic will occur. In the future the SDK may create 2745 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2746 // for more information on using Contexts. 2747 func (c *MachineLearning) UpdateMLModelWithContext(ctx aws.Context, input *UpdateMLModelInput, opts ...request.Option) (*UpdateMLModelOutput, error) { 2748 req, out := c.UpdateMLModelRequest(input) 2749 req.SetContext(ctx) 2750 req.ApplyOptions(opts...) 2751 return out, req.Send() 2752 } 2753 2754 type AddTagsInput struct { 2755 _ struct{} `type:"structure"` 2756 2757 // The ID of the ML object to tag. For example, exampleModelId. 2758 // 2759 // ResourceId is a required field 2760 ResourceId *string `min:"1" type:"string" required:"true"` 2761 2762 // The type of the ML object to tag. 2763 // 2764 // ResourceType is a required field 2765 ResourceType *string `type:"string" required:"true" enum:"TaggableResourceType"` 2766 2767 // The key-value pairs to use to create tags. If you specify a key without specifying 2768 // a value, Amazon ML creates a tag with the specified key and a value of null. 2769 // 2770 // Tags is a required field 2771 Tags []*Tag `type:"list" required:"true"` 2772 } 2773 2774 // String returns the string representation. 2775 // 2776 // API parameter values that are decorated as "sensitive" in the API will not 2777 // be included in the string output. The member name will be present, but the 2778 // value will be replaced with "sensitive". 2779 func (s AddTagsInput) String() string { 2780 return awsutil.Prettify(s) 2781 } 2782 2783 // GoString returns the string representation. 2784 // 2785 // API parameter values that are decorated as "sensitive" in the API will not 2786 // be included in the string output. The member name will be present, but the 2787 // value will be replaced with "sensitive". 2788 func (s AddTagsInput) GoString() string { 2789 return s.String() 2790 } 2791 2792 // Validate inspects the fields of the type to determine if they are valid. 2793 func (s *AddTagsInput) Validate() error { 2794 invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"} 2795 if s.ResourceId == nil { 2796 invalidParams.Add(request.NewErrParamRequired("ResourceId")) 2797 } 2798 if s.ResourceId != nil && len(*s.ResourceId) < 1 { 2799 invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) 2800 } 2801 if s.ResourceType == nil { 2802 invalidParams.Add(request.NewErrParamRequired("ResourceType")) 2803 } 2804 if s.Tags == nil { 2805 invalidParams.Add(request.NewErrParamRequired("Tags")) 2806 } 2807 if s.Tags != nil { 2808 for i, v := range s.Tags { 2809 if v == nil { 2810 continue 2811 } 2812 if err := v.Validate(); err != nil { 2813 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 2814 } 2815 } 2816 } 2817 2818 if invalidParams.Len() > 0 { 2819 return invalidParams 2820 } 2821 return nil 2822 } 2823 2824 // SetResourceId sets the ResourceId field's value. 2825 func (s *AddTagsInput) SetResourceId(v string) *AddTagsInput { 2826 s.ResourceId = &v 2827 return s 2828 } 2829 2830 // SetResourceType sets the ResourceType field's value. 2831 func (s *AddTagsInput) SetResourceType(v string) *AddTagsInput { 2832 s.ResourceType = &v 2833 return s 2834 } 2835 2836 // SetTags sets the Tags field's value. 2837 func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput { 2838 s.Tags = v 2839 return s 2840 } 2841 2842 // Amazon ML returns the following elements. 2843 type AddTagsOutput struct { 2844 _ struct{} `type:"structure"` 2845 2846 // The ID of the ML object that was tagged. 2847 ResourceId *string `min:"1" type:"string"` 2848 2849 // The type of the ML object that was tagged. 2850 ResourceType *string `type:"string" enum:"TaggableResourceType"` 2851 } 2852 2853 // String returns the string representation. 2854 // 2855 // API parameter values that are decorated as "sensitive" in the API will not 2856 // be included in the string output. The member name will be present, but the 2857 // value will be replaced with "sensitive". 2858 func (s AddTagsOutput) String() string { 2859 return awsutil.Prettify(s) 2860 } 2861 2862 // GoString returns the string representation. 2863 // 2864 // API parameter values that are decorated as "sensitive" in the API will not 2865 // be included in the string output. The member name will be present, but the 2866 // value will be replaced with "sensitive". 2867 func (s AddTagsOutput) GoString() string { 2868 return s.String() 2869 } 2870 2871 // SetResourceId sets the ResourceId field's value. 2872 func (s *AddTagsOutput) SetResourceId(v string) *AddTagsOutput { 2873 s.ResourceId = &v 2874 return s 2875 } 2876 2877 // SetResourceType sets the ResourceType field's value. 2878 func (s *AddTagsOutput) SetResourceType(v string) *AddTagsOutput { 2879 s.ResourceType = &v 2880 return s 2881 } 2882 2883 // Represents the output of a GetBatchPrediction operation. 2884 // 2885 // The content consists of the detailed metadata, the status, and the data file 2886 // information of a Batch Prediction. 2887 type BatchPrediction struct { 2888 _ struct{} `type:"structure"` 2889 2890 // The ID of the DataSource that points to the group of observations to predict. 2891 BatchPredictionDataSourceId *string `min:"1" type:"string"` 2892 2893 // The ID assigned to the BatchPrediction at creation. This value should be 2894 // identical to the value of the BatchPredictionID in the request. 2895 BatchPredictionId *string `min:"1" type:"string"` 2896 2897 // Long integer type that is a 64-bit signed number. 2898 ComputeTime *int64 `type:"long"` 2899 2900 // The time that the BatchPrediction was created. The time is expressed in epoch 2901 // time. 2902 CreatedAt *time.Time `type:"timestamp"` 2903 2904 // The AWS user account that invoked the BatchPrediction. The account type can 2905 // be either an AWS root account or an AWS Identity and Access Management (IAM) 2906 // user account. 2907 CreatedByIamUser *string `type:"string"` 2908 2909 // A timestamp represented in epoch time. 2910 FinishedAt *time.Time `type:"timestamp"` 2911 2912 // The location of the data file or directory in Amazon Simple Storage Service 2913 // (Amazon S3). 2914 InputDataLocationS3 *string `type:"string"` 2915 2916 // Long integer type that is a 64-bit signed number. 2917 InvalidRecordCount *int64 `type:"long"` 2918 2919 // The time of the most recent edit to the BatchPrediction. The time is expressed 2920 // in epoch time. 2921 LastUpdatedAt *time.Time `type:"timestamp"` 2922 2923 // The ID of the MLModel that generated predictions for the BatchPrediction 2924 // request. 2925 MLModelId *string `min:"1" type:"string"` 2926 2927 // A description of the most recent details about processing the batch prediction 2928 // request. 2929 Message *string `type:"string"` 2930 2931 // A user-supplied name or description of the BatchPrediction. 2932 Name *string `type:"string"` 2933 2934 // The location of an Amazon S3 bucket or directory to receive the operation 2935 // results. The following substrings are not allowed in the s3 key portion of 2936 // the outputURI field: ':', '//', '/./', '/../'. 2937 OutputUri *string `type:"string"` 2938 2939 // A timestamp represented in epoch time. 2940 StartedAt *time.Time `type:"timestamp"` 2941 2942 // The status of the BatchPrediction. This element can have one of the following 2943 // values: 2944 // 2945 // * PENDING - Amazon Machine Learning (Amazon ML) submitted a request to 2946 // generate predictions for a batch of observations. 2947 // 2948 // * INPROGRESS - The process is underway. 2949 // 2950 // * FAILED - The request to perform a batch prediction did not run to completion. 2951 // It is not usable. 2952 // 2953 // * COMPLETED - The batch prediction process completed successfully. 2954 // 2955 // * DELETED - The BatchPrediction is marked as deleted. It is not usable. 2956 Status *string `type:"string" enum:"EntityStatus"` 2957 2958 // Long integer type that is a 64-bit signed number. 2959 TotalRecordCount *int64 `type:"long"` 2960 } 2961 2962 // String returns the string representation. 2963 // 2964 // API parameter values that are decorated as "sensitive" in the API will not 2965 // be included in the string output. The member name will be present, but the 2966 // value will be replaced with "sensitive". 2967 func (s BatchPrediction) String() string { 2968 return awsutil.Prettify(s) 2969 } 2970 2971 // GoString returns the string representation. 2972 // 2973 // API parameter values that are decorated as "sensitive" in the API will not 2974 // be included in the string output. The member name will be present, but the 2975 // value will be replaced with "sensitive". 2976 func (s BatchPrediction) GoString() string { 2977 return s.String() 2978 } 2979 2980 // SetBatchPredictionDataSourceId sets the BatchPredictionDataSourceId field's value. 2981 func (s *BatchPrediction) SetBatchPredictionDataSourceId(v string) *BatchPrediction { 2982 s.BatchPredictionDataSourceId = &v 2983 return s 2984 } 2985 2986 // SetBatchPredictionId sets the BatchPredictionId field's value. 2987 func (s *BatchPrediction) SetBatchPredictionId(v string) *BatchPrediction { 2988 s.BatchPredictionId = &v 2989 return s 2990 } 2991 2992 // SetComputeTime sets the ComputeTime field's value. 2993 func (s *BatchPrediction) SetComputeTime(v int64) *BatchPrediction { 2994 s.ComputeTime = &v 2995 return s 2996 } 2997 2998 // SetCreatedAt sets the CreatedAt field's value. 2999 func (s *BatchPrediction) SetCreatedAt(v time.Time) *BatchPrediction { 3000 s.CreatedAt = &v 3001 return s 3002 } 3003 3004 // SetCreatedByIamUser sets the CreatedByIamUser field's value. 3005 func (s *BatchPrediction) SetCreatedByIamUser(v string) *BatchPrediction { 3006 s.CreatedByIamUser = &v 3007 return s 3008 } 3009 3010 // SetFinishedAt sets the FinishedAt field's value. 3011 func (s *BatchPrediction) SetFinishedAt(v time.Time) *BatchPrediction { 3012 s.FinishedAt = &v 3013 return s 3014 } 3015 3016 // SetInputDataLocationS3 sets the InputDataLocationS3 field's value. 3017 func (s *BatchPrediction) SetInputDataLocationS3(v string) *BatchPrediction { 3018 s.InputDataLocationS3 = &v 3019 return s 3020 } 3021 3022 // SetInvalidRecordCount sets the InvalidRecordCount field's value. 3023 func (s *BatchPrediction) SetInvalidRecordCount(v int64) *BatchPrediction { 3024 s.InvalidRecordCount = &v 3025 return s 3026 } 3027 3028 // SetLastUpdatedAt sets the LastUpdatedAt field's value. 3029 func (s *BatchPrediction) SetLastUpdatedAt(v time.Time) *BatchPrediction { 3030 s.LastUpdatedAt = &v 3031 return s 3032 } 3033 3034 // SetMLModelId sets the MLModelId field's value. 3035 func (s *BatchPrediction) SetMLModelId(v string) *BatchPrediction { 3036 s.MLModelId = &v 3037 return s 3038 } 3039 3040 // SetMessage sets the Message field's value. 3041 func (s *BatchPrediction) SetMessage(v string) *BatchPrediction { 3042 s.Message = &v 3043 return s 3044 } 3045 3046 // SetName sets the Name field's value. 3047 func (s *BatchPrediction) SetName(v string) *BatchPrediction { 3048 s.Name = &v 3049 return s 3050 } 3051 3052 // SetOutputUri sets the OutputUri field's value. 3053 func (s *BatchPrediction) SetOutputUri(v string) *BatchPrediction { 3054 s.OutputUri = &v 3055 return s 3056 } 3057 3058 // SetStartedAt sets the StartedAt field's value. 3059 func (s *BatchPrediction) SetStartedAt(v time.Time) *BatchPrediction { 3060 s.StartedAt = &v 3061 return s 3062 } 3063 3064 // SetStatus sets the Status field's value. 3065 func (s *BatchPrediction) SetStatus(v string) *BatchPrediction { 3066 s.Status = &v 3067 return s 3068 } 3069 3070 // SetTotalRecordCount sets the TotalRecordCount field's value. 3071 func (s *BatchPrediction) SetTotalRecordCount(v int64) *BatchPrediction { 3072 s.TotalRecordCount = &v 3073 return s 3074 } 3075 3076 type CreateBatchPredictionInput struct { 3077 _ struct{} `type:"structure"` 3078 3079 // The ID of the DataSource that points to the group of observations to predict. 3080 // 3081 // BatchPredictionDataSourceId is a required field 3082 BatchPredictionDataSourceId *string `min:"1" type:"string" required:"true"` 3083 3084 // A user-supplied ID that uniquely identifies the BatchPrediction. 3085 // 3086 // BatchPredictionId is a required field 3087 BatchPredictionId *string `min:"1" type:"string" required:"true"` 3088 3089 // A user-supplied name or description of the BatchPrediction. BatchPredictionName 3090 // can only use the UTF-8 character set. 3091 BatchPredictionName *string `type:"string"` 3092 3093 // The ID of the MLModel that will generate predictions for the group of observations. 3094 // 3095 // MLModelId is a required field 3096 MLModelId *string `min:"1" type:"string" required:"true"` 3097 3098 // The location of an Amazon Simple Storage Service (Amazon S3) bucket or directory 3099 // to store the batch prediction results. The following substrings are not allowed 3100 // in the s3 key portion of the outputURI field: ':', '//', '/./', '/../'. 3101 // 3102 // Amazon ML needs permissions to store and retrieve the logs on your behalf. 3103 // For information about how to set permissions, see the Amazon Machine Learning 3104 // Developer Guide (https://docs.aws.amazon.com/machine-learning/latest/dg). 3105 // 3106 // OutputUri is a required field 3107 OutputUri *string `type:"string" required:"true"` 3108 } 3109 3110 // String returns the string representation. 3111 // 3112 // API parameter values that are decorated as "sensitive" in the API will not 3113 // be included in the string output. The member name will be present, but the 3114 // value will be replaced with "sensitive". 3115 func (s CreateBatchPredictionInput) String() string { 3116 return awsutil.Prettify(s) 3117 } 3118 3119 // GoString returns the string representation. 3120 // 3121 // API parameter values that are decorated as "sensitive" in the API will not 3122 // be included in the string output. The member name will be present, but the 3123 // value will be replaced with "sensitive". 3124 func (s CreateBatchPredictionInput) GoString() string { 3125 return s.String() 3126 } 3127 3128 // Validate inspects the fields of the type to determine if they are valid. 3129 func (s *CreateBatchPredictionInput) Validate() error { 3130 invalidParams := request.ErrInvalidParams{Context: "CreateBatchPredictionInput"} 3131 if s.BatchPredictionDataSourceId == nil { 3132 invalidParams.Add(request.NewErrParamRequired("BatchPredictionDataSourceId")) 3133 } 3134 if s.BatchPredictionDataSourceId != nil && len(*s.BatchPredictionDataSourceId) < 1 { 3135 invalidParams.Add(request.NewErrParamMinLen("BatchPredictionDataSourceId", 1)) 3136 } 3137 if s.BatchPredictionId == nil { 3138 invalidParams.Add(request.NewErrParamRequired("BatchPredictionId")) 3139 } 3140 if s.BatchPredictionId != nil && len(*s.BatchPredictionId) < 1 { 3141 invalidParams.Add(request.NewErrParamMinLen("BatchPredictionId", 1)) 3142 } 3143 if s.MLModelId == nil { 3144 invalidParams.Add(request.NewErrParamRequired("MLModelId")) 3145 } 3146 if s.MLModelId != nil && len(*s.MLModelId) < 1 { 3147 invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) 3148 } 3149 if s.OutputUri == nil { 3150 invalidParams.Add(request.NewErrParamRequired("OutputUri")) 3151 } 3152 3153 if invalidParams.Len() > 0 { 3154 return invalidParams 3155 } 3156 return nil 3157 } 3158 3159 // SetBatchPredictionDataSourceId sets the BatchPredictionDataSourceId field's value. 3160 func (s *CreateBatchPredictionInput) SetBatchPredictionDataSourceId(v string) *CreateBatchPredictionInput { 3161 s.BatchPredictionDataSourceId = &v 3162 return s 3163 } 3164 3165 // SetBatchPredictionId sets the BatchPredictionId field's value. 3166 func (s *CreateBatchPredictionInput) SetBatchPredictionId(v string) *CreateBatchPredictionInput { 3167 s.BatchPredictionId = &v 3168 return s 3169 } 3170 3171 // SetBatchPredictionName sets the BatchPredictionName field's value. 3172 func (s *CreateBatchPredictionInput) SetBatchPredictionName(v string) *CreateBatchPredictionInput { 3173 s.BatchPredictionName = &v 3174 return s 3175 } 3176 3177 // SetMLModelId sets the MLModelId field's value. 3178 func (s *CreateBatchPredictionInput) SetMLModelId(v string) *CreateBatchPredictionInput { 3179 s.MLModelId = &v 3180 return s 3181 } 3182 3183 // SetOutputUri sets the OutputUri field's value. 3184 func (s *CreateBatchPredictionInput) SetOutputUri(v string) *CreateBatchPredictionInput { 3185 s.OutputUri = &v 3186 return s 3187 } 3188 3189 // Represents the output of a CreateBatchPrediction operation, and is an acknowledgement 3190 // that Amazon ML received the request. 3191 // 3192 // The CreateBatchPrediction operation is asynchronous. You can poll for status 3193 // updates by using the >GetBatchPrediction operation and checking the Status 3194 // parameter of the result. 3195 type CreateBatchPredictionOutput struct { 3196 _ struct{} `type:"structure"` 3197 3198 // A user-supplied ID that uniquely identifies the BatchPrediction. This value 3199 // is identical to the value of the BatchPredictionId in the request. 3200 BatchPredictionId *string `min:"1" type:"string"` 3201 } 3202 3203 // String returns the string representation. 3204 // 3205 // API parameter values that are decorated as "sensitive" in the API will not 3206 // be included in the string output. The member name will be present, but the 3207 // value will be replaced with "sensitive". 3208 func (s CreateBatchPredictionOutput) String() string { 3209 return awsutil.Prettify(s) 3210 } 3211 3212 // GoString returns the string representation. 3213 // 3214 // API parameter values that are decorated as "sensitive" in the API will not 3215 // be included in the string output. The member name will be present, but the 3216 // value will be replaced with "sensitive". 3217 func (s CreateBatchPredictionOutput) GoString() string { 3218 return s.String() 3219 } 3220 3221 // SetBatchPredictionId sets the BatchPredictionId field's value. 3222 func (s *CreateBatchPredictionOutput) SetBatchPredictionId(v string) *CreateBatchPredictionOutput { 3223 s.BatchPredictionId = &v 3224 return s 3225 } 3226 3227 type CreateDataSourceFromRDSInput struct { 3228 _ struct{} `type:"structure"` 3229 3230 // The compute statistics for a DataSource. The statistics are generated from 3231 // the observation data referenced by a DataSource. Amazon ML uses the statistics 3232 // internally during MLModel training. This parameter must be set to true if 3233 // the DataSource needs to be used for MLModel training. 3234 ComputeStatistics *bool `type:"boolean"` 3235 3236 // A user-supplied ID that uniquely identifies the DataSource. Typically, an 3237 // Amazon Resource Number (ARN) becomes the ID for a DataSource. 3238 // 3239 // DataSourceId is a required field 3240 DataSourceId *string `min:"1" type:"string" required:"true"` 3241 3242 // A user-supplied name or description of the DataSource. 3243 DataSourceName *string `type:"string"` 3244 3245 // The data specification of an Amazon RDS DataSource: 3246 // 3247 // * DatabaseInformation - DatabaseName - The name of the Amazon RDS database. 3248 // InstanceIdentifier - A unique identifier for the Amazon RDS database instance. 3249 // 3250 // * DatabaseCredentials - AWS Identity and Access Management (IAM) credentials 3251 // that are used to connect to the Amazon RDS database. 3252 // 3253 // * ResourceRole - A role (DataPipelineDefaultResourceRole) assumed by an 3254 // EC2 instance to carry out the copy task from Amazon RDS to Amazon Simple 3255 // Storage Service (Amazon S3). For more information, see Role templates 3256 // (https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html) 3257 // for data pipelines. 3258 // 3259 // * ServiceRole - A role (DataPipelineDefaultRole) assumed by the AWS Data 3260 // Pipeline service to monitor the progress of the copy task from Amazon 3261 // RDS to Amazon S3. For more information, see Role templates (https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html) 3262 // for data pipelines. 3263 // 3264 // * SecurityInfo - The security information to use to access an RDS DB instance. 3265 // You need to set up appropriate ingress rules for the security entity IDs 3266 // provided to allow access to the Amazon RDS instance. Specify a [SubnetId, 3267 // SecurityGroupIds] pair for a VPC-based RDS DB instance. 3268 // 3269 // * SelectSqlQuery - A query that is used to retrieve the observation data 3270 // for the Datasource. 3271 // 3272 // * S3StagingLocation - The Amazon S3 location for staging Amazon RDS data. 3273 // The data retrieved from Amazon RDS using SelectSqlQuery is stored in this 3274 // location. 3275 // 3276 // * DataSchemaUri - The Amazon S3 location of the DataSchema. 3277 // 3278 // * DataSchema - A JSON string representing the schema. This is not required 3279 // if DataSchemaUri is specified. 3280 // 3281 // * DataRearrangement - A JSON string that represents the splitting and 3282 // rearrangement requirements for the Datasource. Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}" 3283 // 3284 // RDSData is a required field 3285 RDSData *RDSDataSpec `type:"structure" required:"true"` 3286 3287 // The role that Amazon ML assumes on behalf of the user to create and activate 3288 // a data pipeline in the user's account and copy data using the SelectSqlQuery 3289 // query from Amazon RDS to Amazon S3. 3290 // 3291 // RoleARN is a required field 3292 RoleARN *string `min:"1" type:"string" required:"true"` 3293 } 3294 3295 // String returns the string representation. 3296 // 3297 // API parameter values that are decorated as "sensitive" in the API will not 3298 // be included in the string output. The member name will be present, but the 3299 // value will be replaced with "sensitive". 3300 func (s CreateDataSourceFromRDSInput) String() string { 3301 return awsutil.Prettify(s) 3302 } 3303 3304 // GoString returns the string representation. 3305 // 3306 // API parameter values that are decorated as "sensitive" in the API will not 3307 // be included in the string output. The member name will be present, but the 3308 // value will be replaced with "sensitive". 3309 func (s CreateDataSourceFromRDSInput) GoString() string { 3310 return s.String() 3311 } 3312 3313 // Validate inspects the fields of the type to determine if they are valid. 3314 func (s *CreateDataSourceFromRDSInput) Validate() error { 3315 invalidParams := request.ErrInvalidParams{Context: "CreateDataSourceFromRDSInput"} 3316 if s.DataSourceId == nil { 3317 invalidParams.Add(request.NewErrParamRequired("DataSourceId")) 3318 } 3319 if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { 3320 invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) 3321 } 3322 if s.RDSData == nil { 3323 invalidParams.Add(request.NewErrParamRequired("RDSData")) 3324 } 3325 if s.RoleARN == nil { 3326 invalidParams.Add(request.NewErrParamRequired("RoleARN")) 3327 } 3328 if s.RoleARN != nil && len(*s.RoleARN) < 1 { 3329 invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1)) 3330 } 3331 if s.RDSData != nil { 3332 if err := s.RDSData.Validate(); err != nil { 3333 invalidParams.AddNested("RDSData", err.(request.ErrInvalidParams)) 3334 } 3335 } 3336 3337 if invalidParams.Len() > 0 { 3338 return invalidParams 3339 } 3340 return nil 3341 } 3342 3343 // SetComputeStatistics sets the ComputeStatistics field's value. 3344 func (s *CreateDataSourceFromRDSInput) SetComputeStatistics(v bool) *CreateDataSourceFromRDSInput { 3345 s.ComputeStatistics = &v 3346 return s 3347 } 3348 3349 // SetDataSourceId sets the DataSourceId field's value. 3350 func (s *CreateDataSourceFromRDSInput) SetDataSourceId(v string) *CreateDataSourceFromRDSInput { 3351 s.DataSourceId = &v 3352 return s 3353 } 3354 3355 // SetDataSourceName sets the DataSourceName field's value. 3356 func (s *CreateDataSourceFromRDSInput) SetDataSourceName(v string) *CreateDataSourceFromRDSInput { 3357 s.DataSourceName = &v 3358 return s 3359 } 3360 3361 // SetRDSData sets the RDSData field's value. 3362 func (s *CreateDataSourceFromRDSInput) SetRDSData(v *RDSDataSpec) *CreateDataSourceFromRDSInput { 3363 s.RDSData = v 3364 return s 3365 } 3366 3367 // SetRoleARN sets the RoleARN field's value. 3368 func (s *CreateDataSourceFromRDSInput) SetRoleARN(v string) *CreateDataSourceFromRDSInput { 3369 s.RoleARN = &v 3370 return s 3371 } 3372 3373 // Represents the output of a CreateDataSourceFromRDS operation, and is an acknowledgement 3374 // that Amazon ML received the request. 3375 // 3376 // The CreateDataSourceFromRDS> operation is asynchronous. You can poll for 3377 // updates by using the GetBatchPrediction operation and checking the Status 3378 // parameter. You can inspect the Message when Status shows up as FAILED. You 3379 // can also check the progress of the copy operation by going to the DataPipeline 3380 // console and looking up the pipeline using the pipelineId from the describe 3381 // call. 3382 type CreateDataSourceFromRDSOutput struct { 3383 _ struct{} `type:"structure"` 3384 3385 // A user-supplied ID that uniquely identifies the datasource. This value should 3386 // be identical to the value of the DataSourceID in the request. 3387 DataSourceId *string `min:"1" type:"string"` 3388 } 3389 3390 // String returns the string representation. 3391 // 3392 // API parameter values that are decorated as "sensitive" in the API will not 3393 // be included in the string output. The member name will be present, but the 3394 // value will be replaced with "sensitive". 3395 func (s CreateDataSourceFromRDSOutput) String() string { 3396 return awsutil.Prettify(s) 3397 } 3398 3399 // GoString returns the string representation. 3400 // 3401 // API parameter values that are decorated as "sensitive" in the API will not 3402 // be included in the string output. The member name will be present, but the 3403 // value will be replaced with "sensitive". 3404 func (s CreateDataSourceFromRDSOutput) GoString() string { 3405 return s.String() 3406 } 3407 3408 // SetDataSourceId sets the DataSourceId field's value. 3409 func (s *CreateDataSourceFromRDSOutput) SetDataSourceId(v string) *CreateDataSourceFromRDSOutput { 3410 s.DataSourceId = &v 3411 return s 3412 } 3413 3414 type CreateDataSourceFromRedshiftInput struct { 3415 _ struct{} `type:"structure"` 3416 3417 // The compute statistics for a DataSource. The statistics are generated from 3418 // the observation data referenced by a DataSource. Amazon ML uses the statistics 3419 // internally during MLModel training. This parameter must be set to true if 3420 // the DataSource needs to be used for MLModel training. 3421 ComputeStatistics *bool `type:"boolean"` 3422 3423 // A user-supplied ID that uniquely identifies the DataSource. 3424 // 3425 // DataSourceId is a required field 3426 DataSourceId *string `min:"1" type:"string" required:"true"` 3427 3428 // A user-supplied name or description of the DataSource. 3429 DataSourceName *string `type:"string"` 3430 3431 // The data specification of an Amazon Redshift DataSource: 3432 // 3433 // * DatabaseInformation - DatabaseName - The name of the Amazon Redshift 3434 // database. ClusterIdentifier - The unique ID for the Amazon Redshift cluster. 3435 // 3436 // * DatabaseCredentials - The AWS Identity and Access Management (IAM) credentials 3437 // that are used to connect to the Amazon Redshift database. 3438 // 3439 // * SelectSqlQuery - The query that is used to retrieve the observation 3440 // data for the Datasource. 3441 // 3442 // * S3StagingLocation - The Amazon Simple Storage Service (Amazon S3) location 3443 // for staging Amazon Redshift data. The data retrieved from Amazon Redshift 3444 // using the SelectSqlQuery query is stored in this location. 3445 // 3446 // * DataSchemaUri - The Amazon S3 location of the DataSchema. 3447 // 3448 // * DataSchema - A JSON string representing the schema. This is not required 3449 // if DataSchemaUri is specified. 3450 // 3451 // * DataRearrangement - A JSON string that represents the splitting and 3452 // rearrangement requirements for the DataSource. Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}" 3453 // 3454 // DataSpec is a required field 3455 DataSpec *RedshiftDataSpec `type:"structure" required:"true"` 3456 3457 // A fully specified role Amazon Resource Name (ARN). Amazon ML assumes the 3458 // role on behalf of the user to create the following: 3459 // 3460 // * A security group to allow Amazon ML to execute the SelectSqlQuery query 3461 // on an Amazon Redshift cluster 3462 // 3463 // * An Amazon S3 bucket policy to grant Amazon ML read/write permissions 3464 // on the S3StagingLocation 3465 // 3466 // RoleARN is a required field 3467 RoleARN *string `min:"1" type:"string" required:"true"` 3468 } 3469 3470 // String returns the string representation. 3471 // 3472 // API parameter values that are decorated as "sensitive" in the API will not 3473 // be included in the string output. The member name will be present, but the 3474 // value will be replaced with "sensitive". 3475 func (s CreateDataSourceFromRedshiftInput) String() string { 3476 return awsutil.Prettify(s) 3477 } 3478 3479 // GoString returns the string representation. 3480 // 3481 // API parameter values that are decorated as "sensitive" in the API will not 3482 // be included in the string output. The member name will be present, but the 3483 // value will be replaced with "sensitive". 3484 func (s CreateDataSourceFromRedshiftInput) GoString() string { 3485 return s.String() 3486 } 3487 3488 // Validate inspects the fields of the type to determine if they are valid. 3489 func (s *CreateDataSourceFromRedshiftInput) Validate() error { 3490 invalidParams := request.ErrInvalidParams{Context: "CreateDataSourceFromRedshiftInput"} 3491 if s.DataSourceId == nil { 3492 invalidParams.Add(request.NewErrParamRequired("DataSourceId")) 3493 } 3494 if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { 3495 invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) 3496 } 3497 if s.DataSpec == nil { 3498 invalidParams.Add(request.NewErrParamRequired("DataSpec")) 3499 } 3500 if s.RoleARN == nil { 3501 invalidParams.Add(request.NewErrParamRequired("RoleARN")) 3502 } 3503 if s.RoleARN != nil && len(*s.RoleARN) < 1 { 3504 invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1)) 3505 } 3506 if s.DataSpec != nil { 3507 if err := s.DataSpec.Validate(); err != nil { 3508 invalidParams.AddNested("DataSpec", err.(request.ErrInvalidParams)) 3509 } 3510 } 3511 3512 if invalidParams.Len() > 0 { 3513 return invalidParams 3514 } 3515 return nil 3516 } 3517 3518 // SetComputeStatistics sets the ComputeStatistics field's value. 3519 func (s *CreateDataSourceFromRedshiftInput) SetComputeStatistics(v bool) *CreateDataSourceFromRedshiftInput { 3520 s.ComputeStatistics = &v 3521 return s 3522 } 3523 3524 // SetDataSourceId sets the DataSourceId field's value. 3525 func (s *CreateDataSourceFromRedshiftInput) SetDataSourceId(v string) *CreateDataSourceFromRedshiftInput { 3526 s.DataSourceId = &v 3527 return s 3528 } 3529 3530 // SetDataSourceName sets the DataSourceName field's value. 3531 func (s *CreateDataSourceFromRedshiftInput) SetDataSourceName(v string) *CreateDataSourceFromRedshiftInput { 3532 s.DataSourceName = &v 3533 return s 3534 } 3535 3536 // SetDataSpec sets the DataSpec field's value. 3537 func (s *CreateDataSourceFromRedshiftInput) SetDataSpec(v *RedshiftDataSpec) *CreateDataSourceFromRedshiftInput { 3538 s.DataSpec = v 3539 return s 3540 } 3541 3542 // SetRoleARN sets the RoleARN field's value. 3543 func (s *CreateDataSourceFromRedshiftInput) SetRoleARN(v string) *CreateDataSourceFromRedshiftInput { 3544 s.RoleARN = &v 3545 return s 3546 } 3547 3548 // Represents the output of a CreateDataSourceFromRedshift operation, and is 3549 // an acknowledgement that Amazon ML received the request. 3550 // 3551 // The CreateDataSourceFromRedshift operation is asynchronous. You can poll 3552 // for updates by using the GetBatchPrediction operation and checking the Status 3553 // parameter. 3554 type CreateDataSourceFromRedshiftOutput struct { 3555 _ struct{} `type:"structure"` 3556 3557 // A user-supplied ID that uniquely identifies the datasource. This value should 3558 // be identical to the value of the DataSourceID in the request. 3559 DataSourceId *string `min:"1" type:"string"` 3560 } 3561 3562 // String returns the string representation. 3563 // 3564 // API parameter values that are decorated as "sensitive" in the API will not 3565 // be included in the string output. The member name will be present, but the 3566 // value will be replaced with "sensitive". 3567 func (s CreateDataSourceFromRedshiftOutput) String() string { 3568 return awsutil.Prettify(s) 3569 } 3570 3571 // GoString returns the string representation. 3572 // 3573 // API parameter values that are decorated as "sensitive" in the API will not 3574 // be included in the string output. The member name will be present, but the 3575 // value will be replaced with "sensitive". 3576 func (s CreateDataSourceFromRedshiftOutput) GoString() string { 3577 return s.String() 3578 } 3579 3580 // SetDataSourceId sets the DataSourceId field's value. 3581 func (s *CreateDataSourceFromRedshiftOutput) SetDataSourceId(v string) *CreateDataSourceFromRedshiftOutput { 3582 s.DataSourceId = &v 3583 return s 3584 } 3585 3586 type CreateDataSourceFromS3Input struct { 3587 _ struct{} `type:"structure"` 3588 3589 // The compute statistics for a DataSource. The statistics are generated from 3590 // the observation data referenced by a DataSource. Amazon ML uses the statistics 3591 // internally during MLModel training. This parameter must be set to true if 3592 // the DataSource needs to be used for MLModel training. 3593 ComputeStatistics *bool `type:"boolean"` 3594 3595 // A user-supplied identifier that uniquely identifies the DataSource. 3596 // 3597 // DataSourceId is a required field 3598 DataSourceId *string `min:"1" type:"string" required:"true"` 3599 3600 // A user-supplied name or description of the DataSource. 3601 DataSourceName *string `type:"string"` 3602 3603 // The data specification of a DataSource: 3604 // 3605 // * DataLocationS3 - The Amazon S3 location of the observation data. 3606 // 3607 // * DataSchemaLocationS3 - The Amazon S3 location of the DataSchema. 3608 // 3609 // * DataSchema - A JSON string representing the schema. This is not required 3610 // if DataSchemaUri is specified. 3611 // 3612 // * DataRearrangement - A JSON string that represents the splitting and 3613 // rearrangement requirements for the Datasource. Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}" 3614 // 3615 // DataSpec is a required field 3616 DataSpec *S3DataSpec `type:"structure" required:"true"` 3617 } 3618 3619 // String returns the string representation. 3620 // 3621 // API parameter values that are decorated as "sensitive" in the API will not 3622 // be included in the string output. The member name will be present, but the 3623 // value will be replaced with "sensitive". 3624 func (s CreateDataSourceFromS3Input) String() string { 3625 return awsutil.Prettify(s) 3626 } 3627 3628 // GoString returns the string representation. 3629 // 3630 // API parameter values that are decorated as "sensitive" in the API will not 3631 // be included in the string output. The member name will be present, but the 3632 // value will be replaced with "sensitive". 3633 func (s CreateDataSourceFromS3Input) GoString() string { 3634 return s.String() 3635 } 3636 3637 // Validate inspects the fields of the type to determine if they are valid. 3638 func (s *CreateDataSourceFromS3Input) Validate() error { 3639 invalidParams := request.ErrInvalidParams{Context: "CreateDataSourceFromS3Input"} 3640 if s.DataSourceId == nil { 3641 invalidParams.Add(request.NewErrParamRequired("DataSourceId")) 3642 } 3643 if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { 3644 invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) 3645 } 3646 if s.DataSpec == nil { 3647 invalidParams.Add(request.NewErrParamRequired("DataSpec")) 3648 } 3649 if s.DataSpec != nil { 3650 if err := s.DataSpec.Validate(); err != nil { 3651 invalidParams.AddNested("DataSpec", err.(request.ErrInvalidParams)) 3652 } 3653 } 3654 3655 if invalidParams.Len() > 0 { 3656 return invalidParams 3657 } 3658 return nil 3659 } 3660 3661 // SetComputeStatistics sets the ComputeStatistics field's value. 3662 func (s *CreateDataSourceFromS3Input) SetComputeStatistics(v bool) *CreateDataSourceFromS3Input { 3663 s.ComputeStatistics = &v 3664 return s 3665 } 3666 3667 // SetDataSourceId sets the DataSourceId field's value. 3668 func (s *CreateDataSourceFromS3Input) SetDataSourceId(v string) *CreateDataSourceFromS3Input { 3669 s.DataSourceId = &v 3670 return s 3671 } 3672 3673 // SetDataSourceName sets the DataSourceName field's value. 3674 func (s *CreateDataSourceFromS3Input) SetDataSourceName(v string) *CreateDataSourceFromS3Input { 3675 s.DataSourceName = &v 3676 return s 3677 } 3678 3679 // SetDataSpec sets the DataSpec field's value. 3680 func (s *CreateDataSourceFromS3Input) SetDataSpec(v *S3DataSpec) *CreateDataSourceFromS3Input { 3681 s.DataSpec = v 3682 return s 3683 } 3684 3685 // Represents the output of a CreateDataSourceFromS3 operation, and is an acknowledgement 3686 // that Amazon ML received the request. 3687 // 3688 // The CreateDataSourceFromS3 operation is asynchronous. You can poll for updates 3689 // by using the GetBatchPrediction operation and checking the Status parameter. 3690 type CreateDataSourceFromS3Output struct { 3691 _ struct{} `type:"structure"` 3692 3693 // A user-supplied ID that uniquely identifies the DataSource. This value should 3694 // be identical to the value of the DataSourceID in the request. 3695 DataSourceId *string `min:"1" type:"string"` 3696 } 3697 3698 // String returns the string representation. 3699 // 3700 // API parameter values that are decorated as "sensitive" in the API will not 3701 // be included in the string output. The member name will be present, but the 3702 // value will be replaced with "sensitive". 3703 func (s CreateDataSourceFromS3Output) String() string { 3704 return awsutil.Prettify(s) 3705 } 3706 3707 // GoString returns the string representation. 3708 // 3709 // API parameter values that are decorated as "sensitive" in the API will not 3710 // be included in the string output. The member name will be present, but the 3711 // value will be replaced with "sensitive". 3712 func (s CreateDataSourceFromS3Output) GoString() string { 3713 return s.String() 3714 } 3715 3716 // SetDataSourceId sets the DataSourceId field's value. 3717 func (s *CreateDataSourceFromS3Output) SetDataSourceId(v string) *CreateDataSourceFromS3Output { 3718 s.DataSourceId = &v 3719 return s 3720 } 3721 3722 type CreateEvaluationInput struct { 3723 _ struct{} `type:"structure"` 3724 3725 // The ID of the DataSource for the evaluation. The schema of the DataSource 3726 // must match the schema used to create the MLModel. 3727 // 3728 // EvaluationDataSourceId is a required field 3729 EvaluationDataSourceId *string `min:"1" type:"string" required:"true"` 3730 3731 // A user-supplied ID that uniquely identifies the Evaluation. 3732 // 3733 // EvaluationId is a required field 3734 EvaluationId *string `min:"1" type:"string" required:"true"` 3735 3736 // A user-supplied name or description of the Evaluation. 3737 EvaluationName *string `type:"string"` 3738 3739 // The ID of the MLModel to evaluate. 3740 // 3741 // The schema used in creating the MLModel must match the schema of the DataSource 3742 // used in the Evaluation. 3743 // 3744 // MLModelId is a required field 3745 MLModelId *string `min:"1" type:"string" required:"true"` 3746 } 3747 3748 // String returns the string representation. 3749 // 3750 // API parameter values that are decorated as "sensitive" in the API will not 3751 // be included in the string output. The member name will be present, but the 3752 // value will be replaced with "sensitive". 3753 func (s CreateEvaluationInput) String() string { 3754 return awsutil.Prettify(s) 3755 } 3756 3757 // GoString returns the string representation. 3758 // 3759 // API parameter values that are decorated as "sensitive" in the API will not 3760 // be included in the string output. The member name will be present, but the 3761 // value will be replaced with "sensitive". 3762 func (s CreateEvaluationInput) GoString() string { 3763 return s.String() 3764 } 3765 3766 // Validate inspects the fields of the type to determine if they are valid. 3767 func (s *CreateEvaluationInput) Validate() error { 3768 invalidParams := request.ErrInvalidParams{Context: "CreateEvaluationInput"} 3769 if s.EvaluationDataSourceId == nil { 3770 invalidParams.Add(request.NewErrParamRequired("EvaluationDataSourceId")) 3771 } 3772 if s.EvaluationDataSourceId != nil && len(*s.EvaluationDataSourceId) < 1 { 3773 invalidParams.Add(request.NewErrParamMinLen("EvaluationDataSourceId", 1)) 3774 } 3775 if s.EvaluationId == nil { 3776 invalidParams.Add(request.NewErrParamRequired("EvaluationId")) 3777 } 3778 if s.EvaluationId != nil && len(*s.EvaluationId) < 1 { 3779 invalidParams.Add(request.NewErrParamMinLen("EvaluationId", 1)) 3780 } 3781 if s.MLModelId == nil { 3782 invalidParams.Add(request.NewErrParamRequired("MLModelId")) 3783 } 3784 if s.MLModelId != nil && len(*s.MLModelId) < 1 { 3785 invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) 3786 } 3787 3788 if invalidParams.Len() > 0 { 3789 return invalidParams 3790 } 3791 return nil 3792 } 3793 3794 // SetEvaluationDataSourceId sets the EvaluationDataSourceId field's value. 3795 func (s *CreateEvaluationInput) SetEvaluationDataSourceId(v string) *CreateEvaluationInput { 3796 s.EvaluationDataSourceId = &v 3797 return s 3798 } 3799 3800 // SetEvaluationId sets the EvaluationId field's value. 3801 func (s *CreateEvaluationInput) SetEvaluationId(v string) *CreateEvaluationInput { 3802 s.EvaluationId = &v 3803 return s 3804 } 3805 3806 // SetEvaluationName sets the EvaluationName field's value. 3807 func (s *CreateEvaluationInput) SetEvaluationName(v string) *CreateEvaluationInput { 3808 s.EvaluationName = &v 3809 return s 3810 } 3811 3812 // SetMLModelId sets the MLModelId field's value. 3813 func (s *CreateEvaluationInput) SetMLModelId(v string) *CreateEvaluationInput { 3814 s.MLModelId = &v 3815 return s 3816 } 3817 3818 // Represents the output of a CreateEvaluation operation, and is an acknowledgement 3819 // that Amazon ML received the request. 3820 // 3821 // CreateEvaluation operation is asynchronous. You can poll for status updates 3822 // by using the GetEvcaluation operation and checking the Status parameter. 3823 type CreateEvaluationOutput struct { 3824 _ struct{} `type:"structure"` 3825 3826 // The user-supplied ID that uniquely identifies the Evaluation. This value 3827 // should be identical to the value of the EvaluationId in the request. 3828 EvaluationId *string `min:"1" type:"string"` 3829 } 3830 3831 // String returns the string representation. 3832 // 3833 // API parameter values that are decorated as "sensitive" in the API will not 3834 // be included in the string output. The member name will be present, but the 3835 // value will be replaced with "sensitive". 3836 func (s CreateEvaluationOutput) String() string { 3837 return awsutil.Prettify(s) 3838 } 3839 3840 // GoString returns the string representation. 3841 // 3842 // API parameter values that are decorated as "sensitive" in the API will not 3843 // be included in the string output. The member name will be present, but the 3844 // value will be replaced with "sensitive". 3845 func (s CreateEvaluationOutput) GoString() string { 3846 return s.String() 3847 } 3848 3849 // SetEvaluationId sets the EvaluationId field's value. 3850 func (s *CreateEvaluationOutput) SetEvaluationId(v string) *CreateEvaluationOutput { 3851 s.EvaluationId = &v 3852 return s 3853 } 3854 3855 type CreateMLModelInput struct { 3856 _ struct{} `type:"structure"` 3857 3858 // A user-supplied ID that uniquely identifies the MLModel. 3859 // 3860 // MLModelId is a required field 3861 MLModelId *string `min:"1" type:"string" required:"true"` 3862 3863 // A user-supplied name or description of the MLModel. 3864 MLModelName *string `type:"string"` 3865 3866 // The category of supervised learning that this MLModel will address. Choose 3867 // from the following types: 3868 // 3869 // * Choose REGRESSION if the MLModel will be used to predict a numeric value. 3870 // 3871 // * Choose BINARY if the MLModel result has two possible values. 3872 // 3873 // * Choose MULTICLASS if the MLModel result has a limited number of values. 3874 // 3875 // For more information, see the Amazon Machine Learning Developer Guide (https://docs.aws.amazon.com/machine-learning/latest/dg). 3876 // 3877 // MLModelType is a required field 3878 MLModelType *string `type:"string" required:"true" enum:"MLModelType"` 3879 3880 // A list of the training parameters in the MLModel. The list is implemented 3881 // as a map of key-value pairs. 3882 // 3883 // The following is the current set of training parameters: 3884 // 3885 // * sgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending 3886 // on the input data, the size of the model might affect its performance. 3887 // The value is an integer that ranges from 100000 to 2147483648. The default 3888 // value is 33554432. 3889 // 3890 // * sgd.maxPasses - The number of times that the training process traverses 3891 // the observations to build the MLModel. The value is an integer that ranges 3892 // from 1 to 10000. The default value is 10. 3893 // 3894 // * sgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling 3895 // the data improves a model's ability to find the optimal solution for a 3896 // variety of data types. The valid values are auto and none. The default 3897 // value is none. We strongly recommend that you shuffle your data. 3898 // 3899 // * sgd.l1RegularizationAmount - The coefficient regularization L1 norm. 3900 // It controls overfitting the data by penalizing large coefficients. This 3901 // tends to drive coefficients to zero, resulting in a sparse feature set. 3902 // If you use this parameter, start by specifying a small value, such as 3903 // 1.0E-08. The value is a double that ranges from 0 to MAX_DOUBLE. The default 3904 // is to not use L1 normalization. This parameter can't be used when L2 is 3905 // specified. Use this parameter sparingly. 3906 // 3907 // * sgd.l2RegularizationAmount - The coefficient regularization L2 norm. 3908 // It controls overfitting the data by penalizing large coefficients. This 3909 // tends to drive coefficients to small, nonzero values. If you use this 3910 // parameter, start by specifying a small value, such as 1.0E-08. The value 3911 // is a double that ranges from 0 to MAX_DOUBLE. The default is to not use 3912 // L2 normalization. This parameter can't be used when L1 is specified. Use 3913 // this parameter sparingly. 3914 Parameters map[string]*string `type:"map"` 3915 3916 // The data recipe for creating the MLModel. You must specify either the recipe 3917 // or its URI. If you don't specify a recipe or its URI, Amazon ML creates a 3918 // default. 3919 Recipe *string `type:"string"` 3920 3921 // The Amazon Simple Storage Service (Amazon S3) location and file name that 3922 // contains the MLModel recipe. You must specify either the recipe or its URI. 3923 // If you don't specify a recipe or its URI, Amazon ML creates a default. 3924 RecipeUri *string `type:"string"` 3925 3926 // The DataSource that points to the training data. 3927 // 3928 // TrainingDataSourceId is a required field 3929 TrainingDataSourceId *string `min:"1" type:"string" required:"true"` 3930 } 3931 3932 // String returns the string representation. 3933 // 3934 // API parameter values that are decorated as "sensitive" in the API will not 3935 // be included in the string output. The member name will be present, but the 3936 // value will be replaced with "sensitive". 3937 func (s CreateMLModelInput) String() string { 3938 return awsutil.Prettify(s) 3939 } 3940 3941 // GoString returns the string representation. 3942 // 3943 // API parameter values that are decorated as "sensitive" in the API will not 3944 // be included in the string output. The member name will be present, but the 3945 // value will be replaced with "sensitive". 3946 func (s CreateMLModelInput) GoString() string { 3947 return s.String() 3948 } 3949 3950 // Validate inspects the fields of the type to determine if they are valid. 3951 func (s *CreateMLModelInput) Validate() error { 3952 invalidParams := request.ErrInvalidParams{Context: "CreateMLModelInput"} 3953 if s.MLModelId == nil { 3954 invalidParams.Add(request.NewErrParamRequired("MLModelId")) 3955 } 3956 if s.MLModelId != nil && len(*s.MLModelId) < 1 { 3957 invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) 3958 } 3959 if s.MLModelType == nil { 3960 invalidParams.Add(request.NewErrParamRequired("MLModelType")) 3961 } 3962 if s.TrainingDataSourceId == nil { 3963 invalidParams.Add(request.NewErrParamRequired("TrainingDataSourceId")) 3964 } 3965 if s.TrainingDataSourceId != nil && len(*s.TrainingDataSourceId) < 1 { 3966 invalidParams.Add(request.NewErrParamMinLen("TrainingDataSourceId", 1)) 3967 } 3968 3969 if invalidParams.Len() > 0 { 3970 return invalidParams 3971 } 3972 return nil 3973 } 3974 3975 // SetMLModelId sets the MLModelId field's value. 3976 func (s *CreateMLModelInput) SetMLModelId(v string) *CreateMLModelInput { 3977 s.MLModelId = &v 3978 return s 3979 } 3980 3981 // SetMLModelName sets the MLModelName field's value. 3982 func (s *CreateMLModelInput) SetMLModelName(v string) *CreateMLModelInput { 3983 s.MLModelName = &v 3984 return s 3985 } 3986 3987 // SetMLModelType sets the MLModelType field's value. 3988 func (s *CreateMLModelInput) SetMLModelType(v string) *CreateMLModelInput { 3989 s.MLModelType = &v 3990 return s 3991 } 3992 3993 // SetParameters sets the Parameters field's value. 3994 func (s *CreateMLModelInput) SetParameters(v map[string]*string) *CreateMLModelInput { 3995 s.Parameters = v 3996 return s 3997 } 3998 3999 // SetRecipe sets the Recipe field's value. 4000 func (s *CreateMLModelInput) SetRecipe(v string) *CreateMLModelInput { 4001 s.Recipe = &v 4002 return s 4003 } 4004 4005 // SetRecipeUri sets the RecipeUri field's value. 4006 func (s *CreateMLModelInput) SetRecipeUri(v string) *CreateMLModelInput { 4007 s.RecipeUri = &v 4008 return s 4009 } 4010 4011 // SetTrainingDataSourceId sets the TrainingDataSourceId field's value. 4012 func (s *CreateMLModelInput) SetTrainingDataSourceId(v string) *CreateMLModelInput { 4013 s.TrainingDataSourceId = &v 4014 return s 4015 } 4016 4017 // Represents the output of a CreateMLModel operation, and is an acknowledgement 4018 // that Amazon ML received the request. 4019 // 4020 // The CreateMLModel operation is asynchronous. You can poll for status updates 4021 // by using the GetMLModel operation and checking the Status parameter. 4022 type CreateMLModelOutput struct { 4023 _ struct{} `type:"structure"` 4024 4025 // A user-supplied ID that uniquely identifies the MLModel. This value should 4026 // be identical to the value of the MLModelId in the request. 4027 MLModelId *string `min:"1" type:"string"` 4028 } 4029 4030 // String returns the string representation. 4031 // 4032 // API parameter values that are decorated as "sensitive" in the API will not 4033 // be included in the string output. The member name will be present, but the 4034 // value will be replaced with "sensitive". 4035 func (s CreateMLModelOutput) String() string { 4036 return awsutil.Prettify(s) 4037 } 4038 4039 // GoString returns the string representation. 4040 // 4041 // API parameter values that are decorated as "sensitive" in the API will not 4042 // be included in the string output. The member name will be present, but the 4043 // value will be replaced with "sensitive". 4044 func (s CreateMLModelOutput) GoString() string { 4045 return s.String() 4046 } 4047 4048 // SetMLModelId sets the MLModelId field's value. 4049 func (s *CreateMLModelOutput) SetMLModelId(v string) *CreateMLModelOutput { 4050 s.MLModelId = &v 4051 return s 4052 } 4053 4054 type CreateRealtimeEndpointInput struct { 4055 _ struct{} `type:"structure"` 4056 4057 // The ID assigned to the MLModel during creation. 4058 // 4059 // MLModelId is a required field 4060 MLModelId *string `min:"1" type:"string" required:"true"` 4061 } 4062 4063 // String returns the string representation. 4064 // 4065 // API parameter values that are decorated as "sensitive" in the API will not 4066 // be included in the string output. The member name will be present, but the 4067 // value will be replaced with "sensitive". 4068 func (s CreateRealtimeEndpointInput) String() string { 4069 return awsutil.Prettify(s) 4070 } 4071 4072 // GoString returns the string representation. 4073 // 4074 // API parameter values that are decorated as "sensitive" in the API will not 4075 // be included in the string output. The member name will be present, but the 4076 // value will be replaced with "sensitive". 4077 func (s CreateRealtimeEndpointInput) GoString() string { 4078 return s.String() 4079 } 4080 4081 // Validate inspects the fields of the type to determine if they are valid. 4082 func (s *CreateRealtimeEndpointInput) Validate() error { 4083 invalidParams := request.ErrInvalidParams{Context: "CreateRealtimeEndpointInput"} 4084 if s.MLModelId == nil { 4085 invalidParams.Add(request.NewErrParamRequired("MLModelId")) 4086 } 4087 if s.MLModelId != nil && len(*s.MLModelId) < 1 { 4088 invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) 4089 } 4090 4091 if invalidParams.Len() > 0 { 4092 return invalidParams 4093 } 4094 return nil 4095 } 4096 4097 // SetMLModelId sets the MLModelId field's value. 4098 func (s *CreateRealtimeEndpointInput) SetMLModelId(v string) *CreateRealtimeEndpointInput { 4099 s.MLModelId = &v 4100 return s 4101 } 4102 4103 // Represents the output of an CreateRealtimeEndpoint operation. 4104 // 4105 // The result contains the MLModelId and the endpoint information for the MLModel. 4106 // 4107 // Note: The endpoint information includes the URI of the MLModel; that is, 4108 // the location to send online prediction requests for the specified MLModel. 4109 type CreateRealtimeEndpointOutput struct { 4110 _ struct{} `type:"structure"` 4111 4112 // A user-supplied ID that uniquely identifies the MLModel. This value should 4113 // be identical to the value of the MLModelId in the request. 4114 MLModelId *string `min:"1" type:"string"` 4115 4116 // The endpoint information of the MLModel 4117 RealtimeEndpointInfo *RealtimeEndpointInfo `type:"structure"` 4118 } 4119 4120 // String returns the string representation. 4121 // 4122 // API parameter values that are decorated as "sensitive" in the API will not 4123 // be included in the string output. The member name will be present, but the 4124 // value will be replaced with "sensitive". 4125 func (s CreateRealtimeEndpointOutput) String() string { 4126 return awsutil.Prettify(s) 4127 } 4128 4129 // GoString returns the string representation. 4130 // 4131 // API parameter values that are decorated as "sensitive" in the API will not 4132 // be included in the string output. The member name will be present, but the 4133 // value will be replaced with "sensitive". 4134 func (s CreateRealtimeEndpointOutput) GoString() string { 4135 return s.String() 4136 } 4137 4138 // SetMLModelId sets the MLModelId field's value. 4139 func (s *CreateRealtimeEndpointOutput) SetMLModelId(v string) *CreateRealtimeEndpointOutput { 4140 s.MLModelId = &v 4141 return s 4142 } 4143 4144 // SetRealtimeEndpointInfo sets the RealtimeEndpointInfo field's value. 4145 func (s *CreateRealtimeEndpointOutput) SetRealtimeEndpointInfo(v *RealtimeEndpointInfo) *CreateRealtimeEndpointOutput { 4146 s.RealtimeEndpointInfo = v 4147 return s 4148 } 4149 4150 // Represents the output of the GetDataSource operation. 4151 // 4152 // The content consists of the detailed metadata and data file information and 4153 // the current status of the DataSource. 4154 type DataSource struct { 4155 _ struct{} `type:"structure"` 4156 4157 // The parameter is true if statistics need to be generated from the observation 4158 // data. 4159 ComputeStatistics *bool `type:"boolean"` 4160 4161 // Long integer type that is a 64-bit signed number. 4162 ComputeTime *int64 `type:"long"` 4163 4164 // The time that the DataSource was created. The time is expressed in epoch 4165 // time. 4166 CreatedAt *time.Time `type:"timestamp"` 4167 4168 // The AWS user account from which the DataSource was created. The account type 4169 // can be either an AWS root account or an AWS Identity and Access Management 4170 // (IAM) user account. 4171 CreatedByIamUser *string `type:"string"` 4172 4173 // The location and name of the data in Amazon Simple Storage Service (Amazon 4174 // S3) that is used by a DataSource. 4175 DataLocationS3 *string `type:"string"` 4176 4177 // A JSON string that represents the splitting and rearrangement requirement 4178 // used when this DataSource was created. 4179 DataRearrangement *string `type:"string"` 4180 4181 // The total number of observations contained in the data files that the DataSource 4182 // references. 4183 DataSizeInBytes *int64 `type:"long"` 4184 4185 // The ID that is assigned to the DataSource during creation. 4186 DataSourceId *string `min:"1" type:"string"` 4187 4188 // A timestamp represented in epoch time. 4189 FinishedAt *time.Time `type:"timestamp"` 4190 4191 // The time of the most recent edit to the BatchPrediction. The time is expressed 4192 // in epoch time. 4193 LastUpdatedAt *time.Time `type:"timestamp"` 4194 4195 // A description of the most recent details about creating the DataSource. 4196 Message *string `type:"string"` 4197 4198 // A user-supplied name or description of the DataSource. 4199 Name *string `type:"string"` 4200 4201 // The number of data files referenced by the DataSource. 4202 NumberOfFiles *int64 `type:"long"` 4203 4204 // The datasource details that are specific to Amazon RDS. 4205 RDSMetadata *RDSMetadata `type:"structure"` 4206 4207 // Describes the DataSource details specific to Amazon Redshift. 4208 RedshiftMetadata *RedshiftMetadata `type:"structure"` 4209 4210 // The Amazon Resource Name (ARN) of an AWS IAM Role (https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html#roles-about-termsandconcepts), 4211 // such as the following: arn:aws:iam::account:role/rolename. 4212 RoleARN *string `min:"1" type:"string"` 4213 4214 // A timestamp represented in epoch time. 4215 StartedAt *time.Time `type:"timestamp"` 4216 4217 // The current status of the DataSource. This element can have one of the following 4218 // values: 4219 // 4220 // * PENDING - Amazon Machine Learning (Amazon ML) submitted a request to 4221 // create a DataSource. 4222 // 4223 // * INPROGRESS - The creation process is underway. 4224 // 4225 // * FAILED - The request to create a DataSource did not run to completion. 4226 // It is not usable. 4227 // 4228 // * COMPLETED - The creation process completed successfully. 4229 // 4230 // * DELETED - The DataSource is marked as deleted. It is not usable. 4231 Status *string `type:"string" enum:"EntityStatus"` 4232 } 4233 4234 // String returns the string representation. 4235 // 4236 // API parameter values that are decorated as "sensitive" in the API will not 4237 // be included in the string output. The member name will be present, but the 4238 // value will be replaced with "sensitive". 4239 func (s DataSource) String() string { 4240 return awsutil.Prettify(s) 4241 } 4242 4243 // GoString returns the string representation. 4244 // 4245 // API parameter values that are decorated as "sensitive" in the API will not 4246 // be included in the string output. The member name will be present, but the 4247 // value will be replaced with "sensitive". 4248 func (s DataSource) GoString() string { 4249 return s.String() 4250 } 4251 4252 // SetComputeStatistics sets the ComputeStatistics field's value. 4253 func (s *DataSource) SetComputeStatistics(v bool) *DataSource { 4254 s.ComputeStatistics = &v 4255 return s 4256 } 4257 4258 // SetComputeTime sets the ComputeTime field's value. 4259 func (s *DataSource) SetComputeTime(v int64) *DataSource { 4260 s.ComputeTime = &v 4261 return s 4262 } 4263 4264 // SetCreatedAt sets the CreatedAt field's value. 4265 func (s *DataSource) SetCreatedAt(v time.Time) *DataSource { 4266 s.CreatedAt = &v 4267 return s 4268 } 4269 4270 // SetCreatedByIamUser sets the CreatedByIamUser field's value. 4271 func (s *DataSource) SetCreatedByIamUser(v string) *DataSource { 4272 s.CreatedByIamUser = &v 4273 return s 4274 } 4275 4276 // SetDataLocationS3 sets the DataLocationS3 field's value. 4277 func (s *DataSource) SetDataLocationS3(v string) *DataSource { 4278 s.DataLocationS3 = &v 4279 return s 4280 } 4281 4282 // SetDataRearrangement sets the DataRearrangement field's value. 4283 func (s *DataSource) SetDataRearrangement(v string) *DataSource { 4284 s.DataRearrangement = &v 4285 return s 4286 } 4287 4288 // SetDataSizeInBytes sets the DataSizeInBytes field's value. 4289 func (s *DataSource) SetDataSizeInBytes(v int64) *DataSource { 4290 s.DataSizeInBytes = &v 4291 return s 4292 } 4293 4294 // SetDataSourceId sets the DataSourceId field's value. 4295 func (s *DataSource) SetDataSourceId(v string) *DataSource { 4296 s.DataSourceId = &v 4297 return s 4298 } 4299 4300 // SetFinishedAt sets the FinishedAt field's value. 4301 func (s *DataSource) SetFinishedAt(v time.Time) *DataSource { 4302 s.FinishedAt = &v 4303 return s 4304 } 4305 4306 // SetLastUpdatedAt sets the LastUpdatedAt field's value. 4307 func (s *DataSource) SetLastUpdatedAt(v time.Time) *DataSource { 4308 s.LastUpdatedAt = &v 4309 return s 4310 } 4311 4312 // SetMessage sets the Message field's value. 4313 func (s *DataSource) SetMessage(v string) *DataSource { 4314 s.Message = &v 4315 return s 4316 } 4317 4318 // SetName sets the Name field's value. 4319 func (s *DataSource) SetName(v string) *DataSource { 4320 s.Name = &v 4321 return s 4322 } 4323 4324 // SetNumberOfFiles sets the NumberOfFiles field's value. 4325 func (s *DataSource) SetNumberOfFiles(v int64) *DataSource { 4326 s.NumberOfFiles = &v 4327 return s 4328 } 4329 4330 // SetRDSMetadata sets the RDSMetadata field's value. 4331 func (s *DataSource) SetRDSMetadata(v *RDSMetadata) *DataSource { 4332 s.RDSMetadata = v 4333 return s 4334 } 4335 4336 // SetRedshiftMetadata sets the RedshiftMetadata field's value. 4337 func (s *DataSource) SetRedshiftMetadata(v *RedshiftMetadata) *DataSource { 4338 s.RedshiftMetadata = v 4339 return s 4340 } 4341 4342 // SetRoleARN sets the RoleARN field's value. 4343 func (s *DataSource) SetRoleARN(v string) *DataSource { 4344 s.RoleARN = &v 4345 return s 4346 } 4347 4348 // SetStartedAt sets the StartedAt field's value. 4349 func (s *DataSource) SetStartedAt(v time.Time) *DataSource { 4350 s.StartedAt = &v 4351 return s 4352 } 4353 4354 // SetStatus sets the Status field's value. 4355 func (s *DataSource) SetStatus(v string) *DataSource { 4356 s.Status = &v 4357 return s 4358 } 4359 4360 type DeleteBatchPredictionInput struct { 4361 _ struct{} `type:"structure"` 4362 4363 // A user-supplied ID that uniquely identifies the BatchPrediction. 4364 // 4365 // BatchPredictionId is a required field 4366 BatchPredictionId *string `min:"1" type:"string" required:"true"` 4367 } 4368 4369 // String returns the string representation. 4370 // 4371 // API parameter values that are decorated as "sensitive" in the API will not 4372 // be included in the string output. The member name will be present, but the 4373 // value will be replaced with "sensitive". 4374 func (s DeleteBatchPredictionInput) String() string { 4375 return awsutil.Prettify(s) 4376 } 4377 4378 // GoString returns the string representation. 4379 // 4380 // API parameter values that are decorated as "sensitive" in the API will not 4381 // be included in the string output. The member name will be present, but the 4382 // value will be replaced with "sensitive". 4383 func (s DeleteBatchPredictionInput) GoString() string { 4384 return s.String() 4385 } 4386 4387 // Validate inspects the fields of the type to determine if they are valid. 4388 func (s *DeleteBatchPredictionInput) Validate() error { 4389 invalidParams := request.ErrInvalidParams{Context: "DeleteBatchPredictionInput"} 4390 if s.BatchPredictionId == nil { 4391 invalidParams.Add(request.NewErrParamRequired("BatchPredictionId")) 4392 } 4393 if s.BatchPredictionId != nil && len(*s.BatchPredictionId) < 1 { 4394 invalidParams.Add(request.NewErrParamMinLen("BatchPredictionId", 1)) 4395 } 4396 4397 if invalidParams.Len() > 0 { 4398 return invalidParams 4399 } 4400 return nil 4401 } 4402 4403 // SetBatchPredictionId sets the BatchPredictionId field's value. 4404 func (s *DeleteBatchPredictionInput) SetBatchPredictionId(v string) *DeleteBatchPredictionInput { 4405 s.BatchPredictionId = &v 4406 return s 4407 } 4408 4409 // Represents the output of a DeleteBatchPrediction operation. 4410 // 4411 // You can use the GetBatchPrediction operation and check the value of the Status 4412 // parameter to see whether a BatchPrediction is marked as DELETED. 4413 type DeleteBatchPredictionOutput struct { 4414 _ struct{} `type:"structure"` 4415 4416 // A user-supplied ID that uniquely identifies the BatchPrediction. This value 4417 // should be identical to the value of the BatchPredictionID in the request. 4418 BatchPredictionId *string `min:"1" type:"string"` 4419 } 4420 4421 // String returns the string representation. 4422 // 4423 // API parameter values that are decorated as "sensitive" in the API will not 4424 // be included in the string output. The member name will be present, but the 4425 // value will be replaced with "sensitive". 4426 func (s DeleteBatchPredictionOutput) String() string { 4427 return awsutil.Prettify(s) 4428 } 4429 4430 // GoString returns the string representation. 4431 // 4432 // API parameter values that are decorated as "sensitive" in the API will not 4433 // be included in the string output. The member name will be present, but the 4434 // value will be replaced with "sensitive". 4435 func (s DeleteBatchPredictionOutput) GoString() string { 4436 return s.String() 4437 } 4438 4439 // SetBatchPredictionId sets the BatchPredictionId field's value. 4440 func (s *DeleteBatchPredictionOutput) SetBatchPredictionId(v string) *DeleteBatchPredictionOutput { 4441 s.BatchPredictionId = &v 4442 return s 4443 } 4444 4445 type DeleteDataSourceInput struct { 4446 _ struct{} `type:"structure"` 4447 4448 // A user-supplied ID that uniquely identifies the DataSource. 4449 // 4450 // DataSourceId is a required field 4451 DataSourceId *string `min:"1" type:"string" required:"true"` 4452 } 4453 4454 // String returns the string representation. 4455 // 4456 // API parameter values that are decorated as "sensitive" in the API will not 4457 // be included in the string output. The member name will be present, but the 4458 // value will be replaced with "sensitive". 4459 func (s DeleteDataSourceInput) String() string { 4460 return awsutil.Prettify(s) 4461 } 4462 4463 // GoString returns the string representation. 4464 // 4465 // API parameter values that are decorated as "sensitive" in the API will not 4466 // be included in the string output. The member name will be present, but the 4467 // value will be replaced with "sensitive". 4468 func (s DeleteDataSourceInput) GoString() string { 4469 return s.String() 4470 } 4471 4472 // Validate inspects the fields of the type to determine if they are valid. 4473 func (s *DeleteDataSourceInput) Validate() error { 4474 invalidParams := request.ErrInvalidParams{Context: "DeleteDataSourceInput"} 4475 if s.DataSourceId == nil { 4476 invalidParams.Add(request.NewErrParamRequired("DataSourceId")) 4477 } 4478 if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { 4479 invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) 4480 } 4481 4482 if invalidParams.Len() > 0 { 4483 return invalidParams 4484 } 4485 return nil 4486 } 4487 4488 // SetDataSourceId sets the DataSourceId field's value. 4489 func (s *DeleteDataSourceInput) SetDataSourceId(v string) *DeleteDataSourceInput { 4490 s.DataSourceId = &v 4491 return s 4492 } 4493 4494 // Represents the output of a DeleteDataSource operation. 4495 type DeleteDataSourceOutput struct { 4496 _ struct{} `type:"structure"` 4497 4498 // A user-supplied ID that uniquely identifies the DataSource. This value should 4499 // be identical to the value of the DataSourceID in the request. 4500 DataSourceId *string `min:"1" type:"string"` 4501 } 4502 4503 // String returns the string representation. 4504 // 4505 // API parameter values that are decorated as "sensitive" in the API will not 4506 // be included in the string output. The member name will be present, but the 4507 // value will be replaced with "sensitive". 4508 func (s DeleteDataSourceOutput) String() string { 4509 return awsutil.Prettify(s) 4510 } 4511 4512 // GoString returns the string representation. 4513 // 4514 // API parameter values that are decorated as "sensitive" in the API will not 4515 // be included in the string output. The member name will be present, but the 4516 // value will be replaced with "sensitive". 4517 func (s DeleteDataSourceOutput) GoString() string { 4518 return s.String() 4519 } 4520 4521 // SetDataSourceId sets the DataSourceId field's value. 4522 func (s *DeleteDataSourceOutput) SetDataSourceId(v string) *DeleteDataSourceOutput { 4523 s.DataSourceId = &v 4524 return s 4525 } 4526 4527 type DeleteEvaluationInput struct { 4528 _ struct{} `type:"structure"` 4529 4530 // A user-supplied ID that uniquely identifies the Evaluation to delete. 4531 // 4532 // EvaluationId is a required field 4533 EvaluationId *string `min:"1" type:"string" required:"true"` 4534 } 4535 4536 // String returns the string representation. 4537 // 4538 // API parameter values that are decorated as "sensitive" in the API will not 4539 // be included in the string output. The member name will be present, but the 4540 // value will be replaced with "sensitive". 4541 func (s DeleteEvaluationInput) String() string { 4542 return awsutil.Prettify(s) 4543 } 4544 4545 // GoString returns the string representation. 4546 // 4547 // API parameter values that are decorated as "sensitive" in the API will not 4548 // be included in the string output. The member name will be present, but the 4549 // value will be replaced with "sensitive". 4550 func (s DeleteEvaluationInput) GoString() string { 4551 return s.String() 4552 } 4553 4554 // Validate inspects the fields of the type to determine if they are valid. 4555 func (s *DeleteEvaluationInput) Validate() error { 4556 invalidParams := request.ErrInvalidParams{Context: "DeleteEvaluationInput"} 4557 if s.EvaluationId == nil { 4558 invalidParams.Add(request.NewErrParamRequired("EvaluationId")) 4559 } 4560 if s.EvaluationId != nil && len(*s.EvaluationId) < 1 { 4561 invalidParams.Add(request.NewErrParamMinLen("EvaluationId", 1)) 4562 } 4563 4564 if invalidParams.Len() > 0 { 4565 return invalidParams 4566 } 4567 return nil 4568 } 4569 4570 // SetEvaluationId sets the EvaluationId field's value. 4571 func (s *DeleteEvaluationInput) SetEvaluationId(v string) *DeleteEvaluationInput { 4572 s.EvaluationId = &v 4573 return s 4574 } 4575 4576 // Represents the output of a DeleteEvaluation operation. The output indicates 4577 // that Amazon Machine Learning (Amazon ML) received the request. 4578 // 4579 // You can use the GetEvaluation operation and check the value of the Status 4580 // parameter to see whether an Evaluation is marked as DELETED. 4581 type DeleteEvaluationOutput struct { 4582 _ struct{} `type:"structure"` 4583 4584 // A user-supplied ID that uniquely identifies the Evaluation. This value should 4585 // be identical to the value of the EvaluationId in the request. 4586 EvaluationId *string `min:"1" type:"string"` 4587 } 4588 4589 // String returns the string representation. 4590 // 4591 // API parameter values that are decorated as "sensitive" in the API will not 4592 // be included in the string output. The member name will be present, but the 4593 // value will be replaced with "sensitive". 4594 func (s DeleteEvaluationOutput) String() string { 4595 return awsutil.Prettify(s) 4596 } 4597 4598 // GoString returns the string representation. 4599 // 4600 // API parameter values that are decorated as "sensitive" in the API will not 4601 // be included in the string output. The member name will be present, but the 4602 // value will be replaced with "sensitive". 4603 func (s DeleteEvaluationOutput) GoString() string { 4604 return s.String() 4605 } 4606 4607 // SetEvaluationId sets the EvaluationId field's value. 4608 func (s *DeleteEvaluationOutput) SetEvaluationId(v string) *DeleteEvaluationOutput { 4609 s.EvaluationId = &v 4610 return s 4611 } 4612 4613 type DeleteMLModelInput struct { 4614 _ struct{} `type:"structure"` 4615 4616 // A user-supplied ID that uniquely identifies the MLModel. 4617 // 4618 // MLModelId is a required field 4619 MLModelId *string `min:"1" type:"string" required:"true"` 4620 } 4621 4622 // String returns the string representation. 4623 // 4624 // API parameter values that are decorated as "sensitive" in the API will not 4625 // be included in the string output. The member name will be present, but the 4626 // value will be replaced with "sensitive". 4627 func (s DeleteMLModelInput) String() string { 4628 return awsutil.Prettify(s) 4629 } 4630 4631 // GoString returns the string representation. 4632 // 4633 // API parameter values that are decorated as "sensitive" in the API will not 4634 // be included in the string output. The member name will be present, but the 4635 // value will be replaced with "sensitive". 4636 func (s DeleteMLModelInput) GoString() string { 4637 return s.String() 4638 } 4639 4640 // Validate inspects the fields of the type to determine if they are valid. 4641 func (s *DeleteMLModelInput) Validate() error { 4642 invalidParams := request.ErrInvalidParams{Context: "DeleteMLModelInput"} 4643 if s.MLModelId == nil { 4644 invalidParams.Add(request.NewErrParamRequired("MLModelId")) 4645 } 4646 if s.MLModelId != nil && len(*s.MLModelId) < 1 { 4647 invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) 4648 } 4649 4650 if invalidParams.Len() > 0 { 4651 return invalidParams 4652 } 4653 return nil 4654 } 4655 4656 // SetMLModelId sets the MLModelId field's value. 4657 func (s *DeleteMLModelInput) SetMLModelId(v string) *DeleteMLModelInput { 4658 s.MLModelId = &v 4659 return s 4660 } 4661 4662 // Represents the output of a DeleteMLModel operation. 4663 // 4664 // You can use the GetMLModel operation and check the value of the Status parameter 4665 // to see whether an MLModel is marked as DELETED. 4666 type DeleteMLModelOutput struct { 4667 _ struct{} `type:"structure"` 4668 4669 // A user-supplied ID that uniquely identifies the MLModel. This value should 4670 // be identical to the value of the MLModelID in the request. 4671 MLModelId *string `min:"1" type:"string"` 4672 } 4673 4674 // String returns the string representation. 4675 // 4676 // API parameter values that are decorated as "sensitive" in the API will not 4677 // be included in the string output. The member name will be present, but the 4678 // value will be replaced with "sensitive". 4679 func (s DeleteMLModelOutput) String() string { 4680 return awsutil.Prettify(s) 4681 } 4682 4683 // GoString returns the string representation. 4684 // 4685 // API parameter values that are decorated as "sensitive" in the API will not 4686 // be included in the string output. The member name will be present, but the 4687 // value will be replaced with "sensitive". 4688 func (s DeleteMLModelOutput) GoString() string { 4689 return s.String() 4690 } 4691 4692 // SetMLModelId sets the MLModelId field's value. 4693 func (s *DeleteMLModelOutput) SetMLModelId(v string) *DeleteMLModelOutput { 4694 s.MLModelId = &v 4695 return s 4696 } 4697 4698 type DeleteRealtimeEndpointInput struct { 4699 _ struct{} `type:"structure"` 4700 4701 // The ID assigned to the MLModel during creation. 4702 // 4703 // MLModelId is a required field 4704 MLModelId *string `min:"1" type:"string" required:"true"` 4705 } 4706 4707 // String returns the string representation. 4708 // 4709 // API parameter values that are decorated as "sensitive" in the API will not 4710 // be included in the string output. The member name will be present, but the 4711 // value will be replaced with "sensitive". 4712 func (s DeleteRealtimeEndpointInput) String() string { 4713 return awsutil.Prettify(s) 4714 } 4715 4716 // GoString returns the string representation. 4717 // 4718 // API parameter values that are decorated as "sensitive" in the API will not 4719 // be included in the string output. The member name will be present, but the 4720 // value will be replaced with "sensitive". 4721 func (s DeleteRealtimeEndpointInput) GoString() string { 4722 return s.String() 4723 } 4724 4725 // Validate inspects the fields of the type to determine if they are valid. 4726 func (s *DeleteRealtimeEndpointInput) Validate() error { 4727 invalidParams := request.ErrInvalidParams{Context: "DeleteRealtimeEndpointInput"} 4728 if s.MLModelId == nil { 4729 invalidParams.Add(request.NewErrParamRequired("MLModelId")) 4730 } 4731 if s.MLModelId != nil && len(*s.MLModelId) < 1 { 4732 invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) 4733 } 4734 4735 if invalidParams.Len() > 0 { 4736 return invalidParams 4737 } 4738 return nil 4739 } 4740 4741 // SetMLModelId sets the MLModelId field's value. 4742 func (s *DeleteRealtimeEndpointInput) SetMLModelId(v string) *DeleteRealtimeEndpointInput { 4743 s.MLModelId = &v 4744 return s 4745 } 4746 4747 // Represents the output of an DeleteRealtimeEndpoint operation. 4748 // 4749 // The result contains the MLModelId and the endpoint information for the MLModel. 4750 type DeleteRealtimeEndpointOutput struct { 4751 _ struct{} `type:"structure"` 4752 4753 // A user-supplied ID that uniquely identifies the MLModel. This value should 4754 // be identical to the value of the MLModelId in the request. 4755 MLModelId *string `min:"1" type:"string"` 4756 4757 // The endpoint information of the MLModel 4758 RealtimeEndpointInfo *RealtimeEndpointInfo `type:"structure"` 4759 } 4760 4761 // String returns the string representation. 4762 // 4763 // API parameter values that are decorated as "sensitive" in the API will not 4764 // be included in the string output. The member name will be present, but the 4765 // value will be replaced with "sensitive". 4766 func (s DeleteRealtimeEndpointOutput) String() string { 4767 return awsutil.Prettify(s) 4768 } 4769 4770 // GoString returns the string representation. 4771 // 4772 // API parameter values that are decorated as "sensitive" in the API will not 4773 // be included in the string output. The member name will be present, but the 4774 // value will be replaced with "sensitive". 4775 func (s DeleteRealtimeEndpointOutput) GoString() string { 4776 return s.String() 4777 } 4778 4779 // SetMLModelId sets the MLModelId field's value. 4780 func (s *DeleteRealtimeEndpointOutput) SetMLModelId(v string) *DeleteRealtimeEndpointOutput { 4781 s.MLModelId = &v 4782 return s 4783 } 4784 4785 // SetRealtimeEndpointInfo sets the RealtimeEndpointInfo field's value. 4786 func (s *DeleteRealtimeEndpointOutput) SetRealtimeEndpointInfo(v *RealtimeEndpointInfo) *DeleteRealtimeEndpointOutput { 4787 s.RealtimeEndpointInfo = v 4788 return s 4789 } 4790 4791 type DeleteTagsInput struct { 4792 _ struct{} `type:"structure"` 4793 4794 // The ID of the tagged ML object. For example, exampleModelId. 4795 // 4796 // ResourceId is a required field 4797 ResourceId *string `min:"1" type:"string" required:"true"` 4798 4799 // The type of the tagged ML object. 4800 // 4801 // ResourceType is a required field 4802 ResourceType *string `type:"string" required:"true" enum:"TaggableResourceType"` 4803 4804 // One or more tags to delete. 4805 // 4806 // TagKeys is a required field 4807 TagKeys []*string `type:"list" required:"true"` 4808 } 4809 4810 // String returns the string representation. 4811 // 4812 // API parameter values that are decorated as "sensitive" in the API will not 4813 // be included in the string output. The member name will be present, but the 4814 // value will be replaced with "sensitive". 4815 func (s DeleteTagsInput) String() string { 4816 return awsutil.Prettify(s) 4817 } 4818 4819 // GoString returns the string representation. 4820 // 4821 // API parameter values that are decorated as "sensitive" in the API will not 4822 // be included in the string output. The member name will be present, but the 4823 // value will be replaced with "sensitive". 4824 func (s DeleteTagsInput) GoString() string { 4825 return s.String() 4826 } 4827 4828 // Validate inspects the fields of the type to determine if they are valid. 4829 func (s *DeleteTagsInput) Validate() error { 4830 invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"} 4831 if s.ResourceId == nil { 4832 invalidParams.Add(request.NewErrParamRequired("ResourceId")) 4833 } 4834 if s.ResourceId != nil && len(*s.ResourceId) < 1 { 4835 invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) 4836 } 4837 if s.ResourceType == nil { 4838 invalidParams.Add(request.NewErrParamRequired("ResourceType")) 4839 } 4840 if s.TagKeys == nil { 4841 invalidParams.Add(request.NewErrParamRequired("TagKeys")) 4842 } 4843 4844 if invalidParams.Len() > 0 { 4845 return invalidParams 4846 } 4847 return nil 4848 } 4849 4850 // SetResourceId sets the ResourceId field's value. 4851 func (s *DeleteTagsInput) SetResourceId(v string) *DeleteTagsInput { 4852 s.ResourceId = &v 4853 return s 4854 } 4855 4856 // SetResourceType sets the ResourceType field's value. 4857 func (s *DeleteTagsInput) SetResourceType(v string) *DeleteTagsInput { 4858 s.ResourceType = &v 4859 return s 4860 } 4861 4862 // SetTagKeys sets the TagKeys field's value. 4863 func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput { 4864 s.TagKeys = v 4865 return s 4866 } 4867 4868 // Amazon ML returns the following elements. 4869 type DeleteTagsOutput struct { 4870 _ struct{} `type:"structure"` 4871 4872 // The ID of the ML object from which tags were deleted. 4873 ResourceId *string `min:"1" type:"string"` 4874 4875 // The type of the ML object from which tags were deleted. 4876 ResourceType *string `type:"string" enum:"TaggableResourceType"` 4877 } 4878 4879 // String returns the string representation. 4880 // 4881 // API parameter values that are decorated as "sensitive" in the API will not 4882 // be included in the string output. The member name will be present, but the 4883 // value will be replaced with "sensitive". 4884 func (s DeleteTagsOutput) String() string { 4885 return awsutil.Prettify(s) 4886 } 4887 4888 // GoString returns the string representation. 4889 // 4890 // API parameter values that are decorated as "sensitive" in the API will not 4891 // be included in the string output. The member name will be present, but the 4892 // value will be replaced with "sensitive". 4893 func (s DeleteTagsOutput) GoString() string { 4894 return s.String() 4895 } 4896 4897 // SetResourceId sets the ResourceId field's value. 4898 func (s *DeleteTagsOutput) SetResourceId(v string) *DeleteTagsOutput { 4899 s.ResourceId = &v 4900 return s 4901 } 4902 4903 // SetResourceType sets the ResourceType field's value. 4904 func (s *DeleteTagsOutput) SetResourceType(v string) *DeleteTagsOutput { 4905 s.ResourceType = &v 4906 return s 4907 } 4908 4909 type DescribeBatchPredictionsInput struct { 4910 _ struct{} `type:"structure"` 4911 4912 // The equal to operator. The BatchPrediction results will have FilterVariable 4913 // values that exactly match the value specified with EQ. 4914 EQ *string `type:"string"` 4915 4916 // Use one of the following variables to filter a list of BatchPrediction: 4917 // 4918 // * CreatedAt - Sets the search criteria to the BatchPrediction creation 4919 // date. 4920 // 4921 // * Status - Sets the search criteria to the BatchPrediction status. 4922 // 4923 // * Name - Sets the search criteria to the contents of the BatchPrediction 4924 // Name. 4925 // 4926 // * IAMUser - Sets the search criteria to the user account that invoked 4927 // the BatchPrediction creation. 4928 // 4929 // * MLModelId - Sets the search criteria to the MLModel used in the BatchPrediction. 4930 // 4931 // * DataSourceId - Sets the search criteria to the DataSource used in the 4932 // BatchPrediction. 4933 // 4934 // * DataURI - Sets the search criteria to the data file(s) used in the BatchPrediction. 4935 // The URL can identify either a file or an Amazon Simple Storage Solution 4936 // (Amazon S3) bucket or directory. 4937 FilterVariable *string `type:"string" enum:"BatchPredictionFilterVariable"` 4938 4939 // The greater than or equal to operator. The BatchPrediction results will have 4940 // FilterVariable values that are greater than or equal to the value specified 4941 // with GE. 4942 GE *string `type:"string"` 4943 4944 // The greater than operator. The BatchPrediction results will have FilterVariable 4945 // values that are greater than the value specified with GT. 4946 GT *string `type:"string"` 4947 4948 // The less than or equal to operator. The BatchPrediction results will have 4949 // FilterVariable values that are less than or equal to the value specified 4950 // with LE. 4951 LE *string `type:"string"` 4952 4953 // The less than operator. The BatchPrediction results will have FilterVariable 4954 // values that are less than the value specified with LT. 4955 LT *string `type:"string"` 4956 4957 // The number of pages of information to include in the result. The range of 4958 // acceptable values is 1 through 100. The default value is 100. 4959 Limit *int64 `min:"1" type:"integer"` 4960 4961 // The not equal to operator. The BatchPrediction results will have FilterVariable 4962 // values not equal to the value specified with NE. 4963 NE *string `type:"string"` 4964 4965 // An ID of the page in the paginated results. 4966 NextToken *string `type:"string"` 4967 4968 // A string that is found at the beginning of a variable, such as Name or Id. 4969 // 4970 // For example, a Batch Prediction operation could have the Name 2014-09-09-HolidayGiftMailer. 4971 // To search for this BatchPrediction, select Name for the FilterVariable and 4972 // any of the following strings for the Prefix: 4973 // 4974 // * 2014-09 4975 // 4976 // * 2014-09-09 4977 // 4978 // * 2014-09-09-Holiday 4979 Prefix *string `type:"string"` 4980 4981 // A two-value parameter that determines the sequence of the resulting list 4982 // of MLModels. 4983 // 4984 // * asc - Arranges the list in ascending order (A-Z, 0-9). 4985 // 4986 // * dsc - Arranges the list in descending order (Z-A, 9-0). 4987 // 4988 // Results are sorted by FilterVariable. 4989 SortOrder *string `type:"string" enum:"SortOrder"` 4990 } 4991 4992 // String returns the string representation. 4993 // 4994 // API parameter values that are decorated as "sensitive" in the API will not 4995 // be included in the string output. The member name will be present, but the 4996 // value will be replaced with "sensitive". 4997 func (s DescribeBatchPredictionsInput) String() string { 4998 return awsutil.Prettify(s) 4999 } 5000 5001 // GoString returns the string representation. 5002 // 5003 // API parameter values that are decorated as "sensitive" in the API will not 5004 // be included in the string output. The member name will be present, but the 5005 // value will be replaced with "sensitive". 5006 func (s DescribeBatchPredictionsInput) GoString() string { 5007 return s.String() 5008 } 5009 5010 // Validate inspects the fields of the type to determine if they are valid. 5011 func (s *DescribeBatchPredictionsInput) Validate() error { 5012 invalidParams := request.ErrInvalidParams{Context: "DescribeBatchPredictionsInput"} 5013 if s.Limit != nil && *s.Limit < 1 { 5014 invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) 5015 } 5016 5017 if invalidParams.Len() > 0 { 5018 return invalidParams 5019 } 5020 return nil 5021 } 5022 5023 // SetEQ sets the EQ field's value. 5024 func (s *DescribeBatchPredictionsInput) SetEQ(v string) *DescribeBatchPredictionsInput { 5025 s.EQ = &v 5026 return s 5027 } 5028 5029 // SetFilterVariable sets the FilterVariable field's value. 5030 func (s *DescribeBatchPredictionsInput) SetFilterVariable(v string) *DescribeBatchPredictionsInput { 5031 s.FilterVariable = &v 5032 return s 5033 } 5034 5035 // SetGE sets the GE field's value. 5036 func (s *DescribeBatchPredictionsInput) SetGE(v string) *DescribeBatchPredictionsInput { 5037 s.GE = &v 5038 return s 5039 } 5040 5041 // SetGT sets the GT field's value. 5042 func (s *DescribeBatchPredictionsInput) SetGT(v string) *DescribeBatchPredictionsInput { 5043 s.GT = &v 5044 return s 5045 } 5046 5047 // SetLE sets the LE field's value. 5048 func (s *DescribeBatchPredictionsInput) SetLE(v string) *DescribeBatchPredictionsInput { 5049 s.LE = &v 5050 return s 5051 } 5052 5053 // SetLT sets the LT field's value. 5054 func (s *DescribeBatchPredictionsInput) SetLT(v string) *DescribeBatchPredictionsInput { 5055 s.LT = &v 5056 return s 5057 } 5058 5059 // SetLimit sets the Limit field's value. 5060 func (s *DescribeBatchPredictionsInput) SetLimit(v int64) *DescribeBatchPredictionsInput { 5061 s.Limit = &v 5062 return s 5063 } 5064 5065 // SetNE sets the NE field's value. 5066 func (s *DescribeBatchPredictionsInput) SetNE(v string) *DescribeBatchPredictionsInput { 5067 s.NE = &v 5068 return s 5069 } 5070 5071 // SetNextToken sets the NextToken field's value. 5072 func (s *DescribeBatchPredictionsInput) SetNextToken(v string) *DescribeBatchPredictionsInput { 5073 s.NextToken = &v 5074 return s 5075 } 5076 5077 // SetPrefix sets the Prefix field's value. 5078 func (s *DescribeBatchPredictionsInput) SetPrefix(v string) *DescribeBatchPredictionsInput { 5079 s.Prefix = &v 5080 return s 5081 } 5082 5083 // SetSortOrder sets the SortOrder field's value. 5084 func (s *DescribeBatchPredictionsInput) SetSortOrder(v string) *DescribeBatchPredictionsInput { 5085 s.SortOrder = &v 5086 return s 5087 } 5088 5089 // Represents the output of a DescribeBatchPredictions operation. The content 5090 // is essentially a list of BatchPredictions. 5091 type DescribeBatchPredictionsOutput struct { 5092 _ struct{} `type:"structure"` 5093 5094 // The ID of the next page in the paginated results that indicates at least 5095 // one more page follows. 5096 NextToken *string `type:"string"` 5097 5098 // A list of BatchPrediction objects that meet the search criteria. 5099 Results []*BatchPrediction `type:"list"` 5100 } 5101 5102 // String returns the string representation. 5103 // 5104 // API parameter values that are decorated as "sensitive" in the API will not 5105 // be included in the string output. The member name will be present, but the 5106 // value will be replaced with "sensitive". 5107 func (s DescribeBatchPredictionsOutput) String() string { 5108 return awsutil.Prettify(s) 5109 } 5110 5111 // GoString returns the string representation. 5112 // 5113 // API parameter values that are decorated as "sensitive" in the API will not 5114 // be included in the string output. The member name will be present, but the 5115 // value will be replaced with "sensitive". 5116 func (s DescribeBatchPredictionsOutput) GoString() string { 5117 return s.String() 5118 } 5119 5120 // SetNextToken sets the NextToken field's value. 5121 func (s *DescribeBatchPredictionsOutput) SetNextToken(v string) *DescribeBatchPredictionsOutput { 5122 s.NextToken = &v 5123 return s 5124 } 5125 5126 // SetResults sets the Results field's value. 5127 func (s *DescribeBatchPredictionsOutput) SetResults(v []*BatchPrediction) *DescribeBatchPredictionsOutput { 5128 s.Results = v 5129 return s 5130 } 5131 5132 type DescribeDataSourcesInput struct { 5133 _ struct{} `type:"structure"` 5134 5135 // The equal to operator. The DataSource results will have FilterVariable values 5136 // that exactly match the value specified with EQ. 5137 EQ *string `type:"string"` 5138 5139 // Use one of the following variables to filter a list of DataSource: 5140 // 5141 // * CreatedAt - Sets the search criteria to DataSource creation dates. 5142 // 5143 // * Status - Sets the search criteria to DataSource statuses. 5144 // 5145 // * Name - Sets the search criteria to the contents of DataSource Name. 5146 // 5147 // * DataUri - Sets the search criteria to the URI of data files used to 5148 // create the DataSource. The URI can identify either a file or an Amazon 5149 // Simple Storage Service (Amazon S3) bucket or directory. 5150 // 5151 // * IAMUser - Sets the search criteria to the user account that invoked 5152 // the DataSource creation. 5153 FilterVariable *string `type:"string" enum:"DataSourceFilterVariable"` 5154 5155 // The greater than or equal to operator. The DataSource results will have FilterVariable 5156 // values that are greater than or equal to the value specified with GE. 5157 GE *string `type:"string"` 5158 5159 // The greater than operator. The DataSource results will have FilterVariable 5160 // values that are greater than the value specified with GT. 5161 GT *string `type:"string"` 5162 5163 // The less than or equal to operator. The DataSource results will have FilterVariable 5164 // values that are less than or equal to the value specified with LE. 5165 LE *string `type:"string"` 5166 5167 // The less than operator. The DataSource results will have FilterVariable values 5168 // that are less than the value specified with LT. 5169 LT *string `type:"string"` 5170 5171 // The maximum number of DataSource to include in the result. 5172 Limit *int64 `min:"1" type:"integer"` 5173 5174 // The not equal to operator. The DataSource results will have FilterVariable 5175 // values not equal to the value specified with NE. 5176 NE *string `type:"string"` 5177 5178 // The ID of the page in the paginated results. 5179 NextToken *string `type:"string"` 5180 5181 // A string that is found at the beginning of a variable, such as Name or Id. 5182 // 5183 // For example, a DataSource could have the Name 2014-09-09-HolidayGiftMailer. 5184 // To search for this DataSource, select Name for the FilterVariable and any 5185 // of the following strings for the Prefix: 5186 // 5187 // * 2014-09 5188 // 5189 // * 2014-09-09 5190 // 5191 // * 2014-09-09-Holiday 5192 Prefix *string `type:"string"` 5193 5194 // A two-value parameter that determines the sequence of the resulting list 5195 // of DataSource. 5196 // 5197 // * asc - Arranges the list in ascending order (A-Z, 0-9). 5198 // 5199 // * dsc - Arranges the list in descending order (Z-A, 9-0). 5200 // 5201 // Results are sorted by FilterVariable. 5202 SortOrder *string `type:"string" enum:"SortOrder"` 5203 } 5204 5205 // String returns the string representation. 5206 // 5207 // API parameter values that are decorated as "sensitive" in the API will not 5208 // be included in the string output. The member name will be present, but the 5209 // value will be replaced with "sensitive". 5210 func (s DescribeDataSourcesInput) String() string { 5211 return awsutil.Prettify(s) 5212 } 5213 5214 // GoString returns the string representation. 5215 // 5216 // API parameter values that are decorated as "sensitive" in the API will not 5217 // be included in the string output. The member name will be present, but the 5218 // value will be replaced with "sensitive". 5219 func (s DescribeDataSourcesInput) GoString() string { 5220 return s.String() 5221 } 5222 5223 // Validate inspects the fields of the type to determine if they are valid. 5224 func (s *DescribeDataSourcesInput) Validate() error { 5225 invalidParams := request.ErrInvalidParams{Context: "DescribeDataSourcesInput"} 5226 if s.Limit != nil && *s.Limit < 1 { 5227 invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) 5228 } 5229 5230 if invalidParams.Len() > 0 { 5231 return invalidParams 5232 } 5233 return nil 5234 } 5235 5236 // SetEQ sets the EQ field's value. 5237 func (s *DescribeDataSourcesInput) SetEQ(v string) *DescribeDataSourcesInput { 5238 s.EQ = &v 5239 return s 5240 } 5241 5242 // SetFilterVariable sets the FilterVariable field's value. 5243 func (s *DescribeDataSourcesInput) SetFilterVariable(v string) *DescribeDataSourcesInput { 5244 s.FilterVariable = &v 5245 return s 5246 } 5247 5248 // SetGE sets the GE field's value. 5249 func (s *DescribeDataSourcesInput) SetGE(v string) *DescribeDataSourcesInput { 5250 s.GE = &v 5251 return s 5252 } 5253 5254 // SetGT sets the GT field's value. 5255 func (s *DescribeDataSourcesInput) SetGT(v string) *DescribeDataSourcesInput { 5256 s.GT = &v 5257 return s 5258 } 5259 5260 // SetLE sets the LE field's value. 5261 func (s *DescribeDataSourcesInput) SetLE(v string) *DescribeDataSourcesInput { 5262 s.LE = &v 5263 return s 5264 } 5265 5266 // SetLT sets the LT field's value. 5267 func (s *DescribeDataSourcesInput) SetLT(v string) *DescribeDataSourcesInput { 5268 s.LT = &v 5269 return s 5270 } 5271 5272 // SetLimit sets the Limit field's value. 5273 func (s *DescribeDataSourcesInput) SetLimit(v int64) *DescribeDataSourcesInput { 5274 s.Limit = &v 5275 return s 5276 } 5277 5278 // SetNE sets the NE field's value. 5279 func (s *DescribeDataSourcesInput) SetNE(v string) *DescribeDataSourcesInput { 5280 s.NE = &v 5281 return s 5282 } 5283 5284 // SetNextToken sets the NextToken field's value. 5285 func (s *DescribeDataSourcesInput) SetNextToken(v string) *DescribeDataSourcesInput { 5286 s.NextToken = &v 5287 return s 5288 } 5289 5290 // SetPrefix sets the Prefix field's value. 5291 func (s *DescribeDataSourcesInput) SetPrefix(v string) *DescribeDataSourcesInput { 5292 s.Prefix = &v 5293 return s 5294 } 5295 5296 // SetSortOrder sets the SortOrder field's value. 5297 func (s *DescribeDataSourcesInput) SetSortOrder(v string) *DescribeDataSourcesInput { 5298 s.SortOrder = &v 5299 return s 5300 } 5301 5302 // Represents the query results from a DescribeDataSources operation. The content 5303 // is essentially a list of DataSource. 5304 type DescribeDataSourcesOutput struct { 5305 _ struct{} `type:"structure"` 5306 5307 // An ID of the next page in the paginated results that indicates at least one 5308 // more page follows. 5309 NextToken *string `type:"string"` 5310 5311 // A list of DataSource that meet the search criteria. 5312 Results []*DataSource `type:"list"` 5313 } 5314 5315 // String returns the string representation. 5316 // 5317 // API parameter values that are decorated as "sensitive" in the API will not 5318 // be included in the string output. The member name will be present, but the 5319 // value will be replaced with "sensitive". 5320 func (s DescribeDataSourcesOutput) String() string { 5321 return awsutil.Prettify(s) 5322 } 5323 5324 // GoString returns the string representation. 5325 // 5326 // API parameter values that are decorated as "sensitive" in the API will not 5327 // be included in the string output. The member name will be present, but the 5328 // value will be replaced with "sensitive". 5329 func (s DescribeDataSourcesOutput) GoString() string { 5330 return s.String() 5331 } 5332 5333 // SetNextToken sets the NextToken field's value. 5334 func (s *DescribeDataSourcesOutput) SetNextToken(v string) *DescribeDataSourcesOutput { 5335 s.NextToken = &v 5336 return s 5337 } 5338 5339 // SetResults sets the Results field's value. 5340 func (s *DescribeDataSourcesOutput) SetResults(v []*DataSource) *DescribeDataSourcesOutput { 5341 s.Results = v 5342 return s 5343 } 5344 5345 type DescribeEvaluationsInput struct { 5346 _ struct{} `type:"structure"` 5347 5348 // The equal to operator. The Evaluation results will have FilterVariable values 5349 // that exactly match the value specified with EQ. 5350 EQ *string `type:"string"` 5351 5352 // Use one of the following variable to filter a list of Evaluation objects: 5353 // 5354 // * CreatedAt - Sets the search criteria to the Evaluation creation date. 5355 // 5356 // * Status - Sets the search criteria to the Evaluation status. 5357 // 5358 // * Name - Sets the search criteria to the contents of Evaluation Name. 5359 // 5360 // * IAMUser - Sets the search criteria to the user account that invoked 5361 // an Evaluation. 5362 // 5363 // * MLModelId - Sets the search criteria to the MLModel that was evaluated. 5364 // 5365 // * DataSourceId - Sets the search criteria to the DataSource used in Evaluation. 5366 // 5367 // * DataUri - Sets the search criteria to the data file(s) used in Evaluation. 5368 // The URL can identify either a file or an Amazon Simple Storage Solution 5369 // (Amazon S3) bucket or directory. 5370 FilterVariable *string `type:"string" enum:"EvaluationFilterVariable"` 5371 5372 // The greater than or equal to operator. The Evaluation results will have FilterVariable 5373 // values that are greater than or equal to the value specified with GE. 5374 GE *string `type:"string"` 5375 5376 // The greater than operator. The Evaluation results will have FilterVariable 5377 // values that are greater than the value specified with GT. 5378 GT *string `type:"string"` 5379 5380 // The less than or equal to operator. The Evaluation results will have FilterVariable 5381 // values that are less than or equal to the value specified with LE. 5382 LE *string `type:"string"` 5383 5384 // The less than operator. The Evaluation results will have FilterVariable values 5385 // that are less than the value specified with LT. 5386 LT *string `type:"string"` 5387 5388 // The maximum number of Evaluation to include in the result. 5389 Limit *int64 `min:"1" type:"integer"` 5390 5391 // The not equal to operator. The Evaluation results will have FilterVariable 5392 // values not equal to the value specified with NE. 5393 NE *string `type:"string"` 5394 5395 // The ID of the page in the paginated results. 5396 NextToken *string `type:"string"` 5397 5398 // A string that is found at the beginning of a variable, such as Name or Id. 5399 // 5400 // For example, an Evaluation could have the Name 2014-09-09-HolidayGiftMailer. 5401 // To search for this Evaluation, select Name for the FilterVariable and any 5402 // of the following strings for the Prefix: 5403 // 5404 // * 2014-09 5405 // 5406 // * 2014-09-09 5407 // 5408 // * 2014-09-09-Holiday 5409 Prefix *string `type:"string"` 5410 5411 // A two-value parameter that determines the sequence of the resulting list 5412 // of Evaluation. 5413 // 5414 // * asc - Arranges the list in ascending order (A-Z, 0-9). 5415 // 5416 // * dsc - Arranges the list in descending order (Z-A, 9-0). 5417 // 5418 // Results are sorted by FilterVariable. 5419 SortOrder *string `type:"string" enum:"SortOrder"` 5420 } 5421 5422 // String returns the string representation. 5423 // 5424 // API parameter values that are decorated as "sensitive" in the API will not 5425 // be included in the string output. The member name will be present, but the 5426 // value will be replaced with "sensitive". 5427 func (s DescribeEvaluationsInput) String() string { 5428 return awsutil.Prettify(s) 5429 } 5430 5431 // GoString returns the string representation. 5432 // 5433 // API parameter values that are decorated as "sensitive" in the API will not 5434 // be included in the string output. The member name will be present, but the 5435 // value will be replaced with "sensitive". 5436 func (s DescribeEvaluationsInput) GoString() string { 5437 return s.String() 5438 } 5439 5440 // Validate inspects the fields of the type to determine if they are valid. 5441 func (s *DescribeEvaluationsInput) Validate() error { 5442 invalidParams := request.ErrInvalidParams{Context: "DescribeEvaluationsInput"} 5443 if s.Limit != nil && *s.Limit < 1 { 5444 invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) 5445 } 5446 5447 if invalidParams.Len() > 0 { 5448 return invalidParams 5449 } 5450 return nil 5451 } 5452 5453 // SetEQ sets the EQ field's value. 5454 func (s *DescribeEvaluationsInput) SetEQ(v string) *DescribeEvaluationsInput { 5455 s.EQ = &v 5456 return s 5457 } 5458 5459 // SetFilterVariable sets the FilterVariable field's value. 5460 func (s *DescribeEvaluationsInput) SetFilterVariable(v string) *DescribeEvaluationsInput { 5461 s.FilterVariable = &v 5462 return s 5463 } 5464 5465 // SetGE sets the GE field's value. 5466 func (s *DescribeEvaluationsInput) SetGE(v string) *DescribeEvaluationsInput { 5467 s.GE = &v 5468 return s 5469 } 5470 5471 // SetGT sets the GT field's value. 5472 func (s *DescribeEvaluationsInput) SetGT(v string) *DescribeEvaluationsInput { 5473 s.GT = &v 5474 return s 5475 } 5476 5477 // SetLE sets the LE field's value. 5478 func (s *DescribeEvaluationsInput) SetLE(v string) *DescribeEvaluationsInput { 5479 s.LE = &v 5480 return s 5481 } 5482 5483 // SetLT sets the LT field's value. 5484 func (s *DescribeEvaluationsInput) SetLT(v string) *DescribeEvaluationsInput { 5485 s.LT = &v 5486 return s 5487 } 5488 5489 // SetLimit sets the Limit field's value. 5490 func (s *DescribeEvaluationsInput) SetLimit(v int64) *DescribeEvaluationsInput { 5491 s.Limit = &v 5492 return s 5493 } 5494 5495 // SetNE sets the NE field's value. 5496 func (s *DescribeEvaluationsInput) SetNE(v string) *DescribeEvaluationsInput { 5497 s.NE = &v 5498 return s 5499 } 5500 5501 // SetNextToken sets the NextToken field's value. 5502 func (s *DescribeEvaluationsInput) SetNextToken(v string) *DescribeEvaluationsInput { 5503 s.NextToken = &v 5504 return s 5505 } 5506 5507 // SetPrefix sets the Prefix field's value. 5508 func (s *DescribeEvaluationsInput) SetPrefix(v string) *DescribeEvaluationsInput { 5509 s.Prefix = &v 5510 return s 5511 } 5512 5513 // SetSortOrder sets the SortOrder field's value. 5514 func (s *DescribeEvaluationsInput) SetSortOrder(v string) *DescribeEvaluationsInput { 5515 s.SortOrder = &v 5516 return s 5517 } 5518 5519 // Represents the query results from a DescribeEvaluations operation. The content 5520 // is essentially a list of Evaluation. 5521 type DescribeEvaluationsOutput struct { 5522 _ struct{} `type:"structure"` 5523 5524 // The ID of the next page in the paginated results that indicates at least 5525 // one more page follows. 5526 NextToken *string `type:"string"` 5527 5528 // A list of Evaluation that meet the search criteria. 5529 Results []*Evaluation `type:"list"` 5530 } 5531 5532 // String returns the string representation. 5533 // 5534 // API parameter values that are decorated as "sensitive" in the API will not 5535 // be included in the string output. The member name will be present, but the 5536 // value will be replaced with "sensitive". 5537 func (s DescribeEvaluationsOutput) String() string { 5538 return awsutil.Prettify(s) 5539 } 5540 5541 // GoString returns the string representation. 5542 // 5543 // API parameter values that are decorated as "sensitive" in the API will not 5544 // be included in the string output. The member name will be present, but the 5545 // value will be replaced with "sensitive". 5546 func (s DescribeEvaluationsOutput) GoString() string { 5547 return s.String() 5548 } 5549 5550 // SetNextToken sets the NextToken field's value. 5551 func (s *DescribeEvaluationsOutput) SetNextToken(v string) *DescribeEvaluationsOutput { 5552 s.NextToken = &v 5553 return s 5554 } 5555 5556 // SetResults sets the Results field's value. 5557 func (s *DescribeEvaluationsOutput) SetResults(v []*Evaluation) *DescribeEvaluationsOutput { 5558 s.Results = v 5559 return s 5560 } 5561 5562 type DescribeMLModelsInput struct { 5563 _ struct{} `type:"structure"` 5564 5565 // The equal to operator. The MLModel results will have FilterVariable values 5566 // that exactly match the value specified with EQ. 5567 EQ *string `type:"string"` 5568 5569 // Use one of the following variables to filter a list of MLModel: 5570 // 5571 // * CreatedAt - Sets the search criteria to MLModel creation date. 5572 // 5573 // * Status - Sets the search criteria to MLModel status. 5574 // 5575 // * Name - Sets the search criteria to the contents of MLModel Name. 5576 // 5577 // * IAMUser - Sets the search criteria to the user account that invoked 5578 // the MLModel creation. 5579 // 5580 // * TrainingDataSourceId - Sets the search criteria to the DataSource used 5581 // to train one or more MLModel. 5582 // 5583 // * RealtimeEndpointStatus - Sets the search criteria to the MLModel real-time 5584 // endpoint status. 5585 // 5586 // * MLModelType - Sets the search criteria to MLModel type: binary, regression, 5587 // or multi-class. 5588 // 5589 // * Algorithm - Sets the search criteria to the algorithm that the MLModel 5590 // uses. 5591 // 5592 // * TrainingDataURI - Sets the search criteria to the data file(s) used 5593 // in training a MLModel. The URL can identify either a file or an Amazon 5594 // Simple Storage Service (Amazon S3) bucket or directory. 5595 FilterVariable *string `type:"string" enum:"MLModelFilterVariable"` 5596 5597 // The greater than or equal to operator. The MLModel results will have FilterVariable 5598 // values that are greater than or equal to the value specified with GE. 5599 GE *string `type:"string"` 5600 5601 // The greater than operator. The MLModel results will have FilterVariable values 5602 // that are greater than the value specified with GT. 5603 GT *string `type:"string"` 5604 5605 // The less than or equal to operator. The MLModel results will have FilterVariable 5606 // values that are less than or equal to the value specified with LE. 5607 LE *string `type:"string"` 5608 5609 // The less than operator. The MLModel results will have FilterVariable values 5610 // that are less than the value specified with LT. 5611 LT *string `type:"string"` 5612 5613 // The number of pages of information to include in the result. The range of 5614 // acceptable values is 1 through 100. The default value is 100. 5615 Limit *int64 `min:"1" type:"integer"` 5616 5617 // The not equal to operator. The MLModel results will have FilterVariable values 5618 // not equal to the value specified with NE. 5619 NE *string `type:"string"` 5620 5621 // The ID of the page in the paginated results. 5622 NextToken *string `type:"string"` 5623 5624 // A string that is found at the beginning of a variable, such as Name or Id. 5625 // 5626 // For example, an MLModel could have the Name 2014-09-09-HolidayGiftMailer. 5627 // To search for this MLModel, select Name for the FilterVariable and any of 5628 // the following strings for the Prefix: 5629 // 5630 // * 2014-09 5631 // 5632 // * 2014-09-09 5633 // 5634 // * 2014-09-09-Holiday 5635 Prefix *string `type:"string"` 5636 5637 // A two-value parameter that determines the sequence of the resulting list 5638 // of MLModel. 5639 // 5640 // * asc - Arranges the list in ascending order (A-Z, 0-9). 5641 // 5642 // * dsc - Arranges the list in descending order (Z-A, 9-0). 5643 // 5644 // Results are sorted by FilterVariable. 5645 SortOrder *string `type:"string" enum:"SortOrder"` 5646 } 5647 5648 // String returns the string representation. 5649 // 5650 // API parameter values that are decorated as "sensitive" in the API will not 5651 // be included in the string output. The member name will be present, but the 5652 // value will be replaced with "sensitive". 5653 func (s DescribeMLModelsInput) String() string { 5654 return awsutil.Prettify(s) 5655 } 5656 5657 // GoString returns the string representation. 5658 // 5659 // API parameter values that are decorated as "sensitive" in the API will not 5660 // be included in the string output. The member name will be present, but the 5661 // value will be replaced with "sensitive". 5662 func (s DescribeMLModelsInput) GoString() string { 5663 return s.String() 5664 } 5665 5666 // Validate inspects the fields of the type to determine if they are valid. 5667 func (s *DescribeMLModelsInput) Validate() error { 5668 invalidParams := request.ErrInvalidParams{Context: "DescribeMLModelsInput"} 5669 if s.Limit != nil && *s.Limit < 1 { 5670 invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) 5671 } 5672 5673 if invalidParams.Len() > 0 { 5674 return invalidParams 5675 } 5676 return nil 5677 } 5678 5679 // SetEQ sets the EQ field's value. 5680 func (s *DescribeMLModelsInput) SetEQ(v string) *DescribeMLModelsInput { 5681 s.EQ = &v 5682 return s 5683 } 5684 5685 // SetFilterVariable sets the FilterVariable field's value. 5686 func (s *DescribeMLModelsInput) SetFilterVariable(v string) *DescribeMLModelsInput { 5687 s.FilterVariable = &v 5688 return s 5689 } 5690 5691 // SetGE sets the GE field's value. 5692 func (s *DescribeMLModelsInput) SetGE(v string) *DescribeMLModelsInput { 5693 s.GE = &v 5694 return s 5695 } 5696 5697 // SetGT sets the GT field's value. 5698 func (s *DescribeMLModelsInput) SetGT(v string) *DescribeMLModelsInput { 5699 s.GT = &v 5700 return s 5701 } 5702 5703 // SetLE sets the LE field's value. 5704 func (s *DescribeMLModelsInput) SetLE(v string) *DescribeMLModelsInput { 5705 s.LE = &v 5706 return s 5707 } 5708 5709 // SetLT sets the LT field's value. 5710 func (s *DescribeMLModelsInput) SetLT(v string) *DescribeMLModelsInput { 5711 s.LT = &v 5712 return s 5713 } 5714 5715 // SetLimit sets the Limit field's value. 5716 func (s *DescribeMLModelsInput) SetLimit(v int64) *DescribeMLModelsInput { 5717 s.Limit = &v 5718 return s 5719 } 5720 5721 // SetNE sets the NE field's value. 5722 func (s *DescribeMLModelsInput) SetNE(v string) *DescribeMLModelsInput { 5723 s.NE = &v 5724 return s 5725 } 5726 5727 // SetNextToken sets the NextToken field's value. 5728 func (s *DescribeMLModelsInput) SetNextToken(v string) *DescribeMLModelsInput { 5729 s.NextToken = &v 5730 return s 5731 } 5732 5733 // SetPrefix sets the Prefix field's value. 5734 func (s *DescribeMLModelsInput) SetPrefix(v string) *DescribeMLModelsInput { 5735 s.Prefix = &v 5736 return s 5737 } 5738 5739 // SetSortOrder sets the SortOrder field's value. 5740 func (s *DescribeMLModelsInput) SetSortOrder(v string) *DescribeMLModelsInput { 5741 s.SortOrder = &v 5742 return s 5743 } 5744 5745 // Represents the output of a DescribeMLModels operation. The content is essentially 5746 // a list of MLModel. 5747 type DescribeMLModelsOutput struct { 5748 _ struct{} `type:"structure"` 5749 5750 // The ID of the next page in the paginated results that indicates at least 5751 // one more page follows. 5752 NextToken *string `type:"string"` 5753 5754 // A list of MLModel that meet the search criteria. 5755 Results []*MLModel `type:"list"` 5756 } 5757 5758 // String returns the string representation. 5759 // 5760 // API parameter values that are decorated as "sensitive" in the API will not 5761 // be included in the string output. The member name will be present, but the 5762 // value will be replaced with "sensitive". 5763 func (s DescribeMLModelsOutput) String() string { 5764 return awsutil.Prettify(s) 5765 } 5766 5767 // GoString returns the string representation. 5768 // 5769 // API parameter values that are decorated as "sensitive" in the API will not 5770 // be included in the string output. The member name will be present, but the 5771 // value will be replaced with "sensitive". 5772 func (s DescribeMLModelsOutput) GoString() string { 5773 return s.String() 5774 } 5775 5776 // SetNextToken sets the NextToken field's value. 5777 func (s *DescribeMLModelsOutput) SetNextToken(v string) *DescribeMLModelsOutput { 5778 s.NextToken = &v 5779 return s 5780 } 5781 5782 // SetResults sets the Results field's value. 5783 func (s *DescribeMLModelsOutput) SetResults(v []*MLModel) *DescribeMLModelsOutput { 5784 s.Results = v 5785 return s 5786 } 5787 5788 type DescribeTagsInput struct { 5789 _ struct{} `type:"structure"` 5790 5791 // The ID of the ML object. For example, exampleModelId. 5792 // 5793 // ResourceId is a required field 5794 ResourceId *string `min:"1" type:"string" required:"true"` 5795 5796 // The type of the ML object. 5797 // 5798 // ResourceType is a required field 5799 ResourceType *string `type:"string" required:"true" enum:"TaggableResourceType"` 5800 } 5801 5802 // String returns the string representation. 5803 // 5804 // API parameter values that are decorated as "sensitive" in the API will not 5805 // be included in the string output. The member name will be present, but the 5806 // value will be replaced with "sensitive". 5807 func (s DescribeTagsInput) String() string { 5808 return awsutil.Prettify(s) 5809 } 5810 5811 // GoString returns the string representation. 5812 // 5813 // API parameter values that are decorated as "sensitive" in the API will not 5814 // be included in the string output. The member name will be present, but the 5815 // value will be replaced with "sensitive". 5816 func (s DescribeTagsInput) GoString() string { 5817 return s.String() 5818 } 5819 5820 // Validate inspects the fields of the type to determine if they are valid. 5821 func (s *DescribeTagsInput) Validate() error { 5822 invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"} 5823 if s.ResourceId == nil { 5824 invalidParams.Add(request.NewErrParamRequired("ResourceId")) 5825 } 5826 if s.ResourceId != nil && len(*s.ResourceId) < 1 { 5827 invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) 5828 } 5829 if s.ResourceType == nil { 5830 invalidParams.Add(request.NewErrParamRequired("ResourceType")) 5831 } 5832 5833 if invalidParams.Len() > 0 { 5834 return invalidParams 5835 } 5836 return nil 5837 } 5838 5839 // SetResourceId sets the ResourceId field's value. 5840 func (s *DescribeTagsInput) SetResourceId(v string) *DescribeTagsInput { 5841 s.ResourceId = &v 5842 return s 5843 } 5844 5845 // SetResourceType sets the ResourceType field's value. 5846 func (s *DescribeTagsInput) SetResourceType(v string) *DescribeTagsInput { 5847 s.ResourceType = &v 5848 return s 5849 } 5850 5851 // Amazon ML returns the following elements. 5852 type DescribeTagsOutput struct { 5853 _ struct{} `type:"structure"` 5854 5855 // The ID of the tagged ML object. 5856 ResourceId *string `min:"1" type:"string"` 5857 5858 // The type of the tagged ML object. 5859 ResourceType *string `type:"string" enum:"TaggableResourceType"` 5860 5861 // A list of tags associated with the ML object. 5862 Tags []*Tag `type:"list"` 5863 } 5864 5865 // String returns the string representation. 5866 // 5867 // API parameter values that are decorated as "sensitive" in the API will not 5868 // be included in the string output. The member name will be present, but the 5869 // value will be replaced with "sensitive". 5870 func (s DescribeTagsOutput) String() string { 5871 return awsutil.Prettify(s) 5872 } 5873 5874 // GoString returns the string representation. 5875 // 5876 // API parameter values that are decorated as "sensitive" in the API will not 5877 // be included in the string output. The member name will be present, but the 5878 // value will be replaced with "sensitive". 5879 func (s DescribeTagsOutput) GoString() string { 5880 return s.String() 5881 } 5882 5883 // SetResourceId sets the ResourceId field's value. 5884 func (s *DescribeTagsOutput) SetResourceId(v string) *DescribeTagsOutput { 5885 s.ResourceId = &v 5886 return s 5887 } 5888 5889 // SetResourceType sets the ResourceType field's value. 5890 func (s *DescribeTagsOutput) SetResourceType(v string) *DescribeTagsOutput { 5891 s.ResourceType = &v 5892 return s 5893 } 5894 5895 // SetTags sets the Tags field's value. 5896 func (s *DescribeTagsOutput) SetTags(v []*Tag) *DescribeTagsOutput { 5897 s.Tags = v 5898 return s 5899 } 5900 5901 // Represents the output of GetEvaluation operation. 5902 // 5903 // The content consists of the detailed metadata and data file information and 5904 // the current status of the Evaluation. 5905 type Evaluation struct { 5906 _ struct{} `type:"structure"` 5907 5908 // Long integer type that is a 64-bit signed number. 5909 ComputeTime *int64 `type:"long"` 5910 5911 // The time that the Evaluation was created. The time is expressed in epoch 5912 // time. 5913 CreatedAt *time.Time `type:"timestamp"` 5914 5915 // The AWS user account that invoked the evaluation. The account type can be 5916 // either an AWS root account or an AWS Identity and Access Management (IAM) 5917 // user account. 5918 CreatedByIamUser *string `type:"string"` 5919 5920 // The ID of the DataSource that is used to evaluate the MLModel. 5921 EvaluationDataSourceId *string `min:"1" type:"string"` 5922 5923 // The ID that is assigned to the Evaluation at creation. 5924 EvaluationId *string `min:"1" type:"string"` 5925 5926 // A timestamp represented in epoch time. 5927 FinishedAt *time.Time `type:"timestamp"` 5928 5929 // The location and name of the data in Amazon Simple Storage Server (Amazon 5930 // S3) that is used in the evaluation. 5931 InputDataLocationS3 *string `type:"string"` 5932 5933 // The time of the most recent edit to the Evaluation. The time is expressed 5934 // in epoch time. 5935 LastUpdatedAt *time.Time `type:"timestamp"` 5936 5937 // The ID of the MLModel that is the focus of the evaluation. 5938 MLModelId *string `min:"1" type:"string"` 5939 5940 // A description of the most recent details about evaluating the MLModel. 5941 Message *string `type:"string"` 5942 5943 // A user-supplied name or description of the Evaluation. 5944 Name *string `type:"string"` 5945 5946 // Measurements of how well the MLModel performed, using observations referenced 5947 // by the DataSource. One of the following metrics is returned, based on the 5948 // type of the MLModel: 5949 // 5950 // * BinaryAUC: A binary MLModel uses the Area Under the Curve (AUC) technique 5951 // to measure performance. 5952 // 5953 // * RegressionRMSE: A regression MLModel uses the Root Mean Square Error 5954 // (RMSE) technique to measure performance. RMSE measures the difference 5955 // between predicted and actual values for a single variable. 5956 // 5957 // * MulticlassAvgFScore: A multiclass MLModel uses the F1 score technique 5958 // to measure performance. 5959 // 5960 // For more information about performance metrics, please see the Amazon Machine 5961 // Learning Developer Guide (https://docs.aws.amazon.com/machine-learning/latest/dg). 5962 PerformanceMetrics *PerformanceMetrics `type:"structure"` 5963 5964 // A timestamp represented in epoch time. 5965 StartedAt *time.Time `type:"timestamp"` 5966 5967 // The status of the evaluation. This element can have one of the following 5968 // values: 5969 // 5970 // * PENDING - Amazon Machine Learning (Amazon ML) submitted a request to 5971 // evaluate an MLModel. 5972 // 5973 // * INPROGRESS - The evaluation is underway. 5974 // 5975 // * FAILED - The request to evaluate an MLModel did not run to completion. 5976 // It is not usable. 5977 // 5978 // * COMPLETED - The evaluation process completed successfully. 5979 // 5980 // * DELETED - The Evaluation is marked as deleted. It is not usable. 5981 Status *string `type:"string" enum:"EntityStatus"` 5982 } 5983 5984 // String returns the string representation. 5985 // 5986 // API parameter values that are decorated as "sensitive" in the API will not 5987 // be included in the string output. The member name will be present, but the 5988 // value will be replaced with "sensitive". 5989 func (s Evaluation) String() string { 5990 return awsutil.Prettify(s) 5991 } 5992 5993 // GoString returns the string representation. 5994 // 5995 // API parameter values that are decorated as "sensitive" in the API will not 5996 // be included in the string output. The member name will be present, but the 5997 // value will be replaced with "sensitive". 5998 func (s Evaluation) GoString() string { 5999 return s.String() 6000 } 6001 6002 // SetComputeTime sets the ComputeTime field's value. 6003 func (s *Evaluation) SetComputeTime(v int64) *Evaluation { 6004 s.ComputeTime = &v 6005 return s 6006 } 6007 6008 // SetCreatedAt sets the CreatedAt field's value. 6009 func (s *Evaluation) SetCreatedAt(v time.Time) *Evaluation { 6010 s.CreatedAt = &v 6011 return s 6012 } 6013 6014 // SetCreatedByIamUser sets the CreatedByIamUser field's value. 6015 func (s *Evaluation) SetCreatedByIamUser(v string) *Evaluation { 6016 s.CreatedByIamUser = &v 6017 return s 6018 } 6019 6020 // SetEvaluationDataSourceId sets the EvaluationDataSourceId field's value. 6021 func (s *Evaluation) SetEvaluationDataSourceId(v string) *Evaluation { 6022 s.EvaluationDataSourceId = &v 6023 return s 6024 } 6025 6026 // SetEvaluationId sets the EvaluationId field's value. 6027 func (s *Evaluation) SetEvaluationId(v string) *Evaluation { 6028 s.EvaluationId = &v 6029 return s 6030 } 6031 6032 // SetFinishedAt sets the FinishedAt field's value. 6033 func (s *Evaluation) SetFinishedAt(v time.Time) *Evaluation { 6034 s.FinishedAt = &v 6035 return s 6036 } 6037 6038 // SetInputDataLocationS3 sets the InputDataLocationS3 field's value. 6039 func (s *Evaluation) SetInputDataLocationS3(v string) *Evaluation { 6040 s.InputDataLocationS3 = &v 6041 return s 6042 } 6043 6044 // SetLastUpdatedAt sets the LastUpdatedAt field's value. 6045 func (s *Evaluation) SetLastUpdatedAt(v time.Time) *Evaluation { 6046 s.LastUpdatedAt = &v 6047 return s 6048 } 6049 6050 // SetMLModelId sets the MLModelId field's value. 6051 func (s *Evaluation) SetMLModelId(v string) *Evaluation { 6052 s.MLModelId = &v 6053 return s 6054 } 6055 6056 // SetMessage sets the Message field's value. 6057 func (s *Evaluation) SetMessage(v string) *Evaluation { 6058 s.Message = &v 6059 return s 6060 } 6061 6062 // SetName sets the Name field's value. 6063 func (s *Evaluation) SetName(v string) *Evaluation { 6064 s.Name = &v 6065 return s 6066 } 6067 6068 // SetPerformanceMetrics sets the PerformanceMetrics field's value. 6069 func (s *Evaluation) SetPerformanceMetrics(v *PerformanceMetrics) *Evaluation { 6070 s.PerformanceMetrics = v 6071 return s 6072 } 6073 6074 // SetStartedAt sets the StartedAt field's value. 6075 func (s *Evaluation) SetStartedAt(v time.Time) *Evaluation { 6076 s.StartedAt = &v 6077 return s 6078 } 6079 6080 // SetStatus sets the Status field's value. 6081 func (s *Evaluation) SetStatus(v string) *Evaluation { 6082 s.Status = &v 6083 return s 6084 } 6085 6086 type GetBatchPredictionInput struct { 6087 _ struct{} `type:"structure"` 6088 6089 // An ID assigned to the BatchPrediction at creation. 6090 // 6091 // BatchPredictionId is a required field 6092 BatchPredictionId *string `min:"1" type:"string" required:"true"` 6093 } 6094 6095 // String returns the string representation. 6096 // 6097 // API parameter values that are decorated as "sensitive" in the API will not 6098 // be included in the string output. The member name will be present, but the 6099 // value will be replaced with "sensitive". 6100 func (s GetBatchPredictionInput) String() string { 6101 return awsutil.Prettify(s) 6102 } 6103 6104 // GoString returns the string representation. 6105 // 6106 // API parameter values that are decorated as "sensitive" in the API will not 6107 // be included in the string output. The member name will be present, but the 6108 // value will be replaced with "sensitive". 6109 func (s GetBatchPredictionInput) GoString() string { 6110 return s.String() 6111 } 6112 6113 // Validate inspects the fields of the type to determine if they are valid. 6114 func (s *GetBatchPredictionInput) Validate() error { 6115 invalidParams := request.ErrInvalidParams{Context: "GetBatchPredictionInput"} 6116 if s.BatchPredictionId == nil { 6117 invalidParams.Add(request.NewErrParamRequired("BatchPredictionId")) 6118 } 6119 if s.BatchPredictionId != nil && len(*s.BatchPredictionId) < 1 { 6120 invalidParams.Add(request.NewErrParamMinLen("BatchPredictionId", 1)) 6121 } 6122 6123 if invalidParams.Len() > 0 { 6124 return invalidParams 6125 } 6126 return nil 6127 } 6128 6129 // SetBatchPredictionId sets the BatchPredictionId field's value. 6130 func (s *GetBatchPredictionInput) SetBatchPredictionId(v string) *GetBatchPredictionInput { 6131 s.BatchPredictionId = &v 6132 return s 6133 } 6134 6135 // Represents the output of a GetBatchPrediction operation and describes a BatchPrediction. 6136 type GetBatchPredictionOutput struct { 6137 _ struct{} `type:"structure"` 6138 6139 // The ID of the DataSource that was used to create the BatchPrediction. 6140 BatchPredictionDataSourceId *string `min:"1" type:"string"` 6141 6142 // An ID assigned to the BatchPrediction at creation. This value should be identical 6143 // to the value of the BatchPredictionID in the request. 6144 BatchPredictionId *string `min:"1" type:"string"` 6145 6146 // The approximate CPU time in milliseconds that Amazon Machine Learning spent 6147 // processing the BatchPrediction, normalized and scaled on computation resources. 6148 // ComputeTime is only available if the BatchPrediction is in the COMPLETED 6149 // state. 6150 ComputeTime *int64 `type:"long"` 6151 6152 // The time when the BatchPrediction was created. The time is expressed in epoch 6153 // time. 6154 CreatedAt *time.Time `type:"timestamp"` 6155 6156 // The AWS user account that invoked the BatchPrediction. The account type can 6157 // be either an AWS root account or an AWS Identity and Access Management (IAM) 6158 // user account. 6159 CreatedByIamUser *string `type:"string"` 6160 6161 // The epoch time when Amazon Machine Learning marked the BatchPrediction as 6162 // COMPLETED or FAILED. FinishedAt is only available when the BatchPrediction 6163 // is in the COMPLETED or FAILED state. 6164 FinishedAt *time.Time `type:"timestamp"` 6165 6166 // The location of the data file or directory in Amazon Simple Storage Service 6167 // (Amazon S3). 6168 InputDataLocationS3 *string `type:"string"` 6169 6170 // The number of invalid records that Amazon Machine Learning saw while processing 6171 // the BatchPrediction. 6172 InvalidRecordCount *int64 `type:"long"` 6173 6174 // The time of the most recent edit to BatchPrediction. The time is expressed 6175 // in epoch time. 6176 LastUpdatedAt *time.Time `type:"timestamp"` 6177 6178 // A link to the file that contains logs of the CreateBatchPrediction operation. 6179 LogUri *string `type:"string"` 6180 6181 // The ID of the MLModel that generated predictions for the BatchPrediction 6182 // request. 6183 MLModelId *string `min:"1" type:"string"` 6184 6185 // A description of the most recent details about processing the batch prediction 6186 // request. 6187 Message *string `type:"string"` 6188 6189 // A user-supplied name or description of the BatchPrediction. 6190 Name *string `type:"string"` 6191 6192 // The location of an Amazon S3 bucket or directory to receive the operation 6193 // results. 6194 OutputUri *string `type:"string"` 6195 6196 // The epoch time when Amazon Machine Learning marked the BatchPrediction as 6197 // INPROGRESS. StartedAt isn't available if the BatchPrediction is in the PENDING 6198 // state. 6199 StartedAt *time.Time `type:"timestamp"` 6200 6201 // The status of the BatchPrediction, which can be one of the following values: 6202 // 6203 // * PENDING - Amazon Machine Learning (Amazon ML) submitted a request to 6204 // generate batch predictions. 6205 // 6206 // * INPROGRESS - The batch predictions are in progress. 6207 // 6208 // * FAILED - The request to perform a batch prediction did not run to completion. 6209 // It is not usable. 6210 // 6211 // * COMPLETED - The batch prediction process completed successfully. 6212 // 6213 // * DELETED - The BatchPrediction is marked as deleted. It is not usable. 6214 Status *string `type:"string" enum:"EntityStatus"` 6215 6216 // The number of total records that Amazon Machine Learning saw while processing 6217 // the BatchPrediction. 6218 TotalRecordCount *int64 `type:"long"` 6219 } 6220 6221 // String returns the string representation. 6222 // 6223 // API parameter values that are decorated as "sensitive" in the API will not 6224 // be included in the string output. The member name will be present, but the 6225 // value will be replaced with "sensitive". 6226 func (s GetBatchPredictionOutput) String() string { 6227 return awsutil.Prettify(s) 6228 } 6229 6230 // GoString returns the string representation. 6231 // 6232 // API parameter values that are decorated as "sensitive" in the API will not 6233 // be included in the string output. The member name will be present, but the 6234 // value will be replaced with "sensitive". 6235 func (s GetBatchPredictionOutput) GoString() string { 6236 return s.String() 6237 } 6238 6239 // SetBatchPredictionDataSourceId sets the BatchPredictionDataSourceId field's value. 6240 func (s *GetBatchPredictionOutput) SetBatchPredictionDataSourceId(v string) *GetBatchPredictionOutput { 6241 s.BatchPredictionDataSourceId = &v 6242 return s 6243 } 6244 6245 // SetBatchPredictionId sets the BatchPredictionId field's value. 6246 func (s *GetBatchPredictionOutput) SetBatchPredictionId(v string) *GetBatchPredictionOutput { 6247 s.BatchPredictionId = &v 6248 return s 6249 } 6250 6251 // SetComputeTime sets the ComputeTime field's value. 6252 func (s *GetBatchPredictionOutput) SetComputeTime(v int64) *GetBatchPredictionOutput { 6253 s.ComputeTime = &v 6254 return s 6255 } 6256 6257 // SetCreatedAt sets the CreatedAt field's value. 6258 func (s *GetBatchPredictionOutput) SetCreatedAt(v time.Time) *GetBatchPredictionOutput { 6259 s.CreatedAt = &v 6260 return s 6261 } 6262 6263 // SetCreatedByIamUser sets the CreatedByIamUser field's value. 6264 func (s *GetBatchPredictionOutput) SetCreatedByIamUser(v string) *GetBatchPredictionOutput { 6265 s.CreatedByIamUser = &v 6266 return s 6267 } 6268 6269 // SetFinishedAt sets the FinishedAt field's value. 6270 func (s *GetBatchPredictionOutput) SetFinishedAt(v time.Time) *GetBatchPredictionOutput { 6271 s.FinishedAt = &v 6272 return s 6273 } 6274 6275 // SetInputDataLocationS3 sets the InputDataLocationS3 field's value. 6276 func (s *GetBatchPredictionOutput) SetInputDataLocationS3(v string) *GetBatchPredictionOutput { 6277 s.InputDataLocationS3 = &v 6278 return s 6279 } 6280 6281 // SetInvalidRecordCount sets the InvalidRecordCount field's value. 6282 func (s *GetBatchPredictionOutput) SetInvalidRecordCount(v int64) *GetBatchPredictionOutput { 6283 s.InvalidRecordCount = &v 6284 return s 6285 } 6286 6287 // SetLastUpdatedAt sets the LastUpdatedAt field's value. 6288 func (s *GetBatchPredictionOutput) SetLastUpdatedAt(v time.Time) *GetBatchPredictionOutput { 6289 s.LastUpdatedAt = &v 6290 return s 6291 } 6292 6293 // SetLogUri sets the LogUri field's value. 6294 func (s *GetBatchPredictionOutput) SetLogUri(v string) *GetBatchPredictionOutput { 6295 s.LogUri = &v 6296 return s 6297 } 6298 6299 // SetMLModelId sets the MLModelId field's value. 6300 func (s *GetBatchPredictionOutput) SetMLModelId(v string) *GetBatchPredictionOutput { 6301 s.MLModelId = &v 6302 return s 6303 } 6304 6305 // SetMessage sets the Message field's value. 6306 func (s *GetBatchPredictionOutput) SetMessage(v string) *GetBatchPredictionOutput { 6307 s.Message = &v 6308 return s 6309 } 6310 6311 // SetName sets the Name field's value. 6312 func (s *GetBatchPredictionOutput) SetName(v string) *GetBatchPredictionOutput { 6313 s.Name = &v 6314 return s 6315 } 6316 6317 // SetOutputUri sets the OutputUri field's value. 6318 func (s *GetBatchPredictionOutput) SetOutputUri(v string) *GetBatchPredictionOutput { 6319 s.OutputUri = &v 6320 return s 6321 } 6322 6323 // SetStartedAt sets the StartedAt field's value. 6324 func (s *GetBatchPredictionOutput) SetStartedAt(v time.Time) *GetBatchPredictionOutput { 6325 s.StartedAt = &v 6326 return s 6327 } 6328 6329 // SetStatus sets the Status field's value. 6330 func (s *GetBatchPredictionOutput) SetStatus(v string) *GetBatchPredictionOutput { 6331 s.Status = &v 6332 return s 6333 } 6334 6335 // SetTotalRecordCount sets the TotalRecordCount field's value. 6336 func (s *GetBatchPredictionOutput) SetTotalRecordCount(v int64) *GetBatchPredictionOutput { 6337 s.TotalRecordCount = &v 6338 return s 6339 } 6340 6341 type GetDataSourceInput struct { 6342 _ struct{} `type:"structure"` 6343 6344 // The ID assigned to the DataSource at creation. 6345 // 6346 // DataSourceId is a required field 6347 DataSourceId *string `min:"1" type:"string" required:"true"` 6348 6349 // Specifies whether the GetDataSource operation should return DataSourceSchema. 6350 // 6351 // If true, DataSourceSchema is returned. 6352 // 6353 // If false, DataSourceSchema is not returned. 6354 Verbose *bool `type:"boolean"` 6355 } 6356 6357 // String returns the string representation. 6358 // 6359 // API parameter values that are decorated as "sensitive" in the API will not 6360 // be included in the string output. The member name will be present, but the 6361 // value will be replaced with "sensitive". 6362 func (s GetDataSourceInput) String() string { 6363 return awsutil.Prettify(s) 6364 } 6365 6366 // GoString returns the string representation. 6367 // 6368 // API parameter values that are decorated as "sensitive" in the API will not 6369 // be included in the string output. The member name will be present, but the 6370 // value will be replaced with "sensitive". 6371 func (s GetDataSourceInput) GoString() string { 6372 return s.String() 6373 } 6374 6375 // Validate inspects the fields of the type to determine if they are valid. 6376 func (s *GetDataSourceInput) Validate() error { 6377 invalidParams := request.ErrInvalidParams{Context: "GetDataSourceInput"} 6378 if s.DataSourceId == nil { 6379 invalidParams.Add(request.NewErrParamRequired("DataSourceId")) 6380 } 6381 if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { 6382 invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) 6383 } 6384 6385 if invalidParams.Len() > 0 { 6386 return invalidParams 6387 } 6388 return nil 6389 } 6390 6391 // SetDataSourceId sets the DataSourceId field's value. 6392 func (s *GetDataSourceInput) SetDataSourceId(v string) *GetDataSourceInput { 6393 s.DataSourceId = &v 6394 return s 6395 } 6396 6397 // SetVerbose sets the Verbose field's value. 6398 func (s *GetDataSourceInput) SetVerbose(v bool) *GetDataSourceInput { 6399 s.Verbose = &v 6400 return s 6401 } 6402 6403 // Represents the output of a GetDataSource operation and describes a DataSource. 6404 type GetDataSourceOutput struct { 6405 _ struct{} `type:"structure"` 6406 6407 // The parameter is true if statistics need to be generated from the observation 6408 // data. 6409 ComputeStatistics *bool `type:"boolean"` 6410 6411 // The approximate CPU time in milliseconds that Amazon Machine Learning spent 6412 // processing the DataSource, normalized and scaled on computation resources. 6413 // ComputeTime is only available if the DataSource is in the COMPLETED state 6414 // and the ComputeStatistics is set to true. 6415 ComputeTime *int64 `type:"long"` 6416 6417 // The time that the DataSource was created. The time is expressed in epoch 6418 // time. 6419 CreatedAt *time.Time `type:"timestamp"` 6420 6421 // The AWS user account from which the DataSource was created. The account type 6422 // can be either an AWS root account or an AWS Identity and Access Management 6423 // (IAM) user account. 6424 CreatedByIamUser *string `type:"string"` 6425 6426 // The location of the data file or directory in Amazon Simple Storage Service 6427 // (Amazon S3). 6428 DataLocationS3 *string `type:"string"` 6429 6430 // A JSON string that represents the splitting and rearrangement requirement 6431 // used when this DataSource was created. 6432 DataRearrangement *string `type:"string"` 6433 6434 // The total size of observations in the data files. 6435 DataSizeInBytes *int64 `type:"long"` 6436 6437 // The ID assigned to the DataSource at creation. This value should be identical 6438 // to the value of the DataSourceId in the request. 6439 DataSourceId *string `min:"1" type:"string"` 6440 6441 // The schema used by all of the data files of this DataSource. 6442 // 6443 // Note: This parameter is provided as part of the verbose format. 6444 DataSourceSchema *string `type:"string"` 6445 6446 // The epoch time when Amazon Machine Learning marked the DataSource as COMPLETED 6447 // or FAILED. FinishedAt is only available when the DataSource is in the COMPLETED 6448 // or FAILED state. 6449 FinishedAt *time.Time `type:"timestamp"` 6450 6451 // The time of the most recent edit to the DataSource. The time is expressed 6452 // in epoch time. 6453 LastUpdatedAt *time.Time `type:"timestamp"` 6454 6455 // A link to the file containing logs of CreateDataSourceFrom* operations. 6456 LogUri *string `type:"string"` 6457 6458 // The user-supplied description of the most recent details about creating the 6459 // DataSource. 6460 Message *string `type:"string"` 6461 6462 // A user-supplied name or description of the DataSource. 6463 Name *string `type:"string"` 6464 6465 // The number of data files referenced by the DataSource. 6466 NumberOfFiles *int64 `type:"long"` 6467 6468 // The datasource details that are specific to Amazon RDS. 6469 RDSMetadata *RDSMetadata `type:"structure"` 6470 6471 // Describes the DataSource details specific to Amazon Redshift. 6472 RedshiftMetadata *RedshiftMetadata `type:"structure"` 6473 6474 // The Amazon Resource Name (ARN) of an AWS IAM Role (https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html#roles-about-termsandconcepts), 6475 // such as the following: arn:aws:iam::account:role/rolename. 6476 RoleARN *string `min:"1" type:"string"` 6477 6478 // The epoch time when Amazon Machine Learning marked the DataSource as INPROGRESS. 6479 // StartedAt isn't available if the DataSource is in the PENDING state. 6480 StartedAt *time.Time `type:"timestamp"` 6481 6482 // The current status of the DataSource. This element can have one of the following 6483 // values: 6484 // 6485 // * PENDING - Amazon ML submitted a request to create a DataSource. 6486 // 6487 // * INPROGRESS - The creation process is underway. 6488 // 6489 // * FAILED - The request to create a DataSource did not run to completion. 6490 // It is not usable. 6491 // 6492 // * COMPLETED - The creation process completed successfully. 6493 // 6494 // * DELETED - The DataSource is marked as deleted. It is not usable. 6495 Status *string `type:"string" enum:"EntityStatus"` 6496 } 6497 6498 // String returns the string representation. 6499 // 6500 // API parameter values that are decorated as "sensitive" in the API will not 6501 // be included in the string output. The member name will be present, but the 6502 // value will be replaced with "sensitive". 6503 func (s GetDataSourceOutput) String() string { 6504 return awsutil.Prettify(s) 6505 } 6506 6507 // GoString returns the string representation. 6508 // 6509 // API parameter values that are decorated as "sensitive" in the API will not 6510 // be included in the string output. The member name will be present, but the 6511 // value will be replaced with "sensitive". 6512 func (s GetDataSourceOutput) GoString() string { 6513 return s.String() 6514 } 6515 6516 // SetComputeStatistics sets the ComputeStatistics field's value. 6517 func (s *GetDataSourceOutput) SetComputeStatistics(v bool) *GetDataSourceOutput { 6518 s.ComputeStatistics = &v 6519 return s 6520 } 6521 6522 // SetComputeTime sets the ComputeTime field's value. 6523 func (s *GetDataSourceOutput) SetComputeTime(v int64) *GetDataSourceOutput { 6524 s.ComputeTime = &v 6525 return s 6526 } 6527 6528 // SetCreatedAt sets the CreatedAt field's value. 6529 func (s *GetDataSourceOutput) SetCreatedAt(v time.Time) *GetDataSourceOutput { 6530 s.CreatedAt = &v 6531 return s 6532 } 6533 6534 // SetCreatedByIamUser sets the CreatedByIamUser field's value. 6535 func (s *GetDataSourceOutput) SetCreatedByIamUser(v string) *GetDataSourceOutput { 6536 s.CreatedByIamUser = &v 6537 return s 6538 } 6539 6540 // SetDataLocationS3 sets the DataLocationS3 field's value. 6541 func (s *GetDataSourceOutput) SetDataLocationS3(v string) *GetDataSourceOutput { 6542 s.DataLocationS3 = &v 6543 return s 6544 } 6545 6546 // SetDataRearrangement sets the DataRearrangement field's value. 6547 func (s *GetDataSourceOutput) SetDataRearrangement(v string) *GetDataSourceOutput { 6548 s.DataRearrangement = &v 6549 return s 6550 } 6551 6552 // SetDataSizeInBytes sets the DataSizeInBytes field's value. 6553 func (s *GetDataSourceOutput) SetDataSizeInBytes(v int64) *GetDataSourceOutput { 6554 s.DataSizeInBytes = &v 6555 return s 6556 } 6557 6558 // SetDataSourceId sets the DataSourceId field's value. 6559 func (s *GetDataSourceOutput) SetDataSourceId(v string) *GetDataSourceOutput { 6560 s.DataSourceId = &v 6561 return s 6562 } 6563 6564 // SetDataSourceSchema sets the DataSourceSchema field's value. 6565 func (s *GetDataSourceOutput) SetDataSourceSchema(v string) *GetDataSourceOutput { 6566 s.DataSourceSchema = &v 6567 return s 6568 } 6569 6570 // SetFinishedAt sets the FinishedAt field's value. 6571 func (s *GetDataSourceOutput) SetFinishedAt(v time.Time) *GetDataSourceOutput { 6572 s.FinishedAt = &v 6573 return s 6574 } 6575 6576 // SetLastUpdatedAt sets the LastUpdatedAt field's value. 6577 func (s *GetDataSourceOutput) SetLastUpdatedAt(v time.Time) *GetDataSourceOutput { 6578 s.LastUpdatedAt = &v 6579 return s 6580 } 6581 6582 // SetLogUri sets the LogUri field's value. 6583 func (s *GetDataSourceOutput) SetLogUri(v string) *GetDataSourceOutput { 6584 s.LogUri = &v 6585 return s 6586 } 6587 6588 // SetMessage sets the Message field's value. 6589 func (s *GetDataSourceOutput) SetMessage(v string) *GetDataSourceOutput { 6590 s.Message = &v 6591 return s 6592 } 6593 6594 // SetName sets the Name field's value. 6595 func (s *GetDataSourceOutput) SetName(v string) *GetDataSourceOutput { 6596 s.Name = &v 6597 return s 6598 } 6599 6600 // SetNumberOfFiles sets the NumberOfFiles field's value. 6601 func (s *GetDataSourceOutput) SetNumberOfFiles(v int64) *GetDataSourceOutput { 6602 s.NumberOfFiles = &v 6603 return s 6604 } 6605 6606 // SetRDSMetadata sets the RDSMetadata field's value. 6607 func (s *GetDataSourceOutput) SetRDSMetadata(v *RDSMetadata) *GetDataSourceOutput { 6608 s.RDSMetadata = v 6609 return s 6610 } 6611 6612 // SetRedshiftMetadata sets the RedshiftMetadata field's value. 6613 func (s *GetDataSourceOutput) SetRedshiftMetadata(v *RedshiftMetadata) *GetDataSourceOutput { 6614 s.RedshiftMetadata = v 6615 return s 6616 } 6617 6618 // SetRoleARN sets the RoleARN field's value. 6619 func (s *GetDataSourceOutput) SetRoleARN(v string) *GetDataSourceOutput { 6620 s.RoleARN = &v 6621 return s 6622 } 6623 6624 // SetStartedAt sets the StartedAt field's value. 6625 func (s *GetDataSourceOutput) SetStartedAt(v time.Time) *GetDataSourceOutput { 6626 s.StartedAt = &v 6627 return s 6628 } 6629 6630 // SetStatus sets the Status field's value. 6631 func (s *GetDataSourceOutput) SetStatus(v string) *GetDataSourceOutput { 6632 s.Status = &v 6633 return s 6634 } 6635 6636 type GetEvaluationInput struct { 6637 _ struct{} `type:"structure"` 6638 6639 // The ID of the Evaluation to retrieve. The evaluation of each MLModel is recorded 6640 // and cataloged. The ID provides the means to access the information. 6641 // 6642 // EvaluationId is a required field 6643 EvaluationId *string `min:"1" type:"string" required:"true"` 6644 } 6645 6646 // String returns the string representation. 6647 // 6648 // API parameter values that are decorated as "sensitive" in the API will not 6649 // be included in the string output. The member name will be present, but the 6650 // value will be replaced with "sensitive". 6651 func (s GetEvaluationInput) String() string { 6652 return awsutil.Prettify(s) 6653 } 6654 6655 // GoString returns the string representation. 6656 // 6657 // API parameter values that are decorated as "sensitive" in the API will not 6658 // be included in the string output. The member name will be present, but the 6659 // value will be replaced with "sensitive". 6660 func (s GetEvaluationInput) GoString() string { 6661 return s.String() 6662 } 6663 6664 // Validate inspects the fields of the type to determine if they are valid. 6665 func (s *GetEvaluationInput) Validate() error { 6666 invalidParams := request.ErrInvalidParams{Context: "GetEvaluationInput"} 6667 if s.EvaluationId == nil { 6668 invalidParams.Add(request.NewErrParamRequired("EvaluationId")) 6669 } 6670 if s.EvaluationId != nil && len(*s.EvaluationId) < 1 { 6671 invalidParams.Add(request.NewErrParamMinLen("EvaluationId", 1)) 6672 } 6673 6674 if invalidParams.Len() > 0 { 6675 return invalidParams 6676 } 6677 return nil 6678 } 6679 6680 // SetEvaluationId sets the EvaluationId field's value. 6681 func (s *GetEvaluationInput) SetEvaluationId(v string) *GetEvaluationInput { 6682 s.EvaluationId = &v 6683 return s 6684 } 6685 6686 // Represents the output of a GetEvaluation operation and describes an Evaluation. 6687 type GetEvaluationOutput struct { 6688 _ struct{} `type:"structure"` 6689 6690 // The approximate CPU time in milliseconds that Amazon Machine Learning spent 6691 // processing the Evaluation, normalized and scaled on computation resources. 6692 // ComputeTime is only available if the Evaluation is in the COMPLETED state. 6693 ComputeTime *int64 `type:"long"` 6694 6695 // The time that the Evaluation was created. The time is expressed in epoch 6696 // time. 6697 CreatedAt *time.Time `type:"timestamp"` 6698 6699 // The AWS user account that invoked the evaluation. The account type can be 6700 // either an AWS root account or an AWS Identity and Access Management (IAM) 6701 // user account. 6702 CreatedByIamUser *string `type:"string"` 6703 6704 // The DataSource used for this evaluation. 6705 EvaluationDataSourceId *string `min:"1" type:"string"` 6706 6707 // The evaluation ID which is same as the EvaluationId in the request. 6708 EvaluationId *string `min:"1" type:"string"` 6709 6710 // The epoch time when Amazon Machine Learning marked the Evaluation as COMPLETED 6711 // or FAILED. FinishedAt is only available when the Evaluation is in the COMPLETED 6712 // or FAILED state. 6713 FinishedAt *time.Time `type:"timestamp"` 6714 6715 // The location of the data file or directory in Amazon Simple Storage Service 6716 // (Amazon S3). 6717 InputDataLocationS3 *string `type:"string"` 6718 6719 // The time of the most recent edit to the Evaluation. The time is expressed 6720 // in epoch time. 6721 LastUpdatedAt *time.Time `type:"timestamp"` 6722 6723 // A link to the file that contains logs of the CreateEvaluation operation. 6724 LogUri *string `type:"string"` 6725 6726 // The ID of the MLModel that was the focus of the evaluation. 6727 MLModelId *string `min:"1" type:"string"` 6728 6729 // A description of the most recent details about evaluating the MLModel. 6730 Message *string `type:"string"` 6731 6732 // A user-supplied name or description of the Evaluation. 6733 Name *string `type:"string"` 6734 6735 // Measurements of how well the MLModel performed using observations referenced 6736 // by the DataSource. One of the following metric is returned based on the type 6737 // of the MLModel: 6738 // 6739 // * BinaryAUC: A binary MLModel uses the Area Under the Curve (AUC) technique 6740 // to measure performance. 6741 // 6742 // * RegressionRMSE: A regression MLModel uses the Root Mean Square Error 6743 // (RMSE) technique to measure performance. RMSE measures the difference 6744 // between predicted and actual values for a single variable. 6745 // 6746 // * MulticlassAvgFScore: A multiclass MLModel uses the F1 score technique 6747 // to measure performance. 6748 // 6749 // For more information about performance metrics, please see the Amazon Machine 6750 // Learning Developer Guide (https://docs.aws.amazon.com/machine-learning/latest/dg). 6751 PerformanceMetrics *PerformanceMetrics `type:"structure"` 6752 6753 // The epoch time when Amazon Machine Learning marked the Evaluation as INPROGRESS. 6754 // StartedAt isn't available if the Evaluation is in the PENDING state. 6755 StartedAt *time.Time `type:"timestamp"` 6756 6757 // The status of the evaluation. This element can have one of the following 6758 // values: 6759 // 6760 // * PENDING - Amazon Machine Language (Amazon ML) submitted a request to 6761 // evaluate an MLModel. 6762 // 6763 // * INPROGRESS - The evaluation is underway. 6764 // 6765 // * FAILED - The request to evaluate an MLModel did not run to completion. 6766 // It is not usable. 6767 // 6768 // * COMPLETED - The evaluation process completed successfully. 6769 // 6770 // * DELETED - The Evaluation is marked as deleted. It is not usable. 6771 Status *string `type:"string" enum:"EntityStatus"` 6772 } 6773 6774 // String returns the string representation. 6775 // 6776 // API parameter values that are decorated as "sensitive" in the API will not 6777 // be included in the string output. The member name will be present, but the 6778 // value will be replaced with "sensitive". 6779 func (s GetEvaluationOutput) String() string { 6780 return awsutil.Prettify(s) 6781 } 6782 6783 // GoString returns the string representation. 6784 // 6785 // API parameter values that are decorated as "sensitive" in the API will not 6786 // be included in the string output. The member name will be present, but the 6787 // value will be replaced with "sensitive". 6788 func (s GetEvaluationOutput) GoString() string { 6789 return s.String() 6790 } 6791 6792 // SetComputeTime sets the ComputeTime field's value. 6793 func (s *GetEvaluationOutput) SetComputeTime(v int64) *GetEvaluationOutput { 6794 s.ComputeTime = &v 6795 return s 6796 } 6797 6798 // SetCreatedAt sets the CreatedAt field's value. 6799 func (s *GetEvaluationOutput) SetCreatedAt(v time.Time) *GetEvaluationOutput { 6800 s.CreatedAt = &v 6801 return s 6802 } 6803 6804 // SetCreatedByIamUser sets the CreatedByIamUser field's value. 6805 func (s *GetEvaluationOutput) SetCreatedByIamUser(v string) *GetEvaluationOutput { 6806 s.CreatedByIamUser = &v 6807 return s 6808 } 6809 6810 // SetEvaluationDataSourceId sets the EvaluationDataSourceId field's value. 6811 func (s *GetEvaluationOutput) SetEvaluationDataSourceId(v string) *GetEvaluationOutput { 6812 s.EvaluationDataSourceId = &v 6813 return s 6814 } 6815 6816 // SetEvaluationId sets the EvaluationId field's value. 6817 func (s *GetEvaluationOutput) SetEvaluationId(v string) *GetEvaluationOutput { 6818 s.EvaluationId = &v 6819 return s 6820 } 6821 6822 // SetFinishedAt sets the FinishedAt field's value. 6823 func (s *GetEvaluationOutput) SetFinishedAt(v time.Time) *GetEvaluationOutput { 6824 s.FinishedAt = &v 6825 return s 6826 } 6827 6828 // SetInputDataLocationS3 sets the InputDataLocationS3 field's value. 6829 func (s *GetEvaluationOutput) SetInputDataLocationS3(v string) *GetEvaluationOutput { 6830 s.InputDataLocationS3 = &v 6831 return s 6832 } 6833 6834 // SetLastUpdatedAt sets the LastUpdatedAt field's value. 6835 func (s *GetEvaluationOutput) SetLastUpdatedAt(v time.Time) *GetEvaluationOutput { 6836 s.LastUpdatedAt = &v 6837 return s 6838 } 6839 6840 // SetLogUri sets the LogUri field's value. 6841 func (s *GetEvaluationOutput) SetLogUri(v string) *GetEvaluationOutput { 6842 s.LogUri = &v 6843 return s 6844 } 6845 6846 // SetMLModelId sets the MLModelId field's value. 6847 func (s *GetEvaluationOutput) SetMLModelId(v string) *GetEvaluationOutput { 6848 s.MLModelId = &v 6849 return s 6850 } 6851 6852 // SetMessage sets the Message field's value. 6853 func (s *GetEvaluationOutput) SetMessage(v string) *GetEvaluationOutput { 6854 s.Message = &v 6855 return s 6856 } 6857 6858 // SetName sets the Name field's value. 6859 func (s *GetEvaluationOutput) SetName(v string) *GetEvaluationOutput { 6860 s.Name = &v 6861 return s 6862 } 6863 6864 // SetPerformanceMetrics sets the PerformanceMetrics field's value. 6865 func (s *GetEvaluationOutput) SetPerformanceMetrics(v *PerformanceMetrics) *GetEvaluationOutput { 6866 s.PerformanceMetrics = v 6867 return s 6868 } 6869 6870 // SetStartedAt sets the StartedAt field's value. 6871 func (s *GetEvaluationOutput) SetStartedAt(v time.Time) *GetEvaluationOutput { 6872 s.StartedAt = &v 6873 return s 6874 } 6875 6876 // SetStatus sets the Status field's value. 6877 func (s *GetEvaluationOutput) SetStatus(v string) *GetEvaluationOutput { 6878 s.Status = &v 6879 return s 6880 } 6881 6882 type GetMLModelInput struct { 6883 _ struct{} `type:"structure"` 6884 6885 // The ID assigned to the MLModel at creation. 6886 // 6887 // MLModelId is a required field 6888 MLModelId *string `min:"1" type:"string" required:"true"` 6889 6890 // Specifies whether the GetMLModel operation should return Recipe. 6891 // 6892 // If true, Recipe is returned. 6893 // 6894 // If false, Recipe is not returned. 6895 Verbose *bool `type:"boolean"` 6896 } 6897 6898 // String returns the string representation. 6899 // 6900 // API parameter values that are decorated as "sensitive" in the API will not 6901 // be included in the string output. The member name will be present, but the 6902 // value will be replaced with "sensitive". 6903 func (s GetMLModelInput) String() string { 6904 return awsutil.Prettify(s) 6905 } 6906 6907 // GoString returns the string representation. 6908 // 6909 // API parameter values that are decorated as "sensitive" in the API will not 6910 // be included in the string output. The member name will be present, but the 6911 // value will be replaced with "sensitive". 6912 func (s GetMLModelInput) GoString() string { 6913 return s.String() 6914 } 6915 6916 // Validate inspects the fields of the type to determine if they are valid. 6917 func (s *GetMLModelInput) Validate() error { 6918 invalidParams := request.ErrInvalidParams{Context: "GetMLModelInput"} 6919 if s.MLModelId == nil { 6920 invalidParams.Add(request.NewErrParamRequired("MLModelId")) 6921 } 6922 if s.MLModelId != nil && len(*s.MLModelId) < 1 { 6923 invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) 6924 } 6925 6926 if invalidParams.Len() > 0 { 6927 return invalidParams 6928 } 6929 return nil 6930 } 6931 6932 // SetMLModelId sets the MLModelId field's value. 6933 func (s *GetMLModelInput) SetMLModelId(v string) *GetMLModelInput { 6934 s.MLModelId = &v 6935 return s 6936 } 6937 6938 // SetVerbose sets the Verbose field's value. 6939 func (s *GetMLModelInput) SetVerbose(v bool) *GetMLModelInput { 6940 s.Verbose = &v 6941 return s 6942 } 6943 6944 // Represents the output of a GetMLModel operation, and provides detailed information 6945 // about a MLModel. 6946 type GetMLModelOutput struct { 6947 _ struct{} `type:"structure"` 6948 6949 // The approximate CPU time in milliseconds that Amazon Machine Learning spent 6950 // processing the MLModel, normalized and scaled on computation resources. ComputeTime 6951 // is only available if the MLModel is in the COMPLETED state. 6952 ComputeTime *int64 `type:"long"` 6953 6954 // The time that the MLModel was created. The time is expressed in epoch time. 6955 CreatedAt *time.Time `type:"timestamp"` 6956 6957 // The AWS user account from which the MLModel was created. The account type 6958 // can be either an AWS root account or an AWS Identity and Access Management 6959 // (IAM) user account. 6960 CreatedByIamUser *string `type:"string"` 6961 6962 // The current endpoint of the MLModel 6963 EndpointInfo *RealtimeEndpointInfo `type:"structure"` 6964 6965 // The epoch time when Amazon Machine Learning marked the MLModel as COMPLETED 6966 // or FAILED. FinishedAt is only available when the MLModel is in the COMPLETED 6967 // or FAILED state. 6968 FinishedAt *time.Time `type:"timestamp"` 6969 6970 // The location of the data file or directory in Amazon Simple Storage Service 6971 // (Amazon S3). 6972 InputDataLocationS3 *string `type:"string"` 6973 6974 // The time of the most recent edit to the MLModel. The time is expressed in 6975 // epoch time. 6976 LastUpdatedAt *time.Time `type:"timestamp"` 6977 6978 // A link to the file that contains logs of the CreateMLModel operation. 6979 LogUri *string `type:"string"` 6980 6981 // The MLModel ID, which is same as the MLModelId in the request. 6982 MLModelId *string `min:"1" type:"string"` 6983 6984 // Identifies the MLModel category. The following are the available types: 6985 // 6986 // * REGRESSION -- Produces a numeric result. For example, "What price should 6987 // a house be listed at?" 6988 // 6989 // * BINARY -- Produces one of two possible results. For example, "Is this 6990 // an e-commerce website?" 6991 // 6992 // * MULTICLASS -- Produces one of several possible results. For example, 6993 // "Is this a HIGH, LOW or MEDIUM risk trade?" 6994 MLModelType *string `type:"string" enum:"MLModelType"` 6995 6996 // A description of the most recent details about accessing the MLModel. 6997 Message *string `type:"string"` 6998 6999 // A user-supplied name or description of the MLModel. 7000 Name *string `type:"string"` 7001 7002 // The recipe to use when training the MLModel. The Recipe provides detailed 7003 // information about the observation data to use during training, and manipulations 7004 // to perform on the observation data during training. 7005 // 7006 // Note: This parameter is provided as part of the verbose format. 7007 Recipe *string `type:"string"` 7008 7009 // The schema used by all of the data files referenced by the DataSource. 7010 // 7011 // Note: This parameter is provided as part of the verbose format. 7012 Schema *string `type:"string"` 7013 7014 // The scoring threshold is used in binary classification MLModel models. It 7015 // marks the boundary between a positive prediction and a negative prediction. 7016 // 7017 // Output values greater than or equal to the threshold receive a positive result 7018 // from the MLModel, such as true. Output values less than the threshold receive 7019 // a negative response from the MLModel, such as false. 7020 ScoreThreshold *float64 `type:"float"` 7021 7022 // The time of the most recent edit to the ScoreThreshold. The time is expressed 7023 // in epoch time. 7024 ScoreThresholdLastUpdatedAt *time.Time `type:"timestamp"` 7025 7026 // Long integer type that is a 64-bit signed number. 7027 SizeInBytes *int64 `type:"long"` 7028 7029 // The epoch time when Amazon Machine Learning marked the MLModel as INPROGRESS. 7030 // StartedAt isn't available if the MLModel is in the PENDING state. 7031 StartedAt *time.Time `type:"timestamp"` 7032 7033 // The current status of the MLModel. This element can have one of the following 7034 // values: 7035 // 7036 // * PENDING - Amazon Machine Learning (Amazon ML) submitted a request to 7037 // describe a MLModel. 7038 // 7039 // * INPROGRESS - The request is processing. 7040 // 7041 // * FAILED - The request did not run to completion. The ML model isn't usable. 7042 // 7043 // * COMPLETED - The request completed successfully. 7044 // 7045 // * DELETED - The MLModel is marked as deleted. It isn't usable. 7046 Status *string `type:"string" enum:"EntityStatus"` 7047 7048 // The ID of the training DataSource. 7049 TrainingDataSourceId *string `min:"1" type:"string"` 7050 7051 // A list of the training parameters in the MLModel. The list is implemented 7052 // as a map of key-value pairs. 7053 // 7054 // The following is the current set of training parameters: 7055 // 7056 // * sgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending 7057 // on the input data, the size of the model might affect its performance. 7058 // The value is an integer that ranges from 100000 to 2147483648. The default 7059 // value is 33554432. 7060 // 7061 // * sgd.maxPasses - The number of times that the training process traverses 7062 // the observations to build the MLModel. The value is an integer that ranges 7063 // from 1 to 10000. The default value is 10. 7064 // 7065 // * sgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling 7066 // data improves a model's ability to find the optimal solution for a variety 7067 // of data types. The valid values are auto and none. The default value is 7068 // none. We strongly recommend that you shuffle your data. 7069 // 7070 // * sgd.l1RegularizationAmount - The coefficient regularization L1 norm. 7071 // It controls overfitting the data by penalizing large coefficients. This 7072 // tends to drive coefficients to zero, resulting in a sparse feature set. 7073 // If you use this parameter, start by specifying a small value, such as 7074 // 1.0E-08. The value is a double that ranges from 0 to MAX_DOUBLE. The default 7075 // is to not use L1 normalization. This parameter can't be used when L2 is 7076 // specified. Use this parameter sparingly. 7077 // 7078 // * sgd.l2RegularizationAmount - The coefficient regularization L2 norm. 7079 // It controls overfitting the data by penalizing large coefficients. This 7080 // tends to drive coefficients to small, nonzero values. If you use this 7081 // parameter, start by specifying a small value, such as 1.0E-08. The value 7082 // is a double that ranges from 0 to MAX_DOUBLE. The default is to not use 7083 // L2 normalization. This parameter can't be used when L1 is specified. Use 7084 // this parameter sparingly. 7085 TrainingParameters map[string]*string `type:"map"` 7086 } 7087 7088 // String returns the string representation. 7089 // 7090 // API parameter values that are decorated as "sensitive" in the API will not 7091 // be included in the string output. The member name will be present, but the 7092 // value will be replaced with "sensitive". 7093 func (s GetMLModelOutput) String() string { 7094 return awsutil.Prettify(s) 7095 } 7096 7097 // GoString returns the string representation. 7098 // 7099 // API parameter values that are decorated as "sensitive" in the API will not 7100 // be included in the string output. The member name will be present, but the 7101 // value will be replaced with "sensitive". 7102 func (s GetMLModelOutput) GoString() string { 7103 return s.String() 7104 } 7105 7106 // SetComputeTime sets the ComputeTime field's value. 7107 func (s *GetMLModelOutput) SetComputeTime(v int64) *GetMLModelOutput { 7108 s.ComputeTime = &v 7109 return s 7110 } 7111 7112 // SetCreatedAt sets the CreatedAt field's value. 7113 func (s *GetMLModelOutput) SetCreatedAt(v time.Time) *GetMLModelOutput { 7114 s.CreatedAt = &v 7115 return s 7116 } 7117 7118 // SetCreatedByIamUser sets the CreatedByIamUser field's value. 7119 func (s *GetMLModelOutput) SetCreatedByIamUser(v string) *GetMLModelOutput { 7120 s.CreatedByIamUser = &v 7121 return s 7122 } 7123 7124 // SetEndpointInfo sets the EndpointInfo field's value. 7125 func (s *GetMLModelOutput) SetEndpointInfo(v *RealtimeEndpointInfo) *GetMLModelOutput { 7126 s.EndpointInfo = v 7127 return s 7128 } 7129 7130 // SetFinishedAt sets the FinishedAt field's value. 7131 func (s *GetMLModelOutput) SetFinishedAt(v time.Time) *GetMLModelOutput { 7132 s.FinishedAt = &v 7133 return s 7134 } 7135 7136 // SetInputDataLocationS3 sets the InputDataLocationS3 field's value. 7137 func (s *GetMLModelOutput) SetInputDataLocationS3(v string) *GetMLModelOutput { 7138 s.InputDataLocationS3 = &v 7139 return s 7140 } 7141 7142 // SetLastUpdatedAt sets the LastUpdatedAt field's value. 7143 func (s *GetMLModelOutput) SetLastUpdatedAt(v time.Time) *GetMLModelOutput { 7144 s.LastUpdatedAt = &v 7145 return s 7146 } 7147 7148 // SetLogUri sets the LogUri field's value. 7149 func (s *GetMLModelOutput) SetLogUri(v string) *GetMLModelOutput { 7150 s.LogUri = &v 7151 return s 7152 } 7153 7154 // SetMLModelId sets the MLModelId field's value. 7155 func (s *GetMLModelOutput) SetMLModelId(v string) *GetMLModelOutput { 7156 s.MLModelId = &v 7157 return s 7158 } 7159 7160 // SetMLModelType sets the MLModelType field's value. 7161 func (s *GetMLModelOutput) SetMLModelType(v string) *GetMLModelOutput { 7162 s.MLModelType = &v 7163 return s 7164 } 7165 7166 // SetMessage sets the Message field's value. 7167 func (s *GetMLModelOutput) SetMessage(v string) *GetMLModelOutput { 7168 s.Message = &v 7169 return s 7170 } 7171 7172 // SetName sets the Name field's value. 7173 func (s *GetMLModelOutput) SetName(v string) *GetMLModelOutput { 7174 s.Name = &v 7175 return s 7176 } 7177 7178 // SetRecipe sets the Recipe field's value. 7179 func (s *GetMLModelOutput) SetRecipe(v string) *GetMLModelOutput { 7180 s.Recipe = &v 7181 return s 7182 } 7183 7184 // SetSchema sets the Schema field's value. 7185 func (s *GetMLModelOutput) SetSchema(v string) *GetMLModelOutput { 7186 s.Schema = &v 7187 return s 7188 } 7189 7190 // SetScoreThreshold sets the ScoreThreshold field's value. 7191 func (s *GetMLModelOutput) SetScoreThreshold(v float64) *GetMLModelOutput { 7192 s.ScoreThreshold = &v 7193 return s 7194 } 7195 7196 // SetScoreThresholdLastUpdatedAt sets the ScoreThresholdLastUpdatedAt field's value. 7197 func (s *GetMLModelOutput) SetScoreThresholdLastUpdatedAt(v time.Time) *GetMLModelOutput { 7198 s.ScoreThresholdLastUpdatedAt = &v 7199 return s 7200 } 7201 7202 // SetSizeInBytes sets the SizeInBytes field's value. 7203 func (s *GetMLModelOutput) SetSizeInBytes(v int64) *GetMLModelOutput { 7204 s.SizeInBytes = &v 7205 return s 7206 } 7207 7208 // SetStartedAt sets the StartedAt field's value. 7209 func (s *GetMLModelOutput) SetStartedAt(v time.Time) *GetMLModelOutput { 7210 s.StartedAt = &v 7211 return s 7212 } 7213 7214 // SetStatus sets the Status field's value. 7215 func (s *GetMLModelOutput) SetStatus(v string) *GetMLModelOutput { 7216 s.Status = &v 7217 return s 7218 } 7219 7220 // SetTrainingDataSourceId sets the TrainingDataSourceId field's value. 7221 func (s *GetMLModelOutput) SetTrainingDataSourceId(v string) *GetMLModelOutput { 7222 s.TrainingDataSourceId = &v 7223 return s 7224 } 7225 7226 // SetTrainingParameters sets the TrainingParameters field's value. 7227 func (s *GetMLModelOutput) SetTrainingParameters(v map[string]*string) *GetMLModelOutput { 7228 s.TrainingParameters = v 7229 return s 7230 } 7231 7232 // A second request to use or change an object was not allowed. This can result 7233 // from retrying a request using a parameter that was not present in the original 7234 // request. 7235 type IdempotentParameterMismatchException struct { 7236 _ struct{} `type:"structure"` 7237 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7238 7239 Code_ *int64 `locationName:"code" type:"integer"` 7240 7241 Message_ *string `locationName:"message" type:"string"` 7242 } 7243 7244 // String returns the string representation. 7245 // 7246 // API parameter values that are decorated as "sensitive" in the API will not 7247 // be included in the string output. The member name will be present, but the 7248 // value will be replaced with "sensitive". 7249 func (s IdempotentParameterMismatchException) String() string { 7250 return awsutil.Prettify(s) 7251 } 7252 7253 // GoString returns the string representation. 7254 // 7255 // API parameter values that are decorated as "sensitive" in the API will not 7256 // be included in the string output. The member name will be present, but the 7257 // value will be replaced with "sensitive". 7258 func (s IdempotentParameterMismatchException) GoString() string { 7259 return s.String() 7260 } 7261 7262 func newErrorIdempotentParameterMismatchException(v protocol.ResponseMetadata) error { 7263 return &IdempotentParameterMismatchException{ 7264 RespMetadata: v, 7265 } 7266 } 7267 7268 // Code returns the exception type name. 7269 func (s *IdempotentParameterMismatchException) Code() string { 7270 return "IdempotentParameterMismatchException" 7271 } 7272 7273 // Message returns the exception's message. 7274 func (s *IdempotentParameterMismatchException) Message() string { 7275 if s.Message_ != nil { 7276 return *s.Message_ 7277 } 7278 return "" 7279 } 7280 7281 // OrigErr always returns nil, satisfies awserr.Error interface. 7282 func (s *IdempotentParameterMismatchException) OrigErr() error { 7283 return nil 7284 } 7285 7286 func (s *IdempotentParameterMismatchException) Error() string { 7287 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 7288 } 7289 7290 // Status code returns the HTTP status code for the request's response error. 7291 func (s *IdempotentParameterMismatchException) StatusCode() int { 7292 return s.RespMetadata.StatusCode 7293 } 7294 7295 // RequestID returns the service's response RequestID for request. 7296 func (s *IdempotentParameterMismatchException) RequestID() string { 7297 return s.RespMetadata.RequestID 7298 } 7299 7300 // An error on the server occurred when trying to process a request. 7301 type InternalServerException struct { 7302 _ struct{} `type:"structure"` 7303 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7304 7305 Code_ *int64 `locationName:"code" type:"integer"` 7306 7307 Message_ *string `locationName:"message" type:"string"` 7308 } 7309 7310 // String returns the string representation. 7311 // 7312 // API parameter values that are decorated as "sensitive" in the API will not 7313 // be included in the string output. The member name will be present, but the 7314 // value will be replaced with "sensitive". 7315 func (s InternalServerException) String() string { 7316 return awsutil.Prettify(s) 7317 } 7318 7319 // GoString returns the string representation. 7320 // 7321 // API parameter values that are decorated as "sensitive" in the API will not 7322 // be included in the string output. The member name will be present, but the 7323 // value will be replaced with "sensitive". 7324 func (s InternalServerException) GoString() string { 7325 return s.String() 7326 } 7327 7328 func newErrorInternalServerException(v protocol.ResponseMetadata) error { 7329 return &InternalServerException{ 7330 RespMetadata: v, 7331 } 7332 } 7333 7334 // Code returns the exception type name. 7335 func (s *InternalServerException) Code() string { 7336 return "InternalServerException" 7337 } 7338 7339 // Message returns the exception's message. 7340 func (s *InternalServerException) Message() string { 7341 if s.Message_ != nil { 7342 return *s.Message_ 7343 } 7344 return "" 7345 } 7346 7347 // OrigErr always returns nil, satisfies awserr.Error interface. 7348 func (s *InternalServerException) OrigErr() error { 7349 return nil 7350 } 7351 7352 func (s *InternalServerException) Error() string { 7353 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 7354 } 7355 7356 // Status code returns the HTTP status code for the request's response error. 7357 func (s *InternalServerException) StatusCode() int { 7358 return s.RespMetadata.StatusCode 7359 } 7360 7361 // RequestID returns the service's response RequestID for request. 7362 func (s *InternalServerException) RequestID() string { 7363 return s.RespMetadata.RequestID 7364 } 7365 7366 // An error on the client occurred. Typically, the cause is an invalid input 7367 // value. 7368 type InvalidInputException struct { 7369 _ struct{} `type:"structure"` 7370 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7371 7372 Code_ *int64 `locationName:"code" type:"integer"` 7373 7374 Message_ *string `locationName:"message" type:"string"` 7375 } 7376 7377 // String returns the string representation. 7378 // 7379 // API parameter values that are decorated as "sensitive" in the API will not 7380 // be included in the string output. The member name will be present, but the 7381 // value will be replaced with "sensitive". 7382 func (s InvalidInputException) String() string { 7383 return awsutil.Prettify(s) 7384 } 7385 7386 // GoString returns the string representation. 7387 // 7388 // API parameter values that are decorated as "sensitive" in the API will not 7389 // be included in the string output. The member name will be present, but the 7390 // value will be replaced with "sensitive". 7391 func (s InvalidInputException) GoString() string { 7392 return s.String() 7393 } 7394 7395 func newErrorInvalidInputException(v protocol.ResponseMetadata) error { 7396 return &InvalidInputException{ 7397 RespMetadata: v, 7398 } 7399 } 7400 7401 // Code returns the exception type name. 7402 func (s *InvalidInputException) Code() string { 7403 return "InvalidInputException" 7404 } 7405 7406 // Message returns the exception's message. 7407 func (s *InvalidInputException) Message() string { 7408 if s.Message_ != nil { 7409 return *s.Message_ 7410 } 7411 return "" 7412 } 7413 7414 // OrigErr always returns nil, satisfies awserr.Error interface. 7415 func (s *InvalidInputException) OrigErr() error { 7416 return nil 7417 } 7418 7419 func (s *InvalidInputException) Error() string { 7420 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 7421 } 7422 7423 // Status code returns the HTTP status code for the request's response error. 7424 func (s *InvalidInputException) StatusCode() int { 7425 return s.RespMetadata.StatusCode 7426 } 7427 7428 // RequestID returns the service's response RequestID for request. 7429 func (s *InvalidInputException) RequestID() string { 7430 return s.RespMetadata.RequestID 7431 } 7432 7433 type InvalidTagException struct { 7434 _ struct{} `type:"structure"` 7435 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7436 7437 Message_ *string `locationName:"message" type:"string"` 7438 } 7439 7440 // String returns the string representation. 7441 // 7442 // API parameter values that are decorated as "sensitive" in the API will not 7443 // be included in the string output. The member name will be present, but the 7444 // value will be replaced with "sensitive". 7445 func (s InvalidTagException) String() string { 7446 return awsutil.Prettify(s) 7447 } 7448 7449 // GoString returns the string representation. 7450 // 7451 // API parameter values that are decorated as "sensitive" in the API will not 7452 // be included in the string output. The member name will be present, but the 7453 // value will be replaced with "sensitive". 7454 func (s InvalidTagException) GoString() string { 7455 return s.String() 7456 } 7457 7458 func newErrorInvalidTagException(v protocol.ResponseMetadata) error { 7459 return &InvalidTagException{ 7460 RespMetadata: v, 7461 } 7462 } 7463 7464 // Code returns the exception type name. 7465 func (s *InvalidTagException) Code() string { 7466 return "InvalidTagException" 7467 } 7468 7469 // Message returns the exception's message. 7470 func (s *InvalidTagException) Message() string { 7471 if s.Message_ != nil { 7472 return *s.Message_ 7473 } 7474 return "" 7475 } 7476 7477 // OrigErr always returns nil, satisfies awserr.Error interface. 7478 func (s *InvalidTagException) OrigErr() error { 7479 return nil 7480 } 7481 7482 func (s *InvalidTagException) Error() string { 7483 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7484 } 7485 7486 // Status code returns the HTTP status code for the request's response error. 7487 func (s *InvalidTagException) StatusCode() int { 7488 return s.RespMetadata.StatusCode 7489 } 7490 7491 // RequestID returns the service's response RequestID for request. 7492 func (s *InvalidTagException) RequestID() string { 7493 return s.RespMetadata.RequestID 7494 } 7495 7496 // The subscriber exceeded the maximum number of operations. This exception 7497 // can occur when listing objects such as DataSource. 7498 type LimitExceededException struct { 7499 _ struct{} `type:"structure"` 7500 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7501 7502 Code_ *int64 `locationName:"code" type:"integer"` 7503 7504 Message_ *string `locationName:"message" type:"string"` 7505 } 7506 7507 // String returns the string representation. 7508 // 7509 // API parameter values that are decorated as "sensitive" in the API will not 7510 // be included in the string output. The member name will be present, but the 7511 // value will be replaced with "sensitive". 7512 func (s LimitExceededException) String() string { 7513 return awsutil.Prettify(s) 7514 } 7515 7516 // GoString returns the string representation. 7517 // 7518 // API parameter values that are decorated as "sensitive" in the API will not 7519 // be included in the string output. The member name will be present, but the 7520 // value will be replaced with "sensitive". 7521 func (s LimitExceededException) GoString() string { 7522 return s.String() 7523 } 7524 7525 func newErrorLimitExceededException(v protocol.ResponseMetadata) error { 7526 return &LimitExceededException{ 7527 RespMetadata: v, 7528 } 7529 } 7530 7531 // Code returns the exception type name. 7532 func (s *LimitExceededException) Code() string { 7533 return "LimitExceededException" 7534 } 7535 7536 // Message returns the exception's message. 7537 func (s *LimitExceededException) Message() string { 7538 if s.Message_ != nil { 7539 return *s.Message_ 7540 } 7541 return "" 7542 } 7543 7544 // OrigErr always returns nil, satisfies awserr.Error interface. 7545 func (s *LimitExceededException) OrigErr() error { 7546 return nil 7547 } 7548 7549 func (s *LimitExceededException) Error() string { 7550 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 7551 } 7552 7553 // Status code returns the HTTP status code for the request's response error. 7554 func (s *LimitExceededException) StatusCode() int { 7555 return s.RespMetadata.StatusCode 7556 } 7557 7558 // RequestID returns the service's response RequestID for request. 7559 func (s *LimitExceededException) RequestID() string { 7560 return s.RespMetadata.RequestID 7561 } 7562 7563 // Represents the output of a GetMLModel operation. 7564 // 7565 // The content consists of the detailed metadata and the current status of the 7566 // MLModel. 7567 type MLModel struct { 7568 _ struct{} `type:"structure"` 7569 7570 // The algorithm used to train the MLModel. The following algorithm is supported: 7571 // 7572 // * SGD -- Stochastic gradient descent. The goal of SGD is to minimize the 7573 // gradient of the loss function. 7574 Algorithm *string `type:"string" enum:"Algorithm"` 7575 7576 // Long integer type that is a 64-bit signed number. 7577 ComputeTime *int64 `type:"long"` 7578 7579 // The time that the MLModel was created. The time is expressed in epoch time. 7580 CreatedAt *time.Time `type:"timestamp"` 7581 7582 // The AWS user account from which the MLModel was created. The account type 7583 // can be either an AWS root account or an AWS Identity and Access Management 7584 // (IAM) user account. 7585 CreatedByIamUser *string `type:"string"` 7586 7587 // The current endpoint of the MLModel. 7588 EndpointInfo *RealtimeEndpointInfo `type:"structure"` 7589 7590 // A timestamp represented in epoch time. 7591 FinishedAt *time.Time `type:"timestamp"` 7592 7593 // The location of the data file or directory in Amazon Simple Storage Service 7594 // (Amazon S3). 7595 InputDataLocationS3 *string `type:"string"` 7596 7597 // The time of the most recent edit to the MLModel. The time is expressed in 7598 // epoch time. 7599 LastUpdatedAt *time.Time `type:"timestamp"` 7600 7601 // The ID assigned to the MLModel at creation. 7602 MLModelId *string `min:"1" type:"string"` 7603 7604 // Identifies the MLModel category. The following are the available types: 7605 // 7606 // * REGRESSION - Produces a numeric result. For example, "What price should 7607 // a house be listed at?" 7608 // 7609 // * BINARY - Produces one of two possible results. For example, "Is this 7610 // a child-friendly web site?". 7611 // 7612 // * MULTICLASS - Produces one of several possible results. For example, 7613 // "Is this a HIGH-, LOW-, or MEDIUM-risk trade?". 7614 MLModelType *string `type:"string" enum:"MLModelType"` 7615 7616 // A description of the most recent details about accessing the MLModel. 7617 Message *string `type:"string"` 7618 7619 // A user-supplied name or description of the MLModel. 7620 Name *string `type:"string"` 7621 7622 ScoreThreshold *float64 `type:"float"` 7623 7624 // The time of the most recent edit to the ScoreThreshold. The time is expressed 7625 // in epoch time. 7626 ScoreThresholdLastUpdatedAt *time.Time `type:"timestamp"` 7627 7628 // Long integer type that is a 64-bit signed number. 7629 SizeInBytes *int64 `type:"long"` 7630 7631 // A timestamp represented in epoch time. 7632 StartedAt *time.Time `type:"timestamp"` 7633 7634 // The current status of an MLModel. This element can have one of the following 7635 // values: 7636 // 7637 // * PENDING - Amazon Machine Learning (Amazon ML) submitted a request to 7638 // create an MLModel. 7639 // 7640 // * INPROGRESS - The creation process is underway. 7641 // 7642 // * FAILED - The request to create an MLModel didn't run to completion. 7643 // The model isn't usable. 7644 // 7645 // * COMPLETED - The creation process completed successfully. 7646 // 7647 // * DELETED - The MLModel is marked as deleted. It isn't usable. 7648 Status *string `type:"string" enum:"EntityStatus"` 7649 7650 // The ID of the training DataSource. The CreateMLModel operation uses the TrainingDataSourceId. 7651 TrainingDataSourceId *string `min:"1" type:"string"` 7652 7653 // A list of the training parameters in the MLModel. The list is implemented 7654 // as a map of key-value pairs. 7655 // 7656 // The following is the current set of training parameters: 7657 // 7658 // * sgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending 7659 // on the input data, the size of the model might affect its performance. 7660 // The value is an integer that ranges from 100000 to 2147483648. The default 7661 // value is 33554432. 7662 // 7663 // * sgd.maxPasses - The number of times that the training process traverses 7664 // the observations to build the MLModel. The value is an integer that ranges 7665 // from 1 to 10000. The default value is 10. 7666 // 7667 // * sgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling 7668 // the data improves a model's ability to find the optimal solution for a 7669 // variety of data types. The valid values are auto and none. The default 7670 // value is none. 7671 // 7672 // * sgd.l1RegularizationAmount - The coefficient regularization L1 norm, 7673 // which controls overfitting the data by penalizing large coefficients. 7674 // This parameter tends to drive coefficients to zero, resulting in sparse 7675 // feature set. If you use this parameter, start by specifying a small value, 7676 // such as 1.0E-08. The value is a double that ranges from 0 to MAX_DOUBLE. 7677 // The default is to not use L1 normalization. This parameter can't be used 7678 // when L2 is specified. Use this parameter sparingly. 7679 // 7680 // * sgd.l2RegularizationAmount - The coefficient regularization L2 norm, 7681 // which controls overfitting the data by penalizing large coefficients. 7682 // This tends to drive coefficients to small, nonzero values. If you use 7683 // this parameter, start by specifying a small value, such as 1.0E-08. The 7684 // value is a double that ranges from 0 to MAX_DOUBLE. The default is to 7685 // not use L2 normalization. This parameter can't be used when L1 is specified. 7686 // Use this parameter sparingly. 7687 TrainingParameters map[string]*string `type:"map"` 7688 } 7689 7690 // String returns the string representation. 7691 // 7692 // API parameter values that are decorated as "sensitive" in the API will not 7693 // be included in the string output. The member name will be present, but the 7694 // value will be replaced with "sensitive". 7695 func (s MLModel) String() string { 7696 return awsutil.Prettify(s) 7697 } 7698 7699 // GoString returns the string representation. 7700 // 7701 // API parameter values that are decorated as "sensitive" in the API will not 7702 // be included in the string output. The member name will be present, but the 7703 // value will be replaced with "sensitive". 7704 func (s MLModel) GoString() string { 7705 return s.String() 7706 } 7707 7708 // SetAlgorithm sets the Algorithm field's value. 7709 func (s *MLModel) SetAlgorithm(v string) *MLModel { 7710 s.Algorithm = &v 7711 return s 7712 } 7713 7714 // SetComputeTime sets the ComputeTime field's value. 7715 func (s *MLModel) SetComputeTime(v int64) *MLModel { 7716 s.ComputeTime = &v 7717 return s 7718 } 7719 7720 // SetCreatedAt sets the CreatedAt field's value. 7721 func (s *MLModel) SetCreatedAt(v time.Time) *MLModel { 7722 s.CreatedAt = &v 7723 return s 7724 } 7725 7726 // SetCreatedByIamUser sets the CreatedByIamUser field's value. 7727 func (s *MLModel) SetCreatedByIamUser(v string) *MLModel { 7728 s.CreatedByIamUser = &v 7729 return s 7730 } 7731 7732 // SetEndpointInfo sets the EndpointInfo field's value. 7733 func (s *MLModel) SetEndpointInfo(v *RealtimeEndpointInfo) *MLModel { 7734 s.EndpointInfo = v 7735 return s 7736 } 7737 7738 // SetFinishedAt sets the FinishedAt field's value. 7739 func (s *MLModel) SetFinishedAt(v time.Time) *MLModel { 7740 s.FinishedAt = &v 7741 return s 7742 } 7743 7744 // SetInputDataLocationS3 sets the InputDataLocationS3 field's value. 7745 func (s *MLModel) SetInputDataLocationS3(v string) *MLModel { 7746 s.InputDataLocationS3 = &v 7747 return s 7748 } 7749 7750 // SetLastUpdatedAt sets the LastUpdatedAt field's value. 7751 func (s *MLModel) SetLastUpdatedAt(v time.Time) *MLModel { 7752 s.LastUpdatedAt = &v 7753 return s 7754 } 7755 7756 // SetMLModelId sets the MLModelId field's value. 7757 func (s *MLModel) SetMLModelId(v string) *MLModel { 7758 s.MLModelId = &v 7759 return s 7760 } 7761 7762 // SetMLModelType sets the MLModelType field's value. 7763 func (s *MLModel) SetMLModelType(v string) *MLModel { 7764 s.MLModelType = &v 7765 return s 7766 } 7767 7768 // SetMessage sets the Message field's value. 7769 func (s *MLModel) SetMessage(v string) *MLModel { 7770 s.Message = &v 7771 return s 7772 } 7773 7774 // SetName sets the Name field's value. 7775 func (s *MLModel) SetName(v string) *MLModel { 7776 s.Name = &v 7777 return s 7778 } 7779 7780 // SetScoreThreshold sets the ScoreThreshold field's value. 7781 func (s *MLModel) SetScoreThreshold(v float64) *MLModel { 7782 s.ScoreThreshold = &v 7783 return s 7784 } 7785 7786 // SetScoreThresholdLastUpdatedAt sets the ScoreThresholdLastUpdatedAt field's value. 7787 func (s *MLModel) SetScoreThresholdLastUpdatedAt(v time.Time) *MLModel { 7788 s.ScoreThresholdLastUpdatedAt = &v 7789 return s 7790 } 7791 7792 // SetSizeInBytes sets the SizeInBytes field's value. 7793 func (s *MLModel) SetSizeInBytes(v int64) *MLModel { 7794 s.SizeInBytes = &v 7795 return s 7796 } 7797 7798 // SetStartedAt sets the StartedAt field's value. 7799 func (s *MLModel) SetStartedAt(v time.Time) *MLModel { 7800 s.StartedAt = &v 7801 return s 7802 } 7803 7804 // SetStatus sets the Status field's value. 7805 func (s *MLModel) SetStatus(v string) *MLModel { 7806 s.Status = &v 7807 return s 7808 } 7809 7810 // SetTrainingDataSourceId sets the TrainingDataSourceId field's value. 7811 func (s *MLModel) SetTrainingDataSourceId(v string) *MLModel { 7812 s.TrainingDataSourceId = &v 7813 return s 7814 } 7815 7816 // SetTrainingParameters sets the TrainingParameters field's value. 7817 func (s *MLModel) SetTrainingParameters(v map[string]*string) *MLModel { 7818 s.TrainingParameters = v 7819 return s 7820 } 7821 7822 // Measurements of how well the MLModel performed on known observations. One 7823 // of the following metrics is returned, based on the type of the MLModel: 7824 // 7825 // * BinaryAUC: The binary MLModel uses the Area Under the Curve (AUC) technique 7826 // to measure performance. 7827 // 7828 // * RegressionRMSE: The regression MLModel uses the Root Mean Square Error 7829 // (RMSE) technique to measure performance. RMSE measures the difference 7830 // between predicted and actual values for a single variable. 7831 // 7832 // * MulticlassAvgFScore: The multiclass MLModel uses the F1 score technique 7833 // to measure performance. 7834 // 7835 // For more information about performance metrics, please see the Amazon Machine 7836 // Learning Developer Guide (https://docs.aws.amazon.com/machine-learning/latest/dg). 7837 type PerformanceMetrics struct { 7838 _ struct{} `type:"structure"` 7839 7840 Properties map[string]*string `type:"map"` 7841 } 7842 7843 // String returns the string representation. 7844 // 7845 // API parameter values that are decorated as "sensitive" in the API will not 7846 // be included in the string output. The member name will be present, but the 7847 // value will be replaced with "sensitive". 7848 func (s PerformanceMetrics) String() string { 7849 return awsutil.Prettify(s) 7850 } 7851 7852 // GoString returns the string representation. 7853 // 7854 // API parameter values that are decorated as "sensitive" in the API will not 7855 // be included in the string output. The member name will be present, but the 7856 // value will be replaced with "sensitive". 7857 func (s PerformanceMetrics) GoString() string { 7858 return s.String() 7859 } 7860 7861 // SetProperties sets the Properties field's value. 7862 func (s *PerformanceMetrics) SetProperties(v map[string]*string) *PerformanceMetrics { 7863 s.Properties = v 7864 return s 7865 } 7866 7867 type PredictInput struct { 7868 _ struct{} `type:"structure"` 7869 7870 // A unique identifier of the MLModel. 7871 // 7872 // MLModelId is a required field 7873 MLModelId *string `min:"1" type:"string" required:"true"` 7874 7875 // PredictEndpoint is a required field 7876 PredictEndpoint *string `type:"string" required:"true"` 7877 7878 // A map of variable name-value pairs that represent an observation. 7879 // 7880 // Record is a required field 7881 Record map[string]*string `type:"map" required:"true"` 7882 } 7883 7884 // String returns the string representation. 7885 // 7886 // API parameter values that are decorated as "sensitive" in the API will not 7887 // be included in the string output. The member name will be present, but the 7888 // value will be replaced with "sensitive". 7889 func (s PredictInput) String() string { 7890 return awsutil.Prettify(s) 7891 } 7892 7893 // GoString returns the string representation. 7894 // 7895 // API parameter values that are decorated as "sensitive" in the API will not 7896 // be included in the string output. The member name will be present, but the 7897 // value will be replaced with "sensitive". 7898 func (s PredictInput) GoString() string { 7899 return s.String() 7900 } 7901 7902 // Validate inspects the fields of the type to determine if they are valid. 7903 func (s *PredictInput) Validate() error { 7904 invalidParams := request.ErrInvalidParams{Context: "PredictInput"} 7905 if s.MLModelId == nil { 7906 invalidParams.Add(request.NewErrParamRequired("MLModelId")) 7907 } 7908 if s.MLModelId != nil && len(*s.MLModelId) < 1 { 7909 invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) 7910 } 7911 if s.PredictEndpoint == nil { 7912 invalidParams.Add(request.NewErrParamRequired("PredictEndpoint")) 7913 } 7914 if s.Record == nil { 7915 invalidParams.Add(request.NewErrParamRequired("Record")) 7916 } 7917 7918 if invalidParams.Len() > 0 { 7919 return invalidParams 7920 } 7921 return nil 7922 } 7923 7924 // SetMLModelId sets the MLModelId field's value. 7925 func (s *PredictInput) SetMLModelId(v string) *PredictInput { 7926 s.MLModelId = &v 7927 return s 7928 } 7929 7930 // SetPredictEndpoint sets the PredictEndpoint field's value. 7931 func (s *PredictInput) SetPredictEndpoint(v string) *PredictInput { 7932 s.PredictEndpoint = &v 7933 return s 7934 } 7935 7936 // SetRecord sets the Record field's value. 7937 func (s *PredictInput) SetRecord(v map[string]*string) *PredictInput { 7938 s.Record = v 7939 return s 7940 } 7941 7942 type PredictOutput struct { 7943 _ struct{} `type:"structure"` 7944 7945 // The output from a Predict operation: 7946 // 7947 // * Details - Contains the following attributes: DetailsAttributes.PREDICTIVE_MODEL_TYPE 7948 // - REGRESSION | BINARY | MULTICLASS DetailsAttributes.ALGORITHM - SGD 7949 // 7950 // * PredictedLabel - Present for either a BINARY or MULTICLASS MLModel request. 7951 // 7952 // * PredictedScores - Contains the raw classification score corresponding 7953 // to each label. 7954 // 7955 // * PredictedValue - Present for a REGRESSION MLModel request. 7956 Prediction *Prediction `type:"structure"` 7957 } 7958 7959 // String returns the string representation. 7960 // 7961 // API parameter values that are decorated as "sensitive" in the API will not 7962 // be included in the string output. The member name will be present, but the 7963 // value will be replaced with "sensitive". 7964 func (s PredictOutput) String() string { 7965 return awsutil.Prettify(s) 7966 } 7967 7968 // GoString returns the string representation. 7969 // 7970 // API parameter values that are decorated as "sensitive" in the API will not 7971 // be included in the string output. The member name will be present, but the 7972 // value will be replaced with "sensitive". 7973 func (s PredictOutput) GoString() string { 7974 return s.String() 7975 } 7976 7977 // SetPrediction sets the Prediction field's value. 7978 func (s *PredictOutput) SetPrediction(v *Prediction) *PredictOutput { 7979 s.Prediction = v 7980 return s 7981 } 7982 7983 // The output from a Predict operation: 7984 // 7985 // * Details - Contains the following attributes: DetailsAttributes.PREDICTIVE_MODEL_TYPE 7986 // - REGRESSION | BINARY | MULTICLASS DetailsAttributes.ALGORITHM - SGD 7987 // 7988 // * PredictedLabel - Present for either a BINARY or MULTICLASS MLModel request. 7989 // 7990 // * PredictedScores - Contains the raw classification score corresponding 7991 // to each label. 7992 // 7993 // * PredictedValue - Present for a REGRESSION MLModel request. 7994 type Prediction struct { 7995 _ struct{} `type:"structure"` 7996 7997 // Provides any additional details regarding the prediction. 7998 Details map[string]*string `locationName:"details" type:"map"` 7999 8000 // The prediction label for either a BINARY or MULTICLASS MLModel. 8001 PredictedLabel *string `locationName:"predictedLabel" min:"1" type:"string"` 8002 8003 // Provides the raw classification score corresponding to each label. 8004 PredictedScores map[string]*float64 `locationName:"predictedScores" type:"map"` 8005 8006 // The prediction value for REGRESSION MLModel. 8007 PredictedValue *float64 `locationName:"predictedValue" type:"float"` 8008 } 8009 8010 // String returns the string representation. 8011 // 8012 // API parameter values that are decorated as "sensitive" in the API will not 8013 // be included in the string output. The member name will be present, but the 8014 // value will be replaced with "sensitive". 8015 func (s Prediction) String() string { 8016 return awsutil.Prettify(s) 8017 } 8018 8019 // GoString returns the string representation. 8020 // 8021 // API parameter values that are decorated as "sensitive" in the API will not 8022 // be included in the string output. The member name will be present, but the 8023 // value will be replaced with "sensitive". 8024 func (s Prediction) GoString() string { 8025 return s.String() 8026 } 8027 8028 // SetDetails sets the Details field's value. 8029 func (s *Prediction) SetDetails(v map[string]*string) *Prediction { 8030 s.Details = v 8031 return s 8032 } 8033 8034 // SetPredictedLabel sets the PredictedLabel field's value. 8035 func (s *Prediction) SetPredictedLabel(v string) *Prediction { 8036 s.PredictedLabel = &v 8037 return s 8038 } 8039 8040 // SetPredictedScores sets the PredictedScores field's value. 8041 func (s *Prediction) SetPredictedScores(v map[string]*float64) *Prediction { 8042 s.PredictedScores = v 8043 return s 8044 } 8045 8046 // SetPredictedValue sets the PredictedValue field's value. 8047 func (s *Prediction) SetPredictedValue(v float64) *Prediction { 8048 s.PredictedValue = &v 8049 return s 8050 } 8051 8052 // The exception is thrown when a predict request is made to an unmounted MLModel. 8053 type PredictorNotMountedException struct { 8054 _ struct{} `type:"structure"` 8055 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8056 8057 Message_ *string `locationName:"message" type:"string"` 8058 } 8059 8060 // String returns the string representation. 8061 // 8062 // API parameter values that are decorated as "sensitive" in the API will not 8063 // be included in the string output. The member name will be present, but the 8064 // value will be replaced with "sensitive". 8065 func (s PredictorNotMountedException) String() string { 8066 return awsutil.Prettify(s) 8067 } 8068 8069 // GoString returns the string representation. 8070 // 8071 // API parameter values that are decorated as "sensitive" in the API will not 8072 // be included in the string output. The member name will be present, but the 8073 // value will be replaced with "sensitive". 8074 func (s PredictorNotMountedException) GoString() string { 8075 return s.String() 8076 } 8077 8078 func newErrorPredictorNotMountedException(v protocol.ResponseMetadata) error { 8079 return &PredictorNotMountedException{ 8080 RespMetadata: v, 8081 } 8082 } 8083 8084 // Code returns the exception type name. 8085 func (s *PredictorNotMountedException) Code() string { 8086 return "PredictorNotMountedException" 8087 } 8088 8089 // Message returns the exception's message. 8090 func (s *PredictorNotMountedException) Message() string { 8091 if s.Message_ != nil { 8092 return *s.Message_ 8093 } 8094 return "" 8095 } 8096 8097 // OrigErr always returns nil, satisfies awserr.Error interface. 8098 func (s *PredictorNotMountedException) OrigErr() error { 8099 return nil 8100 } 8101 8102 func (s *PredictorNotMountedException) Error() string { 8103 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8104 } 8105 8106 // Status code returns the HTTP status code for the request's response error. 8107 func (s *PredictorNotMountedException) StatusCode() int { 8108 return s.RespMetadata.StatusCode 8109 } 8110 8111 // RequestID returns the service's response RequestID for request. 8112 func (s *PredictorNotMountedException) RequestID() string { 8113 return s.RespMetadata.RequestID 8114 } 8115 8116 // The data specification of an Amazon Relational Database Service (Amazon RDS) 8117 // DataSource. 8118 type RDSDataSpec struct { 8119 _ struct{} `type:"structure"` 8120 8121 // A JSON string that represents the splitting and rearrangement processing 8122 // to be applied to a DataSource. If the DataRearrangement parameter is not 8123 // provided, all of the input data is used to create the Datasource. 8124 // 8125 // There are multiple parameters that control what data is used to create a 8126 // datasource: 8127 // 8128 // * percentBegin Use percentBegin to indicate the beginning of the range 8129 // of the data used to create the Datasource. If you do not include percentBegin 8130 // and percentEnd, Amazon ML includes all of the data when creating the datasource. 8131 // 8132 // * percentEnd Use percentEnd to indicate the end of the range of the data 8133 // used to create the Datasource. If you do not include percentBegin and 8134 // percentEnd, Amazon ML includes all of the data when creating the datasource. 8135 // 8136 // * complement The complement parameter instructs Amazon ML to use the data 8137 // that is not included in the range of percentBegin to percentEnd to create 8138 // a datasource. The complement parameter is useful if you need to create 8139 // complementary datasources for training and evaluation. To create a complementary 8140 // datasource, use the same values for percentBegin and percentEnd, along 8141 // with the complement parameter. For example, the following two datasources 8142 // do not share any data, and can be used to train and evaluate a model. 8143 // The first datasource has 25 percent of the data, and the second one has 8144 // 75 percent of the data. Datasource for evaluation: {"splitting":{"percentBegin":0, 8145 // "percentEnd":25}} Datasource for training: {"splitting":{"percentBegin":0, 8146 // "percentEnd":25, "complement":"true"}} 8147 // 8148 // * strategy To change how Amazon ML splits the data for a datasource, use 8149 // the strategy parameter. The default value for the strategy parameter is 8150 // sequential, meaning that Amazon ML takes all of the data records between 8151 // the percentBegin and percentEnd parameters for the datasource, in the 8152 // order that the records appear in the input data. The following two DataRearrangement 8153 // lines are examples of sequentially ordered training and evaluation datasources: 8154 // Datasource for evaluation: {"splitting":{"percentBegin":70, "percentEnd":100, 8155 // "strategy":"sequential"}} Datasource for training: {"splitting":{"percentBegin":70, 8156 // "percentEnd":100, "strategy":"sequential", "complement":"true"}} To randomly 8157 // split the input data into the proportions indicated by the percentBegin 8158 // and percentEnd parameters, set the strategy parameter to random and provide 8159 // a string that is used as the seed value for the random data splitting 8160 // (for example, you can use the S3 path to your data as the random seed 8161 // string). If you choose the random split strategy, Amazon ML assigns each 8162 // row of data a pseudo-random number between 0 and 100, and then selects 8163 // the rows that have an assigned number between percentBegin and percentEnd. 8164 // Pseudo-random numbers are assigned using both the input seed string value 8165 // and the byte offset as a seed, so changing the data results in a different 8166 // split. Any existing ordering is preserved. The random splitting strategy 8167 // ensures that variables in the training and evaluation data are distributed 8168 // similarly. It is useful in the cases where the input data may have an 8169 // implicit sort order, which would otherwise result in training and evaluation 8170 // datasources containing non-similar data records. The following two DataRearrangement 8171 // lines are examples of non-sequentially ordered training and evaluation 8172 // datasources: Datasource for evaluation: {"splitting":{"percentBegin":70, 8173 // "percentEnd":100, "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv"}} 8174 // Datasource for training: {"splitting":{"percentBegin":70, "percentEnd":100, 8175 // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv", "complement":"true"}} 8176 DataRearrangement *string `type:"string"` 8177 8178 // A JSON string that represents the schema for an Amazon RDS DataSource. The 8179 // DataSchema defines the structure of the observation data in the data file(s) 8180 // referenced in the DataSource. 8181 // 8182 // A DataSchema is not required if you specify a DataSchemaUri 8183 // 8184 // Define your DataSchema as a series of key-value pairs. attributes and excludedVariableNames 8185 // have an array of key-value pairs for their value. Use the following format 8186 // to define your DataSchema. 8187 // 8188 // { "version": "1.0", 8189 // 8190 // "recordAnnotationFieldName": "F1", 8191 // 8192 // "recordWeightFieldName": "F2", 8193 // 8194 // "targetFieldName": "F3", 8195 // 8196 // "dataFormat": "CSV", 8197 // 8198 // "dataFileContainsHeader": true, 8199 // 8200 // "attributes": [ 8201 // 8202 // { "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": 8203 // "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": 8204 // "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" 8205 // }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": 8206 // "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" 8207 // } ], 8208 // 8209 // "excludedVariableNames": [ "F6" ] } 8210 DataSchema *string `type:"string"` 8211 8212 // The Amazon S3 location of the DataSchema. 8213 DataSchemaUri *string `type:"string"` 8214 8215 // The AWS Identity and Access Management (IAM) credentials that are used connect 8216 // to the Amazon RDS database. 8217 // 8218 // DatabaseCredentials is a required field 8219 DatabaseCredentials *RDSDatabaseCredentials `type:"structure" required:"true"` 8220 8221 // Describes the DatabaseName and InstanceIdentifier of an Amazon RDS database. 8222 // 8223 // DatabaseInformation is a required field 8224 DatabaseInformation *RDSDatabase `type:"structure" required:"true"` 8225 8226 // The role (DataPipelineDefaultResourceRole) assumed by an Amazon Elastic Compute 8227 // Cloud (Amazon EC2) instance to carry out the copy operation from Amazon RDS 8228 // to an Amazon S3 task. For more information, see Role templates (https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html) 8229 // for data pipelines. 8230 // 8231 // ResourceRole is a required field 8232 ResourceRole *string `min:"1" type:"string" required:"true"` 8233 8234 // The Amazon S3 location for staging Amazon RDS data. The data retrieved from 8235 // Amazon RDS using SelectSqlQuery is stored in this location. 8236 // 8237 // S3StagingLocation is a required field 8238 S3StagingLocation *string `type:"string" required:"true"` 8239 8240 // The security group IDs to be used to access a VPC-based RDS DB instance. 8241 // Ensure that there are appropriate ingress rules set up to allow access to 8242 // the RDS DB instance. This attribute is used by Data Pipeline to carry out 8243 // the copy operation from Amazon RDS to an Amazon S3 task. 8244 // 8245 // SecurityGroupIds is a required field 8246 SecurityGroupIds []*string `type:"list" required:"true"` 8247 8248 // The query that is used to retrieve the observation data for the DataSource. 8249 // 8250 // SelectSqlQuery is a required field 8251 SelectSqlQuery *string `min:"1" type:"string" required:"true"` 8252 8253 // The role (DataPipelineDefaultRole) assumed by AWS Data Pipeline service to 8254 // monitor the progress of the copy task from Amazon RDS to Amazon S3. For more 8255 // information, see Role templates (https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html) 8256 // for data pipelines. 8257 // 8258 // ServiceRole is a required field 8259 ServiceRole *string `min:"1" type:"string" required:"true"` 8260 8261 // The subnet ID to be used to access a VPC-based RDS DB instance. This attribute 8262 // is used by Data Pipeline to carry out the copy task from Amazon RDS to Amazon 8263 // S3. 8264 // 8265 // SubnetId is a required field 8266 SubnetId *string `min:"1" type:"string" required:"true"` 8267 } 8268 8269 // String returns the string representation. 8270 // 8271 // API parameter values that are decorated as "sensitive" in the API will not 8272 // be included in the string output. The member name will be present, but the 8273 // value will be replaced with "sensitive". 8274 func (s RDSDataSpec) String() string { 8275 return awsutil.Prettify(s) 8276 } 8277 8278 // GoString returns the string representation. 8279 // 8280 // API parameter values that are decorated as "sensitive" in the API will not 8281 // be included in the string output. The member name will be present, but the 8282 // value will be replaced with "sensitive". 8283 func (s RDSDataSpec) GoString() string { 8284 return s.String() 8285 } 8286 8287 // Validate inspects the fields of the type to determine if they are valid. 8288 func (s *RDSDataSpec) Validate() error { 8289 invalidParams := request.ErrInvalidParams{Context: "RDSDataSpec"} 8290 if s.DatabaseCredentials == nil { 8291 invalidParams.Add(request.NewErrParamRequired("DatabaseCredentials")) 8292 } 8293 if s.DatabaseInformation == nil { 8294 invalidParams.Add(request.NewErrParamRequired("DatabaseInformation")) 8295 } 8296 if s.ResourceRole == nil { 8297 invalidParams.Add(request.NewErrParamRequired("ResourceRole")) 8298 } 8299 if s.ResourceRole != nil && len(*s.ResourceRole) < 1 { 8300 invalidParams.Add(request.NewErrParamMinLen("ResourceRole", 1)) 8301 } 8302 if s.S3StagingLocation == nil { 8303 invalidParams.Add(request.NewErrParamRequired("S3StagingLocation")) 8304 } 8305 if s.SecurityGroupIds == nil { 8306 invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds")) 8307 } 8308 if s.SelectSqlQuery == nil { 8309 invalidParams.Add(request.NewErrParamRequired("SelectSqlQuery")) 8310 } 8311 if s.SelectSqlQuery != nil && len(*s.SelectSqlQuery) < 1 { 8312 invalidParams.Add(request.NewErrParamMinLen("SelectSqlQuery", 1)) 8313 } 8314 if s.ServiceRole == nil { 8315 invalidParams.Add(request.NewErrParamRequired("ServiceRole")) 8316 } 8317 if s.ServiceRole != nil && len(*s.ServiceRole) < 1 { 8318 invalidParams.Add(request.NewErrParamMinLen("ServiceRole", 1)) 8319 } 8320 if s.SubnetId == nil { 8321 invalidParams.Add(request.NewErrParamRequired("SubnetId")) 8322 } 8323 if s.SubnetId != nil && len(*s.SubnetId) < 1 { 8324 invalidParams.Add(request.NewErrParamMinLen("SubnetId", 1)) 8325 } 8326 if s.DatabaseCredentials != nil { 8327 if err := s.DatabaseCredentials.Validate(); err != nil { 8328 invalidParams.AddNested("DatabaseCredentials", err.(request.ErrInvalidParams)) 8329 } 8330 } 8331 if s.DatabaseInformation != nil { 8332 if err := s.DatabaseInformation.Validate(); err != nil { 8333 invalidParams.AddNested("DatabaseInformation", err.(request.ErrInvalidParams)) 8334 } 8335 } 8336 8337 if invalidParams.Len() > 0 { 8338 return invalidParams 8339 } 8340 return nil 8341 } 8342 8343 // SetDataRearrangement sets the DataRearrangement field's value. 8344 func (s *RDSDataSpec) SetDataRearrangement(v string) *RDSDataSpec { 8345 s.DataRearrangement = &v 8346 return s 8347 } 8348 8349 // SetDataSchema sets the DataSchema field's value. 8350 func (s *RDSDataSpec) SetDataSchema(v string) *RDSDataSpec { 8351 s.DataSchema = &v 8352 return s 8353 } 8354 8355 // SetDataSchemaUri sets the DataSchemaUri field's value. 8356 func (s *RDSDataSpec) SetDataSchemaUri(v string) *RDSDataSpec { 8357 s.DataSchemaUri = &v 8358 return s 8359 } 8360 8361 // SetDatabaseCredentials sets the DatabaseCredentials field's value. 8362 func (s *RDSDataSpec) SetDatabaseCredentials(v *RDSDatabaseCredentials) *RDSDataSpec { 8363 s.DatabaseCredentials = v 8364 return s 8365 } 8366 8367 // SetDatabaseInformation sets the DatabaseInformation field's value. 8368 func (s *RDSDataSpec) SetDatabaseInformation(v *RDSDatabase) *RDSDataSpec { 8369 s.DatabaseInformation = v 8370 return s 8371 } 8372 8373 // SetResourceRole sets the ResourceRole field's value. 8374 func (s *RDSDataSpec) SetResourceRole(v string) *RDSDataSpec { 8375 s.ResourceRole = &v 8376 return s 8377 } 8378 8379 // SetS3StagingLocation sets the S3StagingLocation field's value. 8380 func (s *RDSDataSpec) SetS3StagingLocation(v string) *RDSDataSpec { 8381 s.S3StagingLocation = &v 8382 return s 8383 } 8384 8385 // SetSecurityGroupIds sets the SecurityGroupIds field's value. 8386 func (s *RDSDataSpec) SetSecurityGroupIds(v []*string) *RDSDataSpec { 8387 s.SecurityGroupIds = v 8388 return s 8389 } 8390 8391 // SetSelectSqlQuery sets the SelectSqlQuery field's value. 8392 func (s *RDSDataSpec) SetSelectSqlQuery(v string) *RDSDataSpec { 8393 s.SelectSqlQuery = &v 8394 return s 8395 } 8396 8397 // SetServiceRole sets the ServiceRole field's value. 8398 func (s *RDSDataSpec) SetServiceRole(v string) *RDSDataSpec { 8399 s.ServiceRole = &v 8400 return s 8401 } 8402 8403 // SetSubnetId sets the SubnetId field's value. 8404 func (s *RDSDataSpec) SetSubnetId(v string) *RDSDataSpec { 8405 s.SubnetId = &v 8406 return s 8407 } 8408 8409 // The database details of an Amazon RDS database. 8410 type RDSDatabase struct { 8411 _ struct{} `type:"structure"` 8412 8413 // The name of a database hosted on an RDS DB instance. 8414 // 8415 // DatabaseName is a required field 8416 DatabaseName *string `min:"1" type:"string" required:"true"` 8417 8418 // The ID of an RDS DB instance. 8419 // 8420 // InstanceIdentifier is a required field 8421 InstanceIdentifier *string `min:"1" type:"string" required:"true"` 8422 } 8423 8424 // String returns the string representation. 8425 // 8426 // API parameter values that are decorated as "sensitive" in the API will not 8427 // be included in the string output. The member name will be present, but the 8428 // value will be replaced with "sensitive". 8429 func (s RDSDatabase) String() string { 8430 return awsutil.Prettify(s) 8431 } 8432 8433 // GoString returns the string representation. 8434 // 8435 // API parameter values that are decorated as "sensitive" in the API will not 8436 // be included in the string output. The member name will be present, but the 8437 // value will be replaced with "sensitive". 8438 func (s RDSDatabase) GoString() string { 8439 return s.String() 8440 } 8441 8442 // Validate inspects the fields of the type to determine if they are valid. 8443 func (s *RDSDatabase) Validate() error { 8444 invalidParams := request.ErrInvalidParams{Context: "RDSDatabase"} 8445 if s.DatabaseName == nil { 8446 invalidParams.Add(request.NewErrParamRequired("DatabaseName")) 8447 } 8448 if s.DatabaseName != nil && len(*s.DatabaseName) < 1 { 8449 invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 1)) 8450 } 8451 if s.InstanceIdentifier == nil { 8452 invalidParams.Add(request.NewErrParamRequired("InstanceIdentifier")) 8453 } 8454 if s.InstanceIdentifier != nil && len(*s.InstanceIdentifier) < 1 { 8455 invalidParams.Add(request.NewErrParamMinLen("InstanceIdentifier", 1)) 8456 } 8457 8458 if invalidParams.Len() > 0 { 8459 return invalidParams 8460 } 8461 return nil 8462 } 8463 8464 // SetDatabaseName sets the DatabaseName field's value. 8465 func (s *RDSDatabase) SetDatabaseName(v string) *RDSDatabase { 8466 s.DatabaseName = &v 8467 return s 8468 } 8469 8470 // SetInstanceIdentifier sets the InstanceIdentifier field's value. 8471 func (s *RDSDatabase) SetInstanceIdentifier(v string) *RDSDatabase { 8472 s.InstanceIdentifier = &v 8473 return s 8474 } 8475 8476 // The database credentials to connect to a database on an RDS DB instance. 8477 type RDSDatabaseCredentials struct { 8478 _ struct{} `type:"structure"` 8479 8480 // The password to be used by Amazon ML to connect to a database on an RDS DB 8481 // instance. The password should have sufficient permissions to execute the 8482 // RDSSelectQuery query. 8483 // 8484 // Password is a required field 8485 Password *string `min:"8" type:"string" required:"true"` 8486 8487 // The username to be used by Amazon ML to connect to database on an Amazon 8488 // RDS instance. The username should have sufficient permissions to execute 8489 // an RDSSelectSqlQuery query. 8490 // 8491 // Username is a required field 8492 Username *string `min:"1" type:"string" required:"true"` 8493 } 8494 8495 // String returns the string representation. 8496 // 8497 // API parameter values that are decorated as "sensitive" in the API will not 8498 // be included in the string output. The member name will be present, but the 8499 // value will be replaced with "sensitive". 8500 func (s RDSDatabaseCredentials) String() string { 8501 return awsutil.Prettify(s) 8502 } 8503 8504 // GoString returns the string representation. 8505 // 8506 // API parameter values that are decorated as "sensitive" in the API will not 8507 // be included in the string output. The member name will be present, but the 8508 // value will be replaced with "sensitive". 8509 func (s RDSDatabaseCredentials) GoString() string { 8510 return s.String() 8511 } 8512 8513 // Validate inspects the fields of the type to determine if they are valid. 8514 func (s *RDSDatabaseCredentials) Validate() error { 8515 invalidParams := request.ErrInvalidParams{Context: "RDSDatabaseCredentials"} 8516 if s.Password == nil { 8517 invalidParams.Add(request.NewErrParamRequired("Password")) 8518 } 8519 if s.Password != nil && len(*s.Password) < 8 { 8520 invalidParams.Add(request.NewErrParamMinLen("Password", 8)) 8521 } 8522 if s.Username == nil { 8523 invalidParams.Add(request.NewErrParamRequired("Username")) 8524 } 8525 if s.Username != nil && len(*s.Username) < 1 { 8526 invalidParams.Add(request.NewErrParamMinLen("Username", 1)) 8527 } 8528 8529 if invalidParams.Len() > 0 { 8530 return invalidParams 8531 } 8532 return nil 8533 } 8534 8535 // SetPassword sets the Password field's value. 8536 func (s *RDSDatabaseCredentials) SetPassword(v string) *RDSDatabaseCredentials { 8537 s.Password = &v 8538 return s 8539 } 8540 8541 // SetUsername sets the Username field's value. 8542 func (s *RDSDatabaseCredentials) SetUsername(v string) *RDSDatabaseCredentials { 8543 s.Username = &v 8544 return s 8545 } 8546 8547 // The datasource details that are specific to Amazon RDS. 8548 type RDSMetadata struct { 8549 _ struct{} `type:"structure"` 8550 8551 // The ID of the Data Pipeline instance that is used to carry to copy data from 8552 // Amazon RDS to Amazon S3. You can use the ID to find details about the instance 8553 // in the Data Pipeline console. 8554 DataPipelineId *string `min:"1" type:"string"` 8555 8556 // The database details required to connect to an Amazon RDS. 8557 Database *RDSDatabase `type:"structure"` 8558 8559 // The username to be used by Amazon ML to connect to database on an Amazon 8560 // RDS instance. The username should have sufficient permissions to execute 8561 // an RDSSelectSqlQuery query. 8562 DatabaseUserName *string `min:"1" type:"string"` 8563 8564 // The role (DataPipelineDefaultResourceRole) assumed by an Amazon EC2 instance 8565 // to carry out the copy task from Amazon RDS to Amazon S3. For more information, 8566 // see Role templates (https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html) 8567 // for data pipelines. 8568 ResourceRole *string `min:"1" type:"string"` 8569 8570 // The SQL query that is supplied during CreateDataSourceFromRDS. Returns only 8571 // if Verbose is true in GetDataSourceInput. 8572 SelectSqlQuery *string `min:"1" type:"string"` 8573 8574 // The role (DataPipelineDefaultRole) assumed by the Data Pipeline service to 8575 // monitor the progress of the copy task from Amazon RDS to Amazon S3. For more 8576 // information, see Role templates (https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html) 8577 // for data pipelines. 8578 ServiceRole *string `min:"1" type:"string"` 8579 } 8580 8581 // String returns the string representation. 8582 // 8583 // API parameter values that are decorated as "sensitive" in the API will not 8584 // be included in the string output. The member name will be present, but the 8585 // value will be replaced with "sensitive". 8586 func (s RDSMetadata) String() string { 8587 return awsutil.Prettify(s) 8588 } 8589 8590 // GoString returns the string representation. 8591 // 8592 // API parameter values that are decorated as "sensitive" in the API will not 8593 // be included in the string output. The member name will be present, but the 8594 // value will be replaced with "sensitive". 8595 func (s RDSMetadata) GoString() string { 8596 return s.String() 8597 } 8598 8599 // SetDataPipelineId sets the DataPipelineId field's value. 8600 func (s *RDSMetadata) SetDataPipelineId(v string) *RDSMetadata { 8601 s.DataPipelineId = &v 8602 return s 8603 } 8604 8605 // SetDatabase sets the Database field's value. 8606 func (s *RDSMetadata) SetDatabase(v *RDSDatabase) *RDSMetadata { 8607 s.Database = v 8608 return s 8609 } 8610 8611 // SetDatabaseUserName sets the DatabaseUserName field's value. 8612 func (s *RDSMetadata) SetDatabaseUserName(v string) *RDSMetadata { 8613 s.DatabaseUserName = &v 8614 return s 8615 } 8616 8617 // SetResourceRole sets the ResourceRole field's value. 8618 func (s *RDSMetadata) SetResourceRole(v string) *RDSMetadata { 8619 s.ResourceRole = &v 8620 return s 8621 } 8622 8623 // SetSelectSqlQuery sets the SelectSqlQuery field's value. 8624 func (s *RDSMetadata) SetSelectSqlQuery(v string) *RDSMetadata { 8625 s.SelectSqlQuery = &v 8626 return s 8627 } 8628 8629 // SetServiceRole sets the ServiceRole field's value. 8630 func (s *RDSMetadata) SetServiceRole(v string) *RDSMetadata { 8631 s.ServiceRole = &v 8632 return s 8633 } 8634 8635 // Describes the real-time endpoint information for an MLModel. 8636 type RealtimeEndpointInfo struct { 8637 _ struct{} `type:"structure"` 8638 8639 // The time that the request to create the real-time endpoint for the MLModel 8640 // was received. The time is expressed in epoch time. 8641 CreatedAt *time.Time `type:"timestamp"` 8642 8643 // The current status of the real-time endpoint for the MLModel. This element 8644 // can have one of the following values: 8645 // 8646 // * NONE - Endpoint does not exist or was previously deleted. 8647 // 8648 // * READY - Endpoint is ready to be used for real-time predictions. 8649 // 8650 // * UPDATING - Updating/creating the endpoint. 8651 EndpointStatus *string `type:"string" enum:"RealtimeEndpointStatus"` 8652 8653 // The URI that specifies where to send real-time prediction requests for the 8654 // MLModel. 8655 // 8656 // Note: The application must wait until the real-time endpoint is ready before 8657 // using this URI. 8658 EndpointUrl *string `type:"string"` 8659 8660 // The maximum processing rate for the real-time endpoint for MLModel, measured 8661 // in incoming requests per second. 8662 PeakRequestsPerSecond *int64 `type:"integer"` 8663 } 8664 8665 // String returns the string representation. 8666 // 8667 // API parameter values that are decorated as "sensitive" in the API will not 8668 // be included in the string output. The member name will be present, but the 8669 // value will be replaced with "sensitive". 8670 func (s RealtimeEndpointInfo) String() string { 8671 return awsutil.Prettify(s) 8672 } 8673 8674 // GoString returns the string representation. 8675 // 8676 // API parameter values that are decorated as "sensitive" in the API will not 8677 // be included in the string output. The member name will be present, but the 8678 // value will be replaced with "sensitive". 8679 func (s RealtimeEndpointInfo) GoString() string { 8680 return s.String() 8681 } 8682 8683 // SetCreatedAt sets the CreatedAt field's value. 8684 func (s *RealtimeEndpointInfo) SetCreatedAt(v time.Time) *RealtimeEndpointInfo { 8685 s.CreatedAt = &v 8686 return s 8687 } 8688 8689 // SetEndpointStatus sets the EndpointStatus field's value. 8690 func (s *RealtimeEndpointInfo) SetEndpointStatus(v string) *RealtimeEndpointInfo { 8691 s.EndpointStatus = &v 8692 return s 8693 } 8694 8695 // SetEndpointUrl sets the EndpointUrl field's value. 8696 func (s *RealtimeEndpointInfo) SetEndpointUrl(v string) *RealtimeEndpointInfo { 8697 s.EndpointUrl = &v 8698 return s 8699 } 8700 8701 // SetPeakRequestsPerSecond sets the PeakRequestsPerSecond field's value. 8702 func (s *RealtimeEndpointInfo) SetPeakRequestsPerSecond(v int64) *RealtimeEndpointInfo { 8703 s.PeakRequestsPerSecond = &v 8704 return s 8705 } 8706 8707 // Describes the data specification of an Amazon Redshift DataSource. 8708 type RedshiftDataSpec struct { 8709 _ struct{} `type:"structure"` 8710 8711 // A JSON string that represents the splitting and rearrangement processing 8712 // to be applied to a DataSource. If the DataRearrangement parameter is not 8713 // provided, all of the input data is used to create the Datasource. 8714 // 8715 // There are multiple parameters that control what data is used to create a 8716 // datasource: 8717 // 8718 // * percentBegin Use percentBegin to indicate the beginning of the range 8719 // of the data used to create the Datasource. If you do not include percentBegin 8720 // and percentEnd, Amazon ML includes all of the data when creating the datasource. 8721 // 8722 // * percentEnd Use percentEnd to indicate the end of the range of the data 8723 // used to create the Datasource. If you do not include percentBegin and 8724 // percentEnd, Amazon ML includes all of the data when creating the datasource. 8725 // 8726 // * complement The complement parameter instructs Amazon ML to use the data 8727 // that is not included in the range of percentBegin to percentEnd to create 8728 // a datasource. The complement parameter is useful if you need to create 8729 // complementary datasources for training and evaluation. To create a complementary 8730 // datasource, use the same values for percentBegin and percentEnd, along 8731 // with the complement parameter. For example, the following two datasources 8732 // do not share any data, and can be used to train and evaluate a model. 8733 // The first datasource has 25 percent of the data, and the second one has 8734 // 75 percent of the data. Datasource for evaluation: {"splitting":{"percentBegin":0, 8735 // "percentEnd":25}} Datasource for training: {"splitting":{"percentBegin":0, 8736 // "percentEnd":25, "complement":"true"}} 8737 // 8738 // * strategy To change how Amazon ML splits the data for a datasource, use 8739 // the strategy parameter. The default value for the strategy parameter is 8740 // sequential, meaning that Amazon ML takes all of the data records between 8741 // the percentBegin and percentEnd parameters for the datasource, in the 8742 // order that the records appear in the input data. The following two DataRearrangement 8743 // lines are examples of sequentially ordered training and evaluation datasources: 8744 // Datasource for evaluation: {"splitting":{"percentBegin":70, "percentEnd":100, 8745 // "strategy":"sequential"}} Datasource for training: {"splitting":{"percentBegin":70, 8746 // "percentEnd":100, "strategy":"sequential", "complement":"true"}} To randomly 8747 // split the input data into the proportions indicated by the percentBegin 8748 // and percentEnd parameters, set the strategy parameter to random and provide 8749 // a string that is used as the seed value for the random data splitting 8750 // (for example, you can use the S3 path to your data as the random seed 8751 // string). If you choose the random split strategy, Amazon ML assigns each 8752 // row of data a pseudo-random number between 0 and 100, and then selects 8753 // the rows that have an assigned number between percentBegin and percentEnd. 8754 // Pseudo-random numbers are assigned using both the input seed string value 8755 // and the byte offset as a seed, so changing the data results in a different 8756 // split. Any existing ordering is preserved. The random splitting strategy 8757 // ensures that variables in the training and evaluation data are distributed 8758 // similarly. It is useful in the cases where the input data may have an 8759 // implicit sort order, which would otherwise result in training and evaluation 8760 // datasources containing non-similar data records. The following two DataRearrangement 8761 // lines are examples of non-sequentially ordered training and evaluation 8762 // datasources: Datasource for evaluation: {"splitting":{"percentBegin":70, 8763 // "percentEnd":100, "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv"}} 8764 // Datasource for training: {"splitting":{"percentBegin":70, "percentEnd":100, 8765 // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv", "complement":"true"}} 8766 DataRearrangement *string `type:"string"` 8767 8768 // A JSON string that represents the schema for an Amazon Redshift DataSource. 8769 // The DataSchema defines the structure of the observation data in the data 8770 // file(s) referenced in the DataSource. 8771 // 8772 // A DataSchema is not required if you specify a DataSchemaUri. 8773 // 8774 // Define your DataSchema as a series of key-value pairs. attributes and excludedVariableNames 8775 // have an array of key-value pairs for their value. Use the following format 8776 // to define your DataSchema. 8777 // 8778 // { "version": "1.0", 8779 // 8780 // "recordAnnotationFieldName": "F1", 8781 // 8782 // "recordWeightFieldName": "F2", 8783 // 8784 // "targetFieldName": "F3", 8785 // 8786 // "dataFormat": "CSV", 8787 // 8788 // "dataFileContainsHeader": true, 8789 // 8790 // "attributes": [ 8791 // 8792 // { "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": 8793 // "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": 8794 // "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" 8795 // }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": 8796 // "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" 8797 // } ], 8798 // 8799 // "excludedVariableNames": [ "F6" ] } 8800 DataSchema *string `type:"string"` 8801 8802 // Describes the schema location for an Amazon Redshift DataSource. 8803 DataSchemaUri *string `type:"string"` 8804 8805 // Describes AWS Identity and Access Management (IAM) credentials that are used 8806 // connect to the Amazon Redshift database. 8807 // 8808 // DatabaseCredentials is a required field 8809 DatabaseCredentials *RedshiftDatabaseCredentials `type:"structure" required:"true"` 8810 8811 // Describes the DatabaseName and ClusterIdentifier for an Amazon Redshift DataSource. 8812 // 8813 // DatabaseInformation is a required field 8814 DatabaseInformation *RedshiftDatabase `type:"structure" required:"true"` 8815 8816 // Describes an Amazon S3 location to store the result set of the SelectSqlQuery 8817 // query. 8818 // 8819 // S3StagingLocation is a required field 8820 S3StagingLocation *string `type:"string" required:"true"` 8821 8822 // Describes the SQL Query to execute on an Amazon Redshift database for an 8823 // Amazon Redshift DataSource. 8824 // 8825 // SelectSqlQuery is a required field 8826 SelectSqlQuery *string `min:"1" type:"string" required:"true"` 8827 } 8828 8829 // String 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 RedshiftDataSpec) String() string { 8835 return awsutil.Prettify(s) 8836 } 8837 8838 // GoString returns the string representation. 8839 // 8840 // API parameter values that are decorated as "sensitive" in the API will not 8841 // be included in the string output. The member name will be present, but the 8842 // value will be replaced with "sensitive". 8843 func (s RedshiftDataSpec) GoString() string { 8844 return s.String() 8845 } 8846 8847 // Validate inspects the fields of the type to determine if they are valid. 8848 func (s *RedshiftDataSpec) Validate() error { 8849 invalidParams := request.ErrInvalidParams{Context: "RedshiftDataSpec"} 8850 if s.DatabaseCredentials == nil { 8851 invalidParams.Add(request.NewErrParamRequired("DatabaseCredentials")) 8852 } 8853 if s.DatabaseInformation == nil { 8854 invalidParams.Add(request.NewErrParamRequired("DatabaseInformation")) 8855 } 8856 if s.S3StagingLocation == nil { 8857 invalidParams.Add(request.NewErrParamRequired("S3StagingLocation")) 8858 } 8859 if s.SelectSqlQuery == nil { 8860 invalidParams.Add(request.NewErrParamRequired("SelectSqlQuery")) 8861 } 8862 if s.SelectSqlQuery != nil && len(*s.SelectSqlQuery) < 1 { 8863 invalidParams.Add(request.NewErrParamMinLen("SelectSqlQuery", 1)) 8864 } 8865 if s.DatabaseCredentials != nil { 8866 if err := s.DatabaseCredentials.Validate(); err != nil { 8867 invalidParams.AddNested("DatabaseCredentials", err.(request.ErrInvalidParams)) 8868 } 8869 } 8870 if s.DatabaseInformation != nil { 8871 if err := s.DatabaseInformation.Validate(); err != nil { 8872 invalidParams.AddNested("DatabaseInformation", err.(request.ErrInvalidParams)) 8873 } 8874 } 8875 8876 if invalidParams.Len() > 0 { 8877 return invalidParams 8878 } 8879 return nil 8880 } 8881 8882 // SetDataRearrangement sets the DataRearrangement field's value. 8883 func (s *RedshiftDataSpec) SetDataRearrangement(v string) *RedshiftDataSpec { 8884 s.DataRearrangement = &v 8885 return s 8886 } 8887 8888 // SetDataSchema sets the DataSchema field's value. 8889 func (s *RedshiftDataSpec) SetDataSchema(v string) *RedshiftDataSpec { 8890 s.DataSchema = &v 8891 return s 8892 } 8893 8894 // SetDataSchemaUri sets the DataSchemaUri field's value. 8895 func (s *RedshiftDataSpec) SetDataSchemaUri(v string) *RedshiftDataSpec { 8896 s.DataSchemaUri = &v 8897 return s 8898 } 8899 8900 // SetDatabaseCredentials sets the DatabaseCredentials field's value. 8901 func (s *RedshiftDataSpec) SetDatabaseCredentials(v *RedshiftDatabaseCredentials) *RedshiftDataSpec { 8902 s.DatabaseCredentials = v 8903 return s 8904 } 8905 8906 // SetDatabaseInformation sets the DatabaseInformation field's value. 8907 func (s *RedshiftDataSpec) SetDatabaseInformation(v *RedshiftDatabase) *RedshiftDataSpec { 8908 s.DatabaseInformation = v 8909 return s 8910 } 8911 8912 // SetS3StagingLocation sets the S3StagingLocation field's value. 8913 func (s *RedshiftDataSpec) SetS3StagingLocation(v string) *RedshiftDataSpec { 8914 s.S3StagingLocation = &v 8915 return s 8916 } 8917 8918 // SetSelectSqlQuery sets the SelectSqlQuery field's value. 8919 func (s *RedshiftDataSpec) SetSelectSqlQuery(v string) *RedshiftDataSpec { 8920 s.SelectSqlQuery = &v 8921 return s 8922 } 8923 8924 // Describes the database details required to connect to an Amazon Redshift 8925 // database. 8926 type RedshiftDatabase struct { 8927 _ struct{} `type:"structure"` 8928 8929 // The ID of an Amazon Redshift cluster. 8930 // 8931 // ClusterIdentifier is a required field 8932 ClusterIdentifier *string `min:"1" type:"string" required:"true"` 8933 8934 // The name of a database hosted on an Amazon Redshift cluster. 8935 // 8936 // DatabaseName is a required field 8937 DatabaseName *string `min:"1" type:"string" required:"true"` 8938 } 8939 8940 // String returns the string representation. 8941 // 8942 // API parameter values that are decorated as "sensitive" in the API will not 8943 // be included in the string output. The member name will be present, but the 8944 // value will be replaced with "sensitive". 8945 func (s RedshiftDatabase) String() string { 8946 return awsutil.Prettify(s) 8947 } 8948 8949 // GoString returns the string representation. 8950 // 8951 // API parameter values that are decorated as "sensitive" in the API will not 8952 // be included in the string output. The member name will be present, but the 8953 // value will be replaced with "sensitive". 8954 func (s RedshiftDatabase) GoString() string { 8955 return s.String() 8956 } 8957 8958 // Validate inspects the fields of the type to determine if they are valid. 8959 func (s *RedshiftDatabase) Validate() error { 8960 invalidParams := request.ErrInvalidParams{Context: "RedshiftDatabase"} 8961 if s.ClusterIdentifier == nil { 8962 invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) 8963 } 8964 if s.ClusterIdentifier != nil && len(*s.ClusterIdentifier) < 1 { 8965 invalidParams.Add(request.NewErrParamMinLen("ClusterIdentifier", 1)) 8966 } 8967 if s.DatabaseName == nil { 8968 invalidParams.Add(request.NewErrParamRequired("DatabaseName")) 8969 } 8970 if s.DatabaseName != nil && len(*s.DatabaseName) < 1 { 8971 invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 1)) 8972 } 8973 8974 if invalidParams.Len() > 0 { 8975 return invalidParams 8976 } 8977 return nil 8978 } 8979 8980 // SetClusterIdentifier sets the ClusterIdentifier field's value. 8981 func (s *RedshiftDatabase) SetClusterIdentifier(v string) *RedshiftDatabase { 8982 s.ClusterIdentifier = &v 8983 return s 8984 } 8985 8986 // SetDatabaseName sets the DatabaseName field's value. 8987 func (s *RedshiftDatabase) SetDatabaseName(v string) *RedshiftDatabase { 8988 s.DatabaseName = &v 8989 return s 8990 } 8991 8992 // Describes the database credentials for connecting to a database on an Amazon 8993 // Redshift cluster. 8994 type RedshiftDatabaseCredentials struct { 8995 _ struct{} `type:"structure"` 8996 8997 // A password to be used by Amazon ML to connect to a database on an Amazon 8998 // Redshift cluster. The password should have sufficient permissions to execute 8999 // a RedshiftSelectSqlQuery query. The password should be valid for an Amazon 9000 // Redshift USER (https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_USER.html). 9001 // 9002 // Password is a required field 9003 Password *string `min:"8" type:"string" required:"true"` 9004 9005 // A username to be used by Amazon Machine Learning (Amazon ML)to connect to 9006 // a database on an Amazon Redshift cluster. The username should have sufficient 9007 // permissions to execute the RedshiftSelectSqlQuery query. The username should 9008 // be valid for an Amazon Redshift USER (https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_USER.html). 9009 // 9010 // Username is a required field 9011 Username *string `min:"1" type:"string" required:"true"` 9012 } 9013 9014 // String returns the string representation. 9015 // 9016 // API parameter values that are decorated as "sensitive" in the API will not 9017 // be included in the string output. The member name will be present, but the 9018 // value will be replaced with "sensitive". 9019 func (s RedshiftDatabaseCredentials) String() string { 9020 return awsutil.Prettify(s) 9021 } 9022 9023 // GoString returns the string representation. 9024 // 9025 // API parameter values that are decorated as "sensitive" in the API will not 9026 // be included in the string output. The member name will be present, but the 9027 // value will be replaced with "sensitive". 9028 func (s RedshiftDatabaseCredentials) GoString() string { 9029 return s.String() 9030 } 9031 9032 // Validate inspects the fields of the type to determine if they are valid. 9033 func (s *RedshiftDatabaseCredentials) Validate() error { 9034 invalidParams := request.ErrInvalidParams{Context: "RedshiftDatabaseCredentials"} 9035 if s.Password == nil { 9036 invalidParams.Add(request.NewErrParamRequired("Password")) 9037 } 9038 if s.Password != nil && len(*s.Password) < 8 { 9039 invalidParams.Add(request.NewErrParamMinLen("Password", 8)) 9040 } 9041 if s.Username == nil { 9042 invalidParams.Add(request.NewErrParamRequired("Username")) 9043 } 9044 if s.Username != nil && len(*s.Username) < 1 { 9045 invalidParams.Add(request.NewErrParamMinLen("Username", 1)) 9046 } 9047 9048 if invalidParams.Len() > 0 { 9049 return invalidParams 9050 } 9051 return nil 9052 } 9053 9054 // SetPassword sets the Password field's value. 9055 func (s *RedshiftDatabaseCredentials) SetPassword(v string) *RedshiftDatabaseCredentials { 9056 s.Password = &v 9057 return s 9058 } 9059 9060 // SetUsername sets the Username field's value. 9061 func (s *RedshiftDatabaseCredentials) SetUsername(v string) *RedshiftDatabaseCredentials { 9062 s.Username = &v 9063 return s 9064 } 9065 9066 // Describes the DataSource details specific to Amazon Redshift. 9067 type RedshiftMetadata struct { 9068 _ struct{} `type:"structure"` 9069 9070 // A username to be used by Amazon Machine Learning (Amazon ML)to connect to 9071 // a database on an Amazon Redshift cluster. The username should have sufficient 9072 // permissions to execute the RedshiftSelectSqlQuery query. The username should 9073 // be valid for an Amazon Redshift USER (https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_USER.html). 9074 DatabaseUserName *string `min:"1" type:"string"` 9075 9076 // Describes the database details required to connect to an Amazon Redshift 9077 // database. 9078 RedshiftDatabase *RedshiftDatabase `type:"structure"` 9079 9080 // The SQL query that is specified during CreateDataSourceFromRedshift. Returns 9081 // only if Verbose is true in GetDataSourceInput. 9082 SelectSqlQuery *string `min:"1" type:"string"` 9083 } 9084 9085 // String returns the string representation. 9086 // 9087 // API parameter values that are decorated as "sensitive" in the API will not 9088 // be included in the string output. The member name will be present, but the 9089 // value will be replaced with "sensitive". 9090 func (s RedshiftMetadata) String() string { 9091 return awsutil.Prettify(s) 9092 } 9093 9094 // GoString returns the string representation. 9095 // 9096 // API parameter values that are decorated as "sensitive" in the API will not 9097 // be included in the string output. The member name will be present, but the 9098 // value will be replaced with "sensitive". 9099 func (s RedshiftMetadata) GoString() string { 9100 return s.String() 9101 } 9102 9103 // SetDatabaseUserName sets the DatabaseUserName field's value. 9104 func (s *RedshiftMetadata) SetDatabaseUserName(v string) *RedshiftMetadata { 9105 s.DatabaseUserName = &v 9106 return s 9107 } 9108 9109 // SetRedshiftDatabase sets the RedshiftDatabase field's value. 9110 func (s *RedshiftMetadata) SetRedshiftDatabase(v *RedshiftDatabase) *RedshiftMetadata { 9111 s.RedshiftDatabase = v 9112 return s 9113 } 9114 9115 // SetSelectSqlQuery sets the SelectSqlQuery field's value. 9116 func (s *RedshiftMetadata) SetSelectSqlQuery(v string) *RedshiftMetadata { 9117 s.SelectSqlQuery = &v 9118 return s 9119 } 9120 9121 // A specified resource cannot be located. 9122 type ResourceNotFoundException struct { 9123 _ struct{} `type:"structure"` 9124 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9125 9126 Code_ *int64 `locationName:"code" type:"integer"` 9127 9128 Message_ *string `locationName:"message" type:"string"` 9129 } 9130 9131 // String returns the string representation. 9132 // 9133 // API parameter values that are decorated as "sensitive" in the API will not 9134 // be included in the string output. The member name will be present, but the 9135 // value will be replaced with "sensitive". 9136 func (s ResourceNotFoundException) String() string { 9137 return awsutil.Prettify(s) 9138 } 9139 9140 // GoString returns the string representation. 9141 // 9142 // API parameter values that are decorated as "sensitive" in the API will not 9143 // be included in the string output. The member name will be present, but the 9144 // value will be replaced with "sensitive". 9145 func (s ResourceNotFoundException) GoString() string { 9146 return s.String() 9147 } 9148 9149 func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { 9150 return &ResourceNotFoundException{ 9151 RespMetadata: v, 9152 } 9153 } 9154 9155 // Code returns the exception type name. 9156 func (s *ResourceNotFoundException) Code() string { 9157 return "ResourceNotFoundException" 9158 } 9159 9160 // Message returns the exception's message. 9161 func (s *ResourceNotFoundException) Message() string { 9162 if s.Message_ != nil { 9163 return *s.Message_ 9164 } 9165 return "" 9166 } 9167 9168 // OrigErr always returns nil, satisfies awserr.Error interface. 9169 func (s *ResourceNotFoundException) OrigErr() error { 9170 return nil 9171 } 9172 9173 func (s *ResourceNotFoundException) Error() string { 9174 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 9175 } 9176 9177 // Status code returns the HTTP status code for the request's response error. 9178 func (s *ResourceNotFoundException) StatusCode() int { 9179 return s.RespMetadata.StatusCode 9180 } 9181 9182 // RequestID returns the service's response RequestID for request. 9183 func (s *ResourceNotFoundException) RequestID() string { 9184 return s.RespMetadata.RequestID 9185 } 9186 9187 // Describes the data specification of a DataSource. 9188 type S3DataSpec struct { 9189 _ struct{} `type:"structure"` 9190 9191 // The location of the data file(s) used by a DataSource. The URI specifies 9192 // a data file or an Amazon Simple Storage Service (Amazon S3) directory or 9193 // bucket containing data files. 9194 // 9195 // DataLocationS3 is a required field 9196 DataLocationS3 *string `type:"string" required:"true"` 9197 9198 // A JSON string that represents the splitting and rearrangement processing 9199 // to be applied to a DataSource. If the DataRearrangement parameter is not 9200 // provided, all of the input data is used to create the Datasource. 9201 // 9202 // There are multiple parameters that control what data is used to create a 9203 // datasource: 9204 // 9205 // * percentBegin Use percentBegin to indicate the beginning of the range 9206 // of the data used to create the Datasource. If you do not include percentBegin 9207 // and percentEnd, Amazon ML includes all of the data when creating the datasource. 9208 // 9209 // * percentEnd Use percentEnd to indicate the end of the range of the data 9210 // used to create the Datasource. If you do not include percentBegin and 9211 // percentEnd, Amazon ML includes all of the data when creating the datasource. 9212 // 9213 // * complement The complement parameter instructs Amazon ML to use the data 9214 // that is not included in the range of percentBegin to percentEnd to create 9215 // a datasource. The complement parameter is useful if you need to create 9216 // complementary datasources for training and evaluation. To create a complementary 9217 // datasource, use the same values for percentBegin and percentEnd, along 9218 // with the complement parameter. For example, the following two datasources 9219 // do not share any data, and can be used to train and evaluate a model. 9220 // The first datasource has 25 percent of the data, and the second one has 9221 // 75 percent of the data. Datasource for evaluation: {"splitting":{"percentBegin":0, 9222 // "percentEnd":25}} Datasource for training: {"splitting":{"percentBegin":0, 9223 // "percentEnd":25, "complement":"true"}} 9224 // 9225 // * strategy To change how Amazon ML splits the data for a datasource, use 9226 // the strategy parameter. The default value for the strategy parameter is 9227 // sequential, meaning that Amazon ML takes all of the data records between 9228 // the percentBegin and percentEnd parameters for the datasource, in the 9229 // order that the records appear in the input data. The following two DataRearrangement 9230 // lines are examples of sequentially ordered training and evaluation datasources: 9231 // Datasource for evaluation: {"splitting":{"percentBegin":70, "percentEnd":100, 9232 // "strategy":"sequential"}} Datasource for training: {"splitting":{"percentBegin":70, 9233 // "percentEnd":100, "strategy":"sequential", "complement":"true"}} To randomly 9234 // split the input data into the proportions indicated by the percentBegin 9235 // and percentEnd parameters, set the strategy parameter to random and provide 9236 // a string that is used as the seed value for the random data splitting 9237 // (for example, you can use the S3 path to your data as the random seed 9238 // string). If you choose the random split strategy, Amazon ML assigns each 9239 // row of data a pseudo-random number between 0 and 100, and then selects 9240 // the rows that have an assigned number between percentBegin and percentEnd. 9241 // Pseudo-random numbers are assigned using both the input seed string value 9242 // and the byte offset as a seed, so changing the data results in a different 9243 // split. Any existing ordering is preserved. The random splitting strategy 9244 // ensures that variables in the training and evaluation data are distributed 9245 // similarly. It is useful in the cases where the input data may have an 9246 // implicit sort order, which would otherwise result in training and evaluation 9247 // datasources containing non-similar data records. The following two DataRearrangement 9248 // lines are examples of non-sequentially ordered training and evaluation 9249 // datasources: Datasource for evaluation: {"splitting":{"percentBegin":70, 9250 // "percentEnd":100, "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv"}} 9251 // Datasource for training: {"splitting":{"percentBegin":70, "percentEnd":100, 9252 // "strategy":"random", "randomSeed"="s3://my_s3_path/bucket/file.csv", "complement":"true"}} 9253 DataRearrangement *string `type:"string"` 9254 9255 // A JSON string that represents the schema for an Amazon S3 DataSource. The 9256 // DataSchema defines the structure of the observation data in the data file(s) 9257 // referenced in the DataSource. 9258 // 9259 // You must provide either the DataSchema or the DataSchemaLocationS3. 9260 // 9261 // Define your DataSchema as a series of key-value pairs. attributes and excludedVariableNames 9262 // have an array of key-value pairs for their value. Use the following format 9263 // to define your DataSchema. 9264 // 9265 // { "version": "1.0", 9266 // 9267 // "recordAnnotationFieldName": "F1", 9268 // 9269 // "recordWeightFieldName": "F2", 9270 // 9271 // "targetFieldName": "F3", 9272 // 9273 // "dataFormat": "CSV", 9274 // 9275 // "dataFileContainsHeader": true, 9276 // 9277 // "attributes": [ 9278 // 9279 // { "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": 9280 // "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": 9281 // "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" 9282 // }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": 9283 // "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" 9284 // } ], 9285 // 9286 // "excludedVariableNames": [ "F6" ] } 9287 DataSchema *string `type:"string"` 9288 9289 // Describes the schema location in Amazon S3. You must provide either the DataSchema 9290 // or the DataSchemaLocationS3. 9291 DataSchemaLocationS3 *string `type:"string"` 9292 } 9293 9294 // String returns the string representation. 9295 // 9296 // API parameter values that are decorated as "sensitive" in the API will not 9297 // be included in the string output. The member name will be present, but the 9298 // value will be replaced with "sensitive". 9299 func (s S3DataSpec) String() string { 9300 return awsutil.Prettify(s) 9301 } 9302 9303 // GoString returns the string representation. 9304 // 9305 // API parameter values that are decorated as "sensitive" in the API will not 9306 // be included in the string output. The member name will be present, but the 9307 // value will be replaced with "sensitive". 9308 func (s S3DataSpec) GoString() string { 9309 return s.String() 9310 } 9311 9312 // Validate inspects the fields of the type to determine if they are valid. 9313 func (s *S3DataSpec) Validate() error { 9314 invalidParams := request.ErrInvalidParams{Context: "S3DataSpec"} 9315 if s.DataLocationS3 == nil { 9316 invalidParams.Add(request.NewErrParamRequired("DataLocationS3")) 9317 } 9318 9319 if invalidParams.Len() > 0 { 9320 return invalidParams 9321 } 9322 return nil 9323 } 9324 9325 // SetDataLocationS3 sets the DataLocationS3 field's value. 9326 func (s *S3DataSpec) SetDataLocationS3(v string) *S3DataSpec { 9327 s.DataLocationS3 = &v 9328 return s 9329 } 9330 9331 // SetDataRearrangement sets the DataRearrangement field's value. 9332 func (s *S3DataSpec) SetDataRearrangement(v string) *S3DataSpec { 9333 s.DataRearrangement = &v 9334 return s 9335 } 9336 9337 // SetDataSchema sets the DataSchema field's value. 9338 func (s *S3DataSpec) SetDataSchema(v string) *S3DataSpec { 9339 s.DataSchema = &v 9340 return s 9341 } 9342 9343 // SetDataSchemaLocationS3 sets the DataSchemaLocationS3 field's value. 9344 func (s *S3DataSpec) SetDataSchemaLocationS3(v string) *S3DataSpec { 9345 s.DataSchemaLocationS3 = &v 9346 return s 9347 } 9348 9349 // A custom key-value pair associated with an ML object, such as an ML model. 9350 type Tag struct { 9351 _ struct{} `type:"structure"` 9352 9353 // A unique identifier for the tag. Valid characters include Unicode letters, 9354 // digits, white space, _, ., /, =, +, -, %, and @. 9355 Key *string `min:"1" type:"string"` 9356 9357 // An optional string, typically used to describe or define the tag. Valid characters 9358 // include Unicode letters, digits, white space, _, ., /, =, +, -, %, and @. 9359 Value *string `type:"string"` 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 Tag) 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 Tag) GoString() string { 9377 return s.String() 9378 } 9379 9380 // Validate inspects the fields of the type to determine if they are valid. 9381 func (s *Tag) Validate() error { 9382 invalidParams := request.ErrInvalidParams{Context: "Tag"} 9383 if s.Key != nil && len(*s.Key) < 1 { 9384 invalidParams.Add(request.NewErrParamMinLen("Key", 1)) 9385 } 9386 9387 if invalidParams.Len() > 0 { 9388 return invalidParams 9389 } 9390 return nil 9391 } 9392 9393 // SetKey sets the Key field's value. 9394 func (s *Tag) SetKey(v string) *Tag { 9395 s.Key = &v 9396 return s 9397 } 9398 9399 // SetValue sets the Value field's value. 9400 func (s *Tag) SetValue(v string) *Tag { 9401 s.Value = &v 9402 return s 9403 } 9404 9405 type TagLimitExceededException struct { 9406 _ struct{} `type:"structure"` 9407 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9408 9409 Message_ *string `locationName:"message" type:"string"` 9410 } 9411 9412 // String returns the string representation. 9413 // 9414 // API parameter values that are decorated as "sensitive" in the API will not 9415 // be included in the string output. The member name will be present, but the 9416 // value will be replaced with "sensitive". 9417 func (s TagLimitExceededException) String() string { 9418 return awsutil.Prettify(s) 9419 } 9420 9421 // GoString returns the string representation. 9422 // 9423 // API parameter values that are decorated as "sensitive" in the API will not 9424 // be included in the string output. The member name will be present, but the 9425 // value will be replaced with "sensitive". 9426 func (s TagLimitExceededException) GoString() string { 9427 return s.String() 9428 } 9429 9430 func newErrorTagLimitExceededException(v protocol.ResponseMetadata) error { 9431 return &TagLimitExceededException{ 9432 RespMetadata: v, 9433 } 9434 } 9435 9436 // Code returns the exception type name. 9437 func (s *TagLimitExceededException) Code() string { 9438 return "TagLimitExceededException" 9439 } 9440 9441 // Message returns the exception's message. 9442 func (s *TagLimitExceededException) Message() string { 9443 if s.Message_ != nil { 9444 return *s.Message_ 9445 } 9446 return "" 9447 } 9448 9449 // OrigErr always returns nil, satisfies awserr.Error interface. 9450 func (s *TagLimitExceededException) OrigErr() error { 9451 return nil 9452 } 9453 9454 func (s *TagLimitExceededException) Error() string { 9455 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9456 } 9457 9458 // Status code returns the HTTP status code for the request's response error. 9459 func (s *TagLimitExceededException) StatusCode() int { 9460 return s.RespMetadata.StatusCode 9461 } 9462 9463 // RequestID returns the service's response RequestID for request. 9464 func (s *TagLimitExceededException) RequestID() string { 9465 return s.RespMetadata.RequestID 9466 } 9467 9468 type UpdateBatchPredictionInput struct { 9469 _ struct{} `type:"structure"` 9470 9471 // The ID assigned to the BatchPrediction during creation. 9472 // 9473 // BatchPredictionId is a required field 9474 BatchPredictionId *string `min:"1" type:"string" required:"true"` 9475 9476 // A new user-supplied name or description of the BatchPrediction. 9477 // 9478 // BatchPredictionName is a required field 9479 BatchPredictionName *string `type:"string" required:"true"` 9480 } 9481 9482 // String returns the string representation. 9483 // 9484 // API parameter values that are decorated as "sensitive" in the API will not 9485 // be included in the string output. The member name will be present, but the 9486 // value will be replaced with "sensitive". 9487 func (s UpdateBatchPredictionInput) String() string { 9488 return awsutil.Prettify(s) 9489 } 9490 9491 // GoString returns the string representation. 9492 // 9493 // API parameter values that are decorated as "sensitive" in the API will not 9494 // be included in the string output. The member name will be present, but the 9495 // value will be replaced with "sensitive". 9496 func (s UpdateBatchPredictionInput) GoString() string { 9497 return s.String() 9498 } 9499 9500 // Validate inspects the fields of the type to determine if they are valid. 9501 func (s *UpdateBatchPredictionInput) Validate() error { 9502 invalidParams := request.ErrInvalidParams{Context: "UpdateBatchPredictionInput"} 9503 if s.BatchPredictionId == nil { 9504 invalidParams.Add(request.NewErrParamRequired("BatchPredictionId")) 9505 } 9506 if s.BatchPredictionId != nil && len(*s.BatchPredictionId) < 1 { 9507 invalidParams.Add(request.NewErrParamMinLen("BatchPredictionId", 1)) 9508 } 9509 if s.BatchPredictionName == nil { 9510 invalidParams.Add(request.NewErrParamRequired("BatchPredictionName")) 9511 } 9512 9513 if invalidParams.Len() > 0 { 9514 return invalidParams 9515 } 9516 return nil 9517 } 9518 9519 // SetBatchPredictionId sets the BatchPredictionId field's value. 9520 func (s *UpdateBatchPredictionInput) SetBatchPredictionId(v string) *UpdateBatchPredictionInput { 9521 s.BatchPredictionId = &v 9522 return s 9523 } 9524 9525 // SetBatchPredictionName sets the BatchPredictionName field's value. 9526 func (s *UpdateBatchPredictionInput) SetBatchPredictionName(v string) *UpdateBatchPredictionInput { 9527 s.BatchPredictionName = &v 9528 return s 9529 } 9530 9531 // Represents the output of an UpdateBatchPrediction operation. 9532 // 9533 // You can see the updated content by using the GetBatchPrediction operation. 9534 type UpdateBatchPredictionOutput struct { 9535 _ struct{} `type:"structure"` 9536 9537 // The ID assigned to the BatchPrediction during creation. This value should 9538 // be identical to the value of the BatchPredictionId in the request. 9539 BatchPredictionId *string `min:"1" type:"string"` 9540 } 9541 9542 // String returns the string representation. 9543 // 9544 // API parameter values that are decorated as "sensitive" in the API will not 9545 // be included in the string output. The member name will be present, but the 9546 // value will be replaced with "sensitive". 9547 func (s UpdateBatchPredictionOutput) String() string { 9548 return awsutil.Prettify(s) 9549 } 9550 9551 // GoString returns the string representation. 9552 // 9553 // API parameter values that are decorated as "sensitive" in the API will not 9554 // be included in the string output. The member name will be present, but the 9555 // value will be replaced with "sensitive". 9556 func (s UpdateBatchPredictionOutput) GoString() string { 9557 return s.String() 9558 } 9559 9560 // SetBatchPredictionId sets the BatchPredictionId field's value. 9561 func (s *UpdateBatchPredictionOutput) SetBatchPredictionId(v string) *UpdateBatchPredictionOutput { 9562 s.BatchPredictionId = &v 9563 return s 9564 } 9565 9566 type UpdateDataSourceInput struct { 9567 _ struct{} `type:"structure"` 9568 9569 // The ID assigned to the DataSource during creation. 9570 // 9571 // DataSourceId is a required field 9572 DataSourceId *string `min:"1" type:"string" required:"true"` 9573 9574 // A new user-supplied name or description of the DataSource that will replace 9575 // the current description. 9576 // 9577 // DataSourceName is a required field 9578 DataSourceName *string `type:"string" required:"true"` 9579 } 9580 9581 // String returns the string representation. 9582 // 9583 // API parameter values that are decorated as "sensitive" in the API will not 9584 // be included in the string output. The member name will be present, but the 9585 // value will be replaced with "sensitive". 9586 func (s UpdateDataSourceInput) String() string { 9587 return awsutil.Prettify(s) 9588 } 9589 9590 // GoString returns the string representation. 9591 // 9592 // API parameter values that are decorated as "sensitive" in the API will not 9593 // be included in the string output. The member name will be present, but the 9594 // value will be replaced with "sensitive". 9595 func (s UpdateDataSourceInput) GoString() string { 9596 return s.String() 9597 } 9598 9599 // Validate inspects the fields of the type to determine if they are valid. 9600 func (s *UpdateDataSourceInput) Validate() error { 9601 invalidParams := request.ErrInvalidParams{Context: "UpdateDataSourceInput"} 9602 if s.DataSourceId == nil { 9603 invalidParams.Add(request.NewErrParamRequired("DataSourceId")) 9604 } 9605 if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { 9606 invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) 9607 } 9608 if s.DataSourceName == nil { 9609 invalidParams.Add(request.NewErrParamRequired("DataSourceName")) 9610 } 9611 9612 if invalidParams.Len() > 0 { 9613 return invalidParams 9614 } 9615 return nil 9616 } 9617 9618 // SetDataSourceId sets the DataSourceId field's value. 9619 func (s *UpdateDataSourceInput) SetDataSourceId(v string) *UpdateDataSourceInput { 9620 s.DataSourceId = &v 9621 return s 9622 } 9623 9624 // SetDataSourceName sets the DataSourceName field's value. 9625 func (s *UpdateDataSourceInput) SetDataSourceName(v string) *UpdateDataSourceInput { 9626 s.DataSourceName = &v 9627 return s 9628 } 9629 9630 // Represents the output of an UpdateDataSource operation. 9631 // 9632 // You can see the updated content by using the GetBatchPrediction operation. 9633 type UpdateDataSourceOutput struct { 9634 _ struct{} `type:"structure"` 9635 9636 // The ID assigned to the DataSource during creation. This value should be identical 9637 // to the value of the DataSourceID in the request. 9638 DataSourceId *string `min:"1" type:"string"` 9639 } 9640 9641 // String returns the string representation. 9642 // 9643 // API parameter values that are decorated as "sensitive" in the API will not 9644 // be included in the string output. The member name will be present, but the 9645 // value will be replaced with "sensitive". 9646 func (s UpdateDataSourceOutput) String() string { 9647 return awsutil.Prettify(s) 9648 } 9649 9650 // GoString returns the string representation. 9651 // 9652 // API parameter values that are decorated as "sensitive" in the API will not 9653 // be included in the string output. The member name will be present, but the 9654 // value will be replaced with "sensitive". 9655 func (s UpdateDataSourceOutput) GoString() string { 9656 return s.String() 9657 } 9658 9659 // SetDataSourceId sets the DataSourceId field's value. 9660 func (s *UpdateDataSourceOutput) SetDataSourceId(v string) *UpdateDataSourceOutput { 9661 s.DataSourceId = &v 9662 return s 9663 } 9664 9665 type UpdateEvaluationInput struct { 9666 _ struct{} `type:"structure"` 9667 9668 // The ID assigned to the Evaluation during creation. 9669 // 9670 // EvaluationId is a required field 9671 EvaluationId *string `min:"1" type:"string" required:"true"` 9672 9673 // A new user-supplied name or description of the Evaluation that will replace 9674 // the current content. 9675 // 9676 // EvaluationName is a required field 9677 EvaluationName *string `type:"string" required:"true"` 9678 } 9679 9680 // String returns the string representation. 9681 // 9682 // API parameter values that are decorated as "sensitive" in the API will not 9683 // be included in the string output. The member name will be present, but the 9684 // value will be replaced with "sensitive". 9685 func (s UpdateEvaluationInput) String() string { 9686 return awsutil.Prettify(s) 9687 } 9688 9689 // GoString 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 UpdateEvaluationInput) GoString() string { 9695 return s.String() 9696 } 9697 9698 // Validate inspects the fields of the type to determine if they are valid. 9699 func (s *UpdateEvaluationInput) Validate() error { 9700 invalidParams := request.ErrInvalidParams{Context: "UpdateEvaluationInput"} 9701 if s.EvaluationId == nil { 9702 invalidParams.Add(request.NewErrParamRequired("EvaluationId")) 9703 } 9704 if s.EvaluationId != nil && len(*s.EvaluationId) < 1 { 9705 invalidParams.Add(request.NewErrParamMinLen("EvaluationId", 1)) 9706 } 9707 if s.EvaluationName == nil { 9708 invalidParams.Add(request.NewErrParamRequired("EvaluationName")) 9709 } 9710 9711 if invalidParams.Len() > 0 { 9712 return invalidParams 9713 } 9714 return nil 9715 } 9716 9717 // SetEvaluationId sets the EvaluationId field's value. 9718 func (s *UpdateEvaluationInput) SetEvaluationId(v string) *UpdateEvaluationInput { 9719 s.EvaluationId = &v 9720 return s 9721 } 9722 9723 // SetEvaluationName sets the EvaluationName field's value. 9724 func (s *UpdateEvaluationInput) SetEvaluationName(v string) *UpdateEvaluationInput { 9725 s.EvaluationName = &v 9726 return s 9727 } 9728 9729 // Represents the output of an UpdateEvaluation operation. 9730 // 9731 // You can see the updated content by using the GetEvaluation operation. 9732 type UpdateEvaluationOutput struct { 9733 _ struct{} `type:"structure"` 9734 9735 // The ID assigned to the Evaluation during creation. This value should be identical 9736 // to the value of the Evaluation in the request. 9737 EvaluationId *string `min:"1" type:"string"` 9738 } 9739 9740 // String returns the string representation. 9741 // 9742 // API parameter values that are decorated as "sensitive" in the API will not 9743 // be included in the string output. The member name will be present, but the 9744 // value will be replaced with "sensitive". 9745 func (s UpdateEvaluationOutput) String() string { 9746 return awsutil.Prettify(s) 9747 } 9748 9749 // GoString returns the string representation. 9750 // 9751 // API parameter values that are decorated as "sensitive" in the API will not 9752 // be included in the string output. The member name will be present, but the 9753 // value will be replaced with "sensitive". 9754 func (s UpdateEvaluationOutput) GoString() string { 9755 return s.String() 9756 } 9757 9758 // SetEvaluationId sets the EvaluationId field's value. 9759 func (s *UpdateEvaluationOutput) SetEvaluationId(v string) *UpdateEvaluationOutput { 9760 s.EvaluationId = &v 9761 return s 9762 } 9763 9764 type UpdateMLModelInput struct { 9765 _ struct{} `type:"structure"` 9766 9767 // The ID assigned to the MLModel during creation. 9768 // 9769 // MLModelId is a required field 9770 MLModelId *string `min:"1" type:"string" required:"true"` 9771 9772 // A user-supplied name or description of the MLModel. 9773 MLModelName *string `type:"string"` 9774 9775 // The ScoreThreshold used in binary classification MLModel that marks the boundary 9776 // between a positive prediction and a negative prediction. 9777 // 9778 // Output values greater than or equal to the ScoreThreshold receive a positive 9779 // result from the MLModel, such as true. Output values less than the ScoreThreshold 9780 // receive a negative response from the MLModel, such as false. 9781 ScoreThreshold *float64 `type:"float"` 9782 } 9783 9784 // String returns the string representation. 9785 // 9786 // API parameter values that are decorated as "sensitive" in the API will not 9787 // be included in the string output. The member name will be present, but the 9788 // value will be replaced with "sensitive". 9789 func (s UpdateMLModelInput) String() string { 9790 return awsutil.Prettify(s) 9791 } 9792 9793 // GoString returns the string representation. 9794 // 9795 // API parameter values that are decorated as "sensitive" in the API will not 9796 // be included in the string output. The member name will be present, but the 9797 // value will be replaced with "sensitive". 9798 func (s UpdateMLModelInput) GoString() string { 9799 return s.String() 9800 } 9801 9802 // Validate inspects the fields of the type to determine if they are valid. 9803 func (s *UpdateMLModelInput) Validate() error { 9804 invalidParams := request.ErrInvalidParams{Context: "UpdateMLModelInput"} 9805 if s.MLModelId == nil { 9806 invalidParams.Add(request.NewErrParamRequired("MLModelId")) 9807 } 9808 if s.MLModelId != nil && len(*s.MLModelId) < 1 { 9809 invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) 9810 } 9811 9812 if invalidParams.Len() > 0 { 9813 return invalidParams 9814 } 9815 return nil 9816 } 9817 9818 // SetMLModelId sets the MLModelId field's value. 9819 func (s *UpdateMLModelInput) SetMLModelId(v string) *UpdateMLModelInput { 9820 s.MLModelId = &v 9821 return s 9822 } 9823 9824 // SetMLModelName sets the MLModelName field's value. 9825 func (s *UpdateMLModelInput) SetMLModelName(v string) *UpdateMLModelInput { 9826 s.MLModelName = &v 9827 return s 9828 } 9829 9830 // SetScoreThreshold sets the ScoreThreshold field's value. 9831 func (s *UpdateMLModelInput) SetScoreThreshold(v float64) *UpdateMLModelInput { 9832 s.ScoreThreshold = &v 9833 return s 9834 } 9835 9836 // Represents the output of an UpdateMLModel operation. 9837 // 9838 // You can see the updated content by using the GetMLModel operation. 9839 type UpdateMLModelOutput struct { 9840 _ struct{} `type:"structure"` 9841 9842 // The ID assigned to the MLModel during creation. This value should be identical 9843 // to the value of the MLModelID in the request. 9844 MLModelId *string `min:"1" type:"string"` 9845 } 9846 9847 // String returns the string representation. 9848 // 9849 // API parameter values that are decorated as "sensitive" in the API will not 9850 // be included in the string output. The member name will be present, but the 9851 // value will be replaced with "sensitive". 9852 func (s UpdateMLModelOutput) String() string { 9853 return awsutil.Prettify(s) 9854 } 9855 9856 // GoString returns the string representation. 9857 // 9858 // API parameter values that are decorated as "sensitive" in the API will not 9859 // be included in the string output. The member name will be present, but the 9860 // value will be replaced with "sensitive". 9861 func (s UpdateMLModelOutput) GoString() string { 9862 return s.String() 9863 } 9864 9865 // SetMLModelId sets the MLModelId field's value. 9866 func (s *UpdateMLModelOutput) SetMLModelId(v string) *UpdateMLModelOutput { 9867 s.MLModelId = &v 9868 return s 9869 } 9870 9871 // The function used to train an MLModel. Training choices supported by Amazon 9872 // ML include the following: 9873 // 9874 // * SGD - Stochastic Gradient Descent. 9875 // 9876 // * RandomForest - Random forest of decision trees. 9877 const ( 9878 // AlgorithmSgd is a Algorithm enum value 9879 AlgorithmSgd = "sgd" 9880 ) 9881 9882 // Algorithm_Values returns all elements of the Algorithm enum 9883 func Algorithm_Values() []string { 9884 return []string{ 9885 AlgorithmSgd, 9886 } 9887 } 9888 9889 // A list of the variables to use in searching or filtering BatchPrediction. 9890 // 9891 // * CreatedAt - Sets the search criteria to BatchPrediction creation date. 9892 // 9893 // * Status - Sets the search criteria to BatchPrediction status. 9894 // 9895 // * Name - Sets the search criteria to the contents of BatchPrediction Name. 9896 // 9897 // * IAMUser - Sets the search criteria to the user account that invoked 9898 // the BatchPrediction creation. 9899 // 9900 // * MLModelId - Sets the search criteria to the MLModel used in the BatchPrediction. 9901 // 9902 // * DataSourceId - Sets the search criteria to the DataSource used in the 9903 // BatchPrediction. 9904 // 9905 // * DataURI - Sets the search criteria to the data file(s) used in the BatchPrediction. 9906 // The URL can identify either a file or an Amazon Simple Storage Service 9907 // (Amazon S3) bucket or directory. 9908 const ( 9909 // BatchPredictionFilterVariableCreatedAt is a BatchPredictionFilterVariable enum value 9910 BatchPredictionFilterVariableCreatedAt = "CreatedAt" 9911 9912 // BatchPredictionFilterVariableLastUpdatedAt is a BatchPredictionFilterVariable enum value 9913 BatchPredictionFilterVariableLastUpdatedAt = "LastUpdatedAt" 9914 9915 // BatchPredictionFilterVariableStatus is a BatchPredictionFilterVariable enum value 9916 BatchPredictionFilterVariableStatus = "Status" 9917 9918 // BatchPredictionFilterVariableName is a BatchPredictionFilterVariable enum value 9919 BatchPredictionFilterVariableName = "Name" 9920 9921 // BatchPredictionFilterVariableIamuser is a BatchPredictionFilterVariable enum value 9922 BatchPredictionFilterVariableIamuser = "IAMUser" 9923 9924 // BatchPredictionFilterVariableMlmodelId is a BatchPredictionFilterVariable enum value 9925 BatchPredictionFilterVariableMlmodelId = "MLModelId" 9926 9927 // BatchPredictionFilterVariableDataSourceId is a BatchPredictionFilterVariable enum value 9928 BatchPredictionFilterVariableDataSourceId = "DataSourceId" 9929 9930 // BatchPredictionFilterVariableDataUri is a BatchPredictionFilterVariable enum value 9931 BatchPredictionFilterVariableDataUri = "DataURI" 9932 ) 9933 9934 // BatchPredictionFilterVariable_Values returns all elements of the BatchPredictionFilterVariable enum 9935 func BatchPredictionFilterVariable_Values() []string { 9936 return []string{ 9937 BatchPredictionFilterVariableCreatedAt, 9938 BatchPredictionFilterVariableLastUpdatedAt, 9939 BatchPredictionFilterVariableStatus, 9940 BatchPredictionFilterVariableName, 9941 BatchPredictionFilterVariableIamuser, 9942 BatchPredictionFilterVariableMlmodelId, 9943 BatchPredictionFilterVariableDataSourceId, 9944 BatchPredictionFilterVariableDataUri, 9945 } 9946 } 9947 9948 // A list of the variables to use in searching or filtering DataSource. 9949 // 9950 // * CreatedAt - Sets the search criteria to DataSource creation date. 9951 // 9952 // * Status - Sets the search criteria to DataSource status. 9953 // 9954 // * Name - Sets the search criteria to the contents of DataSource Name. 9955 // 9956 // * DataUri - Sets the search criteria to the URI of data files used to 9957 // create the DataSource. The URI can identify either a file or an Amazon 9958 // Simple Storage Service (Amazon S3) bucket or directory. 9959 // 9960 // * IAMUser - Sets the search criteria to the user account that invoked 9961 // the DataSource creation. 9962 // 9963 // Note: The variable names should match the variable names in the DataSource. 9964 const ( 9965 // DataSourceFilterVariableCreatedAt is a DataSourceFilterVariable enum value 9966 DataSourceFilterVariableCreatedAt = "CreatedAt" 9967 9968 // DataSourceFilterVariableLastUpdatedAt is a DataSourceFilterVariable enum value 9969 DataSourceFilterVariableLastUpdatedAt = "LastUpdatedAt" 9970 9971 // DataSourceFilterVariableStatus is a DataSourceFilterVariable enum value 9972 DataSourceFilterVariableStatus = "Status" 9973 9974 // DataSourceFilterVariableName is a DataSourceFilterVariable enum value 9975 DataSourceFilterVariableName = "Name" 9976 9977 // DataSourceFilterVariableDataLocationS3 is a DataSourceFilterVariable enum value 9978 DataSourceFilterVariableDataLocationS3 = "DataLocationS3" 9979 9980 // DataSourceFilterVariableIamuser is a DataSourceFilterVariable enum value 9981 DataSourceFilterVariableIamuser = "IAMUser" 9982 ) 9983 9984 // DataSourceFilterVariable_Values returns all elements of the DataSourceFilterVariable enum 9985 func DataSourceFilterVariable_Values() []string { 9986 return []string{ 9987 DataSourceFilterVariableCreatedAt, 9988 DataSourceFilterVariableLastUpdatedAt, 9989 DataSourceFilterVariableStatus, 9990 DataSourceFilterVariableName, 9991 DataSourceFilterVariableDataLocationS3, 9992 DataSourceFilterVariableIamuser, 9993 } 9994 } 9995 9996 // Contains the key values of DetailsMap: 9997 // 9998 // * PredictiveModelType - Indicates the type of the MLModel. 9999 // 10000 // * Algorithm - Indicates the algorithm that was used for the MLModel. 10001 const ( 10002 // DetailsAttributesPredictiveModelType is a DetailsAttributes enum value 10003 DetailsAttributesPredictiveModelType = "PredictiveModelType" 10004 10005 // DetailsAttributesAlgorithm is a DetailsAttributes enum value 10006 DetailsAttributesAlgorithm = "Algorithm" 10007 ) 10008 10009 // DetailsAttributes_Values returns all elements of the DetailsAttributes enum 10010 func DetailsAttributes_Values() []string { 10011 return []string{ 10012 DetailsAttributesPredictiveModelType, 10013 DetailsAttributesAlgorithm, 10014 } 10015 } 10016 10017 // Object status with the following possible values: 10018 // 10019 // * PENDING 10020 // 10021 // * INPROGRESS 10022 // 10023 // * FAILED 10024 // 10025 // * COMPLETED 10026 // 10027 // * DELETED 10028 const ( 10029 // EntityStatusPending is a EntityStatus enum value 10030 EntityStatusPending = "PENDING" 10031 10032 // EntityStatusInprogress is a EntityStatus enum value 10033 EntityStatusInprogress = "INPROGRESS" 10034 10035 // EntityStatusFailed is a EntityStatus enum value 10036 EntityStatusFailed = "FAILED" 10037 10038 // EntityStatusCompleted is a EntityStatus enum value 10039 EntityStatusCompleted = "COMPLETED" 10040 10041 // EntityStatusDeleted is a EntityStatus enum value 10042 EntityStatusDeleted = "DELETED" 10043 ) 10044 10045 // EntityStatus_Values returns all elements of the EntityStatus enum 10046 func EntityStatus_Values() []string { 10047 return []string{ 10048 EntityStatusPending, 10049 EntityStatusInprogress, 10050 EntityStatusFailed, 10051 EntityStatusCompleted, 10052 EntityStatusDeleted, 10053 } 10054 } 10055 10056 // A list of the variables to use in searching or filtering Evaluation. 10057 // 10058 // * CreatedAt - Sets the search criteria to Evaluation creation date. 10059 // 10060 // * Status - Sets the search criteria to Evaluation status. 10061 // 10062 // * Name - Sets the search criteria to the contents of Evaluation Name. 10063 // 10064 // * IAMUser - Sets the search criteria to the user account that invoked 10065 // an evaluation. 10066 // 10067 // * MLModelId - Sets the search criteria to the Predictor that was evaluated. 10068 // 10069 // * DataSourceId - Sets the search criteria to the DataSource used in evaluation. 10070 // 10071 // * DataUri - Sets the search criteria to the data file(s) used in evaluation. 10072 // The URL can identify either a file or an Amazon Simple Storage Service 10073 // (Amazon S3) bucket or directory. 10074 const ( 10075 // EvaluationFilterVariableCreatedAt is a EvaluationFilterVariable enum value 10076 EvaluationFilterVariableCreatedAt = "CreatedAt" 10077 10078 // EvaluationFilterVariableLastUpdatedAt is a EvaluationFilterVariable enum value 10079 EvaluationFilterVariableLastUpdatedAt = "LastUpdatedAt" 10080 10081 // EvaluationFilterVariableStatus is a EvaluationFilterVariable enum value 10082 EvaluationFilterVariableStatus = "Status" 10083 10084 // EvaluationFilterVariableName is a EvaluationFilterVariable enum value 10085 EvaluationFilterVariableName = "Name" 10086 10087 // EvaluationFilterVariableIamuser is a EvaluationFilterVariable enum value 10088 EvaluationFilterVariableIamuser = "IAMUser" 10089 10090 // EvaluationFilterVariableMlmodelId is a EvaluationFilterVariable enum value 10091 EvaluationFilterVariableMlmodelId = "MLModelId" 10092 10093 // EvaluationFilterVariableDataSourceId is a EvaluationFilterVariable enum value 10094 EvaluationFilterVariableDataSourceId = "DataSourceId" 10095 10096 // EvaluationFilterVariableDataUri is a EvaluationFilterVariable enum value 10097 EvaluationFilterVariableDataUri = "DataURI" 10098 ) 10099 10100 // EvaluationFilterVariable_Values returns all elements of the EvaluationFilterVariable enum 10101 func EvaluationFilterVariable_Values() []string { 10102 return []string{ 10103 EvaluationFilterVariableCreatedAt, 10104 EvaluationFilterVariableLastUpdatedAt, 10105 EvaluationFilterVariableStatus, 10106 EvaluationFilterVariableName, 10107 EvaluationFilterVariableIamuser, 10108 EvaluationFilterVariableMlmodelId, 10109 EvaluationFilterVariableDataSourceId, 10110 EvaluationFilterVariableDataUri, 10111 } 10112 } 10113 10114 const ( 10115 // MLModelFilterVariableCreatedAt is a MLModelFilterVariable enum value 10116 MLModelFilterVariableCreatedAt = "CreatedAt" 10117 10118 // MLModelFilterVariableLastUpdatedAt is a MLModelFilterVariable enum value 10119 MLModelFilterVariableLastUpdatedAt = "LastUpdatedAt" 10120 10121 // MLModelFilterVariableStatus is a MLModelFilterVariable enum value 10122 MLModelFilterVariableStatus = "Status" 10123 10124 // MLModelFilterVariableName is a MLModelFilterVariable enum value 10125 MLModelFilterVariableName = "Name" 10126 10127 // MLModelFilterVariableIamuser is a MLModelFilterVariable enum value 10128 MLModelFilterVariableIamuser = "IAMUser" 10129 10130 // MLModelFilterVariableTrainingDataSourceId is a MLModelFilterVariable enum value 10131 MLModelFilterVariableTrainingDataSourceId = "TrainingDataSourceId" 10132 10133 // MLModelFilterVariableRealtimeEndpointStatus is a MLModelFilterVariable enum value 10134 MLModelFilterVariableRealtimeEndpointStatus = "RealtimeEndpointStatus" 10135 10136 // MLModelFilterVariableMlmodelType is a MLModelFilterVariable enum value 10137 MLModelFilterVariableMlmodelType = "MLModelType" 10138 10139 // MLModelFilterVariableAlgorithm is a MLModelFilterVariable enum value 10140 MLModelFilterVariableAlgorithm = "Algorithm" 10141 10142 // MLModelFilterVariableTrainingDataUri is a MLModelFilterVariable enum value 10143 MLModelFilterVariableTrainingDataUri = "TrainingDataURI" 10144 ) 10145 10146 // MLModelFilterVariable_Values returns all elements of the MLModelFilterVariable enum 10147 func MLModelFilterVariable_Values() []string { 10148 return []string{ 10149 MLModelFilterVariableCreatedAt, 10150 MLModelFilterVariableLastUpdatedAt, 10151 MLModelFilterVariableStatus, 10152 MLModelFilterVariableName, 10153 MLModelFilterVariableIamuser, 10154 MLModelFilterVariableTrainingDataSourceId, 10155 MLModelFilterVariableRealtimeEndpointStatus, 10156 MLModelFilterVariableMlmodelType, 10157 MLModelFilterVariableAlgorithm, 10158 MLModelFilterVariableTrainingDataUri, 10159 } 10160 } 10161 10162 const ( 10163 // MLModelTypeRegression is a MLModelType enum value 10164 MLModelTypeRegression = "REGRESSION" 10165 10166 // MLModelTypeBinary is a MLModelType enum value 10167 MLModelTypeBinary = "BINARY" 10168 10169 // MLModelTypeMulticlass is a MLModelType enum value 10170 MLModelTypeMulticlass = "MULTICLASS" 10171 ) 10172 10173 // MLModelType_Values returns all elements of the MLModelType enum 10174 func MLModelType_Values() []string { 10175 return []string{ 10176 MLModelTypeRegression, 10177 MLModelTypeBinary, 10178 MLModelTypeMulticlass, 10179 } 10180 } 10181 10182 const ( 10183 // RealtimeEndpointStatusNone is a RealtimeEndpointStatus enum value 10184 RealtimeEndpointStatusNone = "NONE" 10185 10186 // RealtimeEndpointStatusReady is a RealtimeEndpointStatus enum value 10187 RealtimeEndpointStatusReady = "READY" 10188 10189 // RealtimeEndpointStatusUpdating is a RealtimeEndpointStatus enum value 10190 RealtimeEndpointStatusUpdating = "UPDATING" 10191 10192 // RealtimeEndpointStatusFailed is a RealtimeEndpointStatus enum value 10193 RealtimeEndpointStatusFailed = "FAILED" 10194 ) 10195 10196 // RealtimeEndpointStatus_Values returns all elements of the RealtimeEndpointStatus enum 10197 func RealtimeEndpointStatus_Values() []string { 10198 return []string{ 10199 RealtimeEndpointStatusNone, 10200 RealtimeEndpointStatusReady, 10201 RealtimeEndpointStatusUpdating, 10202 RealtimeEndpointStatusFailed, 10203 } 10204 } 10205 10206 // The sort order specified in a listing condition. Possible values include 10207 // the following: 10208 // 10209 // * asc - Present the information in ascending order (from A-Z). 10210 // 10211 // * dsc - Present the information in descending order (from Z-A). 10212 const ( 10213 // SortOrderAsc is a SortOrder enum value 10214 SortOrderAsc = "asc" 10215 10216 // SortOrderDsc is a SortOrder enum value 10217 SortOrderDsc = "dsc" 10218 ) 10219 10220 // SortOrder_Values returns all elements of the SortOrder enum 10221 func SortOrder_Values() []string { 10222 return []string{ 10223 SortOrderAsc, 10224 SortOrderDsc, 10225 } 10226 } 10227 10228 const ( 10229 // TaggableResourceTypeBatchPrediction is a TaggableResourceType enum value 10230 TaggableResourceTypeBatchPrediction = "BatchPrediction" 10231 10232 // TaggableResourceTypeDataSource is a TaggableResourceType enum value 10233 TaggableResourceTypeDataSource = "DataSource" 10234 10235 // TaggableResourceTypeEvaluation is a TaggableResourceType enum value 10236 TaggableResourceTypeEvaluation = "Evaluation" 10237 10238 // TaggableResourceTypeMlmodel is a TaggableResourceType enum value 10239 TaggableResourceTypeMlmodel = "MLModel" 10240 ) 10241 10242 // TaggableResourceType_Values returns all elements of the TaggableResourceType enum 10243 func TaggableResourceType_Values() []string { 10244 return []string{ 10245 TaggableResourceTypeBatchPrediction, 10246 TaggableResourceTypeDataSource, 10247 TaggableResourceTypeEvaluation, 10248 TaggableResourceTypeMlmodel, 10249 } 10250 }