1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package sagemaker 4 5import ( 6 "fmt" 7 "time" 8 9 "github.com/aws/aws-sdk-go/aws" 10 "github.com/aws/aws-sdk-go/aws/awsutil" 11 "github.com/aws/aws-sdk-go/aws/request" 12 "github.com/aws/aws-sdk-go/private/protocol" 13 "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" 14) 15 16const opAddTags = "AddTags" 17 18// AddTagsRequest generates a "aws/request.Request" representing the 19// client's request for the AddTags operation. The "output" return 20// value will be populated with the request's response once the request completes 21// successfuly. 22// 23// Use "Send" method on the returned Request to send the API call to the service. 24// the "output" return value is not valid until after Send returns without error. 25// 26// See AddTags for more information on using the AddTags 27// API call, and error handling. 28// 29// This method is useful when you want to inject custom logic or configuration 30// into the SDK's request lifecycle. Such as custom headers, or retry logic. 31// 32// 33// // Example sending a request using the AddTagsRequest method. 34// req, resp := client.AddTagsRequest(params) 35// 36// err := req.Send() 37// if err == nil { // resp is now filled 38// fmt.Println(resp) 39// } 40// 41// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/AddTags 42func (c *SageMaker) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) { 43 op := &request.Operation{ 44 Name: opAddTags, 45 HTTPMethod: "POST", 46 HTTPPath: "/", 47 } 48 49 if input == nil { 50 input = &AddTagsInput{} 51 } 52 53 output = &AddTagsOutput{} 54 req = c.newRequest(op, input, output) 55 return 56} 57 58// AddTags API operation for Amazon SageMaker Service. 59// 60// Adds or overwrites one or more tags for the specified Amazon SageMaker resource. 61// You can add tags to notebook instances, training jobs, models, endpoint configurations, 62// and endpoints. 63// 64// Each tag consists of a key and an optional value. Tag keys must be unique 65// per resource. For more information about tags, see Using Cost Allocation 66// Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) 67// in the AWS Billing and Cost Management User Guide. 68// 69// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 70// with awserr.Error's Code and Message methods to get detailed information about 71// the error. 72// 73// See the AWS API reference guide for Amazon SageMaker Service's 74// API operation AddTags for usage and error information. 75// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/AddTags 76func (c *SageMaker) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { 77 req, out := c.AddTagsRequest(input) 78 return out, req.Send() 79} 80 81// AddTagsWithContext is the same as AddTags with the addition of 82// the ability to pass a context and additional request options. 83// 84// See AddTags for details on how to use this API operation. 85// 86// The context must be non-nil and will be used for request cancellation. If 87// the context is nil a panic will occur. In the future the SDK may create 88// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 89// for more information on using Contexts. 90func (c *SageMaker) AddTagsWithContext(ctx aws.Context, input *AddTagsInput, opts ...request.Option) (*AddTagsOutput, error) { 91 req, out := c.AddTagsRequest(input) 92 req.SetContext(ctx) 93 req.ApplyOptions(opts...) 94 return out, req.Send() 95} 96 97const opCreateEndpoint = "CreateEndpoint" 98 99// CreateEndpointRequest generates a "aws/request.Request" representing the 100// client's request for the CreateEndpoint operation. The "output" return 101// value will be populated with the request's response once the request completes 102// successfuly. 103// 104// Use "Send" method on the returned Request to send the API call to the service. 105// the "output" return value is not valid until after Send returns without error. 106// 107// See CreateEndpoint for more information on using the CreateEndpoint 108// API call, and error handling. 109// 110// This method is useful when you want to inject custom logic or configuration 111// into the SDK's request lifecycle. Such as custom headers, or retry logic. 112// 113// 114// // Example sending a request using the CreateEndpointRequest method. 115// req, resp := client.CreateEndpointRequest(params) 116// 117// err := req.Send() 118// if err == nil { // resp is now filled 119// fmt.Println(resp) 120// } 121// 122// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpoint 123func (c *SageMaker) CreateEndpointRequest(input *CreateEndpointInput) (req *request.Request, output *CreateEndpointOutput) { 124 op := &request.Operation{ 125 Name: opCreateEndpoint, 126 HTTPMethod: "POST", 127 HTTPPath: "/", 128 } 129 130 if input == nil { 131 input = &CreateEndpointInput{} 132 } 133 134 output = &CreateEndpointOutput{} 135 req = c.newRequest(op, input, output) 136 return 137} 138 139// CreateEndpoint API operation for Amazon SageMaker Service. 140// 141// Creates an endpoint using the endpoint configuration specified in the request. 142// Amazon SageMaker uses the endpoint to provision resources and deploy models. 143// You create the endpoint configuration with the CreateEndpointConfig (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html) 144// API. 145// 146// Use this API only for hosting models using Amazon SageMaker hosting services. 147// 148// The endpoint name must be unique within an AWS Region in your AWS account. 149// 150// When it receives the request, Amazon SageMaker creates the endpoint, launches 151// the resources (ML compute instances), and deploys the model(s) on them. 152// 153// When Amazon SageMaker receives the request, it sets the endpoint status to 154// Creating. After it creates the endpoint, it sets the status to InService. 155// Amazon SageMaker can then process incoming requests for inferences. To check 156// the status of an endpoint, use the DescribeEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html) 157// API. 158// 159// For an example, see Exercise 1: Using the K-Means Algorithm Provided by Amazon 160// SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/ex1.html). 161// 162// If any of the models hosted at this endpoint get model data from an Amazon 163// S3 location, Amazon SageMaker uses AWS Security Token Service to download 164// model artifacts from the S3 path you provided. AWS STS is activated in your 165// IAM user account by default. If you previously deactivated AWS STS for a 166// region, you need to reactivate AWS STS for that region. For more information, 167// see Activating and Deactivating AWS STS i an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) 168// in the AWS Identity and Access Management User Guide. 169// 170// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 171// with awserr.Error's Code and Message methods to get detailed information about 172// the error. 173// 174// See the AWS API reference guide for Amazon SageMaker Service's 175// API operation CreateEndpoint for usage and error information. 176// 177// Returned Error Codes: 178// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" 179// You have exceeded an Amazon SageMaker resource limit. For example, you might 180// have too many training jobs created. 181// 182// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpoint 183func (c *SageMaker) CreateEndpoint(input *CreateEndpointInput) (*CreateEndpointOutput, error) { 184 req, out := c.CreateEndpointRequest(input) 185 return out, req.Send() 186} 187 188// CreateEndpointWithContext is the same as CreateEndpoint with the addition of 189// the ability to pass a context and additional request options. 190// 191// See CreateEndpoint for details on how to use this API operation. 192// 193// The context must be non-nil and will be used for request cancellation. If 194// the context is nil a panic will occur. In the future the SDK may create 195// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 196// for more information on using Contexts. 197func (c *SageMaker) CreateEndpointWithContext(ctx aws.Context, input *CreateEndpointInput, opts ...request.Option) (*CreateEndpointOutput, error) { 198 req, out := c.CreateEndpointRequest(input) 199 req.SetContext(ctx) 200 req.ApplyOptions(opts...) 201 return out, req.Send() 202} 203 204const opCreateEndpointConfig = "CreateEndpointConfig" 205 206// CreateEndpointConfigRequest generates a "aws/request.Request" representing the 207// client's request for the CreateEndpointConfig operation. The "output" return 208// value will be populated with the request's response once the request completes 209// successfuly. 210// 211// Use "Send" method on the returned Request to send the API call to the service. 212// the "output" return value is not valid until after Send returns without error. 213// 214// See CreateEndpointConfig for more information on using the CreateEndpointConfig 215// API call, and error handling. 216// 217// This method is useful when you want to inject custom logic or configuration 218// into the SDK's request lifecycle. Such as custom headers, or retry logic. 219// 220// 221// // Example sending a request using the CreateEndpointConfigRequest method. 222// req, resp := client.CreateEndpointConfigRequest(params) 223// 224// err := req.Send() 225// if err == nil { // resp is now filled 226// fmt.Println(resp) 227// } 228// 229// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpointConfig 230func (c *SageMaker) CreateEndpointConfigRequest(input *CreateEndpointConfigInput) (req *request.Request, output *CreateEndpointConfigOutput) { 231 op := &request.Operation{ 232 Name: opCreateEndpointConfig, 233 HTTPMethod: "POST", 234 HTTPPath: "/", 235 } 236 237 if input == nil { 238 input = &CreateEndpointConfigInput{} 239 } 240 241 output = &CreateEndpointConfigOutput{} 242 req = c.newRequest(op, input, output) 243 return 244} 245 246// CreateEndpointConfig API operation for Amazon SageMaker Service. 247// 248// Creates an endpoint configuration that Amazon SageMaker hosting services 249// uses to deploy models. In the configuration, you identify one or more models, 250// created using the CreateModel API, to deploy and the resources that you want 251// Amazon SageMaker to provision. Then you call the CreateEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html) 252// API. 253// 254// Use this API only if you want to use Amazon SageMaker hosting services to 255// deploy models into production. 256// 257// In the request, you define one or more ProductionVariants, each of which 258// identifies a model. Each ProductionVariant parameter also describes the resources 259// that you want Amazon SageMaker to provision. This includes the number and 260// type of ML compute instances to deploy. 261// 262// If you are hosting multiple models, you also assign a VariantWeight to specify 263// how much traffic you want to allocate to each model. For example, suppose 264// that you want to host two models, A and B, and you assign traffic weight 265// 2 for model A and 1 for model B. Amazon SageMaker distributes two-thirds 266// of the traffic to Model A, and one-third to model B. 267// 268// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 269// with awserr.Error's Code and Message methods to get detailed information about 270// the error. 271// 272// See the AWS API reference guide for Amazon SageMaker Service's 273// API operation CreateEndpointConfig for usage and error information. 274// 275// Returned Error Codes: 276// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" 277// You have exceeded an Amazon SageMaker resource limit. For example, you might 278// have too many training jobs created. 279// 280// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateEndpointConfig 281func (c *SageMaker) CreateEndpointConfig(input *CreateEndpointConfigInput) (*CreateEndpointConfigOutput, error) { 282 req, out := c.CreateEndpointConfigRequest(input) 283 return out, req.Send() 284} 285 286// CreateEndpointConfigWithContext is the same as CreateEndpointConfig with the addition of 287// the ability to pass a context and additional request options. 288// 289// See CreateEndpointConfig for details on how to use this API operation. 290// 291// The context must be non-nil and will be used for request cancellation. If 292// the context is nil a panic will occur. In the future the SDK may create 293// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 294// for more information on using Contexts. 295func (c *SageMaker) CreateEndpointConfigWithContext(ctx aws.Context, input *CreateEndpointConfigInput, opts ...request.Option) (*CreateEndpointConfigOutput, error) { 296 req, out := c.CreateEndpointConfigRequest(input) 297 req.SetContext(ctx) 298 req.ApplyOptions(opts...) 299 return out, req.Send() 300} 301 302const opCreateHyperParameterTuningJob = "CreateHyperParameterTuningJob" 303 304// CreateHyperParameterTuningJobRequest generates a "aws/request.Request" representing the 305// client's request for the CreateHyperParameterTuningJob operation. The "output" return 306// value will be populated with the request's response once the request completes 307// successfuly. 308// 309// Use "Send" method on the returned Request to send the API call to the service. 310// the "output" return value is not valid until after Send returns without error. 311// 312// See CreateHyperParameterTuningJob for more information on using the CreateHyperParameterTuningJob 313// API call, and error handling. 314// 315// This method is useful when you want to inject custom logic or configuration 316// into the SDK's request lifecycle. Such as custom headers, or retry logic. 317// 318// 319// // Example sending a request using the CreateHyperParameterTuningJobRequest method. 320// req, resp := client.CreateHyperParameterTuningJobRequest(params) 321// 322// err := req.Send() 323// if err == nil { // resp is now filled 324// fmt.Println(resp) 325// } 326// 327// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateHyperParameterTuningJob 328func (c *SageMaker) CreateHyperParameterTuningJobRequest(input *CreateHyperParameterTuningJobInput) (req *request.Request, output *CreateHyperParameterTuningJobOutput) { 329 op := &request.Operation{ 330 Name: opCreateHyperParameterTuningJob, 331 HTTPMethod: "POST", 332 HTTPPath: "/", 333 } 334 335 if input == nil { 336 input = &CreateHyperParameterTuningJobInput{} 337 } 338 339 output = &CreateHyperParameterTuningJobOutput{} 340 req = c.newRequest(op, input, output) 341 return 342} 343 344// CreateHyperParameterTuningJob API operation for Amazon SageMaker Service. 345// 346// Starts a hyperparameter tuning job. 347// 348// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 349// with awserr.Error's Code and Message methods to get detailed information about 350// the error. 351// 352// See the AWS API reference guide for Amazon SageMaker Service's 353// API operation CreateHyperParameterTuningJob for usage and error information. 354// 355// Returned Error Codes: 356// * ErrCodeResourceInUse "ResourceInUse" 357// Resource being accessed is in use. 358// 359// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" 360// You have exceeded an Amazon SageMaker resource limit. For example, you might 361// have too many training jobs created. 362// 363// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateHyperParameterTuningJob 364func (c *SageMaker) CreateHyperParameterTuningJob(input *CreateHyperParameterTuningJobInput) (*CreateHyperParameterTuningJobOutput, error) { 365 req, out := c.CreateHyperParameterTuningJobRequest(input) 366 return out, req.Send() 367} 368 369// CreateHyperParameterTuningJobWithContext is the same as CreateHyperParameterTuningJob with the addition of 370// the ability to pass a context and additional request options. 371// 372// See CreateHyperParameterTuningJob for details on how to use this API operation. 373// 374// The context must be non-nil and will be used for request cancellation. If 375// the context is nil a panic will occur. In the future the SDK may create 376// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 377// for more information on using Contexts. 378func (c *SageMaker) CreateHyperParameterTuningJobWithContext(ctx aws.Context, input *CreateHyperParameterTuningJobInput, opts ...request.Option) (*CreateHyperParameterTuningJobOutput, error) { 379 req, out := c.CreateHyperParameterTuningJobRequest(input) 380 req.SetContext(ctx) 381 req.ApplyOptions(opts...) 382 return out, req.Send() 383} 384 385const opCreateModel = "CreateModel" 386 387// CreateModelRequest generates a "aws/request.Request" representing the 388// client's request for the CreateModel operation. The "output" return 389// value will be populated with the request's response once the request completes 390// successfuly. 391// 392// Use "Send" method on the returned Request to send the API call to the service. 393// the "output" return value is not valid until after Send returns without error. 394// 395// See CreateModel for more information on using the CreateModel 396// API call, and error handling. 397// 398// This method is useful when you want to inject custom logic or configuration 399// into the SDK's request lifecycle. Such as custom headers, or retry logic. 400// 401// 402// // Example sending a request using the CreateModelRequest method. 403// req, resp := client.CreateModelRequest(params) 404// 405// err := req.Send() 406// if err == nil { // resp is now filled 407// fmt.Println(resp) 408// } 409// 410// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModel 411func (c *SageMaker) CreateModelRequest(input *CreateModelInput) (req *request.Request, output *CreateModelOutput) { 412 op := &request.Operation{ 413 Name: opCreateModel, 414 HTTPMethod: "POST", 415 HTTPPath: "/", 416 } 417 418 if input == nil { 419 input = &CreateModelInput{} 420 } 421 422 output = &CreateModelOutput{} 423 req = c.newRequest(op, input, output) 424 return 425} 426 427// CreateModel API operation for Amazon SageMaker Service. 428// 429// Creates a model in Amazon SageMaker. In the request, you name the model and 430// describe one or more containers. For each container, you specify the docker 431// image containing inference code, artifacts (from prior training), and custom 432// environment map that the inference code uses when you deploy the model into 433// production. 434// 435// Use this API to create a model only if you want to use Amazon SageMaker hosting 436// services. To host your model, you create an endpoint configuration with the 437// CreateEndpointConfig API, and then create an endpoint with the CreateEndpoint 438// API. 439// 440// Amazon SageMaker then deploys all of the containers that you defined for 441// the model in the hosting environment. 442// 443// In the CreateModel request, you must define a container with the PrimaryContainer 444// parameter. 445// 446// In the request, you also provide an IAM role that Amazon SageMaker can assume 447// to access model artifacts and docker image for deployment on ML compute hosting 448// instances. In addition, you also use the IAM role to manage permissions the 449// inference code needs. For example, if the inference code access any other 450// AWS resources, you grant necessary permissions via this role. 451// 452// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 453// with awserr.Error's Code and Message methods to get detailed information about 454// the error. 455// 456// See the AWS API reference guide for Amazon SageMaker Service's 457// API operation CreateModel for usage and error information. 458// 459// Returned Error Codes: 460// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" 461// You have exceeded an Amazon SageMaker resource limit. For example, you might 462// have too many training jobs created. 463// 464// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModel 465func (c *SageMaker) CreateModel(input *CreateModelInput) (*CreateModelOutput, error) { 466 req, out := c.CreateModelRequest(input) 467 return out, req.Send() 468} 469 470// CreateModelWithContext is the same as CreateModel with the addition of 471// the ability to pass a context and additional request options. 472// 473// See CreateModel for details on how to use this API operation. 474// 475// The context must be non-nil and will be used for request cancellation. If 476// the context is nil a panic will occur. In the future the SDK may create 477// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 478// for more information on using Contexts. 479func (c *SageMaker) CreateModelWithContext(ctx aws.Context, input *CreateModelInput, opts ...request.Option) (*CreateModelOutput, error) { 480 req, out := c.CreateModelRequest(input) 481 req.SetContext(ctx) 482 req.ApplyOptions(opts...) 483 return out, req.Send() 484} 485 486const opCreateNotebookInstance = "CreateNotebookInstance" 487 488// CreateNotebookInstanceRequest generates a "aws/request.Request" representing the 489// client's request for the CreateNotebookInstance operation. The "output" return 490// value will be populated with the request's response once the request completes 491// successfuly. 492// 493// Use "Send" method on the returned Request to send the API call to the service. 494// the "output" return value is not valid until after Send returns without error. 495// 496// See CreateNotebookInstance for more information on using the CreateNotebookInstance 497// API call, and error handling. 498// 499// This method is useful when you want to inject custom logic or configuration 500// into the SDK's request lifecycle. Such as custom headers, or retry logic. 501// 502// 503// // Example sending a request using the CreateNotebookInstanceRequest method. 504// req, resp := client.CreateNotebookInstanceRequest(params) 505// 506// err := req.Send() 507// if err == nil { // resp is now filled 508// fmt.Println(resp) 509// } 510// 511// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstance 512func (c *SageMaker) CreateNotebookInstanceRequest(input *CreateNotebookInstanceInput) (req *request.Request, output *CreateNotebookInstanceOutput) { 513 op := &request.Operation{ 514 Name: opCreateNotebookInstance, 515 HTTPMethod: "POST", 516 HTTPPath: "/", 517 } 518 519 if input == nil { 520 input = &CreateNotebookInstanceInput{} 521 } 522 523 output = &CreateNotebookInstanceOutput{} 524 req = c.newRequest(op, input, output) 525 return 526} 527 528// CreateNotebookInstance API operation for Amazon SageMaker Service. 529// 530// Creates an Amazon SageMaker notebook instance. A notebook instance is a machine 531// learning (ML) compute instance running on a Jupyter notebook. 532// 533// In a CreateNotebookInstance request, specify the type of ML compute instance 534// that you want to run. Amazon SageMaker launches the instance, installs common 535// libraries that you can use to explore datasets for model training, and attaches 536// an ML storage volume to the notebook instance. 537// 538// Amazon SageMaker also provides a set of example notebooks. Each notebook 539// demonstrates how to use Amazon SageMaker with a specific algorithm or with 540// a machine learning framework. 541// 542// After receiving the request, Amazon SageMaker does the following: 543// 544// Creates a network interface in the Amazon SageMaker VPC. 545// 546// (Option) If you specified SubnetId, Amazon SageMaker creates a network interface 547// in your own VPC, which is inferred from the subnet ID that you provide in 548// the input. When creating this network interface, Amazon SageMaker attaches 549// the security group that you specified in the request to the network interface 550// that it creates in your VPC. 551// 552// Launches an EC2 instance of the type specified in the request in the Amazon 553// SageMaker VPC. If you specified SubnetId of your VPC, Amazon SageMaker specifies 554// both network interfaces when launching this instance. This enables inbound 555// traffic from your own VPC to the notebook instance, assuming that the security 556// groups allow it. 557// 558// After creating the notebook instance, Amazon SageMaker returns its Amazon 559// Resource Name (ARN). 560// 561// After Amazon SageMaker creates the notebook instance, you can connect to 562// the Jupyter server and work in Jupyter notebooks. For example, you can write 563// code to explore a dataset that you can use for model training, train a model, 564// host models by creating Amazon SageMaker endpoints, and validate hosted models. 565// 566// For more information, see How It Works (http://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html). 567// 568// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 569// with awserr.Error's Code and Message methods to get detailed information about 570// the error. 571// 572// See the AWS API reference guide for Amazon SageMaker Service's 573// API operation CreateNotebookInstance for usage and error information. 574// 575// Returned Error Codes: 576// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" 577// You have exceeded an Amazon SageMaker resource limit. For example, you might 578// have too many training jobs created. 579// 580// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstance 581func (c *SageMaker) CreateNotebookInstance(input *CreateNotebookInstanceInput) (*CreateNotebookInstanceOutput, error) { 582 req, out := c.CreateNotebookInstanceRequest(input) 583 return out, req.Send() 584} 585 586// CreateNotebookInstanceWithContext is the same as CreateNotebookInstance with the addition of 587// the ability to pass a context and additional request options. 588// 589// See CreateNotebookInstance for details on how to use this API operation. 590// 591// The context must be non-nil and will be used for request cancellation. If 592// the context is nil a panic will occur. In the future the SDK may create 593// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 594// for more information on using Contexts. 595func (c *SageMaker) CreateNotebookInstanceWithContext(ctx aws.Context, input *CreateNotebookInstanceInput, opts ...request.Option) (*CreateNotebookInstanceOutput, error) { 596 req, out := c.CreateNotebookInstanceRequest(input) 597 req.SetContext(ctx) 598 req.ApplyOptions(opts...) 599 return out, req.Send() 600} 601 602const opCreateNotebookInstanceLifecycleConfig = "CreateNotebookInstanceLifecycleConfig" 603 604// CreateNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the 605// client's request for the CreateNotebookInstanceLifecycleConfig operation. The "output" return 606// value will be populated with the request's response once the request completes 607// successfuly. 608// 609// Use "Send" method on the returned Request to send the API call to the service. 610// the "output" return value is not valid until after Send returns without error. 611// 612// See CreateNotebookInstanceLifecycleConfig for more information on using the CreateNotebookInstanceLifecycleConfig 613// API call, and error handling. 614// 615// This method is useful when you want to inject custom logic or configuration 616// into the SDK's request lifecycle. Such as custom headers, or retry logic. 617// 618// 619// // Example sending a request using the CreateNotebookInstanceLifecycleConfigRequest method. 620// req, resp := client.CreateNotebookInstanceLifecycleConfigRequest(params) 621// 622// err := req.Send() 623// if err == nil { // resp is now filled 624// fmt.Println(resp) 625// } 626// 627// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstanceLifecycleConfig 628func (c *SageMaker) CreateNotebookInstanceLifecycleConfigRequest(input *CreateNotebookInstanceLifecycleConfigInput) (req *request.Request, output *CreateNotebookInstanceLifecycleConfigOutput) { 629 op := &request.Operation{ 630 Name: opCreateNotebookInstanceLifecycleConfig, 631 HTTPMethod: "POST", 632 HTTPPath: "/", 633 } 634 635 if input == nil { 636 input = &CreateNotebookInstanceLifecycleConfigInput{} 637 } 638 639 output = &CreateNotebookInstanceLifecycleConfigOutput{} 640 req = c.newRequest(op, input, output) 641 return 642} 643 644// CreateNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service. 645// 646// Creates a lifecycle configuration that you can associate with a notebook 647// instance. A lifecycle configuration is a collection of shell scripts that 648// run when you create or start a notebook instance. 649// 650// Each lifecycle configuration script has a limit of 16384 characters. 651// 652// The value of the $PATH environment variable that is available to both scripts 653// is /sbin:bin:/usr/sbin:/usr/bin. 654// 655// View CloudWatch Logs for notebook instance lifecycle configurations in log 656// group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook]. 657// 658// Lifecycle configuration scripts cannot run for longer than 5 minutes. If 659// a script runs for longer than 5 minutes, it fails and the notebook instance 660// is not created or started. 661// 662// For information about notebook instance lifestyle configurations, see notebook-lifecycle-config. 663// 664// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 665// with awserr.Error's Code and Message methods to get detailed information about 666// the error. 667// 668// See the AWS API reference guide for Amazon SageMaker Service's 669// API operation CreateNotebookInstanceLifecycleConfig for usage and error information. 670// 671// Returned Error Codes: 672// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" 673// You have exceeded an Amazon SageMaker resource limit. For example, you might 674// have too many training jobs created. 675// 676// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstanceLifecycleConfig 677func (c *SageMaker) CreateNotebookInstanceLifecycleConfig(input *CreateNotebookInstanceLifecycleConfigInput) (*CreateNotebookInstanceLifecycleConfigOutput, error) { 678 req, out := c.CreateNotebookInstanceLifecycleConfigRequest(input) 679 return out, req.Send() 680} 681 682// CreateNotebookInstanceLifecycleConfigWithContext is the same as CreateNotebookInstanceLifecycleConfig with the addition of 683// the ability to pass a context and additional request options. 684// 685// See CreateNotebookInstanceLifecycleConfig for details on how to use this API operation. 686// 687// The context must be non-nil and will be used for request cancellation. If 688// the context is nil a panic will occur. In the future the SDK may create 689// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 690// for more information on using Contexts. 691func (c *SageMaker) CreateNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *CreateNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*CreateNotebookInstanceLifecycleConfigOutput, error) { 692 req, out := c.CreateNotebookInstanceLifecycleConfigRequest(input) 693 req.SetContext(ctx) 694 req.ApplyOptions(opts...) 695 return out, req.Send() 696} 697 698const opCreatePresignedNotebookInstanceUrl = "CreatePresignedNotebookInstanceUrl" 699 700// CreatePresignedNotebookInstanceUrlRequest generates a "aws/request.Request" representing the 701// client's request for the CreatePresignedNotebookInstanceUrl operation. The "output" return 702// value will be populated with the request's response once the request completes 703// successfuly. 704// 705// Use "Send" method on the returned Request to send the API call to the service. 706// the "output" return value is not valid until after Send returns without error. 707// 708// See CreatePresignedNotebookInstanceUrl for more information on using the CreatePresignedNotebookInstanceUrl 709// API call, and error handling. 710// 711// This method is useful when you want to inject custom logic or configuration 712// into the SDK's request lifecycle. Such as custom headers, or retry logic. 713// 714// 715// // Example sending a request using the CreatePresignedNotebookInstanceUrlRequest method. 716// req, resp := client.CreatePresignedNotebookInstanceUrlRequest(params) 717// 718// err := req.Send() 719// if err == nil { // resp is now filled 720// fmt.Println(resp) 721// } 722// 723// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreatePresignedNotebookInstanceUrl 724func (c *SageMaker) CreatePresignedNotebookInstanceUrlRequest(input *CreatePresignedNotebookInstanceUrlInput) (req *request.Request, output *CreatePresignedNotebookInstanceUrlOutput) { 725 op := &request.Operation{ 726 Name: opCreatePresignedNotebookInstanceUrl, 727 HTTPMethod: "POST", 728 HTTPPath: "/", 729 } 730 731 if input == nil { 732 input = &CreatePresignedNotebookInstanceUrlInput{} 733 } 734 735 output = &CreatePresignedNotebookInstanceUrlOutput{} 736 req = c.newRequest(op, input, output) 737 return 738} 739 740// CreatePresignedNotebookInstanceUrl API operation for Amazon SageMaker Service. 741// 742// Returns a URL that you can use to connect to the Jupyter server from a notebook 743// instance. In the Amazon SageMaker console, when you choose Open next to a 744// notebook instance, Amazon SageMaker opens a new tab showing the Jupyter server 745// home page from the notebook instance. The console uses this API to get the 746// URL and show the page. 747// 748// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 749// with awserr.Error's Code and Message methods to get detailed information about 750// the error. 751// 752// See the AWS API reference guide for Amazon SageMaker Service's 753// API operation CreatePresignedNotebookInstanceUrl for usage and error information. 754// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreatePresignedNotebookInstanceUrl 755func (c *SageMaker) CreatePresignedNotebookInstanceUrl(input *CreatePresignedNotebookInstanceUrlInput) (*CreatePresignedNotebookInstanceUrlOutput, error) { 756 req, out := c.CreatePresignedNotebookInstanceUrlRequest(input) 757 return out, req.Send() 758} 759 760// CreatePresignedNotebookInstanceUrlWithContext is the same as CreatePresignedNotebookInstanceUrl with the addition of 761// the ability to pass a context and additional request options. 762// 763// See CreatePresignedNotebookInstanceUrl for details on how to use this API operation. 764// 765// The context must be non-nil and will be used for request cancellation. If 766// the context is nil a panic will occur. In the future the SDK may create 767// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 768// for more information on using Contexts. 769func (c *SageMaker) CreatePresignedNotebookInstanceUrlWithContext(ctx aws.Context, input *CreatePresignedNotebookInstanceUrlInput, opts ...request.Option) (*CreatePresignedNotebookInstanceUrlOutput, error) { 770 req, out := c.CreatePresignedNotebookInstanceUrlRequest(input) 771 req.SetContext(ctx) 772 req.ApplyOptions(opts...) 773 return out, req.Send() 774} 775 776const opCreateTrainingJob = "CreateTrainingJob" 777 778// CreateTrainingJobRequest generates a "aws/request.Request" representing the 779// client's request for the CreateTrainingJob operation. The "output" return 780// value will be populated with the request's response once the request completes 781// successfuly. 782// 783// Use "Send" method on the returned Request to send the API call to the service. 784// the "output" return value is not valid until after Send returns without error. 785// 786// See CreateTrainingJob for more information on using the CreateTrainingJob 787// API call, and error handling. 788// 789// This method is useful when you want to inject custom logic or configuration 790// into the SDK's request lifecycle. Such as custom headers, or retry logic. 791// 792// 793// // Example sending a request using the CreateTrainingJobRequest method. 794// req, resp := client.CreateTrainingJobRequest(params) 795// 796// err := req.Send() 797// if err == nil { // resp is now filled 798// fmt.Println(resp) 799// } 800// 801// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTrainingJob 802func (c *SageMaker) CreateTrainingJobRequest(input *CreateTrainingJobInput) (req *request.Request, output *CreateTrainingJobOutput) { 803 op := &request.Operation{ 804 Name: opCreateTrainingJob, 805 HTTPMethod: "POST", 806 HTTPPath: "/", 807 } 808 809 if input == nil { 810 input = &CreateTrainingJobInput{} 811 } 812 813 output = &CreateTrainingJobOutput{} 814 req = c.newRequest(op, input, output) 815 return 816} 817 818// CreateTrainingJob API operation for Amazon SageMaker Service. 819// 820// Starts a model training job. After training completes, Amazon SageMaker saves 821// the resulting model artifacts to an Amazon S3 location that you specify. 822// 823// If you choose to host your model using Amazon SageMaker hosting services, 824// you can use the resulting model artifacts as part of the model. You can also 825// use the artifacts in a deep learning service other than Amazon SageMaker, 826// provided that you know how to use them for inferences. 827// 828// In the request body, you provide the following: 829// 830// * AlgorithmSpecification - Identifies the training algorithm to use. 831// 832// * HyperParameters - Specify these algorithm-specific parameters to influence 833// the quality of the final model. For a list of hyperparameters for each 834// training algorithm provided by Amazon SageMaker, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). 835// 836// 837// * InputDataConfig - Describes the training dataset and the Amazon S3 location 838// where it is stored. 839// 840// * OutputDataConfig - Identifies the Amazon S3 location where you want 841// Amazon SageMaker to save the results of model training. 842// 843// * ResourceConfig - Identifies the resources, ML compute instances, and 844// ML storage volumes to deploy for model training. In distributed training, 845// you specify more than one instance. 846// 847// * RoleARN - The Amazon Resource Number (ARN) that Amazon SageMaker assumes 848// to perform tasks on your behalf during model training. You must grant 849// this role the necessary permissions so that Amazon SageMaker can successfully 850// complete model training. 851// 852// * StoppingCondition - Sets a duration for training. Use this parameter 853// to cap model training costs. 854// 855// For more information about Amazon SageMaker, see How It Works (http://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html) 856// 857// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 858// with awserr.Error's Code and Message methods to get detailed information about 859// the error. 860// 861// See the AWS API reference guide for Amazon SageMaker Service's 862// API operation CreateTrainingJob for usage and error information. 863// 864// Returned Error Codes: 865// * ErrCodeResourceInUse "ResourceInUse" 866// Resource being accessed is in use. 867// 868// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" 869// You have exceeded an Amazon SageMaker resource limit. For example, you might 870// have too many training jobs created. 871// 872// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTrainingJob 873func (c *SageMaker) CreateTrainingJob(input *CreateTrainingJobInput) (*CreateTrainingJobOutput, error) { 874 req, out := c.CreateTrainingJobRequest(input) 875 return out, req.Send() 876} 877 878// CreateTrainingJobWithContext is the same as CreateTrainingJob with the addition of 879// the ability to pass a context and additional request options. 880// 881// See CreateTrainingJob for details on how to use this API operation. 882// 883// The context must be non-nil and will be used for request cancellation. If 884// the context is nil a panic will occur. In the future the SDK may create 885// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 886// for more information on using Contexts. 887func (c *SageMaker) CreateTrainingJobWithContext(ctx aws.Context, input *CreateTrainingJobInput, opts ...request.Option) (*CreateTrainingJobOutput, error) { 888 req, out := c.CreateTrainingJobRequest(input) 889 req.SetContext(ctx) 890 req.ApplyOptions(opts...) 891 return out, req.Send() 892} 893 894const opCreateTransformJob = "CreateTransformJob" 895 896// CreateTransformJobRequest generates a "aws/request.Request" representing the 897// client's request for the CreateTransformJob operation. The "output" return 898// value will be populated with the request's response once the request completes 899// successfuly. 900// 901// Use "Send" method on the returned Request to send the API call to the service. 902// the "output" return value is not valid until after Send returns without error. 903// 904// See CreateTransformJob for more information on using the CreateTransformJob 905// API call, and error handling. 906// 907// This method is useful when you want to inject custom logic or configuration 908// into the SDK's request lifecycle. Such as custom headers, or retry logic. 909// 910// 911// // Example sending a request using the CreateTransformJobRequest method. 912// req, resp := client.CreateTransformJobRequest(params) 913// 914// err := req.Send() 915// if err == nil { // resp is now filled 916// fmt.Println(resp) 917// } 918// 919// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTransformJob 920func (c *SageMaker) CreateTransformJobRequest(input *CreateTransformJobInput) (req *request.Request, output *CreateTransformJobOutput) { 921 op := &request.Operation{ 922 Name: opCreateTransformJob, 923 HTTPMethod: "POST", 924 HTTPPath: "/", 925 } 926 927 if input == nil { 928 input = &CreateTransformJobInput{} 929 } 930 931 output = &CreateTransformJobOutput{} 932 req = c.newRequest(op, input, output) 933 return 934} 935 936// CreateTransformJob API operation for Amazon SageMaker Service. 937// 938// Starts a transform job. A transform job uses a trained model to get inferences 939// on a dataset and saves these results to an Amazon S3 location that you specify. 940// 941// To perform batch transformations, you create a transform job and use the 942// data that you have readily available. 943// 944// In the request body, you provide the following: 945// 946// * TransformJobName - Identifies the transform job. The name must be unique 947// within an AWS Region in an AWS account. 948// 949// * ModelName - Identifies the model to use. ModelName must be the name 950// of an existing Amazon SageMaker model within an AWS Region in an AWS account. 951// 952// * TransformInput - Describes the dataset to be transformed and the Amazon 953// S3 location where it is stored. 954// 955// * TransformOutput - Identifies the Amazon S3 location where you want Amazon 956// SageMaker to save the results from the transform job. 957// 958// * TransformResources - Identifies the ML compute instances for the transform 959// job. 960// 961// For more information about how batch transformation works Amazon SageMaker, 962// see How It Works (http://docs.aws.amazon.com/sagemaker/latest/dg/batch-transform.html). 963// 964// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 965// with awserr.Error's Code and Message methods to get detailed information about 966// the error. 967// 968// See the AWS API reference guide for Amazon SageMaker Service's 969// API operation CreateTransformJob for usage and error information. 970// 971// Returned Error Codes: 972// * ErrCodeResourceInUse "ResourceInUse" 973// Resource being accessed is in use. 974// 975// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" 976// You have exceeded an Amazon SageMaker resource limit. For example, you might 977// have too many training jobs created. 978// 979// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTransformJob 980func (c *SageMaker) CreateTransformJob(input *CreateTransformJobInput) (*CreateTransformJobOutput, error) { 981 req, out := c.CreateTransformJobRequest(input) 982 return out, req.Send() 983} 984 985// CreateTransformJobWithContext is the same as CreateTransformJob with the addition of 986// the ability to pass a context and additional request options. 987// 988// See CreateTransformJob for details on how to use this API operation. 989// 990// The context must be non-nil and will be used for request cancellation. If 991// the context is nil a panic will occur. In the future the SDK may create 992// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 993// for more information on using Contexts. 994func (c *SageMaker) CreateTransformJobWithContext(ctx aws.Context, input *CreateTransformJobInput, opts ...request.Option) (*CreateTransformJobOutput, error) { 995 req, out := c.CreateTransformJobRequest(input) 996 req.SetContext(ctx) 997 req.ApplyOptions(opts...) 998 return out, req.Send() 999} 1000 1001const opDeleteEndpoint = "DeleteEndpoint" 1002 1003// DeleteEndpointRequest generates a "aws/request.Request" representing the 1004// client's request for the DeleteEndpoint operation. The "output" return 1005// value will be populated with the request's response once the request completes 1006// successfuly. 1007// 1008// Use "Send" method on the returned Request to send the API call to the service. 1009// the "output" return value is not valid until after Send returns without error. 1010// 1011// See DeleteEndpoint for more information on using the DeleteEndpoint 1012// API call, and error handling. 1013// 1014// This method is useful when you want to inject custom logic or configuration 1015// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1016// 1017// 1018// // Example sending a request using the DeleteEndpointRequest method. 1019// req, resp := client.DeleteEndpointRequest(params) 1020// 1021// err := req.Send() 1022// if err == nil { // resp is now filled 1023// fmt.Println(resp) 1024// } 1025// 1026// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpoint 1027func (c *SageMaker) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Request, output *DeleteEndpointOutput) { 1028 op := &request.Operation{ 1029 Name: opDeleteEndpoint, 1030 HTTPMethod: "POST", 1031 HTTPPath: "/", 1032 } 1033 1034 if input == nil { 1035 input = &DeleteEndpointInput{} 1036 } 1037 1038 output = &DeleteEndpointOutput{} 1039 req = c.newRequest(op, input, output) 1040 req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) 1041 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) 1042 return 1043} 1044 1045// DeleteEndpoint API operation for Amazon SageMaker Service. 1046// 1047// Deletes an endpoint. Amazon SageMaker frees up all of the resources that 1048// were deployed when the endpoint was created. 1049// 1050// Amazon SageMaker retires any custom KMS key grants associated with the endpoint, 1051// meaning you don't need to use the RevokeGrant (http://docs.aws.amazon.com/kms/latest/APIReference/API_RevokeGrant.html) 1052// API call. 1053// 1054// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1055// with awserr.Error's Code and Message methods to get detailed information about 1056// the error. 1057// 1058// See the AWS API reference guide for Amazon SageMaker Service's 1059// API operation DeleteEndpoint for usage and error information. 1060// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpoint 1061func (c *SageMaker) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) { 1062 req, out := c.DeleteEndpointRequest(input) 1063 return out, req.Send() 1064} 1065 1066// DeleteEndpointWithContext is the same as DeleteEndpoint with the addition of 1067// the ability to pass a context and additional request options. 1068// 1069// See DeleteEndpoint for details on how to use this API operation. 1070// 1071// The context must be non-nil and will be used for request cancellation. If 1072// the context is nil a panic will occur. In the future the SDK may create 1073// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1074// for more information on using Contexts. 1075func (c *SageMaker) DeleteEndpointWithContext(ctx aws.Context, input *DeleteEndpointInput, opts ...request.Option) (*DeleteEndpointOutput, error) { 1076 req, out := c.DeleteEndpointRequest(input) 1077 req.SetContext(ctx) 1078 req.ApplyOptions(opts...) 1079 return out, req.Send() 1080} 1081 1082const opDeleteEndpointConfig = "DeleteEndpointConfig" 1083 1084// DeleteEndpointConfigRequest generates a "aws/request.Request" representing the 1085// client's request for the DeleteEndpointConfig operation. The "output" return 1086// value will be populated with the request's response once the request completes 1087// successfuly. 1088// 1089// Use "Send" method on the returned Request to send the API call to the service. 1090// the "output" return value is not valid until after Send returns without error. 1091// 1092// See DeleteEndpointConfig for more information on using the DeleteEndpointConfig 1093// API call, and error handling. 1094// 1095// This method is useful when you want to inject custom logic or configuration 1096// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1097// 1098// 1099// // Example sending a request using the DeleteEndpointConfigRequest method. 1100// req, resp := client.DeleteEndpointConfigRequest(params) 1101// 1102// err := req.Send() 1103// if err == nil { // resp is now filled 1104// fmt.Println(resp) 1105// } 1106// 1107// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpointConfig 1108func (c *SageMaker) DeleteEndpointConfigRequest(input *DeleteEndpointConfigInput) (req *request.Request, output *DeleteEndpointConfigOutput) { 1109 op := &request.Operation{ 1110 Name: opDeleteEndpointConfig, 1111 HTTPMethod: "POST", 1112 HTTPPath: "/", 1113 } 1114 1115 if input == nil { 1116 input = &DeleteEndpointConfigInput{} 1117 } 1118 1119 output = &DeleteEndpointConfigOutput{} 1120 req = c.newRequest(op, input, output) 1121 req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) 1122 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) 1123 return 1124} 1125 1126// DeleteEndpointConfig API operation for Amazon SageMaker Service. 1127// 1128// Deletes an endpoint configuration. The DeleteEndpointConfig API deletes only 1129// the specified configuration. It does not delete endpoints created using the 1130// configuration. 1131// 1132// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1133// with awserr.Error's Code and Message methods to get detailed information about 1134// the error. 1135// 1136// See the AWS API reference guide for Amazon SageMaker Service's 1137// API operation DeleteEndpointConfig for usage and error information. 1138// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpointConfig 1139func (c *SageMaker) DeleteEndpointConfig(input *DeleteEndpointConfigInput) (*DeleteEndpointConfigOutput, error) { 1140 req, out := c.DeleteEndpointConfigRequest(input) 1141 return out, req.Send() 1142} 1143 1144// DeleteEndpointConfigWithContext is the same as DeleteEndpointConfig with the addition of 1145// the ability to pass a context and additional request options. 1146// 1147// See DeleteEndpointConfig for details on how to use this API operation. 1148// 1149// The context must be non-nil and will be used for request cancellation. If 1150// the context is nil a panic will occur. In the future the SDK may create 1151// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1152// for more information on using Contexts. 1153func (c *SageMaker) DeleteEndpointConfigWithContext(ctx aws.Context, input *DeleteEndpointConfigInput, opts ...request.Option) (*DeleteEndpointConfigOutput, error) { 1154 req, out := c.DeleteEndpointConfigRequest(input) 1155 req.SetContext(ctx) 1156 req.ApplyOptions(opts...) 1157 return out, req.Send() 1158} 1159 1160const opDeleteModel = "DeleteModel" 1161 1162// DeleteModelRequest generates a "aws/request.Request" representing the 1163// client's request for the DeleteModel operation. The "output" return 1164// value will be populated with the request's response once the request completes 1165// successfuly. 1166// 1167// Use "Send" method on the returned Request to send the API call to the service. 1168// the "output" return value is not valid until after Send returns without error. 1169// 1170// See DeleteModel for more information on using the DeleteModel 1171// API call, and error handling. 1172// 1173// This method is useful when you want to inject custom logic or configuration 1174// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1175// 1176// 1177// // Example sending a request using the DeleteModelRequest method. 1178// req, resp := client.DeleteModelRequest(params) 1179// 1180// err := req.Send() 1181// if err == nil { // resp is now filled 1182// fmt.Println(resp) 1183// } 1184// 1185// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModel 1186func (c *SageMaker) DeleteModelRequest(input *DeleteModelInput) (req *request.Request, output *DeleteModelOutput) { 1187 op := &request.Operation{ 1188 Name: opDeleteModel, 1189 HTTPMethod: "POST", 1190 HTTPPath: "/", 1191 } 1192 1193 if input == nil { 1194 input = &DeleteModelInput{} 1195 } 1196 1197 output = &DeleteModelOutput{} 1198 req = c.newRequest(op, input, output) 1199 req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) 1200 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) 1201 return 1202} 1203 1204// DeleteModel API operation for Amazon SageMaker Service. 1205// 1206// Deletes a model. The DeleteModel API deletes only the model entry that was 1207// created in Amazon SageMaker when you called the CreateModel (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateModel.html) 1208// API. It does not delete model artifacts, inference code, or the IAM role 1209// that you specified when creating the model. 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 SageMaker Service's 1216// API operation DeleteModel for usage and error information. 1217// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModel 1218func (c *SageMaker) DeleteModel(input *DeleteModelInput) (*DeleteModelOutput, error) { 1219 req, out := c.DeleteModelRequest(input) 1220 return out, req.Send() 1221} 1222 1223// DeleteModelWithContext is the same as DeleteModel with the addition of 1224// the ability to pass a context and additional request options. 1225// 1226// See DeleteModel for details on how to use this API operation. 1227// 1228// The context must be non-nil and will be used for request cancellation. If 1229// the context is nil a panic will occur. In the future the SDK may create 1230// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1231// for more information on using Contexts. 1232func (c *SageMaker) DeleteModelWithContext(ctx aws.Context, input *DeleteModelInput, opts ...request.Option) (*DeleteModelOutput, error) { 1233 req, out := c.DeleteModelRequest(input) 1234 req.SetContext(ctx) 1235 req.ApplyOptions(opts...) 1236 return out, req.Send() 1237} 1238 1239const opDeleteNotebookInstance = "DeleteNotebookInstance" 1240 1241// DeleteNotebookInstanceRequest generates a "aws/request.Request" representing the 1242// client's request for the DeleteNotebookInstance operation. The "output" return 1243// value will be populated with the request's response once the request completes 1244// successfuly. 1245// 1246// Use "Send" method on the returned Request to send the API call to the service. 1247// the "output" return value is not valid until after Send returns without error. 1248// 1249// See DeleteNotebookInstance for more information on using the DeleteNotebookInstance 1250// API call, and error handling. 1251// 1252// This method is useful when you want to inject custom logic or configuration 1253// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1254// 1255// 1256// // Example sending a request using the DeleteNotebookInstanceRequest method. 1257// req, resp := client.DeleteNotebookInstanceRequest(params) 1258// 1259// err := req.Send() 1260// if err == nil { // resp is now filled 1261// fmt.Println(resp) 1262// } 1263// 1264// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstance 1265func (c *SageMaker) DeleteNotebookInstanceRequest(input *DeleteNotebookInstanceInput) (req *request.Request, output *DeleteNotebookInstanceOutput) { 1266 op := &request.Operation{ 1267 Name: opDeleteNotebookInstance, 1268 HTTPMethod: "POST", 1269 HTTPPath: "/", 1270 } 1271 1272 if input == nil { 1273 input = &DeleteNotebookInstanceInput{} 1274 } 1275 1276 output = &DeleteNotebookInstanceOutput{} 1277 req = c.newRequest(op, input, output) 1278 req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) 1279 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) 1280 return 1281} 1282 1283// DeleteNotebookInstance API operation for Amazon SageMaker Service. 1284// 1285// Deletes an Amazon SageMaker notebook instance. Before you can delete a notebook 1286// instance, you must call the StopNotebookInstance API. 1287// 1288// When you delete a notebook instance, you lose all of your data. Amazon SageMaker 1289// removes the ML compute instance, and deletes the ML storage volume and the 1290// network interface associated with the notebook instance. 1291// 1292// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1293// with awserr.Error's Code and Message methods to get detailed information about 1294// the error. 1295// 1296// See the AWS API reference guide for Amazon SageMaker Service's 1297// API operation DeleteNotebookInstance for usage and error information. 1298// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstance 1299func (c *SageMaker) DeleteNotebookInstance(input *DeleteNotebookInstanceInput) (*DeleteNotebookInstanceOutput, error) { 1300 req, out := c.DeleteNotebookInstanceRequest(input) 1301 return out, req.Send() 1302} 1303 1304// DeleteNotebookInstanceWithContext is the same as DeleteNotebookInstance with the addition of 1305// the ability to pass a context and additional request options. 1306// 1307// See DeleteNotebookInstance for details on how to use this API operation. 1308// 1309// The context must be non-nil and will be used for request cancellation. If 1310// the context is nil a panic will occur. In the future the SDK may create 1311// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1312// for more information on using Contexts. 1313func (c *SageMaker) DeleteNotebookInstanceWithContext(ctx aws.Context, input *DeleteNotebookInstanceInput, opts ...request.Option) (*DeleteNotebookInstanceOutput, error) { 1314 req, out := c.DeleteNotebookInstanceRequest(input) 1315 req.SetContext(ctx) 1316 req.ApplyOptions(opts...) 1317 return out, req.Send() 1318} 1319 1320const opDeleteNotebookInstanceLifecycleConfig = "DeleteNotebookInstanceLifecycleConfig" 1321 1322// DeleteNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the 1323// client's request for the DeleteNotebookInstanceLifecycleConfig operation. The "output" return 1324// value will be populated with the request's response once the request completes 1325// successfuly. 1326// 1327// Use "Send" method on the returned Request to send the API call to the service. 1328// the "output" return value is not valid until after Send returns without error. 1329// 1330// See DeleteNotebookInstanceLifecycleConfig for more information on using the DeleteNotebookInstanceLifecycleConfig 1331// API call, and error handling. 1332// 1333// This method is useful when you want to inject custom logic or configuration 1334// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1335// 1336// 1337// // Example sending a request using the DeleteNotebookInstanceLifecycleConfigRequest method. 1338// req, resp := client.DeleteNotebookInstanceLifecycleConfigRequest(params) 1339// 1340// err := req.Send() 1341// if err == nil { // resp is now filled 1342// fmt.Println(resp) 1343// } 1344// 1345// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstanceLifecycleConfig 1346func (c *SageMaker) DeleteNotebookInstanceLifecycleConfigRequest(input *DeleteNotebookInstanceLifecycleConfigInput) (req *request.Request, output *DeleteNotebookInstanceLifecycleConfigOutput) { 1347 op := &request.Operation{ 1348 Name: opDeleteNotebookInstanceLifecycleConfig, 1349 HTTPMethod: "POST", 1350 HTTPPath: "/", 1351 } 1352 1353 if input == nil { 1354 input = &DeleteNotebookInstanceLifecycleConfigInput{} 1355 } 1356 1357 output = &DeleteNotebookInstanceLifecycleConfigOutput{} 1358 req = c.newRequest(op, input, output) 1359 req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) 1360 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) 1361 return 1362} 1363 1364// DeleteNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service. 1365// 1366// Deletes a notebook instance lifecycle configuration. 1367// 1368// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1369// with awserr.Error's Code and Message methods to get detailed information about 1370// the error. 1371// 1372// See the AWS API reference guide for Amazon SageMaker Service's 1373// API operation DeleteNotebookInstanceLifecycleConfig for usage and error information. 1374// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstanceLifecycleConfig 1375func (c *SageMaker) DeleteNotebookInstanceLifecycleConfig(input *DeleteNotebookInstanceLifecycleConfigInput) (*DeleteNotebookInstanceLifecycleConfigOutput, error) { 1376 req, out := c.DeleteNotebookInstanceLifecycleConfigRequest(input) 1377 return out, req.Send() 1378} 1379 1380// DeleteNotebookInstanceLifecycleConfigWithContext is the same as DeleteNotebookInstanceLifecycleConfig with the addition of 1381// the ability to pass a context and additional request options. 1382// 1383// See DeleteNotebookInstanceLifecycleConfig for details on how to use this API operation. 1384// 1385// The context must be non-nil and will be used for request cancellation. If 1386// the context is nil a panic will occur. In the future the SDK may create 1387// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1388// for more information on using Contexts. 1389func (c *SageMaker) DeleteNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *DeleteNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*DeleteNotebookInstanceLifecycleConfigOutput, error) { 1390 req, out := c.DeleteNotebookInstanceLifecycleConfigRequest(input) 1391 req.SetContext(ctx) 1392 req.ApplyOptions(opts...) 1393 return out, req.Send() 1394} 1395 1396const opDeleteTags = "DeleteTags" 1397 1398// DeleteTagsRequest generates a "aws/request.Request" representing the 1399// client's request for the DeleteTags operation. The "output" return 1400// value will be populated with the request's response once the request completes 1401// successfuly. 1402// 1403// Use "Send" method on the returned Request to send the API call to the service. 1404// the "output" return value is not valid until after Send returns without error. 1405// 1406// See DeleteTags for more information on using the DeleteTags 1407// API call, and error handling. 1408// 1409// This method is useful when you want to inject custom logic or configuration 1410// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1411// 1412// 1413// // Example sending a request using the DeleteTagsRequest method. 1414// req, resp := client.DeleteTagsRequest(params) 1415// 1416// err := req.Send() 1417// if err == nil { // resp is now filled 1418// fmt.Println(resp) 1419// } 1420// 1421// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTags 1422func (c *SageMaker) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { 1423 op := &request.Operation{ 1424 Name: opDeleteTags, 1425 HTTPMethod: "POST", 1426 HTTPPath: "/", 1427 } 1428 1429 if input == nil { 1430 input = &DeleteTagsInput{} 1431 } 1432 1433 output = &DeleteTagsOutput{} 1434 req = c.newRequest(op, input, output) 1435 return 1436} 1437 1438// DeleteTags API operation for Amazon SageMaker Service. 1439// 1440// Deletes the specified tags from an Amazon SageMaker resource. 1441// 1442// To list a resource's tags, use the ListTags API. 1443// 1444// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1445// with awserr.Error's Code and Message methods to get detailed information about 1446// the error. 1447// 1448// See the AWS API reference guide for Amazon SageMaker Service's 1449// API operation DeleteTags for usage and error information. 1450// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTags 1451func (c *SageMaker) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { 1452 req, out := c.DeleteTagsRequest(input) 1453 return out, req.Send() 1454} 1455 1456// DeleteTagsWithContext is the same as DeleteTags with the addition of 1457// the ability to pass a context and additional request options. 1458// 1459// See DeleteTags for details on how to use this API operation. 1460// 1461// The context must be non-nil and will be used for request cancellation. If 1462// the context is nil a panic will occur. In the future the SDK may create 1463// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1464// for more information on using Contexts. 1465func (c *SageMaker) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) { 1466 req, out := c.DeleteTagsRequest(input) 1467 req.SetContext(ctx) 1468 req.ApplyOptions(opts...) 1469 return out, req.Send() 1470} 1471 1472const opDescribeEndpoint = "DescribeEndpoint" 1473 1474// DescribeEndpointRequest generates a "aws/request.Request" representing the 1475// client's request for the DescribeEndpoint operation. The "output" return 1476// value will be populated with the request's response once the request completes 1477// successfuly. 1478// 1479// Use "Send" method on the returned Request to send the API call to the service. 1480// the "output" return value is not valid until after Send returns without error. 1481// 1482// See DescribeEndpoint for more information on using the DescribeEndpoint 1483// API call, and error handling. 1484// 1485// This method is useful when you want to inject custom logic or configuration 1486// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1487// 1488// 1489// // Example sending a request using the DescribeEndpointRequest method. 1490// req, resp := client.DescribeEndpointRequest(params) 1491// 1492// err := req.Send() 1493// if err == nil { // resp is now filled 1494// fmt.Println(resp) 1495// } 1496// 1497// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpoint 1498func (c *SageMaker) DescribeEndpointRequest(input *DescribeEndpointInput) (req *request.Request, output *DescribeEndpointOutput) { 1499 op := &request.Operation{ 1500 Name: opDescribeEndpoint, 1501 HTTPMethod: "POST", 1502 HTTPPath: "/", 1503 } 1504 1505 if input == nil { 1506 input = &DescribeEndpointInput{} 1507 } 1508 1509 output = &DescribeEndpointOutput{} 1510 req = c.newRequest(op, input, output) 1511 return 1512} 1513 1514// DescribeEndpoint API operation for Amazon SageMaker Service. 1515// 1516// Returns the description of an endpoint. 1517// 1518// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1519// with awserr.Error's Code and Message methods to get detailed information about 1520// the error. 1521// 1522// See the AWS API reference guide for Amazon SageMaker Service's 1523// API operation DescribeEndpoint for usage and error information. 1524// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpoint 1525func (c *SageMaker) DescribeEndpoint(input *DescribeEndpointInput) (*DescribeEndpointOutput, error) { 1526 req, out := c.DescribeEndpointRequest(input) 1527 return out, req.Send() 1528} 1529 1530// DescribeEndpointWithContext is the same as DescribeEndpoint with the addition of 1531// the ability to pass a context and additional request options. 1532// 1533// See DescribeEndpoint for details on how to use this API operation. 1534// 1535// The context must be non-nil and will be used for request cancellation. If 1536// the context is nil a panic will occur. In the future the SDK may create 1537// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1538// for more information on using Contexts. 1539func (c *SageMaker) DescribeEndpointWithContext(ctx aws.Context, input *DescribeEndpointInput, opts ...request.Option) (*DescribeEndpointOutput, error) { 1540 req, out := c.DescribeEndpointRequest(input) 1541 req.SetContext(ctx) 1542 req.ApplyOptions(opts...) 1543 return out, req.Send() 1544} 1545 1546const opDescribeEndpointConfig = "DescribeEndpointConfig" 1547 1548// DescribeEndpointConfigRequest generates a "aws/request.Request" representing the 1549// client's request for the DescribeEndpointConfig operation. The "output" return 1550// value will be populated with the request's response once the request completes 1551// successfuly. 1552// 1553// Use "Send" method on the returned Request to send the API call to the service. 1554// the "output" return value is not valid until after Send returns without error. 1555// 1556// See DescribeEndpointConfig for more information on using the DescribeEndpointConfig 1557// API call, and error handling. 1558// 1559// This method is useful when you want to inject custom logic or configuration 1560// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1561// 1562// 1563// // Example sending a request using the DescribeEndpointConfigRequest method. 1564// req, resp := client.DescribeEndpointConfigRequest(params) 1565// 1566// err := req.Send() 1567// if err == nil { // resp is now filled 1568// fmt.Println(resp) 1569// } 1570// 1571// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpointConfig 1572func (c *SageMaker) DescribeEndpointConfigRequest(input *DescribeEndpointConfigInput) (req *request.Request, output *DescribeEndpointConfigOutput) { 1573 op := &request.Operation{ 1574 Name: opDescribeEndpointConfig, 1575 HTTPMethod: "POST", 1576 HTTPPath: "/", 1577 } 1578 1579 if input == nil { 1580 input = &DescribeEndpointConfigInput{} 1581 } 1582 1583 output = &DescribeEndpointConfigOutput{} 1584 req = c.newRequest(op, input, output) 1585 return 1586} 1587 1588// DescribeEndpointConfig API operation for Amazon SageMaker Service. 1589// 1590// Returns the description of an endpoint configuration created using the CreateEndpointConfig 1591// API. 1592// 1593// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1594// with awserr.Error's Code and Message methods to get detailed information about 1595// the error. 1596// 1597// See the AWS API reference guide for Amazon SageMaker Service's 1598// API operation DescribeEndpointConfig for usage and error information. 1599// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpointConfig 1600func (c *SageMaker) DescribeEndpointConfig(input *DescribeEndpointConfigInput) (*DescribeEndpointConfigOutput, error) { 1601 req, out := c.DescribeEndpointConfigRequest(input) 1602 return out, req.Send() 1603} 1604 1605// DescribeEndpointConfigWithContext is the same as DescribeEndpointConfig with the addition of 1606// the ability to pass a context and additional request options. 1607// 1608// See DescribeEndpointConfig for details on how to use this API operation. 1609// 1610// The context must be non-nil and will be used for request cancellation. If 1611// the context is nil a panic will occur. In the future the SDK may create 1612// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1613// for more information on using Contexts. 1614func (c *SageMaker) DescribeEndpointConfigWithContext(ctx aws.Context, input *DescribeEndpointConfigInput, opts ...request.Option) (*DescribeEndpointConfigOutput, error) { 1615 req, out := c.DescribeEndpointConfigRequest(input) 1616 req.SetContext(ctx) 1617 req.ApplyOptions(opts...) 1618 return out, req.Send() 1619} 1620 1621const opDescribeHyperParameterTuningJob = "DescribeHyperParameterTuningJob" 1622 1623// DescribeHyperParameterTuningJobRequest generates a "aws/request.Request" representing the 1624// client's request for the DescribeHyperParameterTuningJob operation. The "output" return 1625// value will be populated with the request's response once the request completes 1626// successfuly. 1627// 1628// Use "Send" method on the returned Request to send the API call to the service. 1629// the "output" return value is not valid until after Send returns without error. 1630// 1631// See DescribeHyperParameterTuningJob for more information on using the DescribeHyperParameterTuningJob 1632// API call, and error handling. 1633// 1634// This method is useful when you want to inject custom logic or configuration 1635// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1636// 1637// 1638// // Example sending a request using the DescribeHyperParameterTuningJobRequest method. 1639// req, resp := client.DescribeHyperParameterTuningJobRequest(params) 1640// 1641// err := req.Send() 1642// if err == nil { // resp is now filled 1643// fmt.Println(resp) 1644// } 1645// 1646// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHyperParameterTuningJob 1647func (c *SageMaker) DescribeHyperParameterTuningJobRequest(input *DescribeHyperParameterTuningJobInput) (req *request.Request, output *DescribeHyperParameterTuningJobOutput) { 1648 op := &request.Operation{ 1649 Name: opDescribeHyperParameterTuningJob, 1650 HTTPMethod: "POST", 1651 HTTPPath: "/", 1652 } 1653 1654 if input == nil { 1655 input = &DescribeHyperParameterTuningJobInput{} 1656 } 1657 1658 output = &DescribeHyperParameterTuningJobOutput{} 1659 req = c.newRequest(op, input, output) 1660 return 1661} 1662 1663// DescribeHyperParameterTuningJob API operation for Amazon SageMaker Service. 1664// 1665// Gets a description of a hyperparameter tuning job. 1666// 1667// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1668// with awserr.Error's Code and Message methods to get detailed information about 1669// the error. 1670// 1671// See the AWS API reference guide for Amazon SageMaker Service's 1672// API operation DescribeHyperParameterTuningJob for usage and error information. 1673// 1674// Returned Error Codes: 1675// * ErrCodeResourceNotFound "ResourceNotFound" 1676// Resource being access is not found. 1677// 1678// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHyperParameterTuningJob 1679func (c *SageMaker) DescribeHyperParameterTuningJob(input *DescribeHyperParameterTuningJobInput) (*DescribeHyperParameterTuningJobOutput, error) { 1680 req, out := c.DescribeHyperParameterTuningJobRequest(input) 1681 return out, req.Send() 1682} 1683 1684// DescribeHyperParameterTuningJobWithContext is the same as DescribeHyperParameterTuningJob with the addition of 1685// the ability to pass a context and additional request options. 1686// 1687// See DescribeHyperParameterTuningJob for details on how to use this API operation. 1688// 1689// The context must be non-nil and will be used for request cancellation. If 1690// the context is nil a panic will occur. In the future the SDK may create 1691// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1692// for more information on using Contexts. 1693func (c *SageMaker) DescribeHyperParameterTuningJobWithContext(ctx aws.Context, input *DescribeHyperParameterTuningJobInput, opts ...request.Option) (*DescribeHyperParameterTuningJobOutput, error) { 1694 req, out := c.DescribeHyperParameterTuningJobRequest(input) 1695 req.SetContext(ctx) 1696 req.ApplyOptions(opts...) 1697 return out, req.Send() 1698} 1699 1700const opDescribeModel = "DescribeModel" 1701 1702// DescribeModelRequest generates a "aws/request.Request" representing the 1703// client's request for the DescribeModel operation. The "output" return 1704// value will be populated with the request's response once the request completes 1705// successfuly. 1706// 1707// Use "Send" method on the returned Request to send the API call to the service. 1708// the "output" return value is not valid until after Send returns without error. 1709// 1710// See DescribeModel for more information on using the DescribeModel 1711// API call, and error handling. 1712// 1713// This method is useful when you want to inject custom logic or configuration 1714// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1715// 1716// 1717// // Example sending a request using the DescribeModelRequest method. 1718// req, resp := client.DescribeModelRequest(params) 1719// 1720// err := req.Send() 1721// if err == nil { // resp is now filled 1722// fmt.Println(resp) 1723// } 1724// 1725// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModel 1726func (c *SageMaker) DescribeModelRequest(input *DescribeModelInput) (req *request.Request, output *DescribeModelOutput) { 1727 op := &request.Operation{ 1728 Name: opDescribeModel, 1729 HTTPMethod: "POST", 1730 HTTPPath: "/", 1731 } 1732 1733 if input == nil { 1734 input = &DescribeModelInput{} 1735 } 1736 1737 output = &DescribeModelOutput{} 1738 req = c.newRequest(op, input, output) 1739 return 1740} 1741 1742// DescribeModel API operation for Amazon SageMaker Service. 1743// 1744// Describes a model that you created using the CreateModel API. 1745// 1746// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1747// with awserr.Error's Code and Message methods to get detailed information about 1748// the error. 1749// 1750// See the AWS API reference guide for Amazon SageMaker Service's 1751// API operation DescribeModel for usage and error information. 1752// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModel 1753func (c *SageMaker) DescribeModel(input *DescribeModelInput) (*DescribeModelOutput, error) { 1754 req, out := c.DescribeModelRequest(input) 1755 return out, req.Send() 1756} 1757 1758// DescribeModelWithContext is the same as DescribeModel with the addition of 1759// the ability to pass a context and additional request options. 1760// 1761// See DescribeModel for details on how to use this API operation. 1762// 1763// The context must be non-nil and will be used for request cancellation. If 1764// the context is nil a panic will occur. In the future the SDK may create 1765// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1766// for more information on using Contexts. 1767func (c *SageMaker) DescribeModelWithContext(ctx aws.Context, input *DescribeModelInput, opts ...request.Option) (*DescribeModelOutput, error) { 1768 req, out := c.DescribeModelRequest(input) 1769 req.SetContext(ctx) 1770 req.ApplyOptions(opts...) 1771 return out, req.Send() 1772} 1773 1774const opDescribeNotebookInstance = "DescribeNotebookInstance" 1775 1776// DescribeNotebookInstanceRequest generates a "aws/request.Request" representing the 1777// client's request for the DescribeNotebookInstance operation. The "output" return 1778// value will be populated with the request's response once the request completes 1779// successfuly. 1780// 1781// Use "Send" method on the returned Request to send the API call to the service. 1782// the "output" return value is not valid until after Send returns without error. 1783// 1784// See DescribeNotebookInstance for more information on using the DescribeNotebookInstance 1785// API call, and error handling. 1786// 1787// This method is useful when you want to inject custom logic or configuration 1788// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1789// 1790// 1791// // Example sending a request using the DescribeNotebookInstanceRequest method. 1792// req, resp := client.DescribeNotebookInstanceRequest(params) 1793// 1794// err := req.Send() 1795// if err == nil { // resp is now filled 1796// fmt.Println(resp) 1797// } 1798// 1799// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstance 1800func (c *SageMaker) DescribeNotebookInstanceRequest(input *DescribeNotebookInstanceInput) (req *request.Request, output *DescribeNotebookInstanceOutput) { 1801 op := &request.Operation{ 1802 Name: opDescribeNotebookInstance, 1803 HTTPMethod: "POST", 1804 HTTPPath: "/", 1805 } 1806 1807 if input == nil { 1808 input = &DescribeNotebookInstanceInput{} 1809 } 1810 1811 output = &DescribeNotebookInstanceOutput{} 1812 req = c.newRequest(op, input, output) 1813 return 1814} 1815 1816// DescribeNotebookInstance API operation for Amazon SageMaker Service. 1817// 1818// Returns information about a notebook instance. 1819// 1820// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1821// with awserr.Error's Code and Message methods to get detailed information about 1822// the error. 1823// 1824// See the AWS API reference guide for Amazon SageMaker Service's 1825// API operation DescribeNotebookInstance for usage and error information. 1826// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstance 1827func (c *SageMaker) DescribeNotebookInstance(input *DescribeNotebookInstanceInput) (*DescribeNotebookInstanceOutput, error) { 1828 req, out := c.DescribeNotebookInstanceRequest(input) 1829 return out, req.Send() 1830} 1831 1832// DescribeNotebookInstanceWithContext is the same as DescribeNotebookInstance with the addition of 1833// the ability to pass a context and additional request options. 1834// 1835// See DescribeNotebookInstance for details on how to use this API operation. 1836// 1837// The context must be non-nil and will be used for request cancellation. If 1838// the context is nil a panic will occur. In the future the SDK may create 1839// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1840// for more information on using Contexts. 1841func (c *SageMaker) DescribeNotebookInstanceWithContext(ctx aws.Context, input *DescribeNotebookInstanceInput, opts ...request.Option) (*DescribeNotebookInstanceOutput, error) { 1842 req, out := c.DescribeNotebookInstanceRequest(input) 1843 req.SetContext(ctx) 1844 req.ApplyOptions(opts...) 1845 return out, req.Send() 1846} 1847 1848const opDescribeNotebookInstanceLifecycleConfig = "DescribeNotebookInstanceLifecycleConfig" 1849 1850// DescribeNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the 1851// client's request for the DescribeNotebookInstanceLifecycleConfig operation. The "output" return 1852// value will be populated with the request's response once the request completes 1853// successfuly. 1854// 1855// Use "Send" method on the returned Request to send the API call to the service. 1856// the "output" return value is not valid until after Send returns without error. 1857// 1858// See DescribeNotebookInstanceLifecycleConfig for more information on using the DescribeNotebookInstanceLifecycleConfig 1859// API call, and error handling. 1860// 1861// This method is useful when you want to inject custom logic or configuration 1862// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1863// 1864// 1865// // Example sending a request using the DescribeNotebookInstanceLifecycleConfigRequest method. 1866// req, resp := client.DescribeNotebookInstanceLifecycleConfigRequest(params) 1867// 1868// err := req.Send() 1869// if err == nil { // resp is now filled 1870// fmt.Println(resp) 1871// } 1872// 1873// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceLifecycleConfig 1874func (c *SageMaker) DescribeNotebookInstanceLifecycleConfigRequest(input *DescribeNotebookInstanceLifecycleConfigInput) (req *request.Request, output *DescribeNotebookInstanceLifecycleConfigOutput) { 1875 op := &request.Operation{ 1876 Name: opDescribeNotebookInstanceLifecycleConfig, 1877 HTTPMethod: "POST", 1878 HTTPPath: "/", 1879 } 1880 1881 if input == nil { 1882 input = &DescribeNotebookInstanceLifecycleConfigInput{} 1883 } 1884 1885 output = &DescribeNotebookInstanceLifecycleConfigOutput{} 1886 req = c.newRequest(op, input, output) 1887 return 1888} 1889 1890// DescribeNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service. 1891// 1892// Returns a description of a notebook instance lifecycle configuration. 1893// 1894// For information about notebook instance lifestyle configurations, see notebook-lifecycle-config. 1895// 1896// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1897// with awserr.Error's Code and Message methods to get detailed information about 1898// the error. 1899// 1900// See the AWS API reference guide for Amazon SageMaker Service's 1901// API operation DescribeNotebookInstanceLifecycleConfig for usage and error information. 1902// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceLifecycleConfig 1903func (c *SageMaker) DescribeNotebookInstanceLifecycleConfig(input *DescribeNotebookInstanceLifecycleConfigInput) (*DescribeNotebookInstanceLifecycleConfigOutput, error) { 1904 req, out := c.DescribeNotebookInstanceLifecycleConfigRequest(input) 1905 return out, req.Send() 1906} 1907 1908// DescribeNotebookInstanceLifecycleConfigWithContext is the same as DescribeNotebookInstanceLifecycleConfig with the addition of 1909// the ability to pass a context and additional request options. 1910// 1911// See DescribeNotebookInstanceLifecycleConfig for details on how to use this API operation. 1912// 1913// The context must be non-nil and will be used for request cancellation. If 1914// the context is nil a panic will occur. In the future the SDK may create 1915// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1916// for more information on using Contexts. 1917func (c *SageMaker) DescribeNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *DescribeNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*DescribeNotebookInstanceLifecycleConfigOutput, error) { 1918 req, out := c.DescribeNotebookInstanceLifecycleConfigRequest(input) 1919 req.SetContext(ctx) 1920 req.ApplyOptions(opts...) 1921 return out, req.Send() 1922} 1923 1924const opDescribeTrainingJob = "DescribeTrainingJob" 1925 1926// DescribeTrainingJobRequest generates a "aws/request.Request" representing the 1927// client's request for the DescribeTrainingJob operation. The "output" return 1928// value will be populated with the request's response once the request completes 1929// successfuly. 1930// 1931// Use "Send" method on the returned Request to send the API call to the service. 1932// the "output" return value is not valid until after Send returns without error. 1933// 1934// See DescribeTrainingJob for more information on using the DescribeTrainingJob 1935// API call, and error handling. 1936// 1937// This method is useful when you want to inject custom logic or configuration 1938// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1939// 1940// 1941// // Example sending a request using the DescribeTrainingJobRequest method. 1942// req, resp := client.DescribeTrainingJobRequest(params) 1943// 1944// err := req.Send() 1945// if err == nil { // resp is now filled 1946// fmt.Println(resp) 1947// } 1948// 1949// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrainingJob 1950func (c *SageMaker) DescribeTrainingJobRequest(input *DescribeTrainingJobInput) (req *request.Request, output *DescribeTrainingJobOutput) { 1951 op := &request.Operation{ 1952 Name: opDescribeTrainingJob, 1953 HTTPMethod: "POST", 1954 HTTPPath: "/", 1955 } 1956 1957 if input == nil { 1958 input = &DescribeTrainingJobInput{} 1959 } 1960 1961 output = &DescribeTrainingJobOutput{} 1962 req = c.newRequest(op, input, output) 1963 return 1964} 1965 1966// DescribeTrainingJob API operation for Amazon SageMaker Service. 1967// 1968// Returns information about a training job. 1969// 1970// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1971// with awserr.Error's Code and Message methods to get detailed information about 1972// the error. 1973// 1974// See the AWS API reference guide for Amazon SageMaker Service's 1975// API operation DescribeTrainingJob for usage and error information. 1976// 1977// Returned Error Codes: 1978// * ErrCodeResourceNotFound "ResourceNotFound" 1979// Resource being access is not found. 1980// 1981// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrainingJob 1982func (c *SageMaker) DescribeTrainingJob(input *DescribeTrainingJobInput) (*DescribeTrainingJobOutput, error) { 1983 req, out := c.DescribeTrainingJobRequest(input) 1984 return out, req.Send() 1985} 1986 1987// DescribeTrainingJobWithContext is the same as DescribeTrainingJob with the addition of 1988// the ability to pass a context and additional request options. 1989// 1990// See DescribeTrainingJob for details on how to use this API operation. 1991// 1992// The context must be non-nil and will be used for request cancellation. If 1993// the context is nil a panic will occur. In the future the SDK may create 1994// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1995// for more information on using Contexts. 1996func (c *SageMaker) DescribeTrainingJobWithContext(ctx aws.Context, input *DescribeTrainingJobInput, opts ...request.Option) (*DescribeTrainingJobOutput, error) { 1997 req, out := c.DescribeTrainingJobRequest(input) 1998 req.SetContext(ctx) 1999 req.ApplyOptions(opts...) 2000 return out, req.Send() 2001} 2002 2003const opDescribeTransformJob = "DescribeTransformJob" 2004 2005// DescribeTransformJobRequest generates a "aws/request.Request" representing the 2006// client's request for the DescribeTransformJob operation. The "output" return 2007// value will be populated with the request's response once the request completes 2008// successfuly. 2009// 2010// Use "Send" method on the returned Request to send the API call to the service. 2011// the "output" return value is not valid until after Send returns without error. 2012// 2013// See DescribeTransformJob for more information on using the DescribeTransformJob 2014// API call, and error handling. 2015// 2016// This method is useful when you want to inject custom logic or configuration 2017// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2018// 2019// 2020// // Example sending a request using the DescribeTransformJobRequest method. 2021// req, resp := client.DescribeTransformJobRequest(params) 2022// 2023// err := req.Send() 2024// if err == nil { // resp is now filled 2025// fmt.Println(resp) 2026// } 2027// 2028// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTransformJob 2029func (c *SageMaker) DescribeTransformJobRequest(input *DescribeTransformJobInput) (req *request.Request, output *DescribeTransformJobOutput) { 2030 op := &request.Operation{ 2031 Name: opDescribeTransformJob, 2032 HTTPMethod: "POST", 2033 HTTPPath: "/", 2034 } 2035 2036 if input == nil { 2037 input = &DescribeTransformJobInput{} 2038 } 2039 2040 output = &DescribeTransformJobOutput{} 2041 req = c.newRequest(op, input, output) 2042 return 2043} 2044 2045// DescribeTransformJob API operation for Amazon SageMaker Service. 2046// 2047// Returns information about a transform job. 2048// 2049// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2050// with awserr.Error's Code and Message methods to get detailed information about 2051// the error. 2052// 2053// See the AWS API reference guide for Amazon SageMaker Service's 2054// API operation DescribeTransformJob for usage and error information. 2055// 2056// Returned Error Codes: 2057// * ErrCodeResourceNotFound "ResourceNotFound" 2058// Resource being access is not found. 2059// 2060// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTransformJob 2061func (c *SageMaker) DescribeTransformJob(input *DescribeTransformJobInput) (*DescribeTransformJobOutput, error) { 2062 req, out := c.DescribeTransformJobRequest(input) 2063 return out, req.Send() 2064} 2065 2066// DescribeTransformJobWithContext is the same as DescribeTransformJob with the addition of 2067// the ability to pass a context and additional request options. 2068// 2069// See DescribeTransformJob for details on how to use this API operation. 2070// 2071// The context must be non-nil and will be used for request cancellation. If 2072// the context is nil a panic will occur. In the future the SDK may create 2073// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2074// for more information on using Contexts. 2075func (c *SageMaker) DescribeTransformJobWithContext(ctx aws.Context, input *DescribeTransformJobInput, opts ...request.Option) (*DescribeTransformJobOutput, error) { 2076 req, out := c.DescribeTransformJobRequest(input) 2077 req.SetContext(ctx) 2078 req.ApplyOptions(opts...) 2079 return out, req.Send() 2080} 2081 2082const opListEndpointConfigs = "ListEndpointConfigs" 2083 2084// ListEndpointConfigsRequest generates a "aws/request.Request" representing the 2085// client's request for the ListEndpointConfigs operation. The "output" return 2086// value will be populated with the request's response once the request completes 2087// successfuly. 2088// 2089// Use "Send" method on the returned Request to send the API call to the service. 2090// the "output" return value is not valid until after Send returns without error. 2091// 2092// See ListEndpointConfigs for more information on using the ListEndpointConfigs 2093// API call, and error handling. 2094// 2095// This method is useful when you want to inject custom logic or configuration 2096// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2097// 2098// 2099// // Example sending a request using the ListEndpointConfigsRequest method. 2100// req, resp := client.ListEndpointConfigsRequest(params) 2101// 2102// err := req.Send() 2103// if err == nil { // resp is now filled 2104// fmt.Println(resp) 2105// } 2106// 2107// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpointConfigs 2108func (c *SageMaker) ListEndpointConfigsRequest(input *ListEndpointConfigsInput) (req *request.Request, output *ListEndpointConfigsOutput) { 2109 op := &request.Operation{ 2110 Name: opListEndpointConfigs, 2111 HTTPMethod: "POST", 2112 HTTPPath: "/", 2113 Paginator: &request.Paginator{ 2114 InputTokens: []string{"NextToken"}, 2115 OutputTokens: []string{"NextToken"}, 2116 LimitToken: "MaxResults", 2117 TruncationToken: "", 2118 }, 2119 } 2120 2121 if input == nil { 2122 input = &ListEndpointConfigsInput{} 2123 } 2124 2125 output = &ListEndpointConfigsOutput{} 2126 req = c.newRequest(op, input, output) 2127 return 2128} 2129 2130// ListEndpointConfigs API operation for Amazon SageMaker Service. 2131// 2132// Lists endpoint configurations. 2133// 2134// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2135// with awserr.Error's Code and Message methods to get detailed information about 2136// the error. 2137// 2138// See the AWS API reference guide for Amazon SageMaker Service's 2139// API operation ListEndpointConfigs for usage and error information. 2140// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpointConfigs 2141func (c *SageMaker) ListEndpointConfigs(input *ListEndpointConfigsInput) (*ListEndpointConfigsOutput, error) { 2142 req, out := c.ListEndpointConfigsRequest(input) 2143 return out, req.Send() 2144} 2145 2146// ListEndpointConfigsWithContext is the same as ListEndpointConfigs with the addition of 2147// the ability to pass a context and additional request options. 2148// 2149// See ListEndpointConfigs for details on how to use this API operation. 2150// 2151// The context must be non-nil and will be used for request cancellation. If 2152// the context is nil a panic will occur. In the future the SDK may create 2153// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2154// for more information on using Contexts. 2155func (c *SageMaker) ListEndpointConfigsWithContext(ctx aws.Context, input *ListEndpointConfigsInput, opts ...request.Option) (*ListEndpointConfigsOutput, error) { 2156 req, out := c.ListEndpointConfigsRequest(input) 2157 req.SetContext(ctx) 2158 req.ApplyOptions(opts...) 2159 return out, req.Send() 2160} 2161 2162// ListEndpointConfigsPages iterates over the pages of a ListEndpointConfigs operation, 2163// calling the "fn" function with the response data for each page. To stop 2164// iterating, return false from the fn function. 2165// 2166// See ListEndpointConfigs method for more information on how to use this operation. 2167// 2168// Note: This operation can generate multiple requests to a service. 2169// 2170// // Example iterating over at most 3 pages of a ListEndpointConfigs operation. 2171// pageNum := 0 2172// err := client.ListEndpointConfigsPages(params, 2173// func(page *ListEndpointConfigsOutput, lastPage bool) bool { 2174// pageNum++ 2175// fmt.Println(page) 2176// return pageNum <= 3 2177// }) 2178// 2179func (c *SageMaker) ListEndpointConfigsPages(input *ListEndpointConfigsInput, fn func(*ListEndpointConfigsOutput, bool) bool) error { 2180 return c.ListEndpointConfigsPagesWithContext(aws.BackgroundContext(), input, fn) 2181} 2182 2183// ListEndpointConfigsPagesWithContext same as ListEndpointConfigsPages except 2184// it takes a Context and allows setting request options on the pages. 2185// 2186// The context must be non-nil and will be used for request cancellation. If 2187// the context is nil a panic will occur. In the future the SDK may create 2188// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2189// for more information on using Contexts. 2190func (c *SageMaker) ListEndpointConfigsPagesWithContext(ctx aws.Context, input *ListEndpointConfigsInput, fn func(*ListEndpointConfigsOutput, bool) bool, opts ...request.Option) error { 2191 p := request.Pagination{ 2192 NewRequest: func() (*request.Request, error) { 2193 var inCpy *ListEndpointConfigsInput 2194 if input != nil { 2195 tmp := *input 2196 inCpy = &tmp 2197 } 2198 req, _ := c.ListEndpointConfigsRequest(inCpy) 2199 req.SetContext(ctx) 2200 req.ApplyOptions(opts...) 2201 return req, nil 2202 }, 2203 } 2204 2205 cont := true 2206 for p.Next() && cont { 2207 cont = fn(p.Page().(*ListEndpointConfigsOutput), !p.HasNextPage()) 2208 } 2209 return p.Err() 2210} 2211 2212const opListEndpoints = "ListEndpoints" 2213 2214// ListEndpointsRequest generates a "aws/request.Request" representing the 2215// client's request for the ListEndpoints operation. The "output" return 2216// value will be populated with the request's response once the request completes 2217// successfuly. 2218// 2219// Use "Send" method on the returned Request to send the API call to the service. 2220// the "output" return value is not valid until after Send returns without error. 2221// 2222// See ListEndpoints for more information on using the ListEndpoints 2223// API call, and error handling. 2224// 2225// This method is useful when you want to inject custom logic or configuration 2226// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2227// 2228// 2229// // Example sending a request using the ListEndpointsRequest method. 2230// req, resp := client.ListEndpointsRequest(params) 2231// 2232// err := req.Send() 2233// if err == nil { // resp is now filled 2234// fmt.Println(resp) 2235// } 2236// 2237// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpoints 2238func (c *SageMaker) ListEndpointsRequest(input *ListEndpointsInput) (req *request.Request, output *ListEndpointsOutput) { 2239 op := &request.Operation{ 2240 Name: opListEndpoints, 2241 HTTPMethod: "POST", 2242 HTTPPath: "/", 2243 Paginator: &request.Paginator{ 2244 InputTokens: []string{"NextToken"}, 2245 OutputTokens: []string{"NextToken"}, 2246 LimitToken: "MaxResults", 2247 TruncationToken: "", 2248 }, 2249 } 2250 2251 if input == nil { 2252 input = &ListEndpointsInput{} 2253 } 2254 2255 output = &ListEndpointsOutput{} 2256 req = c.newRequest(op, input, output) 2257 return 2258} 2259 2260// ListEndpoints API operation for Amazon SageMaker Service. 2261// 2262// Lists endpoints. 2263// 2264// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2265// with awserr.Error's Code and Message methods to get detailed information about 2266// the error. 2267// 2268// See the AWS API reference guide for Amazon SageMaker Service's 2269// API operation ListEndpoints for usage and error information. 2270// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpoints 2271func (c *SageMaker) ListEndpoints(input *ListEndpointsInput) (*ListEndpointsOutput, error) { 2272 req, out := c.ListEndpointsRequest(input) 2273 return out, req.Send() 2274} 2275 2276// ListEndpointsWithContext is the same as ListEndpoints with the addition of 2277// the ability to pass a context and additional request options. 2278// 2279// See ListEndpoints for details on how to use this API operation. 2280// 2281// The context must be non-nil and will be used for request cancellation. If 2282// the context is nil a panic will occur. In the future the SDK may create 2283// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2284// for more information on using Contexts. 2285func (c *SageMaker) ListEndpointsWithContext(ctx aws.Context, input *ListEndpointsInput, opts ...request.Option) (*ListEndpointsOutput, error) { 2286 req, out := c.ListEndpointsRequest(input) 2287 req.SetContext(ctx) 2288 req.ApplyOptions(opts...) 2289 return out, req.Send() 2290} 2291 2292// ListEndpointsPages iterates over the pages of a ListEndpoints operation, 2293// calling the "fn" function with the response data for each page. To stop 2294// iterating, return false from the fn function. 2295// 2296// See ListEndpoints method for more information on how to use this operation. 2297// 2298// Note: This operation can generate multiple requests to a service. 2299// 2300// // Example iterating over at most 3 pages of a ListEndpoints operation. 2301// pageNum := 0 2302// err := client.ListEndpointsPages(params, 2303// func(page *ListEndpointsOutput, lastPage bool) bool { 2304// pageNum++ 2305// fmt.Println(page) 2306// return pageNum <= 3 2307// }) 2308// 2309func (c *SageMaker) ListEndpointsPages(input *ListEndpointsInput, fn func(*ListEndpointsOutput, bool) bool) error { 2310 return c.ListEndpointsPagesWithContext(aws.BackgroundContext(), input, fn) 2311} 2312 2313// ListEndpointsPagesWithContext same as ListEndpointsPages except 2314// it takes a Context and allows setting request options on the pages. 2315// 2316// The context must be non-nil and will be used for request cancellation. If 2317// the context is nil a panic will occur. In the future the SDK may create 2318// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2319// for more information on using Contexts. 2320func (c *SageMaker) ListEndpointsPagesWithContext(ctx aws.Context, input *ListEndpointsInput, fn func(*ListEndpointsOutput, bool) bool, opts ...request.Option) error { 2321 p := request.Pagination{ 2322 NewRequest: func() (*request.Request, error) { 2323 var inCpy *ListEndpointsInput 2324 if input != nil { 2325 tmp := *input 2326 inCpy = &tmp 2327 } 2328 req, _ := c.ListEndpointsRequest(inCpy) 2329 req.SetContext(ctx) 2330 req.ApplyOptions(opts...) 2331 return req, nil 2332 }, 2333 } 2334 2335 cont := true 2336 for p.Next() && cont { 2337 cont = fn(p.Page().(*ListEndpointsOutput), !p.HasNextPage()) 2338 } 2339 return p.Err() 2340} 2341 2342const opListHyperParameterTuningJobs = "ListHyperParameterTuningJobs" 2343 2344// ListHyperParameterTuningJobsRequest generates a "aws/request.Request" representing the 2345// client's request for the ListHyperParameterTuningJobs operation. The "output" return 2346// value will be populated with the request's response once the request completes 2347// successfuly. 2348// 2349// Use "Send" method on the returned Request to send the API call to the service. 2350// the "output" return value is not valid until after Send returns without error. 2351// 2352// See ListHyperParameterTuningJobs for more information on using the ListHyperParameterTuningJobs 2353// API call, and error handling. 2354// 2355// This method is useful when you want to inject custom logic or configuration 2356// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2357// 2358// 2359// // Example sending a request using the ListHyperParameterTuningJobsRequest method. 2360// req, resp := client.ListHyperParameterTuningJobsRequest(params) 2361// 2362// err := req.Send() 2363// if err == nil { // resp is now filled 2364// fmt.Println(resp) 2365// } 2366// 2367// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListHyperParameterTuningJobs 2368func (c *SageMaker) ListHyperParameterTuningJobsRequest(input *ListHyperParameterTuningJobsInput) (req *request.Request, output *ListHyperParameterTuningJobsOutput) { 2369 op := &request.Operation{ 2370 Name: opListHyperParameterTuningJobs, 2371 HTTPMethod: "POST", 2372 HTTPPath: "/", 2373 Paginator: &request.Paginator{ 2374 InputTokens: []string{"NextToken"}, 2375 OutputTokens: []string{"NextToken"}, 2376 LimitToken: "MaxResults", 2377 TruncationToken: "", 2378 }, 2379 } 2380 2381 if input == nil { 2382 input = &ListHyperParameterTuningJobsInput{} 2383 } 2384 2385 output = &ListHyperParameterTuningJobsOutput{} 2386 req = c.newRequest(op, input, output) 2387 return 2388} 2389 2390// ListHyperParameterTuningJobs API operation for Amazon SageMaker Service. 2391// 2392// Gets a list of HyperParameterTuningJobSummary objects that describe the hyperparameter 2393// tuning jobs launched in your account. 2394// 2395// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2396// with awserr.Error's Code and Message methods to get detailed information about 2397// the error. 2398// 2399// See the AWS API reference guide for Amazon SageMaker Service's 2400// API operation ListHyperParameterTuningJobs for usage and error information. 2401// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListHyperParameterTuningJobs 2402func (c *SageMaker) ListHyperParameterTuningJobs(input *ListHyperParameterTuningJobsInput) (*ListHyperParameterTuningJobsOutput, error) { 2403 req, out := c.ListHyperParameterTuningJobsRequest(input) 2404 return out, req.Send() 2405} 2406 2407// ListHyperParameterTuningJobsWithContext is the same as ListHyperParameterTuningJobs with the addition of 2408// the ability to pass a context and additional request options. 2409// 2410// See ListHyperParameterTuningJobs for details on how to use this API operation. 2411// 2412// The context must be non-nil and will be used for request cancellation. If 2413// the context is nil a panic will occur. In the future the SDK may create 2414// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2415// for more information on using Contexts. 2416func (c *SageMaker) ListHyperParameterTuningJobsWithContext(ctx aws.Context, input *ListHyperParameterTuningJobsInput, opts ...request.Option) (*ListHyperParameterTuningJobsOutput, error) { 2417 req, out := c.ListHyperParameterTuningJobsRequest(input) 2418 req.SetContext(ctx) 2419 req.ApplyOptions(opts...) 2420 return out, req.Send() 2421} 2422 2423// ListHyperParameterTuningJobsPages iterates over the pages of a ListHyperParameterTuningJobs operation, 2424// calling the "fn" function with the response data for each page. To stop 2425// iterating, return false from the fn function. 2426// 2427// See ListHyperParameterTuningJobs method for more information on how to use this operation. 2428// 2429// Note: This operation can generate multiple requests to a service. 2430// 2431// // Example iterating over at most 3 pages of a ListHyperParameterTuningJobs operation. 2432// pageNum := 0 2433// err := client.ListHyperParameterTuningJobsPages(params, 2434// func(page *ListHyperParameterTuningJobsOutput, lastPage bool) bool { 2435// pageNum++ 2436// fmt.Println(page) 2437// return pageNum <= 3 2438// }) 2439// 2440func (c *SageMaker) ListHyperParameterTuningJobsPages(input *ListHyperParameterTuningJobsInput, fn func(*ListHyperParameterTuningJobsOutput, bool) bool) error { 2441 return c.ListHyperParameterTuningJobsPagesWithContext(aws.BackgroundContext(), input, fn) 2442} 2443 2444// ListHyperParameterTuningJobsPagesWithContext same as ListHyperParameterTuningJobsPages except 2445// it takes a Context and allows setting request options on the pages. 2446// 2447// The context must be non-nil and will be used for request cancellation. If 2448// the context is nil a panic will occur. In the future the SDK may create 2449// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2450// for more information on using Contexts. 2451func (c *SageMaker) ListHyperParameterTuningJobsPagesWithContext(ctx aws.Context, input *ListHyperParameterTuningJobsInput, fn func(*ListHyperParameterTuningJobsOutput, bool) bool, opts ...request.Option) error { 2452 p := request.Pagination{ 2453 NewRequest: func() (*request.Request, error) { 2454 var inCpy *ListHyperParameterTuningJobsInput 2455 if input != nil { 2456 tmp := *input 2457 inCpy = &tmp 2458 } 2459 req, _ := c.ListHyperParameterTuningJobsRequest(inCpy) 2460 req.SetContext(ctx) 2461 req.ApplyOptions(opts...) 2462 return req, nil 2463 }, 2464 } 2465 2466 cont := true 2467 for p.Next() && cont { 2468 cont = fn(p.Page().(*ListHyperParameterTuningJobsOutput), !p.HasNextPage()) 2469 } 2470 return p.Err() 2471} 2472 2473const opListModels = "ListModels" 2474 2475// ListModelsRequest generates a "aws/request.Request" representing the 2476// client's request for the ListModels operation. The "output" return 2477// value will be populated with the request's response once the request completes 2478// successfuly. 2479// 2480// Use "Send" method on the returned Request to send the API call to the service. 2481// the "output" return value is not valid until after Send returns without error. 2482// 2483// See ListModels for more information on using the ListModels 2484// API call, and error handling. 2485// 2486// This method is useful when you want to inject custom logic or configuration 2487// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2488// 2489// 2490// // Example sending a request using the ListModelsRequest method. 2491// req, resp := client.ListModelsRequest(params) 2492// 2493// err := req.Send() 2494// if err == nil { // resp is now filled 2495// fmt.Println(resp) 2496// } 2497// 2498// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModels 2499func (c *SageMaker) ListModelsRequest(input *ListModelsInput) (req *request.Request, output *ListModelsOutput) { 2500 op := &request.Operation{ 2501 Name: opListModels, 2502 HTTPMethod: "POST", 2503 HTTPPath: "/", 2504 Paginator: &request.Paginator{ 2505 InputTokens: []string{"NextToken"}, 2506 OutputTokens: []string{"NextToken"}, 2507 LimitToken: "MaxResults", 2508 TruncationToken: "", 2509 }, 2510 } 2511 2512 if input == nil { 2513 input = &ListModelsInput{} 2514 } 2515 2516 output = &ListModelsOutput{} 2517 req = c.newRequest(op, input, output) 2518 return 2519} 2520 2521// ListModels API operation for Amazon SageMaker Service. 2522// 2523// Lists models created with the CreateModel (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateModel.html) 2524// API. 2525// 2526// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2527// with awserr.Error's Code and Message methods to get detailed information about 2528// the error. 2529// 2530// See the AWS API reference guide for Amazon SageMaker Service's 2531// API operation ListModels for usage and error information. 2532// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModels 2533func (c *SageMaker) ListModels(input *ListModelsInput) (*ListModelsOutput, error) { 2534 req, out := c.ListModelsRequest(input) 2535 return out, req.Send() 2536} 2537 2538// ListModelsWithContext is the same as ListModels with the addition of 2539// the ability to pass a context and additional request options. 2540// 2541// See ListModels for details on how to use this API operation. 2542// 2543// The context must be non-nil and will be used for request cancellation. If 2544// the context is nil a panic will occur. In the future the SDK may create 2545// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2546// for more information on using Contexts. 2547func (c *SageMaker) ListModelsWithContext(ctx aws.Context, input *ListModelsInput, opts ...request.Option) (*ListModelsOutput, error) { 2548 req, out := c.ListModelsRequest(input) 2549 req.SetContext(ctx) 2550 req.ApplyOptions(opts...) 2551 return out, req.Send() 2552} 2553 2554// ListModelsPages iterates over the pages of a ListModels operation, 2555// calling the "fn" function with the response data for each page. To stop 2556// iterating, return false from the fn function. 2557// 2558// See ListModels method for more information on how to use this operation. 2559// 2560// Note: This operation can generate multiple requests to a service. 2561// 2562// // Example iterating over at most 3 pages of a ListModels operation. 2563// pageNum := 0 2564// err := client.ListModelsPages(params, 2565// func(page *ListModelsOutput, lastPage bool) bool { 2566// pageNum++ 2567// fmt.Println(page) 2568// return pageNum <= 3 2569// }) 2570// 2571func (c *SageMaker) ListModelsPages(input *ListModelsInput, fn func(*ListModelsOutput, bool) bool) error { 2572 return c.ListModelsPagesWithContext(aws.BackgroundContext(), input, fn) 2573} 2574 2575// ListModelsPagesWithContext same as ListModelsPages except 2576// it takes a Context and allows setting request options on the pages. 2577// 2578// The context must be non-nil and will be used for request cancellation. If 2579// the context is nil a panic will occur. In the future the SDK may create 2580// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2581// for more information on using Contexts. 2582func (c *SageMaker) ListModelsPagesWithContext(ctx aws.Context, input *ListModelsInput, fn func(*ListModelsOutput, bool) bool, opts ...request.Option) error { 2583 p := request.Pagination{ 2584 NewRequest: func() (*request.Request, error) { 2585 var inCpy *ListModelsInput 2586 if input != nil { 2587 tmp := *input 2588 inCpy = &tmp 2589 } 2590 req, _ := c.ListModelsRequest(inCpy) 2591 req.SetContext(ctx) 2592 req.ApplyOptions(opts...) 2593 return req, nil 2594 }, 2595 } 2596 2597 cont := true 2598 for p.Next() && cont { 2599 cont = fn(p.Page().(*ListModelsOutput), !p.HasNextPage()) 2600 } 2601 return p.Err() 2602} 2603 2604const opListNotebookInstanceLifecycleConfigs = "ListNotebookInstanceLifecycleConfigs" 2605 2606// ListNotebookInstanceLifecycleConfigsRequest generates a "aws/request.Request" representing the 2607// client's request for the ListNotebookInstanceLifecycleConfigs operation. The "output" return 2608// value will be populated with the request's response once the request completes 2609// successfuly. 2610// 2611// Use "Send" method on the returned Request to send the API call to the service. 2612// the "output" return value is not valid until after Send returns without error. 2613// 2614// See ListNotebookInstanceLifecycleConfigs for more information on using the ListNotebookInstanceLifecycleConfigs 2615// API call, and error handling. 2616// 2617// This method is useful when you want to inject custom logic or configuration 2618// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2619// 2620// 2621// // Example sending a request using the ListNotebookInstanceLifecycleConfigsRequest method. 2622// req, resp := client.ListNotebookInstanceLifecycleConfigsRequest(params) 2623// 2624// err := req.Send() 2625// if err == nil { // resp is now filled 2626// fmt.Println(resp) 2627// } 2628// 2629// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstanceLifecycleConfigs 2630func (c *SageMaker) ListNotebookInstanceLifecycleConfigsRequest(input *ListNotebookInstanceLifecycleConfigsInput) (req *request.Request, output *ListNotebookInstanceLifecycleConfigsOutput) { 2631 op := &request.Operation{ 2632 Name: opListNotebookInstanceLifecycleConfigs, 2633 HTTPMethod: "POST", 2634 HTTPPath: "/", 2635 Paginator: &request.Paginator{ 2636 InputTokens: []string{"NextToken"}, 2637 OutputTokens: []string{"NextToken"}, 2638 LimitToken: "MaxResults", 2639 TruncationToken: "", 2640 }, 2641 } 2642 2643 if input == nil { 2644 input = &ListNotebookInstanceLifecycleConfigsInput{} 2645 } 2646 2647 output = &ListNotebookInstanceLifecycleConfigsOutput{} 2648 req = c.newRequest(op, input, output) 2649 return 2650} 2651 2652// ListNotebookInstanceLifecycleConfigs API operation for Amazon SageMaker Service. 2653// 2654// Lists notebook instance lifestyle configurations created with the CreateNotebookInstanceLifecycleConfig 2655// API. 2656// 2657// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2658// with awserr.Error's Code and Message methods to get detailed information about 2659// the error. 2660// 2661// See the AWS API reference guide for Amazon SageMaker Service's 2662// API operation ListNotebookInstanceLifecycleConfigs for usage and error information. 2663// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstanceLifecycleConfigs 2664func (c *SageMaker) ListNotebookInstanceLifecycleConfigs(input *ListNotebookInstanceLifecycleConfigsInput) (*ListNotebookInstanceLifecycleConfigsOutput, error) { 2665 req, out := c.ListNotebookInstanceLifecycleConfigsRequest(input) 2666 return out, req.Send() 2667} 2668 2669// ListNotebookInstanceLifecycleConfigsWithContext is the same as ListNotebookInstanceLifecycleConfigs with the addition of 2670// the ability to pass a context and additional request options. 2671// 2672// See ListNotebookInstanceLifecycleConfigs for details on how to use this API operation. 2673// 2674// The context must be non-nil and will be used for request cancellation. If 2675// the context is nil a panic will occur. In the future the SDK may create 2676// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2677// for more information on using Contexts. 2678func (c *SageMaker) ListNotebookInstanceLifecycleConfigsWithContext(ctx aws.Context, input *ListNotebookInstanceLifecycleConfigsInput, opts ...request.Option) (*ListNotebookInstanceLifecycleConfigsOutput, error) { 2679 req, out := c.ListNotebookInstanceLifecycleConfigsRequest(input) 2680 req.SetContext(ctx) 2681 req.ApplyOptions(opts...) 2682 return out, req.Send() 2683} 2684 2685// ListNotebookInstanceLifecycleConfigsPages iterates over the pages of a ListNotebookInstanceLifecycleConfigs operation, 2686// calling the "fn" function with the response data for each page. To stop 2687// iterating, return false from the fn function. 2688// 2689// See ListNotebookInstanceLifecycleConfigs method for more information on how to use this operation. 2690// 2691// Note: This operation can generate multiple requests to a service. 2692// 2693// // Example iterating over at most 3 pages of a ListNotebookInstanceLifecycleConfigs operation. 2694// pageNum := 0 2695// err := client.ListNotebookInstanceLifecycleConfigsPages(params, 2696// func(page *ListNotebookInstanceLifecycleConfigsOutput, lastPage bool) bool { 2697// pageNum++ 2698// fmt.Println(page) 2699// return pageNum <= 3 2700// }) 2701// 2702func (c *SageMaker) ListNotebookInstanceLifecycleConfigsPages(input *ListNotebookInstanceLifecycleConfigsInput, fn func(*ListNotebookInstanceLifecycleConfigsOutput, bool) bool) error { 2703 return c.ListNotebookInstanceLifecycleConfigsPagesWithContext(aws.BackgroundContext(), input, fn) 2704} 2705 2706// ListNotebookInstanceLifecycleConfigsPagesWithContext same as ListNotebookInstanceLifecycleConfigsPages except 2707// it takes a Context and allows setting request options on the pages. 2708// 2709// The context must be non-nil and will be used for request cancellation. If 2710// the context is nil a panic will occur. In the future the SDK may create 2711// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2712// for more information on using Contexts. 2713func (c *SageMaker) ListNotebookInstanceLifecycleConfigsPagesWithContext(ctx aws.Context, input *ListNotebookInstanceLifecycleConfigsInput, fn func(*ListNotebookInstanceLifecycleConfigsOutput, bool) bool, opts ...request.Option) error { 2714 p := request.Pagination{ 2715 NewRequest: func() (*request.Request, error) { 2716 var inCpy *ListNotebookInstanceLifecycleConfigsInput 2717 if input != nil { 2718 tmp := *input 2719 inCpy = &tmp 2720 } 2721 req, _ := c.ListNotebookInstanceLifecycleConfigsRequest(inCpy) 2722 req.SetContext(ctx) 2723 req.ApplyOptions(opts...) 2724 return req, nil 2725 }, 2726 } 2727 2728 cont := true 2729 for p.Next() && cont { 2730 cont = fn(p.Page().(*ListNotebookInstanceLifecycleConfigsOutput), !p.HasNextPage()) 2731 } 2732 return p.Err() 2733} 2734 2735const opListNotebookInstances = "ListNotebookInstances" 2736 2737// ListNotebookInstancesRequest generates a "aws/request.Request" representing the 2738// client's request for the ListNotebookInstances operation. The "output" return 2739// value will be populated with the request's response once the request completes 2740// successfuly. 2741// 2742// Use "Send" method on the returned Request to send the API call to the service. 2743// the "output" return value is not valid until after Send returns without error. 2744// 2745// See ListNotebookInstances for more information on using the ListNotebookInstances 2746// API call, and error handling. 2747// 2748// This method is useful when you want to inject custom logic or configuration 2749// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2750// 2751// 2752// // Example sending a request using the ListNotebookInstancesRequest method. 2753// req, resp := client.ListNotebookInstancesRequest(params) 2754// 2755// err := req.Send() 2756// if err == nil { // resp is now filled 2757// fmt.Println(resp) 2758// } 2759// 2760// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstances 2761func (c *SageMaker) ListNotebookInstancesRequest(input *ListNotebookInstancesInput) (req *request.Request, output *ListNotebookInstancesOutput) { 2762 op := &request.Operation{ 2763 Name: opListNotebookInstances, 2764 HTTPMethod: "POST", 2765 HTTPPath: "/", 2766 Paginator: &request.Paginator{ 2767 InputTokens: []string{"NextToken"}, 2768 OutputTokens: []string{"NextToken"}, 2769 LimitToken: "MaxResults", 2770 TruncationToken: "", 2771 }, 2772 } 2773 2774 if input == nil { 2775 input = &ListNotebookInstancesInput{} 2776 } 2777 2778 output = &ListNotebookInstancesOutput{} 2779 req = c.newRequest(op, input, output) 2780 return 2781} 2782 2783// ListNotebookInstances API operation for Amazon SageMaker Service. 2784// 2785// Returns a list of the Amazon SageMaker notebook instances in the requester's 2786// account in an AWS Region. 2787// 2788// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2789// with awserr.Error's Code and Message methods to get detailed information about 2790// the error. 2791// 2792// See the AWS API reference guide for Amazon SageMaker Service's 2793// API operation ListNotebookInstances for usage and error information. 2794// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstances 2795func (c *SageMaker) ListNotebookInstances(input *ListNotebookInstancesInput) (*ListNotebookInstancesOutput, error) { 2796 req, out := c.ListNotebookInstancesRequest(input) 2797 return out, req.Send() 2798} 2799 2800// ListNotebookInstancesWithContext is the same as ListNotebookInstances with the addition of 2801// the ability to pass a context and additional request options. 2802// 2803// See ListNotebookInstances for details on how to use this API operation. 2804// 2805// The context must be non-nil and will be used for request cancellation. If 2806// the context is nil a panic will occur. In the future the SDK may create 2807// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2808// for more information on using Contexts. 2809func (c *SageMaker) ListNotebookInstancesWithContext(ctx aws.Context, input *ListNotebookInstancesInput, opts ...request.Option) (*ListNotebookInstancesOutput, error) { 2810 req, out := c.ListNotebookInstancesRequest(input) 2811 req.SetContext(ctx) 2812 req.ApplyOptions(opts...) 2813 return out, req.Send() 2814} 2815 2816// ListNotebookInstancesPages iterates over the pages of a ListNotebookInstances operation, 2817// calling the "fn" function with the response data for each page. To stop 2818// iterating, return false from the fn function. 2819// 2820// See ListNotebookInstances method for more information on how to use this operation. 2821// 2822// Note: This operation can generate multiple requests to a service. 2823// 2824// // Example iterating over at most 3 pages of a ListNotebookInstances operation. 2825// pageNum := 0 2826// err := client.ListNotebookInstancesPages(params, 2827// func(page *ListNotebookInstancesOutput, lastPage bool) bool { 2828// pageNum++ 2829// fmt.Println(page) 2830// return pageNum <= 3 2831// }) 2832// 2833func (c *SageMaker) ListNotebookInstancesPages(input *ListNotebookInstancesInput, fn func(*ListNotebookInstancesOutput, bool) bool) error { 2834 return c.ListNotebookInstancesPagesWithContext(aws.BackgroundContext(), input, fn) 2835} 2836 2837// ListNotebookInstancesPagesWithContext same as ListNotebookInstancesPages except 2838// it takes a Context and allows setting request options on the pages. 2839// 2840// The context must be non-nil and will be used for request cancellation. If 2841// the context is nil a panic will occur. In the future the SDK may create 2842// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2843// for more information on using Contexts. 2844func (c *SageMaker) ListNotebookInstancesPagesWithContext(ctx aws.Context, input *ListNotebookInstancesInput, fn func(*ListNotebookInstancesOutput, bool) bool, opts ...request.Option) error { 2845 p := request.Pagination{ 2846 NewRequest: func() (*request.Request, error) { 2847 var inCpy *ListNotebookInstancesInput 2848 if input != nil { 2849 tmp := *input 2850 inCpy = &tmp 2851 } 2852 req, _ := c.ListNotebookInstancesRequest(inCpy) 2853 req.SetContext(ctx) 2854 req.ApplyOptions(opts...) 2855 return req, nil 2856 }, 2857 } 2858 2859 cont := true 2860 for p.Next() && cont { 2861 cont = fn(p.Page().(*ListNotebookInstancesOutput), !p.HasNextPage()) 2862 } 2863 return p.Err() 2864} 2865 2866const opListTags = "ListTags" 2867 2868// ListTagsRequest generates a "aws/request.Request" representing the 2869// client's request for the ListTags operation. The "output" return 2870// value will be populated with the request's response once the request completes 2871// successfuly. 2872// 2873// Use "Send" method on the returned Request to send the API call to the service. 2874// the "output" return value is not valid until after Send returns without error. 2875// 2876// See ListTags for more information on using the ListTags 2877// API call, and error handling. 2878// 2879// This method is useful when you want to inject custom logic or configuration 2880// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2881// 2882// 2883// // Example sending a request using the ListTagsRequest method. 2884// req, resp := client.ListTagsRequest(params) 2885// 2886// err := req.Send() 2887// if err == nil { // resp is now filled 2888// fmt.Println(resp) 2889// } 2890// 2891// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTags 2892func (c *SageMaker) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) { 2893 op := &request.Operation{ 2894 Name: opListTags, 2895 HTTPMethod: "POST", 2896 HTTPPath: "/", 2897 Paginator: &request.Paginator{ 2898 InputTokens: []string{"NextToken"}, 2899 OutputTokens: []string{"NextToken"}, 2900 LimitToken: "MaxResults", 2901 TruncationToken: "", 2902 }, 2903 } 2904 2905 if input == nil { 2906 input = &ListTagsInput{} 2907 } 2908 2909 output = &ListTagsOutput{} 2910 req = c.newRequest(op, input, output) 2911 return 2912} 2913 2914// ListTags API operation for Amazon SageMaker Service. 2915// 2916// Returns the tags for the specified Amazon SageMaker resource. 2917// 2918// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2919// with awserr.Error's Code and Message methods to get detailed information about 2920// the error. 2921// 2922// See the AWS API reference guide for Amazon SageMaker Service's 2923// API operation ListTags for usage and error information. 2924// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTags 2925func (c *SageMaker) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { 2926 req, out := c.ListTagsRequest(input) 2927 return out, req.Send() 2928} 2929 2930// ListTagsWithContext is the same as ListTags with the addition of 2931// the ability to pass a context and additional request options. 2932// 2933// See ListTags for details on how to use this API operation. 2934// 2935// The context must be non-nil and will be used for request cancellation. If 2936// the context is nil a panic will occur. In the future the SDK may create 2937// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2938// for more information on using Contexts. 2939func (c *SageMaker) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error) { 2940 req, out := c.ListTagsRequest(input) 2941 req.SetContext(ctx) 2942 req.ApplyOptions(opts...) 2943 return out, req.Send() 2944} 2945 2946// ListTagsPages iterates over the pages of a ListTags operation, 2947// calling the "fn" function with the response data for each page. To stop 2948// iterating, return false from the fn function. 2949// 2950// See ListTags method for more information on how to use this operation. 2951// 2952// Note: This operation can generate multiple requests to a service. 2953// 2954// // Example iterating over at most 3 pages of a ListTags operation. 2955// pageNum := 0 2956// err := client.ListTagsPages(params, 2957// func(page *ListTagsOutput, lastPage bool) bool { 2958// pageNum++ 2959// fmt.Println(page) 2960// return pageNum <= 3 2961// }) 2962// 2963func (c *SageMaker) ListTagsPages(input *ListTagsInput, fn func(*ListTagsOutput, bool) bool) error { 2964 return c.ListTagsPagesWithContext(aws.BackgroundContext(), input, fn) 2965} 2966 2967// ListTagsPagesWithContext same as ListTagsPages except 2968// it takes a Context and allows setting request options on the pages. 2969// 2970// The context must be non-nil and will be used for request cancellation. If 2971// the context is nil a panic will occur. In the future the SDK may create 2972// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2973// for more information on using Contexts. 2974func (c *SageMaker) ListTagsPagesWithContext(ctx aws.Context, input *ListTagsInput, fn func(*ListTagsOutput, bool) bool, opts ...request.Option) error { 2975 p := request.Pagination{ 2976 NewRequest: func() (*request.Request, error) { 2977 var inCpy *ListTagsInput 2978 if input != nil { 2979 tmp := *input 2980 inCpy = &tmp 2981 } 2982 req, _ := c.ListTagsRequest(inCpy) 2983 req.SetContext(ctx) 2984 req.ApplyOptions(opts...) 2985 return req, nil 2986 }, 2987 } 2988 2989 cont := true 2990 for p.Next() && cont { 2991 cont = fn(p.Page().(*ListTagsOutput), !p.HasNextPage()) 2992 } 2993 return p.Err() 2994} 2995 2996const opListTrainingJobs = "ListTrainingJobs" 2997 2998// ListTrainingJobsRequest generates a "aws/request.Request" representing the 2999// client's request for the ListTrainingJobs operation. The "output" return 3000// value will be populated with the request's response once the request completes 3001// successfuly. 3002// 3003// Use "Send" method on the returned Request to send the API call to the service. 3004// the "output" return value is not valid until after Send returns without error. 3005// 3006// See ListTrainingJobs for more information on using the ListTrainingJobs 3007// API call, and error handling. 3008// 3009// This method is useful when you want to inject custom logic or configuration 3010// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3011// 3012// 3013// // Example sending a request using the ListTrainingJobsRequest method. 3014// req, resp := client.ListTrainingJobsRequest(params) 3015// 3016// err := req.Send() 3017// if err == nil { // resp is now filled 3018// fmt.Println(resp) 3019// } 3020// 3021// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobs 3022func (c *SageMaker) ListTrainingJobsRequest(input *ListTrainingJobsInput) (req *request.Request, output *ListTrainingJobsOutput) { 3023 op := &request.Operation{ 3024 Name: opListTrainingJobs, 3025 HTTPMethod: "POST", 3026 HTTPPath: "/", 3027 Paginator: &request.Paginator{ 3028 InputTokens: []string{"NextToken"}, 3029 OutputTokens: []string{"NextToken"}, 3030 LimitToken: "MaxResults", 3031 TruncationToken: "", 3032 }, 3033 } 3034 3035 if input == nil { 3036 input = &ListTrainingJobsInput{} 3037 } 3038 3039 output = &ListTrainingJobsOutput{} 3040 req = c.newRequest(op, input, output) 3041 return 3042} 3043 3044// ListTrainingJobs API operation for Amazon SageMaker Service. 3045// 3046// Lists training jobs. 3047// 3048// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3049// with awserr.Error's Code and Message methods to get detailed information about 3050// the error. 3051// 3052// See the AWS API reference guide for Amazon SageMaker Service's 3053// API operation ListTrainingJobs for usage and error information. 3054// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobs 3055func (c *SageMaker) ListTrainingJobs(input *ListTrainingJobsInput) (*ListTrainingJobsOutput, error) { 3056 req, out := c.ListTrainingJobsRequest(input) 3057 return out, req.Send() 3058} 3059 3060// ListTrainingJobsWithContext is the same as ListTrainingJobs with the addition of 3061// the ability to pass a context and additional request options. 3062// 3063// See ListTrainingJobs for details on how to use this API operation. 3064// 3065// The context must be non-nil and will be used for request cancellation. If 3066// the context is nil a panic will occur. In the future the SDK may create 3067// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3068// for more information on using Contexts. 3069func (c *SageMaker) ListTrainingJobsWithContext(ctx aws.Context, input *ListTrainingJobsInput, opts ...request.Option) (*ListTrainingJobsOutput, error) { 3070 req, out := c.ListTrainingJobsRequest(input) 3071 req.SetContext(ctx) 3072 req.ApplyOptions(opts...) 3073 return out, req.Send() 3074} 3075 3076// ListTrainingJobsPages iterates over the pages of a ListTrainingJobs operation, 3077// calling the "fn" function with the response data for each page. To stop 3078// iterating, return false from the fn function. 3079// 3080// See ListTrainingJobs method for more information on how to use this operation. 3081// 3082// Note: This operation can generate multiple requests to a service. 3083// 3084// // Example iterating over at most 3 pages of a ListTrainingJobs operation. 3085// pageNum := 0 3086// err := client.ListTrainingJobsPages(params, 3087// func(page *ListTrainingJobsOutput, lastPage bool) bool { 3088// pageNum++ 3089// fmt.Println(page) 3090// return pageNum <= 3 3091// }) 3092// 3093func (c *SageMaker) ListTrainingJobsPages(input *ListTrainingJobsInput, fn func(*ListTrainingJobsOutput, bool) bool) error { 3094 return c.ListTrainingJobsPagesWithContext(aws.BackgroundContext(), input, fn) 3095} 3096 3097// ListTrainingJobsPagesWithContext same as ListTrainingJobsPages except 3098// it takes a Context and allows setting request options on the pages. 3099// 3100// The context must be non-nil and will be used for request cancellation. If 3101// the context is nil a panic will occur. In the future the SDK may create 3102// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3103// for more information on using Contexts. 3104func (c *SageMaker) ListTrainingJobsPagesWithContext(ctx aws.Context, input *ListTrainingJobsInput, fn func(*ListTrainingJobsOutput, bool) bool, opts ...request.Option) error { 3105 p := request.Pagination{ 3106 NewRequest: func() (*request.Request, error) { 3107 var inCpy *ListTrainingJobsInput 3108 if input != nil { 3109 tmp := *input 3110 inCpy = &tmp 3111 } 3112 req, _ := c.ListTrainingJobsRequest(inCpy) 3113 req.SetContext(ctx) 3114 req.ApplyOptions(opts...) 3115 return req, nil 3116 }, 3117 } 3118 3119 cont := true 3120 for p.Next() && cont { 3121 cont = fn(p.Page().(*ListTrainingJobsOutput), !p.HasNextPage()) 3122 } 3123 return p.Err() 3124} 3125 3126const opListTrainingJobsForHyperParameterTuningJob = "ListTrainingJobsForHyperParameterTuningJob" 3127 3128// ListTrainingJobsForHyperParameterTuningJobRequest generates a "aws/request.Request" representing the 3129// client's request for the ListTrainingJobsForHyperParameterTuningJob operation. The "output" return 3130// value will be populated with the request's response once the request completes 3131// successfuly. 3132// 3133// Use "Send" method on the returned Request to send the API call to the service. 3134// the "output" return value is not valid until after Send returns without error. 3135// 3136// See ListTrainingJobsForHyperParameterTuningJob for more information on using the ListTrainingJobsForHyperParameterTuningJob 3137// API call, and error handling. 3138// 3139// This method is useful when you want to inject custom logic or configuration 3140// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3141// 3142// 3143// // Example sending a request using the ListTrainingJobsForHyperParameterTuningJobRequest method. 3144// req, resp := client.ListTrainingJobsForHyperParameterTuningJobRequest(params) 3145// 3146// err := req.Send() 3147// if err == nil { // resp is now filled 3148// fmt.Println(resp) 3149// } 3150// 3151// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobsForHyperParameterTuningJob 3152func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobRequest(input *ListTrainingJobsForHyperParameterTuningJobInput) (req *request.Request, output *ListTrainingJobsForHyperParameterTuningJobOutput) { 3153 op := &request.Operation{ 3154 Name: opListTrainingJobsForHyperParameterTuningJob, 3155 HTTPMethod: "POST", 3156 HTTPPath: "/", 3157 Paginator: &request.Paginator{ 3158 InputTokens: []string{"NextToken"}, 3159 OutputTokens: []string{"NextToken"}, 3160 LimitToken: "MaxResults", 3161 TruncationToken: "", 3162 }, 3163 } 3164 3165 if input == nil { 3166 input = &ListTrainingJobsForHyperParameterTuningJobInput{} 3167 } 3168 3169 output = &ListTrainingJobsForHyperParameterTuningJobOutput{} 3170 req = c.newRequest(op, input, output) 3171 return 3172} 3173 3174// ListTrainingJobsForHyperParameterTuningJob API operation for Amazon SageMaker Service. 3175// 3176// Gets a list of TrainingJobSummary objects that describe the training jobs 3177// that a hyperparameter tuning job launched. 3178// 3179// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3180// with awserr.Error's Code and Message methods to get detailed information about 3181// the error. 3182// 3183// See the AWS API reference guide for Amazon SageMaker Service's 3184// API operation ListTrainingJobsForHyperParameterTuningJob for usage and error information. 3185// 3186// Returned Error Codes: 3187// * ErrCodeResourceNotFound "ResourceNotFound" 3188// Resource being access is not found. 3189// 3190// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobsForHyperParameterTuningJob 3191func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJob(input *ListTrainingJobsForHyperParameterTuningJobInput) (*ListTrainingJobsForHyperParameterTuningJobOutput, error) { 3192 req, out := c.ListTrainingJobsForHyperParameterTuningJobRequest(input) 3193 return out, req.Send() 3194} 3195 3196// ListTrainingJobsForHyperParameterTuningJobWithContext is the same as ListTrainingJobsForHyperParameterTuningJob with the addition of 3197// the ability to pass a context and additional request options. 3198// 3199// See ListTrainingJobsForHyperParameterTuningJob for details on how to use this API operation. 3200// 3201// The context must be non-nil and will be used for request cancellation. If 3202// the context is nil a panic will occur. In the future the SDK may create 3203// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3204// for more information on using Contexts. 3205func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobWithContext(ctx aws.Context, input *ListTrainingJobsForHyperParameterTuningJobInput, opts ...request.Option) (*ListTrainingJobsForHyperParameterTuningJobOutput, error) { 3206 req, out := c.ListTrainingJobsForHyperParameterTuningJobRequest(input) 3207 req.SetContext(ctx) 3208 req.ApplyOptions(opts...) 3209 return out, req.Send() 3210} 3211 3212// ListTrainingJobsForHyperParameterTuningJobPages iterates over the pages of a ListTrainingJobsForHyperParameterTuningJob operation, 3213// calling the "fn" function with the response data for each page. To stop 3214// iterating, return false from the fn function. 3215// 3216// See ListTrainingJobsForHyperParameterTuningJob method for more information on how to use this operation. 3217// 3218// Note: This operation can generate multiple requests to a service. 3219// 3220// // Example iterating over at most 3 pages of a ListTrainingJobsForHyperParameterTuningJob operation. 3221// pageNum := 0 3222// err := client.ListTrainingJobsForHyperParameterTuningJobPages(params, 3223// func(page *ListTrainingJobsForHyperParameterTuningJobOutput, lastPage bool) bool { 3224// pageNum++ 3225// fmt.Println(page) 3226// return pageNum <= 3 3227// }) 3228// 3229func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobPages(input *ListTrainingJobsForHyperParameterTuningJobInput, fn func(*ListTrainingJobsForHyperParameterTuningJobOutput, bool) bool) error { 3230 return c.ListTrainingJobsForHyperParameterTuningJobPagesWithContext(aws.BackgroundContext(), input, fn) 3231} 3232 3233// ListTrainingJobsForHyperParameterTuningJobPagesWithContext same as ListTrainingJobsForHyperParameterTuningJobPages except 3234// it takes a Context and allows setting request options on the pages. 3235// 3236// The context must be non-nil and will be used for request cancellation. If 3237// the context is nil a panic will occur. In the future the SDK may create 3238// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3239// for more information on using Contexts. 3240func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobPagesWithContext(ctx aws.Context, input *ListTrainingJobsForHyperParameterTuningJobInput, fn func(*ListTrainingJobsForHyperParameterTuningJobOutput, bool) bool, opts ...request.Option) error { 3241 p := request.Pagination{ 3242 NewRequest: func() (*request.Request, error) { 3243 var inCpy *ListTrainingJobsForHyperParameterTuningJobInput 3244 if input != nil { 3245 tmp := *input 3246 inCpy = &tmp 3247 } 3248 req, _ := c.ListTrainingJobsForHyperParameterTuningJobRequest(inCpy) 3249 req.SetContext(ctx) 3250 req.ApplyOptions(opts...) 3251 return req, nil 3252 }, 3253 } 3254 3255 cont := true 3256 for p.Next() && cont { 3257 cont = fn(p.Page().(*ListTrainingJobsForHyperParameterTuningJobOutput), !p.HasNextPage()) 3258 } 3259 return p.Err() 3260} 3261 3262const opListTransformJobs = "ListTransformJobs" 3263 3264// ListTransformJobsRequest generates a "aws/request.Request" representing the 3265// client's request for the ListTransformJobs operation. The "output" return 3266// value will be populated with the request's response once the request completes 3267// successfuly. 3268// 3269// Use "Send" method on the returned Request to send the API call to the service. 3270// the "output" return value is not valid until after Send returns without error. 3271// 3272// See ListTransformJobs for more information on using the ListTransformJobs 3273// API call, and error handling. 3274// 3275// This method is useful when you want to inject custom logic or configuration 3276// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3277// 3278// 3279// // Example sending a request using the ListTransformJobsRequest method. 3280// req, resp := client.ListTransformJobsRequest(params) 3281// 3282// err := req.Send() 3283// if err == nil { // resp is now filled 3284// fmt.Println(resp) 3285// } 3286// 3287// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTransformJobs 3288func (c *SageMaker) ListTransformJobsRequest(input *ListTransformJobsInput) (req *request.Request, output *ListTransformJobsOutput) { 3289 op := &request.Operation{ 3290 Name: opListTransformJobs, 3291 HTTPMethod: "POST", 3292 HTTPPath: "/", 3293 Paginator: &request.Paginator{ 3294 InputTokens: []string{"NextToken"}, 3295 OutputTokens: []string{"NextToken"}, 3296 LimitToken: "MaxResults", 3297 TruncationToken: "", 3298 }, 3299 } 3300 3301 if input == nil { 3302 input = &ListTransformJobsInput{} 3303 } 3304 3305 output = &ListTransformJobsOutput{} 3306 req = c.newRequest(op, input, output) 3307 return 3308} 3309 3310// ListTransformJobs API operation for Amazon SageMaker Service. 3311// 3312// Lists transform jobs. 3313// 3314// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3315// with awserr.Error's Code and Message methods to get detailed information about 3316// the error. 3317// 3318// See the AWS API reference guide for Amazon SageMaker Service's 3319// API operation ListTransformJobs for usage and error information. 3320// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTransformJobs 3321func (c *SageMaker) ListTransformJobs(input *ListTransformJobsInput) (*ListTransformJobsOutput, error) { 3322 req, out := c.ListTransformJobsRequest(input) 3323 return out, req.Send() 3324} 3325 3326// ListTransformJobsWithContext is the same as ListTransformJobs with the addition of 3327// the ability to pass a context and additional request options. 3328// 3329// See ListTransformJobs for details on how to use this API operation. 3330// 3331// The context must be non-nil and will be used for request cancellation. If 3332// the context is nil a panic will occur. In the future the SDK may create 3333// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3334// for more information on using Contexts. 3335func (c *SageMaker) ListTransformJobsWithContext(ctx aws.Context, input *ListTransformJobsInput, opts ...request.Option) (*ListTransformJobsOutput, error) { 3336 req, out := c.ListTransformJobsRequest(input) 3337 req.SetContext(ctx) 3338 req.ApplyOptions(opts...) 3339 return out, req.Send() 3340} 3341 3342// ListTransformJobsPages iterates over the pages of a ListTransformJobs operation, 3343// calling the "fn" function with the response data for each page. To stop 3344// iterating, return false from the fn function. 3345// 3346// See ListTransformJobs method for more information on how to use this operation. 3347// 3348// Note: This operation can generate multiple requests to a service. 3349// 3350// // Example iterating over at most 3 pages of a ListTransformJobs operation. 3351// pageNum := 0 3352// err := client.ListTransformJobsPages(params, 3353// func(page *ListTransformJobsOutput, lastPage bool) bool { 3354// pageNum++ 3355// fmt.Println(page) 3356// return pageNum <= 3 3357// }) 3358// 3359func (c *SageMaker) ListTransformJobsPages(input *ListTransformJobsInput, fn func(*ListTransformJobsOutput, bool) bool) error { 3360 return c.ListTransformJobsPagesWithContext(aws.BackgroundContext(), input, fn) 3361} 3362 3363// ListTransformJobsPagesWithContext same as ListTransformJobsPages except 3364// it takes a Context and allows setting request options on the pages. 3365// 3366// The context must be non-nil and will be used for request cancellation. If 3367// the context is nil a panic will occur. In the future the SDK may create 3368// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3369// for more information on using Contexts. 3370func (c *SageMaker) ListTransformJobsPagesWithContext(ctx aws.Context, input *ListTransformJobsInput, fn func(*ListTransformJobsOutput, bool) bool, opts ...request.Option) error { 3371 p := request.Pagination{ 3372 NewRequest: func() (*request.Request, error) { 3373 var inCpy *ListTransformJobsInput 3374 if input != nil { 3375 tmp := *input 3376 inCpy = &tmp 3377 } 3378 req, _ := c.ListTransformJobsRequest(inCpy) 3379 req.SetContext(ctx) 3380 req.ApplyOptions(opts...) 3381 return req, nil 3382 }, 3383 } 3384 3385 cont := true 3386 for p.Next() && cont { 3387 cont = fn(p.Page().(*ListTransformJobsOutput), !p.HasNextPage()) 3388 } 3389 return p.Err() 3390} 3391 3392const opStartNotebookInstance = "StartNotebookInstance" 3393 3394// StartNotebookInstanceRequest generates a "aws/request.Request" representing the 3395// client's request for the StartNotebookInstance operation. The "output" return 3396// value will be populated with the request's response once the request completes 3397// successfuly. 3398// 3399// Use "Send" method on the returned Request to send the API call to the service. 3400// the "output" return value is not valid until after Send returns without error. 3401// 3402// See StartNotebookInstance for more information on using the StartNotebookInstance 3403// API call, and error handling. 3404// 3405// This method is useful when you want to inject custom logic or configuration 3406// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3407// 3408// 3409// // Example sending a request using the StartNotebookInstanceRequest method. 3410// req, resp := client.StartNotebookInstanceRequest(params) 3411// 3412// err := req.Send() 3413// if err == nil { // resp is now filled 3414// fmt.Println(resp) 3415// } 3416// 3417// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StartNotebookInstance 3418func (c *SageMaker) StartNotebookInstanceRequest(input *StartNotebookInstanceInput) (req *request.Request, output *StartNotebookInstanceOutput) { 3419 op := &request.Operation{ 3420 Name: opStartNotebookInstance, 3421 HTTPMethod: "POST", 3422 HTTPPath: "/", 3423 } 3424 3425 if input == nil { 3426 input = &StartNotebookInstanceInput{} 3427 } 3428 3429 output = &StartNotebookInstanceOutput{} 3430 req = c.newRequest(op, input, output) 3431 req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) 3432 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) 3433 return 3434} 3435 3436// StartNotebookInstance API operation for Amazon SageMaker Service. 3437// 3438// Launches an ML compute instance with the latest version of the libraries 3439// and attaches your ML storage volume. After configuring the notebook instance, 3440// Amazon SageMaker sets the notebook instance status to InService. A notebook 3441// instance's status must be InService before you can connect to your Jupyter 3442// notebook. 3443// 3444// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3445// with awserr.Error's Code and Message methods to get detailed information about 3446// the error. 3447// 3448// See the AWS API reference guide for Amazon SageMaker Service's 3449// API operation StartNotebookInstance for usage and error information. 3450// 3451// Returned Error Codes: 3452// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" 3453// You have exceeded an Amazon SageMaker resource limit. For example, you might 3454// have too many training jobs created. 3455// 3456// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StartNotebookInstance 3457func (c *SageMaker) StartNotebookInstance(input *StartNotebookInstanceInput) (*StartNotebookInstanceOutput, error) { 3458 req, out := c.StartNotebookInstanceRequest(input) 3459 return out, req.Send() 3460} 3461 3462// StartNotebookInstanceWithContext is the same as StartNotebookInstance with the addition of 3463// the ability to pass a context and additional request options. 3464// 3465// See StartNotebookInstance for details on how to use this API operation. 3466// 3467// The context must be non-nil and will be used for request cancellation. If 3468// the context is nil a panic will occur. In the future the SDK may create 3469// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3470// for more information on using Contexts. 3471func (c *SageMaker) StartNotebookInstanceWithContext(ctx aws.Context, input *StartNotebookInstanceInput, opts ...request.Option) (*StartNotebookInstanceOutput, error) { 3472 req, out := c.StartNotebookInstanceRequest(input) 3473 req.SetContext(ctx) 3474 req.ApplyOptions(opts...) 3475 return out, req.Send() 3476} 3477 3478const opStopHyperParameterTuningJob = "StopHyperParameterTuningJob" 3479 3480// StopHyperParameterTuningJobRequest generates a "aws/request.Request" representing the 3481// client's request for the StopHyperParameterTuningJob operation. The "output" return 3482// value will be populated with the request's response once the request completes 3483// successfuly. 3484// 3485// Use "Send" method on the returned Request to send the API call to the service. 3486// the "output" return value is not valid until after Send returns without error. 3487// 3488// See StopHyperParameterTuningJob for more information on using the StopHyperParameterTuningJob 3489// API call, and error handling. 3490// 3491// This method is useful when you want to inject custom logic or configuration 3492// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3493// 3494// 3495// // Example sending a request using the StopHyperParameterTuningJobRequest method. 3496// req, resp := client.StopHyperParameterTuningJobRequest(params) 3497// 3498// err := req.Send() 3499// if err == nil { // resp is now filled 3500// fmt.Println(resp) 3501// } 3502// 3503// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopHyperParameterTuningJob 3504func (c *SageMaker) StopHyperParameterTuningJobRequest(input *StopHyperParameterTuningJobInput) (req *request.Request, output *StopHyperParameterTuningJobOutput) { 3505 op := &request.Operation{ 3506 Name: opStopHyperParameterTuningJob, 3507 HTTPMethod: "POST", 3508 HTTPPath: "/", 3509 } 3510 3511 if input == nil { 3512 input = &StopHyperParameterTuningJobInput{} 3513 } 3514 3515 output = &StopHyperParameterTuningJobOutput{} 3516 req = c.newRequest(op, input, output) 3517 req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) 3518 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) 3519 return 3520} 3521 3522// StopHyperParameterTuningJob API operation for Amazon SageMaker Service. 3523// 3524// Stops a running hyperparameter tuning job and all running training jobs that 3525// the tuning job launched. 3526// 3527// All model artifacts output from the training jobs are stored in Amazon Simple 3528// Storage Service (Amazon S3). All data that the training jobs write to Amazon 3529// CloudWatch Logs are still available in CloudWatch. After the tuning job moves 3530// to the Stopped state, it releases all reserved resources for the tuning job. 3531// 3532// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3533// with awserr.Error's Code and Message methods to get detailed information about 3534// the error. 3535// 3536// See the AWS API reference guide for Amazon SageMaker Service's 3537// API operation StopHyperParameterTuningJob for usage and error information. 3538// 3539// Returned Error Codes: 3540// * ErrCodeResourceNotFound "ResourceNotFound" 3541// Resource being access is not found. 3542// 3543// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopHyperParameterTuningJob 3544func (c *SageMaker) StopHyperParameterTuningJob(input *StopHyperParameterTuningJobInput) (*StopHyperParameterTuningJobOutput, error) { 3545 req, out := c.StopHyperParameterTuningJobRequest(input) 3546 return out, req.Send() 3547} 3548 3549// StopHyperParameterTuningJobWithContext is the same as StopHyperParameterTuningJob with the addition of 3550// the ability to pass a context and additional request options. 3551// 3552// See StopHyperParameterTuningJob for details on how to use this API operation. 3553// 3554// The context must be non-nil and will be used for request cancellation. If 3555// the context is nil a panic will occur. In the future the SDK may create 3556// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3557// for more information on using Contexts. 3558func (c *SageMaker) StopHyperParameterTuningJobWithContext(ctx aws.Context, input *StopHyperParameterTuningJobInput, opts ...request.Option) (*StopHyperParameterTuningJobOutput, error) { 3559 req, out := c.StopHyperParameterTuningJobRequest(input) 3560 req.SetContext(ctx) 3561 req.ApplyOptions(opts...) 3562 return out, req.Send() 3563} 3564 3565const opStopNotebookInstance = "StopNotebookInstance" 3566 3567// StopNotebookInstanceRequest generates a "aws/request.Request" representing the 3568// client's request for the StopNotebookInstance operation. The "output" return 3569// value will be populated with the request's response once the request completes 3570// successfuly. 3571// 3572// Use "Send" method on the returned Request to send the API call to the service. 3573// the "output" return value is not valid until after Send returns without error. 3574// 3575// See StopNotebookInstance for more information on using the StopNotebookInstance 3576// API call, and error handling. 3577// 3578// This method is useful when you want to inject custom logic or configuration 3579// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3580// 3581// 3582// // Example sending a request using the StopNotebookInstanceRequest method. 3583// req, resp := client.StopNotebookInstanceRequest(params) 3584// 3585// err := req.Send() 3586// if err == nil { // resp is now filled 3587// fmt.Println(resp) 3588// } 3589// 3590// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopNotebookInstance 3591func (c *SageMaker) StopNotebookInstanceRequest(input *StopNotebookInstanceInput) (req *request.Request, output *StopNotebookInstanceOutput) { 3592 op := &request.Operation{ 3593 Name: opStopNotebookInstance, 3594 HTTPMethod: "POST", 3595 HTTPPath: "/", 3596 } 3597 3598 if input == nil { 3599 input = &StopNotebookInstanceInput{} 3600 } 3601 3602 output = &StopNotebookInstanceOutput{} 3603 req = c.newRequest(op, input, output) 3604 req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) 3605 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) 3606 return 3607} 3608 3609// StopNotebookInstance API operation for Amazon SageMaker Service. 3610// 3611// Terminates the ML compute instance. Before terminating the instance, Amazon 3612// SageMaker disconnects the ML storage volume from it. Amazon SageMaker preserves 3613// the ML storage volume. 3614// 3615// To access data on the ML storage volume for a notebook instance that has 3616// been terminated, call the StartNotebookInstance API. StartNotebookInstance 3617// launches another ML compute instance, configures it, and attaches the preserved 3618// ML storage volume so you can continue your work. 3619// 3620// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3621// with awserr.Error's Code and Message methods to get detailed information about 3622// the error. 3623// 3624// See the AWS API reference guide for Amazon SageMaker Service's 3625// API operation StopNotebookInstance for usage and error information. 3626// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopNotebookInstance 3627func (c *SageMaker) StopNotebookInstance(input *StopNotebookInstanceInput) (*StopNotebookInstanceOutput, error) { 3628 req, out := c.StopNotebookInstanceRequest(input) 3629 return out, req.Send() 3630} 3631 3632// StopNotebookInstanceWithContext is the same as StopNotebookInstance with the addition of 3633// the ability to pass a context and additional request options. 3634// 3635// See StopNotebookInstance for details on how to use this API operation. 3636// 3637// The context must be non-nil and will be used for request cancellation. If 3638// the context is nil a panic will occur. In the future the SDK may create 3639// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3640// for more information on using Contexts. 3641func (c *SageMaker) StopNotebookInstanceWithContext(ctx aws.Context, input *StopNotebookInstanceInput, opts ...request.Option) (*StopNotebookInstanceOutput, error) { 3642 req, out := c.StopNotebookInstanceRequest(input) 3643 req.SetContext(ctx) 3644 req.ApplyOptions(opts...) 3645 return out, req.Send() 3646} 3647 3648const opStopTrainingJob = "StopTrainingJob" 3649 3650// StopTrainingJobRequest generates a "aws/request.Request" representing the 3651// client's request for the StopTrainingJob operation. The "output" return 3652// value will be populated with the request's response once the request completes 3653// successfuly. 3654// 3655// Use "Send" method on the returned Request to send the API call to the service. 3656// the "output" return value is not valid until after Send returns without error. 3657// 3658// See StopTrainingJob for more information on using the StopTrainingJob 3659// API call, and error handling. 3660// 3661// This method is useful when you want to inject custom logic or configuration 3662// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3663// 3664// 3665// // Example sending a request using the StopTrainingJobRequest method. 3666// req, resp := client.StopTrainingJobRequest(params) 3667// 3668// err := req.Send() 3669// if err == nil { // resp is now filled 3670// fmt.Println(resp) 3671// } 3672// 3673// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTrainingJob 3674func (c *SageMaker) StopTrainingJobRequest(input *StopTrainingJobInput) (req *request.Request, output *StopTrainingJobOutput) { 3675 op := &request.Operation{ 3676 Name: opStopTrainingJob, 3677 HTTPMethod: "POST", 3678 HTTPPath: "/", 3679 } 3680 3681 if input == nil { 3682 input = &StopTrainingJobInput{} 3683 } 3684 3685 output = &StopTrainingJobOutput{} 3686 req = c.newRequest(op, input, output) 3687 req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) 3688 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) 3689 return 3690} 3691 3692// StopTrainingJob API operation for Amazon SageMaker Service. 3693// 3694// Stops a training job. To stop a job, Amazon SageMaker sends the algorithm 3695// the SIGTERM signal, which delays job termination for 120 seconds. Algorithms 3696// might use this 120-second window to save the model artifacts, so the results 3697// of the training is not lost. 3698// 3699// Training algorithms provided by Amazon SageMaker save the intermediate results 3700// of a model training job. This intermediate data is a valid model artifact. 3701// You can use the model artifacts that are saved when Amazon SageMaker stops 3702// a training job to create a model. 3703// 3704// When it receives a StopTrainingJob request, Amazon SageMaker changes the 3705// status of the job to Stopping. After Amazon SageMaker stops the job, it sets 3706// the status to Stopped. 3707// 3708// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3709// with awserr.Error's Code and Message methods to get detailed information about 3710// the error. 3711// 3712// See the AWS API reference guide for Amazon SageMaker Service's 3713// API operation StopTrainingJob for usage and error information. 3714// 3715// Returned Error Codes: 3716// * ErrCodeResourceNotFound "ResourceNotFound" 3717// Resource being access is not found. 3718// 3719// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTrainingJob 3720func (c *SageMaker) StopTrainingJob(input *StopTrainingJobInput) (*StopTrainingJobOutput, error) { 3721 req, out := c.StopTrainingJobRequest(input) 3722 return out, req.Send() 3723} 3724 3725// StopTrainingJobWithContext is the same as StopTrainingJob with the addition of 3726// the ability to pass a context and additional request options. 3727// 3728// See StopTrainingJob for details on how to use this API operation. 3729// 3730// The context must be non-nil and will be used for request cancellation. If 3731// the context is nil a panic will occur. In the future the SDK may create 3732// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3733// for more information on using Contexts. 3734func (c *SageMaker) StopTrainingJobWithContext(ctx aws.Context, input *StopTrainingJobInput, opts ...request.Option) (*StopTrainingJobOutput, error) { 3735 req, out := c.StopTrainingJobRequest(input) 3736 req.SetContext(ctx) 3737 req.ApplyOptions(opts...) 3738 return out, req.Send() 3739} 3740 3741const opStopTransformJob = "StopTransformJob" 3742 3743// StopTransformJobRequest generates a "aws/request.Request" representing the 3744// client's request for the StopTransformJob operation. The "output" return 3745// value will be populated with the request's response once the request completes 3746// successfuly. 3747// 3748// Use "Send" method on the returned Request to send the API call to the service. 3749// the "output" return value is not valid until after Send returns without error. 3750// 3751// See StopTransformJob for more information on using the StopTransformJob 3752// API call, and error handling. 3753// 3754// This method is useful when you want to inject custom logic or configuration 3755// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3756// 3757// 3758// // Example sending a request using the StopTransformJobRequest method. 3759// req, resp := client.StopTransformJobRequest(params) 3760// 3761// err := req.Send() 3762// if err == nil { // resp is now filled 3763// fmt.Println(resp) 3764// } 3765// 3766// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTransformJob 3767func (c *SageMaker) StopTransformJobRequest(input *StopTransformJobInput) (req *request.Request, output *StopTransformJobOutput) { 3768 op := &request.Operation{ 3769 Name: opStopTransformJob, 3770 HTTPMethod: "POST", 3771 HTTPPath: "/", 3772 } 3773 3774 if input == nil { 3775 input = &StopTransformJobInput{} 3776 } 3777 3778 output = &StopTransformJobOutput{} 3779 req = c.newRequest(op, input, output) 3780 req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) 3781 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) 3782 return 3783} 3784 3785// StopTransformJob API operation for Amazon SageMaker Service. 3786// 3787// Stops a transform job. 3788// 3789// When Amazon SageMaker receives a StopTransformJob request, the status of 3790// the job changes to Stopping. After Amazon SageMaker stops the job, the status 3791// is set to Stopped. When you stop a transform job before it is completed, 3792// Amazon SageMaker doesn't store the job's output in Amazon S3. 3793// 3794// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3795// with awserr.Error's Code and Message methods to get detailed information about 3796// the error. 3797// 3798// See the AWS API reference guide for Amazon SageMaker Service's 3799// API operation StopTransformJob for usage and error information. 3800// 3801// Returned Error Codes: 3802// * ErrCodeResourceNotFound "ResourceNotFound" 3803// Resource being access is not found. 3804// 3805// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTransformJob 3806func (c *SageMaker) StopTransformJob(input *StopTransformJobInput) (*StopTransformJobOutput, error) { 3807 req, out := c.StopTransformJobRequest(input) 3808 return out, req.Send() 3809} 3810 3811// StopTransformJobWithContext is the same as StopTransformJob with the addition of 3812// the ability to pass a context and additional request options. 3813// 3814// See StopTransformJob for details on how to use this API operation. 3815// 3816// The context must be non-nil and will be used for request cancellation. If 3817// the context is nil a panic will occur. In the future the SDK may create 3818// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3819// for more information on using Contexts. 3820func (c *SageMaker) StopTransformJobWithContext(ctx aws.Context, input *StopTransformJobInput, opts ...request.Option) (*StopTransformJobOutput, error) { 3821 req, out := c.StopTransformJobRequest(input) 3822 req.SetContext(ctx) 3823 req.ApplyOptions(opts...) 3824 return out, req.Send() 3825} 3826 3827const opUpdateEndpoint = "UpdateEndpoint" 3828 3829// UpdateEndpointRequest generates a "aws/request.Request" representing the 3830// client's request for the UpdateEndpoint operation. The "output" return 3831// value will be populated with the request's response once the request completes 3832// successfuly. 3833// 3834// Use "Send" method on the returned Request to send the API call to the service. 3835// the "output" return value is not valid until after Send returns without error. 3836// 3837// See UpdateEndpoint for more information on using the UpdateEndpoint 3838// API call, and error handling. 3839// 3840// This method is useful when you want to inject custom logic or configuration 3841// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3842// 3843// 3844// // Example sending a request using the UpdateEndpointRequest method. 3845// req, resp := client.UpdateEndpointRequest(params) 3846// 3847// err := req.Send() 3848// if err == nil { // resp is now filled 3849// fmt.Println(resp) 3850// } 3851// 3852// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpoint 3853func (c *SageMaker) UpdateEndpointRequest(input *UpdateEndpointInput) (req *request.Request, output *UpdateEndpointOutput) { 3854 op := &request.Operation{ 3855 Name: opUpdateEndpoint, 3856 HTTPMethod: "POST", 3857 HTTPPath: "/", 3858 } 3859 3860 if input == nil { 3861 input = &UpdateEndpointInput{} 3862 } 3863 3864 output = &UpdateEndpointOutput{} 3865 req = c.newRequest(op, input, output) 3866 return 3867} 3868 3869// UpdateEndpoint API operation for Amazon SageMaker Service. 3870// 3871// Deploys the new EndpointConfig specified in the request, switches to using 3872// newly created endpoint, and then deletes resources provisioned for the endpoint 3873// using the previous EndpointConfig (there is no availability loss). 3874// 3875// When Amazon SageMaker receives the request, it sets the endpoint status to 3876// Updating. After updating the endpoint, it sets the status to InService. To 3877// check the status of an endpoint, use the DescribeEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html) 3878// API. 3879// 3880// You cannot update an endpoint with the current EndpointConfig. To update 3881// an endpoint, you must create a new EndpointConfig. 3882// 3883// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3884// with awserr.Error's Code and Message methods to get detailed information about 3885// the error. 3886// 3887// See the AWS API reference guide for Amazon SageMaker Service's 3888// API operation UpdateEndpoint for usage and error information. 3889// 3890// Returned Error Codes: 3891// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" 3892// You have exceeded an Amazon SageMaker resource limit. For example, you might 3893// have too many training jobs created. 3894// 3895// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpoint 3896func (c *SageMaker) UpdateEndpoint(input *UpdateEndpointInput) (*UpdateEndpointOutput, error) { 3897 req, out := c.UpdateEndpointRequest(input) 3898 return out, req.Send() 3899} 3900 3901// UpdateEndpointWithContext is the same as UpdateEndpoint with the addition of 3902// the ability to pass a context and additional request options. 3903// 3904// See UpdateEndpoint for details on how to use this API operation. 3905// 3906// The context must be non-nil and will be used for request cancellation. If 3907// the context is nil a panic will occur. In the future the SDK may create 3908// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3909// for more information on using Contexts. 3910func (c *SageMaker) UpdateEndpointWithContext(ctx aws.Context, input *UpdateEndpointInput, opts ...request.Option) (*UpdateEndpointOutput, error) { 3911 req, out := c.UpdateEndpointRequest(input) 3912 req.SetContext(ctx) 3913 req.ApplyOptions(opts...) 3914 return out, req.Send() 3915} 3916 3917const opUpdateEndpointWeightsAndCapacities = "UpdateEndpointWeightsAndCapacities" 3918 3919// UpdateEndpointWeightsAndCapacitiesRequest generates a "aws/request.Request" representing the 3920// client's request for the UpdateEndpointWeightsAndCapacities operation. The "output" return 3921// value will be populated with the request's response once the request completes 3922// successfuly. 3923// 3924// Use "Send" method on the returned Request to send the API call to the service. 3925// the "output" return value is not valid until after Send returns without error. 3926// 3927// See UpdateEndpointWeightsAndCapacities for more information on using the UpdateEndpointWeightsAndCapacities 3928// API call, and error handling. 3929// 3930// This method is useful when you want to inject custom logic or configuration 3931// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3932// 3933// 3934// // Example sending a request using the UpdateEndpointWeightsAndCapacitiesRequest method. 3935// req, resp := client.UpdateEndpointWeightsAndCapacitiesRequest(params) 3936// 3937// err := req.Send() 3938// if err == nil { // resp is now filled 3939// fmt.Println(resp) 3940// } 3941// 3942// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpointWeightsAndCapacities 3943func (c *SageMaker) UpdateEndpointWeightsAndCapacitiesRequest(input *UpdateEndpointWeightsAndCapacitiesInput) (req *request.Request, output *UpdateEndpointWeightsAndCapacitiesOutput) { 3944 op := &request.Operation{ 3945 Name: opUpdateEndpointWeightsAndCapacities, 3946 HTTPMethod: "POST", 3947 HTTPPath: "/", 3948 } 3949 3950 if input == nil { 3951 input = &UpdateEndpointWeightsAndCapacitiesInput{} 3952 } 3953 3954 output = &UpdateEndpointWeightsAndCapacitiesOutput{} 3955 req = c.newRequest(op, input, output) 3956 return 3957} 3958 3959// UpdateEndpointWeightsAndCapacities API operation for Amazon SageMaker Service. 3960// 3961// Updates variant weight of one or more variants associated with an existing 3962// endpoint, or capacity of one variant associated with an existing endpoint. 3963// When it receives the request, Amazon SageMaker sets the endpoint status to 3964// Updating. After updating the endpoint, it sets the status to InService. To 3965// check the status of an endpoint, use the DescribeEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html) 3966// API. 3967// 3968// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3969// with awserr.Error's Code and Message methods to get detailed information about 3970// the error. 3971// 3972// See the AWS API reference guide for Amazon SageMaker Service's 3973// API operation UpdateEndpointWeightsAndCapacities for usage and error information. 3974// 3975// Returned Error Codes: 3976// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" 3977// You have exceeded an Amazon SageMaker resource limit. For example, you might 3978// have too many training jobs created. 3979// 3980// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpointWeightsAndCapacities 3981func (c *SageMaker) UpdateEndpointWeightsAndCapacities(input *UpdateEndpointWeightsAndCapacitiesInput) (*UpdateEndpointWeightsAndCapacitiesOutput, error) { 3982 req, out := c.UpdateEndpointWeightsAndCapacitiesRequest(input) 3983 return out, req.Send() 3984} 3985 3986// UpdateEndpointWeightsAndCapacitiesWithContext is the same as UpdateEndpointWeightsAndCapacities with the addition of 3987// the ability to pass a context and additional request options. 3988// 3989// See UpdateEndpointWeightsAndCapacities for details on how to use this API operation. 3990// 3991// The context must be non-nil and will be used for request cancellation. If 3992// the context is nil a panic will occur. In the future the SDK may create 3993// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3994// for more information on using Contexts. 3995func (c *SageMaker) UpdateEndpointWeightsAndCapacitiesWithContext(ctx aws.Context, input *UpdateEndpointWeightsAndCapacitiesInput, opts ...request.Option) (*UpdateEndpointWeightsAndCapacitiesOutput, error) { 3996 req, out := c.UpdateEndpointWeightsAndCapacitiesRequest(input) 3997 req.SetContext(ctx) 3998 req.ApplyOptions(opts...) 3999 return out, req.Send() 4000} 4001 4002const opUpdateNotebookInstance = "UpdateNotebookInstance" 4003 4004// UpdateNotebookInstanceRequest generates a "aws/request.Request" representing the 4005// client's request for the UpdateNotebookInstance operation. The "output" return 4006// value will be populated with the request's response once the request completes 4007// successfuly. 4008// 4009// Use "Send" method on the returned Request to send the API call to the service. 4010// the "output" return value is not valid until after Send returns without error. 4011// 4012// See UpdateNotebookInstance for more information on using the UpdateNotebookInstance 4013// API call, and error handling. 4014// 4015// This method is useful when you want to inject custom logic or configuration 4016// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4017// 4018// 4019// // Example sending a request using the UpdateNotebookInstanceRequest method. 4020// req, resp := client.UpdateNotebookInstanceRequest(params) 4021// 4022// err := req.Send() 4023// if err == nil { // resp is now filled 4024// fmt.Println(resp) 4025// } 4026// 4027// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstance 4028func (c *SageMaker) UpdateNotebookInstanceRequest(input *UpdateNotebookInstanceInput) (req *request.Request, output *UpdateNotebookInstanceOutput) { 4029 op := &request.Operation{ 4030 Name: opUpdateNotebookInstance, 4031 HTTPMethod: "POST", 4032 HTTPPath: "/", 4033 } 4034 4035 if input == nil { 4036 input = &UpdateNotebookInstanceInput{} 4037 } 4038 4039 output = &UpdateNotebookInstanceOutput{} 4040 req = c.newRequest(op, input, output) 4041 return 4042} 4043 4044// UpdateNotebookInstance API operation for Amazon SageMaker Service. 4045// 4046// Updates a notebook instance. NotebookInstance updates include upgrading or 4047// downgrading the ML compute instance used for your notebook instance to accommodate 4048// changes in your workload requirements. You can also update the VPC security 4049// groups. 4050// 4051// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4052// with awserr.Error's Code and Message methods to get detailed information about 4053// the error. 4054// 4055// See the AWS API reference guide for Amazon SageMaker Service's 4056// API operation UpdateNotebookInstance for usage and error information. 4057// 4058// Returned Error Codes: 4059// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" 4060// You have exceeded an Amazon SageMaker resource limit. For example, you might 4061// have too many training jobs created. 4062// 4063// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstance 4064func (c *SageMaker) UpdateNotebookInstance(input *UpdateNotebookInstanceInput) (*UpdateNotebookInstanceOutput, error) { 4065 req, out := c.UpdateNotebookInstanceRequest(input) 4066 return out, req.Send() 4067} 4068 4069// UpdateNotebookInstanceWithContext is the same as UpdateNotebookInstance with the addition of 4070// the ability to pass a context and additional request options. 4071// 4072// See UpdateNotebookInstance for details on how to use this API operation. 4073// 4074// The context must be non-nil and will be used for request cancellation. If 4075// the context is nil a panic will occur. In the future the SDK may create 4076// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4077// for more information on using Contexts. 4078func (c *SageMaker) UpdateNotebookInstanceWithContext(ctx aws.Context, input *UpdateNotebookInstanceInput, opts ...request.Option) (*UpdateNotebookInstanceOutput, error) { 4079 req, out := c.UpdateNotebookInstanceRequest(input) 4080 req.SetContext(ctx) 4081 req.ApplyOptions(opts...) 4082 return out, req.Send() 4083} 4084 4085const opUpdateNotebookInstanceLifecycleConfig = "UpdateNotebookInstanceLifecycleConfig" 4086 4087// UpdateNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the 4088// client's request for the UpdateNotebookInstanceLifecycleConfig operation. The "output" return 4089// value will be populated with the request's response once the request completes 4090// successfuly. 4091// 4092// Use "Send" method on the returned Request to send the API call to the service. 4093// the "output" return value is not valid until after Send returns without error. 4094// 4095// See UpdateNotebookInstanceLifecycleConfig for more information on using the UpdateNotebookInstanceLifecycleConfig 4096// API call, and error handling. 4097// 4098// This method is useful when you want to inject custom logic or configuration 4099// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4100// 4101// 4102// // Example sending a request using the UpdateNotebookInstanceLifecycleConfigRequest method. 4103// req, resp := client.UpdateNotebookInstanceLifecycleConfigRequest(params) 4104// 4105// err := req.Send() 4106// if err == nil { // resp is now filled 4107// fmt.Println(resp) 4108// } 4109// 4110// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceLifecycleConfig 4111func (c *SageMaker) UpdateNotebookInstanceLifecycleConfigRequest(input *UpdateNotebookInstanceLifecycleConfigInput) (req *request.Request, output *UpdateNotebookInstanceLifecycleConfigOutput) { 4112 op := &request.Operation{ 4113 Name: opUpdateNotebookInstanceLifecycleConfig, 4114 HTTPMethod: "POST", 4115 HTTPPath: "/", 4116 } 4117 4118 if input == nil { 4119 input = &UpdateNotebookInstanceLifecycleConfigInput{} 4120 } 4121 4122 output = &UpdateNotebookInstanceLifecycleConfigOutput{} 4123 req = c.newRequest(op, input, output) 4124 return 4125} 4126 4127// UpdateNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service. 4128// 4129// Updates a notebook instance lifecycle configuration created with the CreateNotebookInstanceLifecycleConfig 4130// API. 4131// 4132// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4133// with awserr.Error's Code and Message methods to get detailed information about 4134// the error. 4135// 4136// See the AWS API reference guide for Amazon SageMaker Service's 4137// API operation UpdateNotebookInstanceLifecycleConfig for usage and error information. 4138// 4139// Returned Error Codes: 4140// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" 4141// You have exceeded an Amazon SageMaker resource limit. For example, you might 4142// have too many training jobs created. 4143// 4144// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceLifecycleConfig 4145func (c *SageMaker) UpdateNotebookInstanceLifecycleConfig(input *UpdateNotebookInstanceLifecycleConfigInput) (*UpdateNotebookInstanceLifecycleConfigOutput, error) { 4146 req, out := c.UpdateNotebookInstanceLifecycleConfigRequest(input) 4147 return out, req.Send() 4148} 4149 4150// UpdateNotebookInstanceLifecycleConfigWithContext is the same as UpdateNotebookInstanceLifecycleConfig with the addition of 4151// the ability to pass a context and additional request options. 4152// 4153// See UpdateNotebookInstanceLifecycleConfig for details on how to use this API operation. 4154// 4155// The context must be non-nil and will be used for request cancellation. If 4156// the context is nil a panic will occur. In the future the SDK may create 4157// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4158// for more information on using Contexts. 4159func (c *SageMaker) UpdateNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *UpdateNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*UpdateNotebookInstanceLifecycleConfigOutput, error) { 4160 req, out := c.UpdateNotebookInstanceLifecycleConfigRequest(input) 4161 req.SetContext(ctx) 4162 req.ApplyOptions(opts...) 4163 return out, req.Send() 4164} 4165 4166type AddTagsInput struct { 4167 _ struct{} `type:"structure"` 4168 4169 // The Amazon Resource Name (ARN) of the resource that you want to tag. 4170 // 4171 // ResourceArn is a required field 4172 ResourceArn *string `type:"string" required:"true"` 4173 4174 // An array of Tag objects. Each tag is a key-value pair. Only the key parameter 4175 // is required. If you don't specify a value, Amazon SageMaker sets the value 4176 // to an empty string. 4177 // 4178 // Tags is a required field 4179 Tags []*Tag `type:"list" required:"true"` 4180} 4181 4182// String returns the string representation 4183func (s AddTagsInput) String() string { 4184 return awsutil.Prettify(s) 4185} 4186 4187// GoString returns the string representation 4188func (s AddTagsInput) GoString() string { 4189 return s.String() 4190} 4191 4192// Validate inspects the fields of the type to determine if they are valid. 4193func (s *AddTagsInput) Validate() error { 4194 invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"} 4195 if s.ResourceArn == nil { 4196 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 4197 } 4198 if s.Tags == nil { 4199 invalidParams.Add(request.NewErrParamRequired("Tags")) 4200 } 4201 if s.Tags != nil { 4202 for i, v := range s.Tags { 4203 if v == nil { 4204 continue 4205 } 4206 if err := v.Validate(); err != nil { 4207 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 4208 } 4209 } 4210 } 4211 4212 if invalidParams.Len() > 0 { 4213 return invalidParams 4214 } 4215 return nil 4216} 4217 4218// SetResourceArn sets the ResourceArn field's value. 4219func (s *AddTagsInput) SetResourceArn(v string) *AddTagsInput { 4220 s.ResourceArn = &v 4221 return s 4222} 4223 4224// SetTags sets the Tags field's value. 4225func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput { 4226 s.Tags = v 4227 return s 4228} 4229 4230type AddTagsOutput struct { 4231 _ struct{} `type:"structure"` 4232 4233 // A list of tags associated with the Amazon SageMaker resource. 4234 Tags []*Tag `type:"list"` 4235} 4236 4237// String returns the string representation 4238func (s AddTagsOutput) String() string { 4239 return awsutil.Prettify(s) 4240} 4241 4242// GoString returns the string representation 4243func (s AddTagsOutput) GoString() string { 4244 return s.String() 4245} 4246 4247// SetTags sets the Tags field's value. 4248func (s *AddTagsOutput) SetTags(v []*Tag) *AddTagsOutput { 4249 s.Tags = v 4250 return s 4251} 4252 4253// Specifies the training algorithm to use in a CreateTrainingJob (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateTrainingJob.html) 4254// request. 4255// 4256// For more information about algorithms provided by Amazon SageMaker, see Algorithms 4257// (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). For information 4258// about using your own algorithms, see your-algorithms. 4259type AlgorithmSpecification struct { 4260 _ struct{} `type:"structure"` 4261 4262 // The registry path of the Docker image that contains the training algorithm. 4263 // For information about docker registry paths for built-in algorithms, see 4264 // sagemaker-algo-docker-registry-paths. 4265 // 4266 // TrainingImage is a required field 4267 TrainingImage *string `type:"string" required:"true"` 4268 4269 // The input mode that the algorithm supports. For the input modes that Amazon 4270 // SageMaker algorithms support, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). 4271 // If an algorithm supports the File input mode, Amazon SageMaker downloads 4272 // the training data from S3 to the provisioned ML storage Volume, and mounts 4273 // the directory to docker volume for training container. If an algorithm supports 4274 // the Pipe input mode, Amazon SageMaker streams data directly from S3 to the 4275 // container. 4276 // 4277 // In File mode, make sure you provision ML storage volume with sufficient capacity 4278 // to accommodate the data download from S3. In addition to the training data, 4279 // the ML storage volume also stores the output model. The algorithm container 4280 // use ML storage volume to also store intermediate information, if any. 4281 // 4282 // For distributed algorithms using File mode, training data is distributed 4283 // uniformly, and your training duration is predictable if the input data objects 4284 // size is approximately same. Amazon SageMaker does not split the files any 4285 // further for model training. If the object sizes are skewed, training won't 4286 // be optimal as the data distribution is also skewed where one host in a training 4287 // cluster is overloaded, thus becoming bottleneck in training. 4288 // 4289 // TrainingInputMode is a required field 4290 TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"` 4291} 4292 4293// String returns the string representation 4294func (s AlgorithmSpecification) String() string { 4295 return awsutil.Prettify(s) 4296} 4297 4298// GoString returns the string representation 4299func (s AlgorithmSpecification) GoString() string { 4300 return s.String() 4301} 4302 4303// Validate inspects the fields of the type to determine if they are valid. 4304func (s *AlgorithmSpecification) Validate() error { 4305 invalidParams := request.ErrInvalidParams{Context: "AlgorithmSpecification"} 4306 if s.TrainingImage == nil { 4307 invalidParams.Add(request.NewErrParamRequired("TrainingImage")) 4308 } 4309 if s.TrainingInputMode == nil { 4310 invalidParams.Add(request.NewErrParamRequired("TrainingInputMode")) 4311 } 4312 4313 if invalidParams.Len() > 0 { 4314 return invalidParams 4315 } 4316 return nil 4317} 4318 4319// SetTrainingImage sets the TrainingImage field's value. 4320func (s *AlgorithmSpecification) SetTrainingImage(v string) *AlgorithmSpecification { 4321 s.TrainingImage = &v 4322 return s 4323} 4324 4325// SetTrainingInputMode sets the TrainingInputMode field's value. 4326func (s *AlgorithmSpecification) SetTrainingInputMode(v string) *AlgorithmSpecification { 4327 s.TrainingInputMode = &v 4328 return s 4329} 4330 4331// A list of categorical hyperparameters to tune. 4332type CategoricalParameterRange struct { 4333 _ struct{} `type:"structure"` 4334 4335 // The name of the categorical hyperparameter to tune. 4336 // 4337 // Name is a required field 4338 Name *string `type:"string" required:"true"` 4339 4340 // A list of the categories for the hyperparameter. 4341 // 4342 // Values is a required field 4343 Values []*string `min:"1" type:"list" required:"true"` 4344} 4345 4346// String returns the string representation 4347func (s CategoricalParameterRange) String() string { 4348 return awsutil.Prettify(s) 4349} 4350 4351// GoString returns the string representation 4352func (s CategoricalParameterRange) GoString() string { 4353 return s.String() 4354} 4355 4356// Validate inspects the fields of the type to determine if they are valid. 4357func (s *CategoricalParameterRange) Validate() error { 4358 invalidParams := request.ErrInvalidParams{Context: "CategoricalParameterRange"} 4359 if s.Name == nil { 4360 invalidParams.Add(request.NewErrParamRequired("Name")) 4361 } 4362 if s.Values == nil { 4363 invalidParams.Add(request.NewErrParamRequired("Values")) 4364 } 4365 if s.Values != nil && len(s.Values) < 1 { 4366 invalidParams.Add(request.NewErrParamMinLen("Values", 1)) 4367 } 4368 4369 if invalidParams.Len() > 0 { 4370 return invalidParams 4371 } 4372 return nil 4373} 4374 4375// SetName sets the Name field's value. 4376func (s *CategoricalParameterRange) SetName(v string) *CategoricalParameterRange { 4377 s.Name = &v 4378 return s 4379} 4380 4381// SetValues sets the Values field's value. 4382func (s *CategoricalParameterRange) SetValues(v []*string) *CategoricalParameterRange { 4383 s.Values = v 4384 return s 4385} 4386 4387// A channel is a named input source that training algorithms can consume. 4388type Channel struct { 4389 _ struct{} `type:"structure"` 4390 4391 // The name of the channel. 4392 // 4393 // ChannelName is a required field 4394 ChannelName *string `min:"1" type:"string" required:"true"` 4395 4396 // If training data is compressed, the compression type. The default value is 4397 // None. CompressionType is used only in Pipe input mode. In File mode, leave 4398 // this field unset or set it to None. 4399 CompressionType *string `type:"string" enum:"CompressionType"` 4400 4401 // The MIME type of the data. 4402 ContentType *string `type:"string"` 4403 4404 // The location of the channel data. 4405 // 4406 // DataSource is a required field 4407 DataSource *DataSource `type:"structure" required:"true"` 4408 4409 // Specify RecordIO as the value when input data is in raw format but the training 4410 // algorithm requires the RecordIO format, in which case, Amazon SageMaker wraps 4411 // each individual S3 object in a RecordIO record. If the input data is already 4412 // in RecordIO format, you don't need to set this attribute. For more information, 4413 // see Create a Dataset Using RecordIO (https://mxnet.incubator.apache.org/how_to/recordio.html?highlight=im2rec) 4414 RecordWrapperType *string `type:"string" enum:"RecordWrapper"` 4415} 4416 4417// String returns the string representation 4418func (s Channel) String() string { 4419 return awsutil.Prettify(s) 4420} 4421 4422// GoString returns the string representation 4423func (s Channel) GoString() string { 4424 return s.String() 4425} 4426 4427// Validate inspects the fields of the type to determine if they are valid. 4428func (s *Channel) Validate() error { 4429 invalidParams := request.ErrInvalidParams{Context: "Channel"} 4430 if s.ChannelName == nil { 4431 invalidParams.Add(request.NewErrParamRequired("ChannelName")) 4432 } 4433 if s.ChannelName != nil && len(*s.ChannelName) < 1 { 4434 invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1)) 4435 } 4436 if s.DataSource == nil { 4437 invalidParams.Add(request.NewErrParamRequired("DataSource")) 4438 } 4439 if s.DataSource != nil { 4440 if err := s.DataSource.Validate(); err != nil { 4441 invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams)) 4442 } 4443 } 4444 4445 if invalidParams.Len() > 0 { 4446 return invalidParams 4447 } 4448 return nil 4449} 4450 4451// SetChannelName sets the ChannelName field's value. 4452func (s *Channel) SetChannelName(v string) *Channel { 4453 s.ChannelName = &v 4454 return s 4455} 4456 4457// SetCompressionType sets the CompressionType field's value. 4458func (s *Channel) SetCompressionType(v string) *Channel { 4459 s.CompressionType = &v 4460 return s 4461} 4462 4463// SetContentType sets the ContentType field's value. 4464func (s *Channel) SetContentType(v string) *Channel { 4465 s.ContentType = &v 4466 return s 4467} 4468 4469// SetDataSource sets the DataSource field's value. 4470func (s *Channel) SetDataSource(v *DataSource) *Channel { 4471 s.DataSource = v 4472 return s 4473} 4474 4475// SetRecordWrapperType sets the RecordWrapperType field's value. 4476func (s *Channel) SetRecordWrapperType(v string) *Channel { 4477 s.RecordWrapperType = &v 4478 return s 4479} 4480 4481// Describes the container, as part of model definition. 4482type ContainerDefinition struct { 4483 _ struct{} `type:"structure"` 4484 4485 // The DNS host name for the container after Amazon SageMaker deploys it. 4486 ContainerHostname *string `type:"string"` 4487 4488 // The environment variables to set in the Docker container. Each key and value 4489 // in the Environment string to string map can have length of up to 1024. We 4490 // support up to 16 entries in the map. 4491 Environment map[string]*string `type:"map"` 4492 4493 // The Amazon EC2 Container Registry (Amazon ECR) path where inference code 4494 // is stored. If you are using your own custom algorithm instead of an algorithm 4495 // provided by Amazon SageMaker, the inference code must meet Amazon SageMaker 4496 // requirements. Amazon SageMaker supports both registry/repository[:tag] and 4497 // registry/repository[@digest] image path formats. For more information, see 4498 // Using Your Own Algorithms with Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html) 4499 // 4500 // Image is a required field 4501 Image *string `type:"string" required:"true"` 4502 4503 // The S3 path where the model artifacts, which result from model training, 4504 // are stored. This path must point to a single gzip compressed tar archive 4505 // (.tar.gz suffix). 4506 // 4507 // If you provide a value for this parameter, Amazon SageMaker uses AWS Security 4508 // Token Service to download model artifacts from the S3 path you provide. AWS 4509 // STS is activated in your IAM user account by default. If you previously deactivated 4510 // AWS STS for a region, you need to reactivate AWS STS for that region. For 4511 // more information, see Activating and Deactivating AWS STS i an AWS Region 4512 // (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) 4513 // in the AWS Identity and Access Management User Guide. 4514 ModelDataUrl *string `type:"string"` 4515} 4516 4517// String returns the string representation 4518func (s ContainerDefinition) String() string { 4519 return awsutil.Prettify(s) 4520} 4521 4522// GoString returns the string representation 4523func (s ContainerDefinition) GoString() string { 4524 return s.String() 4525} 4526 4527// Validate inspects the fields of the type to determine if they are valid. 4528func (s *ContainerDefinition) Validate() error { 4529 invalidParams := request.ErrInvalidParams{Context: "ContainerDefinition"} 4530 if s.Image == nil { 4531 invalidParams.Add(request.NewErrParamRequired("Image")) 4532 } 4533 4534 if invalidParams.Len() > 0 { 4535 return invalidParams 4536 } 4537 return nil 4538} 4539 4540// SetContainerHostname sets the ContainerHostname field's value. 4541func (s *ContainerDefinition) SetContainerHostname(v string) *ContainerDefinition { 4542 s.ContainerHostname = &v 4543 return s 4544} 4545 4546// SetEnvironment sets the Environment field's value. 4547func (s *ContainerDefinition) SetEnvironment(v map[string]*string) *ContainerDefinition { 4548 s.Environment = v 4549 return s 4550} 4551 4552// SetImage sets the Image field's value. 4553func (s *ContainerDefinition) SetImage(v string) *ContainerDefinition { 4554 s.Image = &v 4555 return s 4556} 4557 4558// SetModelDataUrl sets the ModelDataUrl field's value. 4559func (s *ContainerDefinition) SetModelDataUrl(v string) *ContainerDefinition { 4560 s.ModelDataUrl = &v 4561 return s 4562} 4563 4564// A list of continuous hyperparameters to tune. 4565type ContinuousParameterRange struct { 4566 _ struct{} `type:"structure"` 4567 4568 // The maximum value for the hyperparameter. The tuning job uses floating-point 4569 // values between MinValue value and this value for tuning. 4570 // 4571 // MaxValue is a required field 4572 MaxValue *string `type:"string" required:"true"` 4573 4574 // The minimum value for the hyperparameter. The tuning job uses floating-point 4575 // values between this value and MaxValuefor tuning. 4576 // 4577 // MinValue is a required field 4578 MinValue *string `type:"string" required:"true"` 4579 4580 // The name of the continuous hyperparameter to tune. 4581 // 4582 // Name is a required field 4583 Name *string `type:"string" required:"true"` 4584} 4585 4586// String returns the string representation 4587func (s ContinuousParameterRange) String() string { 4588 return awsutil.Prettify(s) 4589} 4590 4591// GoString returns the string representation 4592func (s ContinuousParameterRange) GoString() string { 4593 return s.String() 4594} 4595 4596// Validate inspects the fields of the type to determine if they are valid. 4597func (s *ContinuousParameterRange) Validate() error { 4598 invalidParams := request.ErrInvalidParams{Context: "ContinuousParameterRange"} 4599 if s.MaxValue == nil { 4600 invalidParams.Add(request.NewErrParamRequired("MaxValue")) 4601 } 4602 if s.MinValue == nil { 4603 invalidParams.Add(request.NewErrParamRequired("MinValue")) 4604 } 4605 if s.Name == nil { 4606 invalidParams.Add(request.NewErrParamRequired("Name")) 4607 } 4608 4609 if invalidParams.Len() > 0 { 4610 return invalidParams 4611 } 4612 return nil 4613} 4614 4615// SetMaxValue sets the MaxValue field's value. 4616func (s *ContinuousParameterRange) SetMaxValue(v string) *ContinuousParameterRange { 4617 s.MaxValue = &v 4618 return s 4619} 4620 4621// SetMinValue sets the MinValue field's value. 4622func (s *ContinuousParameterRange) SetMinValue(v string) *ContinuousParameterRange { 4623 s.MinValue = &v 4624 return s 4625} 4626 4627// SetName sets the Name field's value. 4628func (s *ContinuousParameterRange) SetName(v string) *ContinuousParameterRange { 4629 s.Name = &v 4630 return s 4631} 4632 4633type CreateEndpointConfigInput struct { 4634 _ struct{} `type:"structure"` 4635 4636 // The name of the endpoint configuration. You specify this name in a CreateEndpoint 4637 // (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html) 4638 // request. 4639 // 4640 // EndpointConfigName is a required field 4641 EndpointConfigName *string `type:"string" required:"true"` 4642 4643 // The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon 4644 // SageMaker uses to encrypt data on the storage volume attached to the ML compute 4645 // instance that hosts the endpoint. 4646 KmsKeyId *string `type:"string"` 4647 4648 // An array of ProductionVariant objects, one for each model that you want to 4649 // host at this endpoint. 4650 // 4651 // ProductionVariants is a required field 4652 ProductionVariants []*ProductionVariant `min:"1" type:"list" required:"true"` 4653 4654 // An array of key-value pairs. For more information, see Using Cost Allocation 4655 // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) 4656 // in the AWS Billing and Cost Management User Guide. 4657 Tags []*Tag `type:"list"` 4658} 4659 4660// String returns the string representation 4661func (s CreateEndpointConfigInput) String() string { 4662 return awsutil.Prettify(s) 4663} 4664 4665// GoString returns the string representation 4666func (s CreateEndpointConfigInput) GoString() string { 4667 return s.String() 4668} 4669 4670// Validate inspects the fields of the type to determine if they are valid. 4671func (s *CreateEndpointConfigInput) Validate() error { 4672 invalidParams := request.ErrInvalidParams{Context: "CreateEndpointConfigInput"} 4673 if s.EndpointConfigName == nil { 4674 invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) 4675 } 4676 if s.ProductionVariants == nil { 4677 invalidParams.Add(request.NewErrParamRequired("ProductionVariants")) 4678 } 4679 if s.ProductionVariants != nil && len(s.ProductionVariants) < 1 { 4680 invalidParams.Add(request.NewErrParamMinLen("ProductionVariants", 1)) 4681 } 4682 if s.ProductionVariants != nil { 4683 for i, v := range s.ProductionVariants { 4684 if v == nil { 4685 continue 4686 } 4687 if err := v.Validate(); err != nil { 4688 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ProductionVariants", i), err.(request.ErrInvalidParams)) 4689 } 4690 } 4691 } 4692 if s.Tags != nil { 4693 for i, v := range s.Tags { 4694 if v == nil { 4695 continue 4696 } 4697 if err := v.Validate(); err != nil { 4698 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 4699 } 4700 } 4701 } 4702 4703 if invalidParams.Len() > 0 { 4704 return invalidParams 4705 } 4706 return nil 4707} 4708 4709// SetEndpointConfigName sets the EndpointConfigName field's value. 4710func (s *CreateEndpointConfigInput) SetEndpointConfigName(v string) *CreateEndpointConfigInput { 4711 s.EndpointConfigName = &v 4712 return s 4713} 4714 4715// SetKmsKeyId sets the KmsKeyId field's value. 4716func (s *CreateEndpointConfigInput) SetKmsKeyId(v string) *CreateEndpointConfigInput { 4717 s.KmsKeyId = &v 4718 return s 4719} 4720 4721// SetProductionVariants sets the ProductionVariants field's value. 4722func (s *CreateEndpointConfigInput) SetProductionVariants(v []*ProductionVariant) *CreateEndpointConfigInput { 4723 s.ProductionVariants = v 4724 return s 4725} 4726 4727// SetTags sets the Tags field's value. 4728func (s *CreateEndpointConfigInput) SetTags(v []*Tag) *CreateEndpointConfigInput { 4729 s.Tags = v 4730 return s 4731} 4732 4733type CreateEndpointConfigOutput struct { 4734 _ struct{} `type:"structure"` 4735 4736 // The Amazon Resource Name (ARN) of the endpoint configuration. 4737 // 4738 // EndpointConfigArn is a required field 4739 EndpointConfigArn *string `min:"20" type:"string" required:"true"` 4740} 4741 4742// String returns the string representation 4743func (s CreateEndpointConfigOutput) String() string { 4744 return awsutil.Prettify(s) 4745} 4746 4747// GoString returns the string representation 4748func (s CreateEndpointConfigOutput) GoString() string { 4749 return s.String() 4750} 4751 4752// SetEndpointConfigArn sets the EndpointConfigArn field's value. 4753func (s *CreateEndpointConfigOutput) SetEndpointConfigArn(v string) *CreateEndpointConfigOutput { 4754 s.EndpointConfigArn = &v 4755 return s 4756} 4757 4758type CreateEndpointInput struct { 4759 _ struct{} `type:"structure"` 4760 4761 // The name of an endpoint configuration. For more information, see CreateEndpointConfig 4762 // (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html). 4763 // 4764 // EndpointConfigName is a required field 4765 EndpointConfigName *string `type:"string" required:"true"` 4766 4767 // The name of the endpoint. The name must be unique within an AWS Region in 4768 // your AWS account. 4769 // 4770 // EndpointName is a required field 4771 EndpointName *string `type:"string" required:"true"` 4772 4773 // An array of key-value pairs. For more information, see Using Cost Allocation 4774 // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)in 4775 // the AWS Billing and Cost Management User Guide. 4776 Tags []*Tag `type:"list"` 4777} 4778 4779// String returns the string representation 4780func (s CreateEndpointInput) String() string { 4781 return awsutil.Prettify(s) 4782} 4783 4784// GoString returns the string representation 4785func (s CreateEndpointInput) GoString() string { 4786 return s.String() 4787} 4788 4789// Validate inspects the fields of the type to determine if they are valid. 4790func (s *CreateEndpointInput) Validate() error { 4791 invalidParams := request.ErrInvalidParams{Context: "CreateEndpointInput"} 4792 if s.EndpointConfigName == nil { 4793 invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) 4794 } 4795 if s.EndpointName == nil { 4796 invalidParams.Add(request.NewErrParamRequired("EndpointName")) 4797 } 4798 if s.Tags != nil { 4799 for i, v := range s.Tags { 4800 if v == nil { 4801 continue 4802 } 4803 if err := v.Validate(); err != nil { 4804 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 4805 } 4806 } 4807 } 4808 4809 if invalidParams.Len() > 0 { 4810 return invalidParams 4811 } 4812 return nil 4813} 4814 4815// SetEndpointConfigName sets the EndpointConfigName field's value. 4816func (s *CreateEndpointInput) SetEndpointConfigName(v string) *CreateEndpointInput { 4817 s.EndpointConfigName = &v 4818 return s 4819} 4820 4821// SetEndpointName sets the EndpointName field's value. 4822func (s *CreateEndpointInput) SetEndpointName(v string) *CreateEndpointInput { 4823 s.EndpointName = &v 4824 return s 4825} 4826 4827// SetTags sets the Tags field's value. 4828func (s *CreateEndpointInput) SetTags(v []*Tag) *CreateEndpointInput { 4829 s.Tags = v 4830 return s 4831} 4832 4833type CreateEndpointOutput struct { 4834 _ struct{} `type:"structure"` 4835 4836 // The Amazon Resource Name (ARN) of the endpoint. 4837 // 4838 // EndpointArn is a required field 4839 EndpointArn *string `min:"20" type:"string" required:"true"` 4840} 4841 4842// String returns the string representation 4843func (s CreateEndpointOutput) String() string { 4844 return awsutil.Prettify(s) 4845} 4846 4847// GoString returns the string representation 4848func (s CreateEndpointOutput) GoString() string { 4849 return s.String() 4850} 4851 4852// SetEndpointArn sets the EndpointArn field's value. 4853func (s *CreateEndpointOutput) SetEndpointArn(v string) *CreateEndpointOutput { 4854 s.EndpointArn = &v 4855 return s 4856} 4857 4858type CreateHyperParameterTuningJobInput struct { 4859 _ struct{} `type:"structure"` 4860 4861 // The HyperParameterTuningJobConfig object that describes the tuning job, including 4862 // the search strategy, metric used to evaluate training jobs, ranges of parameters 4863 // to search, and resource limits for the tuning job. 4864 // 4865 // HyperParameterTuningJobConfig is a required field 4866 HyperParameterTuningJobConfig *HyperParameterTuningJobConfig `type:"structure" required:"true"` 4867 4868 // The name of the tuning job. This name is the prefix for the names of all 4869 // training jobs that this tuning job launches. The name must be unique within 4870 // the same AWS account and AWS Region. Names are not case sensitive, and must 4871 // be between 1-32 characters. 4872 // 4873 // HyperParameterTuningJobName is a required field 4874 HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` 4875 4876 // An array of key-value pairs. You can use tags to categorize your AWS resources 4877 // in different ways, for example, by purpose, owner, or environment. For more 4878 // information, see Using Cost Allocation Tags (http://docs.aws.amazon.com//awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) 4879 // in the AWS Billing and Cost Management User Guide. 4880 Tags []*Tag `type:"list"` 4881 4882 // The HyperParameterTrainingJobDefinition object that describes the training 4883 // jobs that this tuning job launches, including static hyperparameters, input 4884 // data configuration, output data configuration, resource configuration, and 4885 // stopping condition. 4886 // 4887 // TrainingJobDefinition is a required field 4888 TrainingJobDefinition *HyperParameterTrainingJobDefinition `type:"structure" required:"true"` 4889} 4890 4891// String returns the string representation 4892func (s CreateHyperParameterTuningJobInput) String() string { 4893 return awsutil.Prettify(s) 4894} 4895 4896// GoString returns the string representation 4897func (s CreateHyperParameterTuningJobInput) GoString() string { 4898 return s.String() 4899} 4900 4901// Validate inspects the fields of the type to determine if they are valid. 4902func (s *CreateHyperParameterTuningJobInput) Validate() error { 4903 invalidParams := request.ErrInvalidParams{Context: "CreateHyperParameterTuningJobInput"} 4904 if s.HyperParameterTuningJobConfig == nil { 4905 invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobConfig")) 4906 } 4907 if s.HyperParameterTuningJobName == nil { 4908 invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) 4909 } 4910 if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { 4911 invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) 4912 } 4913 if s.TrainingJobDefinition == nil { 4914 invalidParams.Add(request.NewErrParamRequired("TrainingJobDefinition")) 4915 } 4916 if s.HyperParameterTuningJobConfig != nil { 4917 if err := s.HyperParameterTuningJobConfig.Validate(); err != nil { 4918 invalidParams.AddNested("HyperParameterTuningJobConfig", err.(request.ErrInvalidParams)) 4919 } 4920 } 4921 if s.Tags != nil { 4922 for i, v := range s.Tags { 4923 if v == nil { 4924 continue 4925 } 4926 if err := v.Validate(); err != nil { 4927 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 4928 } 4929 } 4930 } 4931 if s.TrainingJobDefinition != nil { 4932 if err := s.TrainingJobDefinition.Validate(); err != nil { 4933 invalidParams.AddNested("TrainingJobDefinition", err.(request.ErrInvalidParams)) 4934 } 4935 } 4936 4937 if invalidParams.Len() > 0 { 4938 return invalidParams 4939 } 4940 return nil 4941} 4942 4943// SetHyperParameterTuningJobConfig sets the HyperParameterTuningJobConfig field's value. 4944func (s *CreateHyperParameterTuningJobInput) SetHyperParameterTuningJobConfig(v *HyperParameterTuningJobConfig) *CreateHyperParameterTuningJobInput { 4945 s.HyperParameterTuningJobConfig = v 4946 return s 4947} 4948 4949// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. 4950func (s *CreateHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *CreateHyperParameterTuningJobInput { 4951 s.HyperParameterTuningJobName = &v 4952 return s 4953} 4954 4955// SetTags sets the Tags field's value. 4956func (s *CreateHyperParameterTuningJobInput) SetTags(v []*Tag) *CreateHyperParameterTuningJobInput { 4957 s.Tags = v 4958 return s 4959} 4960 4961// SetTrainingJobDefinition sets the TrainingJobDefinition field's value. 4962func (s *CreateHyperParameterTuningJobInput) SetTrainingJobDefinition(v *HyperParameterTrainingJobDefinition) *CreateHyperParameterTuningJobInput { 4963 s.TrainingJobDefinition = v 4964 return s 4965} 4966 4967type CreateHyperParameterTuningJobOutput struct { 4968 _ struct{} `type:"structure"` 4969 4970 // The Amazon Resource Name (ARN) of the tuning job. 4971 // 4972 // HyperParameterTuningJobArn is a required field 4973 HyperParameterTuningJobArn *string `type:"string" required:"true"` 4974} 4975 4976// String returns the string representation 4977func (s CreateHyperParameterTuningJobOutput) String() string { 4978 return awsutil.Prettify(s) 4979} 4980 4981// GoString returns the string representation 4982func (s CreateHyperParameterTuningJobOutput) GoString() string { 4983 return s.String() 4984} 4985 4986// SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value. 4987func (s *CreateHyperParameterTuningJobOutput) SetHyperParameterTuningJobArn(v string) *CreateHyperParameterTuningJobOutput { 4988 s.HyperParameterTuningJobArn = &v 4989 return s 4990} 4991 4992type CreateModelInput struct { 4993 _ struct{} `type:"structure"` 4994 4995 // The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker can 4996 // assume to access model artifacts and docker image for deployment on ML compute 4997 // instances. Deploying on ML compute instances is part of model hosting. For 4998 // more information, see Amazon SageMaker Roles (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html). 4999 // 5000 // To be able to pass this role to Amazon SageMaker, the caller of this API 5001 // must have the iam:PassRole permission. 5002 // 5003 // ExecutionRoleArn is a required field 5004 ExecutionRoleArn *string `min:"20" type:"string" required:"true"` 5005 5006 // The name of the new model. 5007 // 5008 // ModelName is a required field 5009 ModelName *string `type:"string" required:"true"` 5010 5011 // The location of the primary docker image containing inference code, associated 5012 // artifacts, and custom environment map that the inference code uses when the 5013 // model is deployed into production. 5014 // 5015 // PrimaryContainer is a required field 5016 PrimaryContainer *ContainerDefinition `type:"structure" required:"true"` 5017 5018 // An array of key-value pairs. For more information, see Using Cost Allocation 5019 // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) 5020 // in the AWS Billing and Cost Management User Guide. 5021 Tags []*Tag `type:"list"` 5022 5023 // A VpcConfig object that specifies the VPC that you want your model to connect 5024 // to. Control access to and from your model container by configuring the VPC. 5025 // For more information, see host-vpc. 5026 VpcConfig *VpcConfig `type:"structure"` 5027} 5028 5029// String returns the string representation 5030func (s CreateModelInput) String() string { 5031 return awsutil.Prettify(s) 5032} 5033 5034// GoString returns the string representation 5035func (s CreateModelInput) GoString() string { 5036 return s.String() 5037} 5038 5039// Validate inspects the fields of the type to determine if they are valid. 5040func (s *CreateModelInput) Validate() error { 5041 invalidParams := request.ErrInvalidParams{Context: "CreateModelInput"} 5042 if s.ExecutionRoleArn == nil { 5043 invalidParams.Add(request.NewErrParamRequired("ExecutionRoleArn")) 5044 } 5045 if s.ExecutionRoleArn != nil && len(*s.ExecutionRoleArn) < 20 { 5046 invalidParams.Add(request.NewErrParamMinLen("ExecutionRoleArn", 20)) 5047 } 5048 if s.ModelName == nil { 5049 invalidParams.Add(request.NewErrParamRequired("ModelName")) 5050 } 5051 if s.PrimaryContainer == nil { 5052 invalidParams.Add(request.NewErrParamRequired("PrimaryContainer")) 5053 } 5054 if s.PrimaryContainer != nil { 5055 if err := s.PrimaryContainer.Validate(); err != nil { 5056 invalidParams.AddNested("PrimaryContainer", err.(request.ErrInvalidParams)) 5057 } 5058 } 5059 if s.Tags != nil { 5060 for i, v := range s.Tags { 5061 if v == nil { 5062 continue 5063 } 5064 if err := v.Validate(); err != nil { 5065 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 5066 } 5067 } 5068 } 5069 if s.VpcConfig != nil { 5070 if err := s.VpcConfig.Validate(); err != nil { 5071 invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) 5072 } 5073 } 5074 5075 if invalidParams.Len() > 0 { 5076 return invalidParams 5077 } 5078 return nil 5079} 5080 5081// SetExecutionRoleArn sets the ExecutionRoleArn field's value. 5082func (s *CreateModelInput) SetExecutionRoleArn(v string) *CreateModelInput { 5083 s.ExecutionRoleArn = &v 5084 return s 5085} 5086 5087// SetModelName sets the ModelName field's value. 5088func (s *CreateModelInput) SetModelName(v string) *CreateModelInput { 5089 s.ModelName = &v 5090 return s 5091} 5092 5093// SetPrimaryContainer sets the PrimaryContainer field's value. 5094func (s *CreateModelInput) SetPrimaryContainer(v *ContainerDefinition) *CreateModelInput { 5095 s.PrimaryContainer = v 5096 return s 5097} 5098 5099// SetTags sets the Tags field's value. 5100func (s *CreateModelInput) SetTags(v []*Tag) *CreateModelInput { 5101 s.Tags = v 5102 return s 5103} 5104 5105// SetVpcConfig sets the VpcConfig field's value. 5106func (s *CreateModelInput) SetVpcConfig(v *VpcConfig) *CreateModelInput { 5107 s.VpcConfig = v 5108 return s 5109} 5110 5111type CreateModelOutput struct { 5112 _ struct{} `type:"structure"` 5113 5114 // The ARN of the model created in Amazon SageMaker. 5115 // 5116 // ModelArn is a required field 5117 ModelArn *string `min:"20" type:"string" required:"true"` 5118} 5119 5120// String returns the string representation 5121func (s CreateModelOutput) String() string { 5122 return awsutil.Prettify(s) 5123} 5124 5125// GoString returns the string representation 5126func (s CreateModelOutput) GoString() string { 5127 return s.String() 5128} 5129 5130// SetModelArn sets the ModelArn field's value. 5131func (s *CreateModelOutput) SetModelArn(v string) *CreateModelOutput { 5132 s.ModelArn = &v 5133 return s 5134} 5135 5136type CreateNotebookInstanceInput struct { 5137 _ struct{} `type:"structure"` 5138 5139 // Sets whether Amazon SageMaker provides internet access to the notebook instance. 5140 // If you set this to Disabled this notebook instance will be able to access 5141 // resources only in your VPC, and will not be able to connect to Amazon SageMaker 5142 // training and endpoint services unless your configure a NAT Gateway in your 5143 // VPC. 5144 // 5145 // For more information, see appendix-notebook-and-internet-access. You can 5146 // set the value of this parameter to Disabled only if you set a value for the 5147 // SubnetId parameter. 5148 DirectInternetAccess *string `type:"string" enum:"DirectInternetAccess"` 5149 5150 // The type of ML compute instance to launch for the notebook instance. 5151 // 5152 // InstanceType is a required field 5153 InstanceType *string `type:"string" required:"true" enum:"InstanceType"` 5154 5155 // If you provide a AWS KMS key ID, Amazon SageMaker uses it to encrypt data 5156 // at rest on the ML storage volume that is attached to your notebook instance. 5157 KmsKeyId *string `type:"string"` 5158 5159 // The name of a lifecycle configuration to associate with the notebook instance. 5160 // For information about lifestyle configurations, see notebook-lifecycle-config. 5161 LifecycleConfigName *string `type:"string"` 5162 5163 // The name of the new notebook instance. 5164 // 5165 // NotebookInstanceName is a required field 5166 NotebookInstanceName *string `type:"string" required:"true"` 5167 5168 // When you send any requests to AWS resources from the notebook instance, Amazon 5169 // SageMaker assumes this role to perform tasks on your behalf. You must grant 5170 // this role necessary permissions so Amazon SageMaker can perform these tasks. 5171 // The policy must allow the Amazon SageMaker service principal (sagemaker.amazonaws.com) 5172 // permissions to assume this role. For more information, see Amazon SageMaker 5173 // Roles (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html). 5174 // 5175 // To be able to pass this role to Amazon SageMaker, the caller of this API 5176 // must have the iam:PassRole permission. 5177 // 5178 // RoleArn is a required field 5179 RoleArn *string `min:"20" type:"string" required:"true"` 5180 5181 // The VPC security group IDs, in the form sg-xxxxxxxx. The security groups 5182 // must be for the same VPC as specified in the subnet. 5183 SecurityGroupIds []*string `type:"list"` 5184 5185 // The ID of the subnet in a VPC to which you would like to have a connectivity 5186 // from your ML compute instance. 5187 SubnetId *string `type:"string"` 5188 5189 // A list of tags to associate with the notebook instance. You can add tags 5190 // later by using the CreateTags API. 5191 Tags []*Tag `type:"list"` 5192} 5193 5194// String returns the string representation 5195func (s CreateNotebookInstanceInput) String() string { 5196 return awsutil.Prettify(s) 5197} 5198 5199// GoString returns the string representation 5200func (s CreateNotebookInstanceInput) GoString() string { 5201 return s.String() 5202} 5203 5204// Validate inspects the fields of the type to determine if they are valid. 5205func (s *CreateNotebookInstanceInput) Validate() error { 5206 invalidParams := request.ErrInvalidParams{Context: "CreateNotebookInstanceInput"} 5207 if s.InstanceType == nil { 5208 invalidParams.Add(request.NewErrParamRequired("InstanceType")) 5209 } 5210 if s.NotebookInstanceName == nil { 5211 invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) 5212 } 5213 if s.RoleArn == nil { 5214 invalidParams.Add(request.NewErrParamRequired("RoleArn")) 5215 } 5216 if s.RoleArn != nil && len(*s.RoleArn) < 20 { 5217 invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) 5218 } 5219 if s.Tags != nil { 5220 for i, v := range s.Tags { 5221 if v == nil { 5222 continue 5223 } 5224 if err := v.Validate(); err != nil { 5225 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 5226 } 5227 } 5228 } 5229 5230 if invalidParams.Len() > 0 { 5231 return invalidParams 5232 } 5233 return nil 5234} 5235 5236// SetDirectInternetAccess sets the DirectInternetAccess field's value. 5237func (s *CreateNotebookInstanceInput) SetDirectInternetAccess(v string) *CreateNotebookInstanceInput { 5238 s.DirectInternetAccess = &v 5239 return s 5240} 5241 5242// SetInstanceType sets the InstanceType field's value. 5243func (s *CreateNotebookInstanceInput) SetInstanceType(v string) *CreateNotebookInstanceInput { 5244 s.InstanceType = &v 5245 return s 5246} 5247 5248// SetKmsKeyId sets the KmsKeyId field's value. 5249func (s *CreateNotebookInstanceInput) SetKmsKeyId(v string) *CreateNotebookInstanceInput { 5250 s.KmsKeyId = &v 5251 return s 5252} 5253 5254// SetLifecycleConfigName sets the LifecycleConfigName field's value. 5255func (s *CreateNotebookInstanceInput) SetLifecycleConfigName(v string) *CreateNotebookInstanceInput { 5256 s.LifecycleConfigName = &v 5257 return s 5258} 5259 5260// SetNotebookInstanceName sets the NotebookInstanceName field's value. 5261func (s *CreateNotebookInstanceInput) SetNotebookInstanceName(v string) *CreateNotebookInstanceInput { 5262 s.NotebookInstanceName = &v 5263 return s 5264} 5265 5266// SetRoleArn sets the RoleArn field's value. 5267func (s *CreateNotebookInstanceInput) SetRoleArn(v string) *CreateNotebookInstanceInput { 5268 s.RoleArn = &v 5269 return s 5270} 5271 5272// SetSecurityGroupIds sets the SecurityGroupIds field's value. 5273func (s *CreateNotebookInstanceInput) SetSecurityGroupIds(v []*string) *CreateNotebookInstanceInput { 5274 s.SecurityGroupIds = v 5275 return s 5276} 5277 5278// SetSubnetId sets the SubnetId field's value. 5279func (s *CreateNotebookInstanceInput) SetSubnetId(v string) *CreateNotebookInstanceInput { 5280 s.SubnetId = &v 5281 return s 5282} 5283 5284// SetTags sets the Tags field's value. 5285func (s *CreateNotebookInstanceInput) SetTags(v []*Tag) *CreateNotebookInstanceInput { 5286 s.Tags = v 5287 return s 5288} 5289 5290type CreateNotebookInstanceLifecycleConfigInput struct { 5291 _ struct{} `type:"structure"` 5292 5293 // The name of the lifecycle configuration. 5294 // 5295 // NotebookInstanceLifecycleConfigName is a required field 5296 NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` 5297 5298 // A shell script that runs only once, when you create a notebook instance. 5299 OnCreate []*NotebookInstanceLifecycleHook `type:"list"` 5300 5301 // A shell script that runs every time you start a notebook instance, including 5302 // when you create the notebook instance. 5303 OnStart []*NotebookInstanceLifecycleHook `type:"list"` 5304} 5305 5306// String returns the string representation 5307func (s CreateNotebookInstanceLifecycleConfigInput) String() string { 5308 return awsutil.Prettify(s) 5309} 5310 5311// GoString returns the string representation 5312func (s CreateNotebookInstanceLifecycleConfigInput) GoString() string { 5313 return s.String() 5314} 5315 5316// Validate inspects the fields of the type to determine if they are valid. 5317func (s *CreateNotebookInstanceLifecycleConfigInput) Validate() error { 5318 invalidParams := request.ErrInvalidParams{Context: "CreateNotebookInstanceLifecycleConfigInput"} 5319 if s.NotebookInstanceLifecycleConfigName == nil { 5320 invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) 5321 } 5322 if s.OnCreate != nil { 5323 for i, v := range s.OnCreate { 5324 if v == nil { 5325 continue 5326 } 5327 if err := v.Validate(); err != nil { 5328 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnCreate", i), err.(request.ErrInvalidParams)) 5329 } 5330 } 5331 } 5332 if s.OnStart != nil { 5333 for i, v := range s.OnStart { 5334 if v == nil { 5335 continue 5336 } 5337 if err := v.Validate(); err != nil { 5338 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnStart", i), err.(request.ErrInvalidParams)) 5339 } 5340 } 5341 } 5342 5343 if invalidParams.Len() > 0 { 5344 return invalidParams 5345 } 5346 return nil 5347} 5348 5349// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. 5350func (s *CreateNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *CreateNotebookInstanceLifecycleConfigInput { 5351 s.NotebookInstanceLifecycleConfigName = &v 5352 return s 5353} 5354 5355// SetOnCreate sets the OnCreate field's value. 5356func (s *CreateNotebookInstanceLifecycleConfigInput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *CreateNotebookInstanceLifecycleConfigInput { 5357 s.OnCreate = v 5358 return s 5359} 5360 5361// SetOnStart sets the OnStart field's value. 5362func (s *CreateNotebookInstanceLifecycleConfigInput) SetOnStart(v []*NotebookInstanceLifecycleHook) *CreateNotebookInstanceLifecycleConfigInput { 5363 s.OnStart = v 5364 return s 5365} 5366 5367type CreateNotebookInstanceLifecycleConfigOutput struct { 5368 _ struct{} `type:"structure"` 5369 5370 // The Amazon Resource Name (ARN) of the lifecycle configuration. 5371 NotebookInstanceLifecycleConfigArn *string `type:"string"` 5372} 5373 5374// String returns the string representation 5375func (s CreateNotebookInstanceLifecycleConfigOutput) String() string { 5376 return awsutil.Prettify(s) 5377} 5378 5379// GoString returns the string representation 5380func (s CreateNotebookInstanceLifecycleConfigOutput) GoString() string { 5381 return s.String() 5382} 5383 5384// SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value. 5385func (s *CreateNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigArn(v string) *CreateNotebookInstanceLifecycleConfigOutput { 5386 s.NotebookInstanceLifecycleConfigArn = &v 5387 return s 5388} 5389 5390type CreateNotebookInstanceOutput struct { 5391 _ struct{} `type:"structure"` 5392 5393 // The Amazon Resource Name (ARN) of the notebook instance. 5394 NotebookInstanceArn *string `type:"string"` 5395} 5396 5397// String returns the string representation 5398func (s CreateNotebookInstanceOutput) String() string { 5399 return awsutil.Prettify(s) 5400} 5401 5402// GoString returns the string representation 5403func (s CreateNotebookInstanceOutput) GoString() string { 5404 return s.String() 5405} 5406 5407// SetNotebookInstanceArn sets the NotebookInstanceArn field's value. 5408func (s *CreateNotebookInstanceOutput) SetNotebookInstanceArn(v string) *CreateNotebookInstanceOutput { 5409 s.NotebookInstanceArn = &v 5410 return s 5411} 5412 5413type CreatePresignedNotebookInstanceUrlInput struct { 5414 _ struct{} `type:"structure"` 5415 5416 // The name of the notebook instance. 5417 // 5418 // NotebookInstanceName is a required field 5419 NotebookInstanceName *string `type:"string" required:"true"` 5420 5421 // The duration of the session, in seconds. The default is 12 hours. 5422 SessionExpirationDurationInSeconds *int64 `min:"1800" type:"integer"` 5423} 5424 5425// String returns the string representation 5426func (s CreatePresignedNotebookInstanceUrlInput) String() string { 5427 return awsutil.Prettify(s) 5428} 5429 5430// GoString returns the string representation 5431func (s CreatePresignedNotebookInstanceUrlInput) GoString() string { 5432 return s.String() 5433} 5434 5435// Validate inspects the fields of the type to determine if they are valid. 5436func (s *CreatePresignedNotebookInstanceUrlInput) Validate() error { 5437 invalidParams := request.ErrInvalidParams{Context: "CreatePresignedNotebookInstanceUrlInput"} 5438 if s.NotebookInstanceName == nil { 5439 invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) 5440 } 5441 if s.SessionExpirationDurationInSeconds != nil && *s.SessionExpirationDurationInSeconds < 1800 { 5442 invalidParams.Add(request.NewErrParamMinValue("SessionExpirationDurationInSeconds", 1800)) 5443 } 5444 5445 if invalidParams.Len() > 0 { 5446 return invalidParams 5447 } 5448 return nil 5449} 5450 5451// SetNotebookInstanceName sets the NotebookInstanceName field's value. 5452func (s *CreatePresignedNotebookInstanceUrlInput) SetNotebookInstanceName(v string) *CreatePresignedNotebookInstanceUrlInput { 5453 s.NotebookInstanceName = &v 5454 return s 5455} 5456 5457// SetSessionExpirationDurationInSeconds sets the SessionExpirationDurationInSeconds field's value. 5458func (s *CreatePresignedNotebookInstanceUrlInput) SetSessionExpirationDurationInSeconds(v int64) *CreatePresignedNotebookInstanceUrlInput { 5459 s.SessionExpirationDurationInSeconds = &v 5460 return s 5461} 5462 5463type CreatePresignedNotebookInstanceUrlOutput struct { 5464 _ struct{} `type:"structure"` 5465 5466 // A JSON object that contains the URL string. 5467 AuthorizedUrl *string `type:"string"` 5468} 5469 5470// String returns the string representation 5471func (s CreatePresignedNotebookInstanceUrlOutput) String() string { 5472 return awsutil.Prettify(s) 5473} 5474 5475// GoString returns the string representation 5476func (s CreatePresignedNotebookInstanceUrlOutput) GoString() string { 5477 return s.String() 5478} 5479 5480// SetAuthorizedUrl sets the AuthorizedUrl field's value. 5481func (s *CreatePresignedNotebookInstanceUrlOutput) SetAuthorizedUrl(v string) *CreatePresignedNotebookInstanceUrlOutput { 5482 s.AuthorizedUrl = &v 5483 return s 5484} 5485 5486type CreateTrainingJobInput struct { 5487 _ struct{} `type:"structure"` 5488 5489 // The registry path of the Docker image that contains the training algorithm 5490 // and algorithm-specific metadata, including the input mode. For more information 5491 // about algorithms provided by Amazon SageMaker, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). 5492 // For information about providing your own algorithms, see your-algorithms. 5493 // 5494 // AlgorithmSpecification is a required field 5495 AlgorithmSpecification *AlgorithmSpecification `type:"structure" required:"true"` 5496 5497 // Algorithm-specific parameters that influence the quality of the model. You 5498 // set hyperparameters before you start the learning process. For a list of 5499 // hyperparameters for each training algorithm provided by Amazon SageMaker, 5500 // see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). 5501 // 5502 // You can specify a maximum of 100 hyperparameters. Each hyperparameter is 5503 // a key-value pair. Each key and value is limited to 256 characters, as specified 5504 // by the Length Constraint. 5505 HyperParameters map[string]*string `type:"map"` 5506 5507 // An array of Channel objects. Each channel is a named input source. InputDataConfig 5508 // describes the input data and its location. 5509 // 5510 // Algorithms can accept input data from one or more channels. For example, 5511 // an algorithm might have two channels of input data, training_data and validation_data. 5512 // The configuration for each channel provides the S3 location where the input 5513 // data is stored. It also provides information about the stored data: the MIME 5514 // type, compression method, and whether the data is wrapped in RecordIO format. 5515 // 5516 // Depending on the input mode that the algorithm supports, Amazon SageMaker 5517 // either copies input data files from an S3 bucket to a local directory in 5518 // the Docker container, or makes it available as input streams. 5519 // 5520 // InputDataConfig is a required field 5521 InputDataConfig []*Channel `min:"1" type:"list" required:"true"` 5522 5523 // Specifies the path to the S3 bucket where you want to store model artifacts. 5524 // Amazon SageMaker creates subfolders for the artifacts. 5525 // 5526 // OutputDataConfig is a required field 5527 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 5528 5529 // The resources, including the ML compute instances and ML storage volumes, 5530 // to use for model training. 5531 // 5532 // ML storage volumes store model artifacts and incremental states. Training 5533 // algorithms might also use ML storage volumes for scratch space. If you want 5534 // Amazon SageMaker to use the ML storage volume to store the training data, 5535 // choose File as the TrainingInputMode in the algorithm specification. For 5536 // distributed training algorithms, specify an instance count greater than 1. 5537 // 5538 // ResourceConfig is a required field 5539 ResourceConfig *ResourceConfig `type:"structure" required:"true"` 5540 5541 // The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume 5542 // to perform tasks on your behalf. 5543 // 5544 // During model training, Amazon SageMaker needs your permission to read input 5545 // data from an S3 bucket, download a Docker image that contains training code, 5546 // write model artifacts to an S3 bucket, write logs to Amazon CloudWatch Logs, 5547 // and publish metrics to Amazon CloudWatch. You grant permissions for all of 5548 // these tasks to an IAM role. For more information, see Amazon SageMaker Roles 5549 // (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html). 5550 // 5551 // To be able to pass this role to Amazon SageMaker, the caller of this API 5552 // must have the iam:PassRole permission. 5553 // 5554 // RoleArn is a required field 5555 RoleArn *string `min:"20" type:"string" required:"true"` 5556 5557 // Sets a duration for training. Use this parameter to cap model training costs. 5558 // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which 5559 // delays job termination for 120 seconds. Algorithms might use this 120-second 5560 // window to save the model artifacts. 5561 // 5562 // When Amazon SageMaker terminates a job because the stopping condition has 5563 // been met, training algorithms provided by Amazon SageMaker save the intermediate 5564 // results of the job. This intermediate data is a valid model artifact. You 5565 // can use it to create a model using the CreateModel API. 5566 // 5567 // StoppingCondition is a required field 5568 StoppingCondition *StoppingCondition `type:"structure" required:"true"` 5569 5570 // An array of key-value pairs. For more information, see Using Cost Allocation 5571 // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) 5572 // in the AWS Billing and Cost Management User Guide. 5573 Tags []*Tag `type:"list"` 5574 5575 // The name of the training job. The name must be unique within an AWS Region 5576 // in an AWS account. 5577 // 5578 // TrainingJobName is a required field 5579 TrainingJobName *string `min:"1" type:"string" required:"true"` 5580 5581 // A VpcConfig object that specifies the VPC that you want your training job 5582 // to connect to. Control access to and from your training container by configuring 5583 // the VPC. For more information, see train-vpc 5584 VpcConfig *VpcConfig `type:"structure"` 5585} 5586 5587// String returns the string representation 5588func (s CreateTrainingJobInput) String() string { 5589 return awsutil.Prettify(s) 5590} 5591 5592// GoString returns the string representation 5593func (s CreateTrainingJobInput) GoString() string { 5594 return s.String() 5595} 5596 5597// Validate inspects the fields of the type to determine if they are valid. 5598func (s *CreateTrainingJobInput) Validate() error { 5599 invalidParams := request.ErrInvalidParams{Context: "CreateTrainingJobInput"} 5600 if s.AlgorithmSpecification == nil { 5601 invalidParams.Add(request.NewErrParamRequired("AlgorithmSpecification")) 5602 } 5603 if s.InputDataConfig == nil { 5604 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 5605 } 5606 if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 { 5607 invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1)) 5608 } 5609 if s.OutputDataConfig == nil { 5610 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 5611 } 5612 if s.ResourceConfig == nil { 5613 invalidParams.Add(request.NewErrParamRequired("ResourceConfig")) 5614 } 5615 if s.RoleArn == nil { 5616 invalidParams.Add(request.NewErrParamRequired("RoleArn")) 5617 } 5618 if s.RoleArn != nil && len(*s.RoleArn) < 20 { 5619 invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) 5620 } 5621 if s.StoppingCondition == nil { 5622 invalidParams.Add(request.NewErrParamRequired("StoppingCondition")) 5623 } 5624 if s.TrainingJobName == nil { 5625 invalidParams.Add(request.NewErrParamRequired("TrainingJobName")) 5626 } 5627 if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 { 5628 invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1)) 5629 } 5630 if s.AlgorithmSpecification != nil { 5631 if err := s.AlgorithmSpecification.Validate(); err != nil { 5632 invalidParams.AddNested("AlgorithmSpecification", err.(request.ErrInvalidParams)) 5633 } 5634 } 5635 if s.InputDataConfig != nil { 5636 for i, v := range s.InputDataConfig { 5637 if v == nil { 5638 continue 5639 } 5640 if err := v.Validate(); err != nil { 5641 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams)) 5642 } 5643 } 5644 } 5645 if s.OutputDataConfig != nil { 5646 if err := s.OutputDataConfig.Validate(); err != nil { 5647 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 5648 } 5649 } 5650 if s.ResourceConfig != nil { 5651 if err := s.ResourceConfig.Validate(); err != nil { 5652 invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams)) 5653 } 5654 } 5655 if s.StoppingCondition != nil { 5656 if err := s.StoppingCondition.Validate(); err != nil { 5657 invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams)) 5658 } 5659 } 5660 if s.Tags != nil { 5661 for i, v := range s.Tags { 5662 if v == nil { 5663 continue 5664 } 5665 if err := v.Validate(); err != nil { 5666 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 5667 } 5668 } 5669 } 5670 if s.VpcConfig != nil { 5671 if err := s.VpcConfig.Validate(); err != nil { 5672 invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) 5673 } 5674 } 5675 5676 if invalidParams.Len() > 0 { 5677 return invalidParams 5678 } 5679 return nil 5680} 5681 5682// SetAlgorithmSpecification sets the AlgorithmSpecification field's value. 5683func (s *CreateTrainingJobInput) SetAlgorithmSpecification(v *AlgorithmSpecification) *CreateTrainingJobInput { 5684 s.AlgorithmSpecification = v 5685 return s 5686} 5687 5688// SetHyperParameters sets the HyperParameters field's value. 5689func (s *CreateTrainingJobInput) SetHyperParameters(v map[string]*string) *CreateTrainingJobInput { 5690 s.HyperParameters = v 5691 return s 5692} 5693 5694// SetInputDataConfig sets the InputDataConfig field's value. 5695func (s *CreateTrainingJobInput) SetInputDataConfig(v []*Channel) *CreateTrainingJobInput { 5696 s.InputDataConfig = v 5697 return s 5698} 5699 5700// SetOutputDataConfig sets the OutputDataConfig field's value. 5701func (s *CreateTrainingJobInput) SetOutputDataConfig(v *OutputDataConfig) *CreateTrainingJobInput { 5702 s.OutputDataConfig = v 5703 return s 5704} 5705 5706// SetResourceConfig sets the ResourceConfig field's value. 5707func (s *CreateTrainingJobInput) SetResourceConfig(v *ResourceConfig) *CreateTrainingJobInput { 5708 s.ResourceConfig = v 5709 return s 5710} 5711 5712// SetRoleArn sets the RoleArn field's value. 5713func (s *CreateTrainingJobInput) SetRoleArn(v string) *CreateTrainingJobInput { 5714 s.RoleArn = &v 5715 return s 5716} 5717 5718// SetStoppingCondition sets the StoppingCondition field's value. 5719func (s *CreateTrainingJobInput) SetStoppingCondition(v *StoppingCondition) *CreateTrainingJobInput { 5720 s.StoppingCondition = v 5721 return s 5722} 5723 5724// SetTags sets the Tags field's value. 5725func (s *CreateTrainingJobInput) SetTags(v []*Tag) *CreateTrainingJobInput { 5726 s.Tags = v 5727 return s 5728} 5729 5730// SetTrainingJobName sets the TrainingJobName field's value. 5731func (s *CreateTrainingJobInput) SetTrainingJobName(v string) *CreateTrainingJobInput { 5732 s.TrainingJobName = &v 5733 return s 5734} 5735 5736// SetVpcConfig sets the VpcConfig field's value. 5737func (s *CreateTrainingJobInput) SetVpcConfig(v *VpcConfig) *CreateTrainingJobInput { 5738 s.VpcConfig = v 5739 return s 5740} 5741 5742type CreateTrainingJobOutput struct { 5743 _ struct{} `type:"structure"` 5744 5745 // The Amazon Resource Name (ARN) of the training job. 5746 // 5747 // TrainingJobArn is a required field 5748 TrainingJobArn *string `type:"string" required:"true"` 5749} 5750 5751// String returns the string representation 5752func (s CreateTrainingJobOutput) String() string { 5753 return awsutil.Prettify(s) 5754} 5755 5756// GoString returns the string representation 5757func (s CreateTrainingJobOutput) GoString() string { 5758 return s.String() 5759} 5760 5761// SetTrainingJobArn sets the TrainingJobArn field's value. 5762func (s *CreateTrainingJobOutput) SetTrainingJobArn(v string) *CreateTrainingJobOutput { 5763 s.TrainingJobArn = &v 5764 return s 5765} 5766 5767type CreateTransformJobInput struct { 5768 _ struct{} `type:"structure"` 5769 5770 // Determines the number of records included in a single mini-batch. SingleRecord 5771 // means only one record is used per mini-batch. MultiRecord means a mini-batch 5772 // is set to contain as many records that can fit within the MaxPayloadInMB 5773 // limit. 5774 BatchStrategy *string `type:"string" enum:"BatchStrategy"` 5775 5776 // The environment variables to set in the Docker container. We support up to 5777 // 16 key and values entries in the map. 5778 Environment map[string]*string `type:"map"` 5779 5780 // The maximum number of parallel requests that can be sent to each instance 5781 // in a transform job. This is good for algorithms that implement multiple workers 5782 // on larger instances . The default value is 1. To allow Amazon SageMaker to 5783 // determine the appropriate number for MaxConcurrentTransforms, set the value 5784 // to 0. 5785 MaxConcurrentTransforms *int64 `type:"integer"` 5786 5787 // The maximum payload size allowed, in MB. A payload is the data portion of 5788 // a record (without metadata). The value in MaxPayloadInMB must be greater 5789 // or equal to the size of a single record. You can approximate the size of 5790 // a record by dividing the size of your dataset by the number of records. Then 5791 // multiply this value by the number of records you want in a mini-batch. It 5792 // is recommended to enter a value slightly larger than this to ensure the records 5793 // fit within the maximum payload size. The default value is 6 MB. For an unlimited 5794 // payload size, set the value to 0. 5795 MaxPayloadInMB *int64 `type:"integer"` 5796 5797 // The name of the model that you want to use for the transform job. ModelName 5798 // must be the name of an existing Amazon SageMaker model within an AWS Region 5799 // in an AWS account. 5800 // 5801 // ModelName is a required field 5802 ModelName *string `type:"string" required:"true"` 5803 5804 // An array of key-value pairs. Adding tags is optional. For more information, 5805 // see Using Cost Allocation Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) 5806 // in the AWS Billing and Cost Management User Guide. 5807 Tags []*Tag `type:"list"` 5808 5809 // Describes the input source and the way the transform job consumes it. 5810 // 5811 // TransformInput is a required field 5812 TransformInput *TransformInput `type:"structure" required:"true"` 5813 5814 // The name of the transform job. The name must be unique within an AWS Region 5815 // in an AWS account. 5816 // 5817 // TransformJobName is a required field 5818 TransformJobName *string `min:"1" type:"string" required:"true"` 5819 5820 // Describes the results of the transform job. 5821 // 5822 // TransformOutput is a required field 5823 TransformOutput *TransformOutput `type:"structure" required:"true"` 5824 5825 // Describes the resources, including ML instance types and ML instance count, 5826 // to use for the transform job. 5827 // 5828 // TransformResources is a required field 5829 TransformResources *TransformResources `type:"structure" required:"true"` 5830} 5831 5832// String returns the string representation 5833func (s CreateTransformJobInput) String() string { 5834 return awsutil.Prettify(s) 5835} 5836 5837// GoString returns the string representation 5838func (s CreateTransformJobInput) GoString() string { 5839 return s.String() 5840} 5841 5842// Validate inspects the fields of the type to determine if they are valid. 5843func (s *CreateTransformJobInput) Validate() error { 5844 invalidParams := request.ErrInvalidParams{Context: "CreateTransformJobInput"} 5845 if s.ModelName == nil { 5846 invalidParams.Add(request.NewErrParamRequired("ModelName")) 5847 } 5848 if s.TransformInput == nil { 5849 invalidParams.Add(request.NewErrParamRequired("TransformInput")) 5850 } 5851 if s.TransformJobName == nil { 5852 invalidParams.Add(request.NewErrParamRequired("TransformJobName")) 5853 } 5854 if s.TransformJobName != nil && len(*s.TransformJobName) < 1 { 5855 invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1)) 5856 } 5857 if s.TransformOutput == nil { 5858 invalidParams.Add(request.NewErrParamRequired("TransformOutput")) 5859 } 5860 if s.TransformResources == nil { 5861 invalidParams.Add(request.NewErrParamRequired("TransformResources")) 5862 } 5863 if s.Tags != nil { 5864 for i, v := range s.Tags { 5865 if v == nil { 5866 continue 5867 } 5868 if err := v.Validate(); err != nil { 5869 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 5870 } 5871 } 5872 } 5873 if s.TransformInput != nil { 5874 if err := s.TransformInput.Validate(); err != nil { 5875 invalidParams.AddNested("TransformInput", err.(request.ErrInvalidParams)) 5876 } 5877 } 5878 if s.TransformOutput != nil { 5879 if err := s.TransformOutput.Validate(); err != nil { 5880 invalidParams.AddNested("TransformOutput", err.(request.ErrInvalidParams)) 5881 } 5882 } 5883 if s.TransformResources != nil { 5884 if err := s.TransformResources.Validate(); err != nil { 5885 invalidParams.AddNested("TransformResources", err.(request.ErrInvalidParams)) 5886 } 5887 } 5888 5889 if invalidParams.Len() > 0 { 5890 return invalidParams 5891 } 5892 return nil 5893} 5894 5895// SetBatchStrategy sets the BatchStrategy field's value. 5896func (s *CreateTransformJobInput) SetBatchStrategy(v string) *CreateTransformJobInput { 5897 s.BatchStrategy = &v 5898 return s 5899} 5900 5901// SetEnvironment sets the Environment field's value. 5902func (s *CreateTransformJobInput) SetEnvironment(v map[string]*string) *CreateTransformJobInput { 5903 s.Environment = v 5904 return s 5905} 5906 5907// SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value. 5908func (s *CreateTransformJobInput) SetMaxConcurrentTransforms(v int64) *CreateTransformJobInput { 5909 s.MaxConcurrentTransforms = &v 5910 return s 5911} 5912 5913// SetMaxPayloadInMB sets the MaxPayloadInMB field's value. 5914func (s *CreateTransformJobInput) SetMaxPayloadInMB(v int64) *CreateTransformJobInput { 5915 s.MaxPayloadInMB = &v 5916 return s 5917} 5918 5919// SetModelName sets the ModelName field's value. 5920func (s *CreateTransformJobInput) SetModelName(v string) *CreateTransformJobInput { 5921 s.ModelName = &v 5922 return s 5923} 5924 5925// SetTags sets the Tags field's value. 5926func (s *CreateTransformJobInput) SetTags(v []*Tag) *CreateTransformJobInput { 5927 s.Tags = v 5928 return s 5929} 5930 5931// SetTransformInput sets the TransformInput field's value. 5932func (s *CreateTransformJobInput) SetTransformInput(v *TransformInput) *CreateTransformJobInput { 5933 s.TransformInput = v 5934 return s 5935} 5936 5937// SetTransformJobName sets the TransformJobName field's value. 5938func (s *CreateTransformJobInput) SetTransformJobName(v string) *CreateTransformJobInput { 5939 s.TransformJobName = &v 5940 return s 5941} 5942 5943// SetTransformOutput sets the TransformOutput field's value. 5944func (s *CreateTransformJobInput) SetTransformOutput(v *TransformOutput) *CreateTransformJobInput { 5945 s.TransformOutput = v 5946 return s 5947} 5948 5949// SetTransformResources sets the TransformResources field's value. 5950func (s *CreateTransformJobInput) SetTransformResources(v *TransformResources) *CreateTransformJobInput { 5951 s.TransformResources = v 5952 return s 5953} 5954 5955type CreateTransformJobOutput struct { 5956 _ struct{} `type:"structure"` 5957 5958 // The Amazon Resource Name (ARN) of the transform job. 5959 // 5960 // TransformJobArn is a required field 5961 TransformJobArn *string `type:"string" required:"true"` 5962} 5963 5964// String returns the string representation 5965func (s CreateTransformJobOutput) String() string { 5966 return awsutil.Prettify(s) 5967} 5968 5969// GoString returns the string representation 5970func (s CreateTransformJobOutput) GoString() string { 5971 return s.String() 5972} 5973 5974// SetTransformJobArn sets the TransformJobArn field's value. 5975func (s *CreateTransformJobOutput) SetTransformJobArn(v string) *CreateTransformJobOutput { 5976 s.TransformJobArn = &v 5977 return s 5978} 5979 5980// Describes the location of the channel data. 5981type DataSource struct { 5982 _ struct{} `type:"structure"` 5983 5984 // The S3 location of the data source that is associated with a channel. 5985 // 5986 // S3DataSource is a required field 5987 S3DataSource *S3DataSource `type:"structure" required:"true"` 5988} 5989 5990// String returns the string representation 5991func (s DataSource) String() string { 5992 return awsutil.Prettify(s) 5993} 5994 5995// GoString returns the string representation 5996func (s DataSource) GoString() string { 5997 return s.String() 5998} 5999 6000// Validate inspects the fields of the type to determine if they are valid. 6001func (s *DataSource) Validate() error { 6002 invalidParams := request.ErrInvalidParams{Context: "DataSource"} 6003 if s.S3DataSource == nil { 6004 invalidParams.Add(request.NewErrParamRequired("S3DataSource")) 6005 } 6006 if s.S3DataSource != nil { 6007 if err := s.S3DataSource.Validate(); err != nil { 6008 invalidParams.AddNested("S3DataSource", err.(request.ErrInvalidParams)) 6009 } 6010 } 6011 6012 if invalidParams.Len() > 0 { 6013 return invalidParams 6014 } 6015 return nil 6016} 6017 6018// SetS3DataSource sets the S3DataSource field's value. 6019func (s *DataSource) SetS3DataSource(v *S3DataSource) *DataSource { 6020 s.S3DataSource = v 6021 return s 6022} 6023 6024type DeleteEndpointConfigInput struct { 6025 _ struct{} `type:"structure"` 6026 6027 // The name of the endpoint configuration that you want to delete. 6028 // 6029 // EndpointConfigName is a required field 6030 EndpointConfigName *string `type:"string" required:"true"` 6031} 6032 6033// String returns the string representation 6034func (s DeleteEndpointConfigInput) String() string { 6035 return awsutil.Prettify(s) 6036} 6037 6038// GoString returns the string representation 6039func (s DeleteEndpointConfigInput) GoString() string { 6040 return s.String() 6041} 6042 6043// Validate inspects the fields of the type to determine if they are valid. 6044func (s *DeleteEndpointConfigInput) Validate() error { 6045 invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointConfigInput"} 6046 if s.EndpointConfigName == nil { 6047 invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) 6048 } 6049 6050 if invalidParams.Len() > 0 { 6051 return invalidParams 6052 } 6053 return nil 6054} 6055 6056// SetEndpointConfigName sets the EndpointConfigName field's value. 6057func (s *DeleteEndpointConfigInput) SetEndpointConfigName(v string) *DeleteEndpointConfigInput { 6058 s.EndpointConfigName = &v 6059 return s 6060} 6061 6062type DeleteEndpointConfigOutput struct { 6063 _ struct{} `type:"structure"` 6064} 6065 6066// String returns the string representation 6067func (s DeleteEndpointConfigOutput) String() string { 6068 return awsutil.Prettify(s) 6069} 6070 6071// GoString returns the string representation 6072func (s DeleteEndpointConfigOutput) GoString() string { 6073 return s.String() 6074} 6075 6076type DeleteEndpointInput struct { 6077 _ struct{} `type:"structure"` 6078 6079 // The name of the endpoint that you want to delete. 6080 // 6081 // EndpointName is a required field 6082 EndpointName *string `type:"string" required:"true"` 6083} 6084 6085// String returns the string representation 6086func (s DeleteEndpointInput) String() string { 6087 return awsutil.Prettify(s) 6088} 6089 6090// GoString returns the string representation 6091func (s DeleteEndpointInput) GoString() string { 6092 return s.String() 6093} 6094 6095// Validate inspects the fields of the type to determine if they are valid. 6096func (s *DeleteEndpointInput) Validate() error { 6097 invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointInput"} 6098 if s.EndpointName == nil { 6099 invalidParams.Add(request.NewErrParamRequired("EndpointName")) 6100 } 6101 6102 if invalidParams.Len() > 0 { 6103 return invalidParams 6104 } 6105 return nil 6106} 6107 6108// SetEndpointName sets the EndpointName field's value. 6109func (s *DeleteEndpointInput) SetEndpointName(v string) *DeleteEndpointInput { 6110 s.EndpointName = &v 6111 return s 6112} 6113 6114type DeleteEndpointOutput struct { 6115 _ struct{} `type:"structure"` 6116} 6117 6118// String returns the string representation 6119func (s DeleteEndpointOutput) String() string { 6120 return awsutil.Prettify(s) 6121} 6122 6123// GoString returns the string representation 6124func (s DeleteEndpointOutput) GoString() string { 6125 return s.String() 6126} 6127 6128type DeleteModelInput struct { 6129 _ struct{} `type:"structure"` 6130 6131 // The name of the model to delete. 6132 // 6133 // ModelName is a required field 6134 ModelName *string `type:"string" required:"true"` 6135} 6136 6137// String returns the string representation 6138func (s DeleteModelInput) String() string { 6139 return awsutil.Prettify(s) 6140} 6141 6142// GoString returns the string representation 6143func (s DeleteModelInput) GoString() string { 6144 return s.String() 6145} 6146 6147// Validate inspects the fields of the type to determine if they are valid. 6148func (s *DeleteModelInput) Validate() error { 6149 invalidParams := request.ErrInvalidParams{Context: "DeleteModelInput"} 6150 if s.ModelName == nil { 6151 invalidParams.Add(request.NewErrParamRequired("ModelName")) 6152 } 6153 6154 if invalidParams.Len() > 0 { 6155 return invalidParams 6156 } 6157 return nil 6158} 6159 6160// SetModelName sets the ModelName field's value. 6161func (s *DeleteModelInput) SetModelName(v string) *DeleteModelInput { 6162 s.ModelName = &v 6163 return s 6164} 6165 6166type DeleteModelOutput struct { 6167 _ struct{} `type:"structure"` 6168} 6169 6170// String returns the string representation 6171func (s DeleteModelOutput) String() string { 6172 return awsutil.Prettify(s) 6173} 6174 6175// GoString returns the string representation 6176func (s DeleteModelOutput) GoString() string { 6177 return s.String() 6178} 6179 6180type DeleteNotebookInstanceInput struct { 6181 _ struct{} `type:"structure"` 6182 6183 // The name of the Amazon SageMaker notebook instance to delete. 6184 // 6185 // NotebookInstanceName is a required field 6186 NotebookInstanceName *string `type:"string" required:"true"` 6187} 6188 6189// String returns the string representation 6190func (s DeleteNotebookInstanceInput) String() string { 6191 return awsutil.Prettify(s) 6192} 6193 6194// GoString returns the string representation 6195func (s DeleteNotebookInstanceInput) GoString() string { 6196 return s.String() 6197} 6198 6199// Validate inspects the fields of the type to determine if they are valid. 6200func (s *DeleteNotebookInstanceInput) Validate() error { 6201 invalidParams := request.ErrInvalidParams{Context: "DeleteNotebookInstanceInput"} 6202 if s.NotebookInstanceName == nil { 6203 invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) 6204 } 6205 6206 if invalidParams.Len() > 0 { 6207 return invalidParams 6208 } 6209 return nil 6210} 6211 6212// SetNotebookInstanceName sets the NotebookInstanceName field's value. 6213func (s *DeleteNotebookInstanceInput) SetNotebookInstanceName(v string) *DeleteNotebookInstanceInput { 6214 s.NotebookInstanceName = &v 6215 return s 6216} 6217 6218type DeleteNotebookInstanceLifecycleConfigInput struct { 6219 _ struct{} `type:"structure"` 6220 6221 // The name of the lifecycle configuration to delete. 6222 // 6223 // NotebookInstanceLifecycleConfigName is a required field 6224 NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` 6225} 6226 6227// String returns the string representation 6228func (s DeleteNotebookInstanceLifecycleConfigInput) String() string { 6229 return awsutil.Prettify(s) 6230} 6231 6232// GoString returns the string representation 6233func (s DeleteNotebookInstanceLifecycleConfigInput) GoString() string { 6234 return s.String() 6235} 6236 6237// Validate inspects the fields of the type to determine if they are valid. 6238func (s *DeleteNotebookInstanceLifecycleConfigInput) Validate() error { 6239 invalidParams := request.ErrInvalidParams{Context: "DeleteNotebookInstanceLifecycleConfigInput"} 6240 if s.NotebookInstanceLifecycleConfigName == nil { 6241 invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) 6242 } 6243 6244 if invalidParams.Len() > 0 { 6245 return invalidParams 6246 } 6247 return nil 6248} 6249 6250// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. 6251func (s *DeleteNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *DeleteNotebookInstanceLifecycleConfigInput { 6252 s.NotebookInstanceLifecycleConfigName = &v 6253 return s 6254} 6255 6256type DeleteNotebookInstanceLifecycleConfigOutput struct { 6257 _ struct{} `type:"structure"` 6258} 6259 6260// String returns the string representation 6261func (s DeleteNotebookInstanceLifecycleConfigOutput) String() string { 6262 return awsutil.Prettify(s) 6263} 6264 6265// GoString returns the string representation 6266func (s DeleteNotebookInstanceLifecycleConfigOutput) GoString() string { 6267 return s.String() 6268} 6269 6270type DeleteNotebookInstanceOutput struct { 6271 _ struct{} `type:"structure"` 6272} 6273 6274// String returns the string representation 6275func (s DeleteNotebookInstanceOutput) String() string { 6276 return awsutil.Prettify(s) 6277} 6278 6279// GoString returns the string representation 6280func (s DeleteNotebookInstanceOutput) GoString() string { 6281 return s.String() 6282} 6283 6284type DeleteTagsInput struct { 6285 _ struct{} `type:"structure"` 6286 6287 // The Amazon Resource Name (ARN) of the resource whose tags you want to delete. 6288 // 6289 // ResourceArn is a required field 6290 ResourceArn *string `type:"string" required:"true"` 6291 6292 // An array or one or more tag keys to delete. 6293 // 6294 // TagKeys is a required field 6295 TagKeys []*string `min:"1" type:"list" required:"true"` 6296} 6297 6298// String returns the string representation 6299func (s DeleteTagsInput) String() string { 6300 return awsutil.Prettify(s) 6301} 6302 6303// GoString returns the string representation 6304func (s DeleteTagsInput) GoString() string { 6305 return s.String() 6306} 6307 6308// Validate inspects the fields of the type to determine if they are valid. 6309func (s *DeleteTagsInput) Validate() error { 6310 invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"} 6311 if s.ResourceArn == nil { 6312 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 6313 } 6314 if s.TagKeys == nil { 6315 invalidParams.Add(request.NewErrParamRequired("TagKeys")) 6316 } 6317 if s.TagKeys != nil && len(s.TagKeys) < 1 { 6318 invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) 6319 } 6320 6321 if invalidParams.Len() > 0 { 6322 return invalidParams 6323 } 6324 return nil 6325} 6326 6327// SetResourceArn sets the ResourceArn field's value. 6328func (s *DeleteTagsInput) SetResourceArn(v string) *DeleteTagsInput { 6329 s.ResourceArn = &v 6330 return s 6331} 6332 6333// SetTagKeys sets the TagKeys field's value. 6334func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput { 6335 s.TagKeys = v 6336 return s 6337} 6338 6339type DeleteTagsOutput struct { 6340 _ struct{} `type:"structure"` 6341} 6342 6343// String returns the string representation 6344func (s DeleteTagsOutput) String() string { 6345 return awsutil.Prettify(s) 6346} 6347 6348// GoString returns the string representation 6349func (s DeleteTagsOutput) GoString() string { 6350 return s.String() 6351} 6352 6353// Gets the Amazon EC2 Container Registry path of the docker image of the model 6354// that is hosted in this ProductionVariant. 6355// 6356// If you used the registry/repository[:tag] form to to specify the image path 6357// of the primary container when you created the model hosted in this ProductionVariant, 6358// the path resolves to a path of the form registry/repository[@digest]. A digest 6359// is a hash value that identifies a specific version of an image. For information 6360// about Amazon ECR paths, see Pulling an Image (http://docs.aws.amazon.com//AmazonECR/latest/userguide/docker-pull-ecr-image.html) 6361// in the Amazon ECR User Guide. 6362type DeployedImage struct { 6363 _ struct{} `type:"structure"` 6364 6365 // The date and time when the image path for the model resolved to the ResolvedImage 6366 ResolutionTime *time.Time `type:"timestamp"` 6367 6368 // The specific digest path of the image hosted in this ProductionVariant. 6369 ResolvedImage *string `type:"string"` 6370 6371 // The image path you specified when you created the model. 6372 SpecifiedImage *string `type:"string"` 6373} 6374 6375// String returns the string representation 6376func (s DeployedImage) String() string { 6377 return awsutil.Prettify(s) 6378} 6379 6380// GoString returns the string representation 6381func (s DeployedImage) GoString() string { 6382 return s.String() 6383} 6384 6385// SetResolutionTime sets the ResolutionTime field's value. 6386func (s *DeployedImage) SetResolutionTime(v time.Time) *DeployedImage { 6387 s.ResolutionTime = &v 6388 return s 6389} 6390 6391// SetResolvedImage sets the ResolvedImage field's value. 6392func (s *DeployedImage) SetResolvedImage(v string) *DeployedImage { 6393 s.ResolvedImage = &v 6394 return s 6395} 6396 6397// SetSpecifiedImage sets the SpecifiedImage field's value. 6398func (s *DeployedImage) SetSpecifiedImage(v string) *DeployedImage { 6399 s.SpecifiedImage = &v 6400 return s 6401} 6402 6403type DescribeEndpointConfigInput struct { 6404 _ struct{} `type:"structure"` 6405 6406 // The name of the endpoint configuration. 6407 // 6408 // EndpointConfigName is a required field 6409 EndpointConfigName *string `type:"string" required:"true"` 6410} 6411 6412// String returns the string representation 6413func (s DescribeEndpointConfigInput) String() string { 6414 return awsutil.Prettify(s) 6415} 6416 6417// GoString returns the string representation 6418func (s DescribeEndpointConfigInput) GoString() string { 6419 return s.String() 6420} 6421 6422// Validate inspects the fields of the type to determine if they are valid. 6423func (s *DescribeEndpointConfigInput) Validate() error { 6424 invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointConfigInput"} 6425 if s.EndpointConfigName == nil { 6426 invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) 6427 } 6428 6429 if invalidParams.Len() > 0 { 6430 return invalidParams 6431 } 6432 return nil 6433} 6434 6435// SetEndpointConfigName sets the EndpointConfigName field's value. 6436func (s *DescribeEndpointConfigInput) SetEndpointConfigName(v string) *DescribeEndpointConfigInput { 6437 s.EndpointConfigName = &v 6438 return s 6439} 6440 6441type DescribeEndpointConfigOutput struct { 6442 _ struct{} `type:"structure"` 6443 6444 // A timestamp that shows when the endpoint configuration was created. 6445 // 6446 // CreationTime is a required field 6447 CreationTime *time.Time `type:"timestamp" required:"true"` 6448 6449 // The Amazon Resource Name (ARN) of the endpoint configuration. 6450 // 6451 // EndpointConfigArn is a required field 6452 EndpointConfigArn *string `min:"20" type:"string" required:"true"` 6453 6454 // Name of the Amazon SageMaker endpoint configuration. 6455 // 6456 // EndpointConfigName is a required field 6457 EndpointConfigName *string `type:"string" required:"true"` 6458 6459 // AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the 6460 // ML storage volume attached to the instance. 6461 KmsKeyId *string `type:"string"` 6462 6463 // An array of ProductionVariant objects, one for each model that you want to 6464 // host at this endpoint. 6465 // 6466 // ProductionVariants is a required field 6467 ProductionVariants []*ProductionVariant `min:"1" type:"list" required:"true"` 6468} 6469 6470// String returns the string representation 6471func (s DescribeEndpointConfigOutput) String() string { 6472 return awsutil.Prettify(s) 6473} 6474 6475// GoString returns the string representation 6476func (s DescribeEndpointConfigOutput) GoString() string { 6477 return s.String() 6478} 6479 6480// SetCreationTime sets the CreationTime field's value. 6481func (s *DescribeEndpointConfigOutput) SetCreationTime(v time.Time) *DescribeEndpointConfigOutput { 6482 s.CreationTime = &v 6483 return s 6484} 6485 6486// SetEndpointConfigArn sets the EndpointConfigArn field's value. 6487func (s *DescribeEndpointConfigOutput) SetEndpointConfigArn(v string) *DescribeEndpointConfigOutput { 6488 s.EndpointConfigArn = &v 6489 return s 6490} 6491 6492// SetEndpointConfigName sets the EndpointConfigName field's value. 6493func (s *DescribeEndpointConfigOutput) SetEndpointConfigName(v string) *DescribeEndpointConfigOutput { 6494 s.EndpointConfigName = &v 6495 return s 6496} 6497 6498// SetKmsKeyId sets the KmsKeyId field's value. 6499func (s *DescribeEndpointConfigOutput) SetKmsKeyId(v string) *DescribeEndpointConfigOutput { 6500 s.KmsKeyId = &v 6501 return s 6502} 6503 6504// SetProductionVariants sets the ProductionVariants field's value. 6505func (s *DescribeEndpointConfigOutput) SetProductionVariants(v []*ProductionVariant) *DescribeEndpointConfigOutput { 6506 s.ProductionVariants = v 6507 return s 6508} 6509 6510type DescribeEndpointInput struct { 6511 _ struct{} `type:"structure"` 6512 6513 // The name of the endpoint. 6514 // 6515 // EndpointName is a required field 6516 EndpointName *string `type:"string" required:"true"` 6517} 6518 6519// String returns the string representation 6520func (s DescribeEndpointInput) String() string { 6521 return awsutil.Prettify(s) 6522} 6523 6524// GoString returns the string representation 6525func (s DescribeEndpointInput) GoString() string { 6526 return s.String() 6527} 6528 6529// Validate inspects the fields of the type to determine if they are valid. 6530func (s *DescribeEndpointInput) Validate() error { 6531 invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointInput"} 6532 if s.EndpointName == nil { 6533 invalidParams.Add(request.NewErrParamRequired("EndpointName")) 6534 } 6535 6536 if invalidParams.Len() > 0 { 6537 return invalidParams 6538 } 6539 return nil 6540} 6541 6542// SetEndpointName sets the EndpointName field's value. 6543func (s *DescribeEndpointInput) SetEndpointName(v string) *DescribeEndpointInput { 6544 s.EndpointName = &v 6545 return s 6546} 6547 6548type DescribeEndpointOutput struct { 6549 _ struct{} `type:"structure"` 6550 6551 // A timestamp that shows when the endpoint was created. 6552 // 6553 // CreationTime is a required field 6554 CreationTime *time.Time `type:"timestamp" required:"true"` 6555 6556 // The Amazon Resource Name (ARN) of the endpoint. 6557 // 6558 // EndpointArn is a required field 6559 EndpointArn *string `min:"20" type:"string" required:"true"` 6560 6561 // The name of the endpoint configuration associated with this endpoint. 6562 // 6563 // EndpointConfigName is a required field 6564 EndpointConfigName *string `type:"string" required:"true"` 6565 6566 // Name of the endpoint. 6567 // 6568 // EndpointName is a required field 6569 EndpointName *string `type:"string" required:"true"` 6570 6571 // The status of the endpoint. 6572 // 6573 // EndpointStatus is a required field 6574 EndpointStatus *string `type:"string" required:"true" enum:"EndpointStatus"` 6575 6576 // If the status of the endpoint is Failed, the reason why it failed. 6577 FailureReason *string `type:"string"` 6578 6579 // A timestamp that shows when the endpoint was last modified. 6580 // 6581 // LastModifiedTime is a required field 6582 LastModifiedTime *time.Time `type:"timestamp" required:"true"` 6583 6584 // An array of ProductionVariantSummary objects, one for each model hosted behind 6585 // this endpoint. 6586 ProductionVariants []*ProductionVariantSummary `min:"1" type:"list"` 6587} 6588 6589// String returns the string representation 6590func (s DescribeEndpointOutput) String() string { 6591 return awsutil.Prettify(s) 6592} 6593 6594// GoString returns the string representation 6595func (s DescribeEndpointOutput) GoString() string { 6596 return s.String() 6597} 6598 6599// SetCreationTime sets the CreationTime field's value. 6600func (s *DescribeEndpointOutput) SetCreationTime(v time.Time) *DescribeEndpointOutput { 6601 s.CreationTime = &v 6602 return s 6603} 6604 6605// SetEndpointArn sets the EndpointArn field's value. 6606func (s *DescribeEndpointOutput) SetEndpointArn(v string) *DescribeEndpointOutput { 6607 s.EndpointArn = &v 6608 return s 6609} 6610 6611// SetEndpointConfigName sets the EndpointConfigName field's value. 6612func (s *DescribeEndpointOutput) SetEndpointConfigName(v string) *DescribeEndpointOutput { 6613 s.EndpointConfigName = &v 6614 return s 6615} 6616 6617// SetEndpointName sets the EndpointName field's value. 6618func (s *DescribeEndpointOutput) SetEndpointName(v string) *DescribeEndpointOutput { 6619 s.EndpointName = &v 6620 return s 6621} 6622 6623// SetEndpointStatus sets the EndpointStatus field's value. 6624func (s *DescribeEndpointOutput) SetEndpointStatus(v string) *DescribeEndpointOutput { 6625 s.EndpointStatus = &v 6626 return s 6627} 6628 6629// SetFailureReason sets the FailureReason field's value. 6630func (s *DescribeEndpointOutput) SetFailureReason(v string) *DescribeEndpointOutput { 6631 s.FailureReason = &v 6632 return s 6633} 6634 6635// SetLastModifiedTime sets the LastModifiedTime field's value. 6636func (s *DescribeEndpointOutput) SetLastModifiedTime(v time.Time) *DescribeEndpointOutput { 6637 s.LastModifiedTime = &v 6638 return s 6639} 6640 6641// SetProductionVariants sets the ProductionVariants field's value. 6642func (s *DescribeEndpointOutput) SetProductionVariants(v []*ProductionVariantSummary) *DescribeEndpointOutput { 6643 s.ProductionVariants = v 6644 return s 6645} 6646 6647type DescribeHyperParameterTuningJobInput struct { 6648 _ struct{} `type:"structure"` 6649 6650 // The name of the tuning job to describe. 6651 // 6652 // HyperParameterTuningJobName is a required field 6653 HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` 6654} 6655 6656// String returns the string representation 6657func (s DescribeHyperParameterTuningJobInput) String() string { 6658 return awsutil.Prettify(s) 6659} 6660 6661// GoString returns the string representation 6662func (s DescribeHyperParameterTuningJobInput) GoString() string { 6663 return s.String() 6664} 6665 6666// Validate inspects the fields of the type to determine if they are valid. 6667func (s *DescribeHyperParameterTuningJobInput) Validate() error { 6668 invalidParams := request.ErrInvalidParams{Context: "DescribeHyperParameterTuningJobInput"} 6669 if s.HyperParameterTuningJobName == nil { 6670 invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) 6671 } 6672 if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { 6673 invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) 6674 } 6675 6676 if invalidParams.Len() > 0 { 6677 return invalidParams 6678 } 6679 return nil 6680} 6681 6682// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. 6683func (s *DescribeHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *DescribeHyperParameterTuningJobInput { 6684 s.HyperParameterTuningJobName = &v 6685 return s 6686} 6687 6688type DescribeHyperParameterTuningJobOutput struct { 6689 _ struct{} `type:"structure"` 6690 6691 // A TrainingJobSummary object that describes the training job that completed 6692 // with the best current HyperParameterTuningJobObjective. 6693 BestTrainingJob *HyperParameterTrainingJobSummary `type:"structure"` 6694 6695 // The date and time that the tuning job started. 6696 // 6697 // CreationTime is a required field 6698 CreationTime *time.Time `type:"timestamp" required:"true"` 6699 6700 // If the tuning job failed, the reason it failed. 6701 FailureReason *string `type:"string"` 6702 6703 // The date and time that the tuning job ended. 6704 HyperParameterTuningEndTime *time.Time `type:"timestamp"` 6705 6706 // The Amazon Resource Name (ARN) of the tuning job. 6707 // 6708 // HyperParameterTuningJobArn is a required field 6709 HyperParameterTuningJobArn *string `type:"string" required:"true"` 6710 6711 // The HyperParameterTuningJobConfig object that specifies the configuration 6712 // of the tuning job. 6713 // 6714 // HyperParameterTuningJobConfig is a required field 6715 HyperParameterTuningJobConfig *HyperParameterTuningJobConfig `type:"structure" required:"true"` 6716 6717 // The name of the tuning job. 6718 // 6719 // HyperParameterTuningJobName is a required field 6720 HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` 6721 6722 // The status of the tuning job: InProgress, Completed, Failed, Stopping, or 6723 // Stopped. 6724 // 6725 // HyperParameterTuningJobStatus is a required field 6726 HyperParameterTuningJobStatus *string `type:"string" required:"true" enum:"HyperParameterTuningJobStatus"` 6727 6728 // The date and time that the status of the tuning job was modified. 6729 LastModifiedTime *time.Time `type:"timestamp"` 6730 6731 // The ObjectiveStatusCounters object that specifies the number of training 6732 // jobs, categorized by the status of their final objective metric, that this 6733 // tuning job launched. 6734 // 6735 // ObjectiveStatusCounters is a required field 6736 ObjectiveStatusCounters *ObjectiveStatusCounters `type:"structure" required:"true"` 6737 6738 // The HyperParameterTrainingJobDefinition object that specifies the definition 6739 // of the training jobs that this tuning job launches. 6740 // 6741 // TrainingJobDefinition is a required field 6742 TrainingJobDefinition *HyperParameterTrainingJobDefinition `type:"structure" required:"true"` 6743 6744 // The TrainingJobStatusCounters object that specifies the number of training 6745 // jobs, categorized by status, that this tuning job launched. 6746 // 6747 // TrainingJobStatusCounters is a required field 6748 TrainingJobStatusCounters *TrainingJobStatusCounters `type:"structure" required:"true"` 6749} 6750 6751// String returns the string representation 6752func (s DescribeHyperParameterTuningJobOutput) String() string { 6753 return awsutil.Prettify(s) 6754} 6755 6756// GoString returns the string representation 6757func (s DescribeHyperParameterTuningJobOutput) GoString() string { 6758 return s.String() 6759} 6760 6761// SetBestTrainingJob sets the BestTrainingJob field's value. 6762func (s *DescribeHyperParameterTuningJobOutput) SetBestTrainingJob(v *HyperParameterTrainingJobSummary) *DescribeHyperParameterTuningJobOutput { 6763 s.BestTrainingJob = v 6764 return s 6765} 6766 6767// SetCreationTime sets the CreationTime field's value. 6768func (s *DescribeHyperParameterTuningJobOutput) SetCreationTime(v time.Time) *DescribeHyperParameterTuningJobOutput { 6769 s.CreationTime = &v 6770 return s 6771} 6772 6773// SetFailureReason sets the FailureReason field's value. 6774func (s *DescribeHyperParameterTuningJobOutput) SetFailureReason(v string) *DescribeHyperParameterTuningJobOutput { 6775 s.FailureReason = &v 6776 return s 6777} 6778 6779// SetHyperParameterTuningEndTime sets the HyperParameterTuningEndTime field's value. 6780func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningEndTime(v time.Time) *DescribeHyperParameterTuningJobOutput { 6781 s.HyperParameterTuningEndTime = &v 6782 return s 6783} 6784 6785// SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value. 6786func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobArn(v string) *DescribeHyperParameterTuningJobOutput { 6787 s.HyperParameterTuningJobArn = &v 6788 return s 6789} 6790 6791// SetHyperParameterTuningJobConfig sets the HyperParameterTuningJobConfig field's value. 6792func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobConfig(v *HyperParameterTuningJobConfig) *DescribeHyperParameterTuningJobOutput { 6793 s.HyperParameterTuningJobConfig = v 6794 return s 6795} 6796 6797// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. 6798func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobName(v string) *DescribeHyperParameterTuningJobOutput { 6799 s.HyperParameterTuningJobName = &v 6800 return s 6801} 6802 6803// SetHyperParameterTuningJobStatus sets the HyperParameterTuningJobStatus field's value. 6804func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobStatus(v string) *DescribeHyperParameterTuningJobOutput { 6805 s.HyperParameterTuningJobStatus = &v 6806 return s 6807} 6808 6809// SetLastModifiedTime sets the LastModifiedTime field's value. 6810func (s *DescribeHyperParameterTuningJobOutput) SetLastModifiedTime(v time.Time) *DescribeHyperParameterTuningJobOutput { 6811 s.LastModifiedTime = &v 6812 return s 6813} 6814 6815// SetObjectiveStatusCounters sets the ObjectiveStatusCounters field's value. 6816func (s *DescribeHyperParameterTuningJobOutput) SetObjectiveStatusCounters(v *ObjectiveStatusCounters) *DescribeHyperParameterTuningJobOutput { 6817 s.ObjectiveStatusCounters = v 6818 return s 6819} 6820 6821// SetTrainingJobDefinition sets the TrainingJobDefinition field's value. 6822func (s *DescribeHyperParameterTuningJobOutput) SetTrainingJobDefinition(v *HyperParameterTrainingJobDefinition) *DescribeHyperParameterTuningJobOutput { 6823 s.TrainingJobDefinition = v 6824 return s 6825} 6826 6827// SetTrainingJobStatusCounters sets the TrainingJobStatusCounters field's value. 6828func (s *DescribeHyperParameterTuningJobOutput) SetTrainingJobStatusCounters(v *TrainingJobStatusCounters) *DescribeHyperParameterTuningJobOutput { 6829 s.TrainingJobStatusCounters = v 6830 return s 6831} 6832 6833type DescribeModelInput struct { 6834 _ struct{} `type:"structure"` 6835 6836 // The name of the model. 6837 // 6838 // ModelName is a required field 6839 ModelName *string `type:"string" required:"true"` 6840} 6841 6842// String returns the string representation 6843func (s DescribeModelInput) String() string { 6844 return awsutil.Prettify(s) 6845} 6846 6847// GoString returns the string representation 6848func (s DescribeModelInput) GoString() string { 6849 return s.String() 6850} 6851 6852// Validate inspects the fields of the type to determine if they are valid. 6853func (s *DescribeModelInput) Validate() error { 6854 invalidParams := request.ErrInvalidParams{Context: "DescribeModelInput"} 6855 if s.ModelName == nil { 6856 invalidParams.Add(request.NewErrParamRequired("ModelName")) 6857 } 6858 6859 if invalidParams.Len() > 0 { 6860 return invalidParams 6861 } 6862 return nil 6863} 6864 6865// SetModelName sets the ModelName field's value. 6866func (s *DescribeModelInput) SetModelName(v string) *DescribeModelInput { 6867 s.ModelName = &v 6868 return s 6869} 6870 6871type DescribeModelOutput struct { 6872 _ struct{} `type:"structure"` 6873 6874 // A timestamp that shows when the model was created. 6875 // 6876 // CreationTime is a required field 6877 CreationTime *time.Time `type:"timestamp" required:"true"` 6878 6879 // The Amazon Resource Name (ARN) of the IAM role that you specified for the 6880 // model. 6881 // 6882 // ExecutionRoleArn is a required field 6883 ExecutionRoleArn *string `min:"20" type:"string" required:"true"` 6884 6885 // The Amazon Resource Name (ARN) of the model. 6886 // 6887 // ModelArn is a required field 6888 ModelArn *string `min:"20" type:"string" required:"true"` 6889 6890 // Name of the Amazon SageMaker model. 6891 // 6892 // ModelName is a required field 6893 ModelName *string `type:"string" required:"true"` 6894 6895 // The location of the primary inference code, associated artifacts, and custom 6896 // environment map that the inference code uses when it is deployed in production. 6897 // 6898 // PrimaryContainer is a required field 6899 PrimaryContainer *ContainerDefinition `type:"structure" required:"true"` 6900 6901 // A VpcConfig object that specifies the VPC that this model has access to. 6902 // For more information, see host-vpc 6903 VpcConfig *VpcConfig `type:"structure"` 6904} 6905 6906// String returns the string representation 6907func (s DescribeModelOutput) String() string { 6908 return awsutil.Prettify(s) 6909} 6910 6911// GoString returns the string representation 6912func (s DescribeModelOutput) GoString() string { 6913 return s.String() 6914} 6915 6916// SetCreationTime sets the CreationTime field's value. 6917func (s *DescribeModelOutput) SetCreationTime(v time.Time) *DescribeModelOutput { 6918 s.CreationTime = &v 6919 return s 6920} 6921 6922// SetExecutionRoleArn sets the ExecutionRoleArn field's value. 6923func (s *DescribeModelOutput) SetExecutionRoleArn(v string) *DescribeModelOutput { 6924 s.ExecutionRoleArn = &v 6925 return s 6926} 6927 6928// SetModelArn sets the ModelArn field's value. 6929func (s *DescribeModelOutput) SetModelArn(v string) *DescribeModelOutput { 6930 s.ModelArn = &v 6931 return s 6932} 6933 6934// SetModelName sets the ModelName field's value. 6935func (s *DescribeModelOutput) SetModelName(v string) *DescribeModelOutput { 6936 s.ModelName = &v 6937 return s 6938} 6939 6940// SetPrimaryContainer sets the PrimaryContainer field's value. 6941func (s *DescribeModelOutput) SetPrimaryContainer(v *ContainerDefinition) *DescribeModelOutput { 6942 s.PrimaryContainer = v 6943 return s 6944} 6945 6946// SetVpcConfig sets the VpcConfig field's value. 6947func (s *DescribeModelOutput) SetVpcConfig(v *VpcConfig) *DescribeModelOutput { 6948 s.VpcConfig = v 6949 return s 6950} 6951 6952type DescribeNotebookInstanceInput struct { 6953 _ struct{} `type:"structure"` 6954 6955 // The name of the notebook instance that you want information about. 6956 // 6957 // NotebookInstanceName is a required field 6958 NotebookInstanceName *string `type:"string" required:"true"` 6959} 6960 6961// String returns the string representation 6962func (s DescribeNotebookInstanceInput) String() string { 6963 return awsutil.Prettify(s) 6964} 6965 6966// GoString returns the string representation 6967func (s DescribeNotebookInstanceInput) GoString() string { 6968 return s.String() 6969} 6970 6971// Validate inspects the fields of the type to determine if they are valid. 6972func (s *DescribeNotebookInstanceInput) Validate() error { 6973 invalidParams := request.ErrInvalidParams{Context: "DescribeNotebookInstanceInput"} 6974 if s.NotebookInstanceName == nil { 6975 invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) 6976 } 6977 6978 if invalidParams.Len() > 0 { 6979 return invalidParams 6980 } 6981 return nil 6982} 6983 6984// SetNotebookInstanceName sets the NotebookInstanceName field's value. 6985func (s *DescribeNotebookInstanceInput) SetNotebookInstanceName(v string) *DescribeNotebookInstanceInput { 6986 s.NotebookInstanceName = &v 6987 return s 6988} 6989 6990type DescribeNotebookInstanceLifecycleConfigInput struct { 6991 _ struct{} `type:"structure"` 6992 6993 // The name of the lifecycle configuration to describe. 6994 // 6995 // NotebookInstanceLifecycleConfigName is a required field 6996 NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` 6997} 6998 6999// String returns the string representation 7000func (s DescribeNotebookInstanceLifecycleConfigInput) String() string { 7001 return awsutil.Prettify(s) 7002} 7003 7004// GoString returns the string representation 7005func (s DescribeNotebookInstanceLifecycleConfigInput) GoString() string { 7006 return s.String() 7007} 7008 7009// Validate inspects the fields of the type to determine if they are valid. 7010func (s *DescribeNotebookInstanceLifecycleConfigInput) Validate() error { 7011 invalidParams := request.ErrInvalidParams{Context: "DescribeNotebookInstanceLifecycleConfigInput"} 7012 if s.NotebookInstanceLifecycleConfigName == nil { 7013 invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) 7014 } 7015 7016 if invalidParams.Len() > 0 { 7017 return invalidParams 7018 } 7019 return nil 7020} 7021 7022// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. 7023func (s *DescribeNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceLifecycleConfigInput { 7024 s.NotebookInstanceLifecycleConfigName = &v 7025 return s 7026} 7027 7028type DescribeNotebookInstanceLifecycleConfigOutput struct { 7029 _ struct{} `type:"structure"` 7030 7031 // A timestamp that tells when the lifecycle configuration was created. 7032 CreationTime *time.Time `type:"timestamp"` 7033 7034 // A timestamp that tells when the lifecycle configuration was last modified. 7035 LastModifiedTime *time.Time `type:"timestamp"` 7036 7037 // The Amazon Resource Name (ARN) of the lifecycle configuration. 7038 NotebookInstanceLifecycleConfigArn *string `type:"string"` 7039 7040 // The name of the lifecycle configuration. 7041 NotebookInstanceLifecycleConfigName *string `type:"string"` 7042 7043 // The shell script that runs only once, when you create a notebook instance. 7044 OnCreate []*NotebookInstanceLifecycleHook `type:"list"` 7045 7046 // The shell script that runs every time you start a notebook instance, including 7047 // when you create the notebook instance. 7048 OnStart []*NotebookInstanceLifecycleHook `type:"list"` 7049} 7050 7051// String returns the string representation 7052func (s DescribeNotebookInstanceLifecycleConfigOutput) String() string { 7053 return awsutil.Prettify(s) 7054} 7055 7056// GoString returns the string representation 7057func (s DescribeNotebookInstanceLifecycleConfigOutput) GoString() string { 7058 return s.String() 7059} 7060 7061// SetCreationTime sets the CreationTime field's value. 7062func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetCreationTime(v time.Time) *DescribeNotebookInstanceLifecycleConfigOutput { 7063 s.CreationTime = &v 7064 return s 7065} 7066 7067// SetLastModifiedTime sets the LastModifiedTime field's value. 7068func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetLastModifiedTime(v time.Time) *DescribeNotebookInstanceLifecycleConfigOutput { 7069 s.LastModifiedTime = &v 7070 return s 7071} 7072 7073// SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value. 7074func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigArn(v string) *DescribeNotebookInstanceLifecycleConfigOutput { 7075 s.NotebookInstanceLifecycleConfigArn = &v 7076 return s 7077} 7078 7079// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. 7080func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceLifecycleConfigOutput { 7081 s.NotebookInstanceLifecycleConfigName = &v 7082 return s 7083} 7084 7085// SetOnCreate sets the OnCreate field's value. 7086func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *DescribeNotebookInstanceLifecycleConfigOutput { 7087 s.OnCreate = v 7088 return s 7089} 7090 7091// SetOnStart sets the OnStart field's value. 7092func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetOnStart(v []*NotebookInstanceLifecycleHook) *DescribeNotebookInstanceLifecycleConfigOutput { 7093 s.OnStart = v 7094 return s 7095} 7096 7097type DescribeNotebookInstanceOutput struct { 7098 _ struct{} `type:"structure"` 7099 7100 // A timestamp. Use this parameter to return the time when the notebook instance 7101 // was created 7102 CreationTime *time.Time `type:"timestamp"` 7103 7104 // Describes whether Amazon SageMaker provides internet access to the notebook 7105 // instance. If this value is set to Disabled, he notebook instance does not 7106 // have internet access, and cannot connect to Amazon SageMaker training and 7107 // endpoint services. 7108 // 7109 // For more information, see appendix-notebook-and-internet-access. 7110 DirectInternetAccess *string `type:"string" enum:"DirectInternetAccess"` 7111 7112 // If status is failed, the reason it failed. 7113 FailureReason *string `type:"string"` 7114 7115 // The type of ML compute instance running on the notebook instance. 7116 InstanceType *string `type:"string" enum:"InstanceType"` 7117 7118 // AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the 7119 // ML storage volume attached to the instance. 7120 KmsKeyId *string `type:"string"` 7121 7122 // A timestamp. Use this parameter to retrieve the time when the notebook instance 7123 // was last modified. 7124 LastModifiedTime *time.Time `type:"timestamp"` 7125 7126 // Network interface IDs that Amazon SageMaker created at the time of creating 7127 // the instance. 7128 NetworkInterfaceId *string `type:"string"` 7129 7130 // The Amazon Resource Name (ARN) of the notebook instance. 7131 NotebookInstanceArn *string `type:"string"` 7132 7133 // Returns the name of a notebook instance lifecycle configuration. 7134 // 7135 // For information about notebook instance lifestyle configurations, see notebook-lifecycle-config. 7136 NotebookInstanceLifecycleConfigName *string `type:"string"` 7137 7138 // Name of the Amazon SageMaker notebook instance. 7139 NotebookInstanceName *string `type:"string"` 7140 7141 // The status of the notebook instance. 7142 NotebookInstanceStatus *string `type:"string" enum:"NotebookInstanceStatus"` 7143 7144 // Amazon Resource Name (ARN) of the IAM role associated with the instance. 7145 RoleArn *string `min:"20" type:"string"` 7146 7147 // The IDs of the VPC security groups. 7148 SecurityGroups []*string `type:"list"` 7149 7150 // The ID of the VPC subnet. 7151 SubnetId *string `type:"string"` 7152 7153 // The URL that you use to connect to the Jupyter notebook that is running in 7154 // your notebook instance. 7155 Url *string `type:"string"` 7156} 7157 7158// String returns the string representation 7159func (s DescribeNotebookInstanceOutput) String() string { 7160 return awsutil.Prettify(s) 7161} 7162 7163// GoString returns the string representation 7164func (s DescribeNotebookInstanceOutput) GoString() string { 7165 return s.String() 7166} 7167 7168// SetCreationTime sets the CreationTime field's value. 7169func (s *DescribeNotebookInstanceOutput) SetCreationTime(v time.Time) *DescribeNotebookInstanceOutput { 7170 s.CreationTime = &v 7171 return s 7172} 7173 7174// SetDirectInternetAccess sets the DirectInternetAccess field's value. 7175func (s *DescribeNotebookInstanceOutput) SetDirectInternetAccess(v string) *DescribeNotebookInstanceOutput { 7176 s.DirectInternetAccess = &v 7177 return s 7178} 7179 7180// SetFailureReason sets the FailureReason field's value. 7181func (s *DescribeNotebookInstanceOutput) SetFailureReason(v string) *DescribeNotebookInstanceOutput { 7182 s.FailureReason = &v 7183 return s 7184} 7185 7186// SetInstanceType sets the InstanceType field's value. 7187func (s *DescribeNotebookInstanceOutput) SetInstanceType(v string) *DescribeNotebookInstanceOutput { 7188 s.InstanceType = &v 7189 return s 7190} 7191 7192// SetKmsKeyId sets the KmsKeyId field's value. 7193func (s *DescribeNotebookInstanceOutput) SetKmsKeyId(v string) *DescribeNotebookInstanceOutput { 7194 s.KmsKeyId = &v 7195 return s 7196} 7197 7198// SetLastModifiedTime sets the LastModifiedTime field's value. 7199func (s *DescribeNotebookInstanceOutput) SetLastModifiedTime(v time.Time) *DescribeNotebookInstanceOutput { 7200 s.LastModifiedTime = &v 7201 return s 7202} 7203 7204// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. 7205func (s *DescribeNotebookInstanceOutput) SetNetworkInterfaceId(v string) *DescribeNotebookInstanceOutput { 7206 s.NetworkInterfaceId = &v 7207 return s 7208} 7209 7210// SetNotebookInstanceArn sets the NotebookInstanceArn field's value. 7211func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceArn(v string) *DescribeNotebookInstanceOutput { 7212 s.NotebookInstanceArn = &v 7213 return s 7214} 7215 7216// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. 7217func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceOutput { 7218 s.NotebookInstanceLifecycleConfigName = &v 7219 return s 7220} 7221 7222// SetNotebookInstanceName sets the NotebookInstanceName field's value. 7223func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceName(v string) *DescribeNotebookInstanceOutput { 7224 s.NotebookInstanceName = &v 7225 return s 7226} 7227 7228// SetNotebookInstanceStatus sets the NotebookInstanceStatus field's value. 7229func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceStatus(v string) *DescribeNotebookInstanceOutput { 7230 s.NotebookInstanceStatus = &v 7231 return s 7232} 7233 7234// SetRoleArn sets the RoleArn field's value. 7235func (s *DescribeNotebookInstanceOutput) SetRoleArn(v string) *DescribeNotebookInstanceOutput { 7236 s.RoleArn = &v 7237 return s 7238} 7239 7240// SetSecurityGroups sets the SecurityGroups field's value. 7241func (s *DescribeNotebookInstanceOutput) SetSecurityGroups(v []*string) *DescribeNotebookInstanceOutput { 7242 s.SecurityGroups = v 7243 return s 7244} 7245 7246// SetSubnetId sets the SubnetId field's value. 7247func (s *DescribeNotebookInstanceOutput) SetSubnetId(v string) *DescribeNotebookInstanceOutput { 7248 s.SubnetId = &v 7249 return s 7250} 7251 7252// SetUrl sets the Url field's value. 7253func (s *DescribeNotebookInstanceOutput) SetUrl(v string) *DescribeNotebookInstanceOutput { 7254 s.Url = &v 7255 return s 7256} 7257 7258type DescribeTrainingJobInput struct { 7259 _ struct{} `type:"structure"` 7260 7261 // The name of the training job. 7262 // 7263 // TrainingJobName is a required field 7264 TrainingJobName *string `min:"1" type:"string" required:"true"` 7265} 7266 7267// String returns the string representation 7268func (s DescribeTrainingJobInput) String() string { 7269 return awsutil.Prettify(s) 7270} 7271 7272// GoString returns the string representation 7273func (s DescribeTrainingJobInput) GoString() string { 7274 return s.String() 7275} 7276 7277// Validate inspects the fields of the type to determine if they are valid. 7278func (s *DescribeTrainingJobInput) Validate() error { 7279 invalidParams := request.ErrInvalidParams{Context: "DescribeTrainingJobInput"} 7280 if s.TrainingJobName == nil { 7281 invalidParams.Add(request.NewErrParamRequired("TrainingJobName")) 7282 } 7283 if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 { 7284 invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1)) 7285 } 7286 7287 if invalidParams.Len() > 0 { 7288 return invalidParams 7289 } 7290 return nil 7291} 7292 7293// SetTrainingJobName sets the TrainingJobName field's value. 7294func (s *DescribeTrainingJobInput) SetTrainingJobName(v string) *DescribeTrainingJobInput { 7295 s.TrainingJobName = &v 7296 return s 7297} 7298 7299type DescribeTrainingJobOutput struct { 7300 _ struct{} `type:"structure"` 7301 7302 // Information about the algorithm used for training, and algorithm metadata. 7303 // 7304 // AlgorithmSpecification is a required field 7305 AlgorithmSpecification *AlgorithmSpecification `type:"structure" required:"true"` 7306 7307 // A timestamp that indicates when the training job was created. 7308 // 7309 // CreationTime is a required field 7310 CreationTime *time.Time `type:"timestamp" required:"true"` 7311 7312 // If the training job failed, the reason it failed. 7313 FailureReason *string `type:"string"` 7314 7315 // Algorithm-specific parameters. 7316 HyperParameters map[string]*string `type:"map"` 7317 7318 // An array of Channel objects that describes each data input channel. 7319 // 7320 // InputDataConfig is a required field 7321 InputDataConfig []*Channel `min:"1" type:"list" required:"true"` 7322 7323 // A timestamp that indicates when the status of the training job was last modified. 7324 LastModifiedTime *time.Time `type:"timestamp"` 7325 7326 // Information about the Amazon S3 location that is configured for storing model 7327 // artifacts. 7328 // 7329 // ModelArtifacts is a required field 7330 ModelArtifacts *ModelArtifacts `type:"structure" required:"true"` 7331 7332 // The S3 path where model artifacts that you configured when creating the job 7333 // are stored. Amazon SageMaker creates subfolders for model artifacts. 7334 OutputDataConfig *OutputDataConfig `type:"structure"` 7335 7336 // Resources, including ML compute instances and ML storage volumes, that are 7337 // configured for model training. 7338 // 7339 // ResourceConfig is a required field 7340 ResourceConfig *ResourceConfig `type:"structure" required:"true"` 7341 7342 // The AWS Identity and Access Management (IAM) role configured for the training 7343 // job. 7344 RoleArn *string `min:"20" type:"string"` 7345 7346 // Provides granular information about the system state. For more information, 7347 // see TrainingJobStatus. 7348 // 7349 // * Starting - starting the training job. 7350 // 7351 // * LaunchingMLInstances - launching ML instances for the training job. 7352 // 7353 // * PreparingTrainingStack - preparing the ML instances for the training 7354 // job. 7355 // 7356 // * Downloading - downloading the input data. 7357 // 7358 // * DownloadingTrainingImage - downloading the training algorithm image. 7359 // 7360 // * Training - model training is in progress. 7361 // 7362 // * Uploading - uploading the trained model. 7363 // 7364 // * Stopping - stopping the training job. 7365 // 7366 // * Stopped - the training job has stopped. 7367 // 7368 // * MaxRuntimeExceeded - the training exceed the specified the max run time, 7369 // which means the training job is stopping. 7370 // 7371 // * Completed - the training job has completed. 7372 // 7373 // * Failed - the training job has failed. The failure reason is provided 7374 // in the StatusMessage. 7375 // 7376 // The valid values for SecondaryStatus are subject to change. They primary 7377 // provide information on the progress of the training job. 7378 // 7379 // SecondaryStatus is a required field 7380 SecondaryStatus *string `type:"string" required:"true" enum:"SecondaryStatus"` 7381 7382 // A log of time-ordered secondary statuses that a training job has transitioned. 7383 SecondaryStatusTransitions []*SecondaryStatusTransition `type:"list"` 7384 7385 // The condition under which to stop the training job. 7386 // 7387 // StoppingCondition is a required field 7388 StoppingCondition *StoppingCondition `type:"structure" required:"true"` 7389 7390 // Indicates the time when the training job ends on training instances. You 7391 // are billed for the time interval between the value of TrainingStartTime and 7392 // this time. For successful jobs and stopped jobs, this is the time after model 7393 // artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker 7394 // detects a job failure. 7395 TrainingEndTime *time.Time `type:"timestamp"` 7396 7397 // The Amazon Resource Name (ARN) of the training job. 7398 // 7399 // TrainingJobArn is a required field 7400 TrainingJobArn *string `type:"string" required:"true"` 7401 7402 // Name of the model training job. 7403 // 7404 // TrainingJobName is a required field 7405 TrainingJobName *string `min:"1" type:"string" required:"true"` 7406 7407 // The status of the training job. 7408 // 7409 // For the InProgress status, Amazon SageMaker can return these secondary statuses: 7410 // 7411 // * Starting - Preparing for training. 7412 // 7413 // * Downloading - Optional stage for algorithms that support File training 7414 // input mode. It indicates data is being downloaded to ML storage volumes. 7415 // 7416 // * Training - Training is in progress. 7417 // 7418 // * Uploading - Training is complete and model upload is in progress. 7419 // 7420 // For the Stopped training status, Amazon SageMaker can return these secondary 7421 // statuses: 7422 // 7423 // * MaxRuntimeExceeded - Job stopped as a result of maximum allowed runtime 7424 // exceeded. 7425 // 7426 // TrainingJobStatus is a required field 7427 TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"` 7428 7429 // Indicates the time when the training job starts on training instances. You 7430 // are billed for the time interval between this time and the value of TrainingEndTime. 7431 // The start time in CloudWatch Logs might be later than this time. The difference 7432 // is due to the time it takes to download the training data and to the size 7433 // of the training container. 7434 TrainingStartTime *time.Time `type:"timestamp"` 7435 7436 // The Amazon Resource Name (ARN) of the associated hyperparameter tuning job 7437 // if the training job was launched by a hyperparameter tuning job. 7438 TuningJobArn *string `type:"string"` 7439 7440 // A VpcConfig object that specifies the VPC that this training job has access 7441 // to. For more information, see train-vpc. 7442 VpcConfig *VpcConfig `type:"structure"` 7443} 7444 7445// String returns the string representation 7446func (s DescribeTrainingJobOutput) String() string { 7447 return awsutil.Prettify(s) 7448} 7449 7450// GoString returns the string representation 7451func (s DescribeTrainingJobOutput) GoString() string { 7452 return s.String() 7453} 7454 7455// SetAlgorithmSpecification sets the AlgorithmSpecification field's value. 7456func (s *DescribeTrainingJobOutput) SetAlgorithmSpecification(v *AlgorithmSpecification) *DescribeTrainingJobOutput { 7457 s.AlgorithmSpecification = v 7458 return s 7459} 7460 7461// SetCreationTime sets the CreationTime field's value. 7462func (s *DescribeTrainingJobOutput) SetCreationTime(v time.Time) *DescribeTrainingJobOutput { 7463 s.CreationTime = &v 7464 return s 7465} 7466 7467// SetFailureReason sets the FailureReason field's value. 7468func (s *DescribeTrainingJobOutput) SetFailureReason(v string) *DescribeTrainingJobOutput { 7469 s.FailureReason = &v 7470 return s 7471} 7472 7473// SetHyperParameters sets the HyperParameters field's value. 7474func (s *DescribeTrainingJobOutput) SetHyperParameters(v map[string]*string) *DescribeTrainingJobOutput { 7475 s.HyperParameters = v 7476 return s 7477} 7478 7479// SetInputDataConfig sets the InputDataConfig field's value. 7480func (s *DescribeTrainingJobOutput) SetInputDataConfig(v []*Channel) *DescribeTrainingJobOutput { 7481 s.InputDataConfig = v 7482 return s 7483} 7484 7485// SetLastModifiedTime sets the LastModifiedTime field's value. 7486func (s *DescribeTrainingJobOutput) SetLastModifiedTime(v time.Time) *DescribeTrainingJobOutput { 7487 s.LastModifiedTime = &v 7488 return s 7489} 7490 7491// SetModelArtifacts sets the ModelArtifacts field's value. 7492func (s *DescribeTrainingJobOutput) SetModelArtifacts(v *ModelArtifacts) *DescribeTrainingJobOutput { 7493 s.ModelArtifacts = v 7494 return s 7495} 7496 7497// SetOutputDataConfig sets the OutputDataConfig field's value. 7498func (s *DescribeTrainingJobOutput) SetOutputDataConfig(v *OutputDataConfig) *DescribeTrainingJobOutput { 7499 s.OutputDataConfig = v 7500 return s 7501} 7502 7503// SetResourceConfig sets the ResourceConfig field's value. 7504func (s *DescribeTrainingJobOutput) SetResourceConfig(v *ResourceConfig) *DescribeTrainingJobOutput { 7505 s.ResourceConfig = v 7506 return s 7507} 7508 7509// SetRoleArn sets the RoleArn field's value. 7510func (s *DescribeTrainingJobOutput) SetRoleArn(v string) *DescribeTrainingJobOutput { 7511 s.RoleArn = &v 7512 return s 7513} 7514 7515// SetSecondaryStatus sets the SecondaryStatus field's value. 7516func (s *DescribeTrainingJobOutput) SetSecondaryStatus(v string) *DescribeTrainingJobOutput { 7517 s.SecondaryStatus = &v 7518 return s 7519} 7520 7521// SetSecondaryStatusTransitions sets the SecondaryStatusTransitions field's value. 7522func (s *DescribeTrainingJobOutput) SetSecondaryStatusTransitions(v []*SecondaryStatusTransition) *DescribeTrainingJobOutput { 7523 s.SecondaryStatusTransitions = v 7524 return s 7525} 7526 7527// SetStoppingCondition sets the StoppingCondition field's value. 7528func (s *DescribeTrainingJobOutput) SetStoppingCondition(v *StoppingCondition) *DescribeTrainingJobOutput { 7529 s.StoppingCondition = v 7530 return s 7531} 7532 7533// SetTrainingEndTime sets the TrainingEndTime field's value. 7534func (s *DescribeTrainingJobOutput) SetTrainingEndTime(v time.Time) *DescribeTrainingJobOutput { 7535 s.TrainingEndTime = &v 7536 return s 7537} 7538 7539// SetTrainingJobArn sets the TrainingJobArn field's value. 7540func (s *DescribeTrainingJobOutput) SetTrainingJobArn(v string) *DescribeTrainingJobOutput { 7541 s.TrainingJobArn = &v 7542 return s 7543} 7544 7545// SetTrainingJobName sets the TrainingJobName field's value. 7546func (s *DescribeTrainingJobOutput) SetTrainingJobName(v string) *DescribeTrainingJobOutput { 7547 s.TrainingJobName = &v 7548 return s 7549} 7550 7551// SetTrainingJobStatus sets the TrainingJobStatus field's value. 7552func (s *DescribeTrainingJobOutput) SetTrainingJobStatus(v string) *DescribeTrainingJobOutput { 7553 s.TrainingJobStatus = &v 7554 return s 7555} 7556 7557// SetTrainingStartTime sets the TrainingStartTime field's value. 7558func (s *DescribeTrainingJobOutput) SetTrainingStartTime(v time.Time) *DescribeTrainingJobOutput { 7559 s.TrainingStartTime = &v 7560 return s 7561} 7562 7563// SetTuningJobArn sets the TuningJobArn field's value. 7564func (s *DescribeTrainingJobOutput) SetTuningJobArn(v string) *DescribeTrainingJobOutput { 7565 s.TuningJobArn = &v 7566 return s 7567} 7568 7569// SetVpcConfig sets the VpcConfig field's value. 7570func (s *DescribeTrainingJobOutput) SetVpcConfig(v *VpcConfig) *DescribeTrainingJobOutput { 7571 s.VpcConfig = v 7572 return s 7573} 7574 7575type DescribeTransformJobInput struct { 7576 _ struct{} `type:"structure"` 7577 7578 // The name of the transform job that you want to view details of. 7579 // 7580 // TransformJobName is a required field 7581 TransformJobName *string `min:"1" type:"string" required:"true"` 7582} 7583 7584// String returns the string representation 7585func (s DescribeTransformJobInput) String() string { 7586 return awsutil.Prettify(s) 7587} 7588 7589// GoString returns the string representation 7590func (s DescribeTransformJobInput) GoString() string { 7591 return s.String() 7592} 7593 7594// Validate inspects the fields of the type to determine if they are valid. 7595func (s *DescribeTransformJobInput) Validate() error { 7596 invalidParams := request.ErrInvalidParams{Context: "DescribeTransformJobInput"} 7597 if s.TransformJobName == nil { 7598 invalidParams.Add(request.NewErrParamRequired("TransformJobName")) 7599 } 7600 if s.TransformJobName != nil && len(*s.TransformJobName) < 1 { 7601 invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1)) 7602 } 7603 7604 if invalidParams.Len() > 0 { 7605 return invalidParams 7606 } 7607 return nil 7608} 7609 7610// SetTransformJobName sets the TransformJobName field's value. 7611func (s *DescribeTransformJobInput) SetTransformJobName(v string) *DescribeTransformJobInput { 7612 s.TransformJobName = &v 7613 return s 7614} 7615 7616type DescribeTransformJobOutput struct { 7617 _ struct{} `type:"structure"` 7618 7619 // SingleRecord means only one record was used per a batch. MultiRecord means 7620 // batches contained as many records that could possibly fit within the MaxPayloadInMB 7621 // limit. 7622 BatchStrategy *string `type:"string" enum:"BatchStrategy"` 7623 7624 // A timestamp that shows when the transform Job was created. 7625 // 7626 // CreationTime is a required field 7627 CreationTime *time.Time `type:"timestamp" required:"true"` 7628 7629 Environment map[string]*string `type:"map"` 7630 7631 // If the transform job failed, the reason that it failed. 7632 FailureReason *string `type:"string"` 7633 7634 // The maximum number of parallel requests on each instance node that can be 7635 // launched in a transform job. The default value is 1. 7636 MaxConcurrentTransforms *int64 `type:"integer"` 7637 7638 // The maximum payload size , in MB used in the transform job. 7639 MaxPayloadInMB *int64 `type:"integer"` 7640 7641 // The name of the model used in the transform job. 7642 // 7643 // ModelName is a required field 7644 ModelName *string `type:"string" required:"true"` 7645 7646 // Indicates when the transform job is Completed, Stopped, or Failed. You are 7647 // billed for the time interval between this time and the value of TransformStartTime. 7648 TransformEndTime *time.Time `type:"timestamp"` 7649 7650 // Describes the dataset to be transformed and the Amazon S3 location where 7651 // it is stored. 7652 // 7653 // TransformInput is a required field 7654 TransformInput *TransformInput `type:"structure" required:"true"` 7655 7656 // The Amazon Resource Name (ARN) of the transform job. 7657 // 7658 // TransformJobArn is a required field 7659 TransformJobArn *string `type:"string" required:"true"` 7660 7661 // The name of the transform job. 7662 // 7663 // TransformJobName is a required field 7664 TransformJobName *string `min:"1" type:"string" required:"true"` 7665 7666 // The status of the transform job. If the transform job failed, the reason 7667 // is returned in the FailureReason field. 7668 // 7669 // TransformJobStatus is a required field 7670 TransformJobStatus *string `type:"string" required:"true" enum:"TransformJobStatus"` 7671 7672 // Identifies the Amazon S3 location where you want Amazon SageMaker to save 7673 // the results from the transform job. 7674 TransformOutput *TransformOutput `type:"structure"` 7675 7676 // Describes the resources, including ML instance types and ML instance count, 7677 // to use for the transform job. 7678 // 7679 // TransformResources is a required field 7680 TransformResources *TransformResources `type:"structure" required:"true"` 7681 7682 // Indicates when the transform job starts on ML instances. You are billed for 7683 // the time interval between this time and the value of TransformEndTime. 7684 TransformStartTime *time.Time `type:"timestamp"` 7685} 7686 7687// String returns the string representation 7688func (s DescribeTransformJobOutput) String() string { 7689 return awsutil.Prettify(s) 7690} 7691 7692// GoString returns the string representation 7693func (s DescribeTransformJobOutput) GoString() string { 7694 return s.String() 7695} 7696 7697// SetBatchStrategy sets the BatchStrategy field's value. 7698func (s *DescribeTransformJobOutput) SetBatchStrategy(v string) *DescribeTransformJobOutput { 7699 s.BatchStrategy = &v 7700 return s 7701} 7702 7703// SetCreationTime sets the CreationTime field's value. 7704func (s *DescribeTransformJobOutput) SetCreationTime(v time.Time) *DescribeTransformJobOutput { 7705 s.CreationTime = &v 7706 return s 7707} 7708 7709// SetEnvironment sets the Environment field's value. 7710func (s *DescribeTransformJobOutput) SetEnvironment(v map[string]*string) *DescribeTransformJobOutput { 7711 s.Environment = v 7712 return s 7713} 7714 7715// SetFailureReason sets the FailureReason field's value. 7716func (s *DescribeTransformJobOutput) SetFailureReason(v string) *DescribeTransformJobOutput { 7717 s.FailureReason = &v 7718 return s 7719} 7720 7721// SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value. 7722func (s *DescribeTransformJobOutput) SetMaxConcurrentTransforms(v int64) *DescribeTransformJobOutput { 7723 s.MaxConcurrentTransforms = &v 7724 return s 7725} 7726 7727// SetMaxPayloadInMB sets the MaxPayloadInMB field's value. 7728func (s *DescribeTransformJobOutput) SetMaxPayloadInMB(v int64) *DescribeTransformJobOutput { 7729 s.MaxPayloadInMB = &v 7730 return s 7731} 7732 7733// SetModelName sets the ModelName field's value. 7734func (s *DescribeTransformJobOutput) SetModelName(v string) *DescribeTransformJobOutput { 7735 s.ModelName = &v 7736 return s 7737} 7738 7739// SetTransformEndTime sets the TransformEndTime field's value. 7740func (s *DescribeTransformJobOutput) SetTransformEndTime(v time.Time) *DescribeTransformJobOutput { 7741 s.TransformEndTime = &v 7742 return s 7743} 7744 7745// SetTransformInput sets the TransformInput field's value. 7746func (s *DescribeTransformJobOutput) SetTransformInput(v *TransformInput) *DescribeTransformJobOutput { 7747 s.TransformInput = v 7748 return s 7749} 7750 7751// SetTransformJobArn sets the TransformJobArn field's value. 7752func (s *DescribeTransformJobOutput) SetTransformJobArn(v string) *DescribeTransformJobOutput { 7753 s.TransformJobArn = &v 7754 return s 7755} 7756 7757// SetTransformJobName sets the TransformJobName field's value. 7758func (s *DescribeTransformJobOutput) SetTransformJobName(v string) *DescribeTransformJobOutput { 7759 s.TransformJobName = &v 7760 return s 7761} 7762 7763// SetTransformJobStatus sets the TransformJobStatus field's value. 7764func (s *DescribeTransformJobOutput) SetTransformJobStatus(v string) *DescribeTransformJobOutput { 7765 s.TransformJobStatus = &v 7766 return s 7767} 7768 7769// SetTransformOutput sets the TransformOutput field's value. 7770func (s *DescribeTransformJobOutput) SetTransformOutput(v *TransformOutput) *DescribeTransformJobOutput { 7771 s.TransformOutput = v 7772 return s 7773} 7774 7775// SetTransformResources sets the TransformResources field's value. 7776func (s *DescribeTransformJobOutput) SetTransformResources(v *TransformResources) *DescribeTransformJobOutput { 7777 s.TransformResources = v 7778 return s 7779} 7780 7781// SetTransformStartTime sets the TransformStartTime field's value. 7782func (s *DescribeTransformJobOutput) SetTransformStartTime(v time.Time) *DescribeTransformJobOutput { 7783 s.TransformStartTime = &v 7784 return s 7785} 7786 7787// Specifies weight and capacity values for a production variant. 7788type DesiredWeightAndCapacity struct { 7789 _ struct{} `type:"structure"` 7790 7791 // The variant's capacity. 7792 DesiredInstanceCount *int64 `min:"1" type:"integer"` 7793 7794 // The variant's weight. 7795 DesiredWeight *float64 `type:"float"` 7796 7797 // The name of the variant to update. 7798 // 7799 // VariantName is a required field 7800 VariantName *string `type:"string" required:"true"` 7801} 7802 7803// String returns the string representation 7804func (s DesiredWeightAndCapacity) String() string { 7805 return awsutil.Prettify(s) 7806} 7807 7808// GoString returns the string representation 7809func (s DesiredWeightAndCapacity) GoString() string { 7810 return s.String() 7811} 7812 7813// Validate inspects the fields of the type to determine if they are valid. 7814func (s *DesiredWeightAndCapacity) Validate() error { 7815 invalidParams := request.ErrInvalidParams{Context: "DesiredWeightAndCapacity"} 7816 if s.DesiredInstanceCount != nil && *s.DesiredInstanceCount < 1 { 7817 invalidParams.Add(request.NewErrParamMinValue("DesiredInstanceCount", 1)) 7818 } 7819 if s.VariantName == nil { 7820 invalidParams.Add(request.NewErrParamRequired("VariantName")) 7821 } 7822 7823 if invalidParams.Len() > 0 { 7824 return invalidParams 7825 } 7826 return nil 7827} 7828 7829// SetDesiredInstanceCount sets the DesiredInstanceCount field's value. 7830func (s *DesiredWeightAndCapacity) SetDesiredInstanceCount(v int64) *DesiredWeightAndCapacity { 7831 s.DesiredInstanceCount = &v 7832 return s 7833} 7834 7835// SetDesiredWeight sets the DesiredWeight field's value. 7836func (s *DesiredWeightAndCapacity) SetDesiredWeight(v float64) *DesiredWeightAndCapacity { 7837 s.DesiredWeight = &v 7838 return s 7839} 7840 7841// SetVariantName sets the VariantName field's value. 7842func (s *DesiredWeightAndCapacity) SetVariantName(v string) *DesiredWeightAndCapacity { 7843 s.VariantName = &v 7844 return s 7845} 7846 7847// Provides summary information for an endpoint configuration. 7848type EndpointConfigSummary struct { 7849 _ struct{} `type:"structure"` 7850 7851 // A timestamp that shows when the endpoint configuration was created. 7852 // 7853 // CreationTime is a required field 7854 CreationTime *time.Time `type:"timestamp" required:"true"` 7855 7856 // The Amazon Resource Name (ARN) of the endpoint configuration. 7857 // 7858 // EndpointConfigArn is a required field 7859 EndpointConfigArn *string `min:"20" type:"string" required:"true"` 7860 7861 // The name of the endpoint configuration. 7862 // 7863 // EndpointConfigName is a required field 7864 EndpointConfigName *string `type:"string" required:"true"` 7865} 7866 7867// String returns the string representation 7868func (s EndpointConfigSummary) String() string { 7869 return awsutil.Prettify(s) 7870} 7871 7872// GoString returns the string representation 7873func (s EndpointConfigSummary) GoString() string { 7874 return s.String() 7875} 7876 7877// SetCreationTime sets the CreationTime field's value. 7878func (s *EndpointConfigSummary) SetCreationTime(v time.Time) *EndpointConfigSummary { 7879 s.CreationTime = &v 7880 return s 7881} 7882 7883// SetEndpointConfigArn sets the EndpointConfigArn field's value. 7884func (s *EndpointConfigSummary) SetEndpointConfigArn(v string) *EndpointConfigSummary { 7885 s.EndpointConfigArn = &v 7886 return s 7887} 7888 7889// SetEndpointConfigName sets the EndpointConfigName field's value. 7890func (s *EndpointConfigSummary) SetEndpointConfigName(v string) *EndpointConfigSummary { 7891 s.EndpointConfigName = &v 7892 return s 7893} 7894 7895// Provides summary information for an endpoint. 7896type EndpointSummary struct { 7897 _ struct{} `type:"structure"` 7898 7899 // A timestamp that shows when the endpoint was created. 7900 // 7901 // CreationTime is a required field 7902 CreationTime *time.Time `type:"timestamp" required:"true"` 7903 7904 // The Amazon Resource Name (ARN) of the endpoint. 7905 // 7906 // EndpointArn is a required field 7907 EndpointArn *string `min:"20" type:"string" required:"true"` 7908 7909 // The name of the endpoint. 7910 // 7911 // EndpointName is a required field 7912 EndpointName *string `type:"string" required:"true"` 7913 7914 // The status of the endpoint. 7915 // 7916 // EndpointStatus is a required field 7917 EndpointStatus *string `type:"string" required:"true" enum:"EndpointStatus"` 7918 7919 // A timestamp that shows when the endpoint was last modified. 7920 // 7921 // LastModifiedTime is a required field 7922 LastModifiedTime *time.Time `type:"timestamp" required:"true"` 7923} 7924 7925// String returns the string representation 7926func (s EndpointSummary) String() string { 7927 return awsutil.Prettify(s) 7928} 7929 7930// GoString returns the string representation 7931func (s EndpointSummary) GoString() string { 7932 return s.String() 7933} 7934 7935// SetCreationTime sets the CreationTime field's value. 7936func (s *EndpointSummary) SetCreationTime(v time.Time) *EndpointSummary { 7937 s.CreationTime = &v 7938 return s 7939} 7940 7941// SetEndpointArn sets the EndpointArn field's value. 7942func (s *EndpointSummary) SetEndpointArn(v string) *EndpointSummary { 7943 s.EndpointArn = &v 7944 return s 7945} 7946 7947// SetEndpointName sets the EndpointName field's value. 7948func (s *EndpointSummary) SetEndpointName(v string) *EndpointSummary { 7949 s.EndpointName = &v 7950 return s 7951} 7952 7953// SetEndpointStatus sets the EndpointStatus field's value. 7954func (s *EndpointSummary) SetEndpointStatus(v string) *EndpointSummary { 7955 s.EndpointStatus = &v 7956 return s 7957} 7958 7959// SetLastModifiedTime sets the LastModifiedTime field's value. 7960func (s *EndpointSummary) SetLastModifiedTime(v time.Time) *EndpointSummary { 7961 s.LastModifiedTime = &v 7962 return s 7963} 7964 7965// Shows the final value for the objective metric for a training job that was 7966// launched by a hyperparameter tuning job. You define the objective metric 7967// in the HyperParameterTuningJobObjective parameter of HyperParameterTuningJobConfig. 7968type FinalHyperParameterTuningJobObjectiveMetric struct { 7969 _ struct{} `type:"structure"` 7970 7971 // The name of the objective metric. 7972 // 7973 // MetricName is a required field 7974 MetricName *string `min:"1" type:"string" required:"true"` 7975 7976 // Whether to minimize or maximize the objective metric. Valid values are Minimize 7977 // and Maximize. 7978 Type *string `type:"string" enum:"HyperParameterTuningJobObjectiveType"` 7979 7980 // The value of the objective metric. 7981 // 7982 // Value is a required field 7983 Value *float64 `type:"float" required:"true"` 7984} 7985 7986// String returns the string representation 7987func (s FinalHyperParameterTuningJobObjectiveMetric) String() string { 7988 return awsutil.Prettify(s) 7989} 7990 7991// GoString returns the string representation 7992func (s FinalHyperParameterTuningJobObjectiveMetric) GoString() string { 7993 return s.String() 7994} 7995 7996// SetMetricName sets the MetricName field's value. 7997func (s *FinalHyperParameterTuningJobObjectiveMetric) SetMetricName(v string) *FinalHyperParameterTuningJobObjectiveMetric { 7998 s.MetricName = &v 7999 return s 8000} 8001 8002// SetType sets the Type field's value. 8003func (s *FinalHyperParameterTuningJobObjectiveMetric) SetType(v string) *FinalHyperParameterTuningJobObjectiveMetric { 8004 s.Type = &v 8005 return s 8006} 8007 8008// SetValue sets the Value field's value. 8009func (s *FinalHyperParameterTuningJobObjectiveMetric) SetValue(v float64) *FinalHyperParameterTuningJobObjectiveMetric { 8010 s.Value = &v 8011 return s 8012} 8013 8014// Specifies which training algorithm to use for training jobs that a hyperparameter 8015// tuning job launches and the metrics to monitor. 8016type HyperParameterAlgorithmSpecification struct { 8017 _ struct{} `type:"structure"` 8018 8019 // An array of MetricDefinition objects that specify the metrics that the algorithm 8020 // emits. 8021 MetricDefinitions []*MetricDefinition `type:"list"` 8022 8023 // The registry path of the Docker image that contains the training algorithm. 8024 // For information about Docker registry paths for built-in algorithms, see 8025 // sagemaker-algo-docker-registry-paths. 8026 // 8027 // TrainingImage is a required field 8028 TrainingImage *string `type:"string" required:"true"` 8029 8030 // The input mode that the algorithm supports: File or Pipe. In File input mode, 8031 // Amazon SageMaker downloads the training data from Amazon S3 to the storage 8032 // volume that is attached to the training instance and mounts the directory 8033 // to the Docker volume for the training container. In Pipe input mode, Amazon 8034 // SageMaker streams data directly from Amazon S3 to the container. 8035 // 8036 // If you specify File mode, make sure that you provision the storage volume 8037 // that is attached to the training instance with enough capacity to accommodate 8038 // the training data downloaded from Amazon S3, the model artifacts, and intermediate 8039 // information. 8040 // 8041 // For more information about input modes, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html) 8042 // 8043 // TrainingInputMode is a required field 8044 TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"` 8045} 8046 8047// String returns the string representation 8048func (s HyperParameterAlgorithmSpecification) String() string { 8049 return awsutil.Prettify(s) 8050} 8051 8052// GoString returns the string representation 8053func (s HyperParameterAlgorithmSpecification) GoString() string { 8054 return s.String() 8055} 8056 8057// Validate inspects the fields of the type to determine if they are valid. 8058func (s *HyperParameterAlgorithmSpecification) Validate() error { 8059 invalidParams := request.ErrInvalidParams{Context: "HyperParameterAlgorithmSpecification"} 8060 if s.TrainingImage == nil { 8061 invalidParams.Add(request.NewErrParamRequired("TrainingImage")) 8062 } 8063 if s.TrainingInputMode == nil { 8064 invalidParams.Add(request.NewErrParamRequired("TrainingInputMode")) 8065 } 8066 if s.MetricDefinitions != nil { 8067 for i, v := range s.MetricDefinitions { 8068 if v == nil { 8069 continue 8070 } 8071 if err := v.Validate(); err != nil { 8072 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDefinitions", i), err.(request.ErrInvalidParams)) 8073 } 8074 } 8075 } 8076 8077 if invalidParams.Len() > 0 { 8078 return invalidParams 8079 } 8080 return nil 8081} 8082 8083// SetMetricDefinitions sets the MetricDefinitions field's value. 8084func (s *HyperParameterAlgorithmSpecification) SetMetricDefinitions(v []*MetricDefinition) *HyperParameterAlgorithmSpecification { 8085 s.MetricDefinitions = v 8086 return s 8087} 8088 8089// SetTrainingImage sets the TrainingImage field's value. 8090func (s *HyperParameterAlgorithmSpecification) SetTrainingImage(v string) *HyperParameterAlgorithmSpecification { 8091 s.TrainingImage = &v 8092 return s 8093} 8094 8095// SetTrainingInputMode sets the TrainingInputMode field's value. 8096func (s *HyperParameterAlgorithmSpecification) SetTrainingInputMode(v string) *HyperParameterAlgorithmSpecification { 8097 s.TrainingInputMode = &v 8098 return s 8099} 8100 8101// Defines the training jobs launched by a hyperparameter tuning job. 8102type HyperParameterTrainingJobDefinition struct { 8103 _ struct{} `type:"structure"` 8104 8105 // The HyperParameterAlgorithmSpecification object that specifies the algorithm 8106 // to use for the training jobs that the tuning job launches. 8107 // 8108 // AlgorithmSpecification is a required field 8109 AlgorithmSpecification *HyperParameterAlgorithmSpecification `type:"structure" required:"true"` 8110 8111 // An array of Channel objects that specify the input for the training jobs 8112 // that the tuning job launches. 8113 // 8114 // InputDataConfig is a required field 8115 InputDataConfig []*Channel `min:"1" type:"list" required:"true"` 8116 8117 // Specifies the path to the Amazon S3 bucket where you store model artifacts 8118 // from the training jobs that the tuning job launches. 8119 // 8120 // OutputDataConfig is a required field 8121 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 8122 8123 // The resources, including the compute instances and storage volumes, to use 8124 // for the training jobs that the tuning job launches. 8125 // 8126 // Storage volumes store model artifacts and incremental states. Training algorithms 8127 // might also use storage volumes for scratch space. If you want Amazon SageMaker 8128 // to use the storage volume to store the training data, choose File as the 8129 // TrainingInputMode in the algorithm specification. For distributed training 8130 // algorithms, specify an instance count greater than 1. 8131 // 8132 // ResourceConfig is a required field 8133 ResourceConfig *ResourceConfig `type:"structure" required:"true"` 8134 8135 // The Amazon Resource Name (ARN) of the IAM role associated with the training 8136 // jobs that the tuning job launches. 8137 // 8138 // RoleArn is a required field 8139 RoleArn *string `min:"20" type:"string" required:"true"` 8140 8141 // Specifies the values of hyperparameters that do not change for the tuning 8142 // job. 8143 StaticHyperParameters map[string]*string `type:"map"` 8144 8145 // Sets a maximum duration for the training jobs that the tuning job launches. 8146 // Use this parameter to limit model training costs. 8147 // 8148 // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal. This 8149 // delays job termination for 120 seconds. Algorithms might use this 120-second 8150 // window to save the model artifacts. 8151 // 8152 // When Amazon SageMaker terminates a job because the stopping condition has 8153 // been met, training algorithms provided by Amazon SageMaker save the intermediate 8154 // results of the job. 8155 // 8156 // StoppingCondition is a required field 8157 StoppingCondition *StoppingCondition `type:"structure" required:"true"` 8158 8159 // The VpcConfig object that specifies the VPC that you want the training jobs 8160 // that this hyperparameter tuning job launches to connect to. Control access 8161 // to and from your training container by configuring the VPC. For more information, 8162 // see train-vpc. 8163 VpcConfig *VpcConfig `type:"structure"` 8164} 8165 8166// String returns the string representation 8167func (s HyperParameterTrainingJobDefinition) String() string { 8168 return awsutil.Prettify(s) 8169} 8170 8171// GoString returns the string representation 8172func (s HyperParameterTrainingJobDefinition) GoString() string { 8173 return s.String() 8174} 8175 8176// Validate inspects the fields of the type to determine if they are valid. 8177func (s *HyperParameterTrainingJobDefinition) Validate() error { 8178 invalidParams := request.ErrInvalidParams{Context: "HyperParameterTrainingJobDefinition"} 8179 if s.AlgorithmSpecification == nil { 8180 invalidParams.Add(request.NewErrParamRequired("AlgorithmSpecification")) 8181 } 8182 if s.InputDataConfig == nil { 8183 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 8184 } 8185 if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 { 8186 invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1)) 8187 } 8188 if s.OutputDataConfig == nil { 8189 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 8190 } 8191 if s.ResourceConfig == nil { 8192 invalidParams.Add(request.NewErrParamRequired("ResourceConfig")) 8193 } 8194 if s.RoleArn == nil { 8195 invalidParams.Add(request.NewErrParamRequired("RoleArn")) 8196 } 8197 if s.RoleArn != nil && len(*s.RoleArn) < 20 { 8198 invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) 8199 } 8200 if s.StoppingCondition == nil { 8201 invalidParams.Add(request.NewErrParamRequired("StoppingCondition")) 8202 } 8203 if s.AlgorithmSpecification != nil { 8204 if err := s.AlgorithmSpecification.Validate(); err != nil { 8205 invalidParams.AddNested("AlgorithmSpecification", err.(request.ErrInvalidParams)) 8206 } 8207 } 8208 if s.InputDataConfig != nil { 8209 for i, v := range s.InputDataConfig { 8210 if v == nil { 8211 continue 8212 } 8213 if err := v.Validate(); err != nil { 8214 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams)) 8215 } 8216 } 8217 } 8218 if s.OutputDataConfig != nil { 8219 if err := s.OutputDataConfig.Validate(); err != nil { 8220 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 8221 } 8222 } 8223 if s.ResourceConfig != nil { 8224 if err := s.ResourceConfig.Validate(); err != nil { 8225 invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams)) 8226 } 8227 } 8228 if s.StoppingCondition != nil { 8229 if err := s.StoppingCondition.Validate(); err != nil { 8230 invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams)) 8231 } 8232 } 8233 if s.VpcConfig != nil { 8234 if err := s.VpcConfig.Validate(); err != nil { 8235 invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) 8236 } 8237 } 8238 8239 if invalidParams.Len() > 0 { 8240 return invalidParams 8241 } 8242 return nil 8243} 8244 8245// SetAlgorithmSpecification sets the AlgorithmSpecification field's value. 8246func (s *HyperParameterTrainingJobDefinition) SetAlgorithmSpecification(v *HyperParameterAlgorithmSpecification) *HyperParameterTrainingJobDefinition { 8247 s.AlgorithmSpecification = v 8248 return s 8249} 8250 8251// SetInputDataConfig sets the InputDataConfig field's value. 8252func (s *HyperParameterTrainingJobDefinition) SetInputDataConfig(v []*Channel) *HyperParameterTrainingJobDefinition { 8253 s.InputDataConfig = v 8254 return s 8255} 8256 8257// SetOutputDataConfig sets the OutputDataConfig field's value. 8258func (s *HyperParameterTrainingJobDefinition) SetOutputDataConfig(v *OutputDataConfig) *HyperParameterTrainingJobDefinition { 8259 s.OutputDataConfig = v 8260 return s 8261} 8262 8263// SetResourceConfig sets the ResourceConfig field's value. 8264func (s *HyperParameterTrainingJobDefinition) SetResourceConfig(v *ResourceConfig) *HyperParameterTrainingJobDefinition { 8265 s.ResourceConfig = v 8266 return s 8267} 8268 8269// SetRoleArn sets the RoleArn field's value. 8270func (s *HyperParameterTrainingJobDefinition) SetRoleArn(v string) *HyperParameterTrainingJobDefinition { 8271 s.RoleArn = &v 8272 return s 8273} 8274 8275// SetStaticHyperParameters sets the StaticHyperParameters field's value. 8276func (s *HyperParameterTrainingJobDefinition) SetStaticHyperParameters(v map[string]*string) *HyperParameterTrainingJobDefinition { 8277 s.StaticHyperParameters = v 8278 return s 8279} 8280 8281// SetStoppingCondition sets the StoppingCondition field's value. 8282func (s *HyperParameterTrainingJobDefinition) SetStoppingCondition(v *StoppingCondition) *HyperParameterTrainingJobDefinition { 8283 s.StoppingCondition = v 8284 return s 8285} 8286 8287// SetVpcConfig sets the VpcConfig field's value. 8288func (s *HyperParameterTrainingJobDefinition) SetVpcConfig(v *VpcConfig) *HyperParameterTrainingJobDefinition { 8289 s.VpcConfig = v 8290 return s 8291} 8292 8293// Specifies summary information about a training job. 8294type HyperParameterTrainingJobSummary struct { 8295 _ struct{} `type:"structure"` 8296 8297 // The date and time that the training job was created. 8298 // 8299 // CreationTime is a required field 8300 CreationTime *time.Time `type:"timestamp" required:"true"` 8301 8302 // The reason that the training job failed. 8303 FailureReason *string `type:"string"` 8304 8305 // The FinalHyperParameterTuningJobObjectiveMetric object that specifies the 8306 // value of the objective metric of the tuning job that launched this training 8307 // job. 8308 FinalHyperParameterTuningJobObjectiveMetric *FinalHyperParameterTuningJobObjectiveMetric `type:"structure"` 8309 8310 // The status of the objective metric for the training job: 8311 // 8312 // * Succeeded: The final objective metric for the training job was evaluated 8313 // by the hyperparameter tuning job and used in the hyperparameter tuning 8314 // process. 8315 // 8316 // * Pending: The training job is in progress and evaluation of its final 8317 // objective metric is pending. 8318 // 8319 // * Failed: The final objective metric for the training job was not evaluated, 8320 // and was not used in the hyperparameter tuning process. This typically 8321 // occurs when the training job failed or did not emit an objective metric. 8322 ObjectiveStatus *string `type:"string" enum:"ObjectiveStatus"` 8323 8324 // The date and time that the training job ended. 8325 TrainingEndTime *time.Time `type:"timestamp"` 8326 8327 // The Amazon Resource Name (ARN) of the training job. 8328 // 8329 // TrainingJobArn is a required field 8330 TrainingJobArn *string `type:"string" required:"true"` 8331 8332 // The name of the training job. 8333 // 8334 // TrainingJobName is a required field 8335 TrainingJobName *string `min:"1" type:"string" required:"true"` 8336 8337 // The status of the training job. 8338 // 8339 // TrainingJobStatus is a required field 8340 TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"` 8341 8342 // The date and time that the training job started. 8343 TrainingStartTime *time.Time `type:"timestamp"` 8344 8345 // A list of the hyperparameters for which you specified ranges to search. 8346 // 8347 // TunedHyperParameters is a required field 8348 TunedHyperParameters map[string]*string `type:"map" required:"true"` 8349} 8350 8351// String returns the string representation 8352func (s HyperParameterTrainingJobSummary) String() string { 8353 return awsutil.Prettify(s) 8354} 8355 8356// GoString returns the string representation 8357func (s HyperParameterTrainingJobSummary) GoString() string { 8358 return s.String() 8359} 8360 8361// SetCreationTime sets the CreationTime field's value. 8362func (s *HyperParameterTrainingJobSummary) SetCreationTime(v time.Time) *HyperParameterTrainingJobSummary { 8363 s.CreationTime = &v 8364 return s 8365} 8366 8367// SetFailureReason sets the FailureReason field's value. 8368func (s *HyperParameterTrainingJobSummary) SetFailureReason(v string) *HyperParameterTrainingJobSummary { 8369 s.FailureReason = &v 8370 return s 8371} 8372 8373// SetFinalHyperParameterTuningJobObjectiveMetric sets the FinalHyperParameterTuningJobObjectiveMetric field's value. 8374func (s *HyperParameterTrainingJobSummary) SetFinalHyperParameterTuningJobObjectiveMetric(v *FinalHyperParameterTuningJobObjectiveMetric) *HyperParameterTrainingJobSummary { 8375 s.FinalHyperParameterTuningJobObjectiveMetric = v 8376 return s 8377} 8378 8379// SetObjectiveStatus sets the ObjectiveStatus field's value. 8380func (s *HyperParameterTrainingJobSummary) SetObjectiveStatus(v string) *HyperParameterTrainingJobSummary { 8381 s.ObjectiveStatus = &v 8382 return s 8383} 8384 8385// SetTrainingEndTime sets the TrainingEndTime field's value. 8386func (s *HyperParameterTrainingJobSummary) SetTrainingEndTime(v time.Time) *HyperParameterTrainingJobSummary { 8387 s.TrainingEndTime = &v 8388 return s 8389} 8390 8391// SetTrainingJobArn sets the TrainingJobArn field's value. 8392func (s *HyperParameterTrainingJobSummary) SetTrainingJobArn(v string) *HyperParameterTrainingJobSummary { 8393 s.TrainingJobArn = &v 8394 return s 8395} 8396 8397// SetTrainingJobName sets the TrainingJobName field's value. 8398func (s *HyperParameterTrainingJobSummary) SetTrainingJobName(v string) *HyperParameterTrainingJobSummary { 8399 s.TrainingJobName = &v 8400 return s 8401} 8402 8403// SetTrainingJobStatus sets the TrainingJobStatus field's value. 8404func (s *HyperParameterTrainingJobSummary) SetTrainingJobStatus(v string) *HyperParameterTrainingJobSummary { 8405 s.TrainingJobStatus = &v 8406 return s 8407} 8408 8409// SetTrainingStartTime sets the TrainingStartTime field's value. 8410func (s *HyperParameterTrainingJobSummary) SetTrainingStartTime(v time.Time) *HyperParameterTrainingJobSummary { 8411 s.TrainingStartTime = &v 8412 return s 8413} 8414 8415// SetTunedHyperParameters sets the TunedHyperParameters field's value. 8416func (s *HyperParameterTrainingJobSummary) SetTunedHyperParameters(v map[string]*string) *HyperParameterTrainingJobSummary { 8417 s.TunedHyperParameters = v 8418 return s 8419} 8420 8421// Configures a hyperparameter tuning job. 8422type HyperParameterTuningJobConfig struct { 8423 _ struct{} `type:"structure"` 8424 8425 // The HyperParameterTuningJobObjective object that specifies the objective 8426 // metric for this tuning job. 8427 // 8428 // HyperParameterTuningJobObjective is a required field 8429 HyperParameterTuningJobObjective *HyperParameterTuningJobObjective `type:"structure" required:"true"` 8430 8431 // The ParameterRanges object that specifies the ranges of hyperparameters that 8432 // this tuning job searches. 8433 // 8434 // ParameterRanges is a required field 8435 ParameterRanges *ParameterRanges `type:"structure" required:"true"` 8436 8437 // The ResourceLimits object that specifies the maximum number of training jobs 8438 // and parallel training jobs for this tuning job. 8439 // 8440 // ResourceLimits is a required field 8441 ResourceLimits *ResourceLimits `type:"structure" required:"true"` 8442 8443 // Specifies the search strategy for hyperparameters. Currently, the only valid 8444 // value is Bayesian. 8445 // 8446 // Strategy is a required field 8447 Strategy *string `type:"string" required:"true" enum:"HyperParameterTuningJobStrategyType"` 8448} 8449 8450// String returns the string representation 8451func (s HyperParameterTuningJobConfig) String() string { 8452 return awsutil.Prettify(s) 8453} 8454 8455// GoString returns the string representation 8456func (s HyperParameterTuningJobConfig) GoString() string { 8457 return s.String() 8458} 8459 8460// Validate inspects the fields of the type to determine if they are valid. 8461func (s *HyperParameterTuningJobConfig) Validate() error { 8462 invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobConfig"} 8463 if s.HyperParameterTuningJobObjective == nil { 8464 invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobObjective")) 8465 } 8466 if s.ParameterRanges == nil { 8467 invalidParams.Add(request.NewErrParamRequired("ParameterRanges")) 8468 } 8469 if s.ResourceLimits == nil { 8470 invalidParams.Add(request.NewErrParamRequired("ResourceLimits")) 8471 } 8472 if s.Strategy == nil { 8473 invalidParams.Add(request.NewErrParamRequired("Strategy")) 8474 } 8475 if s.HyperParameterTuningJobObjective != nil { 8476 if err := s.HyperParameterTuningJobObjective.Validate(); err != nil { 8477 invalidParams.AddNested("HyperParameterTuningJobObjective", err.(request.ErrInvalidParams)) 8478 } 8479 } 8480 if s.ParameterRanges != nil { 8481 if err := s.ParameterRanges.Validate(); err != nil { 8482 invalidParams.AddNested("ParameterRanges", err.(request.ErrInvalidParams)) 8483 } 8484 } 8485 if s.ResourceLimits != nil { 8486 if err := s.ResourceLimits.Validate(); err != nil { 8487 invalidParams.AddNested("ResourceLimits", err.(request.ErrInvalidParams)) 8488 } 8489 } 8490 8491 if invalidParams.Len() > 0 { 8492 return invalidParams 8493 } 8494 return nil 8495} 8496 8497// SetHyperParameterTuningJobObjective sets the HyperParameterTuningJobObjective field's value. 8498func (s *HyperParameterTuningJobConfig) SetHyperParameterTuningJobObjective(v *HyperParameterTuningJobObjective) *HyperParameterTuningJobConfig { 8499 s.HyperParameterTuningJobObjective = v 8500 return s 8501} 8502 8503// SetParameterRanges sets the ParameterRanges field's value. 8504func (s *HyperParameterTuningJobConfig) SetParameterRanges(v *ParameterRanges) *HyperParameterTuningJobConfig { 8505 s.ParameterRanges = v 8506 return s 8507} 8508 8509// SetResourceLimits sets the ResourceLimits field's value. 8510func (s *HyperParameterTuningJobConfig) SetResourceLimits(v *ResourceLimits) *HyperParameterTuningJobConfig { 8511 s.ResourceLimits = v 8512 return s 8513} 8514 8515// SetStrategy sets the Strategy field's value. 8516func (s *HyperParameterTuningJobConfig) SetStrategy(v string) *HyperParameterTuningJobConfig { 8517 s.Strategy = &v 8518 return s 8519} 8520 8521// Defines the objective metric for a hyperparameter tuning job. Hyperparameter 8522// tuning uses the value of this metric to evaluate the training jobs it launches, 8523// and returns the training job that results in either the highest or lowest 8524// value for this metric, depending on the value you specify for the Type parameter. 8525type HyperParameterTuningJobObjective struct { 8526 _ struct{} `type:"structure"` 8527 8528 // The name of the metric to use for the objective metric. 8529 // 8530 // MetricName is a required field 8531 MetricName *string `min:"1" type:"string" required:"true"` 8532 8533 // Whether to minimize or maximize the objective metric. 8534 // 8535 // Type is a required field 8536 Type *string `type:"string" required:"true" enum:"HyperParameterTuningJobObjectiveType"` 8537} 8538 8539// String returns the string representation 8540func (s HyperParameterTuningJobObjective) String() string { 8541 return awsutil.Prettify(s) 8542} 8543 8544// GoString returns the string representation 8545func (s HyperParameterTuningJobObjective) GoString() string { 8546 return s.String() 8547} 8548 8549// Validate inspects the fields of the type to determine if they are valid. 8550func (s *HyperParameterTuningJobObjective) Validate() error { 8551 invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobObjective"} 8552 if s.MetricName == nil { 8553 invalidParams.Add(request.NewErrParamRequired("MetricName")) 8554 } 8555 if s.MetricName != nil && len(*s.MetricName) < 1 { 8556 invalidParams.Add(request.NewErrParamMinLen("MetricName", 1)) 8557 } 8558 if s.Type == nil { 8559 invalidParams.Add(request.NewErrParamRequired("Type")) 8560 } 8561 8562 if invalidParams.Len() > 0 { 8563 return invalidParams 8564 } 8565 return nil 8566} 8567 8568// SetMetricName sets the MetricName field's value. 8569func (s *HyperParameterTuningJobObjective) SetMetricName(v string) *HyperParameterTuningJobObjective { 8570 s.MetricName = &v 8571 return s 8572} 8573 8574// SetType sets the Type field's value. 8575func (s *HyperParameterTuningJobObjective) SetType(v string) *HyperParameterTuningJobObjective { 8576 s.Type = &v 8577 return s 8578} 8579 8580// Provides summary information about a hyperparameter tuning job. 8581type HyperParameterTuningJobSummary struct { 8582 _ struct{} `type:"structure"` 8583 8584 // The date and time that the tuning job was created. 8585 // 8586 // CreationTime is a required field 8587 CreationTime *time.Time `type:"timestamp" required:"true"` 8588 8589 // The date and time that the tuning job ended. 8590 HyperParameterTuningEndTime *time.Time `type:"timestamp"` 8591 8592 // The Amazon Resource Name (ARN) of the tuning job. 8593 // 8594 // HyperParameterTuningJobArn is a required field 8595 HyperParameterTuningJobArn *string `type:"string" required:"true"` 8596 8597 // The name of the tuning job. 8598 // 8599 // HyperParameterTuningJobName is a required field 8600 HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` 8601 8602 // The status of the tuning job. 8603 // 8604 // HyperParameterTuningJobStatus is a required field 8605 HyperParameterTuningJobStatus *string `type:"string" required:"true" enum:"HyperParameterTuningJobStatus"` 8606 8607 // The date and time that the tuning job was modified. 8608 LastModifiedTime *time.Time `type:"timestamp"` 8609 8610 // The ObjectiveStatusCounters object that specifies the numbers of training 8611 // jobs, categorized by objective metric status, that this tuning job launched. 8612 // 8613 // ObjectiveStatusCounters is a required field 8614 ObjectiveStatusCounters *ObjectiveStatusCounters `type:"structure" required:"true"` 8615 8616 // The ResourceLimits object that specifies the maximum number of training jobs 8617 // and parallel training jobs allowed for this tuning job. 8618 ResourceLimits *ResourceLimits `type:"structure"` 8619 8620 // Specifies the search strategy hyperparameter tuning uses to choose which 8621 // hyperparameters to use for each iteration. Currently, the only valid value 8622 // is Bayesian. 8623 // 8624 // Strategy is a required field 8625 Strategy *string `type:"string" required:"true" enum:"HyperParameterTuningJobStrategyType"` 8626 8627 // The TrainingJobStatusCounters object that specifies the numbers of training 8628 // jobs, categorized by status, that this tuning job launched. 8629 // 8630 // TrainingJobStatusCounters is a required field 8631 TrainingJobStatusCounters *TrainingJobStatusCounters `type:"structure" required:"true"` 8632} 8633 8634// String returns the string representation 8635func (s HyperParameterTuningJobSummary) String() string { 8636 return awsutil.Prettify(s) 8637} 8638 8639// GoString returns the string representation 8640func (s HyperParameterTuningJobSummary) GoString() string { 8641 return s.String() 8642} 8643 8644// SetCreationTime sets the CreationTime field's value. 8645func (s *HyperParameterTuningJobSummary) SetCreationTime(v time.Time) *HyperParameterTuningJobSummary { 8646 s.CreationTime = &v 8647 return s 8648} 8649 8650// SetHyperParameterTuningEndTime sets the HyperParameterTuningEndTime field's value. 8651func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningEndTime(v time.Time) *HyperParameterTuningJobSummary { 8652 s.HyperParameterTuningEndTime = &v 8653 return s 8654} 8655 8656// SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value. 8657func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobArn(v string) *HyperParameterTuningJobSummary { 8658 s.HyperParameterTuningJobArn = &v 8659 return s 8660} 8661 8662// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. 8663func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobName(v string) *HyperParameterTuningJobSummary { 8664 s.HyperParameterTuningJobName = &v 8665 return s 8666} 8667 8668// SetHyperParameterTuningJobStatus sets the HyperParameterTuningJobStatus field's value. 8669func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobStatus(v string) *HyperParameterTuningJobSummary { 8670 s.HyperParameterTuningJobStatus = &v 8671 return s 8672} 8673 8674// SetLastModifiedTime sets the LastModifiedTime field's value. 8675func (s *HyperParameterTuningJobSummary) SetLastModifiedTime(v time.Time) *HyperParameterTuningJobSummary { 8676 s.LastModifiedTime = &v 8677 return s 8678} 8679 8680// SetObjectiveStatusCounters sets the ObjectiveStatusCounters field's value. 8681func (s *HyperParameterTuningJobSummary) SetObjectiveStatusCounters(v *ObjectiveStatusCounters) *HyperParameterTuningJobSummary { 8682 s.ObjectiveStatusCounters = v 8683 return s 8684} 8685 8686// SetResourceLimits sets the ResourceLimits field's value. 8687func (s *HyperParameterTuningJobSummary) SetResourceLimits(v *ResourceLimits) *HyperParameterTuningJobSummary { 8688 s.ResourceLimits = v 8689 return s 8690} 8691 8692// SetStrategy sets the Strategy field's value. 8693func (s *HyperParameterTuningJobSummary) SetStrategy(v string) *HyperParameterTuningJobSummary { 8694 s.Strategy = &v 8695 return s 8696} 8697 8698// SetTrainingJobStatusCounters sets the TrainingJobStatusCounters field's value. 8699func (s *HyperParameterTuningJobSummary) SetTrainingJobStatusCounters(v *TrainingJobStatusCounters) *HyperParameterTuningJobSummary { 8700 s.TrainingJobStatusCounters = v 8701 return s 8702} 8703 8704// For a hyperparameter of the integer type, specifies the range that a hyperparameter 8705// tuning job searches. 8706type IntegerParameterRange struct { 8707 _ struct{} `type:"structure"` 8708 8709 // The maximum value of the hyperparameter to search. 8710 // 8711 // MaxValue is a required field 8712 MaxValue *string `type:"string" required:"true"` 8713 8714 // The minimum value of the hyperparameter to search. 8715 // 8716 // MinValue is a required field 8717 MinValue *string `type:"string" required:"true"` 8718 8719 // The name of the hyperparameter to search. 8720 // 8721 // Name is a required field 8722 Name *string `type:"string" required:"true"` 8723} 8724 8725// String returns the string representation 8726func (s IntegerParameterRange) String() string { 8727 return awsutil.Prettify(s) 8728} 8729 8730// GoString returns the string representation 8731func (s IntegerParameterRange) GoString() string { 8732 return s.String() 8733} 8734 8735// Validate inspects the fields of the type to determine if they are valid. 8736func (s *IntegerParameterRange) Validate() error { 8737 invalidParams := request.ErrInvalidParams{Context: "IntegerParameterRange"} 8738 if s.MaxValue == nil { 8739 invalidParams.Add(request.NewErrParamRequired("MaxValue")) 8740 } 8741 if s.MinValue == nil { 8742 invalidParams.Add(request.NewErrParamRequired("MinValue")) 8743 } 8744 if s.Name == nil { 8745 invalidParams.Add(request.NewErrParamRequired("Name")) 8746 } 8747 8748 if invalidParams.Len() > 0 { 8749 return invalidParams 8750 } 8751 return nil 8752} 8753 8754// SetMaxValue sets the MaxValue field's value. 8755func (s *IntegerParameterRange) SetMaxValue(v string) *IntegerParameterRange { 8756 s.MaxValue = &v 8757 return s 8758} 8759 8760// SetMinValue sets the MinValue field's value. 8761func (s *IntegerParameterRange) SetMinValue(v string) *IntegerParameterRange { 8762 s.MinValue = &v 8763 return s 8764} 8765 8766// SetName sets the Name field's value. 8767func (s *IntegerParameterRange) SetName(v string) *IntegerParameterRange { 8768 s.Name = &v 8769 return s 8770} 8771 8772type ListEndpointConfigsInput struct { 8773 _ struct{} `type:"structure"` 8774 8775 // A filter that returns only endpoint configurations created after the specified 8776 // time (timestamp). 8777 CreationTimeAfter *time.Time `type:"timestamp"` 8778 8779 // A filter that returns only endpoint configurations created before the specified 8780 // time (timestamp). 8781 CreationTimeBefore *time.Time `type:"timestamp"` 8782 8783 // The maximum number of training jobs to return in the response. 8784 MaxResults *int64 `min:"1" type:"integer"` 8785 8786 // A string in the endpoint configuration name. This filter returns only endpoint 8787 // configurations whose name contains the specified string. 8788 NameContains *string `type:"string"` 8789 8790 // If the result of the previous ListEndpointConfig request was truncated, the 8791 // response includes a NextToken. To retrieve the next set of endpoint configurations, 8792 // use the token in the next request. 8793 NextToken *string `type:"string"` 8794 8795 // The field to sort results by. The default is CreationTime. 8796 SortBy *string `type:"string" enum:"EndpointConfigSortKey"` 8797 8798 // The sort order for results. The default is Ascending. 8799 SortOrder *string `type:"string" enum:"OrderKey"` 8800} 8801 8802// String returns the string representation 8803func (s ListEndpointConfigsInput) String() string { 8804 return awsutil.Prettify(s) 8805} 8806 8807// GoString returns the string representation 8808func (s ListEndpointConfigsInput) GoString() string { 8809 return s.String() 8810} 8811 8812// Validate inspects the fields of the type to determine if they are valid. 8813func (s *ListEndpointConfigsInput) Validate() error { 8814 invalidParams := request.ErrInvalidParams{Context: "ListEndpointConfigsInput"} 8815 if s.MaxResults != nil && *s.MaxResults < 1 { 8816 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 8817 } 8818 8819 if invalidParams.Len() > 0 { 8820 return invalidParams 8821 } 8822 return nil 8823} 8824 8825// SetCreationTimeAfter sets the CreationTimeAfter field's value. 8826func (s *ListEndpointConfigsInput) SetCreationTimeAfter(v time.Time) *ListEndpointConfigsInput { 8827 s.CreationTimeAfter = &v 8828 return s 8829} 8830 8831// SetCreationTimeBefore sets the CreationTimeBefore field's value. 8832func (s *ListEndpointConfigsInput) SetCreationTimeBefore(v time.Time) *ListEndpointConfigsInput { 8833 s.CreationTimeBefore = &v 8834 return s 8835} 8836 8837// SetMaxResults sets the MaxResults field's value. 8838func (s *ListEndpointConfigsInput) SetMaxResults(v int64) *ListEndpointConfigsInput { 8839 s.MaxResults = &v 8840 return s 8841} 8842 8843// SetNameContains sets the NameContains field's value. 8844func (s *ListEndpointConfigsInput) SetNameContains(v string) *ListEndpointConfigsInput { 8845 s.NameContains = &v 8846 return s 8847} 8848 8849// SetNextToken sets the NextToken field's value. 8850func (s *ListEndpointConfigsInput) SetNextToken(v string) *ListEndpointConfigsInput { 8851 s.NextToken = &v 8852 return s 8853} 8854 8855// SetSortBy sets the SortBy field's value. 8856func (s *ListEndpointConfigsInput) SetSortBy(v string) *ListEndpointConfigsInput { 8857 s.SortBy = &v 8858 return s 8859} 8860 8861// SetSortOrder sets the SortOrder field's value. 8862func (s *ListEndpointConfigsInput) SetSortOrder(v string) *ListEndpointConfigsInput { 8863 s.SortOrder = &v 8864 return s 8865} 8866 8867type ListEndpointConfigsOutput struct { 8868 _ struct{} `type:"structure"` 8869 8870 // An array of endpoint configurations. 8871 // 8872 // EndpointConfigs is a required field 8873 EndpointConfigs []*EndpointConfigSummary `type:"list" required:"true"` 8874 8875 // If the response is truncated, Amazon SageMaker returns this token. To retrieve 8876 // the next set of endpoint configurations, use it in the subsequent request 8877 NextToken *string `type:"string"` 8878} 8879 8880// String returns the string representation 8881func (s ListEndpointConfigsOutput) String() string { 8882 return awsutil.Prettify(s) 8883} 8884 8885// GoString returns the string representation 8886func (s ListEndpointConfigsOutput) GoString() string { 8887 return s.String() 8888} 8889 8890// SetEndpointConfigs sets the EndpointConfigs field's value. 8891func (s *ListEndpointConfigsOutput) SetEndpointConfigs(v []*EndpointConfigSummary) *ListEndpointConfigsOutput { 8892 s.EndpointConfigs = v 8893 return s 8894} 8895 8896// SetNextToken sets the NextToken field's value. 8897func (s *ListEndpointConfigsOutput) SetNextToken(v string) *ListEndpointConfigsOutput { 8898 s.NextToken = &v 8899 return s 8900} 8901 8902type ListEndpointsInput struct { 8903 _ struct{} `type:"structure"` 8904 8905 // A filter that returns only endpoints that were created after the specified 8906 // time (timestamp). 8907 CreationTimeAfter *time.Time `type:"timestamp"` 8908 8909 // A filter that returns only endpoints that were created before the specified 8910 // time (timestamp). 8911 CreationTimeBefore *time.Time `type:"timestamp"` 8912 8913 // A filter that returns only endpoints that were modified after the specified 8914 // timestamp. 8915 LastModifiedTimeAfter *time.Time `type:"timestamp"` 8916 8917 // A filter that returns only endpoints that were modified before the specified 8918 // timestamp. 8919 LastModifiedTimeBefore *time.Time `type:"timestamp"` 8920 8921 // The maximum number of endpoints to return in the response. 8922 MaxResults *int64 `min:"1" type:"integer"` 8923 8924 // A string in endpoint names. This filter returns only endpoints whose name 8925 // contains the specified string. 8926 NameContains *string `type:"string"` 8927 8928 // If the result of a ListEndpoints request was truncated, the response includes 8929 // a NextToken. To retrieve the next set of endpoints, use the token in the 8930 // next request. 8931 NextToken *string `type:"string"` 8932 8933 // Sorts the list of results. The default is CreationTime. 8934 SortBy *string `type:"string" enum:"EndpointSortKey"` 8935 8936 // The sort order for results. The default is Ascending. 8937 SortOrder *string `type:"string" enum:"OrderKey"` 8938 8939 // A filter that returns only endpoints with the specified status. 8940 StatusEquals *string `type:"string" enum:"EndpointStatus"` 8941} 8942 8943// String returns the string representation 8944func (s ListEndpointsInput) String() string { 8945 return awsutil.Prettify(s) 8946} 8947 8948// GoString returns the string representation 8949func (s ListEndpointsInput) GoString() string { 8950 return s.String() 8951} 8952 8953// Validate inspects the fields of the type to determine if they are valid. 8954func (s *ListEndpointsInput) Validate() error { 8955 invalidParams := request.ErrInvalidParams{Context: "ListEndpointsInput"} 8956 if s.MaxResults != nil && *s.MaxResults < 1 { 8957 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 8958 } 8959 8960 if invalidParams.Len() > 0 { 8961 return invalidParams 8962 } 8963 return nil 8964} 8965 8966// SetCreationTimeAfter sets the CreationTimeAfter field's value. 8967func (s *ListEndpointsInput) SetCreationTimeAfter(v time.Time) *ListEndpointsInput { 8968 s.CreationTimeAfter = &v 8969 return s 8970} 8971 8972// SetCreationTimeBefore sets the CreationTimeBefore field's value. 8973func (s *ListEndpointsInput) SetCreationTimeBefore(v time.Time) *ListEndpointsInput { 8974 s.CreationTimeBefore = &v 8975 return s 8976} 8977 8978// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. 8979func (s *ListEndpointsInput) SetLastModifiedTimeAfter(v time.Time) *ListEndpointsInput { 8980 s.LastModifiedTimeAfter = &v 8981 return s 8982} 8983 8984// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. 8985func (s *ListEndpointsInput) SetLastModifiedTimeBefore(v time.Time) *ListEndpointsInput { 8986 s.LastModifiedTimeBefore = &v 8987 return s 8988} 8989 8990// SetMaxResults sets the MaxResults field's value. 8991func (s *ListEndpointsInput) SetMaxResults(v int64) *ListEndpointsInput { 8992 s.MaxResults = &v 8993 return s 8994} 8995 8996// SetNameContains sets the NameContains field's value. 8997func (s *ListEndpointsInput) SetNameContains(v string) *ListEndpointsInput { 8998 s.NameContains = &v 8999 return s 9000} 9001 9002// SetNextToken sets the NextToken field's value. 9003func (s *ListEndpointsInput) SetNextToken(v string) *ListEndpointsInput { 9004 s.NextToken = &v 9005 return s 9006} 9007 9008// SetSortBy sets the SortBy field's value. 9009func (s *ListEndpointsInput) SetSortBy(v string) *ListEndpointsInput { 9010 s.SortBy = &v 9011 return s 9012} 9013 9014// SetSortOrder sets the SortOrder field's value. 9015func (s *ListEndpointsInput) SetSortOrder(v string) *ListEndpointsInput { 9016 s.SortOrder = &v 9017 return s 9018} 9019 9020// SetStatusEquals sets the StatusEquals field's value. 9021func (s *ListEndpointsInput) SetStatusEquals(v string) *ListEndpointsInput { 9022 s.StatusEquals = &v 9023 return s 9024} 9025 9026type ListEndpointsOutput struct { 9027 _ struct{} `type:"structure"` 9028 9029 // An array or endpoint objects. 9030 // 9031 // Endpoints is a required field 9032 Endpoints []*EndpointSummary `type:"list" required:"true"` 9033 9034 // If the response is truncated, Amazon SageMaker returns this token. To retrieve 9035 // the next set of training jobs, use it in the subsequent request. 9036 NextToken *string `type:"string"` 9037} 9038 9039// String returns the string representation 9040func (s ListEndpointsOutput) String() string { 9041 return awsutil.Prettify(s) 9042} 9043 9044// GoString returns the string representation 9045func (s ListEndpointsOutput) GoString() string { 9046 return s.String() 9047} 9048 9049// SetEndpoints sets the Endpoints field's value. 9050func (s *ListEndpointsOutput) SetEndpoints(v []*EndpointSummary) *ListEndpointsOutput { 9051 s.Endpoints = v 9052 return s 9053} 9054 9055// SetNextToken sets the NextToken field's value. 9056func (s *ListEndpointsOutput) SetNextToken(v string) *ListEndpointsOutput { 9057 s.NextToken = &v 9058 return s 9059} 9060 9061type ListHyperParameterTuningJobsInput struct { 9062 _ struct{} `type:"structure"` 9063 9064 // A filter that returns only tuning jobs that were created after the specified 9065 // time. 9066 CreationTimeAfter *time.Time `type:"timestamp"` 9067 9068 // A filter that returns only tuning jobs that were created before the specified 9069 // time. 9070 CreationTimeBefore *time.Time `type:"timestamp"` 9071 9072 // A filter that returns only tuning jobs that were modified after the specified 9073 // time. 9074 LastModifiedTimeAfter *time.Time `type:"timestamp"` 9075 9076 // A filter that returns only tuning jobs that were modified before the specified 9077 // time. 9078 LastModifiedTimeBefore *time.Time `type:"timestamp"` 9079 9080 // The maximum number of tuning jobs to return. The default value is 10. 9081 MaxResults *int64 `min:"1" type:"integer"` 9082 9083 // A string in the tuning job name. This filter returns only tuning jobs whose 9084 // name contains the specified string. 9085 NameContains *string `type:"string"` 9086 9087 // If the result of the previous ListHyperParameterTuningJobs request was truncated, 9088 // the response includes a NextToken. To retrieve the next set of tuning jobs, 9089 // use the token in the next request. 9090 NextToken *string `type:"string"` 9091 9092 // The field to sort results by. The default is Name. 9093 SortBy *string `type:"string" enum:"HyperParameterTuningJobSortByOptions"` 9094 9095 // The sort order for results. The default is Ascending. 9096 SortOrder *string `type:"string" enum:"SortOrder"` 9097 9098 // A filter that returns only tuning jobs with the specified status. 9099 StatusEquals *string `type:"string" enum:"HyperParameterTuningJobStatus"` 9100} 9101 9102// String returns the string representation 9103func (s ListHyperParameterTuningJobsInput) String() string { 9104 return awsutil.Prettify(s) 9105} 9106 9107// GoString returns the string representation 9108func (s ListHyperParameterTuningJobsInput) GoString() string { 9109 return s.String() 9110} 9111 9112// Validate inspects the fields of the type to determine if they are valid. 9113func (s *ListHyperParameterTuningJobsInput) Validate() error { 9114 invalidParams := request.ErrInvalidParams{Context: "ListHyperParameterTuningJobsInput"} 9115 if s.MaxResults != nil && *s.MaxResults < 1 { 9116 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 9117 } 9118 9119 if invalidParams.Len() > 0 { 9120 return invalidParams 9121 } 9122 return nil 9123} 9124 9125// SetCreationTimeAfter sets the CreationTimeAfter field's value. 9126func (s *ListHyperParameterTuningJobsInput) SetCreationTimeAfter(v time.Time) *ListHyperParameterTuningJobsInput { 9127 s.CreationTimeAfter = &v 9128 return s 9129} 9130 9131// SetCreationTimeBefore sets the CreationTimeBefore field's value. 9132func (s *ListHyperParameterTuningJobsInput) SetCreationTimeBefore(v time.Time) *ListHyperParameterTuningJobsInput { 9133 s.CreationTimeBefore = &v 9134 return s 9135} 9136 9137// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. 9138func (s *ListHyperParameterTuningJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListHyperParameterTuningJobsInput { 9139 s.LastModifiedTimeAfter = &v 9140 return s 9141} 9142 9143// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. 9144func (s *ListHyperParameterTuningJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListHyperParameterTuningJobsInput { 9145 s.LastModifiedTimeBefore = &v 9146 return s 9147} 9148 9149// SetMaxResults sets the MaxResults field's value. 9150func (s *ListHyperParameterTuningJobsInput) SetMaxResults(v int64) *ListHyperParameterTuningJobsInput { 9151 s.MaxResults = &v 9152 return s 9153} 9154 9155// SetNameContains sets the NameContains field's value. 9156func (s *ListHyperParameterTuningJobsInput) SetNameContains(v string) *ListHyperParameterTuningJobsInput { 9157 s.NameContains = &v 9158 return s 9159} 9160 9161// SetNextToken sets the NextToken field's value. 9162func (s *ListHyperParameterTuningJobsInput) SetNextToken(v string) *ListHyperParameterTuningJobsInput { 9163 s.NextToken = &v 9164 return s 9165} 9166 9167// SetSortBy sets the SortBy field's value. 9168func (s *ListHyperParameterTuningJobsInput) SetSortBy(v string) *ListHyperParameterTuningJobsInput { 9169 s.SortBy = &v 9170 return s 9171} 9172 9173// SetSortOrder sets the SortOrder field's value. 9174func (s *ListHyperParameterTuningJobsInput) SetSortOrder(v string) *ListHyperParameterTuningJobsInput { 9175 s.SortOrder = &v 9176 return s 9177} 9178 9179// SetStatusEquals sets the StatusEquals field's value. 9180func (s *ListHyperParameterTuningJobsInput) SetStatusEquals(v string) *ListHyperParameterTuningJobsInput { 9181 s.StatusEquals = &v 9182 return s 9183} 9184 9185type ListHyperParameterTuningJobsOutput struct { 9186 _ struct{} `type:"structure"` 9187 9188 // A list of HyperParameterTuningJobSummary objects that describe the tuning 9189 // jobs that the ListHyperParameterTuningJobs request returned. 9190 // 9191 // HyperParameterTuningJobSummaries is a required field 9192 HyperParameterTuningJobSummaries []*HyperParameterTuningJobSummary `type:"list" required:"true"` 9193 9194 // If the result of this ListHyperParameterTuningJobs request was truncated, 9195 // the response includes a NextToken. To retrieve the next set of tuning jobs, 9196 // use the token in the next request. 9197 NextToken *string `type:"string"` 9198} 9199 9200// String returns the string representation 9201func (s ListHyperParameterTuningJobsOutput) String() string { 9202 return awsutil.Prettify(s) 9203} 9204 9205// GoString returns the string representation 9206func (s ListHyperParameterTuningJobsOutput) GoString() string { 9207 return s.String() 9208} 9209 9210// SetHyperParameterTuningJobSummaries sets the HyperParameterTuningJobSummaries field's value. 9211func (s *ListHyperParameterTuningJobsOutput) SetHyperParameterTuningJobSummaries(v []*HyperParameterTuningJobSummary) *ListHyperParameterTuningJobsOutput { 9212 s.HyperParameterTuningJobSummaries = v 9213 return s 9214} 9215 9216// SetNextToken sets the NextToken field's value. 9217func (s *ListHyperParameterTuningJobsOutput) SetNextToken(v string) *ListHyperParameterTuningJobsOutput { 9218 s.NextToken = &v 9219 return s 9220} 9221 9222type ListModelsInput struct { 9223 _ struct{} `type:"structure"` 9224 9225 // A filter that returns only models created after the specified time (timestamp). 9226 CreationTimeAfter *time.Time `type:"timestamp"` 9227 9228 // A filter that returns only models created before the specified time (timestamp). 9229 CreationTimeBefore *time.Time `type:"timestamp"` 9230 9231 // The maximum number of models to return in the response. 9232 MaxResults *int64 `min:"1" type:"integer"` 9233 9234 // A string in the training job name. This filter returns only models in the 9235 // training job whose name contains the specified string. 9236 NameContains *string `type:"string"` 9237 9238 // If the response to a previous ListModels request was truncated, the response 9239 // includes a NextToken. To retrieve the next set of models, use the token in 9240 // the next request. 9241 NextToken *string `type:"string"` 9242 9243 // Sorts the list of results. The default is CreationTime. 9244 SortBy *string `type:"string" enum:"ModelSortKey"` 9245 9246 // The sort order for results. The default is Ascending. 9247 SortOrder *string `type:"string" enum:"OrderKey"` 9248} 9249 9250// String returns the string representation 9251func (s ListModelsInput) String() string { 9252 return awsutil.Prettify(s) 9253} 9254 9255// GoString returns the string representation 9256func (s ListModelsInput) GoString() string { 9257 return s.String() 9258} 9259 9260// Validate inspects the fields of the type to determine if they are valid. 9261func (s *ListModelsInput) Validate() error { 9262 invalidParams := request.ErrInvalidParams{Context: "ListModelsInput"} 9263 if s.MaxResults != nil && *s.MaxResults < 1 { 9264 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 9265 } 9266 9267 if invalidParams.Len() > 0 { 9268 return invalidParams 9269 } 9270 return nil 9271} 9272 9273// SetCreationTimeAfter sets the CreationTimeAfter field's value. 9274func (s *ListModelsInput) SetCreationTimeAfter(v time.Time) *ListModelsInput { 9275 s.CreationTimeAfter = &v 9276 return s 9277} 9278 9279// SetCreationTimeBefore sets the CreationTimeBefore field's value. 9280func (s *ListModelsInput) SetCreationTimeBefore(v time.Time) *ListModelsInput { 9281 s.CreationTimeBefore = &v 9282 return s 9283} 9284 9285// SetMaxResults sets the MaxResults field's value. 9286func (s *ListModelsInput) SetMaxResults(v int64) *ListModelsInput { 9287 s.MaxResults = &v 9288 return s 9289} 9290 9291// SetNameContains sets the NameContains field's value. 9292func (s *ListModelsInput) SetNameContains(v string) *ListModelsInput { 9293 s.NameContains = &v 9294 return s 9295} 9296 9297// SetNextToken sets the NextToken field's value. 9298func (s *ListModelsInput) SetNextToken(v string) *ListModelsInput { 9299 s.NextToken = &v 9300 return s 9301} 9302 9303// SetSortBy sets the SortBy field's value. 9304func (s *ListModelsInput) SetSortBy(v string) *ListModelsInput { 9305 s.SortBy = &v 9306 return s 9307} 9308 9309// SetSortOrder sets the SortOrder field's value. 9310func (s *ListModelsInput) SetSortOrder(v string) *ListModelsInput { 9311 s.SortOrder = &v 9312 return s 9313} 9314 9315type ListModelsOutput struct { 9316 _ struct{} `type:"structure"` 9317 9318 // An array of ModelSummary objects, each of which lists a model. 9319 // 9320 // Models is a required field 9321 Models []*ModelSummary `type:"list" required:"true"` 9322 9323 // If the response is truncated, Amazon SageMaker returns this token. To retrieve 9324 // the next set of models, use it in the subsequent request. 9325 NextToken *string `type:"string"` 9326} 9327 9328// String returns the string representation 9329func (s ListModelsOutput) String() string { 9330 return awsutil.Prettify(s) 9331} 9332 9333// GoString returns the string representation 9334func (s ListModelsOutput) GoString() string { 9335 return s.String() 9336} 9337 9338// SetModels sets the Models field's value. 9339func (s *ListModelsOutput) SetModels(v []*ModelSummary) *ListModelsOutput { 9340 s.Models = v 9341 return s 9342} 9343 9344// SetNextToken sets the NextToken field's value. 9345func (s *ListModelsOutput) SetNextToken(v string) *ListModelsOutput { 9346 s.NextToken = &v 9347 return s 9348} 9349 9350type ListNotebookInstanceLifecycleConfigsInput struct { 9351 _ struct{} `type:"structure"` 9352 9353 // A filter that returns only lifecycle configurations that were created after 9354 // the specified time (timestamp). 9355 CreationTimeAfter *time.Time `type:"timestamp"` 9356 9357 // A filter that returns only lifecycle configurations that were created before 9358 // the specified time (timestamp). 9359 CreationTimeBefore *time.Time `type:"timestamp"` 9360 9361 // A filter that returns only lifecycle configurations that were modified after 9362 // the specified time (timestamp). 9363 LastModifiedTimeAfter *time.Time `type:"timestamp"` 9364 9365 // A filter that returns only lifecycle configurations that were modified before 9366 // the specified time (timestamp). 9367 LastModifiedTimeBefore *time.Time `type:"timestamp"` 9368 9369 // The maximum number of lifecycle configurations to return in the response. 9370 MaxResults *int64 `min:"1" type:"integer"` 9371 9372 // A string in the lifecycle configuration name. This filter returns only lifecycle 9373 // configurations whose name contains the specified string. 9374 NameContains *string `type:"string"` 9375 9376 // If the result of a ListNotebookInstanceLifecycleConfigs request was truncated, 9377 // the response includes a NextToken. To get the next set of lifecycle configurations, 9378 // use the token in the next request. 9379 NextToken *string `type:"string"` 9380 9381 // Sorts the list of results. The default is CreationTime. 9382 SortBy *string `type:"string" enum:"NotebookInstanceLifecycleConfigSortKey"` 9383 9384 // The sort order for results. 9385 SortOrder *string `type:"string" enum:"NotebookInstanceLifecycleConfigSortOrder"` 9386} 9387 9388// String returns the string representation 9389func (s ListNotebookInstanceLifecycleConfigsInput) String() string { 9390 return awsutil.Prettify(s) 9391} 9392 9393// GoString returns the string representation 9394func (s ListNotebookInstanceLifecycleConfigsInput) GoString() string { 9395 return s.String() 9396} 9397 9398// Validate inspects the fields of the type to determine if they are valid. 9399func (s *ListNotebookInstanceLifecycleConfigsInput) Validate() error { 9400 invalidParams := request.ErrInvalidParams{Context: "ListNotebookInstanceLifecycleConfigsInput"} 9401 if s.MaxResults != nil && *s.MaxResults < 1 { 9402 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 9403 } 9404 9405 if invalidParams.Len() > 0 { 9406 return invalidParams 9407 } 9408 return nil 9409} 9410 9411// SetCreationTimeAfter sets the CreationTimeAfter field's value. 9412func (s *ListNotebookInstanceLifecycleConfigsInput) SetCreationTimeAfter(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { 9413 s.CreationTimeAfter = &v 9414 return s 9415} 9416 9417// SetCreationTimeBefore sets the CreationTimeBefore field's value. 9418func (s *ListNotebookInstanceLifecycleConfigsInput) SetCreationTimeBefore(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { 9419 s.CreationTimeBefore = &v 9420 return s 9421} 9422 9423// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. 9424func (s *ListNotebookInstanceLifecycleConfigsInput) SetLastModifiedTimeAfter(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { 9425 s.LastModifiedTimeAfter = &v 9426 return s 9427} 9428 9429// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. 9430func (s *ListNotebookInstanceLifecycleConfigsInput) SetLastModifiedTimeBefore(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { 9431 s.LastModifiedTimeBefore = &v 9432 return s 9433} 9434 9435// SetMaxResults sets the MaxResults field's value. 9436func (s *ListNotebookInstanceLifecycleConfigsInput) SetMaxResults(v int64) *ListNotebookInstanceLifecycleConfigsInput { 9437 s.MaxResults = &v 9438 return s 9439} 9440 9441// SetNameContains sets the NameContains field's value. 9442func (s *ListNotebookInstanceLifecycleConfigsInput) SetNameContains(v string) *ListNotebookInstanceLifecycleConfigsInput { 9443 s.NameContains = &v 9444 return s 9445} 9446 9447// SetNextToken sets the NextToken field's value. 9448func (s *ListNotebookInstanceLifecycleConfigsInput) SetNextToken(v string) *ListNotebookInstanceLifecycleConfigsInput { 9449 s.NextToken = &v 9450 return s 9451} 9452 9453// SetSortBy sets the SortBy field's value. 9454func (s *ListNotebookInstanceLifecycleConfigsInput) SetSortBy(v string) *ListNotebookInstanceLifecycleConfigsInput { 9455 s.SortBy = &v 9456 return s 9457} 9458 9459// SetSortOrder sets the SortOrder field's value. 9460func (s *ListNotebookInstanceLifecycleConfigsInput) SetSortOrder(v string) *ListNotebookInstanceLifecycleConfigsInput { 9461 s.SortOrder = &v 9462 return s 9463} 9464 9465type ListNotebookInstanceLifecycleConfigsOutput struct { 9466 _ struct{} `type:"structure"` 9467 9468 // If the response is truncated, Amazon SageMaker returns this token. To get 9469 // the next set of lifecycle configurations, use it in the next request. 9470 NextToken *string `type:"string"` 9471 9472 // An array of NotebookInstanceLifecycleConfiguration objects, each listing 9473 // a lifecycle configuration. 9474 NotebookInstanceLifecycleConfigs []*NotebookInstanceLifecycleConfigSummary `type:"list"` 9475} 9476 9477// String returns the string representation 9478func (s ListNotebookInstanceLifecycleConfigsOutput) String() string { 9479 return awsutil.Prettify(s) 9480} 9481 9482// GoString returns the string representation 9483func (s ListNotebookInstanceLifecycleConfigsOutput) GoString() string { 9484 return s.String() 9485} 9486 9487// SetNextToken sets the NextToken field's value. 9488func (s *ListNotebookInstanceLifecycleConfigsOutput) SetNextToken(v string) *ListNotebookInstanceLifecycleConfigsOutput { 9489 s.NextToken = &v 9490 return s 9491} 9492 9493// SetNotebookInstanceLifecycleConfigs sets the NotebookInstanceLifecycleConfigs field's value. 9494func (s *ListNotebookInstanceLifecycleConfigsOutput) SetNotebookInstanceLifecycleConfigs(v []*NotebookInstanceLifecycleConfigSummary) *ListNotebookInstanceLifecycleConfigsOutput { 9495 s.NotebookInstanceLifecycleConfigs = v 9496 return s 9497} 9498 9499type ListNotebookInstancesInput struct { 9500 _ struct{} `type:"structure"` 9501 9502 // A filter that returns only notebook instances that were created after the 9503 // specified time (timestamp). 9504 CreationTimeAfter *time.Time `type:"timestamp"` 9505 9506 // A filter that returns only notebook instances that were created before the 9507 // specified time (timestamp). 9508 CreationTimeBefore *time.Time `type:"timestamp"` 9509 9510 // A filter that returns only notebook instances that were modified after the 9511 // specified time (timestamp). 9512 LastModifiedTimeAfter *time.Time `type:"timestamp"` 9513 9514 // A filter that returns only notebook instances that were modified before the 9515 // specified time (timestamp). 9516 LastModifiedTimeBefore *time.Time `type:"timestamp"` 9517 9518 // The maximum number of notebook instances to return. 9519 MaxResults *int64 `min:"1" type:"integer"` 9520 9521 // A string in the notebook instances' name. This filter returns only notebook 9522 // instances whose name contains the specified string. 9523 NameContains *string `type:"string"` 9524 9525 // If the previous call to the ListNotebookInstances is truncated, the response 9526 // includes a NextToken. You can use this token in your subsequent ListNotebookInstances 9527 // request to fetch the next set of notebook instances. 9528 // 9529 // You might specify a filter or a sort order in your request. When response 9530 // is truncated, you must use the same values for the filer and sort order in 9531 // the next request. 9532 NextToken *string `type:"string"` 9533 9534 // A string in the name of a notebook instances lifecycle configuration associated 9535 // with this notebook instance. This filter returns only notebook instances 9536 // associated with a lifecycle configuration with a name that contains the specified 9537 // string. 9538 NotebookInstanceLifecycleConfigNameContains *string `type:"string"` 9539 9540 // The field to sort results by. The default is Name. 9541 SortBy *string `type:"string" enum:"NotebookInstanceSortKey"` 9542 9543 // The sort order for results. 9544 SortOrder *string `type:"string" enum:"NotebookInstanceSortOrder"` 9545 9546 // A filter that returns only notebook instances with the specified status. 9547 StatusEquals *string `type:"string" enum:"NotebookInstanceStatus"` 9548} 9549 9550// String returns the string representation 9551func (s ListNotebookInstancesInput) String() string { 9552 return awsutil.Prettify(s) 9553} 9554 9555// GoString returns the string representation 9556func (s ListNotebookInstancesInput) GoString() string { 9557 return s.String() 9558} 9559 9560// Validate inspects the fields of the type to determine if they are valid. 9561func (s *ListNotebookInstancesInput) Validate() error { 9562 invalidParams := request.ErrInvalidParams{Context: "ListNotebookInstancesInput"} 9563 if s.MaxResults != nil && *s.MaxResults < 1 { 9564 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 9565 } 9566 9567 if invalidParams.Len() > 0 { 9568 return invalidParams 9569 } 9570 return nil 9571} 9572 9573// SetCreationTimeAfter sets the CreationTimeAfter field's value. 9574func (s *ListNotebookInstancesInput) SetCreationTimeAfter(v time.Time) *ListNotebookInstancesInput { 9575 s.CreationTimeAfter = &v 9576 return s 9577} 9578 9579// SetCreationTimeBefore sets the CreationTimeBefore field's value. 9580func (s *ListNotebookInstancesInput) SetCreationTimeBefore(v time.Time) *ListNotebookInstancesInput { 9581 s.CreationTimeBefore = &v 9582 return s 9583} 9584 9585// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. 9586func (s *ListNotebookInstancesInput) SetLastModifiedTimeAfter(v time.Time) *ListNotebookInstancesInput { 9587 s.LastModifiedTimeAfter = &v 9588 return s 9589} 9590 9591// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. 9592func (s *ListNotebookInstancesInput) SetLastModifiedTimeBefore(v time.Time) *ListNotebookInstancesInput { 9593 s.LastModifiedTimeBefore = &v 9594 return s 9595} 9596 9597// SetMaxResults sets the MaxResults field's value. 9598func (s *ListNotebookInstancesInput) SetMaxResults(v int64) *ListNotebookInstancesInput { 9599 s.MaxResults = &v 9600 return s 9601} 9602 9603// SetNameContains sets the NameContains field's value. 9604func (s *ListNotebookInstancesInput) SetNameContains(v string) *ListNotebookInstancesInput { 9605 s.NameContains = &v 9606 return s 9607} 9608 9609// SetNextToken sets the NextToken field's value. 9610func (s *ListNotebookInstancesInput) SetNextToken(v string) *ListNotebookInstancesInput { 9611 s.NextToken = &v 9612 return s 9613} 9614 9615// SetNotebookInstanceLifecycleConfigNameContains sets the NotebookInstanceLifecycleConfigNameContains field's value. 9616func (s *ListNotebookInstancesInput) SetNotebookInstanceLifecycleConfigNameContains(v string) *ListNotebookInstancesInput { 9617 s.NotebookInstanceLifecycleConfigNameContains = &v 9618 return s 9619} 9620 9621// SetSortBy sets the SortBy field's value. 9622func (s *ListNotebookInstancesInput) SetSortBy(v string) *ListNotebookInstancesInput { 9623 s.SortBy = &v 9624 return s 9625} 9626 9627// SetSortOrder sets the SortOrder field's value. 9628func (s *ListNotebookInstancesInput) SetSortOrder(v string) *ListNotebookInstancesInput { 9629 s.SortOrder = &v 9630 return s 9631} 9632 9633// SetStatusEquals sets the StatusEquals field's value. 9634func (s *ListNotebookInstancesInput) SetStatusEquals(v string) *ListNotebookInstancesInput { 9635 s.StatusEquals = &v 9636 return s 9637} 9638 9639type ListNotebookInstancesOutput struct { 9640 _ struct{} `type:"structure"` 9641 9642 // If the response to the previous ListNotebookInstances request was truncated, 9643 // Amazon SageMaker returns this token. To retrieve the next set of notebook 9644 // instances, use the token in the next request. 9645 NextToken *string `type:"string"` 9646 9647 // An array of NotebookInstanceSummary objects, one for each notebook instance. 9648 NotebookInstances []*NotebookInstanceSummary `type:"list"` 9649} 9650 9651// String returns the string representation 9652func (s ListNotebookInstancesOutput) String() string { 9653 return awsutil.Prettify(s) 9654} 9655 9656// GoString returns the string representation 9657func (s ListNotebookInstancesOutput) GoString() string { 9658 return s.String() 9659} 9660 9661// SetNextToken sets the NextToken field's value. 9662func (s *ListNotebookInstancesOutput) SetNextToken(v string) *ListNotebookInstancesOutput { 9663 s.NextToken = &v 9664 return s 9665} 9666 9667// SetNotebookInstances sets the NotebookInstances field's value. 9668func (s *ListNotebookInstancesOutput) SetNotebookInstances(v []*NotebookInstanceSummary) *ListNotebookInstancesOutput { 9669 s.NotebookInstances = v 9670 return s 9671} 9672 9673type ListTagsInput struct { 9674 _ struct{} `type:"structure"` 9675 9676 // Maximum number of tags to return. 9677 MaxResults *int64 `min:"50" type:"integer"` 9678 9679 // If the response to the previous ListTags request is truncated, Amazon SageMaker 9680 // returns this token. To retrieve the next set of tags, use it in the subsequent 9681 // request. 9682 NextToken *string `type:"string"` 9683 9684 // The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve. 9685 // 9686 // ResourceArn is a required field 9687 ResourceArn *string `type:"string" required:"true"` 9688} 9689 9690// String returns the string representation 9691func (s ListTagsInput) String() string { 9692 return awsutil.Prettify(s) 9693} 9694 9695// GoString returns the string representation 9696func (s ListTagsInput) GoString() string { 9697 return s.String() 9698} 9699 9700// Validate inspects the fields of the type to determine if they are valid. 9701func (s *ListTagsInput) Validate() error { 9702 invalidParams := request.ErrInvalidParams{Context: "ListTagsInput"} 9703 if s.MaxResults != nil && *s.MaxResults < 50 { 9704 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 50)) 9705 } 9706 if s.ResourceArn == nil { 9707 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 9708 } 9709 9710 if invalidParams.Len() > 0 { 9711 return invalidParams 9712 } 9713 return nil 9714} 9715 9716// SetMaxResults sets the MaxResults field's value. 9717func (s *ListTagsInput) SetMaxResults(v int64) *ListTagsInput { 9718 s.MaxResults = &v 9719 return s 9720} 9721 9722// SetNextToken sets the NextToken field's value. 9723func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput { 9724 s.NextToken = &v 9725 return s 9726} 9727 9728// SetResourceArn sets the ResourceArn field's value. 9729func (s *ListTagsInput) SetResourceArn(v string) *ListTagsInput { 9730 s.ResourceArn = &v 9731 return s 9732} 9733 9734type ListTagsOutput struct { 9735 _ struct{} `type:"structure"` 9736 9737 // If response is truncated, Amazon SageMaker includes a token in the response. 9738 // You can use this token in your subsequent request to fetch next set of tokens. 9739 NextToken *string `type:"string"` 9740 9741 // An array of Tag objects, each with a tag key and a value. 9742 Tags []*Tag `type:"list"` 9743} 9744 9745// String returns the string representation 9746func (s ListTagsOutput) String() string { 9747 return awsutil.Prettify(s) 9748} 9749 9750// GoString returns the string representation 9751func (s ListTagsOutput) GoString() string { 9752 return s.String() 9753} 9754 9755// SetNextToken sets the NextToken field's value. 9756func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput { 9757 s.NextToken = &v 9758 return s 9759} 9760 9761// SetTags sets the Tags field's value. 9762func (s *ListTagsOutput) SetTags(v []*Tag) *ListTagsOutput { 9763 s.Tags = v 9764 return s 9765} 9766 9767type ListTrainingJobsForHyperParameterTuningJobInput struct { 9768 _ struct{} `type:"structure"` 9769 9770 // The name of the tuning job whose training jobs you want to list. 9771 // 9772 // HyperParameterTuningJobName is a required field 9773 HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` 9774 9775 // The maximum number of training jobs to return. The default value is 10. 9776 MaxResults *int64 `min:"1" type:"integer"` 9777 9778 // If the result of the previous ListTrainingJobsForHyperParameterTuningJob 9779 // request was truncated, the response includes a NextToken. To retrieve the 9780 // next set of training jobs, use the token in the next request. 9781 NextToken *string `type:"string"` 9782 9783 // The field to sort results by. The default is Name. 9784 // 9785 // If the value of this field is FinalObjectiveMetricValue, any training jobs 9786 // that did not return an objective metric are not listed. 9787 SortBy *string `type:"string" enum:"TrainingJobSortByOptions"` 9788 9789 // The sort order for results. The default is Ascending. 9790 SortOrder *string `type:"string" enum:"SortOrder"` 9791 9792 // A filter that returns only training jobs with the specified status. 9793 StatusEquals *string `type:"string" enum:"TrainingJobStatus"` 9794} 9795 9796// String returns the string representation 9797func (s ListTrainingJobsForHyperParameterTuningJobInput) String() string { 9798 return awsutil.Prettify(s) 9799} 9800 9801// GoString returns the string representation 9802func (s ListTrainingJobsForHyperParameterTuningJobInput) GoString() string { 9803 return s.String() 9804} 9805 9806// Validate inspects the fields of the type to determine if they are valid. 9807func (s *ListTrainingJobsForHyperParameterTuningJobInput) Validate() error { 9808 invalidParams := request.ErrInvalidParams{Context: "ListTrainingJobsForHyperParameterTuningJobInput"} 9809 if s.HyperParameterTuningJobName == nil { 9810 invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) 9811 } 9812 if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { 9813 invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) 9814 } 9815 if s.MaxResults != nil && *s.MaxResults < 1 { 9816 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 9817 } 9818 9819 if invalidParams.Len() > 0 { 9820 return invalidParams 9821 } 9822 return nil 9823} 9824 9825// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. 9826func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *ListTrainingJobsForHyperParameterTuningJobInput { 9827 s.HyperParameterTuningJobName = &v 9828 return s 9829} 9830 9831// SetMaxResults sets the MaxResults field's value. 9832func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetMaxResults(v int64) *ListTrainingJobsForHyperParameterTuningJobInput { 9833 s.MaxResults = &v 9834 return s 9835} 9836 9837// SetNextToken sets the NextToken field's value. 9838func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetNextToken(v string) *ListTrainingJobsForHyperParameterTuningJobInput { 9839 s.NextToken = &v 9840 return s 9841} 9842 9843// SetSortBy sets the SortBy field's value. 9844func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetSortBy(v string) *ListTrainingJobsForHyperParameterTuningJobInput { 9845 s.SortBy = &v 9846 return s 9847} 9848 9849// SetSortOrder sets the SortOrder field's value. 9850func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetSortOrder(v string) *ListTrainingJobsForHyperParameterTuningJobInput { 9851 s.SortOrder = &v 9852 return s 9853} 9854 9855// SetStatusEquals sets the StatusEquals field's value. 9856func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetStatusEquals(v string) *ListTrainingJobsForHyperParameterTuningJobInput { 9857 s.StatusEquals = &v 9858 return s 9859} 9860 9861type ListTrainingJobsForHyperParameterTuningJobOutput struct { 9862 _ struct{} `type:"structure"` 9863 9864 // If the result of this ListTrainingJobsForHyperParameterTuningJob request 9865 // was truncated, the response includes a NextToken. To retrieve the next set 9866 // of training jobs, use the token in the next request. 9867 NextToken *string `type:"string"` 9868 9869 // A list of TrainingJobSummary objects that describe the training jobs that 9870 // the ListTrainingJobsForHyperParameterTuningJob request returned. 9871 // 9872 // TrainingJobSummaries is a required field 9873 TrainingJobSummaries []*HyperParameterTrainingJobSummary `type:"list" required:"true"` 9874} 9875 9876// String returns the string representation 9877func (s ListTrainingJobsForHyperParameterTuningJobOutput) String() string { 9878 return awsutil.Prettify(s) 9879} 9880 9881// GoString returns the string representation 9882func (s ListTrainingJobsForHyperParameterTuningJobOutput) GoString() string { 9883 return s.String() 9884} 9885 9886// SetNextToken sets the NextToken field's value. 9887func (s *ListTrainingJobsForHyperParameterTuningJobOutput) SetNextToken(v string) *ListTrainingJobsForHyperParameterTuningJobOutput { 9888 s.NextToken = &v 9889 return s 9890} 9891 9892// SetTrainingJobSummaries sets the TrainingJobSummaries field's value. 9893func (s *ListTrainingJobsForHyperParameterTuningJobOutput) SetTrainingJobSummaries(v []*HyperParameterTrainingJobSummary) *ListTrainingJobsForHyperParameterTuningJobOutput { 9894 s.TrainingJobSummaries = v 9895 return s 9896} 9897 9898type ListTrainingJobsInput struct { 9899 _ struct{} `type:"structure"` 9900 9901 // A filter that returns only training jobs created after the specified time 9902 // (timestamp). 9903 CreationTimeAfter *time.Time `type:"timestamp"` 9904 9905 // A filter that returns only training jobs created before the specified time 9906 // (timestamp). 9907 CreationTimeBefore *time.Time `type:"timestamp"` 9908 9909 // A filter that returns only training jobs modified after the specified time 9910 // (timestamp). 9911 LastModifiedTimeAfter *time.Time `type:"timestamp"` 9912 9913 // A filter that returns only training jobs modified before the specified time 9914 // (timestamp). 9915 LastModifiedTimeBefore *time.Time `type:"timestamp"` 9916 9917 // The maximum number of training jobs to return in the response. 9918 MaxResults *int64 `min:"1" type:"integer"` 9919 9920 // A string in the training job name. This filter returns only training jobs 9921 // whose name contains the specified string. 9922 NameContains *string `type:"string"` 9923 9924 // If the result of the previous ListTrainingJobs request was truncated, the 9925 // response includes a NextToken. To retrieve the next set of training jobs, 9926 // use the token in the next request. 9927 NextToken *string `type:"string"` 9928 9929 // The field to sort results by. The default is CreationTime. 9930 SortBy *string `type:"string" enum:"SortBy"` 9931 9932 // The sort order for results. The default is Ascending. 9933 SortOrder *string `type:"string" enum:"SortOrder"` 9934 9935 // A filter that retrieves only training jobs with a specific status. 9936 StatusEquals *string `type:"string" enum:"TrainingJobStatus"` 9937} 9938 9939// String returns the string representation 9940func (s ListTrainingJobsInput) String() string { 9941 return awsutil.Prettify(s) 9942} 9943 9944// GoString returns the string representation 9945func (s ListTrainingJobsInput) GoString() string { 9946 return s.String() 9947} 9948 9949// Validate inspects the fields of the type to determine if they are valid. 9950func (s *ListTrainingJobsInput) Validate() error { 9951 invalidParams := request.ErrInvalidParams{Context: "ListTrainingJobsInput"} 9952 if s.MaxResults != nil && *s.MaxResults < 1 { 9953 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 9954 } 9955 9956 if invalidParams.Len() > 0 { 9957 return invalidParams 9958 } 9959 return nil 9960} 9961 9962// SetCreationTimeAfter sets the CreationTimeAfter field's value. 9963func (s *ListTrainingJobsInput) SetCreationTimeAfter(v time.Time) *ListTrainingJobsInput { 9964 s.CreationTimeAfter = &v 9965 return s 9966} 9967 9968// SetCreationTimeBefore sets the CreationTimeBefore field's value. 9969func (s *ListTrainingJobsInput) SetCreationTimeBefore(v time.Time) *ListTrainingJobsInput { 9970 s.CreationTimeBefore = &v 9971 return s 9972} 9973 9974// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. 9975func (s *ListTrainingJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListTrainingJobsInput { 9976 s.LastModifiedTimeAfter = &v 9977 return s 9978} 9979 9980// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. 9981func (s *ListTrainingJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListTrainingJobsInput { 9982 s.LastModifiedTimeBefore = &v 9983 return s 9984} 9985 9986// SetMaxResults sets the MaxResults field's value. 9987func (s *ListTrainingJobsInput) SetMaxResults(v int64) *ListTrainingJobsInput { 9988 s.MaxResults = &v 9989 return s 9990} 9991 9992// SetNameContains sets the NameContains field's value. 9993func (s *ListTrainingJobsInput) SetNameContains(v string) *ListTrainingJobsInput { 9994 s.NameContains = &v 9995 return s 9996} 9997 9998// SetNextToken sets the NextToken field's value. 9999func (s *ListTrainingJobsInput) SetNextToken(v string) *ListTrainingJobsInput { 10000 s.NextToken = &v 10001 return s 10002} 10003 10004// SetSortBy sets the SortBy field's value. 10005func (s *ListTrainingJobsInput) SetSortBy(v string) *ListTrainingJobsInput { 10006 s.SortBy = &v 10007 return s 10008} 10009 10010// SetSortOrder sets the SortOrder field's value. 10011func (s *ListTrainingJobsInput) SetSortOrder(v string) *ListTrainingJobsInput { 10012 s.SortOrder = &v 10013 return s 10014} 10015 10016// SetStatusEquals sets the StatusEquals field's value. 10017func (s *ListTrainingJobsInput) SetStatusEquals(v string) *ListTrainingJobsInput { 10018 s.StatusEquals = &v 10019 return s 10020} 10021 10022type ListTrainingJobsOutput struct { 10023 _ struct{} `type:"structure"` 10024 10025 // If the response is truncated, Amazon SageMaker returns this token. To retrieve 10026 // the next set of training jobs, use it in the subsequent request. 10027 NextToken *string `type:"string"` 10028 10029 // An array of TrainingJobSummary objects, each listing a training job. 10030 // 10031 // TrainingJobSummaries is a required field 10032 TrainingJobSummaries []*TrainingJobSummary `type:"list" required:"true"` 10033} 10034 10035// String returns the string representation 10036func (s ListTrainingJobsOutput) String() string { 10037 return awsutil.Prettify(s) 10038} 10039 10040// GoString returns the string representation 10041func (s ListTrainingJobsOutput) GoString() string { 10042 return s.String() 10043} 10044 10045// SetNextToken sets the NextToken field's value. 10046func (s *ListTrainingJobsOutput) SetNextToken(v string) *ListTrainingJobsOutput { 10047 s.NextToken = &v 10048 return s 10049} 10050 10051// SetTrainingJobSummaries sets the TrainingJobSummaries field's value. 10052func (s *ListTrainingJobsOutput) SetTrainingJobSummaries(v []*TrainingJobSummary) *ListTrainingJobsOutput { 10053 s.TrainingJobSummaries = v 10054 return s 10055} 10056 10057type ListTransformJobsInput struct { 10058 _ struct{} `type:"structure"` 10059 10060 // A filter that returns only transform jobs created after the specified time. 10061 CreationTimeAfter *time.Time `type:"timestamp"` 10062 10063 // A filter that returns only transform jobs created before the specified time. 10064 CreationTimeBefore *time.Time `type:"timestamp"` 10065 10066 // A filter that returns only transform jobs modified after the specified time. 10067 LastModifiedTimeAfter *time.Time `type:"timestamp"` 10068 10069 // A filter that returns only transform jobs modified before the specified time. 10070 LastModifiedTimeBefore *time.Time `type:"timestamp"` 10071 10072 // The maximum number of transform jobs to return in the response. The default 10073 // value is 10. 10074 MaxResults *int64 `min:"1" type:"integer"` 10075 10076 // A string in the transform job name. This filter returns only transform jobs 10077 // whose name contains the specified string. 10078 NameContains *string `type:"string"` 10079 10080 // If the result of the previous ListTransformJobs request was truncated, the 10081 // response includes a NextToken. To retrieve the next set of transform jobs, 10082 // use the token in the next request. 10083 NextToken *string `type:"string"` 10084 10085 // The field to sort results by. The default is CreationTime. 10086 SortBy *string `type:"string" enum:"SortBy"` 10087 10088 // The sort order for results. The default is Descending. 10089 SortOrder *string `type:"string" enum:"SortOrder"` 10090 10091 // A filter that retrieves only transform jobs with a specific status. 10092 StatusEquals *string `type:"string" enum:"TransformJobStatus"` 10093} 10094 10095// String returns the string representation 10096func (s ListTransformJobsInput) String() string { 10097 return awsutil.Prettify(s) 10098} 10099 10100// GoString returns the string representation 10101func (s ListTransformJobsInput) GoString() string { 10102 return s.String() 10103} 10104 10105// Validate inspects the fields of the type to determine if they are valid. 10106func (s *ListTransformJobsInput) Validate() error { 10107 invalidParams := request.ErrInvalidParams{Context: "ListTransformJobsInput"} 10108 if s.MaxResults != nil && *s.MaxResults < 1 { 10109 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 10110 } 10111 10112 if invalidParams.Len() > 0 { 10113 return invalidParams 10114 } 10115 return nil 10116} 10117 10118// SetCreationTimeAfter sets the CreationTimeAfter field's value. 10119func (s *ListTransformJobsInput) SetCreationTimeAfter(v time.Time) *ListTransformJobsInput { 10120 s.CreationTimeAfter = &v 10121 return s 10122} 10123 10124// SetCreationTimeBefore sets the CreationTimeBefore field's value. 10125func (s *ListTransformJobsInput) SetCreationTimeBefore(v time.Time) *ListTransformJobsInput { 10126 s.CreationTimeBefore = &v 10127 return s 10128} 10129 10130// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. 10131func (s *ListTransformJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListTransformJobsInput { 10132 s.LastModifiedTimeAfter = &v 10133 return s 10134} 10135 10136// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. 10137func (s *ListTransformJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListTransformJobsInput { 10138 s.LastModifiedTimeBefore = &v 10139 return s 10140} 10141 10142// SetMaxResults sets the MaxResults field's value. 10143func (s *ListTransformJobsInput) SetMaxResults(v int64) *ListTransformJobsInput { 10144 s.MaxResults = &v 10145 return s 10146} 10147 10148// SetNameContains sets the NameContains field's value. 10149func (s *ListTransformJobsInput) SetNameContains(v string) *ListTransformJobsInput { 10150 s.NameContains = &v 10151 return s 10152} 10153 10154// SetNextToken sets the NextToken field's value. 10155func (s *ListTransformJobsInput) SetNextToken(v string) *ListTransformJobsInput { 10156 s.NextToken = &v 10157 return s 10158} 10159 10160// SetSortBy sets the SortBy field's value. 10161func (s *ListTransformJobsInput) SetSortBy(v string) *ListTransformJobsInput { 10162 s.SortBy = &v 10163 return s 10164} 10165 10166// SetSortOrder sets the SortOrder field's value. 10167func (s *ListTransformJobsInput) SetSortOrder(v string) *ListTransformJobsInput { 10168 s.SortOrder = &v 10169 return s 10170} 10171 10172// SetStatusEquals sets the StatusEquals field's value. 10173func (s *ListTransformJobsInput) SetStatusEquals(v string) *ListTransformJobsInput { 10174 s.StatusEquals = &v 10175 return s 10176} 10177 10178type ListTransformJobsOutput struct { 10179 _ struct{} `type:"structure"` 10180 10181 // If the response is truncated, Amazon SageMaker returns this token. To retrieve 10182 // the next set of transform jobs, use it in the next request. 10183 NextToken *string `type:"string"` 10184 10185 // An array of TransformJobSummary objects. 10186 // 10187 // TransformJobSummaries is a required field 10188 TransformJobSummaries []*TransformJobSummary `type:"list" required:"true"` 10189} 10190 10191// String returns the string representation 10192func (s ListTransformJobsOutput) String() string { 10193 return awsutil.Prettify(s) 10194} 10195 10196// GoString returns the string representation 10197func (s ListTransformJobsOutput) GoString() string { 10198 return s.String() 10199} 10200 10201// SetNextToken sets the NextToken field's value. 10202func (s *ListTransformJobsOutput) SetNextToken(v string) *ListTransformJobsOutput { 10203 s.NextToken = &v 10204 return s 10205} 10206 10207// SetTransformJobSummaries sets the TransformJobSummaries field's value. 10208func (s *ListTransformJobsOutput) SetTransformJobSummaries(v []*TransformJobSummary) *ListTransformJobsOutput { 10209 s.TransformJobSummaries = v 10210 return s 10211} 10212 10213// Specifies a metric that the training algorithm writes to stderr or stdout. 10214// Amazon SageMakerHyperparamter tuning captures all defined metrics. You specify 10215// one metric that a hyperparameter tuning job uses as its objective metric 10216// to choose the best training job. 10217type MetricDefinition struct { 10218 _ struct{} `type:"structure"` 10219 10220 // The name of the metric. 10221 // 10222 // Name is a required field 10223 Name *string `min:"1" type:"string" required:"true"` 10224 10225 // A regular expression that searches the output of a training job and gets 10226 // the value of the metric. For more information about using regular expressions 10227 // to define metrics, see automatic-model-tuning-define-metrics. 10228 // 10229 // Regex is a required field 10230 Regex *string `min:"1" type:"string" required:"true"` 10231} 10232 10233// String returns the string representation 10234func (s MetricDefinition) String() string { 10235 return awsutil.Prettify(s) 10236} 10237 10238// GoString returns the string representation 10239func (s MetricDefinition) GoString() string { 10240 return s.String() 10241} 10242 10243// Validate inspects the fields of the type to determine if they are valid. 10244func (s *MetricDefinition) Validate() error { 10245 invalidParams := request.ErrInvalidParams{Context: "MetricDefinition"} 10246 if s.Name == nil { 10247 invalidParams.Add(request.NewErrParamRequired("Name")) 10248 } 10249 if s.Name != nil && len(*s.Name) < 1 { 10250 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 10251 } 10252 if s.Regex == nil { 10253 invalidParams.Add(request.NewErrParamRequired("Regex")) 10254 } 10255 if s.Regex != nil && len(*s.Regex) < 1 { 10256 invalidParams.Add(request.NewErrParamMinLen("Regex", 1)) 10257 } 10258 10259 if invalidParams.Len() > 0 { 10260 return invalidParams 10261 } 10262 return nil 10263} 10264 10265// SetName sets the Name field's value. 10266func (s *MetricDefinition) SetName(v string) *MetricDefinition { 10267 s.Name = &v 10268 return s 10269} 10270 10271// SetRegex sets the Regex field's value. 10272func (s *MetricDefinition) SetRegex(v string) *MetricDefinition { 10273 s.Regex = &v 10274 return s 10275} 10276 10277// Provides information about the location that is configured for storing model 10278// artifacts. 10279type ModelArtifacts struct { 10280 _ struct{} `type:"structure"` 10281 10282 // The path of the S3 object that contains the model artifacts. For example, 10283 // s3://bucket-name/keynameprefix/model.tar.gz. 10284 // 10285 // S3ModelArtifacts is a required field 10286 S3ModelArtifacts *string `type:"string" required:"true"` 10287} 10288 10289// String returns the string representation 10290func (s ModelArtifacts) String() string { 10291 return awsutil.Prettify(s) 10292} 10293 10294// GoString returns the string representation 10295func (s ModelArtifacts) GoString() string { 10296 return s.String() 10297} 10298 10299// SetS3ModelArtifacts sets the S3ModelArtifacts field's value. 10300func (s *ModelArtifacts) SetS3ModelArtifacts(v string) *ModelArtifacts { 10301 s.S3ModelArtifacts = &v 10302 return s 10303} 10304 10305// Provides summary information about a model. 10306type ModelSummary struct { 10307 _ struct{} `type:"structure"` 10308 10309 // A timestamp that indicates when the model was created. 10310 // 10311 // CreationTime is a required field 10312 CreationTime *time.Time `type:"timestamp" required:"true"` 10313 10314 // The Amazon Resource Name (ARN) of the model. 10315 // 10316 // ModelArn is a required field 10317 ModelArn *string `min:"20" type:"string" required:"true"` 10318 10319 // The name of the model that you want a summary for. 10320 // 10321 // ModelName is a required field 10322 ModelName *string `type:"string" required:"true"` 10323} 10324 10325// String returns the string representation 10326func (s ModelSummary) String() string { 10327 return awsutil.Prettify(s) 10328} 10329 10330// GoString returns the string representation 10331func (s ModelSummary) GoString() string { 10332 return s.String() 10333} 10334 10335// SetCreationTime sets the CreationTime field's value. 10336func (s *ModelSummary) SetCreationTime(v time.Time) *ModelSummary { 10337 s.CreationTime = &v 10338 return s 10339} 10340 10341// SetModelArn sets the ModelArn field's value. 10342func (s *ModelSummary) SetModelArn(v string) *ModelSummary { 10343 s.ModelArn = &v 10344 return s 10345} 10346 10347// SetModelName sets the ModelName field's value. 10348func (s *ModelSummary) SetModelName(v string) *ModelSummary { 10349 s.ModelName = &v 10350 return s 10351} 10352 10353// Provides a summary of a notebook instance lifecycle configuration. 10354type NotebookInstanceLifecycleConfigSummary struct { 10355 _ struct{} `type:"structure"` 10356 10357 // A timestamp that tells when the lifecycle configuration was created. 10358 CreationTime *time.Time `type:"timestamp"` 10359 10360 // A timestamp that tells when the lifecycle configuration was last modified. 10361 LastModifiedTime *time.Time `type:"timestamp"` 10362 10363 // The Amazon Resource Name (ARN) of the lifecycle configuration. 10364 // 10365 // NotebookInstanceLifecycleConfigArn is a required field 10366 NotebookInstanceLifecycleConfigArn *string `type:"string" required:"true"` 10367 10368 // The name of the lifecycle configuration. 10369 // 10370 // NotebookInstanceLifecycleConfigName is a required field 10371 NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` 10372} 10373 10374// String returns the string representation 10375func (s NotebookInstanceLifecycleConfigSummary) String() string { 10376 return awsutil.Prettify(s) 10377} 10378 10379// GoString returns the string representation 10380func (s NotebookInstanceLifecycleConfigSummary) GoString() string { 10381 return s.String() 10382} 10383 10384// SetCreationTime sets the CreationTime field's value. 10385func (s *NotebookInstanceLifecycleConfigSummary) SetCreationTime(v time.Time) *NotebookInstanceLifecycleConfigSummary { 10386 s.CreationTime = &v 10387 return s 10388} 10389 10390// SetLastModifiedTime sets the LastModifiedTime field's value. 10391func (s *NotebookInstanceLifecycleConfigSummary) SetLastModifiedTime(v time.Time) *NotebookInstanceLifecycleConfigSummary { 10392 s.LastModifiedTime = &v 10393 return s 10394} 10395 10396// SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value. 10397func (s *NotebookInstanceLifecycleConfigSummary) SetNotebookInstanceLifecycleConfigArn(v string) *NotebookInstanceLifecycleConfigSummary { 10398 s.NotebookInstanceLifecycleConfigArn = &v 10399 return s 10400} 10401 10402// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. 10403func (s *NotebookInstanceLifecycleConfigSummary) SetNotebookInstanceLifecycleConfigName(v string) *NotebookInstanceLifecycleConfigSummary { 10404 s.NotebookInstanceLifecycleConfigName = &v 10405 return s 10406} 10407 10408// Contains the notebook instance lifecycle configuration script. 10409// 10410// Each lifecycle configuration script has a limit of 16384 characters. 10411// 10412// The value of the $PATH environment variable that is available to both scripts 10413// is /sbin:bin:/usr/sbin:/usr/bin. 10414// 10415// View CloudWatch Logs for notebook instance lifecycle configurations in log 10416// group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook]. 10417// 10418// Lifecycle configuration scripts cannot run for longer than 5 minutes. If 10419// a script runs for longer than 5 minutes, it fails and the notebook instance 10420// is not created or started. 10421// 10422// For information about notebook instance lifestyle configurations, see notebook-lifecycle-config. 10423type NotebookInstanceLifecycleHook struct { 10424 _ struct{} `type:"structure"` 10425 10426 // A base64-encoded string that contains a shell script for a notebook instance 10427 // lifecycle configuration. 10428 Content *string `min:"1" type:"string"` 10429} 10430 10431// String returns the string representation 10432func (s NotebookInstanceLifecycleHook) String() string { 10433 return awsutil.Prettify(s) 10434} 10435 10436// GoString returns the string representation 10437func (s NotebookInstanceLifecycleHook) GoString() string { 10438 return s.String() 10439} 10440 10441// Validate inspects the fields of the type to determine if they are valid. 10442func (s *NotebookInstanceLifecycleHook) Validate() error { 10443 invalidParams := request.ErrInvalidParams{Context: "NotebookInstanceLifecycleHook"} 10444 if s.Content != nil && len(*s.Content) < 1 { 10445 invalidParams.Add(request.NewErrParamMinLen("Content", 1)) 10446 } 10447 10448 if invalidParams.Len() > 0 { 10449 return invalidParams 10450 } 10451 return nil 10452} 10453 10454// SetContent sets the Content field's value. 10455func (s *NotebookInstanceLifecycleHook) SetContent(v string) *NotebookInstanceLifecycleHook { 10456 s.Content = &v 10457 return s 10458} 10459 10460// Provides summary information for an Amazon SageMaker notebook instance. 10461type NotebookInstanceSummary struct { 10462 _ struct{} `type:"structure"` 10463 10464 // A timestamp that shows when the notebook instance was created. 10465 CreationTime *time.Time `type:"timestamp"` 10466 10467 // The type of ML compute instance that the notebook instance is running on. 10468 InstanceType *string `type:"string" enum:"InstanceType"` 10469 10470 // A timestamp that shows when the notebook instance was last modified. 10471 LastModifiedTime *time.Time `type:"timestamp"` 10472 10473 // The Amazon Resource Name (ARN) of the notebook instance. 10474 // 10475 // NotebookInstanceArn is a required field 10476 NotebookInstanceArn *string `type:"string" required:"true"` 10477 10478 // The name of a notebook instance lifecycle configuration associated with this 10479 // notebook instance. 10480 // 10481 // For information about notebook instance lifestyle configurations, see notebook-lifecycle-config. 10482 NotebookInstanceLifecycleConfigName *string `type:"string"` 10483 10484 // The name of the notebook instance that you want a summary for. 10485 // 10486 // NotebookInstanceName is a required field 10487 NotebookInstanceName *string `type:"string" required:"true"` 10488 10489 // The status of the notebook instance. 10490 NotebookInstanceStatus *string `type:"string" enum:"NotebookInstanceStatus"` 10491 10492 // The URL that you use to connect to the Jupyter instance running in your notebook 10493 // instance. 10494 Url *string `type:"string"` 10495} 10496 10497// String returns the string representation 10498func (s NotebookInstanceSummary) String() string { 10499 return awsutil.Prettify(s) 10500} 10501 10502// GoString returns the string representation 10503func (s NotebookInstanceSummary) GoString() string { 10504 return s.String() 10505} 10506 10507// SetCreationTime sets the CreationTime field's value. 10508func (s *NotebookInstanceSummary) SetCreationTime(v time.Time) *NotebookInstanceSummary { 10509 s.CreationTime = &v 10510 return s 10511} 10512 10513// SetInstanceType sets the InstanceType field's value. 10514func (s *NotebookInstanceSummary) SetInstanceType(v string) *NotebookInstanceSummary { 10515 s.InstanceType = &v 10516 return s 10517} 10518 10519// SetLastModifiedTime sets the LastModifiedTime field's value. 10520func (s *NotebookInstanceSummary) SetLastModifiedTime(v time.Time) *NotebookInstanceSummary { 10521 s.LastModifiedTime = &v 10522 return s 10523} 10524 10525// SetNotebookInstanceArn sets the NotebookInstanceArn field's value. 10526func (s *NotebookInstanceSummary) SetNotebookInstanceArn(v string) *NotebookInstanceSummary { 10527 s.NotebookInstanceArn = &v 10528 return s 10529} 10530 10531// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. 10532func (s *NotebookInstanceSummary) SetNotebookInstanceLifecycleConfigName(v string) *NotebookInstanceSummary { 10533 s.NotebookInstanceLifecycleConfigName = &v 10534 return s 10535} 10536 10537// SetNotebookInstanceName sets the NotebookInstanceName field's value. 10538func (s *NotebookInstanceSummary) SetNotebookInstanceName(v string) *NotebookInstanceSummary { 10539 s.NotebookInstanceName = &v 10540 return s 10541} 10542 10543// SetNotebookInstanceStatus sets the NotebookInstanceStatus field's value. 10544func (s *NotebookInstanceSummary) SetNotebookInstanceStatus(v string) *NotebookInstanceSummary { 10545 s.NotebookInstanceStatus = &v 10546 return s 10547} 10548 10549// SetUrl sets the Url field's value. 10550func (s *NotebookInstanceSummary) SetUrl(v string) *NotebookInstanceSummary { 10551 s.Url = &v 10552 return s 10553} 10554 10555// Specifies the number of training jobs that this hyperparameter tuning job 10556// launched, categorized by the status of their objective metric. The objective 10557// metric status shows whether the final objective metric for the training job 10558// has been evaluated by the tuning job and used in the hyperparameter tuning 10559// process. 10560type ObjectiveStatusCounters struct { 10561 _ struct{} `type:"structure"` 10562 10563 // The number of training jobs whose final objective metric was not evaluated 10564 // and used in the hyperparameter tuning process. This typically occurs when 10565 // the training job failed or did not emit an objective metric. 10566 Failed *int64 `type:"integer"` 10567 10568 // The number of training jobs that are in progress and pending evaluation of 10569 // their final objective metric. 10570 Pending *int64 `type:"integer"` 10571 10572 // The number of training jobs whose final objective metric was evaluated by 10573 // the hyperparameter tuning job and used in the hyperparameter tuning process. 10574 Succeeded *int64 `type:"integer"` 10575} 10576 10577// String returns the string representation 10578func (s ObjectiveStatusCounters) String() string { 10579 return awsutil.Prettify(s) 10580} 10581 10582// GoString returns the string representation 10583func (s ObjectiveStatusCounters) GoString() string { 10584 return s.String() 10585} 10586 10587// SetFailed sets the Failed field's value. 10588func (s *ObjectiveStatusCounters) SetFailed(v int64) *ObjectiveStatusCounters { 10589 s.Failed = &v 10590 return s 10591} 10592 10593// SetPending sets the Pending field's value. 10594func (s *ObjectiveStatusCounters) SetPending(v int64) *ObjectiveStatusCounters { 10595 s.Pending = &v 10596 return s 10597} 10598 10599// SetSucceeded sets the Succeeded field's value. 10600func (s *ObjectiveStatusCounters) SetSucceeded(v int64) *ObjectiveStatusCounters { 10601 s.Succeeded = &v 10602 return s 10603} 10604 10605// Provides information about how to store model training results (model artifacts). 10606type OutputDataConfig struct { 10607 _ struct{} `type:"structure"` 10608 10609 // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to 10610 // encrypt the model artifacts at rest using Amazon S3 server-side encryption. 10611 // 10612 // If you don't provide the KMS key ID, Amazon SageMaker uses the default KMS 10613 // key for Amazon S3 for your role's account. For more information, see KMS-Managed 10614 // Encryption Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) 10615 // in Amazon Simple Storage Service developer guide. 10616 // 10617 // The KMS key policy must grant permission to the IAM role you specify in your 10618 // CreateTrainingJob request. Using Key Policies in AWS KMS (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) 10619 // in the AWS Key Management Service Developer Guide. 10620 KmsKeyId *string `type:"string"` 10621 10622 // Identifies the S3 path where you want Amazon SageMaker to store the model 10623 // artifacts. For example, s3://bucket-name/key-name-prefix. 10624 // 10625 // S3OutputPath is a required field 10626 S3OutputPath *string `type:"string" required:"true"` 10627} 10628 10629// String returns the string representation 10630func (s OutputDataConfig) String() string { 10631 return awsutil.Prettify(s) 10632} 10633 10634// GoString returns the string representation 10635func (s OutputDataConfig) GoString() string { 10636 return s.String() 10637} 10638 10639// Validate inspects the fields of the type to determine if they are valid. 10640func (s *OutputDataConfig) Validate() error { 10641 invalidParams := request.ErrInvalidParams{Context: "OutputDataConfig"} 10642 if s.S3OutputPath == nil { 10643 invalidParams.Add(request.NewErrParamRequired("S3OutputPath")) 10644 } 10645 10646 if invalidParams.Len() > 0 { 10647 return invalidParams 10648 } 10649 return nil 10650} 10651 10652// SetKmsKeyId sets the KmsKeyId field's value. 10653func (s *OutputDataConfig) SetKmsKeyId(v string) *OutputDataConfig { 10654 s.KmsKeyId = &v 10655 return s 10656} 10657 10658// SetS3OutputPath sets the S3OutputPath field's value. 10659func (s *OutputDataConfig) SetS3OutputPath(v string) *OutputDataConfig { 10660 s.S3OutputPath = &v 10661 return s 10662} 10663 10664// Specifies ranges of integer, continuous, and categorical hyperparameters 10665// that a hyperparameter tuning job searches. 10666type ParameterRanges struct { 10667 _ struct{} `type:"structure"` 10668 10669 // The array of CategoricalParameterRange objects that specify ranges of categorical 10670 // hyperparameters that a hyperparameter tuning job searches. 10671 CategoricalParameterRanges []*CategoricalParameterRange `type:"list"` 10672 10673 // The array of ContinuousParameterRange objects that specify ranges of continuous 10674 // hyperparameters that a hyperparameter tuning job searches. 10675 ContinuousParameterRanges []*ContinuousParameterRange `type:"list"` 10676 10677 // The array of IntegerParameterRange objects that specify ranges of integer 10678 // hyperparameters that a hyperparameter tuning job searches. 10679 IntegerParameterRanges []*IntegerParameterRange `type:"list"` 10680} 10681 10682// String returns the string representation 10683func (s ParameterRanges) String() string { 10684 return awsutil.Prettify(s) 10685} 10686 10687// GoString returns the string representation 10688func (s ParameterRanges) GoString() string { 10689 return s.String() 10690} 10691 10692// Validate inspects the fields of the type to determine if they are valid. 10693func (s *ParameterRanges) Validate() error { 10694 invalidParams := request.ErrInvalidParams{Context: "ParameterRanges"} 10695 if s.CategoricalParameterRanges != nil { 10696 for i, v := range s.CategoricalParameterRanges { 10697 if v == nil { 10698 continue 10699 } 10700 if err := v.Validate(); err != nil { 10701 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CategoricalParameterRanges", i), err.(request.ErrInvalidParams)) 10702 } 10703 } 10704 } 10705 if s.ContinuousParameterRanges != nil { 10706 for i, v := range s.ContinuousParameterRanges { 10707 if v == nil { 10708 continue 10709 } 10710 if err := v.Validate(); err != nil { 10711 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContinuousParameterRanges", i), err.(request.ErrInvalidParams)) 10712 } 10713 } 10714 } 10715 if s.IntegerParameterRanges != nil { 10716 for i, v := range s.IntegerParameterRanges { 10717 if v == nil { 10718 continue 10719 } 10720 if err := v.Validate(); err != nil { 10721 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "IntegerParameterRanges", i), err.(request.ErrInvalidParams)) 10722 } 10723 } 10724 } 10725 10726 if invalidParams.Len() > 0 { 10727 return invalidParams 10728 } 10729 return nil 10730} 10731 10732// SetCategoricalParameterRanges sets the CategoricalParameterRanges field's value. 10733func (s *ParameterRanges) SetCategoricalParameterRanges(v []*CategoricalParameterRange) *ParameterRanges { 10734 s.CategoricalParameterRanges = v 10735 return s 10736} 10737 10738// SetContinuousParameterRanges sets the ContinuousParameterRanges field's value. 10739func (s *ParameterRanges) SetContinuousParameterRanges(v []*ContinuousParameterRange) *ParameterRanges { 10740 s.ContinuousParameterRanges = v 10741 return s 10742} 10743 10744// SetIntegerParameterRanges sets the IntegerParameterRanges field's value. 10745func (s *ParameterRanges) SetIntegerParameterRanges(v []*IntegerParameterRange) *ParameterRanges { 10746 s.IntegerParameterRanges = v 10747 return s 10748} 10749 10750// Identifies a model that you want to host and the resources to deploy for 10751// hosting it. If you are deploying multiple models, tell Amazon SageMaker how 10752// to distribute traffic among the models by specifying variant weights. 10753type ProductionVariant struct { 10754 _ struct{} `type:"structure"` 10755 10756 // Number of instances to launch initially. 10757 // 10758 // InitialInstanceCount is a required field 10759 InitialInstanceCount *int64 `min:"1" type:"integer" required:"true"` 10760 10761 // Determines initial traffic distribution among all of the models that you 10762 // specify in the endpoint configuration. The traffic to a production variant 10763 // is determined by the ratio of the VariantWeight to the sum of all VariantWeight 10764 // values across all ProductionVariants. If unspecified, it defaults to 1.0. 10765 InitialVariantWeight *float64 `type:"float"` 10766 10767 // The ML compute instance type. 10768 // 10769 // InstanceType is a required field 10770 InstanceType *string `type:"string" required:"true" enum:"ProductionVariantInstanceType"` 10771 10772 // The name of the model that you want to host. This is the name that you specified 10773 // when creating the model. 10774 // 10775 // ModelName is a required field 10776 ModelName *string `type:"string" required:"true"` 10777 10778 // The name of the production variant. 10779 // 10780 // VariantName is a required field 10781 VariantName *string `type:"string" required:"true"` 10782} 10783 10784// String returns the string representation 10785func (s ProductionVariant) String() string { 10786 return awsutil.Prettify(s) 10787} 10788 10789// GoString returns the string representation 10790func (s ProductionVariant) GoString() string { 10791 return s.String() 10792} 10793 10794// Validate inspects the fields of the type to determine if they are valid. 10795func (s *ProductionVariant) Validate() error { 10796 invalidParams := request.ErrInvalidParams{Context: "ProductionVariant"} 10797 if s.InitialInstanceCount == nil { 10798 invalidParams.Add(request.NewErrParamRequired("InitialInstanceCount")) 10799 } 10800 if s.InitialInstanceCount != nil && *s.InitialInstanceCount < 1 { 10801 invalidParams.Add(request.NewErrParamMinValue("InitialInstanceCount", 1)) 10802 } 10803 if s.InstanceType == nil { 10804 invalidParams.Add(request.NewErrParamRequired("InstanceType")) 10805 } 10806 if s.ModelName == nil { 10807 invalidParams.Add(request.NewErrParamRequired("ModelName")) 10808 } 10809 if s.VariantName == nil { 10810 invalidParams.Add(request.NewErrParamRequired("VariantName")) 10811 } 10812 10813 if invalidParams.Len() > 0 { 10814 return invalidParams 10815 } 10816 return nil 10817} 10818 10819// SetInitialInstanceCount sets the InitialInstanceCount field's value. 10820func (s *ProductionVariant) SetInitialInstanceCount(v int64) *ProductionVariant { 10821 s.InitialInstanceCount = &v 10822 return s 10823} 10824 10825// SetInitialVariantWeight sets the InitialVariantWeight field's value. 10826func (s *ProductionVariant) SetInitialVariantWeight(v float64) *ProductionVariant { 10827 s.InitialVariantWeight = &v 10828 return s 10829} 10830 10831// SetInstanceType sets the InstanceType field's value. 10832func (s *ProductionVariant) SetInstanceType(v string) *ProductionVariant { 10833 s.InstanceType = &v 10834 return s 10835} 10836 10837// SetModelName sets the ModelName field's value. 10838func (s *ProductionVariant) SetModelName(v string) *ProductionVariant { 10839 s.ModelName = &v 10840 return s 10841} 10842 10843// SetVariantName sets the VariantName field's value. 10844func (s *ProductionVariant) SetVariantName(v string) *ProductionVariant { 10845 s.VariantName = &v 10846 return s 10847} 10848 10849// Describes weight and capacities for a production variant associated with 10850// an endpoint. If you sent a request to the UpdateEndpointWeightsAndCapacities 10851// API and the endpoint status is Updating, you get different desired and current 10852// values. 10853type ProductionVariantSummary struct { 10854 _ struct{} `type:"structure"` 10855 10856 // The number of instances associated with the variant. 10857 CurrentInstanceCount *int64 `min:"1" type:"integer"` 10858 10859 // The weight associated with the variant. 10860 CurrentWeight *float64 `type:"float"` 10861 10862 // An array of DeployedImage objects that specify the Amazon EC2 Container Registry 10863 // paths of the inference images deployed on instances of this ProductionVariant. 10864 DeployedImages []*DeployedImage `type:"list"` 10865 10866 // The number of instances requested in the UpdateEndpointWeightsAndCapacities 10867 // request. 10868 DesiredInstanceCount *int64 `min:"1" type:"integer"` 10869 10870 // The requested weight, as specified in the UpdateEndpointWeightsAndCapacities 10871 // request. 10872 DesiredWeight *float64 `type:"float"` 10873 10874 // The name of the variant. 10875 // 10876 // VariantName is a required field 10877 VariantName *string `type:"string" required:"true"` 10878} 10879 10880// String returns the string representation 10881func (s ProductionVariantSummary) String() string { 10882 return awsutil.Prettify(s) 10883} 10884 10885// GoString returns the string representation 10886func (s ProductionVariantSummary) GoString() string { 10887 return s.String() 10888} 10889 10890// SetCurrentInstanceCount sets the CurrentInstanceCount field's value. 10891func (s *ProductionVariantSummary) SetCurrentInstanceCount(v int64) *ProductionVariantSummary { 10892 s.CurrentInstanceCount = &v 10893 return s 10894} 10895 10896// SetCurrentWeight sets the CurrentWeight field's value. 10897func (s *ProductionVariantSummary) SetCurrentWeight(v float64) *ProductionVariantSummary { 10898 s.CurrentWeight = &v 10899 return s 10900} 10901 10902// SetDeployedImages sets the DeployedImages field's value. 10903func (s *ProductionVariantSummary) SetDeployedImages(v []*DeployedImage) *ProductionVariantSummary { 10904 s.DeployedImages = v 10905 return s 10906} 10907 10908// SetDesiredInstanceCount sets the DesiredInstanceCount field's value. 10909func (s *ProductionVariantSummary) SetDesiredInstanceCount(v int64) *ProductionVariantSummary { 10910 s.DesiredInstanceCount = &v 10911 return s 10912} 10913 10914// SetDesiredWeight sets the DesiredWeight field's value. 10915func (s *ProductionVariantSummary) SetDesiredWeight(v float64) *ProductionVariantSummary { 10916 s.DesiredWeight = &v 10917 return s 10918} 10919 10920// SetVariantName sets the VariantName field's value. 10921func (s *ProductionVariantSummary) SetVariantName(v string) *ProductionVariantSummary { 10922 s.VariantName = &v 10923 return s 10924} 10925 10926// Describes the resources, including ML compute instances and ML storage volumes, 10927// to use for model training. 10928type ResourceConfig struct { 10929 _ struct{} `type:"structure"` 10930 10931 // The number of ML compute instances to use. For distributed training, provide 10932 // a value greater than 1. 10933 // 10934 // InstanceCount is a required field 10935 InstanceCount *int64 `min:"1" type:"integer" required:"true"` 10936 10937 // The ML compute instance type. 10938 // 10939 // InstanceType is a required field 10940 InstanceType *string `type:"string" required:"true" enum:"TrainingInstanceType"` 10941 10942 // The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon 10943 // SageMaker uses to encrypt data on the storage volume attached to the ML compute 10944 // instance(s) that run the training job. 10945 VolumeKmsKeyId *string `type:"string"` 10946 10947 // The size of the ML storage volume that you want to provision. 10948 // 10949 // ML storage volumes store model artifacts and incremental states. Training 10950 // algorithms might also use the ML storage volume for scratch space. If you 10951 // want to store the training data in the ML storage volume, choose File as 10952 // the TrainingInputMode in the algorithm specification. 10953 // 10954 // You must specify sufficient ML storage for your scenario. 10955 // 10956 // Amazon SageMaker supports only the General Purpose SSD (gp2) ML storage volume 10957 // type. 10958 // 10959 // VolumeSizeInGB is a required field 10960 VolumeSizeInGB *int64 `min:"1" type:"integer" required:"true"` 10961} 10962 10963// String returns the string representation 10964func (s ResourceConfig) String() string { 10965 return awsutil.Prettify(s) 10966} 10967 10968// GoString returns the string representation 10969func (s ResourceConfig) GoString() string { 10970 return s.String() 10971} 10972 10973// Validate inspects the fields of the type to determine if they are valid. 10974func (s *ResourceConfig) Validate() error { 10975 invalidParams := request.ErrInvalidParams{Context: "ResourceConfig"} 10976 if s.InstanceCount == nil { 10977 invalidParams.Add(request.NewErrParamRequired("InstanceCount")) 10978 } 10979 if s.InstanceCount != nil && *s.InstanceCount < 1 { 10980 invalidParams.Add(request.NewErrParamMinValue("InstanceCount", 1)) 10981 } 10982 if s.InstanceType == nil { 10983 invalidParams.Add(request.NewErrParamRequired("InstanceType")) 10984 } 10985 if s.VolumeSizeInGB == nil { 10986 invalidParams.Add(request.NewErrParamRequired("VolumeSizeInGB")) 10987 } 10988 if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 1 { 10989 invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 1)) 10990 } 10991 10992 if invalidParams.Len() > 0 { 10993 return invalidParams 10994 } 10995 return nil 10996} 10997 10998// SetInstanceCount sets the InstanceCount field's value. 10999func (s *ResourceConfig) SetInstanceCount(v int64) *ResourceConfig { 11000 s.InstanceCount = &v 11001 return s 11002} 11003 11004// SetInstanceType sets the InstanceType field's value. 11005func (s *ResourceConfig) SetInstanceType(v string) *ResourceConfig { 11006 s.InstanceType = &v 11007 return s 11008} 11009 11010// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 11011func (s *ResourceConfig) SetVolumeKmsKeyId(v string) *ResourceConfig { 11012 s.VolumeKmsKeyId = &v 11013 return s 11014} 11015 11016// SetVolumeSizeInGB sets the VolumeSizeInGB field's value. 11017func (s *ResourceConfig) SetVolumeSizeInGB(v int64) *ResourceConfig { 11018 s.VolumeSizeInGB = &v 11019 return s 11020} 11021 11022// Specifies the maximum number of training jobs and parallel training jobs 11023// that a hyperparameter tuning job can launch. 11024type ResourceLimits struct { 11025 _ struct{} `type:"structure"` 11026 11027 // The maximum number of training jobs that a hyperparameter tuning job can 11028 // launch. 11029 // 11030 // MaxNumberOfTrainingJobs is a required field 11031 MaxNumberOfTrainingJobs *int64 `min:"1" type:"integer" required:"true"` 11032 11033 // The maximum number of concurrent training jobs that a hyperparameter tuning 11034 // job can launch. 11035 // 11036 // MaxParallelTrainingJobs is a required field 11037 MaxParallelTrainingJobs *int64 `min:"1" type:"integer" required:"true"` 11038} 11039 11040// String returns the string representation 11041func (s ResourceLimits) String() string { 11042 return awsutil.Prettify(s) 11043} 11044 11045// GoString returns the string representation 11046func (s ResourceLimits) GoString() string { 11047 return s.String() 11048} 11049 11050// Validate inspects the fields of the type to determine if they are valid. 11051func (s *ResourceLimits) Validate() error { 11052 invalidParams := request.ErrInvalidParams{Context: "ResourceLimits"} 11053 if s.MaxNumberOfTrainingJobs == nil { 11054 invalidParams.Add(request.NewErrParamRequired("MaxNumberOfTrainingJobs")) 11055 } 11056 if s.MaxNumberOfTrainingJobs != nil && *s.MaxNumberOfTrainingJobs < 1 { 11057 invalidParams.Add(request.NewErrParamMinValue("MaxNumberOfTrainingJobs", 1)) 11058 } 11059 if s.MaxParallelTrainingJobs == nil { 11060 invalidParams.Add(request.NewErrParamRequired("MaxParallelTrainingJobs")) 11061 } 11062 if s.MaxParallelTrainingJobs != nil && *s.MaxParallelTrainingJobs < 1 { 11063 invalidParams.Add(request.NewErrParamMinValue("MaxParallelTrainingJobs", 1)) 11064 } 11065 11066 if invalidParams.Len() > 0 { 11067 return invalidParams 11068 } 11069 return nil 11070} 11071 11072// SetMaxNumberOfTrainingJobs sets the MaxNumberOfTrainingJobs field's value. 11073func (s *ResourceLimits) SetMaxNumberOfTrainingJobs(v int64) *ResourceLimits { 11074 s.MaxNumberOfTrainingJobs = &v 11075 return s 11076} 11077 11078// SetMaxParallelTrainingJobs sets the MaxParallelTrainingJobs field's value. 11079func (s *ResourceLimits) SetMaxParallelTrainingJobs(v int64) *ResourceLimits { 11080 s.MaxParallelTrainingJobs = &v 11081 return s 11082} 11083 11084// Describes the S3 data source. 11085type S3DataSource struct { 11086 _ struct{} `type:"structure"` 11087 11088 // If you want Amazon SageMaker to replicate the entire dataset on each ML compute 11089 // instance that is launched for model training, specify FullyReplicated. 11090 // 11091 // If you want Amazon SageMaker to replicate a subset of data on each ML compute 11092 // instance that is launched for model training, specify ShardedByS3Key. If 11093 // there are n ML compute instances launched for a training job, each instance 11094 // gets approximately 1/n of the number of S3 objects. In this case, model training 11095 // on each machine uses only the subset of training data. 11096 // 11097 // Don't choose more ML compute instances for training than available S3 objects. 11098 // If you do, some nodes won't get any data and you will pay for nodes that 11099 // aren't getting any training data. This applies in both FILE and PIPE modes. 11100 // Keep this in mind when developing algorithms. 11101 // 11102 // In distributed training, where you use multiple ML compute EC2 instances, 11103 // you might choose ShardedByS3Key. If the algorithm requires copying training 11104 // data to the ML storage volume (when TrainingInputMode is set to File), this 11105 // copies 1/n of the number of objects. 11106 S3DataDistributionType *string `type:"string" enum:"S3DataDistribution"` 11107 11108 // If you choose S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker 11109 // uses all objects with the specified key name prefix for model training. 11110 // 11111 // If you choose ManifestFile, S3Uri identifies an object that is a manifest 11112 // file containing a list of object keys that you want Amazon SageMaker to use 11113 // for model training. 11114 // 11115 // S3DataType is a required field 11116 S3DataType *string `type:"string" required:"true" enum:"S3DataType"` 11117 11118 // Depending on the value specified for the S3DataType, identifies either a 11119 // key name prefix or a manifest. For example: 11120 // 11121 // * A key name prefix might look like this: s3://bucketname/exampleprefix. 11122 // 11123 // 11124 // * A manifest might look like this: s3://bucketname/example.manifest 11125 // 11126 // The manifest is an S3 object which is a JSON file with the following format: 11127 // 11128 // 11129 // [ 11130 // 11131 // {"prefix": "s3://customer_bucket/some/prefix/"}, 11132 // 11133 // "relative/path/to/custdata-1", 11134 // 11135 // "relative/path/custdata-2", 11136 // 11137 // ... 11138 // 11139 // ] 11140 // 11141 // The preceding JSON matches the following s3Uris: 11142 // 11143 // s3://customer_bucket/some/prefix/relative/path/to/custdata-1 11144 // 11145 // s3://customer_bucket/some/prefix/relative/path/custdata-1 11146 // 11147 // ... 11148 // 11149 // The complete set of s3uris in this manifest constitutes the input data for 11150 // the channel for this datasource. The object that each s3uris points to 11151 // must readable by the IAM role that Amazon SageMaker uses to perform tasks 11152 // on your behalf. 11153 // 11154 // S3Uri is a required field 11155 S3Uri *string `type:"string" required:"true"` 11156} 11157 11158// String returns the string representation 11159func (s S3DataSource) String() string { 11160 return awsutil.Prettify(s) 11161} 11162 11163// GoString returns the string representation 11164func (s S3DataSource) GoString() string { 11165 return s.String() 11166} 11167 11168// Validate inspects the fields of the type to determine if they are valid. 11169func (s *S3DataSource) Validate() error { 11170 invalidParams := request.ErrInvalidParams{Context: "S3DataSource"} 11171 if s.S3DataType == nil { 11172 invalidParams.Add(request.NewErrParamRequired("S3DataType")) 11173 } 11174 if s.S3Uri == nil { 11175 invalidParams.Add(request.NewErrParamRequired("S3Uri")) 11176 } 11177 11178 if invalidParams.Len() > 0 { 11179 return invalidParams 11180 } 11181 return nil 11182} 11183 11184// SetS3DataDistributionType sets the S3DataDistributionType field's value. 11185func (s *S3DataSource) SetS3DataDistributionType(v string) *S3DataSource { 11186 s.S3DataDistributionType = &v 11187 return s 11188} 11189 11190// SetS3DataType sets the S3DataType field's value. 11191func (s *S3DataSource) SetS3DataType(v string) *S3DataSource { 11192 s.S3DataType = &v 11193 return s 11194} 11195 11196// SetS3Uri sets the S3Uri field's value. 11197func (s *S3DataSource) SetS3Uri(v string) *S3DataSource { 11198 s.S3Uri = &v 11199 return s 11200} 11201 11202// Specifies a secondary status the job has transitioned into. It includes a 11203// start timestamp and later an end timestamp. The end timestamp is added either 11204// after the job transitions to a different secondary status or after the job 11205// has ended. 11206type SecondaryStatusTransition struct { 11207 _ struct{} `type:"structure"` 11208 11209 // A timestamp that shows when the secondary status has ended and the job has 11210 // transitioned into another secondary status. 11211 EndTime *time.Time `type:"timestamp"` 11212 11213 // A timestamp that shows when the training job has entered this secondary status. 11214 // 11215 // StartTime is a required field 11216 StartTime *time.Time `type:"timestamp" required:"true"` 11217 11218 // Provides granular information about the system state. For more information, 11219 // see SecondaryStatus under the DescribeTrainingJob response elements. 11220 // 11221 // Status is a required field 11222 Status *string `type:"string" required:"true" enum:"SecondaryStatus"` 11223 11224 // Shows a brief description and other information about the secondary status. 11225 // For example, the LaunchingMLInstances secondary status could show a status 11226 // message of "Insufficent capacity error while launching instances". 11227 StatusMessage *string `type:"string"` 11228} 11229 11230// String returns the string representation 11231func (s SecondaryStatusTransition) String() string { 11232 return awsutil.Prettify(s) 11233} 11234 11235// GoString returns the string representation 11236func (s SecondaryStatusTransition) GoString() string { 11237 return s.String() 11238} 11239 11240// SetEndTime sets the EndTime field's value. 11241func (s *SecondaryStatusTransition) SetEndTime(v time.Time) *SecondaryStatusTransition { 11242 s.EndTime = &v 11243 return s 11244} 11245 11246// SetStartTime sets the StartTime field's value. 11247func (s *SecondaryStatusTransition) SetStartTime(v time.Time) *SecondaryStatusTransition { 11248 s.StartTime = &v 11249 return s 11250} 11251 11252// SetStatus sets the Status field's value. 11253func (s *SecondaryStatusTransition) SetStatus(v string) *SecondaryStatusTransition { 11254 s.Status = &v 11255 return s 11256} 11257 11258// SetStatusMessage sets the StatusMessage field's value. 11259func (s *SecondaryStatusTransition) SetStatusMessage(v string) *SecondaryStatusTransition { 11260 s.StatusMessage = &v 11261 return s 11262} 11263 11264type StartNotebookInstanceInput struct { 11265 _ struct{} `type:"structure"` 11266 11267 // The name of the notebook instance to start. 11268 // 11269 // NotebookInstanceName is a required field 11270 NotebookInstanceName *string `type:"string" required:"true"` 11271} 11272 11273// String returns the string representation 11274func (s StartNotebookInstanceInput) String() string { 11275 return awsutil.Prettify(s) 11276} 11277 11278// GoString returns the string representation 11279func (s StartNotebookInstanceInput) GoString() string { 11280 return s.String() 11281} 11282 11283// Validate inspects the fields of the type to determine if they are valid. 11284func (s *StartNotebookInstanceInput) Validate() error { 11285 invalidParams := request.ErrInvalidParams{Context: "StartNotebookInstanceInput"} 11286 if s.NotebookInstanceName == nil { 11287 invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) 11288 } 11289 11290 if invalidParams.Len() > 0 { 11291 return invalidParams 11292 } 11293 return nil 11294} 11295 11296// SetNotebookInstanceName sets the NotebookInstanceName field's value. 11297func (s *StartNotebookInstanceInput) SetNotebookInstanceName(v string) *StartNotebookInstanceInput { 11298 s.NotebookInstanceName = &v 11299 return s 11300} 11301 11302type StartNotebookInstanceOutput struct { 11303 _ struct{} `type:"structure"` 11304} 11305 11306// String returns the string representation 11307func (s StartNotebookInstanceOutput) String() string { 11308 return awsutil.Prettify(s) 11309} 11310 11311// GoString returns the string representation 11312func (s StartNotebookInstanceOutput) GoString() string { 11313 return s.String() 11314} 11315 11316type StopHyperParameterTuningJobInput struct { 11317 _ struct{} `type:"structure"` 11318 11319 // The name of the tuning job to stop. 11320 // 11321 // HyperParameterTuningJobName is a required field 11322 HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` 11323} 11324 11325// String returns the string representation 11326func (s StopHyperParameterTuningJobInput) String() string { 11327 return awsutil.Prettify(s) 11328} 11329 11330// GoString returns the string representation 11331func (s StopHyperParameterTuningJobInput) GoString() string { 11332 return s.String() 11333} 11334 11335// Validate inspects the fields of the type to determine if they are valid. 11336func (s *StopHyperParameterTuningJobInput) Validate() error { 11337 invalidParams := request.ErrInvalidParams{Context: "StopHyperParameterTuningJobInput"} 11338 if s.HyperParameterTuningJobName == nil { 11339 invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) 11340 } 11341 if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { 11342 invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) 11343 } 11344 11345 if invalidParams.Len() > 0 { 11346 return invalidParams 11347 } 11348 return nil 11349} 11350 11351// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. 11352func (s *StopHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *StopHyperParameterTuningJobInput { 11353 s.HyperParameterTuningJobName = &v 11354 return s 11355} 11356 11357type StopHyperParameterTuningJobOutput struct { 11358 _ struct{} `type:"structure"` 11359} 11360 11361// String returns the string representation 11362func (s StopHyperParameterTuningJobOutput) String() string { 11363 return awsutil.Prettify(s) 11364} 11365 11366// GoString returns the string representation 11367func (s StopHyperParameterTuningJobOutput) GoString() string { 11368 return s.String() 11369} 11370 11371type StopNotebookInstanceInput struct { 11372 _ struct{} `type:"structure"` 11373 11374 // The name of the notebook instance to terminate. 11375 // 11376 // NotebookInstanceName is a required field 11377 NotebookInstanceName *string `type:"string" required:"true"` 11378} 11379 11380// String returns the string representation 11381func (s StopNotebookInstanceInput) String() string { 11382 return awsutil.Prettify(s) 11383} 11384 11385// GoString returns the string representation 11386func (s StopNotebookInstanceInput) GoString() string { 11387 return s.String() 11388} 11389 11390// Validate inspects the fields of the type to determine if they are valid. 11391func (s *StopNotebookInstanceInput) Validate() error { 11392 invalidParams := request.ErrInvalidParams{Context: "StopNotebookInstanceInput"} 11393 if s.NotebookInstanceName == nil { 11394 invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) 11395 } 11396 11397 if invalidParams.Len() > 0 { 11398 return invalidParams 11399 } 11400 return nil 11401} 11402 11403// SetNotebookInstanceName sets the NotebookInstanceName field's value. 11404func (s *StopNotebookInstanceInput) SetNotebookInstanceName(v string) *StopNotebookInstanceInput { 11405 s.NotebookInstanceName = &v 11406 return s 11407} 11408 11409type StopNotebookInstanceOutput struct { 11410 _ struct{} `type:"structure"` 11411} 11412 11413// String returns the string representation 11414func (s StopNotebookInstanceOutput) String() string { 11415 return awsutil.Prettify(s) 11416} 11417 11418// GoString returns the string representation 11419func (s StopNotebookInstanceOutput) GoString() string { 11420 return s.String() 11421} 11422 11423type StopTrainingJobInput struct { 11424 _ struct{} `type:"structure"` 11425 11426 // The name of the training job to stop. 11427 // 11428 // TrainingJobName is a required field 11429 TrainingJobName *string `min:"1" type:"string" required:"true"` 11430} 11431 11432// String returns the string representation 11433func (s StopTrainingJobInput) String() string { 11434 return awsutil.Prettify(s) 11435} 11436 11437// GoString returns the string representation 11438func (s StopTrainingJobInput) GoString() string { 11439 return s.String() 11440} 11441 11442// Validate inspects the fields of the type to determine if they are valid. 11443func (s *StopTrainingJobInput) Validate() error { 11444 invalidParams := request.ErrInvalidParams{Context: "StopTrainingJobInput"} 11445 if s.TrainingJobName == nil { 11446 invalidParams.Add(request.NewErrParamRequired("TrainingJobName")) 11447 } 11448 if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 { 11449 invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1)) 11450 } 11451 11452 if invalidParams.Len() > 0 { 11453 return invalidParams 11454 } 11455 return nil 11456} 11457 11458// SetTrainingJobName sets the TrainingJobName field's value. 11459func (s *StopTrainingJobInput) SetTrainingJobName(v string) *StopTrainingJobInput { 11460 s.TrainingJobName = &v 11461 return s 11462} 11463 11464type StopTrainingJobOutput struct { 11465 _ struct{} `type:"structure"` 11466} 11467 11468// String returns the string representation 11469func (s StopTrainingJobOutput) String() string { 11470 return awsutil.Prettify(s) 11471} 11472 11473// GoString returns the string representation 11474func (s StopTrainingJobOutput) GoString() string { 11475 return s.String() 11476} 11477 11478type StopTransformJobInput struct { 11479 _ struct{} `type:"structure"` 11480 11481 // The name of the transform job to stop. 11482 // 11483 // TransformJobName is a required field 11484 TransformJobName *string `min:"1" type:"string" required:"true"` 11485} 11486 11487// String returns the string representation 11488func (s StopTransformJobInput) String() string { 11489 return awsutil.Prettify(s) 11490} 11491 11492// GoString returns the string representation 11493func (s StopTransformJobInput) GoString() string { 11494 return s.String() 11495} 11496 11497// Validate inspects the fields of the type to determine if they are valid. 11498func (s *StopTransformJobInput) Validate() error { 11499 invalidParams := request.ErrInvalidParams{Context: "StopTransformJobInput"} 11500 if s.TransformJobName == nil { 11501 invalidParams.Add(request.NewErrParamRequired("TransformJobName")) 11502 } 11503 if s.TransformJobName != nil && len(*s.TransformJobName) < 1 { 11504 invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1)) 11505 } 11506 11507 if invalidParams.Len() > 0 { 11508 return invalidParams 11509 } 11510 return nil 11511} 11512 11513// SetTransformJobName sets the TransformJobName field's value. 11514func (s *StopTransformJobInput) SetTransformJobName(v string) *StopTransformJobInput { 11515 s.TransformJobName = &v 11516 return s 11517} 11518 11519type StopTransformJobOutput struct { 11520 _ struct{} `type:"structure"` 11521} 11522 11523// String returns the string representation 11524func (s StopTransformJobOutput) String() string { 11525 return awsutil.Prettify(s) 11526} 11527 11528// GoString returns the string representation 11529func (s StopTransformJobOutput) GoString() string { 11530 return s.String() 11531} 11532 11533// Specifies how long model training can run. When model training reaches the 11534// limit, Amazon SageMaker ends the training job. Use this API to cap model 11535// training cost. 11536// 11537// To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which 11538// delays job termination for120 seconds. Algorithms might use this 120-second 11539// window to save the model artifacts, so the results of training is not lost. 11540// 11541// Training algorithms provided by Amazon SageMaker automatically saves the 11542// intermediate results of a model training job (it is best effort case, as 11543// model might not be ready to save as some stages, for example training just 11544// started). This intermediate data is a valid model artifact. You can use it 11545// to create a model (CreateModel). 11546type StoppingCondition struct { 11547 _ struct{} `type:"structure"` 11548 11549 // The maximum length of time, in seconds, that the training job can run. If 11550 // model training does not complete during this time, Amazon SageMaker ends 11551 // the job. If value is not specified, default value is 1 day. Maximum value 11552 // is 5 days. 11553 MaxRuntimeInSeconds *int64 `min:"1" type:"integer"` 11554} 11555 11556// String returns the string representation 11557func (s StoppingCondition) String() string { 11558 return awsutil.Prettify(s) 11559} 11560 11561// GoString returns the string representation 11562func (s StoppingCondition) GoString() string { 11563 return s.String() 11564} 11565 11566// Validate inspects the fields of the type to determine if they are valid. 11567func (s *StoppingCondition) Validate() error { 11568 invalidParams := request.ErrInvalidParams{Context: "StoppingCondition"} 11569 if s.MaxRuntimeInSeconds != nil && *s.MaxRuntimeInSeconds < 1 { 11570 invalidParams.Add(request.NewErrParamMinValue("MaxRuntimeInSeconds", 1)) 11571 } 11572 11573 if invalidParams.Len() > 0 { 11574 return invalidParams 11575 } 11576 return nil 11577} 11578 11579// SetMaxRuntimeInSeconds sets the MaxRuntimeInSeconds field's value. 11580func (s *StoppingCondition) SetMaxRuntimeInSeconds(v int64) *StoppingCondition { 11581 s.MaxRuntimeInSeconds = &v 11582 return s 11583} 11584 11585// Describes a tag. 11586type Tag struct { 11587 _ struct{} `type:"structure"` 11588 11589 // The tag key. 11590 // 11591 // Key is a required field 11592 Key *string `min:"1" type:"string" required:"true"` 11593 11594 // The tag value. 11595 // 11596 // Value is a required field 11597 Value *string `type:"string" required:"true"` 11598} 11599 11600// String returns the string representation 11601func (s Tag) String() string { 11602 return awsutil.Prettify(s) 11603} 11604 11605// GoString returns the string representation 11606func (s Tag) GoString() string { 11607 return s.String() 11608} 11609 11610// Validate inspects the fields of the type to determine if they are valid. 11611func (s *Tag) Validate() error { 11612 invalidParams := request.ErrInvalidParams{Context: "Tag"} 11613 if s.Key == nil { 11614 invalidParams.Add(request.NewErrParamRequired("Key")) 11615 } 11616 if s.Key != nil && len(*s.Key) < 1 { 11617 invalidParams.Add(request.NewErrParamMinLen("Key", 1)) 11618 } 11619 if s.Value == nil { 11620 invalidParams.Add(request.NewErrParamRequired("Value")) 11621 } 11622 11623 if invalidParams.Len() > 0 { 11624 return invalidParams 11625 } 11626 return nil 11627} 11628 11629// SetKey sets the Key field's value. 11630func (s *Tag) SetKey(v string) *Tag { 11631 s.Key = &v 11632 return s 11633} 11634 11635// SetValue sets the Value field's value. 11636func (s *Tag) SetValue(v string) *Tag { 11637 s.Value = &v 11638 return s 11639} 11640 11641// The numbers of training jobs launched by a hyperparameter tuning job, categorized 11642// by status. 11643type TrainingJobStatusCounters struct { 11644 _ struct{} `type:"structure"` 11645 11646 // The number of completed training jobs launched by a hyperparameter tuning 11647 // job. 11648 Completed *int64 `type:"integer"` 11649 11650 // The number of in-progress training jobs launched by a hyperparameter tuning 11651 // job. 11652 InProgress *int64 `type:"integer"` 11653 11654 // The number of training jobs that failed and can't be retried. A failed training 11655 // job can't be retried if it failed because a client error occurred. 11656 NonRetryableError *int64 `type:"integer"` 11657 11658 // The number of training jobs that failed, but can be retried. A failed training 11659 // job can be retried only if it failed because an internal service error occurred. 11660 RetryableError *int64 `type:"integer"` 11661 11662 // The number of training jobs launched by a hyperparameter tuning job that 11663 // were manually stopped. 11664 Stopped *int64 `type:"integer"` 11665} 11666 11667// String returns the string representation 11668func (s TrainingJobStatusCounters) String() string { 11669 return awsutil.Prettify(s) 11670} 11671 11672// GoString returns the string representation 11673func (s TrainingJobStatusCounters) GoString() string { 11674 return s.String() 11675} 11676 11677// SetCompleted sets the Completed field's value. 11678func (s *TrainingJobStatusCounters) SetCompleted(v int64) *TrainingJobStatusCounters { 11679 s.Completed = &v 11680 return s 11681} 11682 11683// SetInProgress sets the InProgress field's value. 11684func (s *TrainingJobStatusCounters) SetInProgress(v int64) *TrainingJobStatusCounters { 11685 s.InProgress = &v 11686 return s 11687} 11688 11689// SetNonRetryableError sets the NonRetryableError field's value. 11690func (s *TrainingJobStatusCounters) SetNonRetryableError(v int64) *TrainingJobStatusCounters { 11691 s.NonRetryableError = &v 11692 return s 11693} 11694 11695// SetRetryableError sets the RetryableError field's value. 11696func (s *TrainingJobStatusCounters) SetRetryableError(v int64) *TrainingJobStatusCounters { 11697 s.RetryableError = &v 11698 return s 11699} 11700 11701// SetStopped sets the Stopped field's value. 11702func (s *TrainingJobStatusCounters) SetStopped(v int64) *TrainingJobStatusCounters { 11703 s.Stopped = &v 11704 return s 11705} 11706 11707// Provides summary information about a training job. 11708type TrainingJobSummary struct { 11709 _ struct{} `type:"structure"` 11710 11711 // A timestamp that shows when the training job was created. 11712 // 11713 // CreationTime is a required field 11714 CreationTime *time.Time `type:"timestamp" required:"true"` 11715 11716 // Timestamp when the training job was last modified. 11717 LastModifiedTime *time.Time `type:"timestamp"` 11718 11719 // A timestamp that shows when the training job ended. This field is set only 11720 // if the training job has one of the terminal statuses (Completed, Failed, 11721 // or Stopped). 11722 TrainingEndTime *time.Time `type:"timestamp"` 11723 11724 // The Amazon Resource Name (ARN) of the training job. 11725 // 11726 // TrainingJobArn is a required field 11727 TrainingJobArn *string `type:"string" required:"true"` 11728 11729 // The name of the training job that you want a summary for. 11730 // 11731 // TrainingJobName is a required field 11732 TrainingJobName *string `min:"1" type:"string" required:"true"` 11733 11734 // The status of the training job. 11735 // 11736 // TrainingJobStatus is a required field 11737 TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"` 11738} 11739 11740// String returns the string representation 11741func (s TrainingJobSummary) String() string { 11742 return awsutil.Prettify(s) 11743} 11744 11745// GoString returns the string representation 11746func (s TrainingJobSummary) GoString() string { 11747 return s.String() 11748} 11749 11750// SetCreationTime sets the CreationTime field's value. 11751func (s *TrainingJobSummary) SetCreationTime(v time.Time) *TrainingJobSummary { 11752 s.CreationTime = &v 11753 return s 11754} 11755 11756// SetLastModifiedTime sets the LastModifiedTime field's value. 11757func (s *TrainingJobSummary) SetLastModifiedTime(v time.Time) *TrainingJobSummary { 11758 s.LastModifiedTime = &v 11759 return s 11760} 11761 11762// SetTrainingEndTime sets the TrainingEndTime field's value. 11763func (s *TrainingJobSummary) SetTrainingEndTime(v time.Time) *TrainingJobSummary { 11764 s.TrainingEndTime = &v 11765 return s 11766} 11767 11768// SetTrainingJobArn sets the TrainingJobArn field's value. 11769func (s *TrainingJobSummary) SetTrainingJobArn(v string) *TrainingJobSummary { 11770 s.TrainingJobArn = &v 11771 return s 11772} 11773 11774// SetTrainingJobName sets the TrainingJobName field's value. 11775func (s *TrainingJobSummary) SetTrainingJobName(v string) *TrainingJobSummary { 11776 s.TrainingJobName = &v 11777 return s 11778} 11779 11780// SetTrainingJobStatus sets the TrainingJobStatus field's value. 11781func (s *TrainingJobSummary) SetTrainingJobStatus(v string) *TrainingJobSummary { 11782 s.TrainingJobStatus = &v 11783 return s 11784} 11785 11786// Describes the location of the channel data. 11787type TransformDataSource struct { 11788 _ struct{} `type:"structure"` 11789 11790 // The S3 location of the data source that is associated with a channel. 11791 // 11792 // S3DataSource is a required field 11793 S3DataSource *TransformS3DataSource `type:"structure" required:"true"` 11794} 11795 11796// String returns the string representation 11797func (s TransformDataSource) String() string { 11798 return awsutil.Prettify(s) 11799} 11800 11801// GoString returns the string representation 11802func (s TransformDataSource) GoString() string { 11803 return s.String() 11804} 11805 11806// Validate inspects the fields of the type to determine if they are valid. 11807func (s *TransformDataSource) Validate() error { 11808 invalidParams := request.ErrInvalidParams{Context: "TransformDataSource"} 11809 if s.S3DataSource == nil { 11810 invalidParams.Add(request.NewErrParamRequired("S3DataSource")) 11811 } 11812 if s.S3DataSource != nil { 11813 if err := s.S3DataSource.Validate(); err != nil { 11814 invalidParams.AddNested("S3DataSource", err.(request.ErrInvalidParams)) 11815 } 11816 } 11817 11818 if invalidParams.Len() > 0 { 11819 return invalidParams 11820 } 11821 return nil 11822} 11823 11824// SetS3DataSource sets the S3DataSource field's value. 11825func (s *TransformDataSource) SetS3DataSource(v *TransformS3DataSource) *TransformDataSource { 11826 s.S3DataSource = v 11827 return s 11828} 11829 11830// Describes the input source of a transform job and the way the transform job 11831// consumes it. 11832type TransformInput struct { 11833 _ struct{} `type:"structure"` 11834 11835 // Compressing data helps save on storage space. If your transform data is compressed, 11836 // specify the compression type.and Amazon SageMaker will automatically decompress 11837 // the data for the transform job accordingly. The default value is None. 11838 CompressionType *string `type:"string" enum:"CompressionType"` 11839 11840 // The multipurpose internet mail extension (MIME) type of the data. Amazon 11841 // SageMaker uses the MIME type with each http call to transfer data to the 11842 // transform job. 11843 ContentType *string `type:"string"` 11844 11845 // Describes the location of the channel data, meaning the S3 location of the 11846 // input data that the model can consume. 11847 // 11848 // DataSource is a required field 11849 DataSource *TransformDataSource `type:"structure" required:"true"` 11850 11851 // The method to use to split the transform job's data into smaller batches. 11852 // The default value is None. If you don't want to split the data, specify None. 11853 // If you want to split records on a newline character boundary, specify Line. 11854 // To split records according to the RecordIO format, specify RecordIO. 11855 // 11856 // Amazon SageMaker will send maximum number of records per batch in each request 11857 // up to the MaxPayloadInMB limit. For more information, see RecordIO data format 11858 // (http://mxnet.io/architecture/note_data_loading.html#data-format). 11859 // 11860 // For information about the RecordIO format, see Data Format (http://mxnet.io/architecture/note_data_loading.html#data-format). 11861 SplitType *string `type:"string" enum:"SplitType"` 11862} 11863 11864// String returns the string representation 11865func (s TransformInput) String() string { 11866 return awsutil.Prettify(s) 11867} 11868 11869// GoString returns the string representation 11870func (s TransformInput) GoString() string { 11871 return s.String() 11872} 11873 11874// Validate inspects the fields of the type to determine if they are valid. 11875func (s *TransformInput) Validate() error { 11876 invalidParams := request.ErrInvalidParams{Context: "TransformInput"} 11877 if s.DataSource == nil { 11878 invalidParams.Add(request.NewErrParamRequired("DataSource")) 11879 } 11880 if s.DataSource != nil { 11881 if err := s.DataSource.Validate(); err != nil { 11882 invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams)) 11883 } 11884 } 11885 11886 if invalidParams.Len() > 0 { 11887 return invalidParams 11888 } 11889 return nil 11890} 11891 11892// SetCompressionType sets the CompressionType field's value. 11893func (s *TransformInput) SetCompressionType(v string) *TransformInput { 11894 s.CompressionType = &v 11895 return s 11896} 11897 11898// SetContentType sets the ContentType field's value. 11899func (s *TransformInput) SetContentType(v string) *TransformInput { 11900 s.ContentType = &v 11901 return s 11902} 11903 11904// SetDataSource sets the DataSource field's value. 11905func (s *TransformInput) SetDataSource(v *TransformDataSource) *TransformInput { 11906 s.DataSource = v 11907 return s 11908} 11909 11910// SetSplitType sets the SplitType field's value. 11911func (s *TransformInput) SetSplitType(v string) *TransformInput { 11912 s.SplitType = &v 11913 return s 11914} 11915 11916// Provides a summary information for a transform job. Multiple TransformJobSummary 11917// objects are returned as a list after calling ListTransformJobs. 11918type TransformJobSummary struct { 11919 _ struct{} `type:"structure"` 11920 11921 // A timestamp that shows when the transform Job was created. 11922 // 11923 // CreationTime is a required field 11924 CreationTime *time.Time `type:"timestamp" required:"true"` 11925 11926 // If the transform job failed, the reason it failed. 11927 FailureReason *string `type:"string"` 11928 11929 // Indicates when the transform job was last modified. 11930 LastModifiedTime *time.Time `type:"timestamp"` 11931 11932 // Indicates when the transform job ends on compute instances. For successful 11933 // jobs and stopped jobs, this is the exact time recorded after the results 11934 // are uploaded. For failed jobs, this is when Amazon SageMaker detected that 11935 // the job failed. 11936 TransformEndTime *time.Time `type:"timestamp"` 11937 11938 // The Amazon Resource Name (ARN) of the transform job. 11939 // 11940 // TransformJobArn is a required field 11941 TransformJobArn *string `type:"string" required:"true"` 11942 11943 // The name of the transform job. 11944 // 11945 // TransformJobName is a required field 11946 TransformJobName *string `min:"1" type:"string" required:"true"` 11947 11948 // The status of the transform job. 11949 // 11950 // TransformJobStatus is a required field 11951 TransformJobStatus *string `type:"string" required:"true" enum:"TransformJobStatus"` 11952} 11953 11954// String returns the string representation 11955func (s TransformJobSummary) String() string { 11956 return awsutil.Prettify(s) 11957} 11958 11959// GoString returns the string representation 11960func (s TransformJobSummary) GoString() string { 11961 return s.String() 11962} 11963 11964// SetCreationTime sets the CreationTime field's value. 11965func (s *TransformJobSummary) SetCreationTime(v time.Time) *TransformJobSummary { 11966 s.CreationTime = &v 11967 return s 11968} 11969 11970// SetFailureReason sets the FailureReason field's value. 11971func (s *TransformJobSummary) SetFailureReason(v string) *TransformJobSummary { 11972 s.FailureReason = &v 11973 return s 11974} 11975 11976// SetLastModifiedTime sets the LastModifiedTime field's value. 11977func (s *TransformJobSummary) SetLastModifiedTime(v time.Time) *TransformJobSummary { 11978 s.LastModifiedTime = &v 11979 return s 11980} 11981 11982// SetTransformEndTime sets the TransformEndTime field's value. 11983func (s *TransformJobSummary) SetTransformEndTime(v time.Time) *TransformJobSummary { 11984 s.TransformEndTime = &v 11985 return s 11986} 11987 11988// SetTransformJobArn sets the TransformJobArn field's value. 11989func (s *TransformJobSummary) SetTransformJobArn(v string) *TransformJobSummary { 11990 s.TransformJobArn = &v 11991 return s 11992} 11993 11994// SetTransformJobName sets the TransformJobName field's value. 11995func (s *TransformJobSummary) SetTransformJobName(v string) *TransformJobSummary { 11996 s.TransformJobName = &v 11997 return s 11998} 11999 12000// SetTransformJobStatus sets the TransformJobStatus field's value. 12001func (s *TransformJobSummary) SetTransformJobStatus(v string) *TransformJobSummary { 12002 s.TransformJobStatus = &v 12003 return s 12004} 12005 12006// Describes the results of a transform job output. 12007type TransformOutput struct { 12008 _ struct{} `type:"structure"` 12009 12010 // The MIME type used to specify the output data. Amazon SageMaker uses the 12011 // MIME type with each http call to transfer data from the transform job. 12012 Accept *string `type:"string"` 12013 12014 // Defines how to assemble the results of the transform job as a single S3 object. 12015 // You should select a format that is most convenient to you. To concatenate 12016 // the results in binary format, specify None. To add a newline character at 12017 // the end of every transformed record, specify Line. To assemble the output 12018 // in RecordIO format, specify RecordIO. The default value is None. 12019 // 12020 // For information about the RecordIO format, see Data Format (http://mxnet.io/architecture/note_data_loading.html#data-format). 12021 AssembleWith *string `type:"string" enum:"AssemblyType"` 12022 12023 // The AWS Key Management Service (AWS KMS) key for Amazon S3 server-side encryption 12024 // that Amazon SageMaker uses to encrypt the transformed data. 12025 // 12026 // If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS 12027 // key for Amazon S3 for your role's account. For more information, see KMS-Managed 12028 // Encryption Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) 12029 // in the Amazon Simple Storage Service Developer Guide. 12030 // 12031 // The KMS key policy must grant permission to the IAM role that you specify 12032 // in your CreateTramsformJob request. For more information, see Using Key Policies 12033 // in AWS KMS (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) 12034 // in the AWS Key Management Service Developer Guide. 12035 KmsKeyId *string `type:"string"` 12036 12037 // The Amazon S3 path where you want Amazon SageMaker to store the results of 12038 // the transform job. For example, s3://bucket-name/key-name-prefix. 12039 // 12040 // For every S3 object used as input for the transform job, the transformed 12041 // data is stored in a corresponding subfolder in the location under the output 12042 // prefix. For example, the input data s3://bucket-name/input-name-prefix/dataset01/data.csv 12043 // will have the transformed data stored at s3://bucket-name/key-name-prefix/dataset01/, 12044 // based on the original name, as a series of .part files (.part0001, part0002, 12045 // etc). 12046 // 12047 // S3OutputPath is a required field 12048 S3OutputPath *string `type:"string" required:"true"` 12049} 12050 12051// String returns the string representation 12052func (s TransformOutput) String() string { 12053 return awsutil.Prettify(s) 12054} 12055 12056// GoString returns the string representation 12057func (s TransformOutput) GoString() string { 12058 return s.String() 12059} 12060 12061// Validate inspects the fields of the type to determine if they are valid. 12062func (s *TransformOutput) Validate() error { 12063 invalidParams := request.ErrInvalidParams{Context: "TransformOutput"} 12064 if s.S3OutputPath == nil { 12065 invalidParams.Add(request.NewErrParamRequired("S3OutputPath")) 12066 } 12067 12068 if invalidParams.Len() > 0 { 12069 return invalidParams 12070 } 12071 return nil 12072} 12073 12074// SetAccept sets the Accept field's value. 12075func (s *TransformOutput) SetAccept(v string) *TransformOutput { 12076 s.Accept = &v 12077 return s 12078} 12079 12080// SetAssembleWith sets the AssembleWith field's value. 12081func (s *TransformOutput) SetAssembleWith(v string) *TransformOutput { 12082 s.AssembleWith = &v 12083 return s 12084} 12085 12086// SetKmsKeyId sets the KmsKeyId field's value. 12087func (s *TransformOutput) SetKmsKeyId(v string) *TransformOutput { 12088 s.KmsKeyId = &v 12089 return s 12090} 12091 12092// SetS3OutputPath sets the S3OutputPath field's value. 12093func (s *TransformOutput) SetS3OutputPath(v string) *TransformOutput { 12094 s.S3OutputPath = &v 12095 return s 12096} 12097 12098// Describes the resources, including ML instance types and ML instance count, 12099// to use for transform job. 12100type TransformResources struct { 12101 _ struct{} `type:"structure"` 12102 12103 // The number of ML compute instances to use in the transform job. For distributed 12104 // transform, provide a value greater than 1. The default value is 1. 12105 // 12106 // InstanceCount is a required field 12107 InstanceCount *int64 `min:"1" type:"integer" required:"true"` 12108 12109 // The ML compute instance type for the transform job. For using built-in algorithms 12110 // to transform moderately sized datasets, ml.m4.xlarge or ml.m5.large should 12111 // suffice. There is no default value for InstanceType. 12112 // 12113 // InstanceType is a required field 12114 InstanceType *string `type:"string" required:"true" enum:"TransformInstanceType"` 12115} 12116 12117// String returns the string representation 12118func (s TransformResources) String() string { 12119 return awsutil.Prettify(s) 12120} 12121 12122// GoString returns the string representation 12123func (s TransformResources) GoString() string { 12124 return s.String() 12125} 12126 12127// Validate inspects the fields of the type to determine if they are valid. 12128func (s *TransformResources) Validate() error { 12129 invalidParams := request.ErrInvalidParams{Context: "TransformResources"} 12130 if s.InstanceCount == nil { 12131 invalidParams.Add(request.NewErrParamRequired("InstanceCount")) 12132 } 12133 if s.InstanceCount != nil && *s.InstanceCount < 1 { 12134 invalidParams.Add(request.NewErrParamMinValue("InstanceCount", 1)) 12135 } 12136 if s.InstanceType == nil { 12137 invalidParams.Add(request.NewErrParamRequired("InstanceType")) 12138 } 12139 12140 if invalidParams.Len() > 0 { 12141 return invalidParams 12142 } 12143 return nil 12144} 12145 12146// SetInstanceCount sets the InstanceCount field's value. 12147func (s *TransformResources) SetInstanceCount(v int64) *TransformResources { 12148 s.InstanceCount = &v 12149 return s 12150} 12151 12152// SetInstanceType sets the InstanceType field's value. 12153func (s *TransformResources) SetInstanceType(v string) *TransformResources { 12154 s.InstanceType = &v 12155 return s 12156} 12157 12158// Describes the S3 data source. 12159type TransformS3DataSource struct { 12160 _ struct{} `type:"structure"` 12161 12162 // If you choose S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker 12163 // uses all objects with the specified key name prefix for batch transform. 12164 // 12165 // If you choose ManifestFile, S3Uri identifies an object that is a manifest 12166 // file containing a list of object keys that you want Amazon SageMaker to use 12167 // for batch transform. 12168 // 12169 // S3DataType is a required field 12170 S3DataType *string `type:"string" required:"true" enum:"S3DataType"` 12171 12172 // Depending on the value specified for the S3DataType, identifies either a 12173 // key name prefix or a manifest. For example: 12174 // 12175 // * A key name prefix might look like this: s3://bucketname/exampleprefix. 12176 // 12177 // 12178 // * A manifest might look like this: s3://bucketname/example.manifest 12179 // 12180 // The manifest is an S3 object which is a JSON file with the following format: 12181 // 12182 // 12183 // [ 12184 // 12185 // {"prefix": "s3://customer_bucket/some/prefix/"}, 12186 // 12187 // "relative/path/to/custdata-1", 12188 // 12189 // "relative/path/custdata-2", 12190 // 12191 // ... 12192 // 12193 // ] 12194 // 12195 // The preceding JSON matches the following S3Uris: 12196 // 12197 // s3://customer_bucket/some/prefix/relative/path/to/custdata-1 12198 // 12199 // s3://customer_bucket/some/prefix/relative/path/custdata-1 12200 // 12201 // ... 12202 // 12203 // The complete set of S3Uris in this manifest constitutes the input data for 12204 // the channel for this datasource. The object that each S3Uris points to 12205 // must be readable by the IAM role that Amazon SageMaker uses to perform 12206 // tasks on your behalf. 12207 // 12208 // S3Uri is a required field 12209 S3Uri *string `type:"string" required:"true"` 12210} 12211 12212// String returns the string representation 12213func (s TransformS3DataSource) String() string { 12214 return awsutil.Prettify(s) 12215} 12216 12217// GoString returns the string representation 12218func (s TransformS3DataSource) GoString() string { 12219 return s.String() 12220} 12221 12222// Validate inspects the fields of the type to determine if they are valid. 12223func (s *TransformS3DataSource) Validate() error { 12224 invalidParams := request.ErrInvalidParams{Context: "TransformS3DataSource"} 12225 if s.S3DataType == nil { 12226 invalidParams.Add(request.NewErrParamRequired("S3DataType")) 12227 } 12228 if s.S3Uri == nil { 12229 invalidParams.Add(request.NewErrParamRequired("S3Uri")) 12230 } 12231 12232 if invalidParams.Len() > 0 { 12233 return invalidParams 12234 } 12235 return nil 12236} 12237 12238// SetS3DataType sets the S3DataType field's value. 12239func (s *TransformS3DataSource) SetS3DataType(v string) *TransformS3DataSource { 12240 s.S3DataType = &v 12241 return s 12242} 12243 12244// SetS3Uri sets the S3Uri field's value. 12245func (s *TransformS3DataSource) SetS3Uri(v string) *TransformS3DataSource { 12246 s.S3Uri = &v 12247 return s 12248} 12249 12250type UpdateEndpointInput struct { 12251 _ struct{} `type:"structure"` 12252 12253 // The name of the new endpoint configuration. 12254 // 12255 // EndpointConfigName is a required field 12256 EndpointConfigName *string `type:"string" required:"true"` 12257 12258 // The name of the endpoint whose configuration you want to update. 12259 // 12260 // EndpointName is a required field 12261 EndpointName *string `type:"string" required:"true"` 12262} 12263 12264// String returns the string representation 12265func (s UpdateEndpointInput) String() string { 12266 return awsutil.Prettify(s) 12267} 12268 12269// GoString returns the string representation 12270func (s UpdateEndpointInput) GoString() string { 12271 return s.String() 12272} 12273 12274// Validate inspects the fields of the type to determine if they are valid. 12275func (s *UpdateEndpointInput) Validate() error { 12276 invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointInput"} 12277 if s.EndpointConfigName == nil { 12278 invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) 12279 } 12280 if s.EndpointName == nil { 12281 invalidParams.Add(request.NewErrParamRequired("EndpointName")) 12282 } 12283 12284 if invalidParams.Len() > 0 { 12285 return invalidParams 12286 } 12287 return nil 12288} 12289 12290// SetEndpointConfigName sets the EndpointConfigName field's value. 12291func (s *UpdateEndpointInput) SetEndpointConfigName(v string) *UpdateEndpointInput { 12292 s.EndpointConfigName = &v 12293 return s 12294} 12295 12296// SetEndpointName sets the EndpointName field's value. 12297func (s *UpdateEndpointInput) SetEndpointName(v string) *UpdateEndpointInput { 12298 s.EndpointName = &v 12299 return s 12300} 12301 12302type UpdateEndpointOutput struct { 12303 _ struct{} `type:"structure"` 12304 12305 // The Amazon Resource Name (ARN) of the endpoint. 12306 // 12307 // EndpointArn is a required field 12308 EndpointArn *string `min:"20" type:"string" required:"true"` 12309} 12310 12311// String returns the string representation 12312func (s UpdateEndpointOutput) String() string { 12313 return awsutil.Prettify(s) 12314} 12315 12316// GoString returns the string representation 12317func (s UpdateEndpointOutput) GoString() string { 12318 return s.String() 12319} 12320 12321// SetEndpointArn sets the EndpointArn field's value. 12322func (s *UpdateEndpointOutput) SetEndpointArn(v string) *UpdateEndpointOutput { 12323 s.EndpointArn = &v 12324 return s 12325} 12326 12327type UpdateEndpointWeightsAndCapacitiesInput struct { 12328 _ struct{} `type:"structure"` 12329 12330 // An object that provides new capacity and weight values for a variant. 12331 // 12332 // DesiredWeightsAndCapacities is a required field 12333 DesiredWeightsAndCapacities []*DesiredWeightAndCapacity `min:"1" type:"list" required:"true"` 12334 12335 // The name of an existing Amazon SageMaker endpoint. 12336 // 12337 // EndpointName is a required field 12338 EndpointName *string `type:"string" required:"true"` 12339} 12340 12341// String returns the string representation 12342func (s UpdateEndpointWeightsAndCapacitiesInput) String() string { 12343 return awsutil.Prettify(s) 12344} 12345 12346// GoString returns the string representation 12347func (s UpdateEndpointWeightsAndCapacitiesInput) GoString() string { 12348 return s.String() 12349} 12350 12351// Validate inspects the fields of the type to determine if they are valid. 12352func (s *UpdateEndpointWeightsAndCapacitiesInput) Validate() error { 12353 invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointWeightsAndCapacitiesInput"} 12354 if s.DesiredWeightsAndCapacities == nil { 12355 invalidParams.Add(request.NewErrParamRequired("DesiredWeightsAndCapacities")) 12356 } 12357 if s.DesiredWeightsAndCapacities != nil && len(s.DesiredWeightsAndCapacities) < 1 { 12358 invalidParams.Add(request.NewErrParamMinLen("DesiredWeightsAndCapacities", 1)) 12359 } 12360 if s.EndpointName == nil { 12361 invalidParams.Add(request.NewErrParamRequired("EndpointName")) 12362 } 12363 if s.DesiredWeightsAndCapacities != nil { 12364 for i, v := range s.DesiredWeightsAndCapacities { 12365 if v == nil { 12366 continue 12367 } 12368 if err := v.Validate(); err != nil { 12369 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DesiredWeightsAndCapacities", i), err.(request.ErrInvalidParams)) 12370 } 12371 } 12372 } 12373 12374 if invalidParams.Len() > 0 { 12375 return invalidParams 12376 } 12377 return nil 12378} 12379 12380// SetDesiredWeightsAndCapacities sets the DesiredWeightsAndCapacities field's value. 12381func (s *UpdateEndpointWeightsAndCapacitiesInput) SetDesiredWeightsAndCapacities(v []*DesiredWeightAndCapacity) *UpdateEndpointWeightsAndCapacitiesInput { 12382 s.DesiredWeightsAndCapacities = v 12383 return s 12384} 12385 12386// SetEndpointName sets the EndpointName field's value. 12387func (s *UpdateEndpointWeightsAndCapacitiesInput) SetEndpointName(v string) *UpdateEndpointWeightsAndCapacitiesInput { 12388 s.EndpointName = &v 12389 return s 12390} 12391 12392type UpdateEndpointWeightsAndCapacitiesOutput struct { 12393 _ struct{} `type:"structure"` 12394 12395 // The Amazon Resource Name (ARN) of the updated endpoint. 12396 // 12397 // EndpointArn is a required field 12398 EndpointArn *string `min:"20" type:"string" required:"true"` 12399} 12400 12401// String returns the string representation 12402func (s UpdateEndpointWeightsAndCapacitiesOutput) String() string { 12403 return awsutil.Prettify(s) 12404} 12405 12406// GoString returns the string representation 12407func (s UpdateEndpointWeightsAndCapacitiesOutput) GoString() string { 12408 return s.String() 12409} 12410 12411// SetEndpointArn sets the EndpointArn field's value. 12412func (s *UpdateEndpointWeightsAndCapacitiesOutput) SetEndpointArn(v string) *UpdateEndpointWeightsAndCapacitiesOutput { 12413 s.EndpointArn = &v 12414 return s 12415} 12416 12417type UpdateNotebookInstanceInput struct { 12418 _ struct{} `type:"structure"` 12419 12420 // The Amazon ML compute instance type. 12421 InstanceType *string `type:"string" enum:"InstanceType"` 12422 12423 // The name of the notebook instance to update. 12424 // 12425 // NotebookInstanceName is a required field 12426 NotebookInstanceName *string `type:"string" required:"true"` 12427 12428 // The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker can 12429 // assume to access the notebook instance. For more information, see Amazon 12430 // SageMaker Roles (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html). 12431 // 12432 // To be able to pass this role to Amazon SageMaker, the caller of this API 12433 // must have the iam:PassRole permission. 12434 RoleArn *string `min:"20" type:"string"` 12435} 12436 12437// String returns the string representation 12438func (s UpdateNotebookInstanceInput) String() string { 12439 return awsutil.Prettify(s) 12440} 12441 12442// GoString returns the string representation 12443func (s UpdateNotebookInstanceInput) GoString() string { 12444 return s.String() 12445} 12446 12447// Validate inspects the fields of the type to determine if they are valid. 12448func (s *UpdateNotebookInstanceInput) Validate() error { 12449 invalidParams := request.ErrInvalidParams{Context: "UpdateNotebookInstanceInput"} 12450 if s.NotebookInstanceName == nil { 12451 invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) 12452 } 12453 if s.RoleArn != nil && len(*s.RoleArn) < 20 { 12454 invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) 12455 } 12456 12457 if invalidParams.Len() > 0 { 12458 return invalidParams 12459 } 12460 return nil 12461} 12462 12463// SetInstanceType sets the InstanceType field's value. 12464func (s *UpdateNotebookInstanceInput) SetInstanceType(v string) *UpdateNotebookInstanceInput { 12465 s.InstanceType = &v 12466 return s 12467} 12468 12469// SetNotebookInstanceName sets the NotebookInstanceName field's value. 12470func (s *UpdateNotebookInstanceInput) SetNotebookInstanceName(v string) *UpdateNotebookInstanceInput { 12471 s.NotebookInstanceName = &v 12472 return s 12473} 12474 12475// SetRoleArn sets the RoleArn field's value. 12476func (s *UpdateNotebookInstanceInput) SetRoleArn(v string) *UpdateNotebookInstanceInput { 12477 s.RoleArn = &v 12478 return s 12479} 12480 12481type UpdateNotebookInstanceLifecycleConfigInput struct { 12482 _ struct{} `type:"structure"` 12483 12484 // The name of the lifecycle configuration. 12485 // 12486 // NotebookInstanceLifecycleConfigName is a required field 12487 NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` 12488 12489 // The shell script that runs only once, when you create a notebook instance 12490 OnCreate []*NotebookInstanceLifecycleHook `type:"list"` 12491 12492 // The shell script that runs every time you start a notebook instance, including 12493 // when you create the notebook instance. 12494 OnStart []*NotebookInstanceLifecycleHook `type:"list"` 12495} 12496 12497// String returns the string representation 12498func (s UpdateNotebookInstanceLifecycleConfigInput) String() string { 12499 return awsutil.Prettify(s) 12500} 12501 12502// GoString returns the string representation 12503func (s UpdateNotebookInstanceLifecycleConfigInput) GoString() string { 12504 return s.String() 12505} 12506 12507// Validate inspects the fields of the type to determine if they are valid. 12508func (s *UpdateNotebookInstanceLifecycleConfigInput) Validate() error { 12509 invalidParams := request.ErrInvalidParams{Context: "UpdateNotebookInstanceLifecycleConfigInput"} 12510 if s.NotebookInstanceLifecycleConfigName == nil { 12511 invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) 12512 } 12513 if s.OnCreate != nil { 12514 for i, v := range s.OnCreate { 12515 if v == nil { 12516 continue 12517 } 12518 if err := v.Validate(); err != nil { 12519 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnCreate", i), err.(request.ErrInvalidParams)) 12520 } 12521 } 12522 } 12523 if s.OnStart != nil { 12524 for i, v := range s.OnStart { 12525 if v == nil { 12526 continue 12527 } 12528 if err := v.Validate(); err != nil { 12529 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnStart", i), err.(request.ErrInvalidParams)) 12530 } 12531 } 12532 } 12533 12534 if invalidParams.Len() > 0 { 12535 return invalidParams 12536 } 12537 return nil 12538} 12539 12540// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. 12541func (s *UpdateNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *UpdateNotebookInstanceLifecycleConfigInput { 12542 s.NotebookInstanceLifecycleConfigName = &v 12543 return s 12544} 12545 12546// SetOnCreate sets the OnCreate field's value. 12547func (s *UpdateNotebookInstanceLifecycleConfigInput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *UpdateNotebookInstanceLifecycleConfigInput { 12548 s.OnCreate = v 12549 return s 12550} 12551 12552// SetOnStart sets the OnStart field's value. 12553func (s *UpdateNotebookInstanceLifecycleConfigInput) SetOnStart(v []*NotebookInstanceLifecycleHook) *UpdateNotebookInstanceLifecycleConfigInput { 12554 s.OnStart = v 12555 return s 12556} 12557 12558type UpdateNotebookInstanceLifecycleConfigOutput struct { 12559 _ struct{} `type:"structure"` 12560} 12561 12562// String returns the string representation 12563func (s UpdateNotebookInstanceLifecycleConfigOutput) String() string { 12564 return awsutil.Prettify(s) 12565} 12566 12567// GoString returns the string representation 12568func (s UpdateNotebookInstanceLifecycleConfigOutput) GoString() string { 12569 return s.String() 12570} 12571 12572type UpdateNotebookInstanceOutput struct { 12573 _ struct{} `type:"structure"` 12574} 12575 12576// String returns the string representation 12577func (s UpdateNotebookInstanceOutput) String() string { 12578 return awsutil.Prettify(s) 12579} 12580 12581// GoString returns the string representation 12582func (s UpdateNotebookInstanceOutput) GoString() string { 12583 return s.String() 12584} 12585 12586// Specifies a VPC that your training jobs and hosted models have access to. 12587// Control access to and from your training and model containers by configuring 12588// the VPC. For more information, see host-vpc and train-vpc. 12589type VpcConfig struct { 12590 _ struct{} `type:"structure"` 12591 12592 // The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security 12593 // groups for the VPC that is specified in the Subnets field. 12594 // 12595 // SecurityGroupIds is a required field 12596 SecurityGroupIds []*string `min:"1" type:"list" required:"true"` 12597 12598 // The ID of the subnets in the VPC to which you want to connect your training 12599 // job or model. 12600 // 12601 // Subnets is a required field 12602 Subnets []*string `min:"1" type:"list" required:"true"` 12603} 12604 12605// String returns the string representation 12606func (s VpcConfig) String() string { 12607 return awsutil.Prettify(s) 12608} 12609 12610// GoString returns the string representation 12611func (s VpcConfig) GoString() string { 12612 return s.String() 12613} 12614 12615// Validate inspects the fields of the type to determine if they are valid. 12616func (s *VpcConfig) Validate() error { 12617 invalidParams := request.ErrInvalidParams{Context: "VpcConfig"} 12618 if s.SecurityGroupIds == nil { 12619 invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds")) 12620 } 12621 if s.SecurityGroupIds != nil && len(s.SecurityGroupIds) < 1 { 12622 invalidParams.Add(request.NewErrParamMinLen("SecurityGroupIds", 1)) 12623 } 12624 if s.Subnets == nil { 12625 invalidParams.Add(request.NewErrParamRequired("Subnets")) 12626 } 12627 if s.Subnets != nil && len(s.Subnets) < 1 { 12628 invalidParams.Add(request.NewErrParamMinLen("Subnets", 1)) 12629 } 12630 12631 if invalidParams.Len() > 0 { 12632 return invalidParams 12633 } 12634 return nil 12635} 12636 12637// SetSecurityGroupIds sets the SecurityGroupIds field's value. 12638func (s *VpcConfig) SetSecurityGroupIds(v []*string) *VpcConfig { 12639 s.SecurityGroupIds = v 12640 return s 12641} 12642 12643// SetSubnets sets the Subnets field's value. 12644func (s *VpcConfig) SetSubnets(v []*string) *VpcConfig { 12645 s.Subnets = v 12646 return s 12647} 12648 12649const ( 12650 // AssemblyTypeNone is a AssemblyType enum value 12651 AssemblyTypeNone = "None" 12652 12653 // AssemblyTypeLine is a AssemblyType enum value 12654 AssemblyTypeLine = "Line" 12655) 12656 12657const ( 12658 // BatchStrategyMultiRecord is a BatchStrategy enum value 12659 BatchStrategyMultiRecord = "MultiRecord" 12660 12661 // BatchStrategySingleRecord is a BatchStrategy enum value 12662 BatchStrategySingleRecord = "SingleRecord" 12663) 12664 12665const ( 12666 // CompressionTypeNone is a CompressionType enum value 12667 CompressionTypeNone = "None" 12668 12669 // CompressionTypeGzip is a CompressionType enum value 12670 CompressionTypeGzip = "Gzip" 12671) 12672 12673const ( 12674 // DirectInternetAccessEnabled is a DirectInternetAccess enum value 12675 DirectInternetAccessEnabled = "Enabled" 12676 12677 // DirectInternetAccessDisabled is a DirectInternetAccess enum value 12678 DirectInternetAccessDisabled = "Disabled" 12679) 12680 12681const ( 12682 // EndpointConfigSortKeyName is a EndpointConfigSortKey enum value 12683 EndpointConfigSortKeyName = "Name" 12684 12685 // EndpointConfigSortKeyCreationTime is a EndpointConfigSortKey enum value 12686 EndpointConfigSortKeyCreationTime = "CreationTime" 12687) 12688 12689const ( 12690 // EndpointSortKeyName is a EndpointSortKey enum value 12691 EndpointSortKeyName = "Name" 12692 12693 // EndpointSortKeyCreationTime is a EndpointSortKey enum value 12694 EndpointSortKeyCreationTime = "CreationTime" 12695 12696 // EndpointSortKeyStatus is a EndpointSortKey enum value 12697 EndpointSortKeyStatus = "Status" 12698) 12699 12700const ( 12701 // EndpointStatusOutOfService is a EndpointStatus enum value 12702 EndpointStatusOutOfService = "OutOfService" 12703 12704 // EndpointStatusCreating is a EndpointStatus enum value 12705 EndpointStatusCreating = "Creating" 12706 12707 // EndpointStatusUpdating is a EndpointStatus enum value 12708 EndpointStatusUpdating = "Updating" 12709 12710 // EndpointStatusRollingBack is a EndpointStatus enum value 12711 EndpointStatusRollingBack = "RollingBack" 12712 12713 // EndpointStatusInService is a EndpointStatus enum value 12714 EndpointStatusInService = "InService" 12715 12716 // EndpointStatusDeleting is a EndpointStatus enum value 12717 EndpointStatusDeleting = "Deleting" 12718 12719 // EndpointStatusFailed is a EndpointStatus enum value 12720 EndpointStatusFailed = "Failed" 12721) 12722 12723const ( 12724 // HyperParameterTuningJobObjectiveTypeMaximize is a HyperParameterTuningJobObjectiveType enum value 12725 HyperParameterTuningJobObjectiveTypeMaximize = "Maximize" 12726 12727 // HyperParameterTuningJobObjectiveTypeMinimize is a HyperParameterTuningJobObjectiveType enum value 12728 HyperParameterTuningJobObjectiveTypeMinimize = "Minimize" 12729) 12730 12731const ( 12732 // HyperParameterTuningJobSortByOptionsName is a HyperParameterTuningJobSortByOptions enum value 12733 HyperParameterTuningJobSortByOptionsName = "Name" 12734 12735 // HyperParameterTuningJobSortByOptionsStatus is a HyperParameterTuningJobSortByOptions enum value 12736 HyperParameterTuningJobSortByOptionsStatus = "Status" 12737 12738 // HyperParameterTuningJobSortByOptionsCreationTime is a HyperParameterTuningJobSortByOptions enum value 12739 HyperParameterTuningJobSortByOptionsCreationTime = "CreationTime" 12740) 12741 12742const ( 12743 // HyperParameterTuningJobStatusCompleted is a HyperParameterTuningJobStatus enum value 12744 HyperParameterTuningJobStatusCompleted = "Completed" 12745 12746 // HyperParameterTuningJobStatusInProgress is a HyperParameterTuningJobStatus enum value 12747 HyperParameterTuningJobStatusInProgress = "InProgress" 12748 12749 // HyperParameterTuningJobStatusFailed is a HyperParameterTuningJobStatus enum value 12750 HyperParameterTuningJobStatusFailed = "Failed" 12751 12752 // HyperParameterTuningJobStatusStopped is a HyperParameterTuningJobStatus enum value 12753 HyperParameterTuningJobStatusStopped = "Stopped" 12754 12755 // HyperParameterTuningJobStatusStopping is a HyperParameterTuningJobStatus enum value 12756 HyperParameterTuningJobStatusStopping = "Stopping" 12757) 12758 12759// The strategy hyperparameter tuning uses to find the best combination of hyperparameters 12760// for your model. Currently, the only supported value is Bayesian. 12761const ( 12762 // HyperParameterTuningJobStrategyTypeBayesian is a HyperParameterTuningJobStrategyType enum value 12763 HyperParameterTuningJobStrategyTypeBayesian = "Bayesian" 12764) 12765 12766const ( 12767 // InstanceTypeMlT2Medium is a InstanceType enum value 12768 InstanceTypeMlT2Medium = "ml.t2.medium" 12769 12770 // InstanceTypeMlT2Large is a InstanceType enum value 12771 InstanceTypeMlT2Large = "ml.t2.large" 12772 12773 // InstanceTypeMlT2Xlarge is a InstanceType enum value 12774 InstanceTypeMlT2Xlarge = "ml.t2.xlarge" 12775 12776 // InstanceTypeMlT22xlarge is a InstanceType enum value 12777 InstanceTypeMlT22xlarge = "ml.t2.2xlarge" 12778 12779 // InstanceTypeMlM4Xlarge is a InstanceType enum value 12780 InstanceTypeMlM4Xlarge = "ml.m4.xlarge" 12781 12782 // InstanceTypeMlM42xlarge is a InstanceType enum value 12783 InstanceTypeMlM42xlarge = "ml.m4.2xlarge" 12784 12785 // InstanceTypeMlM44xlarge is a InstanceType enum value 12786 InstanceTypeMlM44xlarge = "ml.m4.4xlarge" 12787 12788 // InstanceTypeMlM410xlarge is a InstanceType enum value 12789 InstanceTypeMlM410xlarge = "ml.m4.10xlarge" 12790 12791 // InstanceTypeMlM416xlarge is a InstanceType enum value 12792 InstanceTypeMlM416xlarge = "ml.m4.16xlarge" 12793 12794 // InstanceTypeMlP2Xlarge is a InstanceType enum value 12795 InstanceTypeMlP2Xlarge = "ml.p2.xlarge" 12796 12797 // InstanceTypeMlP28xlarge is a InstanceType enum value 12798 InstanceTypeMlP28xlarge = "ml.p2.8xlarge" 12799 12800 // InstanceTypeMlP216xlarge is a InstanceType enum value 12801 InstanceTypeMlP216xlarge = "ml.p2.16xlarge" 12802 12803 // InstanceTypeMlP32xlarge is a InstanceType enum value 12804 InstanceTypeMlP32xlarge = "ml.p3.2xlarge" 12805 12806 // InstanceTypeMlP38xlarge is a InstanceType enum value 12807 InstanceTypeMlP38xlarge = "ml.p3.8xlarge" 12808 12809 // InstanceTypeMlP316xlarge is a InstanceType enum value 12810 InstanceTypeMlP316xlarge = "ml.p3.16xlarge" 12811) 12812 12813const ( 12814 // ModelSortKeyName is a ModelSortKey enum value 12815 ModelSortKeyName = "Name" 12816 12817 // ModelSortKeyCreationTime is a ModelSortKey enum value 12818 ModelSortKeyCreationTime = "CreationTime" 12819) 12820 12821const ( 12822 // NotebookInstanceLifecycleConfigSortKeyName is a NotebookInstanceLifecycleConfigSortKey enum value 12823 NotebookInstanceLifecycleConfigSortKeyName = "Name" 12824 12825 // NotebookInstanceLifecycleConfigSortKeyCreationTime is a NotebookInstanceLifecycleConfigSortKey enum value 12826 NotebookInstanceLifecycleConfigSortKeyCreationTime = "CreationTime" 12827 12828 // NotebookInstanceLifecycleConfigSortKeyLastModifiedTime is a NotebookInstanceLifecycleConfigSortKey enum value 12829 NotebookInstanceLifecycleConfigSortKeyLastModifiedTime = "LastModifiedTime" 12830) 12831 12832const ( 12833 // NotebookInstanceLifecycleConfigSortOrderAscending is a NotebookInstanceLifecycleConfigSortOrder enum value 12834 NotebookInstanceLifecycleConfigSortOrderAscending = "Ascending" 12835 12836 // NotebookInstanceLifecycleConfigSortOrderDescending is a NotebookInstanceLifecycleConfigSortOrder enum value 12837 NotebookInstanceLifecycleConfigSortOrderDescending = "Descending" 12838) 12839 12840const ( 12841 // NotebookInstanceSortKeyName is a NotebookInstanceSortKey enum value 12842 NotebookInstanceSortKeyName = "Name" 12843 12844 // NotebookInstanceSortKeyCreationTime is a NotebookInstanceSortKey enum value 12845 NotebookInstanceSortKeyCreationTime = "CreationTime" 12846 12847 // NotebookInstanceSortKeyStatus is a NotebookInstanceSortKey enum value 12848 NotebookInstanceSortKeyStatus = "Status" 12849) 12850 12851const ( 12852 // NotebookInstanceSortOrderAscending is a NotebookInstanceSortOrder enum value 12853 NotebookInstanceSortOrderAscending = "Ascending" 12854 12855 // NotebookInstanceSortOrderDescending is a NotebookInstanceSortOrder enum value 12856 NotebookInstanceSortOrderDescending = "Descending" 12857) 12858 12859const ( 12860 // NotebookInstanceStatusPending is a NotebookInstanceStatus enum value 12861 NotebookInstanceStatusPending = "Pending" 12862 12863 // NotebookInstanceStatusInService is a NotebookInstanceStatus enum value 12864 NotebookInstanceStatusInService = "InService" 12865 12866 // NotebookInstanceStatusStopping is a NotebookInstanceStatus enum value 12867 NotebookInstanceStatusStopping = "Stopping" 12868 12869 // NotebookInstanceStatusStopped is a NotebookInstanceStatus enum value 12870 NotebookInstanceStatusStopped = "Stopped" 12871 12872 // NotebookInstanceStatusFailed is a NotebookInstanceStatus enum value 12873 NotebookInstanceStatusFailed = "Failed" 12874 12875 // NotebookInstanceStatusDeleting is a NotebookInstanceStatus enum value 12876 NotebookInstanceStatusDeleting = "Deleting" 12877 12878 // NotebookInstanceStatusUpdating is a NotebookInstanceStatus enum value 12879 NotebookInstanceStatusUpdating = "Updating" 12880) 12881 12882const ( 12883 // ObjectiveStatusSucceeded is a ObjectiveStatus enum value 12884 ObjectiveStatusSucceeded = "Succeeded" 12885 12886 // ObjectiveStatusPending is a ObjectiveStatus enum value 12887 ObjectiveStatusPending = "Pending" 12888 12889 // ObjectiveStatusFailed is a ObjectiveStatus enum value 12890 ObjectiveStatusFailed = "Failed" 12891) 12892 12893const ( 12894 // OrderKeyAscending is a OrderKey enum value 12895 OrderKeyAscending = "Ascending" 12896 12897 // OrderKeyDescending is a OrderKey enum value 12898 OrderKeyDescending = "Descending" 12899) 12900 12901const ( 12902 // ProductionVariantInstanceTypeMlT2Medium is a ProductionVariantInstanceType enum value 12903 ProductionVariantInstanceTypeMlT2Medium = "ml.t2.medium" 12904 12905 // ProductionVariantInstanceTypeMlT2Large is a ProductionVariantInstanceType enum value 12906 ProductionVariantInstanceTypeMlT2Large = "ml.t2.large" 12907 12908 // ProductionVariantInstanceTypeMlT2Xlarge is a ProductionVariantInstanceType enum value 12909 ProductionVariantInstanceTypeMlT2Xlarge = "ml.t2.xlarge" 12910 12911 // ProductionVariantInstanceTypeMlT22xlarge is a ProductionVariantInstanceType enum value 12912 ProductionVariantInstanceTypeMlT22xlarge = "ml.t2.2xlarge" 12913 12914 // ProductionVariantInstanceTypeMlM4Xlarge is a ProductionVariantInstanceType enum value 12915 ProductionVariantInstanceTypeMlM4Xlarge = "ml.m4.xlarge" 12916 12917 // ProductionVariantInstanceTypeMlM42xlarge is a ProductionVariantInstanceType enum value 12918 ProductionVariantInstanceTypeMlM42xlarge = "ml.m4.2xlarge" 12919 12920 // ProductionVariantInstanceTypeMlM44xlarge is a ProductionVariantInstanceType enum value 12921 ProductionVariantInstanceTypeMlM44xlarge = "ml.m4.4xlarge" 12922 12923 // ProductionVariantInstanceTypeMlM410xlarge is a ProductionVariantInstanceType enum value 12924 ProductionVariantInstanceTypeMlM410xlarge = "ml.m4.10xlarge" 12925 12926 // ProductionVariantInstanceTypeMlM416xlarge is a ProductionVariantInstanceType enum value 12927 ProductionVariantInstanceTypeMlM416xlarge = "ml.m4.16xlarge" 12928 12929 // ProductionVariantInstanceTypeMlM5Large is a ProductionVariantInstanceType enum value 12930 ProductionVariantInstanceTypeMlM5Large = "ml.m5.large" 12931 12932 // ProductionVariantInstanceTypeMlM5Xlarge is a ProductionVariantInstanceType enum value 12933 ProductionVariantInstanceTypeMlM5Xlarge = "ml.m5.xlarge" 12934 12935 // ProductionVariantInstanceTypeMlM52xlarge is a ProductionVariantInstanceType enum value 12936 ProductionVariantInstanceTypeMlM52xlarge = "ml.m5.2xlarge" 12937 12938 // ProductionVariantInstanceTypeMlM54xlarge is a ProductionVariantInstanceType enum value 12939 ProductionVariantInstanceTypeMlM54xlarge = "ml.m5.4xlarge" 12940 12941 // ProductionVariantInstanceTypeMlM512xlarge is a ProductionVariantInstanceType enum value 12942 ProductionVariantInstanceTypeMlM512xlarge = "ml.m5.12xlarge" 12943 12944 // ProductionVariantInstanceTypeMlM524xlarge is a ProductionVariantInstanceType enum value 12945 ProductionVariantInstanceTypeMlM524xlarge = "ml.m5.24xlarge" 12946 12947 // ProductionVariantInstanceTypeMlC4Large is a ProductionVariantInstanceType enum value 12948 ProductionVariantInstanceTypeMlC4Large = "ml.c4.large" 12949 12950 // ProductionVariantInstanceTypeMlC4Xlarge is a ProductionVariantInstanceType enum value 12951 ProductionVariantInstanceTypeMlC4Xlarge = "ml.c4.xlarge" 12952 12953 // ProductionVariantInstanceTypeMlC42xlarge is a ProductionVariantInstanceType enum value 12954 ProductionVariantInstanceTypeMlC42xlarge = "ml.c4.2xlarge" 12955 12956 // ProductionVariantInstanceTypeMlC44xlarge is a ProductionVariantInstanceType enum value 12957 ProductionVariantInstanceTypeMlC44xlarge = "ml.c4.4xlarge" 12958 12959 // ProductionVariantInstanceTypeMlC48xlarge is a ProductionVariantInstanceType enum value 12960 ProductionVariantInstanceTypeMlC48xlarge = "ml.c4.8xlarge" 12961 12962 // ProductionVariantInstanceTypeMlP2Xlarge is a ProductionVariantInstanceType enum value 12963 ProductionVariantInstanceTypeMlP2Xlarge = "ml.p2.xlarge" 12964 12965 // ProductionVariantInstanceTypeMlP28xlarge is a ProductionVariantInstanceType enum value 12966 ProductionVariantInstanceTypeMlP28xlarge = "ml.p2.8xlarge" 12967 12968 // ProductionVariantInstanceTypeMlP216xlarge is a ProductionVariantInstanceType enum value 12969 ProductionVariantInstanceTypeMlP216xlarge = "ml.p2.16xlarge" 12970 12971 // ProductionVariantInstanceTypeMlP32xlarge is a ProductionVariantInstanceType enum value 12972 ProductionVariantInstanceTypeMlP32xlarge = "ml.p3.2xlarge" 12973 12974 // ProductionVariantInstanceTypeMlP38xlarge is a ProductionVariantInstanceType enum value 12975 ProductionVariantInstanceTypeMlP38xlarge = "ml.p3.8xlarge" 12976 12977 // ProductionVariantInstanceTypeMlP316xlarge is a ProductionVariantInstanceType enum value 12978 ProductionVariantInstanceTypeMlP316xlarge = "ml.p3.16xlarge" 12979 12980 // ProductionVariantInstanceTypeMlC5Large is a ProductionVariantInstanceType enum value 12981 ProductionVariantInstanceTypeMlC5Large = "ml.c5.large" 12982 12983 // ProductionVariantInstanceTypeMlC5Xlarge is a ProductionVariantInstanceType enum value 12984 ProductionVariantInstanceTypeMlC5Xlarge = "ml.c5.xlarge" 12985 12986 // ProductionVariantInstanceTypeMlC52xlarge is a ProductionVariantInstanceType enum value 12987 ProductionVariantInstanceTypeMlC52xlarge = "ml.c5.2xlarge" 12988 12989 // ProductionVariantInstanceTypeMlC54xlarge is a ProductionVariantInstanceType enum value 12990 ProductionVariantInstanceTypeMlC54xlarge = "ml.c5.4xlarge" 12991 12992 // ProductionVariantInstanceTypeMlC59xlarge is a ProductionVariantInstanceType enum value 12993 ProductionVariantInstanceTypeMlC59xlarge = "ml.c5.9xlarge" 12994 12995 // ProductionVariantInstanceTypeMlC518xlarge is a ProductionVariantInstanceType enum value 12996 ProductionVariantInstanceTypeMlC518xlarge = "ml.c5.18xlarge" 12997) 12998 12999const ( 13000 // RecordWrapperNone is a RecordWrapper enum value 13001 RecordWrapperNone = "None" 13002 13003 // RecordWrapperRecordIo is a RecordWrapper enum value 13004 RecordWrapperRecordIo = "RecordIO" 13005) 13006 13007const ( 13008 // S3DataDistributionFullyReplicated is a S3DataDistribution enum value 13009 S3DataDistributionFullyReplicated = "FullyReplicated" 13010 13011 // S3DataDistributionShardedByS3key is a S3DataDistribution enum value 13012 S3DataDistributionShardedByS3key = "ShardedByS3Key" 13013) 13014 13015const ( 13016 // S3DataTypeManifestFile is a S3DataType enum value 13017 S3DataTypeManifestFile = "ManifestFile" 13018 13019 // S3DataTypeS3prefix is a S3DataType enum value 13020 S3DataTypeS3prefix = "S3Prefix" 13021) 13022 13023const ( 13024 // SecondaryStatusStarting is a SecondaryStatus enum value 13025 SecondaryStatusStarting = "Starting" 13026 13027 // SecondaryStatusLaunchingMlinstances is a SecondaryStatus enum value 13028 SecondaryStatusLaunchingMlinstances = "LaunchingMLInstances" 13029 13030 // SecondaryStatusPreparingTrainingStack is a SecondaryStatus enum value 13031 SecondaryStatusPreparingTrainingStack = "PreparingTrainingStack" 13032 13033 // SecondaryStatusDownloading is a SecondaryStatus enum value 13034 SecondaryStatusDownloading = "Downloading" 13035 13036 // SecondaryStatusDownloadingTrainingImage is a SecondaryStatus enum value 13037 SecondaryStatusDownloadingTrainingImage = "DownloadingTrainingImage" 13038 13039 // SecondaryStatusTraining is a SecondaryStatus enum value 13040 SecondaryStatusTraining = "Training" 13041 13042 // SecondaryStatusUploading is a SecondaryStatus enum value 13043 SecondaryStatusUploading = "Uploading" 13044 13045 // SecondaryStatusStopping is a SecondaryStatus enum value 13046 SecondaryStatusStopping = "Stopping" 13047 13048 // SecondaryStatusStopped is a SecondaryStatus enum value 13049 SecondaryStatusStopped = "Stopped" 13050 13051 // SecondaryStatusMaxRuntimeExceeded is a SecondaryStatus enum value 13052 SecondaryStatusMaxRuntimeExceeded = "MaxRuntimeExceeded" 13053 13054 // SecondaryStatusCompleted is a SecondaryStatus enum value 13055 SecondaryStatusCompleted = "Completed" 13056 13057 // SecondaryStatusFailed is a SecondaryStatus enum value 13058 SecondaryStatusFailed = "Failed" 13059) 13060 13061const ( 13062 // SortByName is a SortBy enum value 13063 SortByName = "Name" 13064 13065 // SortByCreationTime is a SortBy enum value 13066 SortByCreationTime = "CreationTime" 13067 13068 // SortByStatus is a SortBy enum value 13069 SortByStatus = "Status" 13070) 13071 13072const ( 13073 // SortOrderAscending is a SortOrder enum value 13074 SortOrderAscending = "Ascending" 13075 13076 // SortOrderDescending is a SortOrder enum value 13077 SortOrderDescending = "Descending" 13078) 13079 13080const ( 13081 // SplitTypeNone is a SplitType enum value 13082 SplitTypeNone = "None" 13083 13084 // SplitTypeLine is a SplitType enum value 13085 SplitTypeLine = "Line" 13086 13087 // SplitTypeRecordIo is a SplitType enum value 13088 SplitTypeRecordIo = "RecordIO" 13089) 13090 13091const ( 13092 // TrainingInputModePipe is a TrainingInputMode enum value 13093 TrainingInputModePipe = "Pipe" 13094 13095 // TrainingInputModeFile is a TrainingInputMode enum value 13096 TrainingInputModeFile = "File" 13097) 13098 13099const ( 13100 // TrainingInstanceTypeMlM4Xlarge is a TrainingInstanceType enum value 13101 TrainingInstanceTypeMlM4Xlarge = "ml.m4.xlarge" 13102 13103 // TrainingInstanceTypeMlM42xlarge is a TrainingInstanceType enum value 13104 TrainingInstanceTypeMlM42xlarge = "ml.m4.2xlarge" 13105 13106 // TrainingInstanceTypeMlM44xlarge is a TrainingInstanceType enum value 13107 TrainingInstanceTypeMlM44xlarge = "ml.m4.4xlarge" 13108 13109 // TrainingInstanceTypeMlM410xlarge is a TrainingInstanceType enum value 13110 TrainingInstanceTypeMlM410xlarge = "ml.m4.10xlarge" 13111 13112 // TrainingInstanceTypeMlM416xlarge is a TrainingInstanceType enum value 13113 TrainingInstanceTypeMlM416xlarge = "ml.m4.16xlarge" 13114 13115 // TrainingInstanceTypeMlM5Large is a TrainingInstanceType enum value 13116 TrainingInstanceTypeMlM5Large = "ml.m5.large" 13117 13118 // TrainingInstanceTypeMlM5Xlarge is a TrainingInstanceType enum value 13119 TrainingInstanceTypeMlM5Xlarge = "ml.m5.xlarge" 13120 13121 // TrainingInstanceTypeMlM52xlarge is a TrainingInstanceType enum value 13122 TrainingInstanceTypeMlM52xlarge = "ml.m5.2xlarge" 13123 13124 // TrainingInstanceTypeMlM54xlarge is a TrainingInstanceType enum value 13125 TrainingInstanceTypeMlM54xlarge = "ml.m5.4xlarge" 13126 13127 // TrainingInstanceTypeMlM512xlarge is a TrainingInstanceType enum value 13128 TrainingInstanceTypeMlM512xlarge = "ml.m5.12xlarge" 13129 13130 // TrainingInstanceTypeMlM524xlarge is a TrainingInstanceType enum value 13131 TrainingInstanceTypeMlM524xlarge = "ml.m5.24xlarge" 13132 13133 // TrainingInstanceTypeMlC4Xlarge is a TrainingInstanceType enum value 13134 TrainingInstanceTypeMlC4Xlarge = "ml.c4.xlarge" 13135 13136 // TrainingInstanceTypeMlC42xlarge is a TrainingInstanceType enum value 13137 TrainingInstanceTypeMlC42xlarge = "ml.c4.2xlarge" 13138 13139 // TrainingInstanceTypeMlC44xlarge is a TrainingInstanceType enum value 13140 TrainingInstanceTypeMlC44xlarge = "ml.c4.4xlarge" 13141 13142 // TrainingInstanceTypeMlC48xlarge is a TrainingInstanceType enum value 13143 TrainingInstanceTypeMlC48xlarge = "ml.c4.8xlarge" 13144 13145 // TrainingInstanceTypeMlP2Xlarge is a TrainingInstanceType enum value 13146 TrainingInstanceTypeMlP2Xlarge = "ml.p2.xlarge" 13147 13148 // TrainingInstanceTypeMlP28xlarge is a TrainingInstanceType enum value 13149 TrainingInstanceTypeMlP28xlarge = "ml.p2.8xlarge" 13150 13151 // TrainingInstanceTypeMlP216xlarge is a TrainingInstanceType enum value 13152 TrainingInstanceTypeMlP216xlarge = "ml.p2.16xlarge" 13153 13154 // TrainingInstanceTypeMlP32xlarge is a TrainingInstanceType enum value 13155 TrainingInstanceTypeMlP32xlarge = "ml.p3.2xlarge" 13156 13157 // TrainingInstanceTypeMlP38xlarge is a TrainingInstanceType enum value 13158 TrainingInstanceTypeMlP38xlarge = "ml.p3.8xlarge" 13159 13160 // TrainingInstanceTypeMlP316xlarge is a TrainingInstanceType enum value 13161 TrainingInstanceTypeMlP316xlarge = "ml.p3.16xlarge" 13162 13163 // TrainingInstanceTypeMlC5Xlarge is a TrainingInstanceType enum value 13164 TrainingInstanceTypeMlC5Xlarge = "ml.c5.xlarge" 13165 13166 // TrainingInstanceTypeMlC52xlarge is a TrainingInstanceType enum value 13167 TrainingInstanceTypeMlC52xlarge = "ml.c5.2xlarge" 13168 13169 // TrainingInstanceTypeMlC54xlarge is a TrainingInstanceType enum value 13170 TrainingInstanceTypeMlC54xlarge = "ml.c5.4xlarge" 13171 13172 // TrainingInstanceTypeMlC59xlarge is a TrainingInstanceType enum value 13173 TrainingInstanceTypeMlC59xlarge = "ml.c5.9xlarge" 13174 13175 // TrainingInstanceTypeMlC518xlarge is a TrainingInstanceType enum value 13176 TrainingInstanceTypeMlC518xlarge = "ml.c5.18xlarge" 13177) 13178 13179const ( 13180 // TrainingJobSortByOptionsName is a TrainingJobSortByOptions enum value 13181 TrainingJobSortByOptionsName = "Name" 13182 13183 // TrainingJobSortByOptionsCreationTime is a TrainingJobSortByOptions enum value 13184 TrainingJobSortByOptionsCreationTime = "CreationTime" 13185 13186 // TrainingJobSortByOptionsStatus is a TrainingJobSortByOptions enum value 13187 TrainingJobSortByOptionsStatus = "Status" 13188 13189 // TrainingJobSortByOptionsFinalObjectiveMetricValue is a TrainingJobSortByOptions enum value 13190 TrainingJobSortByOptionsFinalObjectiveMetricValue = "FinalObjectiveMetricValue" 13191) 13192 13193const ( 13194 // TrainingJobStatusInProgress is a TrainingJobStatus enum value 13195 TrainingJobStatusInProgress = "InProgress" 13196 13197 // TrainingJobStatusCompleted is a TrainingJobStatus enum value 13198 TrainingJobStatusCompleted = "Completed" 13199 13200 // TrainingJobStatusFailed is a TrainingJobStatus enum value 13201 TrainingJobStatusFailed = "Failed" 13202 13203 // TrainingJobStatusStopping is a TrainingJobStatus enum value 13204 TrainingJobStatusStopping = "Stopping" 13205 13206 // TrainingJobStatusStopped is a TrainingJobStatus enum value 13207 TrainingJobStatusStopped = "Stopped" 13208) 13209 13210const ( 13211 // TransformInstanceTypeMlM4Xlarge is a TransformInstanceType enum value 13212 TransformInstanceTypeMlM4Xlarge = "ml.m4.xlarge" 13213 13214 // TransformInstanceTypeMlM42xlarge is a TransformInstanceType enum value 13215 TransformInstanceTypeMlM42xlarge = "ml.m4.2xlarge" 13216 13217 // TransformInstanceTypeMlM44xlarge is a TransformInstanceType enum value 13218 TransformInstanceTypeMlM44xlarge = "ml.m4.4xlarge" 13219 13220 // TransformInstanceTypeMlM410xlarge is a TransformInstanceType enum value 13221 TransformInstanceTypeMlM410xlarge = "ml.m4.10xlarge" 13222 13223 // TransformInstanceTypeMlM416xlarge is a TransformInstanceType enum value 13224 TransformInstanceTypeMlM416xlarge = "ml.m4.16xlarge" 13225 13226 // TransformInstanceTypeMlC4Xlarge is a TransformInstanceType enum value 13227 TransformInstanceTypeMlC4Xlarge = "ml.c4.xlarge" 13228 13229 // TransformInstanceTypeMlC42xlarge is a TransformInstanceType enum value 13230 TransformInstanceTypeMlC42xlarge = "ml.c4.2xlarge" 13231 13232 // TransformInstanceTypeMlC44xlarge is a TransformInstanceType enum value 13233 TransformInstanceTypeMlC44xlarge = "ml.c4.4xlarge" 13234 13235 // TransformInstanceTypeMlC48xlarge is a TransformInstanceType enum value 13236 TransformInstanceTypeMlC48xlarge = "ml.c4.8xlarge" 13237 13238 // TransformInstanceTypeMlP2Xlarge is a TransformInstanceType enum value 13239 TransformInstanceTypeMlP2Xlarge = "ml.p2.xlarge" 13240 13241 // TransformInstanceTypeMlP28xlarge is a TransformInstanceType enum value 13242 TransformInstanceTypeMlP28xlarge = "ml.p2.8xlarge" 13243 13244 // TransformInstanceTypeMlP216xlarge is a TransformInstanceType enum value 13245 TransformInstanceTypeMlP216xlarge = "ml.p2.16xlarge" 13246 13247 // TransformInstanceTypeMlP32xlarge is a TransformInstanceType enum value 13248 TransformInstanceTypeMlP32xlarge = "ml.p3.2xlarge" 13249 13250 // TransformInstanceTypeMlP38xlarge is a TransformInstanceType enum value 13251 TransformInstanceTypeMlP38xlarge = "ml.p3.8xlarge" 13252 13253 // TransformInstanceTypeMlP316xlarge is a TransformInstanceType enum value 13254 TransformInstanceTypeMlP316xlarge = "ml.p3.16xlarge" 13255 13256 // TransformInstanceTypeMlC5Xlarge is a TransformInstanceType enum value 13257 TransformInstanceTypeMlC5Xlarge = "ml.c5.xlarge" 13258 13259 // TransformInstanceTypeMlC52xlarge is a TransformInstanceType enum value 13260 TransformInstanceTypeMlC52xlarge = "ml.c5.2xlarge" 13261 13262 // TransformInstanceTypeMlC54xlarge is a TransformInstanceType enum value 13263 TransformInstanceTypeMlC54xlarge = "ml.c5.4xlarge" 13264 13265 // TransformInstanceTypeMlC59xlarge is a TransformInstanceType enum value 13266 TransformInstanceTypeMlC59xlarge = "ml.c5.9xlarge" 13267 13268 // TransformInstanceTypeMlC518xlarge is a TransformInstanceType enum value 13269 TransformInstanceTypeMlC518xlarge = "ml.c5.18xlarge" 13270 13271 // TransformInstanceTypeMlM5Large is a TransformInstanceType enum value 13272 TransformInstanceTypeMlM5Large = "ml.m5.large" 13273 13274 // TransformInstanceTypeMlM5Xlarge is a TransformInstanceType enum value 13275 TransformInstanceTypeMlM5Xlarge = "ml.m5.xlarge" 13276 13277 // TransformInstanceTypeMlM52xlarge is a TransformInstanceType enum value 13278 TransformInstanceTypeMlM52xlarge = "ml.m5.2xlarge" 13279 13280 // TransformInstanceTypeMlM54xlarge is a TransformInstanceType enum value 13281 TransformInstanceTypeMlM54xlarge = "ml.m5.4xlarge" 13282 13283 // TransformInstanceTypeMlM512xlarge is a TransformInstanceType enum value 13284 TransformInstanceTypeMlM512xlarge = "ml.m5.12xlarge" 13285 13286 // TransformInstanceTypeMlM524xlarge is a TransformInstanceType enum value 13287 TransformInstanceTypeMlM524xlarge = "ml.m5.24xlarge" 13288) 13289 13290const ( 13291 // TransformJobStatusInProgress is a TransformJobStatus enum value 13292 TransformJobStatusInProgress = "InProgress" 13293 13294 // TransformJobStatusCompleted is a TransformJobStatus enum value 13295 TransformJobStatusCompleted = "Completed" 13296 13297 // TransformJobStatusFailed is a TransformJobStatus enum value 13298 TransformJobStatusFailed = "Failed" 13299 13300 // TransformJobStatusStopping is a TransformJobStatus enum value 13301 TransformJobStatusStopping = "Stopping" 13302 13303 // TransformJobStatusStopped is a TransformJobStatus enum value 13304 TransformJobStatusStopped = "Stopped" 13305) 13306